Re: [PATCH] seccomp: Use current_pt_regs()

2020-09-08 Thread Kees Cook
On Mon, 24 Aug 2020 15:59:21 +0300, Denis Efremov wrote: > Modify seccomp_do_user_notification(), __seccomp_filter(), > __secure_computing() to use current_pt_regs(). Applied, thanks! [1/1] seccomp: Use current_pt_regs() instead of task_pt_regs(current)

Re: [PATCH] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Laurent Pinchart
On Tue, Sep 08, 2020 at 02:29:02PM +0200, Daniel Vetter wrote: > On Tue, Sep 8, 2020 at 2:07 PM Stefan Agner wrote: > > On 2020-09-08 10:48, Daniel Vetter wrote: > >> On Tue, Sep 08, 2020 at 11:18:25AM +0300, Tomi Valkeinen wrote: > >>> On 08/09/2020 10:55, Stefan Agner wrote: > On

[PATCH] s390/idle: Fix suspicious RCU usage

2020-09-08 Thread peterz
After commit eb1f00237aca ("lockdep,trace: Expose tracepoints") the lock tracepoints are visible to lockdep and RCU-lockdep is finding a bunch more RCU violations that were previously hidden. Switch the idle->seqcount over to using raw_write_*() to avoid the lockdep annotation and thus the lock

Re: [RFC PATCH v8 1/3] fs: Introduce AT_INTERPRETED flag for faccessat2(2)

2020-09-08 Thread Mickaël Salaün
On 08/09/2020 14:28, Mimi Zohar wrote: > Hi Mickael, > > On Tue, 2020-09-08 at 09:59 +0200, Mickaël Salaün wrote: >> diff --git a/fs/open.c b/fs/open.c >> index 9af548fb841b..879bdfbdc6fa 100644 >> --- a/fs/open.c >> +++ b/fs/open.c >> @@ -405,9 +405,13 @@ static long do_faccessat(int dfd,

Re: [PATCH RFC 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-08 Thread Marco Elver
On Tue, Sep 08, 2020 at 04:40PM +0200, Vlastimil Babka wrote: > On 9/8/20 2:16 PM, Alexander Potapenko wrote: > >> Toggling a static branch is AFAIK quite disruptive (PeterZ will probably > >> tell > >> you better), and with the default 100ms sample interval, I'd think it's > >> not good > >> to

[PATCH V3] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine

2020-09-08 Thread Radoslaw Biernacki
Since 256xFS clocks cannot be generated by SKL, the NAU8825 is configured to re-generate its system clock from the BCLK using the FLL. The link is configured to use a 48kHz frame rate, and 24 bits in 25-bit slot. The SSP configuration is extracted from NHLT settings and not dynamically changed.

Re: [PATCH 22/35] arm64: mte: Enable in-kernel MTE

2020-09-08 Thread Catalin Marinas
On Tue, Sep 08, 2020 at 04:39:35PM +0200, Andrey Konovalov wrote: > On Fri, Aug 14, 2020 at 7:28 PM Andrey Konovalov > wrote: > > From: Vincenzo Frascino > > > > The Tag Checking operation causes a synchronous data abort as > > a consequence of a tag check fault when MTE is configured in > >

Re: [PATCH 2/2] ASoC: tlv320adcx140: Wake up codec before accessing register

2020-09-08 Thread Dan Murphy
Camel On 9/8/20 3:35 AM, Camel Guo wrote: From: Camel Guo According to its datasheet, after reset this codec goes into sleep mode. In this mode, any register accessing should be avoided except for exiting sleep mode. Hence this commit moves SLEEP_CFG access before any register accessing.

Re: [v1,1/3] dt-bindings: Add YAML schemas for Gen3 PCIe controller

2020-09-08 Thread Bjorn Helgaas
On Mon, Sep 07, 2020 at 08:08:50PM +0800, Jianjun Wang wrote: > Add YAML schemas documentation for Gen3 PCIe controller on > MediaTek SoCs. Please mention "mediatek" in the subject line so "git log --oneline" is more useful. The convention (not universally observed) seems to be something like:

[PATCH 2/5] drm/panfrost: add support specifying pgtbl quirks

2020-09-08 Thread Neil Armstrong
Add a pgtbl_quirks entry in the compatible specific table to permit specyfying IOMMU quirks for platforms. Signed-off-by: Neil Armstrong --- drivers/gpu/drm/panfrost/panfrost_device.h | 3 +++ drivers/gpu/drm/panfrost/panfrost_mmu.c| 1 + 2 files changed, 4 insertions(+) diff --git

[PATCH 3/5] drm/panfrost: add support for reset quirk

2020-09-08 Thread Neil Armstrong
The T820, G31 & G52 GPUs integratewd by Amlogic in the respective GXM, G12A/SM1 & G12B SoCs needs a quirk in the PWR registers at the GPU reset time. This adds a callback in the device compatible struct of permit this. Signed-off-by: Neil Armstrong ---

[PATCH 0/5] drm/panfrost: add Amlogic integration quirks

2020-09-08 Thread Neil Armstrong
The T820, G31 & G52 GPUs integrated by Amlogic in the respective GXM, G12A/SM1 & G12B SoCs needs a quirk in the PWR registers at the GPU reset time. The coherency integration of the IOMMU in the Mali-G52 found in the Amlogic G12B SoCs is broken and leads to constant and random faults from the

[PATCH 1/5] iommu/io-pgtable-arm: Add BROKEN_NS quirk to disable shareability on ARM LPAE

2020-09-08 Thread Neil Armstrong
The coherency integration of the IOMMU in the Mali-G52 found in the Amlogic G12B SoCs is broken and leads to constant and random faults from the IOMMU. Disabling shareability completely fixes the issue. Signed-off-by: Neil Armstrong --- drivers/iommu/io-pgtable-arm.c | 7 ---

[PATCH 4/5] drm/panfrost: add amlogic reset quirk callback

2020-09-08 Thread Neil Armstrong
The T820, G31 & G52 GPUs integratewd by Amlogic in the respective GXM, G12A/SM1 & G12B SoCs needs a quirk in the PWR registers at the GPU reset time. Since the documentation of the GPU cores are not public, we do not know what does these values, but they permit having a fully functional GPU

[PATCH 5/5] drm/panfrost: add Amlogic GPU integration quirks

2020-09-08 Thread Neil Armstrong
This adds the required GPU quirks, including the quirk in the PWR registers at the GPU reset time and the IOMMU quirk for shareability issues observed on G52 in Amlogic G12B SoCs. Signed-off-by: Neil Armstrong --- drivers/gpu/drm/panfrost/panfrost_drv.c | 18 ++ 1 file

Re: [PATCH v2] sched/debug: Add new tracepoint to track cpu_capacity

2020-09-08 Thread Qais Yousef
On 09/08/20 09:19, Phil Auld wrote: > Hi Quais, > > On Mon, Sep 07, 2020 at 12:02:24PM +0100 Qais Yousef wrote: > > On 09/02/20 09:54, Phil Auld wrote: > > > > > > > > I think this decoupling is not necessary. The natural place for those > > > > scheduler trace_event based on trace_points

kernel BUG at mm/huge_memory.c:LINE! (2)

2020-09-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e28f0104 Merge tag 'fixes-2020-09-03' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1252b7fe90 kernel config: https://syzkaller.appspot.com/x/.config?x=3c5f6ce8d5b68299

Re: [PATCH 20/35] arm64: mte: Add in-kernel MTE helpers

2020-09-08 Thread Andrey Konovalov
On Thu, Aug 27, 2020 at 11:38 AM Catalin Marinas wrote: > > On Fri, Aug 14, 2020 at 07:27:02PM +0200, Andrey Konovalov wrote: > > diff --git a/arch/arm64/include/asm/mte.h b/arch/arm64/include/asm/mte.h > > index 1c99fcadb58c..733be1cb5c95 100644 > > --- a/arch/arm64/include/asm/mte.h > > +++

[PATCH 16/19] sd: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call sd_revalidate_disk manually. As sd also calls sd_revalidate_disk manually during probe and open, , the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-08 Thread Rik van Riel
On Tue, 2020-09-08 at 16:35 +0200, Michal Hocko wrote: > A global knob is insufficient. 1G pages will become a very precious > resource as it requires a pre-allocation (reservation). So it really > has > to be an opt-in and the question is whether there is also some sort > of > access control

Re: [PATCH] hwmon: intel-m10-bmc-hwmon: add hwmon support for Intel MAX 10 BMC

2020-09-08 Thread Guenter Roeck
On 9/7/20 11:22 PM, Xu Yilun wrote: > This patch adds hwmon functionality for Intel MAX 10 BMC chip. This BMC > chip connects to a set of sensor chips to monitor current, voltage, > thermal and power of different components on board. The BMC firmware is > responsible for sensor data sampling and

Re: [RFC PATCH v2 2/3] mm: make pXd_addr_end() functions page-table entry aware

2020-09-08 Thread Alexander Gordeev
On Tue, Sep 08, 2020 at 07:14:38AM +0200, Christophe Leroy wrote: [...] > You forgot arch/powerpc/mm/book3s64/subpage_prot.c it seems. If this one would be okay? diff --git a/arch/powerpc/mm/book3s64/subpage_prot.c b/arch/powerpc/mm/book3s64/subpage_prot.c index 60c6ea16..3690d22 100644 ---

[PATCH 2/3] gpiolib: generalize devprop_gpiochip_set_names() for device properties

2020-09-08 Thread Bartosz Golaszewski
From: Bartosz Golaszewski devprop_gpiochip_set_names() is overly complicated with taking the fwnode argument (which requires using dev_fwnode() & of_fwnode_handle() in ACPI and OF GPIO code respectively). Let's just switch to using the generic device properties. This allows us to pull the code

Re: [PATCH v6 3/3] io_uring: allow disabling rings during the creation

2020-09-08 Thread Jens Axboe
On 9/8/20 8:10 AM, Stefano Garzarella wrote: > On Tue, Sep 08, 2020 at 07:57:08AM -0600, Jens Axboe wrote: >> On 9/8/20 7:44 AM, Stefano Garzarella wrote: >>> Hi Jens, >>> >>> On Thu, Aug 27, 2020 at 04:58:31PM +0200, Stefano Garzarella wrote: This patch adds a new IORING_SETUP_R_DISABLED

Re: v5.9-rc3-rt3 boot time networking lockdep splat

2020-09-08 Thread Sebastian Andrzej Siewior
On 2020-09-05 07:19:10 [+0200], Mike Galbraith wrote: > Lappy, which does not use bridge, boots clean... but lock leakage > pretty darn quickly inspires lockdep to craps its drawers. > > [ 209.00] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! > [ 209.001113] turning off the locking correctness

[PATCH 02/19] amiflop: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
The Amiga floppy driver does not have a ->revalidate_disk method, so it can just use bdev_check_media_change without any additional changes. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/block/amiflop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 1/3] device: property: add helpers to count items in string arrays

2020-09-08 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Instead of doing the following: count = device_property_read_string_array(dev, propname, NULL, 0); Let's provide inline helpers with hardcoded arguments for counting strings in property arrays. Suggested-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski

[PATCH 04/19] floppy: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call floppy_revalidate manually. Given that floppy_revalidate only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

[Linux-kernel-mentees] [PATCH] Bluetooth: Fix memory leak in read_adv_mon_features()

2020-09-08 Thread Peilin Ye
read_adv_mon_features() is leaking memory. Free `rp` before returning. Fixes: e5e1e7fd470c ("Bluetooth: Add handler of MGMT_OP_READ_ADV_MONITOR_FEATURES") Reported-and-tested-by: syzbot+f7f6e564f4202d860...@syzkaller.appspotmail.com Signed-off-by: Peilin Ye --- net/bluetooth/mgmt.c | 12

[PATCH 01/19] block: add a bdev_check_media_change helper

2020-09-08 Thread Christoph Hellwig
Like check_disk_changed, except that it does not call ->revalidate_disk but leaves that to the caller. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- block/genhd.c | 29 - fs/block_dev.c| 17 +++--

[PATCH v3 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-08 Thread Jiada Wang
From: Nick Dyer Some maXTouch chips (eg mXT1386) will not respond on the first I2C request when they are in a sleep state. It must be retried after a delay for the chip to wake up. Signed-off-by: Nick Dyer Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit

[PATCH 09/19] xsysace: simplify media change handling

2020-09-08 Thread Christoph Hellwig
Pass a struct ace_device to ace_revalidate_disk, move the media changed check into the one caller that needs it, and give the routine a better name. Signed-off-by: Christoph Hellwig --- drivers/block/xsysace.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-)

[PATCH 10/19] paride/pcd: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
The pcd driver does not have a ->revalidate_disk method, so it can just use bdev_check_media_change without any additional changes. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/block/paride/pcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] selftests/seccomp: Add test for unknown SECCOMP_RET kill behavior

2020-09-08 Thread Shuah Khan
On 9/8/20 1:35 PM, Kees Cook wrote: While we testing for the behavior of unknown seccomp filter return values, there was no test for how it acted in a thread group. Add a test in the thread group tests for this. Signed-off-by: Kees Cook --- (This is going via the seccomp tree.) Cool. ---

[GIT PULL] SCSI fixes for 5.9-rc4

2020-09-08 Thread James Bottomley
Eleven fixes, mostly in drivers or minor fixes in driver related infrastructure libraries (target, libfc and libsas). Most of the bugs fixed only show up under rare circumstances, the exception being the endianness problem in qla2xxx which is used as a device on some sparc systems. The patch is

[PATCH 6/8] arm64: dts: rk3399: Correct interrupt flags in examples

2020-09-08 Thread Krzysztof Kozlowski
GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. These are simple defines so they could be used in DTS but they will not have the same meaning: 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE 2. GPIO_ACTIVE_LOW = 1 = IRQ_TYPE_EDGE_RISING Correct the interrupt flags, assuming the

[PATCH] hippi: switch from 'pci_' to 'dma_' API

2020-09-08 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'rr_init_one()' GFP_KERNEL can be used because it

[PATCH 19/19] block: remove check_disk_change

2020-09-08 Thread Christoph Hellwig
Remove the now unused check_disk_change helper. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- fs/block_dev.c| 20 include/linux/genhd.h | 1 - 2 files changed, 21 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index

[PATCH v18] Add matrix keypad driver support for Mediatek SoCs

2020-09-08 Thread Fengping Yu
Change since v17: - modify how to get keycode in keypad interrupt handler - replace variable ret as error in probe function - update keypad, num-columns and keypad, num-rows descriptioin fengping.yu (3): dt-bindings: Add bindings for Mediatek matrix keypad drivers: input:keyboard: Add mtk

[PATCH 05/19] swim: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call floppy_revalidate manually. Given that floppy_revalidate only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

[PATCH 07/19] swim3: use bdev_check_media_changed

2020-09-08 Thread Christoph Hellwig
Switch to use bdev_check_media_changed instead of check_disk_change and call floppy_revalidate manually. Given that floppy_revalidate only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

Re: [PATCH v2 2/4] soundwire: qcom: avoid dependency on CONFIG_SLIMBUS

2020-09-08 Thread Pierre-Louis Bossart
On 9/5/20 12:39 PM, Jonathan Marek wrote: The driver may be used without slimbus, so don't depend on slimbus. Signed-off-by: Jonathan Marek --- drivers/soundwire/Kconfig | 2 +- drivers/soundwire/qcom.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [f2fs-dev] [PATCH v3 1/2] f2fs: change i_compr_blocks of inode to atomic value

2020-09-08 Thread Chao Yu
On 2020-9-8 10:44, Daeho Jeong wrote: From: Daeho Jeong writepages() can be concurrently invoked for the same file by different threads such as a thread fsyncing the file and a kworker kernel thread. So, changing i_compr_blocks without protection is racy and we need to protect it by changing

Re: [PATCH 1/7] soundwire: bus: use property to set interrupt masks

2020-09-08 Thread Mark Brown
On Tue, Sep 08, 2020 at 09:47:13AM -0500, Pierre-Louis Bossart wrote: > On 9/8/20 9:33 AM, Mark Brown wrote: > > On Tue, Sep 08, 2020 at 02:28:48PM +0200, Jaroslav Kysela wrote: > > > Dne 08. 09. 20 v 14:11 Mark Brown napsal(a): > > > > I don't have this patch and since I seem to get copied on

Re: v5.9-rc3-rt3 boot time networking lockdep splat

2020-09-08 Thread Sebastian Andrzej Siewior
On 2020-09-08 16:56:20 [+0200], Mike Galbraith wrote: > On Tue, 2020-09-08 at 14:19 +0200, Sebastian Andrzej Siewior wrote: > > > > This has nothing to do with the bridge but with the fact that you use a > > non standard queue class (something else than pfifo_fast). > > That must be SUSE, I don't

Re: [PATCH] brcmsmac: fix memory leak in wlc_phy_attach_lcnphy

2020-09-08 Thread Arend Van Spriel
On 9/8/2020 2:02 PM, Keita Suzuki wrote: Thank you for your comment. I am relatively new to the Linux kernel community, so I am more than happy to receive comments. Please let me know if I'm violating any other rules. Sure ;-) Here a useful link that Kalle (wireless drivers maintainer) is

Re: [PATCH] gpio: mockup: fix resource leak in error path

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 08, 2020 at 03:07:49PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > If the module init function fails after creating the debugs directory, > it's never removed. Add proper cleanup calls to avoid this resource > leak. Reviewed-by: Andy Shevchenko > Fixes:

[PATCH v2 3/7] mm/memory_hotplug: prepare passing flags to add_memory() and friends

2020-09-08 Thread David Hildenbrand
We soon want to pass flags, e.g., to mark added System RAM resources. mergeable. Prepare for that. This patch is based on a similar patch by Oscar Salvador: https://lkml.kernel.org/r/20190625075227.15193-3-osalva...@suse.de Acked-by: Wei Liu Cc: Andrew Morton Cc: Michal Hocko Cc: Dan

[PATCH v2 7/7] hv_balloon: try to merge system ram resources

2020-09-08 Thread David Hildenbrand
Let's try to merge system ram resources we add, to minimize the number of resources in /proc/iomem. We don't care about the boundaries of individual chunks we added. Cc: Andrew Morton Cc: Michal Hocko Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Wei Liu Cc: Pankaj

[PATCH v2 4/7] mm/memory_hotplug: MEMHP_MERGE_RESOURCE to specify merging of System RAM resources

2020-09-08 Thread David Hildenbrand
Some add_memory*() users add memory in small, contiguous memory blocks. Examples include virtio-mem, hyper-v balloon, and the XEN balloon. This can quickly result in a lot of memory resources, whereby the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs,

[PATCH v2 5/7] virtio-mem: try to merge system ram resources

2020-09-08 Thread David Hildenbrand
virtio-mem adds memory in memory block granularity, to be able to remove it in the same granularity again later, and to grow slowly on demand. This, however, results in quite a lot of resources when adding a lot of memory. Resources are effectively stored in a list-based tree. Having a lot of

Re: [PATCH 2/2] drm/msm/dpu: clean up some impossibilities

2020-09-08 Thread Rob Clark
On Tue, Sep 8, 2020 at 12:44 PM wrote: > > On 2020-09-07 10:04, Rob Clark wrote: > > From: Rob Clark > > > > Signed-off-by: Rob Clark > > --- > > drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 81 > > 1 file changed, 12 insertions(+), 69 deletions(-) > > > > diff --git

[PATCH v2 6/7] xen/balloon: try to merge system ram resources

2020-09-08 Thread David Hildenbrand
Let's try to merge system ram resources we add, to minimize the number of resources in /proc/iomem. We don't care about the boundaries of individual chunks we added. Cc: Andrew Morton Cc: Michal Hocko Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: Roger Pau Monné Cc:

[PATCH v2 2/7] kernel/resource: move and rename IORESOURCE_MEM_DRIVER_MANAGED

2020-09-08 Thread David Hildenbrand
IORESOURCE_MEM_DRIVER_MANAGED currently uses an unused PnP bit, which is always set to 0 by hardware. This is far from beautiful (and confusing), and the bit only applies to SYSRAM. So let's move it out of the bus-specific (PnP) defined bits. We'll add another SYSRAM specific bit soon. If we ever

[PATCH v2 1/7] kernel/resource: make release_mem_region_adjustable() never fail

2020-09-08 Thread David Hildenbrand
Let's make sure splitting a resource on memory hotunplug will never fail. This will become more relevant once we merge selected System RAM resources - then, we'll trigger that case more often on memory hotunplug. In general, this function is already unlikely to fail. When we remove memory, we

[PATCH] dt-bindings: mfd: Correct interrupt flags in examples

2020-09-08 Thread Krzysztof Kozlowski
GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. These are simple defines so they could be used in DTS but they will not have the same meaning: 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE 2. GPIO_ACTIVE_LOW = 1 = IRQ_TYPE_EDGE_RISING Correct the interrupt flags, assuming the

Re: [PATCH] Revert "block: revert back to synchronous request_queue removal"

2020-09-08 Thread Christoph Hellwig
On Tue, Sep 08, 2020 at 03:50:48AM -0400, Ethan Zhao wrote: > From: Ethan Zhao > > 'commit e8c7d14ac6c3 ("block: revert back to synchronous request_queue > removal")' introduced panic issue to NVMe hotplug as following(hit > after just 2 times NVMe SSD hotplug under stable 5.9-RC2): I'm pretty

[PATCH 8/8] arm64: dts: imx8mm-var-som-symphony: Drop unused gpioledgrp

2020-09-08 Thread Krzysztof Kozlowski
The gpioledgrp in iomux is not used, so it can be dropped. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony.dts | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony.dts

[PATCH 2/8] ARM: dts: rk3188: Correct interrupt flags in examples

2020-09-08 Thread Krzysztof Kozlowski
GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. These are simple defines so they could be used in DTS but they will not have the same meaning: 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE 2. GPIO_ACTIVE_LOW = 1 = IRQ_TYPE_EDGE_RISING Correct the interrupt flags without

[PATCH 1/8] ARM: dts: imx6qdl: Correct interrupt flags in examples

2020-09-08 Thread Krzysztof Kozlowski
GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. These are simple defines so they could be used in DTS but they will not have the same meaning: 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE 2. GPIO_ACTIVE_LOW = 1 = IRQ_TYPE_EDGE_RISING Correct the interrupt flags, assuming the

Re: [PATCH v6 3/3] io_uring: allow disabling rings during the creation

2020-09-08 Thread Jens Axboe
On 9/8/20 7:44 AM, Stefano Garzarella wrote: > Hi Jens, > > On Thu, Aug 27, 2020 at 04:58:31PM +0200, Stefano Garzarella wrote: >> This patch adds a new IORING_SETUP_R_DISABLED flag to start the >> rings disabled, allowing the user to register restrictions, >> buffers, files, before to start

Re: [PATCH 1/7] dt-bindings: cpufreq: cpufreq-qcom-hw: Document SM8250 compatible

2020-09-08 Thread Manivannan Sadhasivam
On 0908, Bjorn Andersson wrote: > On Tue 08 Sep 02:57 CDT 2020, Manivannan Sadhasivam wrote: > > > Document the SM8250 SoC specific compatible for Qualcomm Cpufreq HW. The > > hardware block which carries out CPUFreq operations on SM8250 SoC is > > called EPSS. > > > > Signed-off-by: Manivannan

Re: [PATCH 4/7] cpufreq: qcom-hw: Make use of of_match data for offsets and row size

2020-09-08 Thread Manivannan Sadhasivam
On 0908, Amit Kucheria wrote: > On Tue, Sep 8, 2020 at 1:27 PM Manivannan Sadhasivam > wrote: > > > > For preparing the driver to handle further SoC revisions, let's use the > > of_match data for getting the device specific offsets and row size instead > > of defining them globally. > > > >

[PATCH 5/7] power: supply: bq27xxx: add separate flag for single SoC register

2020-09-08 Thread Krzysztof Kozlowski
bq27000, bq27010 and upcoming bq34z100 have a single byte SoC register. However except this similarity, bq34z100 is quite different than bq27000/bq27010, so flag BQ27XXX_O_ZERO cannot be reused here. Add a new bit flag describing that SoC is a single byte register. No functional change for

[PATCH 3/7] power: supply: bq27xxx: adjust whitespace

2020-09-08 Thread Krzysztof Kozlowski
No functional change. Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/bq27xxx_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c index 65806f668b1f..2deac3fbb036 100644 ---

[PATCH 4/7] power: supply: bq27xxx: use BIT() for bit flags

2020-09-08 Thread Krzysztof Kozlowski
BIT() is a preferred way to toggle bit-like flags: no problems with 32/64 bit systems, less chances for mistakes. Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/bq27xxx_battery.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git

[PATCH 6/7] power: supply: bq27xxx: add separate flag for capacity inaccurate

2020-09-08 Thread Krzysztof Kozlowski
bq27000, bq27010 and upcoming bq34z100 have a Capacity Inaccurate flag. However except this similarity, bq34z100 is quite different than bq27000/bq27010, so flag BQ27XXX_O_ZERO cannot be reused here. Add a new bit flag describing this capability. No functional change for bq27000 and bq27010.

[PATCH 7/7] power: supply: bq27xxx: add support for TI bq34z100

2020-09-08 Thread Krzysztof Kozlowski
Add support for new device: the TI bq34z100-G1, a Wide Range Fuel Gauge for Li-Ion, PbA, NiMH, and NiCd batteries. The device shares a lot with other models, although it has its own differences requiring new quirks. This patch was tested on a system equipped with NiMH batteries. Signed-off-by:

[PATCH 1/7] dt-bindings: power: bq27xxx: add bq34z100

2020-09-08 Thread Krzysztof Kozlowski
Add compatible for bq34z100 charger. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml

[PATCH v2] mm: memcg: yield cpu when we fail to charge pages

2020-09-08 Thread Julius Hemanth Pitti
For non root CG, in try_charge(), we keep trying to charge until we succeed. On non-preemptive kernel, when we are OOM, this results in holding CPU forever. On SMP systems, this doesn't create a big problem because oom_reaper get a change to kill victim and make some free pages. However on a

Re: v5.9-rc3-rt3 boot time networking lockdep splat

2020-09-08 Thread Mike Galbraith
On Tue, 2020-09-08 at 14:19 +0200, Sebastian Andrzej Siewior wrote: > > This has nothing to do with the bridge but with the fact that you use a > non standard queue class (something else than pfifo_fast). That must be SUSE, I don't muck about in network land. I downloaded a whole library of RFCs

Re: [PATCH] mm/vmscan: fix infinite loop in drop_slab_node

2020-09-08 Thread Chris Down
drop_caches by its very nature can be extremely performance intensive -- if someone wants to abort after trying too long, they can just send a TASK_KILLABLE signal, no? If exiting the loop and returning to usermode doesn't reliably work when doing that, then _that's_ something to improve, but

[PATCH 2/7] power: supply: bq27xxx: report "not charging" on all types

2020-09-08 Thread Krzysztof Kozlowski
Commit 6f24ff97e323 ("power: supply: bq27xxx_battery: Add the BQ27Z561 Battery monitor") and commit d74534c27775 ("power: bq27xxx_battery: Add support for additional bq27xxx family devices") added support for new device types by copying most of the code and adding necessary quirks. However they

[PATCH net-next] netlabel: Fix some kernel-doc warnings

2020-09-08 Thread Wang Hai
Fixes the following W=1 kernel build warning(s): net/netlabel/netlabel_calipso.c:438: warning: Excess function parameter 'audit_secid' description in 'calipso_doi_remove' net/netlabel/netlabel_calipso.c:605: warning: Excess function parameter 'reg' description in 'calipso_req_delattr'

Re: gcc crashes with general protection faults in 5.9.0-rc3-00091-ge28f0104343d

2020-09-08 Thread Meelis Roos
Replying to myself: This is 5.9.0-rc3-00091-ge28f0104343d on Lenovo t460s that has ran fine up to 5.8.0. Now I reproduced the same problem with 5.9.0-rc3 on a HP desktop with Core2Quad CPU. The call trace is very similar and it's crashing gcc again while compiling 5.9-rc4. But it seems

[PATCH v2 2/2] PCI: sprd: Add support for Unisoc SoCs' PCIe controller

2020-09-08 Thread Hongtao Wu
From: Billows Wu This series adds PCIe controller driver for Unisoc SoCs. This controller is based on DesignWare PCIe IP. Signed-off-by: Billows Wu --- drivers/pci/controller/dwc/Kconfig | 13 ++ drivers/pci/controller/dwc/Makefile| 1 + drivers/pci/controller/dwc/pcie-sprd.c | 231

Re: [PATCH v2 2/6] arm64: dts: ti: k3-j7200-main: Add SERDES lane control mux

2020-09-08 Thread Nishanth Menon
On 17:52-20200907, Roger Quadros wrote: > The SERDES lane control mux registers are present in the > CTRLMMR space. > > Signed-off-by: Roger Quadros > --- > arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git

Re: [GIT PULL] SCSI fixes for 5.9-rc4

2020-09-08 Thread pr-tracker-bot
The pull request you sent on Tue, 08 Sep 2020 08:18:44 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d6dc7e06826bd7bbb654b7a730db99e7020abbf6 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH v5 00/21] kprobes: Unify kretprobe trampoline handlers and make kretprobe lockless

2020-09-08 Thread Masami Hiramatsu
On Tue, 8 Sep 2020 12:37:36 +0200 pet...@infradead.org wrote: > On Thu, Sep 03, 2020 at 10:39:54AM +0900, Masami Hiramatsu wrote: > > > > There's a bug, that might make it miss it. I have a patch. I'll send it > > > shortly. > > > > OK, I've confirmed that the lockdep warns on kretprobe from

[PATCH] dt-bindings: mfd: Convert rn5t618 to json-schema

2020-09-08 Thread Andreas Kemnade
Convert the RN5T618 binding to DT schema format. Also clearly state which regulators are available. Signed-off-by: Andreas Kemnade --- I have noted myself here as maintainer because I wrote most of the code of the several subdevices, although not of the .txt-binding. Due to its .txt-format

Re: [PATCH v4.14.y 0/3] vfio: Fix for CVE-2020-12888

2020-09-08 Thread Alex Williamson
On Tue, 8 Sep 2020 01:47:08 +0530 Ajay Kaher wrote: > CVE-2020-12888 Kernel: vfio: access to disabled MMIO space of some > devices may lead to DoS scenario > > The VFIO modules allow users (guest VMs) to enable or disable access to the > devices' MMIO memory address spaces. If a user

My Dear in the lord

2020-09-08 Thread Mrs. Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited

WARNING: can't access registers at asm_sysvec_call_function_single

2020-09-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f4d51dff Linux 5.9-rc4 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1455d4f990 kernel config: https://syzkaller.appspot.com/x/.config?x=a9075b36a6ae26c9 dashboard link:

Re: [PATCH 24/35] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-09-08 Thread Andrey Konovalov
On Thu, Aug 27, 2020 at 12:38 PM Catalin Marinas wrote: > > On Fri, Aug 14, 2020 at 07:27:06PM +0200, Andrey Konovalov wrote: > > @@ -957,6 +984,7 @@ SYM_FUNC_START(cpu_switch_to) > > mov sp, x9 > > msr sp_el0, x1 > > ptrauth_keys_install_kernel x1, x8, x9, x10 > > +

Re: [PATCH v4.9.y 0/3] vfio: Fix for CVE-2020-12888

2020-09-08 Thread Alex Williamson
On Tue, 8 Sep 2020 02:05:17 +0530 Ajay Kaher wrote: > CVE-2020-12888 Kernel: vfio: access to disabled MMIO space of some > devices may lead to DoS scenario > > The VFIO modules allow users (guest VMs) to enable or disable access to the > devices' MMIO memory address spaces. If a user

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-08 Thread Zi Yan
On 7 Sep 2020, at 3:20, Michal Hocko wrote: > On Fri 04-09-20 14:10:45, Roman Gushchin wrote: >> On Fri, Sep 04, 2020 at 09:42:07AM +0200, Michal Hocko wrote: > [...] >>> An explicit opt-in sounds much more appropriate to me as well. If we go >>> with a specific API then I would not make it 1GB

Re: [PATCH v2 10/11] lockdep: Only trace IRQ edges

2020-09-08 Thread peterz
On Wed, Sep 02, 2020 at 06:48:30AM -0700, Guenter Roeck wrote: > On 9/2/20 2:12 AM, pet...@infradead.org wrote: > > On Wed, Sep 02, 2020 at 11:09:35AM +0200, pet...@infradead.org wrote: > >> On Tue, Sep 01, 2020 at 09:21:37PM -0700, Guenter Roeck wrote: > >>> [0.00] WARNING: CPU: 0 PID: 0

[PATCH v9] binder: transaction latency tracking for user build

2020-09-08 Thread Frankie Chang
Change from v9: - rename timestamp to ts in binder_internal.h for conciseness. - change 'struct timeval' to 'struct timespec64' in binder_internal.h. Change from v8: - change rtc_time_to_tm to rtc_time64_to_tm. - change timeval to __kernel_old_timeval due to

Re: [PATCH 1/7] dt-bindings: cpufreq: cpufreq-qcom-hw: Document SM8250 compatible

2020-09-08 Thread Bjorn Andersson
On Tue 08 Sep 02:57 CDT 2020, Manivannan Sadhasivam wrote: > Document the SM8250 SoC specific compatible for Qualcomm Cpufreq HW. The > hardware block which carries out CPUFreq operations on SM8250 SoC is > called EPSS. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Bjorn Andersson

Re: [PATCH v7 4/5] x86/build: Warn on orphan section placement

2020-09-08 Thread Arvind Sankar
On Sat, Sep 05, 2020 at 06:48:35PM -0400, Arvind Sankar wrote: > On Tue, Sep 01, 2020 at 07:53:46PM -0700, Kees Cook wrote: > > We don't want to depend on the linker's orphan section placement > > heuristics as these can vary between linkers, and may change between > > versions. All sections need

Re: [PATCH] platform/x86: Add Driver to set up lid GPEs on MS Surface device

2020-09-08 Thread Maximilian Luz
On 9/8/20 8:40 PM, Andy Shevchenko wrote: On Tue, Sep 8, 2020 at 8:20 PM Maximilian Luz wrote: ... + .gpe_number = 0x17, + .gpe_number = 0x4D, + .gpe_number = 0x4F, + .gpe_number = 0x57, From where these numbers come from? Can we get them from firmware (ACPI)?

Re: [v1,1/3] dt-bindings: Add YAML schemas for Gen3 PCIe controller

2020-09-08 Thread Rob Herring
On Mon, Sep 07, 2020 at 08:08:50PM +0800, Jianjun Wang wrote: > Add YAML schemas documentation for Gen3 PCIe controller on > MediaTek SoCs. dt-bindings: PCI: mediatek: ... for the subject. > > Acked-by: Ryder Lee > Signed-off-by: Jianjun Wang > --- > .../bindings/pci/mediatek-pcie-gen3.yaml

Re: [PATCH] selftests/seccomp: Add test for unknown SECCOMP_RET kill behavior

2020-09-08 Thread Christian Brauner
On Tue, Sep 08, 2020 at 12:35:18PM -0700, Kees Cook wrote: > While we testing for the behavior of unknown seccomp filter return s/we/we're/ > values, there was no test for how it acted in a thread group. Add > a test in the thread group tests for this. > > Signed-off-by: Kees Cook > --- >

Re: [PATCH 3/3] phy: amlogic: phy-meson-axg-mipi-pcie-analog: add support for MIPI DSI analog

2020-09-08 Thread Remi Pommarel
Hi, On Mon, Sep 07, 2020 at 09:34:02AM +0200, Neil Armstrong wrote: > The AXG Analog MIPI-DSI PHY also provides functions to the PCIe PHY, > thus we need to have inclusive support for both interfaces at runtime. > > This fixes the regmap get from parent node, removes cell param > to select a

Re: [PATCH 02/25] dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen

2020-09-08 Thread Rob Herring
On Mon, 07 Sep 2020 18:11:18 +0200, Krzysztof Kozlowski wrote: > The ADC in S3C/S5P/Exynos SoCs can be used also for handling touch > screen. In such case the second interrupt is required. This second > interrupt can be anyway provided, even without touch screens. This > fixes dtbs_check

Re: [PATCH 02/25] dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen

2020-09-08 Thread Rob Herring
On Mon, Sep 07, 2020 at 06:11:18PM +0200, Krzysztof Kozlowski wrote: > The ADC in S3C/S5P/Exynos SoCs can be used also for handling touch > screen. In such case the second interrupt is required. This second > interrupt can be anyway provided, even without touch screens. This > fixes dtbs_check

[PATCH] net: tc35815: switch from 'pci_' to 'dma_' API

2020-09-08 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'tc35815_init_queues()' GFP_ATOMIC must be used

[PATCH printk v4 1/6] printk: ringbuffer: relocate get_data()

2020-09-08 Thread John Ogness
Move the internal get_data() function as-is above prb_reserve() so that a later change can make use of the static function. Signed-off-by: John Ogness Reviewed-by: Petr Mladek --- kernel/printk/printk_ringbuffer.c | 116 +++--- 1 file changed, 58 insertions(+), 58

[PATCH printk v4 3/6] printk: ringbuffer: clear initial reserved fields

2020-09-08 Thread John Ogness
prb_reserve() will set some meta data values and leave others uninitialized (or rather, containing the values of the previous wrap). Simplify the API by always clearing out all the fields. Only the sequence number is filled in. The caller is now responsible for filling in the rest of the meta data

[PATCH printk v4 2/6] printk: ringbuffer: add BLK_DATALESS() macro

2020-09-08 Thread John Ogness
Rather than continually needing to explicitly check @begin and @next to identify a dataless block, introduce and use a BLK_DATALESS() macro. Signed-off-by: John Ogness Reviewed-by: Petr Mladek --- kernel/printk/printk_ringbuffer.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

<    2   3   4   5   6   7   8   9   10   11   >