[PATCH] w1: Use kobj_to_dev()[RESEND]

2021-03-16 Thread Jian Dong
From: dongjian Use kobj_to_dev() instead of open-coding it Signed-off-by: dongjian --- drivers/w1/slaves/w1_ds2780.c | 2 +- drivers/w1/slaves/w1_ds2781.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2780.c b/drivers/w1/slaves/w1_ds2780.c index

Re: [PATCH v4] mm/vmalloc: randomize vmalloc() allocations

2021-03-16 Thread Topi Miettinen
On 15.3.2021 20.02, Uladzislau Rezki wrote: On Mon, Mar 15, 2021 at 06:23:37PM +0200, Topi Miettinen wrote: On 15.3.2021 17.35, Uladzislau Rezki wrote: On 14.3.2021 19.23, Uladzislau Rezki wrote: Also, using vmaloc test driver i can trigger a kernel BUG: [ 24.627577] kernel BUG at mm/vmall

[v7,0/3] mt8183: Add Mediatek thermal driver and dtsi

2021-03-16 Thread Michael Kao
This patchset supports for MT8183 chip to mtk_thermal.c. Add thermal zone of all the thermal sensor in SoC for another get temperatrue. They don't need to thermal throttle. And we bind coolers for thermal zone nodes of cpu_thermal. Changes in v7: - Fix build error in v6. Changes in v6:

[v7,2/3] arm64: dts: mt8183: Configure CPU cooling

2021-03-16 Thread Michael Kao
From: Matthias Kaehlcke Add two passive trip points at 68??C and 80??C for the CPU temperature. Signed-off-by: Matthias Kaehlcke Signed-off-by: Michael Kao Tested-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 56 1 file changed, 56 insertions(+) di

[v7,1/3] arm64: dts: mt8183: add thermal zone node

2021-03-16 Thread Michael Kao
From: "michael.kao" Add thermal zone node to Mediatek MT8183 dts file. Evaluate the thermal zone every 500ms while not cooling and every 100ms when passive cooling is performed. Signed-off-by: Matthias Kaehlcke Signed-off-by: Michael Kao --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 85

[v7,3/3] thermal: mediatek: add another get_temp ops for thermal sensors

2021-03-16 Thread Michael Kao
Provide thermal zone to read thermal sensor in the SoC. We can read all the thermal sensors value in the SoC by the node /sys/class/thermal/ In mtk_thermal_bank_temperature, return -EAGAIN instead of -EACCESS on the first read of sensor that often are bogus values. This can avoid following warning

Re: WARNING: modpost: vmlinux.o(.text+0x74fea4): Section mismatch in reference from the function memblock_find_in_range_node() to the function .init.text:memblock_bottom_up()

2021-03-16 Thread Mike Rapoport
On Tue, Mar 16, 2021 at 01:23:08AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0 > commit: 34dc2efb39a231280fd6696a59bbe712bf3c5c4a memblock: fix section > mismatch warning >

Re: [PATCH] smp: kernel/panic.c - silence warnings

2021-03-16 Thread heying (H)
Dear Christophe and Randy, You both are so nice. Thank you for your reply. 在 2021/3/16 14:58, Christophe Leroy 写道: Le 16/03/2021 à 07:35, heying (H) a écrit : Thanks for your reply. 在 2021/3/16 13:15, Randy Dunlap 写道: On 3/15/21 9:08 PM, He Ying wrote: We found these warnings in kernel/p

Re: [PATCH v2 2/3] kbuild: check the minimum assembler version in Kconfig

2021-03-16 Thread Masahiro Yamada
On Tue, Mar 16, 2021 at 1:14 AM Masahiro Yamada wrote: > > Documentation/process/changes.rst defines the minimum assembler version > (binutils version), but we have never checked it in the build time. > > Kbuild never invokes 'as' directly because all assembly files in the > kernel tree are *.S, h

Re: [PATCH] ALSA: hda/realtek: fix mute/micmute LEDs for HP 840 G8

2021-03-16 Thread Takashi Iwai
On Tue, 16 Mar 2021 07:54:50 +0100, Jeremy Szu wrote: > > * The HP EliteBook 840 G8 Notebook PC is using ALC285 codec which is >using 0x04 to control mute LED and 0x01 to control micmute LED. >Therefore, add a quirk to make it works. > > Signed-off-by: Jeremy Szu Thanks, applied. Tak

{standard input}:3162: Error: operands mismatch -- statement `eorl %a1,%d2' ignored

2021-03-16 Thread kernel test robot
: m68k-randconfig-r025-20210316 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org

Re: [PATCH 00/30] [Set 2] Rid W=1 warnings in SCSI

2021-03-16 Thread Lee Jones
On Mon, 15 Mar 2021, Martin K. Petersen wrote: > > Lee, > > > This set is part of a larger effort attempting to clean-up W=1 kernel > > builds, which are currently overwhelmingly riddled with niggly little > > warnings. > > Applied to 5.13/scsi-staging, thanks! Superstar! Thanks Martin. Just

[syzbot] kernel panic: corrupted stack end in openat

2021-03-16 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:1e28eed1 Linux 5.12-rc3 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=167535e6d0 kernel config: https://syzkaller.appspot.com/x/.config?x=e0cee1f53de33ca3 dashboard link: https://syzkaller.appspo

Re: [PATCH v1 3/5] dt-bindings: arm: Add cpu-idle-states to Tegra194 CPU nodes

2021-03-16 Thread Sudeep Holla
On Mon, Mar 15, 2021 at 11:13:24AM -0700, Sowjanya Komatineni wrote: > Hi Sudeep, > > I see you are one of the maintainer of PSCI driver. Please add any other > right persons if you think should also agree/comment. > > Can you please comment on below 2 items based on your feedback? > > 1. Can you p

Re: [PATCH v5] mfd: da9063: Support SMBus and I2C mode

2021-03-16 Thread Lee Jones
On Mon, 15 Mar 2021, Mark Jonas wrote: > From: Hubert Streidl > > By default the PMIC DA9063 2-wire interface is SMBus compliant. This > means the PMIC will automatically reset the interface when the clock > signal ceases for more than the SMBus timeout of 35 ms. > > If the I2C driver / device

Re: [PATCH v3 0/4] ALSA: hda/cirrus: Make CS8409 driver more generic by using fixups

2021-03-16 Thread Takashi Iwai
On Mon, 15 Mar 2021 20:07:12 +0100, Vitaly Rodionov wrote: > > This series of patches will address comments by Pierre-Louis Bossart, > cleans up patch_cirrus.c source, reducing checkpatch.pl warnings from 19 to 0, > fixing an issue reported by Canonical: BugLink: > https://bugs.launchpad.net/bugs

Re: [PATCH] Revert "perf/x86: Allow zero PEBS status with only single active event"

2021-03-16 Thread Namhyung Kim
Hi Peter and Kan, On Thu, Mar 4, 2021 at 5:22 AM Peter Zijlstra wrote: > > On Wed, Mar 03, 2021 at 02:53:00PM -0500, Liang, Kan wrote: > > On 3/3/2021 1:59 PM, Peter Zijlstra wrote: > > > On Wed, Mar 03, 2021 at 05:42:18AM -0800, kan.li...@linux.intel.com wrote: > > > > > +++ b/arch/x86/events/in

Re: [PATCH v2] seq_file: Unconditionally use vmalloc for buffer

2021-03-16 Thread Greg Kroah-Hartman
On Mon, Mar 15, 2021 at 01:43:59PM -0700, Kees Cook wrote: > On Mon, Mar 15, 2021 at 06:33:10PM +, Al Viro wrote: > > On Mon, Mar 15, 2021 at 10:48:51AM -0700, Kees Cook wrote: > > > The sysfs interface to seq_file continues to be rather fragile, as seen > > > with some recent exploits[1]. Move

Re: [PATCHv2 1/1] HID: ft260: add usb hid to i2c host bridge driver

2021-03-16 Thread Jiri Kosina
On Thu, 4 Mar 2021, Michael Zaidman wrote: > > > The FTDI FT260 chip implements USB to I2C/UART bridges through two > > > USB HID class interfaces. The first - for I2C, and the second for UART. > > > Each interface is independent, and the kernel detects it as a separate > > > USB hidraw device. >

[PATCH] perf stat: Align CSV output for summary mode

2021-03-16 Thread Jin Yao
perf-stat has supported the summary mode. But the summary lines break the CSV output so it's hard for scripts to parse the result. Before: # perf stat -x, -I1000 --interval-count 1 --summary 1.001323097,8013.48,msec,cpu-clock,8013483384,100.00,8.013,CPUs utilized 1.001323097,270,,

Re: [EXT] [PATCH 0/2] enable flexspi support on imx8mp

2021-03-16 Thread Heiko Schocher
Hello Kuldeep, On 16.03.21 07:42, Kuldeep Singh wrote: > Hi Heiko, > >> -Original Message- >> From: Heiko Schocher >> Sent: Tuesday, March 16, 2021 10:34 AM >> To: linux-...@vger.kernel.org >> Cc: Heiko Schocher ; linux-arm-ker...@lists.infradead.org; >> Ashish Kumar ; Kuldeep Singh >> ;

[PATCH] sched: completion: Reinterpret the meaning of completion_done()

2021-03-16 Thread Wang Qing
The most intuitive meaning of completion_done() is to see if a completion has been done, done=0 can only indicate that someone may be waiting. Signed-off-by: Wang Qing --- kernel/sched/completion.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/completion.c

[PATCH V3] kbuild: Allow .dtso format for overlay source files

2021-03-16 Thread Viresh Kumar
Since the overlays dtb files are now named as .dtbo, there is a lot of interest in similarly naming the overlay source dts files as .dtso. This patch makes the necessary changes to allow .dtso format for overlay source files. Note that the device-tree unit-tests name their overlay files as .dts a

Re: [PATCH] Insert SFENCE.VMA in function set_pte_at for RISCV

2021-03-16 Thread Anup Patel
On Tue, Mar 16, 2021 at 12:27 PM Jiuyang Liu wrote: > > > As per my understanding, we don't need to explicitly invalidate local TLB > > in set_pte() or set_pet_at() because generic Linux page table management > > (/mm/*) will call the appropriate flush_tlb_xyz() function after page > > table updat

[PATCH] selftests: remove duplicate include

2021-03-16 Thread menglong8 . dong
From: Zhang Yunkai 'assert.h' included in 'sparsebit.c' is duplicated. It is also included in the 161th line. 'string.h' included in 'mincore_selftest.c' is duplicated. It is also included in the 15th line. 'sched.h' included in 'tlbie_test.c' is duplicated. It is also included in the 33th line.

RE: [RFC PATCH v4 2/3] scheduler: add scheduler level for clusters

2021-03-16 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Tuesday, March 2, 2021 11:43 PM > To: Song Bao Hua (Barry Song) > Cc: tim.c.c...@linux.intel.com; catalin.mari...@arm.com; w...@kernel.org; > r...@rjwysocki.net; vincent.guit...@linaro.org; b...@alien8.de;

Re: [PATCH 1/2] tools/x86/kcpuid: Check last token too

2021-03-16 Thread Feng Tang
On Mon, Mar 15, 2021 at 01:59:00PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > Input lines like > > 0x801E, 0, EAX, 31:0, Extended APIC ID > > where the short name is missing lead to a segfault because the loop > takes the long name for the short name and tokens[5] bec

Re: [mm/highmem] 61b205f579: WARNING:at_mm/highmem.c:#__kmap_local_sched_out

2021-03-16 Thread Ira Weiny
Adding Thomas. Thomas I've been looking into the following test failure: https://lore.kernel.org/lkml/20210304083825.GB17830@xsang-OptiPlex-9020/ See below. On Fri, Mar 12, 2021 at 02:27:55PM +0800, Oliver Sang wrote: > Hi Ira, [snip] > > > > > > > > caused below changes (please refer to att

Re: [PATCH v6 1/2] erofs: avoid memory allocation failure during rolling decompression

2021-03-16 Thread Chao Yu
On 2021/3/16 11:15, Huang Jianan via Linux-erofs wrote: Currently, err would be treated as io error. Therefore, it'd be better to ensure memory allocation during rolling decompression to avoid such io error. In the long term, we might consider adding another !Uptodate case for such case. Signed

Re: [PATCH v7] i2c: virtio: add a virtio i2c frontend driver

2021-03-16 Thread Viresh Kumar
On 12-03-21, 13:41, Viresh Kumar wrote: > > > > +static struct i2c_adapter virtio_adapter = { > > > > + .owner = THIS_MODULE, > > > > + .name = "Virtio I2C Adapter", > > > > + .class = I2C_CLASS_DEPRECATED, > > > What happened to this discussion ? > > > > > > https://lore.kernel.

Re: [PATCH 2/2] tools/x86/kcpuid: Add AMD leaf 0x8000001E

2021-03-16 Thread Feng Tang
On Mon, Mar 15, 2021 at 01:59:01PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > Contains core IDs, node IDs and other topology info. > > Signed-off-by: Borislav Petkov Acked-by: Feng Tang Also I'm wondering for some basic leaf and extended leaf which may has different definition

Re: [PATCH v8] i2c: virtio: add a virtio i2c frontend driver

2021-03-16 Thread Viresh Kumar
On 16-03-21, 18:35, Jie Deng wrote: > +static struct i2c_adapter virtio_adapter = { > + .owner = THIS_MODULE, > + .name = "Virtio I2C Adapter", > + .class = I2C_CLASS_DEPRECATED, > + .algo = &virtio_algorithm, > +}; > + > +static int virtio_i2c_probe(struct virtio_device *vdev) > +{

Re: [PATCH] Rectify spelling and grammar

2021-03-16 Thread Hans Verkuil
Hi Xiaofeng Cao, The patch is good, but scripts/checkpatch.pl complains about a mismatch: WARNING: From:/Signed-off-by: email address mismatch: 'From: Xiaofeng Cao ' != 'Signed-off-by: Xiaofeng Cao ' Which is the one I should use? Regards, Hans On 11/03/2021 08:20, Xiaofeng Cao wrote

[PATCH] ALSA: hda/realtek: fix mute/micmute LEDs for HP 440 G8

2021-03-16 Thread Jeremy Szu
The HP EliteBook 840 G8 Notebook PC is using ALC236 codec which is using 0x02 to control mute LED and 0x01 to control micmute LED. Therefore, add a quirk to make it works. Signed-off-by: Jeremy Szu --- sound/pci/hda/patch_realtek.c | 12 1 file changed, 12 insertions(+) diff --git

Re: [PATCH v10 1/2] scsi: ufs: Enable power management for wlun

2021-03-16 Thread Adrian Hunter
On 16/03/21 12:22 am, Asutosh Das (asd) wrote: > On 3/14/2021 1:11 AM, Adrian Hunter wrote: >> On 10/03/21 5:04 am, Asutosh Das (asd) wrote: >>> On 3/9/2021 7:56 AM, Asutosh Das (asd) wrote: On 3/8/2021 9:17 AM, Rafael J. Wysocki wrote: > On Mon, Mar 8, 2021 at 5:21 PM Rafael J. Wysocki

[PATCH] scsi: bfa: fix warning comparing pointer to 0

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/scsi/bfa/bfad_bsg.c:3412:29-30: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/bfa/bfad_bsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/bfa/bfad_bsg.c

Re: [PATCH] wfx: fix irqf_oneshot.cocci warnings

2021-03-16 Thread Jérôme Pouiller
Hello, On Monday 15 March 2021 22:09:20 CET kernel test robot wrote: > > From: kernel test robot > > drivers/net/wireless/silabs/wfx/bus_sdio.c:134:8-33: ERROR: Threaded IRQ with > no primary handler requested without IRQF_ONESHOT > > Since commit 1c6c69525b40 ("genirq: Reject bogus threaded

Re: [PATCH v8] i2c: virtio: add a virtio i2c frontend driver

2021-03-16 Thread Viresh Kumar
On 16-03-21, 18:35, Jie Deng wrote: > diff --git a/drivers/i2c/busses/i2c-virtio.c b/drivers/i2c/busses/i2c-virtio.c > +struct virtio_i2c { > + struct virtio_device *vdev; > + struct completion completion; > + struct i2c_adapter *adap; > + struct mutex lock; > + struct virtqueue

Re: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

2021-03-16 Thread Aili Yao
> As you answered in another email, p->mce_vaddr is set only on KERNEL_COPYIN > case, > then if p->mce_vaddr is available also for generic SRAR MCE (I'm assuming > that we are > talking about issues on race between generic SRAR MCE not only for > KERNEL_COPYIN case), > that might be helpful, alt

Re: [PATCH v23 02/10] fs/ntfs3: Add initialization of super block

2021-03-16 Thread Oleksandr Natalenko
Hi. On Mon, Mar 15, 2021 at 05:44:06PM +0300, Konstantin Komarov wrote: > This adds initialization of super block > > ...SNIP... > > + > +/* > + * Helper for ntfs_loadlog_and_replay > + * fill on-disk logfile range by (-1) > + * this means empty logfile > + */ > +int ntfs_bio_fill_1(struct ntfs_s

Re: [PATCH] media: em28xx: Fix missing check in em28xx_capture_start

2021-03-16 Thread Hans Verkuil
Hi Dinghao Liu, Thank you for the patch, but I've decided not to take it. While the patch looks fine, it is not very useful since the return code of the em28xx_capture_start() function is never checked. And I am hesitant to change the behavior here in case it might break something subtle. Ideally

[PATCH v2] phy: tegra: depend on COMMON_CLK to fix compile tests

2021-03-16 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski The Tegra USB PHY driver uses Common Clock Framework thus it cannot be built on platforms without it (e.g. compile test on MIPS with RALINK and SOC_RT305X): /usr/bin/mips-linux-gnu-ld: drivers/usb/phy/phy-tegra-usb.o: in function `tegra_usb_phy_init': phy-tegra

[PATCH RESEND] media: atomisp: do not select COMMON_CLK to fix builds

2021-03-16 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski COMMON_CLK is a user-selectable option with its own dependencies. The most important dependency is !HAVE_LEGACY_CLK. User-selectable drivers should not select COMMON_CLK because they will create a dependency cycle and build failures. Signed-off-by: Krzysztof Kozlowski

Re: [PATCH v1 09/14] mm: multigenerational lru: mm_struct list

2021-03-16 Thread Yu Zhao
On Tue, Mar 16, 2021 at 02:44:31PM +0800, Huang, Ying wrote: > Yu Zhao writes: > > > On Tue, Mar 16, 2021 at 10:07:36AM +0800, Huang, Ying wrote: > >> Rik van Riel writes: > >> > >> > On Sat, 2021-03-13 at 00:57 -0700, Yu Zhao wrote: > >> > > >> >> +/* > >> >> + * After pages are faulted in, th

Re: [RFC PATCH v2 06/11] dma-direct: Support PCI P2PDMA pages in dma-direct map_sg

2021-03-16 Thread Christoph Hellwig
On Fri, Mar 12, 2021 at 06:11:17PM +, Robin Murphy wrote: > Sure, that's how things stand immediately after this patch. But then > someone comes along with the perfectly reasonable argument for returning > more expressive error information for regular mapping failures as well > (because some

[PATCH v1 1/4] powerpc: Activate HAVE_RELIABLE_STACKTRACE for all

2021-03-16 Thread Christophe Leroy
CONFIG_HAVE_RELIABLE_STACKTRACE is applicable to all, no reason to limit it to book3s/64le Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 2 +- arch/powerpc/kernel/stacktrace.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/Kconfig b/ar

[PATCH v1 4/4] powerpc: Fix arch_stack_walk() to have running function as first entry

2021-03-16 Thread Christophe Leroy
It seems like other architectures, namely x86 and arm64 and riscv at least, include the running function as top entry when saving stack trace with save_stack_trace_regs(). Functionnalities like KFENCE expect it. Do the same on powerpc, it allows KFENCE and other users to properly identify the fau

[PATCH v1 2/4] powerpc: Rename 'tsk' parameter into 'task'

2021-03-16 Thread Christophe Leroy
To better match generic code, rename 'tsk' to 'task' in some stacktrace functions in preparation of following patch which converts powerpc to generic ARCH_STACKWALK. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/stacktrace.c | 16 1 file changed, 8 insertions(+), 8 del

[PATCH v1 3/4] powerpc: Convert stacktrace to generic ARCH_STACKWALK

2021-03-16 Thread Christophe Leroy
This patch converts powerpc stacktrace to the generic ARCH_STACKWALK implemented by commit 214d8ca6ee85 ("stacktrace: Provide common infrastructure") Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/stacktrace.c | 91 ++-

Re: [RFC PATCH v2 06/11] dma-direct: Support PCI P2PDMA pages in dma-direct map_sg

2021-03-16 Thread Christoph Hellwig
On Fri, Mar 12, 2021 at 11:27:46AM -0700, Logan Gunthorpe wrote: > So then we reject the patches that make that change. Seems like an odd > argument to say that we can't do something that won't cause problems > because someone might use it as an example and do something that will > cause problems.

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 8:18 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:1e28eed1 Linux 5.12-rc3 > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=167535e6d0 > kernel config: https://syzkaller.appspot.com/x/.con

[PATCH v2 0/2] enable flexspi support on imx8mp

2021-03-16 Thread Heiko Schocher
add compatible entry in nxp_fspi driver for imx8mp @Shawn: If this series is accepted, can you apply the DTS patches from series v2? http://lists.infradead.org/pipermail/linux-arm-kernel/2021-March/643292.html http://lists.infradead.org/pipermail/linux-arm-kernel/2021-March/643293.html Changes i

[PATCH] selftests/bpf: fix warning comparing pointer to 0

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warning: ./tools/testing/selftests/bpf/progs/fexit_test.c:77:15-16: WARNING comparing pointer to 0. ./tools/testing/selftests/bpf/progs/fexit_test.c:68:12-13: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/s

[PATCH v2 1/2] spi: fspi: enable fspi driver for on imx8mp

2021-03-16 Thread Heiko Schocher
add compatible entry in nxp_fspi driver for imx8mp. Signed-off-by: Heiko Schocher --- Changes in v4: rebased against: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next a43e89624baea ("Merge remote-tracking branch 'spi/for-5.13' into spi-next") Changes in v3: - seperate spi

Re: [RFC PATCH v2 07/11] dma-mapping: Add flags to dma_map_ops to indicate PCI P2PDMA support

2021-03-16 Thread Christoph Hellwig
On Mon, Mar 15, 2021 at 10:33:13AM -0600, Logan Gunthorpe wrote: > >> + return !ops || ops->flags & DMA_F_PCI_P2PDMA_SUPPORTED; > > > > Is this logic correct? I would have expected. > > > > return (ops && ops->flags & DMA_F_PCI_P2PDMA_SUPPORTED); > > > If ops is NULL then the operations i

[PATCH v2 2/2] dt-bindings: spi: add compatible entry for imx8mp in FlexSPI controller

2021-03-16 Thread Heiko Schocher
add compatible entry "nxp,imx8mp-fspi" in NXP FlexSPI controller Signed-off-by: Heiko Schocher --- Changes in v4: rebased against: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next a43e89624baea ("Merge remote-tracking branch 'spi/for-5.13' into spi-next") Changes in v3: -

Re: [RFC PATCH v2 09/11] block: Add BLK_STS_P2PDMA

2021-03-16 Thread Christoph Hellwig
On Thu, Mar 11, 2021 at 04:31:39PM -0700, Logan Gunthorpe wrote: > Create a specific error code for when P2PDMA pages are passed to a block > devices that cannot map them (due to no IOMMU support or ACS protections). > > This makes request errors in these cases more informative of as to what > cau

RE: slow boot with 7fef431be9c9 ("mm/page_alloc: place pages to tail in __free_pages_core()")

2021-03-16 Thread Liang, Liang (Leo)
[AMD Public Use] Hi Mike, Thanks for help. The patch works for me and boot time back to normal. So it's a fix, or just WA? BRs, Leo -Original Message- From: Mike Rapoport Sent: Tuesday, March 16, 2021 2:50 PM To: Liang, Liang (Leo) Cc: David Hildenbrand ; Deucher, Alexander ; linux-

[RESEND PATCH v5 2/2] bio: add limit_bio_size sysfs

2021-03-16 Thread Changheun Lee
Add limit_bio_size block sysfs node to limit bio size. Queue flag QUEUE_FLAG_LIMIT_BIO_SIZE will be set if limit_bio_size is set. And bio max size will be limited by queue max sectors via QUEUE_FLAG_LIMIT_BIO_SIZE set. Signed-off-by: Changheun Lee --- Documentation/ABI/testing/sysfs-block | 10 +

[RESEND PATCH v5 1/2] bio: limit bio max size

2021-03-16 Thread Changheun Lee
bio size can grow up to 4GB when muli-page bvec is enabled. but sometimes it would lead to inefficient behaviors. in case of large chunk direct I/O, - 32MB chunk read in user space - all pages for 32MB would be merged to a bio structure if the pages physical addresses are contiguous. it makes some

Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files

2021-03-16 Thread Geert Uytterhoeven
Hi Frank, On Tue, Mar 16, 2021 at 6:39 AM Frank Rowand wrote: > On 3/15/21 5:12 PM, Laurent Pinchart wrote: > > On Tue, Mar 16, 2021 at 02:43:45AM +0900, Masahiro Yamada wrote: > >> But how can we fix drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a779*.dts > >> if these are doing bad things. > >> The

Re: [PATCH v4] mm/vmalloc: randomize vmalloc() allocations

2021-03-16 Thread Topi Miettinen
On 15.3.2021 19.47, Uladzislau Rezki wrote: On Mon, Mar 15, 2021 at 09:16:26AM -0700, Kees Cook wrote: On Mon, Mar 15, 2021 at 01:24:10PM +0100, Uladzislau Rezki wrote: On Mon, Mar 15, 2021 at 11:04:42AM +0200, Topi Miettinen wrote: What's the problem with that? It seems to me that nothing rel

RE: [kbuild-all] Re: [PATCH] wfx: fix irqf_oneshot.cocci warnings

2021-03-16 Thread Li, Philip
> Subject: [kbuild-all] Re: [PATCH] wfx: fix irqf_oneshot.cocci warnings > > Hello, > > On Monday 15 March 2021 22:09:20 CET kernel test robot wrote: > > > > From: kernel test robot > > > > drivers/net/wireless/silabs/wfx/bus_sdio.c:134:8-33: ERROR: Threaded IRQ > > with no primary handler requ

Re: [PATCH v15 0/4] Adding the Sparx5 Serdes driver

2021-03-16 Thread Steen Hegelund
Hi Jacub, On Mon, 2021-03-15 at 10:26 -0700, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, 15 Mar 2021 16:04:24 +0100 Steen Hegelund wrote: > > Hi Kishon, Vinod, Andrew, Jacub, and David, > > > > I just wanted to

Re: [PATCH v15 0/4] Adding the Sparx5 Serdes driver

2021-03-16 Thread Steen Hegelund
Hi Vinod, On Tue, 2021-03-16 at 10:23 +0530, Vinod Koul wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Hello Steen, > > On 15-03-21, 16:04, Steen Hegelund wrote: > > Hi Kishon, Vinod, Andrew, Jacub, and David, > > > > I just wanted to

Re: [PATCH net] docs: net: ena: Fix ena_start_xmit() function name typo

2021-03-16 Thread Shay Agroskin
Zenghui Yu writes: The ena.rst documentation referred to end_start_xmit() when it should refer to ena_start_xmit(). Fix the typo. Signed-off-by: Zenghui Yu --- Documentation/networking/device_drivers/ethernet/amazon/ena.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [RFC PATCH v6 00/22] virtio/vsock: introduce SOCK_SEQPACKET support

2021-03-16 Thread Stefano Garzarella
On Tue, Mar 16, 2021 at 06:37:31AM +0300, Arseny Krasnov wrote: On 15.03.2021 18:22, Arseny Krasnov wrote: On 15.03.2021 14:40, Stefano Garzarella wrote: Hi Arseny, On Sun, Mar 07, 2021 at 08:57:19PM +0300, Arseny Krasnov wrote: This patchset implements support of SOCK_SEQPACKET for

[PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c:721:65-70: WARNING: conversion to bool not needed here. ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c:1139:67-72: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: J

Re: [PATCH v7 2/3] block: add bdev_interposer

2021-03-16 Thread Ming Lei
On Fri, Mar 12, 2021 at 06:44:54PM +0300, Sergei Shtepa wrote: > bdev_interposer allows to redirect bio requests to another devices. > > Signed-off-by: Sergei Shtepa > --- > block/bio.c | 2 ++ > block/blk-core.c | 57 +++ > block/genhd

[PATCH RESEND v4] MAINTAINERS: move Milo Kim to credits

2021-03-16 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski Milo Kim's email in TI bounces with permanent error (550: Invalid recipient). Last email from him on LKML was in 2017. Move Milo Kim to credits and remove the separate driver entries for: - TI LP855x backlight driver, - TI LP8727 charger driver, - TI LP8788 MFD (ADC

[PATCH] bcache: use NULL instead of using plain integer as pointer

2021-03-16 Thread Yang Li
This fixes the following sparse warnings: drivers/md/bcache/features.c:22:16: warning: Using plain integer as NULL pointer Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/md/bcache/features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/bcache/featu

Re: [RFC PATCH v2 06/11] dma-direct: Support PCI P2PDMA pages in dma-direct map_sg

2021-03-16 Thread Christoph Hellwig
On Thu, Mar 11, 2021 at 04:31:36PM -0700, Logan Gunthorpe wrote: > for_each_sg(sgl, sg, nents, i) { > + if (is_pci_p2pdma_page(sg_page(sg))) { > + if (sg_page(sg)->pgmap != pgmap) { > + pgmap = sg_page(sg)->pgmap; > +

Re: [RFC PATCH v2 04/11] PCI/P2PDMA: Introduce pci_p2pdma_should_map_bus() and pci_p2pdma_bus_offset()

2021-03-16 Thread Christoph Hellwig
On Thu, Mar 11, 2021 at 04:31:34PM -0700, Logan Gunthorpe wrote: > Introduce pci_p2pdma_should_map_bus() which is meant to be called by > DMA map functions to determine how to map a given p2pdma page. > > pci_p2pdma_bus_offset() is also added to allow callers to get the bus > offset if they need t

Re: [RFC v2] net: sched: implement TCQ_F_CAN_BYPASS for lockless qdisc

2021-03-16 Thread Eric Dumazet
On Tue, Mar 16, 2021 at 1:35 AM Yunsheng Lin wrote: > > On 2021/3/16 2:53, Jakub Kicinski wrote: > > On Mon, 15 Mar 2021 11:10:18 +0800 Yunsheng Lin wrote: > >> @@ -606,6 +623,11 @@ static const u8 prio2band[TC_PRIO_MAX + 1] = { > >> */ > >> struct pfifo_fast_priv { > >> struct skb_array q

Re: [RFC PATCH v2 07/11] dma-mapping: Add flags to dma_map_ops to indicate PCI P2PDMA support

2021-03-16 Thread Christoph Hellwig
On Thu, Mar 11, 2021 at 04:31:37PM -0700, Logan Gunthorpe wrote: > +int dma_pci_p2pdma_supported(struct device *dev) > +{ > + const struct dma_map_ops *ops = get_dma_ops(dev); > + > + return !ops || ops->flags & DMA_F_PCI_P2PDMA_SUPPORTED; > +} > +EXPORT_SYMBOL(dma_pci_p2pdma_supported); E

Re: [PATCH v3 1/1] fs: Allow no_new_privs tasks to call chroot(2)

2021-03-16 Thread Mickaël Salaün
On 15/03/2021 22:17, Kees Cook wrote: > On Thu, Mar 11, 2021 at 11:52:42AM +0100, Mickaël Salaün wrote: >> [...] >> This change may not impact systems relying on other permission models >> than POSIX capabilities (e.g. Tomoyo). Being able to use chroot(2) on >> such systems may require to update

Re: [PATCH 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-03-16 Thread Paolo Bonzini
On 15/03/21 19:19, Maxim Levitsky wrote: On Mon, 2021-03-15 at 18:56 +0100, Paolo Bonzini wrote: On 15/03/21 18:43, Maxim Levitsky wrote: + if (!guest_cpuid_is_intel(vcpu)) { + /* +* If hardware supports Virtual VMLOAD VMSAVE then enable it +*

Re: [PATCH 01/13] tools: disable -Wno-type-limits

2021-03-16 Thread Rasmus Villemoes
On 16/03/2021 02.54, Yury Norov wrote: > GENMASK(h, l) may be passed with unsigned types. In such case, type-limits > warning is generated for example in case of GENMASK(h, 0). > > Signed-off-by: Yury Norov > --- > tools/scripts/Makefile.include | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: [PATCH 02/13] tools: bitmap: sync function declarations with the kernel

2021-03-16 Thread Rasmus Villemoes
On 16/03/2021 02.54, Yury Norov wrote: > Some functions in tools/include/linux/bitmap.h declare nbits as int. In the > kernel nbits is declared as unsigned int. > > Signed-off-by: Yury Norov Acked-by: Rasmus Villemoes

Re: [PATCH v13 00/15] SMMUv3 Nested Stage Setup (IOMMU part)

2021-03-16 Thread Auger Eric
Hi Krishna, On 3/15/21 7:04 PM, Krishna Reddy wrote: > Tested-by: Krishna Reddy > >> 1) pass the guest stage 1 configuration > > Validated Nested SMMUv3 translations for NVMe PCIe device from Guest VM along > with patch series "v11 SMMUv3 Nested Stage Setup (VFIO part)" and QEMU patch > series

[PATCH v5] mfd: da9063: Support SMBus and I2C mode

2021-03-16 Thread Jonas Mark (BT-FIR/ENG1-Grb)
Hi Lee, > Code looks good to me now, thanks. > > However, this doesn't look like it would pass checkpatch. > > Have you tried to build with W=1 and checkpatch? Yes, we used checkpatch.pl. $ ./scripts/checkpatch.pl 0001-mfd-da9063-Support-SMBus-and-I2C-mode.v5 total: 0 errors, 0 warning

[PATCH] MEDIA CODA: Fix NULL ptr dereference in the encoder.

2021-03-16 Thread Krzysztof Halasa
ctx->mb_err_cnt_ctrl could be NULL in case of failed initialization (on decoders), and encoders don't use it at all. Fixes: b2d3bef1aa78 ("media: coda: Add a V4L2 user for control error macroblocks count") Signed-off-by: Krzysztof Halasa Cc: sta...@vger.kernel.org # 5.11+ diff --git a/drivers/m

Re: [PATCH v1 10/14] mm: multigenerational lru: core

2021-03-16 Thread Yu Zhao
On Tue, Mar 16, 2021 at 02:52:52PM +0800, Huang, Ying wrote: > Yu Zhao writes: > > > On Tue, Mar 16, 2021 at 10:08:51AM +0800, Huang, Ying wrote: > >> Yu Zhao writes: > >> [snip] > >> > >> > +/* Main function used by foreground, background and user-triggered > >> > aging. */ > >> > +static boo

Re: [PATCH v6 2/2] erofs: decompress in endio if possible

2021-03-16 Thread Chao Yu
Hi Jianan, On 2021/3/16 11:15, Huang Jianan via Linux-erofs wrote: z_erofs_decompressqueue_endio may not be executed in the atomic context, for example, when dm-verity is turned on. In this scenario, data can be decompressed directly to get rid of additional kworker scheduling overhead. Also, it

Re: [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.

2021-03-16 Thread Borislav Petkov
Yet another useless report! On Tue, Mar 16, 2021 at 07:50:10AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu > head: 301cddc21a157a3072d789a3097857202e550a24 > commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynam

Re: [PATCH] Rectify spelling and grammar

2021-03-16 Thread Hans Verkuil
On 16/03/2021 09:16, Xiaofeng Cao wrote: > Hi Hans Verkuil, > > I'm sorry to make you confused. Please use Xiaofeng Cao > mailto:caoxiaof...@yulong.com>> Thanks, I've updated this to keep checkpatch happy. BTW, for your next patch: it is good practice to add a prefix of the driver you are patch

Re: [PATCH] Insert SFENCE.VMA in function set_pte_at for RISCV

2021-03-16 Thread Andrew Waterman
On Tue, Mar 16, 2021 at 12:32 AM Anup Patel wrote: > > On Tue, Mar 16, 2021 at 12:27 PM Jiuyang Liu wrote: > > > > > As per my understanding, we don't need to explicitly invalidate local TLB > > > in set_pte() or set_pet_at() because generic Linux page table management > > > (/mm/*) will call the

RE: [PATCH v5 05/10] scsi: ufshpb: Region inactivation in host mode

2021-03-16 Thread Avri Altman
> >> --- > >> drivers/scsi/ufs/ufshpb.c | 14 ++ > >> drivers/scsi/ufs/ufshpb.h | 1 + > >> 2 files changed, 15 insertions(+) > >> > >> diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c > >> index 6f4fd22eaf2f..0744feb4d484 100644 > >> --- a/drivers/scsi/ufs/ufshpb.c

Re: [PATCH v2] seq_file: Unconditionally use vmalloc for buffer

2021-03-16 Thread Michal Hocko
On Mon 15-03-21 10:48:51, Kees Cook wrote: > The sysfs interface to seq_file continues to be rather fragile, as seen > with some recent exploits[1]. Move the seq_file buffer to the vmap area > (while retaining the accounting flag), since it has guard pages that > will catch and stop linear overflow

RE: [PATCH v5 08/10] scsi: ufshpb: Limit the number of inflight map requests

2021-03-16 Thread Avri Altman
> > > On 2021-03-02 21:25, Avri Altman wrote: > > in host control mode the host is the originator of map requests. To not > > in -> In Done. > > Thanks, > Can Guo. > > > flood the device with map requests, use a simple throttling mechanism > > that limits the number of inflight map requests.

Re: [PATCH 3/3] KVM: SVM: allow to intercept all exceptions for debug

2021-03-16 Thread Joerg Roedel
Hi Maxim, On Tue, Mar 16, 2021 at 12:10:20AM +0200, Maxim Levitsky wrote: > -static int (*const svm_exit_handlers[])(struct kvm_vcpu *vcpu) = { > +static int (*svm_exit_handlers[])(struct kvm_vcpu *vcpu) = { Can you keep this const and always set the necessary handlers? If exceptions are not inte

Re: [PATCH mm] kfence: fix printk format for ptrdiff_t

2021-03-16 Thread Christophe Leroy
+segher Le 03/03/2021 à 13:27, Alexander Potapenko a écrit : On Wed, Mar 3, 2021 at 1:12 PM Marco Elver wrote: Use %td for ptrdiff_t. Link: https://lkml.kernel.org/r/3abbe4c9-16ad-c168-a90f-087978ccd...@csgroup.eu Reported-by: Christophe Leroy Signed-off-by: Marco Elver Reviewed-by: Alexa

drivers/usb/host/ohci-hcd.c:1318 ohci_hcd_mod_init() warn: ignoring unreachable code.

2021-03-16 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1a4431a5db2bf800c647ee0ed87f2727b8d6c29c commit: bbd7ffdbef6888459f301c5889f3b14ada38b913 clk: Allow the common clk framework to be selectable config: arm-randconfig-m031-20210316 (attached as .config

Re: [f2fs] ab2dbddfd0: BUG:kernel_NULL_pointer_dereference,address

2021-03-16 Thread Chao Yu
Hi Sahitya, Node manager was initialized after segment manager's initialization, so f2fs_available_free_memory() called from issue_discard_thread() may access invalid nm_i pointer, could you please check and fix this case? On 2021/3/16 12:58, kernel test robot wrote: Greeting, FYI, we notice

RE: [PATCH v5 04/10] scsi: ufshpb: Make eviction depends on region's reads

2021-03-16 Thread Avri Altman
> > int ret = 0; > > @@ -1263,6 +1271,16 @@ static int ufshpb_add_region(struct ufshpb_lu > > *hpb, struct ufshpb_region *rgn) > >* because the device could detect this region > >* by not issuing HPB_READ > >*/ > > + > >

Re: [PATCH 3/3] KVM: SVM: allow to intercept all exceptions for debug

2021-03-16 Thread Borislav Petkov
On Tue, Mar 16, 2021 at 12:10:20AM +0200, Maxim Levitsky wrote: > Add a new debug module param 'debug_intercept_exceptions' which will allow the > KVM to intercept any guest exception, and forward it to the guest. > > This can be very useful for guest debugging and/or KVM debugging with kvm > tra

Re: [PATCH 04/13] lib: introduce BITS_{FIRST,LAST} macro

2021-03-16 Thread Rasmus Villemoes
On 16/03/2021 02.54, Yury Norov wrote: > BITMAP_{LAST,FIRST}_WORD_MASK() in linux/bitmap.h duplicates the > functionality of GENMASK(). The scope of BITMAP* macros is wider > than just bitmaps. This patch defines 4 new macros: BITS_FIRST(), > BITS_LAST(), BITS_FIRST_MASK() and BITS_LAST_MASK() in l

Re: [PATCH v7 3/3] arm64: dts: reset: add microchip sparx5 switch reset driver

2021-03-16 Thread Steen Hegelund
Hi Rob, On Mon, 2021-03-08 at 12:59 -0700, Rob Herring wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On Wed, Mar 03, 2021 at 09:11:58AM +0100, Steen Hegelund wrote: > > This provides reset driver support for the Microchip Sparx5 PCB134 >

Re: [PATCH v4 06/11] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-16 Thread Hans Verkuil
On 15/03/2021 18:36, Ricardo Ribalda wrote: > Create all the class controls for the device defined controls. > > Fixes v4l2-compliance: > Control ioctls (Input 0): > fail: v4l2-test-controls.cpp(216): missing control class for > class 0098 > fail: v4l2-test-control

Re: slow boot with 7fef431be9c9 ("mm/page_alloc: place pages to tail in __free_pages_core()")

2021-03-16 Thread David Hildenbrand
On 16.03.21 09:00, Liang, Liang (Leo) wrote: [AMD Public Use] Hi Mike, Thanks for help. The patch works for me and boot time back to normal. So it's a fix, or just WA? Hi Leo, excluding up to 16 MiB of memory on every system just because that single platform is weird is not acceptable. I

  1   2   3   4   5   6   7   8   9   10   >