Re: [PATCH v2 05/19] mm/hugetlb: Introduce pgtable allocation/freeing helpers

2020-10-28 Thread Mike Kravetz
On 10/26/20 7:51 AM, Muchun Song wrote: > On some architectures, the vmemmap areas use huge page mapping. > If we want to free the unused vmemmap pages, we have to split > the huge pmd firstly. So we should pre-allocate pgtable to split > huge pmd. > > Signed-off-by: Muchun Song > --- >

linux-next: Signed-off-by missing for commit in the drm-intel-fixes tree

2020-10-28 Thread Stephen Rothwell
Hi all, Commit d13208a88f41 ("lockdep: Fix nr_unused_locks") is missing a Signed-off-by from its author. Also, the author's email name is missing the leading 'P'. -- Cheers, Stephen Rothwell pgpyNajf3ZsLX.pgp Description: OpenPGP digital signature

[PATCH 1/1] usb: typec: stusb160x: fix signedness comparison issue with enum variables

2020-10-28 Thread Amelie Delaunay
chip->port_type and chip->pwr_opmode are enums and when GCC considers them as unsigned, the conditions are never met. This patch takes advantage of the ret variable and fixes the following warnings: drivers/usb/typec/stusb160x.c:548 stusb160x_get_fw_caps() warn: unsigned 'chip->port_type' is

[PATCH 1/1] usb: typec: add missing MODULE_DEVICE_TABLE() to stusb160x

2020-10-28 Thread Amelie Delaunay
When stusb160x driver is built as a module, no modalias information is available, and it prevents the module to be loaded by udev. Add MODULE_DEVICE_TABLE() to fix this issue. Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family") Signed-off-by: Amelie Delaunay

Re: [RFC][PATCH 0/2] ftrace: Add access to function arguments for all callbacks

2020-10-28 Thread Alexei Starovoitov
On Wed, Oct 28, 2020 at 09:15:42AM -0400, Steven Rostedt wrote: > > This is something I wanted to implement a long time ago, but held off until > there was a good reason to do so. Now it appears that having access to the > arguments of the function by default is very useful. As a bonus, because >

Re: [PATCH v3 1/5] x86/boot/compressed/64: Introduce sev_status

2020-10-28 Thread Joerg Roedel
On Wed, Oct 28, 2020 at 12:50:07PM -0400, Arvind Sankar wrote: > On Wed, Oct 28, 2020 at 09:23:52AM +0100, Joerg Roedel wrote: > > On Mon, Oct 26, 2020 at 07:27:06PM +0100, Borislav Petkov wrote: > > > A couple of lines above you call get_sev_encryption_bit() which already > > > reads

[PATCH v3] gpio: mockup: Allow probing from device tree

2020-10-28 Thread Vincent Whitchurch
Allow the mockup driver to be probed via the device tree without any module parameters, allowing it to be used to configure and test higher level drivers like the leds-gpio driver and corresponding userspace before actual hardware is available. Signed-off-by: Vincent Whitchurch --- Notes:

[PATCH 2/4] powerpc: Rename is_kvm_guest to check_kvm_guest

2020-10-28 Thread Srikar Dronamraju
is_kvm_guest() will be reused in subsequent patch in a new avatar. Hence rename is_kvm_guest to check_kvm_guest. No additional changes. Signed-off-by: Srikar Dronamraju Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Nathan Lynch Cc: Gautham R Shenoy Cc: Peter

Re: [PATCH 1/2] builddeb: Fix rootless build in setuid/setgid directory

2020-10-28 Thread Masahiro Yamada
On Tue, Oct 27, 2020 at 4:32 AM Sven Joachim wrote: > > Building 5.10-rc1 in a setgid directory failed with the following > error: > > dpkg-deb: error: control directory has bad permissions 2755 (must be > >=0755 and <=0775) > > When building with fakeroot, the earlier chown call would have

Re: [linux-sunxi] [PATCH v9 12/14] arm64: defconfig: Enable Allwinner i2s driver

2020-10-28 Thread Chen-Yu Tsai
On Wed, Oct 28, 2020 at 2:32 AM Clément Péron wrote: > > Enable Allwinner I2S driver for arm64 defconfig. > > Signed-off-by: Clément Péron Acked-by: Chen-Yu Tsai

Re: [PATCH v2] gpio: mockup: Allow probing from device tree

2020-10-28 Thread Vincent Whitchurch
On Tue, Oct 27, 2020 at 07:12:13PM +0100, Bartosz Golaszewski wrote: > On Tue, Oct 27, 2020 at 2:54 PM Vincent Whitchurch > wrote: > > diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c > > index 67ed4f238d43..c93892a6936a 100644 > > --- a/drivers/gpio/gpio-mockup.c > > +++

Re: [PATCH 2/3] ARM: dts: aspeed: amd-ethanolx: Enable KCS channel 3

2020-10-28 Thread Supreeth Venkatesh
Thanks Konstantin for this patch. Thanks Joel for reviewing this. On 10/28/20 12:28 AM, Joel Stanley wrote: > [CAUTION: External Email] > > On Tue, 27 Oct 2020 at 12:41, Konstantin Aladyshev > wrote: >> >> The KCS interface on the LPC channel 3 in the controller >> is used for the in-band

[PATCH v2 2/2] ASoC: fsl_aud2htx: Add aud2htx module driver

2020-10-28 Thread Shengjiu Wang
The AUD2HTX is a digital module that provides a bridge between the Audio Subsystem and the HDMI RTX Subsystem. This module includes intermediate storage to queue SDMA transactions prior to being synchronized and passed to the HDMI RTX Subsystem over the Audio Link. The AUD2HTX contains a DMA

[PATCH v2 1/2] ASoC: dt-bindings: fsl_aud2htx: Add binding doc for aud2htx module

2020-10-28 Thread Shengjiu Wang
AUD2HTX (Audio Subsystem TO HDMI TX Subsystem) is a new IP module found on i.MX8MP. Signed-off-by: Shengjiu Wang --- changes in v2: - fix indentation issue - remove nodename .../bindings/sound/fsl,aud2htx.yaml | 64 +++ 1 file changed, 64 insertions(+) create mode

Re: [PATCH v3] platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver

2020-10-28 Thread Hans de Goede
Hi all, On 10/28/20 12:03 PM, Hans de Goede wrote: > Hi, > > On 10/8/20 2:37 PM, Shravan Kumar Ramani wrote: >> The performance modules in BlueField are present in several hardware >> blocks and each block provides access to these stats either through >> counters that can be programmed to

Re: [PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-28 Thread Al Viro
On Tue, Oct 20, 2020 at 02:30:07PM +0800, Zou Cao wrote: > +ssize_t regfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) > +{ > + struct file *file = iocb->ki_filp; > + struct inode *inode = file->f_mapping->host; > + ssize_t ret; > + > + inode_lock(inode); > + ret

[PATCH RFC v2 0/4] x86/bus_lock: Enable bus lock detection

2020-10-28 Thread Fenghua Yu
A bus lock [1] is acquired either through split locked access to writeback (WB) memory or by using locks to uncacheable (UC) memory (e.g. direct device assignment). This is typically >1000 cycles slower than an atomic operation within a cache line. It also disrupts performance on other cores.

RE: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used ring

2020-10-28 Thread Sherry Sun
Hi Arnd, > Subject: Re: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used > ring > > (resending from the kernel.org address after getting bounces again) > > On Wed, Oct 28, 2020 at 7:29 AM Sherry Sun wrote: > > > Subject: Re: [PATCH V3 2/4] misc: vop: do not allocate and reassign

[PATCH RFC v2 4/4] Documentation: Change doc for split_lock_detect parameter

2020-10-28 Thread Fenghua Yu
Since #DB for bus lock detect changes the split_lock_detect parameter, update the documentation for the changes. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- .../admin-guide/kernel-parameters.txt | 47 +++ 1 file changed, 39 insertions(+), 8 deletions(-) diff

Re: [PATCH v2] usb: gadget: configfs: Fix use-after-free issue with udc_name

2020-10-28 Thread Macpaul Lin
On Thu, 2020-10-29 at 01:55 +0800, Macpaul Lin wrote: > From: Eddie Hung > > There is a use-after-free issue, if access udc_name > in function gadget_dev_desc_UDC_store after another context > free udc_name in function unregister_gadget. > > Context 1: >

Re: [PATCH net-next 5/5] net: mscc: ocelot: support L2 multicast entries

2020-10-28 Thread Florian Fainelli
On 10/28/2020 7:27 PM, Vladimir Oltean wrote: > There is one main difference in mscc_ocelot between IP multicast and L2 > multicast. With IP multicast, destination ports are encoded into the > upper bytes of the multicast MAC address. Example: to deliver the > address 01:00:5E:11:22:33 to ports

[PATCH v2 3/3] watchdog: sprd: change to use usleep_range() instead of busy loop

2020-10-28 Thread Chunyan Zhang
From: Chunyan Zhang After changing to check busy bit for the previous loading operation instead of the current one, for most of cases, the busy bit is not set for the first time of read, so there's no need to check so frequently, so this patch use usleep_range() to replace cpu_relax() to avoid

[PATCH v2 2/3] watchdog: sprd: check busy bit before new loading rather than after that

2020-10-28 Thread Chunyan Zhang
From: Lingling Xu As the specification described, users must check busy bit before start a new loading operation to make sure that the previous loading is done and the device is ready to accept a new one. [ chunyan: Massaged changelog ] Fixes: 477603467009 ("watchdog: Add Spreadtrum watchdog

Re: [seccomp] Request for a "enable on execve" mode for Seccomp filters

2020-10-28 Thread Rich Felker
On Wed, Oct 28, 2020 at 01:42:13PM +0100, Jann Horn wrote: > +luto just in case he has opinions on this > > On Wed, Oct 28, 2020 at 12:18 PM Camille Mougey wrote: > > From my understanding, there is no way to delay the activation of > > seccomp filters, for instance "until an _execve_ call". >

[PATCH v2 0/3] A few fixes to sprd watchdog driver

2020-10-28 Thread Chunyan Zhang
From: Chunyan Zhang A few issues about sprd watchdog driver were found recently, this patchset would fix them. Changes since v1: * Added Reviewed-by from Guenter Roeck; * Abandon original patch 2, add a new patch to use usleep_range() instead of busy loop; * Revised the max times of loop, also

[PATCH v2 1/3] watchdog: sprd: remove watchdog disable from resume fail path

2020-10-28 Thread Chunyan Zhang
From: Lingling Xu sprd_wdt_start() would return fail if the loading operation is not completed in a certain time, disabling watchdog for that case would probably cause the kernel crash when kick watchdog later, that's too bad, so remove the watchdog disable operation for the fail case to make

[PATCH -next] net: stmmac: platform: remove useless if/else

2020-10-28 Thread Zou Wei
Fix the following coccinelle report: ./drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:233:6-8: WARNING: possible condition with no effect (if == else) Both branches are the same, so remove the else if/else altogether. Reported-by: Hulk Robot Signed-off-by: Zou Wei ---

Re: [PATCH v2 net] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc

2020-10-28 Thread Yunsheng Lin
On 2020/10/29 4:04, Vishwanath Pai wrote: > On 10/28/20 1:47 PM, Cong Wang wrote: >> On Wed, Oct 28, 2020 at 8:37 AM Pai, Vishwanath wrote: >>> Hi, >>> >>> We noticed some problems when testing the latest 5.4 LTS kernel and traced >>> it >>> back to this commit using git bisect. When running our

linux-next: manual merge of the phy-next tree with the regulator-fixes tree

2020-10-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the phy-next tree got a conflict in: MAINTAINERS between commit: 43c3e148830a ("MAINTAINERS: Add entry for Qualcomm IPQ4019 VQMMC regulator") from the regulator-fixes tree and commit: c36f74566cef ("MAINTAINERS: Add entry for Qualcomm IPQ4019 USB

Re: [PATCH 01/18] dmaengine: of-dma: Add support for optional router configuration callback

2020-10-28 Thread Peter Ujfalusi
Hi Vinod, On 28/10/2020 7.55, Vinod Koul wrote: >> To summarize: >> In of_dma_route_allocate() the router does not yet know the channel we >> are going to get. >> In of_dma_xlate() the DMA driver does not yet know if the channel will >> use router or not. >> I need to tell the router the event

Re: [PATCH] agp: amd64: remove unneeded initialization

2020-10-28 Thread Nathan Chancellor
t; As compilers will detect this unneeded assignment and optimize this anyway, > the resulting binary is identical before and after this change. > > No functional change. No change in binary code. > > Signed-off-by: Lukas Bulwahn Seems obvious :) Reviewed-by: Nathan Chancellor > --- &g

Re: [PATCH net-next 4/5] net: mscc: ocelot: make entry_type a member of struct ocelot_multicast

2020-10-28 Thread Florian Fainelli
On 10/28/2020 7:27 PM, Vladimir Oltean wrote: > This saves a re-classification of the MDB address on deletion. > > Signed-off-by: Vladimir Oltean > --- [snip] > mc = ocelot_multicast_get(ocelot, mdb->addr, vid); > if (!mc) { > /* New entry */ > - int

Re: [PATCH] x86/unwind: remove unneeded initialization

2020-10-28 Thread Nathan Chancellor
> > Signed-off-by: Lukas Bulwahn Seems fine to me. Reviewed-by: Nathan Chancellor > --- > applies cleanly on current master and next-20201028 > > Josh, please ack. > Ingo, Borislav, please pick this minor non-urgent clean-up patch. > > arch/x86/kernel/unwind_orc.c |

[RFC PATCH] irqchip/sifive-plic: Fix getting wrong chip_data when interrupt is hierarchy

2020-10-28 Thread Greentime Hu
This oops is caused by a wrong chip_data and it is because plic_irq_unmask uses irq_get_chip_data(irq_data->irq) to get the chip_data. However it may get another irq_data with the same irq_data->irq if it is hierarchy. In this case, it will get irq_data of sifive_gpio_irqchip instead of plic_chip

Re: [PATCH] stop_machine: Mark functions as notrace

2020-10-28 Thread Zong Li
On Thu, Oct 29, 2020 at 8:23 AM Atish Patra wrote: > > On Wed, Oct 28, 2020 at 8:44 AM Guo Ren wrote: > > > > Hi Zong & Atish, > > > > In our 2 harts c910 chip, we found: > > > > echo function > /sys/kernel/debug/tracing/current_tracer > > echo function_graph >

Re: [PATCH V3 1/1] nvme: Add quirk for LiteON CL1 devices running FW 220TQ,22001

2020-10-28 Thread Keith Busch
On Thu, Oct 29, 2020 at 02:20:27AM +, Gloria Tsai wrote: > Corrected the description of this bug that SSD will not do GC after receiving > shutdown cmd. > Do GC before shutdown -> delete IO Q -> shutdown from host -> breakup GC -> > D3hot -> enter PS4 -> have a chance swap block -> use wrong

Re: [seccomp] Request for a "enable on execve" mode for Seccomp filters

2020-10-28 Thread Rich Felker
On Wed, Oct 28, 2020 at 07:25:45PM +0100, Jann Horn wrote: > On Wed, Oct 28, 2020 at 6:52 PM Rich Felker wrote: > > On Wed, Oct 28, 2020 at 06:34:56PM +0100, Jann Horn wrote: > > > On Wed, Oct 28, 2020 at 5:49 PM Rich Felker wrote: > > > > On Wed, Oct 28, 2020 at 01:42:13PM +0100, Jann Horn

Re: [PATCH net-next 2/5] net: mscc: ocelot: use ether_addr_copy

2020-10-28 Thread Florian Fainelli
On 10/28/2020 7:27 PM, Vladimir Oltean wrote: > Since a helper is available for copying Ethernet addresses, let's use it. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 3/5] net: mscc: ocelot: remove the "new" variable in ocelot_port_mdb_add

2020-10-28 Thread Florian Fainelli
On 10/28/2020 7:27 PM, Vladimir Oltean wrote: > It is Not Needed, a comment will suffice. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 1/5] net: mscc: ocelot: classify L2 mdb entries as LOCKED

2020-10-28 Thread Florian Fainelli
On 10/28/2020 7:27 PM, Vladimir Oltean wrote: > ocelot.h says: > > /* MAC table entry types. > * ENTRYTYPE_NORMAL is subject to aging. > * ENTRYTYPE_LOCKED is not subject to aging. > * ENTRYTYPE_MACv4 is not subject to aging. For IPv4 multicast. > * ENTRYTYPE_MACv6 is not subject to aging.

linux-next: manual merge of the staging tree with the kselftest-fixes tree

2020-10-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the staging tree got conflicts in: tools/testing/selftests/android/ion/ipcsocket.c tools/testing/selftests/android/ion/ipcsocket.h between commit: 08c5d41130e5 ("selftests: android: fix multiple definition of sock_name") from the kselftest-fixes tree

[PATCH net-next 5/5] net: mscc: ocelot: support L2 multicast entries

2020-10-28 Thread Vladimir Oltean
There is one main difference in mscc_ocelot between IP multicast and L2 multicast. With IP multicast, destination ports are encoded into the upper bytes of the multicast MAC address. Example: to deliver the address 01:00:5E:11:22:33 to ports 3, 8, and 9, one would need to program the address of

[PATCH net-next 3/5] net: mscc: ocelot: remove the "new" variable in ocelot_port_mdb_add

2020-10-28 Thread Vladimir Oltean
It is Not Needed, a comment will suffice. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/mscc/ocelot.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c index 763d0277eeae..ea49d715c9d0

[PATCH net-next 4/5] net: mscc: ocelot: make entry_type a member of struct ocelot_multicast

2020-10-28 Thread Vladimir Oltean
This saves a re-classification of the MDB address on deletion. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/mscc/ocelot.c | 51 +++--- drivers/net/ethernet/mscc/ocelot.h | 17 +- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git

[PATCH net-next 0/5] L2 multicast forwarding for Ocelot switch

2020-10-28 Thread Vladimir Oltean
This series enables the mscc_ocelot switch to forward raw L2 (non-IP) mdb entries as configured by the bridge driver after this patch: https://patchwork.ozlabs.org/project/netdev/patch/20201028233831.610076-1-vladimir.olt...@nxp.com/ Vladimir Oltean (5): net: mscc: ocelot: classify L2 mdb

Re: Re: [PATCH 1/1] clk: aspeed: modify some default clks are critical

2020-10-28 Thread Samuel Holland
Stephen, On 10/14/20 12:16 PM, Stephen Boyd wrote: > Quoting Joel Stanley (2020-10-13 22:28:00) >> On Wed, 14 Oct 2020 at 02:50, Stephen Boyd wrote: >>> >>> Quoting Ryan Chen (2020-09-28 00:01:08) In ASPEED SoC LCLK is LPC clock for all SuperIO device, UART1/UART2 are default for Host

[PATCH net-next 1/5] net: mscc: ocelot: classify L2 mdb entries as LOCKED

2020-10-28 Thread Vladimir Oltean
ocelot.h says: /* MAC table entry types. * ENTRYTYPE_NORMAL is subject to aging. * ENTRYTYPE_LOCKED is not subject to aging. * ENTRYTYPE_MACv4 is not subject to aging. For IPv4 multicast. * ENTRYTYPE_MACv6 is not subject to aging. For IPv6 multicast. */ We don't want the permanent entries

[PATCH net-next 2/5] net: mscc: ocelot: use ether_addr_copy

2020-10-28 Thread Vladimir Oltean
Since a helper is available for copying Ethernet addresses, let's use it. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/mscc/ocelot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c index

Re: [seccomp] Request for a "enable on execve" mode for Seccomp filters

2020-10-28 Thread Rich Felker
On Wed, Oct 28, 2020 at 07:39:41PM +0100, Jann Horn wrote: > On Wed, Oct 28, 2020 at 7:35 PM Rich Felker wrote: > > On Wed, Oct 28, 2020 at 07:25:45PM +0100, Jann Horn wrote: > > > On Wed, Oct 28, 2020 at 6:52 PM Rich Felker wrote: > > > > On Wed, Oct 28, 2020 at 06:34:56PM +0100, Jann Horn

[PATCH 5/5] ARM: dts: sun8i: s3: Add dts for the Elimo Initium SBC

2020-10-28 Thread Matteo Scordino
The Elimo Engineering Initium is an Open Source Hardware Single Board Computer based on the Elimo Impetus SoM. It is meant as the first development platform for the Impetus, providing convenient access to the peripherals on the Impetus. It provides: USB-C power input UART-to-USB bridge on the

[PATCH 3/5] ARM: dts: sun8i: s3: Add dtsi for the Elimo Impetus SoM

2020-10-28 Thread Matteo Scordino
The Elimo Engineering Impetus is an Open Source Hardware System-on-Module based on the SoChip S3 SoC. It is meant for integration into carrier boards or, more generally, larger designs, and uses an M2 connector to facilitate that. Interfaces on the M.2/NGFF 42mm connector: WiFi IEEE 802. 11abgn

Re: [PATCH 4.4 000/112] 4.4.241-rc1 review

2020-10-28 Thread Daniel Díaz
Hello! On Wed, 28 Oct 2020 at 13:46, Guenter Roeck wrote: > On Wed, Oct 28, 2020 at 10:06:21AM -0700, Guenter Roeck wrote: > > On Tue, Oct 27, 2020 at 02:48:30PM +0100, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.4.241 release. > > > There are 112

RE: [PATCH V3 1/1] nvme: Add quirk for LiteON CL1 devices running FW 220TQ,22001

2020-10-28 Thread Gloria Tsai
Corrected the description of this bug that SSD will not do GC after receiving shutdown cmd. Do GC before shutdown -> delete IO Q -> shutdown from host -> breakup GC -> D3hot -> enter PS4 -> have a chance swap block -> use wrong pointer on device SRAM -> over program SSD gets in low power mode

[PATCH 2/5] ARM: dts: sun8i: V3/S3: Add UART1 pin definitions to the V3/S3 dtsi

2020-10-28 Thread Matteo Scordino
The Allwinner V3 and S3 can use PG6/7 as RX/TX for UART1. Since no other functions are assigned to those pins, they are a convenient choice for a debugging or application UART. This is specific to V3/S3 as the V3s's non-BGA package did not have those pins. Signed-off-by: Matteo Scordino ---

[PATCH 4/5] dt-bindings: arm: sunxi: add Elimo bindings

2020-10-28 Thread Matteo Scordino
Document board compatible names for Elimo Engineering Impetus and Initium Signed-off-by: Matteo Scordino --- Documentation/devicetree/bindings/arm/sunxi.yaml | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml

[PATCH 1/5] dt-bindings: vendors: add Elimo Engineering vendor prefix

2020-10-28 Thread Matteo Scordino
Add elimo as vendor prefix for dt bindings, since we are adding a dtsi for a SoM and a dts for an SBC Signed-off-by: Matteo Scordino --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 0/5] Elimo Impetus and Initium support

2020-10-28 Thread Matteo Scordino
The Elimo Impetus is an Open Source Hardware System-on-Module based on the SoChip S3 SoC. It is meant for integration into carrier boards or, more generally, larger designs, and uses an M2 connector to facilitate that. The Elimo Initium is a carrier board for the Impetus, together they provide a

[PATCH -next] net: nvidia: forcedeth: remove useless if/else

2020-10-28 Thread Zou Wei
Fix the following coccinelle report: ./drivers/net/ethernet/nvidia/forcedeth.c:3479:8-10: WARNING: possible condition with no effect (if == else) Both branches are the same, so remove the else if/else altogether. Reported-by: Hulk Robot Signed-off-by: Zou Wei ---

[seccomp] Request for a "enable on execve" mode for Seccomp filters

2020-10-28 Thread Camille Mougey
Hello, (This is my first message to the kernel list, I hope I'm doing it right) >From my understanding, there is no way to delay the activation of seccomp filters, for instance "until an _execve_ call". But this might be useful, especially for tools who sandbox other, non-cooperative,

Re: [PATCH] platform/x86: remove unneeded break

2020-10-28 Thread Hans de Goede
Hi, On 10/19/20 3:32 PM, t...@redhat.com wrote: > From: Tom Rix > > A break is not needed if it is preceded by a return > > Signed-off-by: Tom Rix Thank you for your patch, I've applied this patch to my review-hans branch:

Re: [PATCH v2] libata: Fix retrieving of active qcs

2020-10-28 Thread Jens Axboe
On 10/28/20 7:55 AM, Pali Rohár wrote: > On Friday 08 May 2020 07:46:44 Sascha Hauer wrote: >> From fcdcfa9e7a4ee4faf411de1df4f3c4e12c78545c Mon Sep 17 00:00:00 2001 >> From: Sascha Hauer >> Date: Fri, 8 May 2020 07:28:19 +0200 >> Subject: [PATCH] ata: sata_nv: Fix retrieving of active qcs >> >>

Re: [PATCH 0/4] arch, mm: improve robustness of direct map manipulation

2020-10-28 Thread Edgecombe, Rick P
On Wed, 2020-10-28 at 13:09 +0200, Mike Rapoport wrote: > On Tue, Oct 27, 2020 at 09:46:35AM +0100, David Hildenbrand wrote: > > On 27.10.20 09:38, Mike Rapoport wrote: > > > On Mon, Oct 26, 2020 at 06:05:30PM +, Edgecombe, Rick P > > > wrote: > > > > > > > Beyond whatever you are seeing, for

[PATCH v1] kernel.h: Split out mathematical helpers

2020-10-28 Thread Andy Shevchenko
kernel.h is being used as a dump for all kinds of stuff for a long time. Here is the attempt to start cleaning it up by splitting out mathematical helpers. At the same time convert users in header and lib folder to use new header. Though for time being include new header back to kernel.h to avoid

Re: [PATCH] ext4: properly check for dirty state in ext4_inode_datasync_dirty()

2020-10-28 Thread Ritesh Harjani
On 10/28/20 8:59 PM, Theodore Y. Ts'o wrote: On Wed, Oct 28, 2020 at 08:57:03AM +0530, Ritesh Harjani wrote: Well, I too noticed this yesterday while I was testing xfstests -g swap. Those tests were returning _notrun, hence that could be the reason why it didn't get notice in XFSTESTing

[PATCH 0/3] mwifiex: disable ps_mode by default for stability

2020-10-28 Thread Tsuchiya Yuto
Hello all, On Microsoft Surface devices (PCIe-88W8897), we are observing stability issues when ps_mode (IEEE power_save) is enabled, then eventually causes firmware crash. Especially on 5GHz APs, the connection is completely unstable and almost unusable. I think the most desirable change is to

Re: [PATCH] ext4: properly check for dirty state in ext4_inode_datasync_dirty()

2020-10-28 Thread Ritesh Harjani
On 10/28/20 9:18 AM, harshad shirwadkar wrote: Actually the simpler fix for this in case of fast commits is to check if the inode is on the fast commit list or not. Since we clear the fast commit list after every fast and / or full commit, it's always true that if the inode is not on the

[PATCH 0/4] Add GCC and RPMh clock support for SDX55

2020-10-28 Thread Manivannan Sadhasivam
Hello, This series adds Global Clock Controller (GCC) and RPMh clock support for SDX55 SoC from Qualcomm with relevant DT bindings. This series has been tested on SDX55 MTP board. The dts patches for this SoC/board will be posted later. Thanks, Mani Manivannan Sadhasivam (1): clk: qcom: Add

Re: [RESEND PATCH 05/42] mfd: axp20x: use PLATFORM_DEVID_NONE

2020-10-28 Thread Chen-Yu Tsai
On Thu, Oct 29, 2020 at 6:30 AM Krzysztof Kozlowski wrote: > > Use PLATFORM_DEVID_NONE define instead of "-1" value because: > - it brings some meaning, > - it might point attention why auto device ID was not used. > > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Andy Shevchenko

[PATCH -next] coresight: core: Remove unneeded semicolon

2020-10-28 Thread Zou Wei
Fixes coccicheck warning: ./drivers/hwtracing/coresight/coresight-core.c:421:4-5: Unneeded semicolon Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/hwtracing/coresight/coresight-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] Staging: rtl8723bs: core: rtw_cmd: Fixed two if-statement coding style issues

2020-10-28 Thread Manuel Palenzuela
Fixed two cases where the if-statement coding style wasn't following the guidelines. (rtw_cmd.c) Signed-off-by: Manuel Palenzuela --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c

Re: [PATCH 2/2] builddeb: Consolidate consecutive chmod calls into one

2020-10-28 Thread Masahiro Yamada
On Tue, Oct 27, 2020 at 4:32 AM Sven Joachim wrote: > > No need to call chmod three times when it can do everything at once. > > Signed-off-by: Sven Joachim > --- > scripts/package/builddeb | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/scripts/package/builddeb

[tip:x86/cleanups] BUILD SUCCESS 0d847ce7c17613d63401ac82336ee1d5df749120

2020-10-28 Thread kernel test robot
allnoconfig i386 randconfig-a002-20201028 i386 randconfig-a005-20201028 i386 randconfig-a003-20201028 i386 randconfig-a001-20201028 i386 randconfig-a004-20201028 i386 randconfig-a006-20201028

[PATCH] arm64: dts: exynos: Fix reboot/poweroff issues on Exynos7

2020-10-28 Thread Paweł Chmiel
In vendor sources for Exynos 7420, psci is not used to reboot or poweroff device. Instead we should use syscon reboot/poweroff. Previously it was not possible to poweroff (no syscon poweroff node) or reboot (because it was handled by psci and this way is not working for Exynos). Fixes:

[PATCH v4 2/5] x86/boot/compressed/64: Add CPUID sanity check to early #VC handler

2020-10-28 Thread Joerg Roedel
From: Joerg Roedel The early #VC handler which doesn't have a GHCB can only handle CPUID exit codes. It is needed by the early boot code to handle #VC exceptions raised in verify_cpu() and to get the position of the C bit. But the CPUID information comes from the hypervisor, which is untrusted

[PATCH v3 2/3] arm64: dts: qcom: sc7180: Add gpu cooling support

2020-10-28 Thread Akhil P Oommen
Add cooling-cells property and the cooling maps for the gpu tzones to support GPU cooling. Signed-off-by: Akhil P Oommen --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git

[tip:master] BUILD SUCCESS 6f72faf4a32303c8bdc6491186b79391e9cf0c7e

2020-10-28 Thread kernel test robot
randconfig-a002-20201026 i386 randconfig-a003-20201026 i386 randconfig-a005-20201026 i386 randconfig-a001-20201026 i386 randconfig-a006-20201026 i386 randconfig-a004-20201026 x86_64 randconfig-a011-20201028 x86_64

Re: [PATCH v2 net 5/5] net: ipa: avoid going past end of resource group array

2020-10-28 Thread Willem de Bruijn
On Wed, Oct 28, 2020 at 3:42 PM Alex Elder wrote: > > The minimum and maximum limits for resources assigned to a given > resource group are programmed in pairs, with the limits for two > groups set in a single register. > > If the number of supported resource groups is odd, only half of the >

[PATCH v4 0/5] x86/sev-es: Mitigate some HV attack vectors

2020-10-28 Thread Joerg Roedel
From: Joerg Roedel Hi, here are some enhancements to the SEV(-ES) code in the Linux kernel to self-protect it against some newly detected hypervisor attacks. There are 3 attacks addressed here: 1) Hypervisor does not present the SEV-enabled bit via CPUID 2) The Hypervisor

[PATCH v4 5/5] x86/sev-es: Do not support MMIO to/from encrypted memory

2020-10-28 Thread Joerg Roedel
From: Joerg Roedel MMIO memory is usually not mapped encrypted, so there is no reason to support emulated MMIO when it is mapped encrypted. Prevent a possible hypervisor attack where a RAM page is mapped as an MMIO page in the nested page-table, so that any guest access to it will trigger a #VC

Re: [PATCH v3 3/5] x86/boot/compressed/64: Check SEV encryption in 64-bit boot-path

2020-10-28 Thread Joerg Roedel
On Tue, Oct 27, 2020 at 12:08:12PM +0100, Borislav Petkov wrote: > On Wed, Oct 21, 2020 at 02:39:36PM +0200, Joerg Roedel wrote: > > diff --git a/arch/x86/kernel/sev_verify_cbit.S > > b/arch/x86/kernel/sev_verify_cbit.S > > new file mode 100644 > > index ..5075458ecad0 > > ---

[PATCH v4 3/5] x86/boot/compressed/64: Check SEV encryption in 64-bit boot-path

2020-10-28 Thread Joerg Roedel
From: Joerg Roedel Check whether the hypervisor reported the correct C-bit when running as an SEV guest. Using a wrong C-bit position could be used to leak sensitive data from the guest to the hypervisor. The check function is in arch/x86/kernel/sev_verify_cbit.S so that it can be re-used in

RE: [PATCH v3] usb: cdns3: Variable 'length' set but not used

2020-10-28 Thread Pawel Laszczak
> >> Peter, >> >> It looks like you missed the " [PATCH v3] usb: cdns3: Variable 'length' set >> but >> not used" >> >> It's quite important because compiler complains for this when I use W=1. >> > >Pawel, it is the bug-fix, and located at branch: for-usb-fixes. But I can't see it in this

Re: [PATCH v6 13/29] arm64/build: Assert for unwanted sections

2020-10-28 Thread Alexei Starovoitov
On Tue, Oct 27, 2020 at 09:15:17PM +0100, Ard Biesheuvel wrote: > On Tue, 27 Oct 2020 at 21:12, Nick Desaulniers > wrote: > > > > On Tue, Oct 27, 2020 at 12:25 PM Geert Uytterhoeven > > wrote: > > > > > > Hi Nick, > > > > > > CC Josh > > > > > > On Mon, Oct 26, 2020 at 6:49 PM Nick Desaulniers

[PATCH v2] usb: gadget: configfs: Fix use-after-free issue with udc_name

2020-10-28 Thread Macpaul Lin
From: Eddie Hung There is a use-after-free issue, if access udc_name in function gadget_dev_desc_UDC_store after another context free udc_name in function unregister_gadget. Context 1: gadget_dev_desc_UDC_store()->unregister_gadget()-> free udc_name->set udc_name to NULL Context 2:

[PATCH v4 4/5] x86/head/64: Check SEV encryption before switching to kernel page-table

2020-10-28 Thread Joerg Roedel
From: Joerg Roedel When SEV is enabled the kernel requests the C-Bit position again from the hypervisor to built its own page-table. Since the hypervisor is an untrusted source the C-bit position needs to be verified before the kernel page-table is used. Call the sev_verify_cbit() function

Re: [PATCH] smp: Add bootcpus parameter to boot subset of CPUs

2020-10-28 Thread Sudeep Holla
On Fri, Oct 23, 2020 at 7:24 AM Elliot Berman wrote: > > In a heterogeneous multiprocessor system, specifying the 'maxcpus' > parameter on kernel command line does not provide sufficient control > over which CPUs are brought online at kernel boot time, since CPUs may > have nonuniform performance

[PATCH 3/8] sched: Fix some style issues in test_coresched.c

2020-10-28 Thread John B. Wyatt IV
Line 825: open brace '{' following function definitions go on the next line. Line 459: that open brace { should be on the previous line Line 459: space required before the open parenthesis '(' Issues reported by checkpatch. There are other issues including over a hundred instances of using

[PATCH v4 1/5] x86/boot/compressed/64: Introduce sev_status

2020-10-28 Thread Joerg Roedel
From: Joerg Roedel Introduce sev_status and initialize it together with sme_me_mask to have an indicator which SEV features are enabled. Signed-off-by: Joerg Roedel --- arch/x86/boot/compressed/mem_encrypt.S | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git

[PATCH v3 1/3] drm/msm: Add support for GPU cooling

2020-10-28 Thread Akhil P Oommen
Register GPU as a devfreq cooling device so that it can be passively cooled by the thermal framework. Signed-off-by: Akhil P Oommen --- Changes in v3: 1. Minor fix in binding documentation (RobH) Changes in v2: 1. Update the dt bindings documentation

Re: [PATCH 1/2] ASoC: codecs: wcd934x: Set digital gain range correctly

2020-10-28 Thread Mark Brown
On Wed, 28 Oct 2020 15:43:39 +, Srinivas Kandagatla wrote: > digital gain range is -84dB min to 40dB max, however this was not > correctly specified in the range. > > Fix this by with correct range! Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Re: [PATCH] dcookies: Make dcookies depend on CONFIG_OPROFILE

2020-10-28 Thread Arnd Bergmann
On Wed, Oct 28, 2020 at 5:34 PM William Cohen wrote: > > On 10/27/20 12:54 PM, Linus Torvalds wrote: > > On Tue, Oct 27, 2020 at 1:52 AM Christoph Hellwig > > wrote: > >> > >> Is it time to deprecate and eventually remove oprofile while we're at > >> it? > > > > I think it's well past time. > >

Re: [PATCH] powerpc/smp: Move rcu_cpu_starting() earlier

2020-10-28 Thread Paul E. McKenney
On Wed, Oct 28, 2020 at 02:23:34PM -0400, Qian Cai wrote: > The call to rcu_cpu_starting() in start_secondary() is not early enough > in the CPU-hotplug onlining process, which results in lockdep splats as > follows: > > WARNING: suspicious RCU usage > - >

Re: [PATCH] hugetlb_cgroup: fix reservation accounting

2020-10-28 Thread Mina Almasry
On Thu, Oct 22, 2020 at 5:21 AM Michael S. Tsirkin wrote: > > On Wed, Oct 21, 2020 at 01:44:26PM -0700, Mike Kravetz wrote: > > Michal Privoznik was using "free page reporting" in QEMU/virtio-balloon > > with hugetlbfs and hit the warning below. QEMU with free page hinting > > uses

Re: [PATCH RFC v2 12/21] kasan: inline and rename kasan_unpoison_memory

2020-10-28 Thread Dmitry Vyukov
On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov wrote: > > Currently kasan_unpoison_memory() is used as both an external annotation > and as internal memory poisoning helper. Rename external annotation to > kasan_unpoison_data() and inline the internal helper for for hardware > tag-based mode to

[PATCH -next] drm/i915: Remove unused variable ret

2020-10-28 Thread Zou Wei
This patch fixes below warnings reported by coccicheck ./drivers/gpu/drm/i915/i915_debugfs.c:789:5-8: Unneeded variable: "ret". Return "0" on line 1012 Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/gpu/drm/i915/i915_debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [PATCH] dcookies: Make dcookies depend on CONFIG_OPROFILE

2020-10-28 Thread William Cohen
On 10/27/20 12:54 PM, Linus Torvalds wrote: > On Tue, Oct 27, 2020 at 1:52 AM Christoph Hellwig wrote: >> >> Is it time to deprecate and eventually remove oprofile while we're at >> it? > > I think it's well past time. > > I think the user-space "oprofile" program doesn't actually use the >

Re: [seccomp] Request for a "enable on execve" mode for Seccomp filters

2020-10-28 Thread Rich Felker
On Wed, Oct 28, 2020 at 06:34:56PM +0100, Jann Horn wrote: > On Wed, Oct 28, 2020 at 5:49 PM Rich Felker wrote: > > On Wed, Oct 28, 2020 at 01:42:13PM +0100, Jann Horn wrote: > > > On Wed, Oct 28, 2020 at 12:18 PM Camille Mougey wrote: > > > You're just focusing on execve() - I think it's

Re: [PATCH v2 06/15] perf session: load data directory into tool process memory

2020-10-28 Thread Jiri Olsa
On Tue, Oct 27, 2020 at 05:43:20PM +0300, Alexey Budankov wrote: > > On 27.10.2020 15:21, Jiri Olsa wrote: > > On Tue, Oct 27, 2020 at 10:37:58AM +0300, Alexey Budankov wrote: > >> > >> On 24.10.2020 18:43, Jiri Olsa wrote: > >>> On Wed, Oct 21, 2020 at 07:01:19PM +0300, Alexey Budankov wrote: >

[PATCH v3 3/3] dt-bindings: drm/msm/gpu: Add cooling device support

2020-10-28 Thread Akhil P Oommen
Add cooling device support to gpu. A cooling device is bound to a thermal zone to allow thermal mitigation. Signed-off-by: Akhil P Oommen --- Documentation/devicetree/bindings/display/msm/gpu.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH] dt-bindings: phy: Add Cadence Sierra PHY bindings in YAML format

2020-10-28 Thread Swapnil Jakhade
Add Cadence Sierra PHY bindings in YAML format. Signed-off-by: Swapnil Jakhade --- .../bindings/phy/phy-cadence-sierra.txt | 70 .../bindings/phy/phy-cadence-sierra.yaml | 152 ++ 2 files changed, 152 insertions(+), 70 deletions(-) delete mode 100644

  1   2   3   4   5   6   7   8   9   10   >