Re: [PATCH net-next v2 01/11] dt-bindings: net: dsa: convert ksz bindings document to yaml

2020-11-16 Thread Christian Eggers
On Monday, 16 November 2020, 15:37:20 CET, Rob Herring wrote: > On Thu, 12 Nov 2020 16:35:27 +0100, Christian Eggers wrote: > > Convert the bindings document for Microchip KSZ Series Ethernet switches > > from txt to yaml. > > > > Signed-off-by: Christian Eggers > > --- > > > >

Re: [FIX bpf,perf] bpf,perf: return EOPNOTSUPP for bpf handler on PERF_COUNT_SW_DUMMY

2020-11-16 Thread Peter Zijlstra
On Mon, Nov 16, 2020 at 01:02:09PM -0800, Martin KaFai Lau wrote: > On Mon, Nov 16, 2020 at 07:37:52PM +0100, Florian Lehner wrote: > > bpf handlers for perf events other than tracepoints, kprobes or uprobes > > are attached to the overflow_handler of the perf event. > > > > Perf events of type

Re: [RFC][PATCH v2 00/21] x86/pti: Defer CR3 switch to C code

2020-11-16 Thread Alexandre Chartre
On 11/16/20 9:17 PM, Borislav Petkov wrote: On Mon, Nov 16, 2020 at 03:47:36PM +0100, Alexandre Chartre wrote: This RFC proposes to defer the PTI CR3 switch until we reach C code. The benefit is that this simplifies the assembly entry code, and make the PTI CR3 switch code easier to

suspicious capability check in ovl_ioctl_set_flags

2020-11-16 Thread Dmitry Vyukov
Hi Miklos, We've detected a suspicious double-fetch of user-space data in ovl_ioctl_set_flags using a prototype tool (see report below [1]). It points to ovl_ioctl_set_flags that does a capability check using flags, but then the real ioctl double-fetches flags and uses potentially different

[PATCH 3/3] dt-bindings: adc: ad7887: add binding doc for AD7887

2020-11-16 Thread Alexandru Ardelean
This change adds a simple device-tree binding for thhe Analog Devices AD7887 ADC. Signed-off-by: Alexandru Ardelean --- .../bindings/iio/adc/adi,ad7887.yaml | 70 +++ 1 file changed, 70 insertions(+) create mode 100644

[PATCH 1/3] iio: adc: ad7887: convert dual-channel mode to DT/ACPI

2020-11-16 Thread Alexandru Ardelean
This change converts the configuration of the dual-channel mode from the old platform-data, to the device_property_present() function, which supports both device-tree and ACPI configuration setups. With this change the old platform_data include of the driver can be removed. Signed-off-by:

linux-next: Tree for Nov 17

2020-11-16 Thread Stephen Rothwell
Hi all, Changes since 20201116: The amdgpu tree gained a conflict against the drm tree. The phy-next tree gained a build failure so I used the version from next-20201116. The mhi tree gained a build failure so I used the version from next-20201116. The akpm-current tree gained a conflict

[PATCH 2/3] iio: adc: ad7887: convert driver to full DT probing

2020-11-16 Thread Alexandru Ardelean
This change removes the SPI device table, adds an OF device table instead. This should also be usable for ACPI via PRP0001. This device is usually probed via device-tree, so it makes more sense to use the OF device table. Signed-off-by: Alexandru Ardelean --- drivers/iio/adc/ad7887.c | 23

Re: [PATCH net-next v2 1/3] nfc: s3fwrn5: Remove the max_payload

2020-11-16 Thread k...@kernel.org
On Tue, Nov 17, 2020 at 10:16:11AM +0900, Bongsu Jeon wrote: > max_payload is unused. Why did you resend the patch ignoring my review? I already provided you with a tag, so you should include it. https://www.kernel.org/doc/html/latest/process/submitting-patches.html Reviewed-by: Krzysztof

Re: [PATCH] video: fbdev: atmel_lcdfb: fixe return error code in atmel_lcdfb_of_init()

2020-11-16 Thread Thomas Zimmermann
Hi Am 17.11.20 um 07:13 schrieb Yang Yingliang: > If devm_kzalloc() failed after first time, atmel_lcdfb_of_init() > cann't return -ENOMEM, fix this by putting the error code in loop. > > Fixes: b985172b328a ("video: atmel_lcdfb: add device tree suport") > Reported-by: Hulk Robot >

Re: [PATCH net-next v2 2/3] nfc: s3fwrn5: Fix the misspelling in a comment

2020-11-16 Thread k...@kernel.org
On Tue, Nov 17, 2020 at 10:17:42AM +0900, Bongsu Jeon wrote: > stucture should be replaced by structure. > > Signed-off-by: Bongsu Jeon I already reviewed it. Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [PATCH net-next v2 3/3] nfc: s3fwrn5: Change the error code

2020-11-16 Thread k...@kernel.org
On Tue, Nov 17, 2020 at 10:18:50AM +0900, Bongsu Jeon wrote: > ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP. > > Signed-off-by: Bongsu Jeon > --- > drivers/nfc/s3fwrn5/s3fwrn5.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) I already reviewed it. Reviewed-by:

Re: [PATCH net] atl1c: fix error return code in atl1c_probe()

2020-11-16 Thread Chris Snook
The full text of the preceding comment explains the need: /* * The atl1c chip can DMA to 64-bit addresses, but it uses a single * shared register for the high 32 bits, so only a single, aligned, * 4 GB physical address range can be used at a time. * * Supporting 64-bit DMA on this hardware is

Re: [RFC 2/3] ARM: sunxi: do not select COMMON_CLK to fix builds

2020-11-16 Thread Krzysztof Kozlowski
On Mon, Nov 16, 2020 at 10:36:12PM -0600, Samuel Holland wrote: > On 11/15/20 11:09 AM, Krzysztof Kozlowski wrote: > > 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

[PATCH v5] perf_event_open.2: Update man page with recent changes

2020-11-16 Thread Namhyung Kim
From: Namhyung Kim There are lots of changes as usual. I've tried to fill some missing bits in the man page but it'd be nice if you could take a look and put more info there. Signed-off-by: Namhyung Kim [alx: ffix + tfix] Cowritten-by : Alejandro Colomar Signed-off-by: Alejandro Colomar ---

Re: [PATCH 1/2] dt-bindings: crypto: update ccree optional params

2020-11-16 Thread Gilad Ben-Yossef
On Mon, Nov 16, 2020 at 8:54 PM Rob Herring wrote: > > On Thu, Oct 22, 2020 at 1:18 AM Gilad Ben-Yossef wrote: > > > > > > Hi again, > > > > Any opinion on the suggested below? > > Sorry, lost in the pile... No problem at all. I know how it is... > > > > > > On Tue, Sep 29, 2020 at 9:08 PM

Re: [PATCH] KVM: SVM: fix error return code in svm_create_vcpu()

2020-11-16 Thread Paolo Bonzini
On 17/11/20 03:54, Chen Zhou wrote: Fix to return a negative error code from the error handling case instead of 0 in function svm_create_vcpu(), as done elsewhere in this function. Fixes: f4c847a95654 ("KVM: SVM: refactor msr permission bitmap allocation") Reported-by: Hulk Robot

AW: [PATCH v2 2/3] rtc: rx6110: add ACPI bindings to I2C

2020-11-16 Thread johannes-h...@siemens.com
Hello Andy, when comparing the ACPI IDs used in rtc-ds1307.c, which is already on mainline https://elixir.bootlin.com/linux/latest/source/drivers/rtc/rtc-ds1307.c#L1141 for example. Every ID listed there is also not formatted the ACPI ID , PNP ID way defined in the ACPI spec. How about that

Re: [EXT] Re: [PATCH v3 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-11-16 Thread Krzysztof Kozlowski
On Tue, Nov 17, 2020 at 07:10:28AM +, Alice Guo wrote: > > > > -Original Message- > > From: Krzysztof Kozlowski > > Sent: 2020年11月17日 0:03 > > To: Alice Guo > > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > > dl-linux-imx ; Peng Fan ; > >

Re: [RESEND v7, PATCH 4/7] mtk-mmsys: add mt8183 mmsys support

2020-11-16 Thread Hsin-Yi Wang
On Sat, Aug 8, 2020 at 2:53 AM Yongqiang Niu wrote: > > add mt8183 mmsys support > > Signed-off-by: Yongqiang Niu > --- > drivers/soc/mediatek/mmsys/Makefile | 1 + > drivers/soc/mediatek/mmsys/mt8183-mmsys.c | 154 > ++ > drivers/soc/mediatek/mtk-mmsys.c

workqueue: Only kick a worker after thawed or for an unbound workqueue

2020-11-16 Thread Yunfeng Ye
In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue pwq_adjust_max_active wake_up_worker The comment in

[PATCH v6] tcp: fix race condition when creating child sockets from syncookies

2020-11-16 Thread Ricardo Dias
When the TCP stack is in SYN flood mode, the server child socket is created from the SYN cookie received in a TCP packet with the ACK flag set. The child socket is created when the server receives the first TCP packet with a valid SYN cookie from the client. Usually, this packet corresponds to

Re: [PATCH v2] sched/deadline: Fix priority inheritance with multiple scheduling classes

2020-11-16 Thread Daniel Bristot de Oliveira
On 11/17/20 7:14 AM, Juri Lelli wrote: > Glenn reported that "an application [he developed produces] a BUG in > deadline.c when a SCHED_DEADLINE task contends with CFS tasks on nested > PTHREAD_PRIO_INHERIT mutexes. I believe the bug is triggered when a CFS > task that was boosted by a

Re: [PATCH v9 2/2] fs: ext4: Modify inode-test.c to use KUnit parameterized testing feature

2020-11-16 Thread David Gow
On Mon, Nov 16, 2020 at 1:42 PM Arpitha Raghunandan <98.a...@gmail.com> wrote: > > Modify fs/ext4/inode-test.c to use the parameterized testing > feature of KUnit. > > Signed-off-by: Arpitha Raghunandan <98.a...@gmail.com> > Signed-off-by: Marco Elver > --- [Resending this because the HTML-email

Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing

2020-11-16 Thread David Gow
On Mon, Nov 16, 2020 at 1:41 PM Arpitha Raghunandan <98.a...@gmail.com> wrote: > > Implementation of support for parameterized testing in KUnit. This > approach requires the creation of a test case using the > KUNIT_CASE_PARAM() macro that accepts a generator function as input. > > This generator

Re: [PATCH v4 01/10] Add auxiliary bus support

2020-11-16 Thread Leon Romanovsky
On Tue, Nov 17, 2020 at 08:02:53AM +0100, Greg KH wrote: > On Tue, Nov 17, 2020 at 07:30:00AM +0200, Leon Romanovsky wrote: > > On Fri, Nov 13, 2020 at 08:18:50AM -0800, Dave Ertman wrote: > > > Add support for the Auxiliary Bus, auxiliary_device and auxiliary_driver. > > > It enables drivers to

Re: [PATCH] thermal: Fix NULL pointer dereference issue

2020-11-16 Thread Zhang Rui
On Mon, 2020-11-16 at 21:59 +0530, Mukesh Ojha wrote: > Cooling stats variable inside thermal_cooling_device_stats_update() > can get NULL. We should add a NULL check on stat inside for sanity. > > Signed-off-by: Mukesh Ojha > --- > drivers/thermal/thermal_sysfs.c | 3 +++ > 1 file changed, 3

[PATCH] khugepaged: add couples parameter explanation for kernel-doc markup

2020-11-16 Thread Alex Shi
Add missed parameter explanation for some kernel-doc warnings: mm/khugepaged.c:102: warning: Function parameter or member 'nr_pte_mapped_thp' not described in 'mm_slot' mm/khugepaged.c:102: warning: Function parameter or member 'pte_mapped_thp' not described in 'mm_slot' mm/khugepaged.c:1424:

Re: drivers/net/ethernet/freescale/gianfar.c:580 gfar_parse_group() warn: 'grp->regs' not released on lines: 517.

2020-11-16 Thread Dan Carpenter
On Tue, Nov 17, 2020 at 01:41:15AM +, Leo Li wrote: > > ee873fda3bec7c6 drivers/net/ethernet/freescale/gianfar.c Claudiu Manoil > > 2013-01-29 513 gfar_irq(grp, ER)->irq = > > irq_of_parse_and_map(np, 2); > > fea0f6650979a4f drivers/net/ethernet/freescale/gianfar.c Mark Brown > >

[PATCH] usb: gadget: u_ether: Fix MTU size mismatch with RX packet size

2020-11-16 Thread Manish Narani
Fix the MTU size issue with RX packet size as the host sends the packet with extra bytes containing ethernet header. This causes failure when user sets the MTU size to the maximum i.e. 15412. In this case the ethernet packet received will be of length 15412 plus the ethernet header length. This

Re: [PATCH] thermal: Fix slab-out-of-bounds in thermal_cooling_device_stats_update()

2020-11-16 Thread Zhang Rui
On Tue, 2020-09-15 at 13:58 +0800, zhuguangqin...@gmail.com wrote: > From: zhuguangqing > > In function thermal_cooling_device_stats_update(), if the input > parameter > new_state is greater or equal to stats->max_states, then it will > cause > slab-out-of-bounds error when execute the code as

Re: [PATCH v2 1/1] kasan: fix object remain in offline per-cpu quarantine

2020-11-16 Thread Dmitry Vyukov
On Tue, Nov 17, 2020 at 7:46 AM Kuan-Ying Lee wrote: > > On Mon, 2020-11-16 at 10:26 +0100, Dmitry Vyukov wrote: > > On Mon, Nov 16, 2020 at 7:30 AM Kuan-Ying Lee > > wrote: > > > > > > We hit this issue in our internal test. > > > When enabling generic kasan, a kfree()'d object is put into

Re: [PATCH] ath11k: use MHI provided APIs to allocate and free MHI controller

2020-11-16 Thread Kalle Valo
Bhaumik Bhatt writes: > Use MHI provided APIs to allocate and free MHI controller to > improve MHI host driver handling. How does it improve the handling? > This also fixes a memory leak as the MHI controller was allocated but > never freed. > > Signed-off-by: Bhaumik Bhatt > --- >

Re: [PATCH net] atl1c: fix error return code in atl1c_probe()

2020-11-16 Thread Heiner Kallweit
Am 17.11.2020 um 03:55 schrieb Zhang Changzhong: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 85eb5bc33717 ("net: atheros: switch from 'pci_' to 'dma_' API") > Reported-by: Hulk Robot > Signed-off-by: Zhang

[PATCH] mm: add colon to fix kernel-doc markups error for check_pte

2020-11-16 Thread Alex Shi
The function check_pte needs a correct colon for kernel-doc markup, otherwise, gcc has the following warning for W=1, mm/page_vma_mapped.c:86: warning: Function parameter or member 'pvmw' not described in 'check_pte' Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux...@kvack.org Cc:

RE: [EXT] Re: [PATCH v3 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-11-16 Thread Alice Guo
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年11月17日 0:03 > To: Alice Guo > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > dl-linux-imx ; Peng Fan ; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; >

Re: + mm-shmem-use-kmem_cache_zalloc-in-shmem_alloc_inode.patch added to -mm tree

2020-11-16 Thread Stephen Rothwell
Hi Hugh, On Mon, 16 Nov 2020 22:17:20 -0800 (PST) Hugh Dickins wrote: > > On Mon, 16 Nov 2020, a...@linux-foundation.org wrote: > > > > The patch titled > > Subject: mm/shmem: use kmem_cache_zalloc in shmem_alloc_inode() > > has been added to the -mm tree. Its filename is > >

RE: [EXT] Re: [PATCH v3 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-11-16 Thread Alice Guo
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年11月17日 0:03 > To: Alice Guo > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > dl-linux-imx ; Peng Fan ; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; >

linux-next: boot failure in next-20201117

2020-11-16 Thread Stephen Rothwell
Hi all, My qemu boot tests failed this evening with the following logs: 0.021080T0 Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear) 0.021201T0 Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear) 0.030154T0 cut here

[PATCH v3 3/3] scsi: ufs: Print host regs in IRQ handler when AH8 error happens

2020-11-16 Thread Can Guo
When AH8 error happens, all the regs and states are dumped in err handler. Sometime we need to look into host regs right after AH8 error happens, which is before leaving the IRQ handler. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v3 1/3] scsi: ufs: Serialize eh_work with system PM events and async scan

2020-11-16 Thread Can Guo
Serialize eh_work with system PM events and async scan to make sure eh_work does not run in parallel with them. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 64 +-- drivers/scsi/ufs/ufshcd.h | 1 + 2 files changed, 41 insertions(+), 24

Re: [PATCH v2] ttyprintk: optimize tpk_close flush code

2020-11-16 Thread Greg KH
On Tue, Nov 17, 2020 at 10:21:07AM +0800, Junyong Sun wrote: > tpk_printk(NULL,0) do nothing but call tpk_flush to > flush buffer, so why don't use tpk_flush diretcly? > this is a small optimization. > > Signed-off-by: Junyong Sun > --- > changes in v2: > - rm the flush comment as tpk_flush

[PATCH v3 2/3] scsi: ufs: Fix a racing problem between ufshcd_abort and eh_work

2020-11-16 Thread Can Guo
In current task abort routine, if task abort happens to the device W-LU, the code directly jumps to ufshcd_eh_host_reset_handler() to perform a full reset and restore then returns FAIL or SUCCESS. Commands sent to the device W-LU are most likely the SSU cmds sent during UFS PM operations. If such

Re: [PATCH] speakup: fix uninitialized flush_lock

2020-11-16 Thread Samuel Thibault
Yang Yingliang, le mar. 17 nov. 2020 09:22:29 +0800, a ecrit: > The flush_lock is uninitialized, use DEFINE_SPINLOCK > to define and initialize flush_lock. > > Fixes: c6e3fd22cd53 ("Staging: add speakup to the staging directory") > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang

Re: [PATCH v4 01/10] Add auxiliary bus support

2020-11-16 Thread Greg KH
On Tue, Nov 17, 2020 at 07:30:00AM +0200, Leon Romanovsky wrote: > On Fri, Nov 13, 2020 at 08:18:50AM -0800, Dave Ertman wrote: > > Add support for the Auxiliary Bus, auxiliary_device and auxiliary_driver. > > It enables drivers to create an auxiliary_device and bind an > > auxiliary_driver to it.

[PATCH rdma-next v5 0/3] Track memory allocation with restrack DB help (Part II)

2020-11-16 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v5: * Reorder patches to postpone changes in rdma_restrack_add to be in next series. v4: https://lore.kernel.org/linux-rdma/20201104144008.3808124-1-l...@kernel.org/ * Rebased on latest for-upstream, all that time the patches were in our regression and didn't

Re: [PATCH] PCI: dwc: fix error return code in dw_pcie_host_init()

2020-11-16 Thread wanghai (M)
在 2020/11/17 9:49, Jisheng Zhang 写道: On Mon, 16 Nov 2020 21:50:23 +0800 Wang Hai wrote: Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. good catch. Fixes: 07940c369a6b ("PCI: dwc: Fix MSI page leakage in suspend/resume")

Re: [PATCH v2 10/13] arc: use FLATMEM with freeing of unused memory map instead of DISCONTIGMEM

2020-11-16 Thread Mike Rapoport
On Tue, Nov 17, 2020 at 06:40:16AM +, Vineet Gupta wrote: > Hi Mike, > > On 11/1/20 9:04 AM, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Currently ARC uses DISCONTIGMEM to cope with sparse physical memory address > > space on systems with 2 memory banks. While DISCONTIGMEM avoids

Re: [PATCH 1/8] phy: phy-hi3670-usb3: move driver from staging into phy

2020-11-16 Thread Mauro Carvalho Chehab
Em Mon, 16 Nov 2020 09:31:06 -0600 Rob Herring escreveu: > On Mon, Nov 16, 2020 at 01:59:27PM +0100, Mauro Carvalho Chehab wrote: > > The phy USB3 driver for Hisilicon 970 (hi3670) is ready > > for mainstream. Mode it from staging into the main driver's > > s/Mode/Move/ > > > phy/ directory.

Re: [PATCH v2] PCI: dwc: fix error return code in dw_pcie_host_init()

2020-11-16 Thread Jisheng Zhang
On Tue, 17 Nov 2020 14:41:42 +0800 Wang Hai wrote: > > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 07940c369a6b ("PCI: dwc: Fix MSI page leakage in suspend/resume") > Reported-by: Hulk Robot > Signed-off-by:

Re: rmk/for-next bisection: baseline.login on bcm2836-rpi-2-b

2020-11-16 Thread Ard Biesheuvel
On Mon, 16 Nov 2020 at 23:13, Guillaume Tucker wrote: > > On 16/11/2020 12:20, Ard Biesheuvel wrote: > > On Mon, 16 Nov 2020 at 12:20, Ard Biesheuvel wrote: > >> > >> On Sun, 15 Nov 2020 at 15:11, Ard Biesheuvel wrote: > >>> > >>> On Fri, 13 Nov 2020 at 17:25, Ard Biesheuvel wrote: > >

Re: [PATCH v2 1/1] kasan: fix object remain in offline per-cpu quarantine

2020-11-16 Thread Kuan-Ying Lee
On Mon, 2020-11-16 at 10:26 +0100, Dmitry Vyukov wrote: > On Mon, Nov 16, 2020 at 7:30 AM Kuan-Ying Lee > wrote: > > > > We hit this issue in our internal test. > > When enabling generic kasan, a kfree()'d object is put into per-cpu > > quarantine first. If the cpu goes offline, object still

Re: [PATCH v5 8/8] rpmsg: Turn name service into a stand alone driver

2020-11-16 Thread Guennadi Liakhovetski
Hi Mathieu, On Mon, Nov 16, 2020 at 03:40:03PM -0700, Mathieu Poirier wrote: > On Mon, Nov 16, 2020 at 04:51:52PM +0100, Arnaud POULIQUEN wrote: [snip] > > Having said that, does this guarantee the probe, a good question! > > Maybe you or Mathieu have the answer, not me... > > I did a lot of

Re: [PATCH v2 10/13] arc: use FLATMEM with freeing of unused memory map instead of DISCONTIGMEM

2020-11-16 Thread Vineet Gupta
Hi Mike, On 11/1/20 9:04 AM, Mike Rapoport wrote: > From: Mike Rapoport > > Currently ARC uses DISCONTIGMEM to cope with sparse physical memory address > space on systems with 2 memory banks. While DISCONTIGMEM avoids wasting > memory on unpopulated memory map, it adds both memory and CPU

[PATCH v2] PCI: dwc: fix error return code in dw_pcie_host_init()

2020-11-16 Thread Wang Hai
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 07940c369a6b ("PCI: dwc: Fix MSI page leakage in suspend/resume") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- v1->v2: just add 'ret = xxx'

Re: [PATCH net-next v5] net: linux/skbuff.h: combine SKB_EXTENSIONS + KCOV handling

2020-11-16 Thread Florian Westphal
Randy Dunlap wrote: > The previous Kconfig patch led to some other build errors as > reported by the 0day bot and my own overnight build testing. > > These are all in when KCOV is enabled but > SKB_EXTENSIONS is not enabled, so fix those by combining those conditions > in the header file.

[PATCH] bus: mhi: core: manager all mhi ctrl data in one segment

2020-11-16 Thread carl . yin
From: Carl Yin I test SDX24 and SDX55 modems on Dell-OptiPlex-7060 has 16GB memory. So I set dma_data_width in mhi/pci_generic.c to 37, then get next error: [ 538.338317] mhi :03:00.0: Requested to power ON [ 538.338441] mhi :03:00.0: Power on setup success [ 538.338519] mhi

Re: [RFC, v1 0/3] msi support for platform devices

2020-11-16 Thread Vikas Gupta
Hi Eric, On Mon, Nov 16, 2020 at 6:44 PM Auger Eric wrote: > > Hi Vikas, > > On 11/13/20 6:24 PM, Vikas Gupta wrote: > > Hi Eric, > > > > On Fri, Nov 13, 2020 at 12:10 AM Auger Eric wrote: > >> > >> Hi Vikas, > >> > >> On 11/12/20 6:58 PM, Vikas Gupta wrote: > >>> This RFC adds support for MSI

Re: [PATCH v2] memfd_secret.2: New page describing memfd_secret() system call

2020-11-16 Thread Mike Rapoport
On Mon, Nov 16, 2020 at 10:01:37PM +0100, Alejandro Colomar wrote: > From: Mike Rapoport > > Signed-off-by: Mike Rapoport > Cowritten-by: Alejandro Colomar > Acked-by: Alejandro Colomar > Signed-off-by: Alejandro Colomar > --- > > Hi Mike, > > I added that note about not having a wrapper,

[RFC, net-next] net: qos: introduce a redundancy flow action

2020-11-16 Thread Xiaoliang Yang
This patch introduce a redundancy flow action to implement frame replication and elimination for reliability, which is defined in IEEE P802.1CB. There are two modes for redundancy action: generator and recover mode. Generator mode add redundancy tag and replicate the frame to different egress

Re: [PATCH v2 00/13] arch, mm: deprecate DISCONTIGMEM

2020-11-16 Thread Mike Rapoport
Hi Adrian, On Tue, Nov 17, 2020 at 06:24:51AM +0100, John Paul Adrian Glaubitz wrote: > Hi! > > On 11/1/20 6:04 PM, Mike Rapoport wrote: > > It's been a while since DISCONTIGMEM is generally considered deprecated, > > but it is still used by four architectures. This set replaces DISCONTIGMEM > >

Re: [PATCH v3 0/5] console: Miscellaneous clean-ups, do not use FNTCHARCNT() in fbcon.c

2020-11-16 Thread Peilin Ye
On Mon, Nov 16, 2020 at 11:09:49AM +0100, Daniel Vetter wrote: > On Sat, Nov 14, 2020 at 07:47:16AM -0500, Peilin Ye wrote: > > On Sat, Nov 14, 2020 at 01:22:22PM +0100, Greg Kroah-Hartman wrote: > > > On Sat, Nov 14, 2020 at 01:18:06PM +0100, Greg Kroah-Hartman wrote: > > > > On Sat, Nov 14, 2020

Re: + mm-shmem-use-kmem_cache_zalloc-in-shmem_alloc_inode.patch added to -mm tree

2020-11-16 Thread Hugh Dickins
On Mon, 16 Nov 2020, a...@linux-foundation.org wrote: > > The patch titled > Subject: mm/shmem: use kmem_cache_zalloc in shmem_alloc_inode() > has been added to the -mm tree. Its filename is > mm-shmem-use-kmem_cache_zalloc-in-shmem_alloc_inode.patch > > This patch should soon appear

Re: [PATCH bpf-next v3 2/2] bpf: Add tests for bpf_lsm_set_bprm_opts

2020-11-16 Thread Martin KaFai Lau
On Tue, Nov 17, 2020 at 02:13:07AM +, KP Singh wrote: > From: KP Singh > > The test forks a child process, updates the local storage to set/unset > the securexec bit. > > The BPF program in the test attaches to bprm_creds_for_exec which checks > the local storage of the current task to set

[PATCH v2] sched/deadline: Fix priority inheritance with multiple scheduling classes

2020-11-16 Thread Juri Lelli
Glenn reported that "an application [he developed produces] a BUG in deadline.c when a SCHED_DEADLINE task contends with CFS tasks on nested PTHREAD_PRIO_INHERIT mutexes. I believe the bug is triggered when a CFS task that was boosted by a SCHED_DEADLINE task boosts another CFS task (nested

Re: [PATCH v4 00/16] Tegra XHCI controller ELPG support

2020-11-16 Thread JC Kuo
On 11/14/20 12:44 AM, Thierry Reding wrote: > On Fri, Oct 16, 2020 at 09:07:10PM +0800, JC Kuo wrote: >> Tegra XHCI controler can be placed in ELPG (Engine Level PowerGated) >> state for power saving when all of the connected USB devices are in >> suspended state. This patch series includes clk,

[PATCH] usb/max3421: fix return error code in max3421_probe()

2020-11-16 Thread Yang Yingliang
retval may be reassigned to 0 after max3421_of_vbus_en_pin(), if allocate memory failed after this, max3421_probe() cann't return ENOMEM, fix this by moving assign retval afther max3421_probe(). Fixes: 721fdc83b31b ("usb: max3421: Add devicetree support") Reported-by: Hulk Robot Signed-off-by:

Re: [PATCH bpf-next v3 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-16 Thread Martin KaFai Lau
On Tue, Nov 17, 2020 at 02:13:06AM +, KP Singh wrote: > From: KP Singh > > The helper allows modification of certain bits on the linux_binprm > struct starting with the secureexec bit which can be updated using the > BPF_LSM_F_BPRM_SECUREEXEC flag. > > secureexec can be set by the LSM for

[PATCH] video: fbdev: atmel_lcdfb: fixe return error code in atmel_lcdfb_of_init()

2020-11-16 Thread Yang Yingliang
If devm_kzalloc() failed after first time, atmel_lcdfb_of_init() cann't return -ENOMEM, fix this by putting the error code in loop. Fixes: b985172b328a ("video: atmel_lcdfb: add device tree suport") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/video/fbdev/atmel_lcdfb.c | 2

[PATCH] drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()

2020-11-16 Thread Yang Yingliang
Return -ENOMEM when allocating refill memory failed. Fixes: 71e8831f6407 ("drm/omap: DMM/TILER support for OMAP4+ platform") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v2] scsi: ufshcd: fix missing destroy_workqueue()

2020-11-16 Thread Martin K. Petersen
On Tue, 10 Nov 2020 15:42:23 +0800, Qinglang Miao wrote: > Add the missing destroy_workqueue() before return from > ufshcd_init in the error handling case as well as in > ufshcd_remove. Applied to 5.10/scsi-fixes, thanks! [1/1] scsi: ufshcd: Fix missing destroy_workqueue()

Re: [RFC PATCH v2 3/4] RISC-V: Initial DTS for Microchip ICICLE board

2020-11-16 Thread Atish Patra
On Mon, Nov 16, 2020 at 6:15 PM Bin Meng wrote: > > On Sat, Nov 14, 2020 at 4:29 AM Atish Patra wrote: > > > > Add initial DTS for Microchip ICICLE board having only > > essential devcies (clocks, sdhci, ethernet, serial, etc). > > typo: devices > Thanks. Will fix it. > > The device tree is

Re: [PATCH 1/9] platform/surface: Add Surface Aggregator subsystem

2020-11-16 Thread Maximilian Luz
On 11/16/20 6:03 PM, Maximilian Luz wrote: On 11/16/20 2:33 PM, Andy Shevchenko wrote: On Sun, Nov 15, 2020 at 9:25 PM Maximilian Luz wrote: [...] READ_ONCE and WRITE_ONCE are used to ensure proper access to state that can be changed outside of the queue/pending locks (or under any one of

Re: [PATCH] Fix warning for static const char * array in audio_manager_module.c

2020-11-16 Thread Greg KH
On Mon, Nov 16, 2020 at 09:43:23PM +0100, Emmanouil Perselis wrote: > On 11/15/20 9:17 AM, Greg Kroah-Hartman wrote: > > On Sun, Nov 15, 2020 at 03:53:16PM +0100, Emmanouil Perselis wrote: > >> This patch fixes the warning "static const char * array should > >> probably be static const char *

[PATCH] phy: amlogic: Replace devm_reset_control_array_get()

2020-11-16 Thread Yejune Deng
devm_reset_control_array_get_exclusive() looks more readable Signed-off-by: Yejune Deng --- drivers/phy/amlogic/phy-meson-axg-pcie.c | 2 +- drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c | 2 +- drivers/soc/amlogic/meson-ee-pwrc.c| 3 +--

Re: [PATCH] scsi: qla4xxx: Remove redundant assignment to variable rval

2020-11-16 Thread Martin K. Petersen
Jing, > The variable rval has been initialized with 'QLA_ERROR'. The > assignment is redundant in an error path. So remove it. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v1 0/9] scsi: ufs: Refactoring and cleanups

2020-11-16 Thread Martin K. Petersen
Stanley, > This series simply do some refactoring and cleanups in UFS drivers. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] docs: automarkup.py: Allow automatic cross-reference inside C namespace

2020-11-16 Thread Mauro Carvalho Chehab
Em Tue, 17 Nov 2020 02:12:01 + Nícolas F. R. A. Prado escreveu: > Sphinx 3.1 introduced namespaces for C cross-references. With this, > each C domain type/function declaration is put inside the namespace that > was active at the time of its declaration. > > Add support for automatic

[PATCH v3 1/2] PCI: move pci_match_device() ahead of new_id_store()

2020-11-16 Thread Zhenzhong Duan
Move pci_match_device() and it's dependencies (pci_match_id() and pci_device_id_any) ahead of new_id_store(). This is preparation work for calling pci_match_device() in new_id_store(). No functional changes. Signed-off-by: Zhenzhong Duan --- drivers/pci/pci-driver.c | 144

[PATCH v3 2/2] PCI: avoid duplicate IDs in dynamic IDs list

2020-11-16 Thread Zhenzhong Duan
When a device ID data is writen to /sys/bus/pci/drivers/.../new_id, only static ID table is checked for duplicate and multiple dynamic ID entries of same kind are allowed to exist in a dynamic IDs list. This doesn't cause user-visible broken behavior, but not user friendly. remove_id_store() only

[PATCH v3 0/2] avoid inserting duplicate IDs in dynids list

2020-11-16 Thread Zhenzhong Duan
vfio-pci and pci-stub use new_id to bind devices. But one can add same IDs multiple times, for example: # echo "1af4 1041" > /sys/bus/pci/drivers/vfio-pci/new_id # echo "1af4 1041" > /sys/bus/pci/drivers/vfio-pci/new_id # echo "1af4 1041" > /sys/bus/pci/drivers/vfio-pci/new_id # echo "1af4 1041"

Re: [PATCH 2/7] dt: bindings: add mt7621-pll device tree binding documentation

2020-11-16 Thread Sergio Paracuellos
Hi Rob, On Mon, Nov 16, 2020 at 8:16 PM Rob Herring wrote: > > On Wed, 11 Nov 2020 17:30:08 +0100, Sergio Paracuellos wrote: > > Adds device tree binding documentation for PLL controller in > > the MT7621 SOC. > > > > Signed-off-by: Sergio Paracuellos > > --- > >

Re: [PATCH v24 00/12] Landlock LSM

2020-11-16 Thread James Morris
On Thu, 12 Nov 2020, Mickaël Salaün wrote: > Hi, > > This patch series simplifies the code, makes stacked access-control more > consistent (from the user point of view), properly handles memory > allocation errors, and adds more tests (covering layered ruleset corner > cases). Most of these

[PATCH net-next] net/nfc/nci: Support NCI 2.x initial sequence

2020-11-16 Thread Bongsu Jeon
implement the NCI 2.x initial sequence to support NCI 2.x NFCC. Since NCI 2.0, CORE_RESET and CORE_INIT sequence have been changed. If NFCEE supports NCI 2.x, then NCI 2.x initial sequence will work. In NCI 1.0, Initial sequence and payloads are as below: (DH) (NFCC) | --

Re: [PATCH 2/2] docs: hwmon: Document max127 driver

2020-11-16 Thread Guenter Roeck
On Mon, Nov 16, 2020 at 05:09:44PM -0800, rentao.b...@gmail.com wrote: > From: Tao Ren > > Add documentation for max127 hardware monitoring driver. > > Signed-off-by: Tao Ren > --- > Documentation/hwmon/index.rst | 1 + > Documentation/hwmon/max127.rst | 43

Re: [PATCH 1/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring driver

2020-11-16 Thread Guenter Roeck
On Mon, Nov 16, 2020 at 05:09:43PM -0800, rentao.b...@gmail.com wrote: > From: Tao Ren > > Add hardware monitoring driver for the Maxim MAX127 chip. > > MAX127 min/max range handling code is inspired by the max197 driver. > > Signed-off-by: Tao Ren > --- > drivers/hwmon/Kconfig | 9 ++ >

[PATCH] ring-buffer: remove obsolete rb_event_is_commit()

2020-11-16 Thread Lukas Bulwahn
d function 'rb_event_is_commit' [-Wunused-function] Remove this obsolete function. Signed-off-by: Lukas Bulwahn --- applies cleanly on current master and next-20201116 Steven, please pick this minor non-urgent clean-up patch. kernel/trace/ring_buffer.c | 17 - 1 file changed, 17

Re: [PATCH v2 00/13] arch, mm: deprecate DISCONTIGMEM

2020-11-16 Thread John Paul Adrian Glaubitz
Hi! On 11/1/20 6:04 PM, Mike Rapoport wrote: > It's been a while since DISCONTIGMEM is generally considered deprecated, > but it is still used by four architectures. This set replaces DISCONTIGMEM > with a different way to handle holes in the memory map and marks > DISCONTIGMEM configuration as

Re: [PATCH v4 01/10] Add auxiliary bus support

2020-11-16 Thread Leon Romanovsky
On Fri, Nov 13, 2020 at 08:18:50AM -0800, Dave Ertman wrote: > Add support for the Auxiliary Bus, auxiliary_device and auxiliary_driver. > It enables drivers to create an auxiliary_device and bind an > auxiliary_driver to it. > > The bus supports probe/remove shutdown and suspend/resume callbacks.

Re: linux-next: build warning after merge of the tip tree

2020-11-16 Thread Balbir Singh
On 11/16/20 9:23 AM, Balbir Singh wrote: > > > On 10/28/20 2:23 PM, Stephen Rothwell wrote: >> Hi all, >> >> After merging the tip tree, today's linux-next build (htmldocs) produced >> this warning: >> >> Documentation/admin-guide/hw-vuln/l1d_flush.rst:25: WARNING: undefined >> label:

[PATCH 1/2] powerpc: Retire e200 core (mpc555x processor)

2020-11-16 Thread Christophe Leroy
There is no defconfig selecting CONFIG_E200, and no platform. e200 is an earlier version of booke, a predecessor of e500, with some particularities like an unified cache instead of both an instruction cache and a data cache. Remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/Makefile

[PATCH 2/2] powerpc: Remove ucache_bsize

2020-11-16 Thread Christophe Leroy
ppc601 and e200 were the users of ucache_bsize. ppc601 and e200 are now gone. Remove ucache_bsize. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/elf.h | 2 +- arch/powerpc/kernel/setup-common.c | 4 arch/powerpc/kernel/setup_32.c | 1 - 3 files changed, 1

RE: [PATCH] iscsi: Do Not set param when sock is NULL

2020-11-16 Thread Gulam Mohamed
Gentle reminder. Regards, Gulam Mohamed. -Original Message- From: Gulam Mohamed Sent: Thursday, November 5, 2020 11:11 AM To: Lee Duncan ; Chris Leech ; James E.J. Bottomley ; Martin K. Petersen ; open-is...@googlegroups.com; linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org

[tip:ras/core] BUILD SUCCESS 098416e6986127f7e4c8ce4fd6bbbd80e55b0386

2020-11-16 Thread kernel test robot
onfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a003-20201116 x86_64 randconfig-a005-20201116 x86_64

linux-next: manual merge of the akpm-current tree with the block tree

2020-11-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: mm/filemap.c between commit: 0abed7c69b95 ("mm: never attempt async page lock if we've transferred data already") from the block tree and commit: b5c7e73f6bd3 ("mm/filemap/c: break generic_file_buffered_read

Re: [PATCH 1/3] perf/core: Flush PMU internal buffers for per-CPU events

2020-11-16 Thread Namhyung Kim
Hello, On Thu, Nov 12, 2020 at 4:54 AM Liang, Kan wrote: > > > > On 11/11/2020 11:25 AM, Peter Zijlstra wrote: > > On Mon, Nov 09, 2020 at 09:49:31AM -0500, Liang, Kan wrote: > > > >> - When the large PEBS was introduced (9c964efa4330), the sched_task() > >> should > >> be invoked to flush the

Re: [PATCH bpf-next] libbpf: bpf__find_by_name[_kind] should use btf__get_nr_types()

2020-11-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Sun, 15 Nov 2020 10:46:35 + you wrote: > When operating on split BTF, btf__find_by_name[_kind] will not > iterate over all types since they use btf->nr_types to show > the number of types to iterate over. For split

Re: [PATCH bpf v6 1/2] lib/strncpy_from_user.c: Don't overcopy bytes after NUL terminator

2020-11-16 Thread Daniel Xu
Hi Linus, On Mon, Nov 16, 2020 at 02:15:52PM -0800, Linus Torvalds wrote: > On Mon, Nov 16, 2020 at 1:17 PM Daniel Xu wrote: > > > > Based on on-list discussion and some off-list discussion with Alexei, > > I'd like to propose the v4-style patch without the `(*out & ~mask)` > > bit. > > So I've

Re: [PATCH] mmc: xenon: enable ACPI support in the driver

2020-11-16 Thread kernel test robot
Hi Marcin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on linux/master v5.10-rc4 next-20201116] [cannot apply to ulf.hansson-mmc/next mmc/mmc-next] [If your patch is applied to the wrong git tree, kindly drop us a note

Re: [PATCH v1] Bluetooth: hci_qca: Handle spurious wakeup from SoC

2020-11-16 Thread Abhishek Pandit-Subedi
Hi Venkata, I think this code would be simplified by using a delayed_work struct instead of a timer. Based on your commit description: On Sun, Nov 15, 2020 at 9:59 AM Venkata Lakshmi Narayana Gubba wrote: > > Added timer to handle spurious wakeup from SoC. > Timer is started when wake

  1   2   3   4   5   6   7   8   9   10   >