Re: [RFC PATCH 1/2] mmc: sdhci: Manually check card status after reset

2019-08-05 Thread Adrian Hunter
On 5/08/19 7:49 PM, Raul Rangel wrote: > On Fri, Aug 02, 2019 at 07:58:20AM +0300, Adrian Hunter wrote: >> >> You seem not to have answered to my suggestion for a change to >> sdhci_reinit() here: >> >> >> https://lore.kernel.org/lkml/fcdf6cc4-2729-abe2-85c8-b0d04901c...@intel.com/ >> > I

Re: [PATCH 14/16] net: phy: adin: make sure down-speed auto-neg is enabled

2019-08-05 Thread Heiner Kallweit
On 05.08.2019 18:54, Alexandru Ardelean wrote: > Down-speed auto-negotiation may not always be enabled, in which case the > PHY won't down-shift to 100 or 10 during auto-negotiation. > > Signed-off-by: Alexandru Ardelean > --- > drivers/net/phy/adin.c | 27 +++ > 1 file

Re: [PATCH] ARC: unwind: Mark expected switch fall-throughs

2019-08-05 Thread Vineet Gupta
On 8/6/19 1:02 AM, Gustavo A. R. Silva wrote: > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warnings (Building: haps_hs_defconfig arc): > > arch/arc/kernel/unwind.c:827:20: warning: this statement may fall through > [-Wimplicit-fallthrough=] >

Re: [PATCH v3 13/16] powerpc/pseries/iommu: Don't use dma_iommu_ops on secure guests

2019-08-05 Thread Christoph Hellwig
On Tue, Aug 06, 2019 at 02:22:34AM -0300, Thiago Jung Bauermann wrote: > @@ -1318,7 +1319,10 @@ void iommu_init_early_pSeries(void) > of_reconfig_notifier_register(_reconfig_nb); > register_memory_notifier(_mem_nb); > > - set_pci_dma_ops(_iommu_ops); > + if

Re: [RFC PATCH 1/2] dt-bindings: net: macb: Add new property for PS SGMII only

2019-08-05 Thread Harini Katakam
Hi Andrew, On Mon, Aug 5, 2019 at 10:47 PM Andrew Lunn wrote: > > > Even with the use of this interrupt, the link status actions (link print and > > netif ops) will still be required. And also the need for macb_open to > > proceed without phydev. Could you please let me know if that is

Re: [PATCH 4.19 00/74] 4.19.65-stable review

2019-08-05 Thread Naresh Kamboju
On Mon, 5 Aug 2019 at 18:39, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.65 release. > There are 74 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH v2] arm64: dts: ls1028a: Add Thermal Monitor Unit node

2019-08-05 Thread Yuantian Tang
The Thermal Monitoring Unit (TMU) monitors and reports the temperature from 2 remote temperature measurement sites located on ls1028a chip. Add TMU dts node to enable this feature. Signed-off-by: Yuantian Tang Acked-by: Eduardo Valentin --- v2: - remove multiple sensors support

[PATCH v4] kasan: add memory corruption identification for software tag-based mode

2019-08-05 Thread Walter Wu
This patch adds memory corruption identification at bug report for software tag-based mode, the report show whether it is "use-after-free" or "out-of-bound" error instead of "invalid-access" error. This will make it easier for programmers to see the memory corruption problem. We extend the slab

RE: [PATCH V4 1/4] dt-bindings: arm: imx: Add the soc binding for i.MX8MN

2019-08-05 Thread Anson Huang
Ping for this patch series... > From: Anson Huang > > This patch adds the soc & board binding for i.MX8MN. > > Signed-off-by: Anson Huang > Reviewed-by: Rob Herring > --- > No change. > --- > Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ > 1 file changed, 6 insertions(+) > >

RE: [PATCH v3] arm64: dts: ls1028a: Add temperature sensor node

2019-08-05 Thread Andy Tang
Please ignore this email. Sorry for sending the wrong patch. BR, Andy > -Original Message- > From: Yuantian Tang > Sent: 2019年8月6日 13:30 > To: shawn...@kernel.org > Cc: Leo Li ; robh...@kernel.org; > mark.rutl...@arm.com; linux-arm-ker...@lists.infradead.org; >

linux-next: Tree for Aug 6

2019-08-05 Thread Stephen Rothwell
Hi all, Changes since 20190805: The crypto tree still had its build failure for which I applied a patch. The integrity tree gained a build failure for which I applied a patch. Non-merge commits (relative to Linus' tree): 4304 4721 files changed, 249705 insertions(+), 114654 deletions

[PATCH v3] arm64: dts: ls1028a: Add temperature sensor node

2019-08-05 Thread Yuantian Tang
Add nxp sa56004 chip node for temperature monitor. Signed-off-by: Yuantian Tang --- v3: - sort the node in i2c address v2: - change the node name and add vcc-supply arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++

[PATCH] fs/userfaultfd.c: simplify the calculation of new_flags

2019-08-05 Thread Wei Yang
Finally new_flags equals old vm_flags *OR* vm_flags. It is not necessary to mask them first. Signed-off-by: Wei Yang --- fs/userfaultfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index ccbdbd62f0d8..653d8f7c453c 100644 ---

Re: [PATCH 5.2 10/20] media: radio-raremono: change devm_k*alloc to k*alloc

2019-08-05 Thread Luke Nowakowski-Krijger
Hi there, On Fri, Aug 02, 2019 at 03:04:25AM -0700, Joe Perches wrote: > On Fri, 2019-08-02 at 11:40 +0200, Greg Kroah-Hartman wrote: > > From: Luke Nowakowski-Krijger > > > > commit c666355e60ddb4748ead3bdd983e3f7f2224aaf0 upstream. > > > > Change devm_k*alloc to k*alloc to manually allocate

Re: [PATCH 5.2 000/131] 5.2.7-stable review

2019-08-05 Thread Greg Kroah-Hartman
On Mon, Aug 05, 2019 at 06:51:51PM -0600, shuah wrote: > On 8/5/19 7:01 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.2.7 release. > > There are 131 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with

[PATCH v3 15/16] Documentation/powerpc: Ultravisor API

2019-08-05 Thread Thiago Jung Bauermann
From: Sukadev Bhattiprolu POWER9 processor includes support for Protected Execution Facility (PEF). Attached documentation provides an overview of PEF and defines the API for various interfaces that must be implemented in the Ultravisor firmware as well as in the KVM Hypervisor. Based on input

[PATCH v3 16/16] powerpc/configs: Enable secure guest support in pseries and ppc64 defconfigs

2019-08-05 Thread Thiago Jung Bauermann
From: Ryan Grimm Enables running as a secure guest in platforms with an Ultravisor. Signed-off-by: Ryan Grimm Signed-off-by: Ram Pai Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/configs/ppc64_defconfig | 1 + arch/powerpc/configs/pseries_defconfig | 1 + 2 files changed, 2

Source address selection for ICMP error message

2019-08-05 Thread Chun Wang
Hi all I've got 2 units network: +--+ |  | |vlan23:172.16.23.2/24 | +--+    |    |    | +--+ |VRF lo1   | |vlan20: 172.16.20.1/24| |vlan21: 172.16.21.1/24| |vlan22: 172.16.22.1/24|

Re: [PATCH v3] nvme-pci: Support shared tags across queues for Apple 2018 controllers

2019-08-05 Thread Benjamin Herrenschmidt
On Mon, 2019-08-05 at 13:07 -0700, Sagi Grimberg wrote: > > > > > > Ping ? I had another look today and I don't feel like mucking around > > > > > > with all the AQ size logic, AEN magic tag etc... just for that sake > > > > > > of > > > > > > that Apple gunk. I'm happy to have it give up IO

Re: [PATCH v3] nvme-pci: Support shared tags across queues for Apple 2018 controllers

2019-08-05 Thread Benjamin Herrenschmidt
On Mon, 2019-08-05 at 11:27 -0700, Sagi Grimberg wrote: > > > Ping ? I had another look today and I don't feel like mucking > > > around > > > with all the AQ size logic, AEN magic tag etc... just for that > > > sake of > > > that Apple gunk. I'm happy to have it give up IO tags, it doesn't > > >

[PATCH v3 11/16] powerpc/pseries/svm: Export guest SVM status to user space via sysfs

2019-08-05 Thread Thiago Jung Bauermann
From: Ryan Grimm User space might want to know it's running in a secure VM. It can't do a mfmsr because mfmsr is a privileged instruction. The solution here is to create a cpu attribute: /sys/devices/system/cpu/svm which will read 0 or 1 based on the S bit of the guest's CPU 0.

[PATCH v3 12/16] powerpc/pseries/svm: Disable doorbells in SVM guests

2019-08-05 Thread Thiago Jung Bauermann
From: Sukadev Bhattiprolu Normally, the HV emulates some instructions like MSGSNDP, MSGCLRP from a KVM guest. To emulate the instructions, it must first read the instruction from the guest's memory and decode its parameters. However for a secure guest (aka SVM), the page containing the

[PATCH v3 09/16] powerpc/pseries/svm: Use shared memory for Debug Trace Log (DTL)

2019-08-05 Thread Thiago Jung Bauermann
From: Anshuman Khandual Secure guests need to share the DTL buffers with the hypervisor. To that end, use a kmem_cache constructor which converts the underlying buddy allocated SLUB cache pages into shared memory. Signed-off-by: Anshuman Khandual Signed-off-by: Thiago Jung Bauermann ---

[PATCH v3 05/16] powerpc/pseries/svm: Add helpers for UV_SHARE_PAGE and UV_UNSHARE_PAGE

2019-08-05 Thread Thiago Jung Bauermann
From: Ram Pai These functions are used when the guest wants to grant the hypervisor access to certain pages. Signed-off-by: Ram Pai Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/include/asm/ultravisor-api.h | 2 ++ arch/powerpc/include/asm/ultravisor.h | 24

[PATCH v3 04/16] powerpc/prom_init: Add the ESM call to prom_init

2019-08-05 Thread Thiago Jung Bauermann
From: Ram Pai Make the Enter-Secure-Mode (ESM) ultravisor call to switch the VM to secure mode. Pass kernel base address and FDT address so that the Ultravisor is able to verify the integrity of the VM using information from the ESM blob. Add "svm=" command line option to turn on switching to

[PATCH v3 10/16] powerpc/pseries/svm: Unshare all pages before kexecing a new kernel

2019-08-05 Thread Thiago Jung Bauermann
From: Ram Pai A new kernel deserves a clean slate. Any pages shared with the hypervisor is unshared before invoking the new kernel. However there are exceptions. If the new kernel is invoked to dump the current kernel, or if there is a explicit request to preserve the state of the current

Re: [PATCH v3] nvme-pci: Support shared tags across queues for Apple 2018 controllers

2019-08-05 Thread Benjamin Herrenschmidt
On Mon, 2019-08-05 at 07:49 -0600, Keith Busch wrote: > > Ping ? I had another look today and I don't feel like mucking around > > with all the AQ size logic, AEN magic tag etc... just for that sake of > > that Apple gunk. I'm happy to have it give up IO tags, it doesn't seem > > to make much of a

[PATCH v3 08/16] powerpc/pseries/svm: Use shared memory for LPPACA structures

2019-08-05 Thread Thiago Jung Bauermann
From: Anshuman Khandual LPPACA structures need to be shared with the host. Hence they need to be in shared memory. Instead of allocating individual chunks of memory for a given structure from memblock, a contiguous chunk of memory is allocated and then converted into shared memory. Subsequent

[PATCH v3 07/16] powerpc/pseries: Add and use LPPACA_SIZE constant

2019-08-05 Thread Thiago Jung Bauermann
Helps document what the hard-coded number means. Also take the opportunity to fix an #endif comment. Suggested-by: Alexey Kardashevskiy Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/kernel/paca.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH v3 14/16] powerpc/pseries/svm: Force SWIOTLB for secure guests

2019-08-05 Thread Thiago Jung Bauermann
From: Anshuman Khandual SWIOTLB checks range of incoming CPU addresses to be bounced and sees if the device can access it through its DMA window without requiring bouncing. In such cases it just chooses to skip bouncing. But for cases like secure guests on powerpc platform all addresses need to

[PATCH v3 01/16] powerpc/kernel: Add ucall_norets() ultravisor call handler

2019-08-05 Thread Thiago Jung Bauermann
From: Claudio Carvalho The ultracalls (ucalls for short) allow the Secure Virtual Machines (SVM)s and hypervisor to request services from the ultravisor such as accessing a register or memory region that can only be accessed when running in ultravisor-privileged mode. This patch adds

Re: [PATCH] dma-direct: don't truncate dma_required_mask to bus addressing capabilities

2019-08-05 Thread Christoph Hellwig
On Mon, Aug 05, 2019 at 05:51:53PM +0200, Lucas Stach wrote: > The dma required_mask needs to reflect the actual addressing capabilities > needed to handle the whole system RAM. When truncated down to the bus > addressing capabilities dma_addressing_limited() will incorrectly signal > no

[PATCH v3 00/16] Secure Virtual Machine Enablement

2019-08-05 Thread Thiago Jung Bauermann
Hello, There are three new patches from Claudio's "kvmppc: Paravirtualize KVM to support ultravisor" series. Two of them are borrowed (meaning that he will submit them with his series as well) and included here so that this series can stand on its own. They are the one introducing ucall_norets()

[PATCH v3 06/16] powerpc: Introduce the MSR_S bit

2019-08-05 Thread Thiago Jung Bauermann
From: Sukadev Bhattiprolu The ultravisor processor mode is introduced in POWER platforms that supports the Protected Execution Facility (PEF). Ultravisor is higher privileged than hypervisor mode. In PEF enabled platforms, the MSR_S bit is used to indicate if the thread is in secure state. With

Re: WARNING in kernfs_new_node

2019-08-05 Thread Benjamin Herrenschmidt
On Mon, 2019-08-05 at 05:38 -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: A fix for that was submitted recently by Muchun Song and should be queued up by Greg. Cheers, Ben. > HEAD commit:1e78030e Merge tag 'mmc-v5.3-rc1' of > git://git.kernel.org/.. > git tree:

[RFC PATCH v3 03/16] powerpc: Add support for adding an ESM blob to the zImage wrapper

2019-08-05 Thread Thiago Jung Bauermann
From: Benjamin Herrenschmidt For secure VMs, the signing tool will create a ticket called the "ESM blob" for the Enter Secure Mode ultravisor call with the signatures of the kernel and initrd among other things. This adds support to the wrapper script for adding that blob via the "-e" option to

[PATCH v3 02/16] powerpc/pseries: Introduce option to build secure virtual machines

2019-08-05 Thread Thiago Jung Bauermann
Introduce CONFIG_PPC_SVM to control support for secure guests and include Ultravisor-related helpers when it is selected Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/include/asm/asm-prototypes.h | 2 +- arch/powerpc/kernel/Makefile | 4 +++-

[PATCH v3 13/16] powerpc/pseries/iommu: Don't use dma_iommu_ops on secure guests

2019-08-05 Thread Thiago Jung Bauermann
Secure guest memory is inacessible to devices so regular DMA isn't possible. In that case set devices' dma_map_ops to NULL so that the generic DMA code path will use SWIOTLB and DMA to bounce buffers. Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/platforms/pseries/iommu.c | 6 +- 1

[PATCH net] hv_netvsc: Fix a warning of suspicious RCU usage

2019-08-05 Thread Dexuan Cui
This fixes a warning of "suspicious rcu_dereference_check() usage" when nload runs. Signed-off-by: Stephen Hemminger Signed-off-by: Dexuan Cui --- drivers/net/hyperv/netvsc_drv.c | 44 +++-- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git

Re: [PATCH 2/2] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-08-05 Thread Greg KH
On Mon, Aug 05, 2019 at 11:07:18PM -0400, Luis Araneda wrote: > This fixes a kernel panic (read overflow) on memcpy when > FORTIFY_SOURCE is enabled. > > The computed size of memcpy args are: > - p_size (dst): 4294967295 = (size_t) -1 > - q_size (src): 1 > - size (len): 8 > > Additionally, the

Re: [PATCH 0/2] ARM: zynq: smp improvements

2019-08-05 Thread Greg KH
On Mon, Aug 05, 2019 at 11:07:16PM -0400, Luis Araneda wrote: > This series adds support for kernel compiled in Thumb mode > and fixes a kernel panic on smp bring-up when FORTIFY_SOURCE > is enabled. > > The series started with the second patch as an RFC, and > the first patch were suggested on

Re: [PATCH 1/2] ARM: zynq: support smp in thumb mode

2019-08-05 Thread Greg KH
On Mon, Aug 05, 2019 at 11:07:17PM -0400, Luis Araneda wrote: > Add .arm directive to headsmp.S to ensure that the > CPU starts in 32-bit ARM mode and the correct code > size is copied on smp bring-up > > Additionally, start secondary CPUs on secondary_startup_arm > to automatically switch from

Re: [PATCH 4.9 00/42] 4.9.188-stable review

2019-08-05 Thread Greg Kroah-Hartman
On Tue, Aug 06, 2019 at 07:20:49AM +0300, Jari Ruusu wrote: > Greg Kroah-Hartman wrote: > > On Mon, Aug 05, 2019 at 11:11:01PM +0300, Jari Ruusu wrote: > > > Peter Zijlstra's "x86/atomic: Fix smp_mb__{before,after}_atomic()" > > > upstream commit 69d927bba39517d0980462efc051875b7f4db185 seems to >

Re: [PATCH 1/2] dma-mapping: fix page attributes for dma_mmap_*

2019-08-05 Thread Christoph Hellwig
On Mon, Aug 05, 2019 at 07:55:44PM -0700, Gavin Li wrote: > > /* create a coherent mapping */ > > ret = dma_common_contiguous_remap(page, size, VM_USERMAP, > > - arch_dma_mmap_pgprot(dev, PAGE_KERNEL, attrs), > > + dma_pgprot(dev,

[PATCH v5 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-08-05 Thread Vignesh Raghavendra
From: Boris Brezillon The m25p80 driver is actually a generic wrapper around the spi-mem layer. Not only the driver name is misleading, but we'd expect such a common logic to be directly available in the core. Another reason for moving this code is that SPI NOR controller drivers should

[PATCH v5 1/3] mtd: spi-nor: always use bounce buffer for register read/writes

2019-08-05 Thread Vignesh Raghavendra
spi-mem layer expects all buffers passed to it to be DMA'able. But spi-nor layer mostly allocates buffers on stack for reading/writing to registers and therefore are not DMA'able. Introduce bounce buffer to be used to read/write to registers. This ensures that buffer passed to spi-mem layer during

[PATCH v5 3/3] mtd: spi-nor: Rework hwcaps selection for the spi-mem case

2019-08-05 Thread Vignesh Raghavendra
From: Boris Brezillon The spi-mem layer provides a spi_mem_supports_op() function to check whether a specific operation is supported by the controller or not. This is much more accurate than the hwcaps selection logic based on SPI_{RX,TX}_ flags. Rework the hwcaps selection logic to use

[PATCH v5 0/3] Merge m25p80 into spi-nor

2019-08-05 Thread Vignesh Raghavendra
This is repost of patch 6 and 7 split from from Boris Brezillon's X-X-X mode support series[1] Background from cover letter for RFC[1]: m25p80 is just a simple SPI NOR controller driver (a wrapper around the SPI mem API). Not only it shouldn't be named after a specific SPI NOR chip, but it also

Re: [PATCH v9 04/11] x86/entry/64: Adapt assembly for PIE support

2019-08-05 Thread Borislav Petkov
On Mon, Aug 05, 2019 at 10:50:30AM -0700, Thomas Garnier wrote: > I saw that %rdx was used for temporary usage and restored before the > end so I assumed that it was not an option. PUSH_AND_CLEAR_REGS saves all regs earlier so I think you should be able to use others. Like

Re: Bisected: Kernel 4.14 + has 3 times higher write IO latency than Kernel 4.4 with raid1

2019-08-05 Thread riccardofarabia
Hello Linux raid folks? I've joined this email ring to ask for help (I'd be happy to try to help in return, but I doubt that I could help anyone with advanced raid issues. Maybe I can return any love in other non-raid ways? Ah well.. I've been using linux raid for a quite a few years, but until

Re: [PATCH net-next 06/10] net: stmmac: Implement RSS and enable it in XGMAC core

2019-08-05 Thread Jakub Kicinski
On Mon, 5 Aug 2019 20:01:19 +0200, Jose Abreu wrote: > Implement the RSS functionality and add the corresponding callbacks in > XGMAC core. > > Signed-off-by: Jose Abreu > --- > Cc: Giuseppe Cavallaro > Cc: Alexandre Torgue > Cc: Jose Abreu > Cc: "David S. Miller" > Cc: Maxime Coquelin >

RE: [PATCHv2 3/3] PCI: layerscape: Add LS1028a support

2019-08-05 Thread Z.q. Hou
Hi Xiaowei, > -Original Message- > From: Xiaowei Bao [mailto:xiaowei@nxp.com] > Sent: 2019年8月5日 12:05 > To: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti.com; > lorenzo.pieral...@arm.com; a...@arndb.de;

Re: [PATCH V2 05/10] ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifier

2019-08-05 Thread Viresh Kumar
On 05-08-19, 11:42, Rafael J. Wysocki wrote: > On Tuesday, July 23, 2019 8:14:05 AM CEST Viresh Kumar wrote: > > @@ -310,8 +339,11 @@ static int __init acpi_processor_driver_init(void) > > cpuhp_setup_state_nocalls(CPUHP_ACPI_CPUDRV_DEAD, "acpi/cpu-drv:dead", > >

[RFC PATCH] kbuild: re-implement detection of CONFIG options leaked to user-space

2019-08-05 Thread Masahiro Yamada
scripts/headers_check.pl can detect references to CONFIG options in exported headers, but it has been disabled for more than a decade. Reverting commit 7e3fa5614117 ("kbuild: drop check for CONFIG_ in headers_check") would emit the following warnings for headers_check on x86:

Re: [PATCH net-next 03/10] net: stmmac: Fix issues when number of Queues >= 4

2019-08-05 Thread Jakub Kicinski
On Mon, 5 Aug 2019 20:01:16 +0200, Jose Abreu wrote: > When queues >= 4 we use different registers but we were not subtracting > the offset of 4. Fix this. > > Found out by Coverity. > > Signed-off-by: Jose Abreu Should this be a bug fix for the net tree?

[PATCH] acpi/hmat: ACPI_HMAT_MEMORY_PD_VALID is deprecated in ACPI-6.3

2019-08-05 Thread Daniel Black
ACPI-6.3 corresponds to when hmat revision was bumped from 1 to 2. In this version ACPI_HMAT_MEMORY_PD_VALID was deprecated and made reserved. As such in revision 2+ we shouldn't be testing this flag. This is as per ACPI-6.3, 5.2.27.3, Table 5-145 "Memory Proximity Domain Attributes Structure"

Re: [PATCH 4.9 00/42] 4.9.188-stable review

2019-08-05 Thread Jari Ruusu
Greg Kroah-Hartman wrote: > On Mon, Aug 05, 2019 at 11:11:01PM +0300, Jari Ruusu wrote: > > Peter Zijlstra's "x86/atomic: Fix smp_mb__{before,after}_atomic()" > > upstream commit 69d927bba39517d0980462efc051875b7f4db185 seems to > > be missing/lost from 4.9 and older stable kernels. > > Can you

Re: [PATCH 4.9 00/42] 4.9.188-stable review

2019-08-05 Thread Jari Ruusu
Greg Kroah-Hartman wrote: > On Mon, Aug 05, 2019 at 11:11:01PM +0300, Jari Ruusu wrote: > > Peter Zijlstra's "x86/atomic: Fix smp_mb__{before,after}_atomic()" > > upstream commit 69d927bba39517d0980462efc051875b7f4db185 seems to > > be missing/lost from 4.9 and older stable kernels. > > Can you

Re: [PATCH] media: uvcvideo: Add boottime clock support

2019-08-05 Thread Tomasz Figa
On Wed, Mar 13, 2019 at 11:38 AM Tomasz Figa wrote: > > On Wed, Mar 13, 2019 at 10:25 AM Laurent Pinchart > wrote: > > > > Hi Tomasz, > > > > On Fri, Nov 23, 2018 at 11:46:43PM +0900, Tomasz Figa wrote: > > > On Fri, Nov 2, 2018 at 12:03 AM Lars-Peter Clausen wrote: > > > > On 11/01/2018 03:30

Re: [PATCH V3 2/2] cpufreq: intel_pstate: Implement ->resolve_freq()

2019-08-05 Thread Viresh Kumar
On 02-08-19, 11:28, Rafael J. Wysocki wrote: > On Friday, August 2, 2019 11:17:55 AM CEST Rafael J. Wysocki wrote: > > On Fri, Aug 2, 2019 at 7:44 AM Viresh Kumar wrote: > > > > > > Intel pstate driver exposes min_perf_pct and max_perf_pct sysfs files, > > > which can be used to force a limit on

Re: [PATCH] cpufreq: schedutil: Don't skip freq update when limits change

2019-08-05 Thread Viresh Kumar
On 02-08-19, 11:11, Rafael J. Wysocki wrote: > On Friday, August 2, 2019 5:48:19 AM CEST Viresh Kumar wrote: > > On 01-08-19, 10:57, Doug Smythies wrote: > > > Disagree. > > > All I did was use a flag where it used to be set to UNIT_MAX, to basically > > > implement the same thing. > > > > And

Re: [PATCH] arm64/cache: fix -Woverride-init compiler warnings

2019-08-05 Thread Qian Cai
> On Aug 5, 2019, at 10:01 AM, Will Deacon wrote: > > On Mon, Aug 05, 2019 at 07:47:37AM -0400, Qian Cai wrote: >> >> >>> On Aug 5, 2019, at 5:52 AM, Will Deacon wrote: >>> >>> On Fri, Aug 02, 2019 at 11:32:24AM -0400, Qian Cai wrote: The commit 155433cb365e ("arm64: cache: Remove

Re: linux-next: build failure after merge of the integrity tree

2019-08-05 Thread Stephen Rothwell
Hi Thiago, On Tue, 06 Aug 2019 00:18:06 -0300 Thiago Jung Bauermann wrote: > > Sorry for the trouble. I wasn't aware of that build time check. > I'll enable HEADER_TEST and KERNEL_HEADER_TEST for my next patches. I do allmodconfig builds which enable those. > Thanks for providing the fix.

Re: [PATCH 2/2] /proc/kpageflags: do not use uninitialized struct pages

2019-08-05 Thread Dan Williams
On Wed, Jul 24, 2019 at 7:46 PM Toshiki Fukasawa wrote: > > A kernel panic was observed during reading /proc/kpageflags for > first few pfns allocated by pmem namespace: > > BUG: unable to handle page fault for address: fffe > [ 114.495280] #PF: supervisor read access in kernel mode

Re: [PATCH 4.14 00/53] 4.14.137-stable review

2019-08-05 Thread Naresh Kamboju
On Mon, 5 Aug 2019 at 18:38, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.137 release. > There are 53 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH RFC] mm/memcontrol: reclaim severe usage over high limit in get_user_pages loop

2019-08-05 Thread Yang Shi
On Mon, Aug 5, 2019 at 7:32 AM Michal Hocko wrote: > > On Fri 02-08-19 11:56:28, Yang Shi wrote: > > On Fri, Aug 2, 2019 at 2:35 AM Michal Hocko wrote: > > > > > > On Thu 01-08-19 14:00:51, Yang Shi wrote: > > > > On Mon, Jul 29, 2019 at 11:48 AM Michal Hocko wrote: > > > > > > > > > > On Mon

Re: [PATCH v3 0/3] Powerpc64/Watchpoint: Few important fixes

2019-08-05 Thread Ravi Bangoria
Mikey, mpe ... Any thoughts?

Re: [PATCH] scsi/megaraid_sas: fix a compilation warning

2019-08-05 Thread Qian Cai
Ping. Please take a look at this trivial patch. > On Jul 26, 2019, at 10:25 AM, Qian Cai wrote: > > The commit de516379e85f ("scsi: megaraid_sas: changes to function > prototypes") introduced a comilation warning due to it changed the > function prototype of read_fw_status_reg() to take an

Re: [PATCH 2/2] /proc/kpageflags: do not use uninitialized struct pages

2019-08-05 Thread Dan Williams
On Sun, Aug 4, 2019 at 10:31 PM Toshiki Fukasawa wrote: > > On 2019/07/26 16:06, Michal Hocko wrote: > > On Fri 26-07-19 06:25:49, Toshiki Fukasawa wrote: > >> > >> > >> On 2019/07/25 18:03, Michal Hocko wrote: > >>> On Thu 25-07-19 02:31:18, Toshiki Fukasawa wrote: > A kernel panic was

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-05 Thread Aaron Lu
On Mon, Aug 05, 2019 at 08:55:28AM -0700, Tim Chen wrote: > On 8/2/19 8:37 AM, Julien Desfossez wrote: > > We tested both Aaron's and Tim's patches and here are our results. > > > > Test setup: > > - 2 1-thread sysbench, one running the cpu benchmark, the other one the > > mem benchmark > > -

Re: [PATCH v2] f2fs: fix wrong available node count calculation

2019-08-05 Thread Chao Yu
On 2019/8/5 18:27, Chao Yu wrote: > In mkfs, we have counted quota file's node number in cp.valid_node_count, > so we have to avoid wrong substraction of quota node number in > .available_nid/.avail_node_count calculation. > > f2fs_write_check_point_pack() > { > .. >

Re: [PATCH v3 11/19] RISC-V: KVM: Implement VMID allocator

2019-08-05 Thread Anup Patel
On Mon, Aug 5, 2019 at 9:33 PM Paolo Bonzini wrote: > > On 05/08/19 15:43, Anup Patel wrote: > > + spin_lock(_lock); > > + > > + /* > > + * We need to re-check the vmid_version here to ensure that if > > + * another vcpu already allocated a valid vmid for this vm. > > + */

Re: linux-next: build failure after merge of the integrity tree

2019-08-05 Thread Thiago Jung Bauermann
Hello Stephen, Stephen Rothwell writes: > Hi all, > > After merging the integrity tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from : > include/linux/module_signature.h:32:2: error: unknown type name 'u8' > u8 algo; /* Public-key crypto

Re: [PATCH v3 06/19] RISC-V: KVM: Implement VCPU interrupts and requests handling

2019-08-05 Thread Anup Patel
On Mon, Aug 5, 2019 at 7:13 PM Anup Patel wrote: > > This patch implements VCPU interrupts and requests which are both > asynchronous events. > > The VCPU interrupts can be set/unset using KVM_INTERRUPT ioctl from > user-space. In future, the in-kernel IRQCHIP emulation will use >

Re: [PATCH] fork: Improve error message for corrupted page tables

2019-08-05 Thread Sai Praneeth Prakhya
On Mon, 2019-08-05 at 15:28 +0200, Vlastimil Babka wrote: > On 8/2/19 8:46 AM, Prakhya, Sai Praneeth wrote: > > > > > > +static const char * const resident_page_types[NR_MM_COUNTERS] = { > > > > > > + "MM_FILEPAGES", > > > > > > + "MM_ANONPAGES", > > > > > > + "MM_SWAPENTS", > > > > > > +

[PATCH 2/2] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-08-05 Thread Luis Araneda
This fixes a kernel panic (read overflow) on memcpy when FORTIFY_SOURCE is enabled. The computed size of memcpy args are: - p_size (dst): 4294967295 = (size_t) -1 - q_size (src): 1 - size (len): 8 Additionally, the memory is marked as __iomem, so one of the memcpy_* functions should be used for

[PATCH V2] fork: Improve error message for corrupted page tables

2019-08-05 Thread Sai Praneeth Prakhya
When a user process exits, the kernel cleans up the mm_struct of the user process and during cleanup, check_mm() checks the page tables of the user process for corruption (E.g: unexpected page flags set/cleared). For corrupted page tables, the error message printed by check_mm() isn't very clear

[PATCH 0/2] ARM: zynq: smp improvements

2019-08-05 Thread Luis Araneda
This series adds support for kernel compiled in Thumb mode and fixes a kernel panic on smp bring-up when FORTIFY_SOURCE is enabled. The series started with the second patch as an RFC, and the first patch were suggested on the review to complement the fix. The changes were run-tested on a

[PATCH 1/2] ARM: zynq: support smp in thumb mode

2019-08-05 Thread Luis Araneda
Add .arm directive to headsmp.S to ensure that the CPU starts in 32-bit ARM mode and the correct code size is copied on smp bring-up Additionally, start secondary CPUs on secondary_startup_arm to automatically switch from ARM to thumb on a thumb kernel Suggested-by: Michal Simek Signed-off-by:

Re: [PATCH v1 1/3] net: hisilicon: make hip04_tx_reclaim non-reentrant

2019-08-05 Thread Jakub Kicinski
On Tue, 6 Aug 2019 10:00:52 +0800, Jiangfeng Xiao wrote: > If hip04_tx_reclaim is interrupted while it is running, and then > __irq_svc->gic_handle_irq->hip04_mac_interrupt->__napi_schedule->hip04_rx_poll->hip04_tx_reclaim Ah right, obviously you can't do stuff after napi_complete_done(), that

[PATCH v3] arm64/prefetch: fix a -Wtype-limits warning

2019-08-05 Thread Qian Cai
The commit d5370f754875 ("arm64: prefetch: add alternative pattern for CPUs without a prefetcher") introduced MIDR_IS_CPU_MODEL_RANGE() to be used in has_no_hw_prefetch() with rv_min=0 which generates a compilation warning from GCC, In file included from ./arch/arm64/include/asm/cache.h:8,

[PATCH v2] gpio: mpc8xxx: Add new platforms GPIO DT node description

2019-08-05 Thread Hui Song
From: Song Hui Update the NXP GPIO node dt-binding file for QorIQ and Layerscape platforms, and add one more example with ls1028a GPIO node. Signed-off-by: Song Hui --- Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 1/2] cxgb4: smt: Add lock for atomic_dec_and_test

2019-08-05 Thread Chuhong Yuan
The atomic_dec_and_test() is not safe because it is outside of locks. Move the locks of t4_smte_free() to its caller, cxgb4_smt_release() to protect the atomic decrement. Fixes: 3bdb376e6944 ("cxgb4: introduce SMT ops to prepare for SMAC rewrite support") Signed-off-by: Chuhong Yuan ---

[PATCH 2/2] cxgb4: smt: Use normal int for refcount

2019-08-05 Thread Chuhong Yuan
All refcount operations are protected by spinlocks now. Then the atomic counter can be replaced by a normal int. This patch depends on PATCH 1/2. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/chelsio/cxgb4/smt.c | 14 +++--- drivers/net/ethernet/chelsio/cxgb4/smt.h | 2 +- 2

RE: [PATCH] thermal: qoriq: add thermal monitor unit version 2 support

2019-08-05 Thread Andy Tang
Any comments? BR, Andy > -Original Message- > From: Yuantian Tang > Sent: 2019年6月4日 10:51 > To: edubez...@gmail.com; rui.zh...@intel.com > Cc: daniel.lezc...@linaro.org; Leo Li ; > linux...@vger.kernel.org; linux-kernel@vger.kernel.org; Andy Tang > > Subject: [PATCH] thermal: qoriq:

Re: [PATCH 1/2] dma-mapping: fix page attributes for dma_mmap_*

2019-08-05 Thread Gavin Li
> /* create a coherent mapping */ > ret = dma_common_contiguous_remap(page, size, VM_USERMAP, > - arch_dma_mmap_pgprot(dev, PAGE_KERNEL, attrs), > + dma_pgprot(dev, PAGE_KERNEL, attrs), >

Re: [PATCH 4.9 00/42] 4.9.188-stable review

2019-08-05 Thread Naresh Kamboju
On Mon, 5 Aug 2019 at 18:35, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.188 release. > There are 42 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH] mm/mempolicy.c: Remove unnecessary nodemask check in kernel_migrate_pages()

2019-08-05 Thread Kefeng Wang
1) task_nodes = cpuset_mems_allowed(current); -> cpuset_mems_allowed() guaranteed to return some non-empty subset of node_states[N_MEMORY]. 2) nodes_and(*new, *new, task_nodes); -> after nodes_and(), the 'new' should be empty or appropriate nodemask(online node and with memory).

[PATCH v17 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings

2019-08-05 Thread Mason Yang
Document the bindings used by the Renesas R-Car Gen3 RPC-IF controller. Signed-off-by: Mason Yang Reviewed-by: Rob Herring --- .../devicetree/bindings/spi/spi-renesas-rpc.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644

[PATCH v17 0/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI driver

2019-08-05 Thread Mason Yang
Hi Mark, v17 patch including: 1) patch adding rpc_spi_hw_init() after reset_control_rest() 2) v14 dt-binding file has reviewed by Rob Herring. v16 patch including: 1) fixed typo and spi-tx/rx-bus-width in DTS. 2) v14 dt-binding file has reviewed by Rob Herring. v15 patch including: 1) A typo in

[PATCH v17 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver

2019-08-05 Thread Mason Yang
Add a driver for Renesas R-Car Gen3 RPC-IF SPI controller. Signed-off-by: Mason Yang Signed-off-by: Sergei Shtylyov --- drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-renesas-rpc.c | 756 ++ 3 files changed,

RE: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during initialization

2019-08-05 Thread Anson Huang
Hi, Stephen I think we should resume this thread, without this patch, mainline kernel boot up will cause mmc timeout all the time. If it is NOT good to disabling those peripheral devices' clock in i.MX7ULP's clock driver, then we have to change the core framework to disable clock

Re: [PATCH] PCI: Add ACS quirk for Cavium ThunderX 2 root port devices

2019-08-05 Thread Shannon Zhao
On 2019/7/26 0:35, Jayachandran Chandrasekharan Nair wrote: On Wed, Jul 24, 2019 at 01:55:35PM -0500, Bjorn Helgaas wrote: See https://lkml.kernel.org/r/20171026223701.ga25...@bhelgaas-glaptop.roam.corp.google.com for incidental hints (subject, commit log, commit reference). Your patch

linux-next: build failure after merge of the integrity tree

2019-08-05 Thread Stephen Rothwell
Hi all, After merging the integrity tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from : include/linux/module_signature.h:32:2: error: unknown type name 'u8' u8 algo; /* Public-key crypto algorithm [0] */ ^~ include/linux/module_signature.h:33:2:

Re: [PATCH v3 RESEND] f2fs: introduce sb.required_features to store incompatible features

2019-08-05 Thread Chao Yu
On 2019/8/6 9:24, Jaegeuk Kim wrote: > On 08/06, Chao Yu wrote: >> On 2019/8/6 8:35, Jaegeuk Kim wrote: >>> On 08/02, Chao Yu wrote: On 2019/8/2 6:35, Jaegeuk Kim wrote: > On 08/01, Chao Yu wrote: >> On 2019/8/1 12:22, Jaegeuk Kim wrote: >>> On 07/31, Chao Yu wrote: On

Re: [PATCH v1 1/3] net: hisilicon: make hip04_tx_reclaim non-reentrant

2019-08-05 Thread Jiangfeng Xiao
On 2019/8/6 8:46, Jakub Kicinski wrote: > On Sat, 3 Aug 2019 20:31:39 +0800, Jiangfeng Xiao wrote: >> If hip04_tx_reclaim is interrupted while it is running >> and then __napi_schedule continues to execute >> hip04_rx_poll->hip04_tx_reclaim, reentrancy occurs >> and oops is generated. So you

[PATCH v3] mlx5: Use refcount_t for refcount

2019-08-05 Thread Chuhong Yuan
Reference counters are preferred to use refcount_t instead of atomic_t. This is because the implementation of refcount_t can prevent overflows and detect possible use-after-free. So convert atomic_t ref counters to refcount_t. Signed-off-by: Chuhong Yuan --- Changes in v3: - Merge v2 patches

RE: [PATCH V5 1/5] clocksource: imx-sysctr: Add internal clock divider handle

2019-08-05 Thread Anson Huang
Gentle ping... > From: Anson Huang > > The system counter block guide states that the base clock is internally > divided > by 3 before use, that means the clock input of system counter defined in DT > should be base clock which is normally from OSC, and then internally divided > by 3 before

Re: [RFC PATCH] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-08-05 Thread Luis Araneda
Hi Michal, Thanks for the review. On Mon, Aug 5, 2019 at 5:53 AM Michal Simek wrote: > > On 31. 07. 19 6:12, Luis Araneda wrote: > > Hi Russell, > > > > Thanks for reviewing. > > > > On Tue, Jul 30, 2019 at 6:47 AM Russell King - ARM Linux admin > > wrote: > >> > >> On Tue, Jul 30, 2019 at

[PATCH v2 2/4] mm, reclaim: cleanup should_continue_reclaim()

2019-08-05 Thread Mike Kravetz
From: Vlastimil Babka After commit "mm, reclaim: make should_continue_reclaim perform dryrun detection", closer look at the function shows, that nr_reclaimed == 0 means the function will always return false. And since non-zero nr_reclaimed implies non_zero nr_scanned, testing nr_scanned serves

  1   2   3   4   5   6   7   8   9   10   >