[PATCH] dtbs: hikey970: add wifi support

2020-08-25 Thread Mauro Carvalho Chehab
The dwmmc2 is used on Hikey 970 for WiFi support. The hi3670.dtsi adds it, but with status="disabled". For WiFi to work,it needs to be enabled. While here, add the missing properties: #address-cells = <0x1>; #size-cells = <0x0>; and add ti,non-removable To DT

Re: [PATCH v18 25/32] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

2020-08-25 Thread Alex Shi
LKP reported a preemptiable issue on this patch. update and refresh the commit log. >From f18e8c87a045bbb8040006b6816ded1f55fa6f9c Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Sat, 25 Jul 2020 22:31:03 +0800 Subject: [PATCH] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-08-25 Thread Kai-Heng Feng
> On Aug 25, 2020, at 14:56, Christoph Hellwig wrote: > > On Tue, Aug 25, 2020 at 02:39:55PM +0800, Kai Heng Feng wrote: >> Hi Christoph, >> >>> On Aug 25, 2020, at 2:23 PM, Christoph Hellwig wrote: >>> >>> On Fri, Aug 21, 2020 at 08:32:20PM +0800, Kai-Heng Feng wrote: New Intel

[PATCH] Revert "wlcore: Adding suppoprt for IGTK key in wlcore driver"

2020-08-25 Thread Mauro Carvalho Chehab
This patch causes a regression betwen Kernel 5.7 and 5.8 at wlcore: with it applied, WiFi stops working, and the Kernel starts printing this message every second: wlcore: PHY firmware version: Rev 8.2.0.0.242 wlcore: firmware booted (Rev 8.9.0.0.79) wlcore: ERROR command execute failure

RE: [PATCH 1/1] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-08-25 Thread Tian, Kevin
> From: Lu Baolu > Sent: Wednesday, August 26, 2020 10:58 AM > > The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG > General > Description) that: > > If multiple control fields in this register need to be modified, software > must serialize the modifications through multiple

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-25 Thread Sergey Senozhatsky
On (20/08/26 07:08), Wolfram Sang wrote: > On Wed, Aug 26, 2020 at 01:29:37PM +0900, Sergey Senozhatsky wrote: > > Unlike acpi_match_device(), acpi_driver_match_device() does > > consider devices that provide of_match_table and performs > > of_compatible() matching for such devices. The key point

[PATCH] drm/i915/lspcon: Limits to 8 bpc for RGB/YCbCr444

2020-08-25 Thread Kai-Heng Feng
LSPCON only supports 8 bpc for RGB/YCbCr444. Set the correct bpp otherwise it renders blank screen. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2195 Signed-off-by: Kai-Heng Feng --- drivers/gpu/drm/i915/display/intel_lspcon.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-08-25 Thread Joonsoo Kim
2020년 8월 26일 (수) 오전 9:42, Andrew Morton 님이 작성: > > On Tue, 25 Aug 2020 14:34:32 +0900 Joonsoo Kim wrote: > > > > > > > That's a bunch more code on a very hot path to serve an obscure feature > > > which has a single obscure callsite. > > > > > > Can we instead put the burden on that callsite

[PATCH] net: hns3: Fix for geneve tx checksum bug

2020-08-25 Thread Yi Li
when skb->encapsulation is 0, skb->ip_summed is CHECKSUM_PARTIAL and it is udp packet, which has a dest port as the IANA assigned. the hardware is expected to do the checksum offload, but the hardware will not do the checksum offload when udp dest port is 6081. This patch fixes it by doing the

Re: [PATCH] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-25 Thread CK Hu
Hi, Chih-En: On Wed, 2020-08-26 at 13:01 +0800, Chih-En Hsu wrote: > This patch is to remove function "mtk_reg_write" since > Mediatek EFUSE hardware only supports read functionality > for NVMEM consumers. > This is a bug-fix patch, so need a 'Fixes' tag. You could refer to [1]. [1]

Re: [PATCH for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-08-25 Thread Joonsoo Kim
2020년 8월 25일 (화) 오후 6:43, Vlastimil Babka 님이 작성: > > > On 8/25/20 6:59 AM, js1...@gmail.com wrote: > > From: Joonsoo Kim > > > > memalloc_nocma_{save/restore} APIs can be used to skip page allocation > > on CMA area, but, there is a missing case and the page on CMA area could > > be allocated

Re: [PATCH 3/3] ARM: defconfig: Enable ax88796c driver

2020-08-25 Thread Lukasz Stelmach
It was <2020-08-25 wto 20:51>, when Krzysztof Kozlowski wrote: > On Tue, Aug 25, 2020 at 07:03:11PM +0200, Łukasz Stelmach wrote: >> Enable ax88796c driver for the ethernet chip on Exynos3250-based >> ARTIK5 boards. >> >> Signed-off-by: Łukasz Stelmach >> --- >>

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-25 Thread Wolfram Sang
On Wed, Aug 26, 2020 at 01:29:37PM +0900, Sergey Senozhatsky wrote: > Unlike acpi_match_device(), acpi_driver_match_device() does > consider devices that provide of_match_table and performs > of_compatible() matching for such devices. The key point here is > that ACPI of_compatible() matching -

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-25 Thread Sergey Senozhatsky
On (20/08/26 13:29), Sergey Senozhatsky wrote: > Unlike acpi_match_device(), acpi_driver_match_device() does > consider devices that provide of_match_table and performs > of_compatible() matching for such devices. The key point here is > that ACPI of_compatible() matching - acpi_of_match_device()

[PATCH] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-25 Thread Chih-En Hsu
This patch is to remove function "mtk_reg_write" since Mediatek EFUSE hardware only supports read functionality for NVMEM consumers. Signed-off-by: Chih-En Hsu --- drivers/nvmem/mtk-efuse.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/nvmem/mtk-efuse.c

[PATCH v2] dt-bindings: convert spmi.txt to spmi.yaml

2020-08-25 Thread Mauro Carvalho Chehab
Convert the SPMI bus documentation to JSON/yaml. Signed-off-by: Mauro Carvalho Chehab --- v2: - addressed issues pointed by Rob; - made clear that group ID is a future extension, that it is not currently supported. .../bindings/mfd/qcom,spmi-pmic.txt | 2 +-

Re: [PATCH v1 5/9] phy: qcom-qmp: Get dp_com I/O resource by index

2020-08-25 Thread Bjorn Andersson
On Tue 25 Aug 21:47 CDT 2020, Stephen Boyd wrote: > The dp_com resource is always at index 1 according to the dts files in > the kernel. Get this resource by index so that we don't need to make > future additions to the DT binding use 'reg-names'. > Afaict the DT binding for the USB/DP phy

Re: [net-next v5 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-08-25 Thread Chris Packham
Hi Vadym, On 26/08/20 12:20 am, Vadym Kochan wrote: > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely > wireless SMB deployment. I think there's a typo here or possibly in patch 1. The AC3x family has model

[PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-25 Thread Sergey Senozhatsky
Unlike acpi_match_device(), acpi_driver_match_device() does consider devices that provide of_match_table and performs of_compatible() matching for such devices. The key point here is that ACPI of_compatible() matching - acpi_of_match_device() - is part of ACPI and does not depend on CONFIG_OF.

Re: [PATCH] [v2] blk-mq: use BLK_MQ_NO_TAG for no tag

2020-08-25 Thread Ming Lei
On Wed, Aug 26, 2020 at 10:06:51AM +0800, Xianting Tian wrote: > Replace various magic -1 constants for tags with BLK_MQ_NO_TAG. > And move the definition of BLK_MQ_NO_TAG from 'block/blk-mq-tag.h' > to 'include/linux/blk-mq.h' All three symbols are supposed for block core internal code only, so

[PATCH 2/2] i2c: do not export i2c_of_match_device() symbol

2020-08-25 Thread Sergey Senozhatsky
Do not export i2c_of_match_device(). Signed-off-by: Sergey Senozhatsky --- drivers/i2c/i2c-core-of.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/i2c-core-of.c b/drivers/i2c/i2c-core-of.c index 3ed74aa4b44b..77faa9cc05c9 100644 --- a/drivers/i2c/i2c-core-of.c +++

[PATCH 2/2] perf parse-events: Avoid an uninitialized read.

2020-08-25 Thread Ian Rogers
With a fake_pmu the pmu_info isn't populated by perf_pmu__check_alias. In this case, don't try to copy the uninitialized values to the evsel. Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff

[PATCH 1/2] perf expr: Force encapsulation on expr_id_data

2020-08-25 Thread Ian Rogers
This patch resolves some undefined behavior where variables in expr_id_data were accessed (for debugging) without being defined. To better enforce the tagged union behavior, the struct is moved into expr.c and accessors provided. Tag values (kinds) are explicitly identified. Signed-off-by: Ian

RE: [PATCH v3] exfat: integrates dir-entry getting and validation

2020-08-25 Thread Namjae Jeon
> On 2020/08/26 10:03, Namjae Jeon wrote: > >> Second: Range validation and type validation should not be separated. > >> When I started making this patch, I intended to add only range validation. > >> However, after the caller gets the ep, the type validation follows. > >> Get ep, null check of

Re: [PATCH] dt-bindings: convert spmi.txt to spmi.yaml

2020-08-25 Thread Mauro Carvalho Chehab
Em Wed, 19 Aug 2020 17:08:12 -0600 Rob Herring escreveu: > Need to also define 'reg' constraints as defined by the bus: > > properties: > reg: > minItems: 1 > maxItems: 2 #??? Not sure about this. Is it 1 SPMI_USID and 1 \ > SPMI_GSID entry at most? Each child have just one user ID

Re: [PATCH 2/2] media: v4l2-mem2mem: simplify poll logic a bit

2020-08-25 Thread Ezequiel Garcia
Hi Alexandre, On Tue, 25 Aug 2020 at 11:56, Alexandre Courbot wrote: > > Factorize redundant checks into a single code block, remove the early > return, and declare variables in their innermost block. Hopefully this > makes this code a little bit easier to follow. > This _definitely_ makes the

Re: [PATCH 1/2] media: v4l2-mem2mem: consider OUTPUT queue first when polling

2020-08-25 Thread Ezequiel Garcia
Hi Alexandre, On Tue, 25 Aug 2020 at 11:56, Alexandre Courbot wrote: > > If poll() is called on a m2m device with the EPOLLOUT event after the > last buffer of the CAPTURE queue is dequeued, any buffer available on > OUTPUT queue will never be signaled because v4l2_m2m_poll_for_data() > starts

drivers/mtd/maps/physmap-ixp4xx.c:47:22: sparse: sparse: incorrect type in argument 1 (different base types)

2020-08-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2ac69819ba9e3d8d550bb5d2d2df74848e556812 commit: 2aba2f2a704d368583e832555b25d88265e62b6d mtd: physmap_of: add a hook for Intel IXP4xx flash probing date: 10 months ago config:

RE: [PATCH 3/3] usb: cdns3: Enable workaround for USB2.0 PHY Rx compliance test PHY lockup

2020-08-25 Thread Pawel Laszczak
>On 20-08-25 15:00:59, Roger Quadros wrote: >> From: Pawel Laszczak >> >> USB2.0 PHY hangs in Rx Compliance test when the incoming packet >> amplitude is varied below and above the Squelch Level of >> Receiver during the active packet multiple times. >> >> Version 1 of the controller allows PHY

Re: [PATCH v2 1/6] xfrm/compat: Add 64=>32-bit messages translator

2020-08-25 Thread kernel test robot
Hi Dmitry, Thank you for the patch! Yet something to improve: [auto build test ERROR on ipsec/master] [also build test ERROR on kselftest/next linus/master v5.9-rc2 next-20200825] [cannot apply to ipsec-next/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

[PATCH] audit: Remove redundant null check

2020-08-25 Thread Xu Wang
Because kfree_skb already checked NULL skb parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang --- kernel/audit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index 7efaece534a9..144e1e9322a5 100644

mmotm 2020-08-25-20-59 uploaded

2020-08-25 Thread akpm
The mm-of-the-moment snapshot 2020-08-25-20-59 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH -next] irqchip/ti-sci-inta: Fix unsigned comparison to zero

2020-08-25 Thread Lokesh Vutla
On 26/08/20 9:24 am, YueHaibing wrote: > ti_sci_inta_xlate_irq() return -ENOENT on fail, p_hwirq > should be int type. > > Fixes: 5c4b585d2910 ("irqchip/ti-sci-inta: Add support for INTA directly > connecting to GIC") > Signed-off-by: YueHaibing Acked-by: Lokesh Vutla Thanks and regards,

Re: [PATCH -next] irqchip/ti-sci-intr: Fix unsigned comparison to zero

2020-08-25 Thread Lokesh Vutla
On 26/08/20 9:23 am, YueHaibing wrote: > ti_sci_intr_xlate_irq() return -ENOENT on fail, p_hwirq > should be int type. > > Fixes: a5b659bd4bc7 ("irqchip/ti-sci-intr: Add support for INTR being a > parent to INTR") > Signed-off-by: YueHaibing Thanks for the patch. Acked-by: Lokesh Vutla

[PATCH -next] irqchip/ti-sci-inta: Fix unsigned comparison to zero

2020-08-25 Thread YueHaibing
ti_sci_inta_xlate_irq() return -ENOENT on fail, p_hwirq should be int type. Fixes: 5c4b585d2910 ("irqchip/ti-sci-inta: Add support for INTA directly connecting to GIC") Signed-off-by: YueHaibing --- drivers/irqchip/irq-ti-sci-inta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH -next] irqchip/ti-sci-intr: Fix unsigned comparison to zero

2020-08-25 Thread YueHaibing
ti_sci_intr_xlate_irq() return -ENOENT on fail, p_hwirq should be int type. Fixes: a5b659bd4bc7 ("irqchip/ti-sci-intr: Add support for INTR being a parent to INTR") Signed-off-by: YueHaibing --- drivers/irqchip/irq-ti-sci-intr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH] arm64: dts: allwinner: Mark timer as stopped in suspend

2020-08-25 Thread Samuel Holland
On 8/18/20 4:10 AM, Maxime Ripard wrote: > Hi! > > On Sat, Aug 08, 2020 at 09:18:22PM -0500, Samuel Holland wrote: >> When possible, system firmware on 64-bit Allwinner platforms disables >> OSC24M during system suspend. Since this oscillator is the clock source >> for the ARM architectural

include/linux/string.h:377:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter

2020-08-25 Thread kernel test robot
Hi Karsten, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2ac69819ba9e3d8d550bb5d2d2df74848e556812 commit: f3811fd7bc97587b142fed9edf8c726694220cb2 net/smc: send DELETE_LINK, ALL message and wait for send to

[PATCH 2/3] integrity: Move import of MokListRT certs to a separate routine

2020-08-25 Thread Lenny Szubowicz
Move the loading of certs from the UEFI MokListRT into a separate routine to facilitate additional MokList functionality. There is no visible functional change as a result of this patch. Although the UEFI dbx certs are now loaded before the MokList certs, they are loaded onto different key rings.

[PATCH 3/3] integrity: Load certs from the EFI MOK config table

2020-08-25 Thread Lenny Szubowicz
Because of system-specific EFI firmware limitations, EFI volatile variables may not be capable of holding the required contents of the Machine Owner Key (MOK) certificate store. Therefore, an EFI boot loader may pass the MOK certs via a EFI configuration table created specifically for this purpose

[PATCH 1/3] efi: Support for MOK variable config table

2020-08-25 Thread Lenny Szubowicz
Because of system-specific EFI firmware limitations, EFI volatile variables may not be capable of holding the required contents of the Machine Owner Key (MOK) certificate store. Therefore, an EFI boot loader may pass the MOK certs via a EFI configuration table created specifically for this purpose

[PATCH 0/3] integrity: Load certs from EFI MOK config table

2020-08-25 Thread Lenny Szubowicz
Because of system-specific EFI firmware limitations, EFI volatile variables may not be capable of holding the required contents of the Machine Owner Key (MOK) certificate store. Therefore, an EFI boot loader may pass the MOK certs via a EFI configuration table created specifically for this purpose

Re: [PATCH v1 3/9] phy: qcom-qmp: Remove 'initialized' in favor of 'init_count'

2020-08-25 Thread Bjorn Andersson
On Tue 25 Aug 21:47 CDT 2020, Stephen Boyd wrote: > We already track if any phy inside the qmp wrapper has been initialized > by means of the struct qcom_qmp::init_count member. Let's drop the > duplicate 'initialized' member to simplify the code a bit. > > Cc: Jeykumar Sankaran > Cc: Chandan

Re: [PATCH v1 2/9] phy: qcom-qmp: Move phy mode into struct qmp_phy

2020-08-25 Thread Bjorn Andersson
On Tue 25 Aug 21:47 CDT 2020, Stephen Boyd wrote: > The phy mode pertains to the phy itself, i.e. 'struct qmp_phy', not the > wrapper, i.e. 'struct qcom_qmp'. Move the phy mode into the phy > structure to more accurately reflect what is going on. This also cleans > up 'struct qcom_qmp' so that it

Re: [PATCH 5/9] iomap: Support arbitrarily many blocks per page

2020-08-25 Thread Darrick J. Wong
On Wed, Aug 26, 2020 at 03:26:23AM +0100, Matthew Wilcox wrote: > On Tue, Aug 25, 2020 at 02:02:03PM -0700, Darrick J. Wong wrote: > > > /* > > > - * Structure allocated for each page when block size < PAGE_SIZE to track > > > + * Structure allocated for each page when block size < page size to

Re: [PATCH v1 1/1] extcon: ptn5150: Add usb-typec support for Intel LGM SoC

2020-08-25 Thread Ramuthevar, Vadivel MuruganX
Hi, Thank you very much for the review comments... On 25/8/2020 6:46 pm, Chanwoo Choi wrote: Hi, On 8/25/20 5:31 PM, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Add usb-typec detection support for Intel LGM SoC based boards. Signed-off-by: Ramuthevar Vadivel

Re: [PATCH 3/3] usb: cdns3: Enable workaround for USB2.0 PHY Rx compliance test PHY lockup

2020-08-25 Thread Peter Chen
On 20-08-25 15:00:59, Roger Quadros wrote: > From: Pawel Laszczak > > USB2.0 PHY hangs in Rx Compliance test when the incoming packet > amplitude is varied below and above the Squelch Level of > Receiver during the active packet multiple times. > > Version 1 of the controller allows PHY to be

[PATCH] ptp: ptp_ines: Remove redundant null check

2020-08-25 Thread Xu Wang
Because kfree_skb already checked NULL skb parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang --- drivers/ptp/ptp_ines.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ptp/ptp_ines.c b/drivers/ptp/ptp_ines.c index

[PATCH net] drivers/net/wan/lapbether: Set network_header before transmitting

2020-08-25 Thread Xie He
Set the skb's network_header before it is passed to the underlying Ethernet device for transmission. This patch fixes the following issue: When we use this driver with AF_PACKET sockets, there would be error messages of: protocol 0805 is buggy, dev (Ethernet interface name) printed in the

[PATCH 1/1] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-08-25 Thread Lu Baolu
The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG General Description) that: If multiple control fields in this register need to be modified, software must serialize the modifications through multiple writes to this register. However, in irq_remapping.c, modifications of IRE and

RE: [EXT] Re: [PATCH] edac: nxp: Add L1 and L2 error detection for A53 and A72 cores

2020-08-25 Thread Alison Wang
Hi, James, > On 25/08/2020 03:31, Alison Wang wrote: > >> On 09/07/2020 09:22, Alison Wang wrote: > >>> Add error detection for A53 and A72 cores. Hardware error injection > >>> is supported on A53. Software error injection is supported on both. > >> > > > >> > >> As we can't safely write to

Re: [mm] c566586818: BUG:kernel_hang_in_early-boot_stage,last_printk:Probing_EDD(edd=off_to_disable)...ok

2020-08-25 Thread Qian Cai
> On Aug 25, 2020, at 8:44 PM, Rong Chen wrote: > > I rebuilt the kernel on commit c566586818 but the error changed to "RIP: > 0010:clear_page_orig+0x12/0x40", > and the error can be reproduced on parent commit: Catalin, any thought? Sounds like those early kmemleak allocations cause some

Re: [PATCH v3] exfat: integrates dir-entry getting and validation

2020-08-25 Thread Tetsuhiro Kohada
On 2020/08/26 10:03, Namjae Jeon wrote: Second: Range validation and type validation should not be separated. When I started making this patch, I intended to add only range validation. However, after the caller gets the ep, the type validation follows. Get ep, null check of ep (= range

Re: [PATCH] iommu/vt-d:Add support for detecting ACPI device in RMRR

2020-08-25 Thread Lu Baolu
Hi Felix, On 8/18/20 10:44 AM, FelixCuioc wrote: Some ACPI devices need to issue dma requests to access the reserved memory area.BIOS uses the device scope type ACPI_NAMESPACE_DEVICE in RMRR to report these ACPI devices. This patch add support for detecting ACPI devices in RMRR. If you are

Re: [PATCH v1 0/9] extcon: extcon-ptn5150: Add the USB external connector support

2020-08-25 Thread Ramuthevar, Vadivel MuruganX
Hi Heikki, Thank you very much for the review comment... On 25/8/2020 4:19 pm, Heikki Krogerus wrote: On Wed, Aug 19, 2020 at 04:45:38PM +0800, Ramuthevar, Vadivel MuruganX wrote: Hi Andy, On 19/8/2020 3:55 pm, Andy Shevchenko wrote: On Wed, Aug 19, 2020 at 8:38 AM Ramuthevar, Vadivel

Re: [PATCH v2] x86/hotplug: Silence APIC only after all irq's are migrated

2020-08-25 Thread Raj, Ashok
Hi Thomas, On Wed, Aug 26, 2020 at 02:40:45AM +0200, Thomas Gleixner wrote: > Ashok, > > On Thu, Aug 20 2020 at 17:42, Ashok Raj wrote: > > When offlining CPUs, fixup_irqs() migrates all interrupts away from the > > outgoing CPU to an online CPU. It's always possible the device sent an > >

[PATCH v1 0/9] Support qcom USB3+DP combo phy (or type-c phy)

2020-08-25 Thread Stephen Boyd
This patch series is based on v11 of the msm DP driver submission[1] plus a compliance patch[2]. In the v5 patch series review I suggested that the DP PHY and PLL be split out of the drm driver and moved to the qmp phy driver. This patch series does that, but it is still marked as an RFC because

[PATCH v1 5/9] phy: qcom-qmp: Get dp_com I/O resource by index

2020-08-25 Thread Stephen Boyd
The dp_com resource is always at index 1 according to the dts files in the kernel. Get this resource by index so that we don't need to make future additions to the DT binding use 'reg-names'. Cc: Jeykumar Sankaran Cc: Chandan Uddaraju Cc: Vara Reddy Cc: Tanmay Shah Cc: Bjorn Andersson Cc:

[PATCH v1 6/9] phy: qcom-qmp: Add support for DP in USB3+DP combo phy

2020-08-25 Thread Stephen Boyd
Add support for the USB3 + DisplayPort (DP) "combo" phy to the qmp phy driver. We already have support for the USB3 part of the combo phy, so most additions are for the DP phy. Split up the qcom_qmp_phy{enable,disable}() functions into the phy init, power on, power off, and exit functions that

[PATCH v1 7/9] phy: qcom-qmp: Add support for sc7180 DP phy

2020-08-25 Thread Stephen Boyd
Add the necessary compatible strings and phy data for the sc7180 USB3+DP combo phy. Cc: Jeykumar Sankaran Cc: Chandan Uddaraju Cc: Vara Reddy Cc: Tanmay Shah Cc: Bjorn Andersson Cc: Manu Gautam Cc: Sandeep Maheswaram Cc: Douglas Anderson Cc: Sean Paul Cc: Jonathan Marek Cc: Dmitry

[PATCH v1 2/9] phy: qcom-qmp: Move phy mode into struct qmp_phy

2020-08-25 Thread Stephen Boyd
The phy mode pertains to the phy itself, i.e. 'struct qmp_phy', not the wrapper, i.e. 'struct qcom_qmp'. Move the phy mode into the phy structure to more accurately reflect what is going on. This also cleans up 'struct qcom_qmp' so that it can eventually be the place where qmp wrapper wide data is

[PATCH v1 3/9] phy: qcom-qmp: Remove 'initialized' in favor of 'init_count'

2020-08-25 Thread Stephen Boyd
We already track if any phy inside the qmp wrapper has been initialized by means of the struct qcom_qmp::init_count member. Let's drop the duplicate 'initialized' member to simplify the code a bit. Cc: Jeykumar Sankaran Cc: Chandan Uddaraju Cc: Vara Reddy Cc: Tanmay Shah Cc: Bjorn Andersson

[PATCH v1 4/9] phy: qcom-qmp: Move 'serdes' and 'cfg' into 'struct qcom_phy'

2020-08-25 Thread Stephen Boyd
The serdes I/O region is where the PLL for the phy is controlled. Sometimes the PLL is shared between multiple phys, for example in the PCIe case where there are three phys inside the same wrapper. Other times the PLL is for a single phy, i.e. some USB3 phys. To complete the trifecta we have the

[PATCH v1 8/9] clk: qcom: dispcc: Update DP clk ops for phy design

2020-08-25 Thread Stephen Boyd
The clk_rcg2_dp_determine_rate() function is used for the DP pixel clk. This function should return the rate that can be achieved by the pixel clk in 'struct clk_rate_request::rate' and match the logic similar to what is seen in clk_rcg2_dp_set_rate(). But that isn't the case. Instead the code

[PATCH v1 1/9] dt-bindings: phy: qcom,qmp-usb3-dp: Add DP phy information

2020-08-25 Thread Stephen Boyd
This binding only describes the USB phy inside the USB3 + DP "combo" phy. Add information for the DP phy and describe the sub-nodes that represent the DP and USB3 phys that exist inside the combo wrapper. Remove reg-names from required properties because it isn't required nor used by the kernel

Re: [External] Re: [PATCH] mm/hugetlb: Fix a race between hugetlb sysctl handlers

2020-08-25 Thread Muchun Song
On Wed, Aug 26, 2020 at 8:03 AM Mike Kravetz wrote: > > On 8/24/20 8:01 PM, Muchun Song wrote: > > On Tue, Aug 25, 2020 at 5:21 AM Mike Kravetz > > wrote: > >> > >> I too am looking at this now and do not completely understand the race. > >> It could be that: > >> > >>

[PATCH v1 9/9] drm/msm/dp: Use qmp phy for DP PLL and PHY

2020-08-25 Thread Stephen Boyd
Make the necessary changes to the DP driver to use the qmp phy from the common phy framework instead of rolling our own in the drm subsystem. This also removes the PLL code and adds proper includes so things build. Cc: Jeykumar Sankaran Cc: Chandan Uddaraju Cc: Vara Reddy Cc: Tanmay Shah Cc:

Re: Packet gets stuck in NOLOCK pfifo_fast qdisc

2020-08-25 Thread Kehuan Feng
Hi Hillf, Thanks for the patch. I just tried it and it looks better than previous one. The issue appeared only once over ~30 mins stressing (without the patch , it shows up within 1 mins in usual, so I feel like we are getting close to the final fix) (pasted the modifications on my tree in case

Re: [PATCH bpf-next v4 03/30] bpf: memcg-based memory accounting for bpf maps

2020-08-25 Thread Roman Gushchin
On Tue, Aug 25, 2020 at 04:27:09PM -0700, Shakeel Butt wrote: > On Fri, Aug 21, 2020 at 8:01 AM Roman Gushchin wrote: > > > > This patch enables memcg-based memory accounting for memory allocated > > by __bpf_map_area_alloc(), which is used by most map types for > > large allocations. > > > > If

Re: [Phishing Risk] [External] Re: [PATCH] mm/hugetlb: Fix a race between hugetlb sysctl handlers

2020-08-25 Thread Muchun Song
HI Andi, On Tue, Aug 25, 2020 at 11:34 PM Andi Kleen wrote: > > > Fixes: e5ff215941d5 ("hugetlb: multiple hstates for multiple page sizes") > > I don't think the Fixes line is correct. The original patch > just used a global variable and didn't have this race. > It must have been added later in

drivers/staging/media/rkvdec/rkvdec.c:967:34: warning: unused variable 'of_rkvdec_match'

2020-08-25 Thread kernel test robot
Hi Boris, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: abb3438d69fb6dd5baa4ae23eafbf5b87945eff1 commit: cd33c830448baf7b1e94da72eca069e3e1d050c9 media: rkvdec: Add the rkvdec driver date: 4 months ago config:

Re: [PATCH 5/9] iomap: Support arbitrarily many blocks per page

2020-08-25 Thread Matthew Wilcox
On Tue, Aug 25, 2020 at 02:02:03PM -0700, Darrick J. Wong wrote: > > /* > > - * Structure allocated for each page when block size < PAGE_SIZE to track > > + * Structure allocated for each page when block size < page size to track > > * sub-page uptodate status and I/O completions. > > "for

RE: [PATCH 3/5] i2c: aspeed: Mask IRQ status to relevant bits

2020-08-25 Thread Ryan Chen
> -Original Message- > From: Tao Ren [mailto:rentao.b...@gmail.com] > Sent: Wednesday, August 26, 2020 4:05 AM > To: Eddie James > Cc: Joel Stanley ; devicetree ; > linux-aspeed ; dmitry.torok...@gmail.com; > Brendan Higgins ; Linux Kernel Mailing List > ; Rob Herring ; >

[PATCH] [v2] blk-mq: use BLK_MQ_NO_TAG for no tag

2020-08-25 Thread Xianting Tian
Replace various magic -1 constants for tags with BLK_MQ_NO_TAG. And move the definition of BLK_MQ_NO_TAG from 'block/blk-mq-tag.h' to 'include/linux/blk-mq.h' Signed-off-by: Xianting Tian --- block/blk-core.c | 4 ++-- block/blk-mq-sched.c | 2 +- block/blk-mq-tag.h | 6 --

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-25 Thread Yue Hu
On Mon, 24 Aug 2020 12:40:35 +0200 Daniel Lezcano wrote: > On 18/08/2020 08:30, Yue Hu wrote: > > From: Yue Hu > > > > We observed warning about kzalloc() when register thermal cooling device > > in backlight_device_register(). backlight display can be a cooling device > > since reducing

Re: [PATCH] block: convert tasklets to use new tasklet_setup() API

2020-08-25 Thread Allen Pais
On Thu, Aug 20, 2020 at 3:09 AM James Bottomley wrote: > > On Wed, 2020-08-19 at 21:54 +0530, Allen wrote: > > > [...] > > > > > Since both threads seem to have petered out, let me suggest in > > > > > kernel.h: > > > > > > > > > > #define cast_out(ptr, container, member) \ > > > > >

[PATCH v2 0/6] xfrm: Add compat layer

2020-08-25 Thread Dmitry Safonov
Changes since v1: - reworked patches set to use translator - separated the compat layer into xfrm_compat.c, compiled under XFRM_USER_COMPAT config - 32-bit messages now being sent in frag_list (like wext-core does) - instead of __packed add compat_u64 members in compat structures - selftest

[PATCH v2 4/6] xfrm/compat: Add 32=>64-bit messages translator

2020-08-25 Thread Dmitry Safonov
XFRM is disabled for compatible users because of the UABI difference. The difference is in structures paddings and in the result the size of netlink messages differ. Possibility for compatible application to manage xfrm tunnels was disabled by: the commmit 19d7df69fdb2 ("xfrm: Refuse to insert 32

[PATCH v2 1/6] xfrm/compat: Add 64=>32-bit messages translator

2020-08-25 Thread Dmitry Safonov
XFRM is disabled for compatible users because of the UABI difference. The difference is in structures paddings and in the result the size of netlink messages differ. Possibility for compatible application to manage xfrm tunnels was disabled by: the commmit 19d7df69fdb2 ("xfrm: Refuse to insert 32

[PATCH v2 5/6] xfrm/compat: Translate 32-bit user_policy from sockptr

2020-08-25 Thread Dmitry Safonov
XFRM is disabled for compatible users because of the UABI difference. The difference is in structures paddings and in the result the size of netlink messages differ. Possibility for compatible application to manage xfrm tunnels was disabled by: the commmit 19d7df69fdb2 ("xfrm: Refuse to insert 32

[PATCH v2 3/6] netlink/compat: Append NLMSG_DONE/extack to frag_list

2020-08-25 Thread Dmitry Safonov
Modules those use netlink may supply a 2nd skb, (via frag_list) that contains an alternative data set meant for applications using 32bit compatibility mode. In such a case, netlink_recvmsg will use this 2nd skb instead of the original one. Without this patch, such compat applications will

[PATCH v2 2/6] xfrm/compat: Attach xfrm dumps to 64=>32 bit translator

2020-08-25 Thread Dmitry Safonov
XFRM is disabled for compatible users because of the UABI difference. The difference is in structures paddings and in the result the size of netlink messages differ. Possibility for compatible application to manage xfrm tunnels was disabled by: the commmit 19d7df69fdb2 ("xfrm: Refuse to insert 32

[PATCH v2 6/6] selftest/net/xfrm: Add test for ipsec tunnel

2020-08-25 Thread Dmitry Safonov
It's an exhaustive testing for ipsec: covering all encryption/ authentication/compression algorithms. The tests are run in two network namespaces, connected by veth interfaces. To make exhaustive testing less time-consuming, the tests are run in parallel tasks, specified by parameter to the

Re: fsl_espi errors on v5.7.15

2020-08-25 Thread Chris Packham
On 26/08/20 10:22 am, Chris Packham wrote: > On 25/08/20 7:22 pm, Heiner Kallweit wrote: > > >> I've been staring at spi-fsl-espi.c for while now and I think I've >>> identified a couple of deficiencies that may or may not be related >>> to my >>> issue. >>> >>> First I think the 'Transfer done

[PATCH] selftests: kvm: Fix assert failure in single-step test

2020-08-25 Thread Yang Weijiang
This is a follow-up patch to fix an issue left in commit: 98b0bf02738004829d7e26d6cb47b2e469aaba86 selftests: kvm: Use a shorter encoding to clear RAX With the change in the commit, we also need to modify "xor" instruction length from 3 to 2 in array ss_size accordingly to pass below check: for

Re: [LKP] Re: [x86/mce] 1de08dccd3: will-it-scale.per_process_ops -14.1% regression

2020-08-25 Thread Feng Tang
On Wed, Aug 26, 2020 at 12:44:37AM +0800, Luck, Tony wrote: > > These 2 variables are accessed in 2 hot call stacks (for this 288 CPU > > Xeon Phi platform): > > This might be the key element of "weirdness" for this system. It > has 288 CPUs ... cache alignment problems are often not too bad > on

[PATCH v3 0/2] Control over userfaultfd kernel-fault handling

2020-08-25 Thread Lokesh Gidra
This patch series is split from [1]. The other series enables SELinux support for userfaultfd file descriptors so that its creation and movement can be controlled. It has been demonstrated on various occasions that suspending kernel code execution for an arbitrary amount of time at any access to

[PATCH v3 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-08-25 Thread Lokesh Gidra
A third option is added to 'unprivileged_userfaultfd' sysctl knob. When the knob is set to 2, it allows unprivileged users to call userfaultfd, like when it is set to 1, but with the restriction that page faults from only user-mode can be handled. In this mode, an unprivileged user (without

[PATCH v3 1/2] Add UFFD_USER_MODE_ONLY

2020-08-25 Thread Lokesh Gidra
userfaultfd handles page faults from both user and kernel code. Add a new UFFD_USER_MODE_ONLY flag for userfaultfd(2) that makes the resulting userfaultfd object refuse to handle faults from kernel mode, treating these faults as if SIGBUS were always raised, causing the kernel code to fail with

Re: [PATCH v5] kernel/trace: Add DISALLOW_TRACE_PRINTK make option

2020-08-25 Thread Steven Rostedt
On Tue, 25 Aug 2020 08:38:27 +0800 Nicolas Boichat wrote: > This already works. I'll be honest, I'm not 100% sure why (and if > fully intentional)... > > The CFLAGS end up in 3 generated assembly files: > # grep -R DISALLOW_TRACE_PRINTK * | grep -v ".cmd:" > arch/x86/kernel/asm-offsets.s:#

[PATCH] exfat: fix pointer error checking

2020-08-25 Thread Tetsuhiro Kohada
Fix missing result check of exfat_build_inode(). And use PTR_ERR_OR_ZERO instead of PTR_ERR. Signed-off-by: Tetsuhiro Kohada --- fs/exfat/namei.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index

Re: [PATCH] iommu: Add support to filter non-strict/lazy mode based on device names

2020-08-25 Thread Rob Clark
On Tue, Aug 25, 2020 at 5:24 PM Doug Anderson wrote: > > Hi, > > On Tue, Aug 25, 2020 at 3:54 PM Rob Clark wrote: > > > > On Tue, Aug 25, 2020 at 3:23 PM Doug Anderson wrote: > > > > > > Hi, > > > > > > On Tue, Aug 25, 2020 at 12:01 PM Sai Prakash Ranjan > > > wrote: > > > > > > > > Hi, > > >

RE: [PATCH v3] exfat: integrates dir-entry getting and validation

2020-08-25 Thread Namjae Jeon
> Second: Range validation and type validation should not be separated. > When I started making this patch, I intended to add only range validation. > However, after the caller gets the ep, the type validation follows. > Get ep, null check of ep (= range verification), type verification is a >

Re: [patch V9 21/39] x86/irq: Convey vector as argument and not in ptregs

2020-08-25 Thread Brian Gerst
On Tue, Aug 25, 2020 at 8:04 PM Alexander Graf wrote: > > Hi Andy, > > On 26.08.20 01:41, Andy Lutomirski wrote: > > > > On Tue, Aug 25, 2020 at 4:18 PM Alexander Graf wrote: > >> > >> Hi Thomas, > >> > >> On 25.08.20 12:28, Thomas Gleixner wrote: > >>> void irq_complete_move(struct irq_cfg

Re: [PATCH v18 00/32] per memcg lru_lock

2020-08-25 Thread Daniel Jordan
On Tue, Aug 25, 2020 at 11:26:58AM +0800, Alex Shi wrote: > 在 2020/8/25 上午9:56, Daniel Jordan 写道: > > Alex, do you have a pointer to the modified readtwice case? > > Sorry, no. my developer machine crashed, so I lost case my container and > modified > case. I am struggling to get my container

Re: [patch V9 21/39] x86/irq: Convey vector as argument and not in ptregs

2020-08-25 Thread Thomas Gleixner
On Tue, Aug 25 2020 at 16:41, Andy Lutomirski wrote: > How about this: > > void irq_complete_move(struct irq_cfg *cfg) > { > __irq_complete_move(cfg, ~get_irq_regs()->orig_ax); > } > > in arch/x86/kernel/apic/vector.c. Duh

linux-next: build failure after merge of the drm-misc tree

2020-08-25 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/qxl/qxl_display.c: In function 'qxl_display_read_client_monitors_config': include/drm/drm_modeset_lock.h:167:7: error: implicit declaration of function

Re: [PATCH 2/4] MIPS: Loongson2ef: Remove specific mc146818rtc.h

2020-08-25 Thread Jiaxun Yang
在 2020/8/25 下午5:09, Thomas Bogendoerfer 写道: Loonson2ef's mc146818rtc.h is the same as the generic one -> remove it. Signed-off-by: Thomas Bogendoerfer Acked-by: Jiaxun Yang --- .../include/asm/mach-loongson2ef/mc146818rtc.h | 36 -- 1 file changed, 36

Re: [PATCH 3/4] soundwire: SDCA: add helper macro to access controls

2020-08-25 Thread Bard liao
On 8/26/2020 1:16 AM, Pierre-Louis Bossart wrote: The upcoming SDCA (SoundWire Device Class Audio) specification defines a hierarchical encoding to interface with Class-defined capabilities. The specification is not yet accessible to the general public but this information is released with

[PATCH V2] drm/sun4i: add missing put_device() call in sun8i_r40_tcon_tv_set_mux()

2020-08-25 Thread Yu Kuai
If sun8i_r40_tcon_tv_set_mux() succeed, sun8i_r40_tcon_tv_set_mux() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: 0305189afb32 ("drm/sun4i: tcon: Add support for R40 TCON") Signed-off-by: Yu Kuai ---

  1   2   3   4   5   6   7   8   9   10   >