Re: [PATCH 12/12][RFC v3] x86-32, hibernate: Adjust in_suspend after resumed on 32bit system

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:43:42, Chen Yu wrote: > From: Zhimin Gu > > Update the in_suspend variable to reflect the actual hibernation > status. Back-port from 64bit system. > > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu > Signed-off-by: Chen Yu Acked-by: Pavel Machek

Re: [PATCH 12/12][RFC v3] x86-32, hibernate: Adjust in_suspend after resumed on 32bit system

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:43:42, Chen Yu wrote: > From: Zhimin Gu > > Update the in_suspend variable to reflect the actual hibernation > status. Back-port from 64bit system. > > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu > Signed-off-by: Chen Yu Acked-by: Pavel Machek

Re: [PATCH 11/12][RFC v3] x86-32, hibernate: Set up temporary text mapping for 32bit system

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:43:22, Chen Yu wrote: > From: Zhimin Gu > > Set up the temporary text mapping for the final jump address > so that the system could jump to the right address after all > the pages have been copied back to their original address. > > Back-port from 64bit system. > > Cc:

Re: [PATCH 11/12][RFC v3] x86-32, hibernate: Set up temporary text mapping for 32bit system

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:43:22, Chen Yu wrote: > From: Zhimin Gu > > Set up the temporary text mapping for the final jump address > so that the system could jump to the right address after all > the pages have been copied back to their original address. > > Back-port from 64bit system. > > Cc:

Re: [PATCH 10/12][RFC v3] x86-32, hibernate: Switch to relocated restore code during resume on 32bit system

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:43:12, Chen Yu wrote: > From: Zhimin Gu > > Code should be executed in a safe page during page > restoring, as the page where instruction is running > during resume might be scribbled and causes issues. > > Backport the code from 64 bit system to fix this bug. On 32 bit,

Re: [PATCH 10/12][RFC v3] x86-32, hibernate: Switch to relocated restore code during resume on 32bit system

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:43:12, Chen Yu wrote: > From: Zhimin Gu > > Code should be executed in a safe page during page > restoring, as the page where instruction is running > during resume might be scribbled and causes issues. > > Backport the code from 64 bit system to fix this bug. On 32 bit,

Re: [PATCH 04/12][RFC v3] x86, hibernate: Extract the common code of 64/32 bit system

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 12:36:40, Rafael J. Wysocki wrote: > On Wed, Sep 19, 2018 at 12:34 PM Ingo Molnar wrote: > > > > > > * Rafael J. Wysocki wrote: > > > > > > index ..fbde8f0e8fe0 > > > > --- /dev/null > > > > +++ b/arch/x86/power/hibernate.c > > > > @@ -0,0 +1,249 @@ > > > > +//

Re: [PATCH 04/12][RFC v3] x86, hibernate: Extract the common code of 64/32 bit system

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 12:36:40, Rafael J. Wysocki wrote: > On Wed, Sep 19, 2018 at 12:34 PM Ingo Molnar wrote: > > > > > > * Rafael J. Wysocki wrote: > > > > > > index ..fbde8f0e8fe0 > > > > --- /dev/null > > > > +++ b/arch/x86/power/hibernate.c > > > > @@ -0,0 +1,249 @@ > > > > +//

Re: [RFC v2 14/20] iommu: introduce device fault data

2018-09-20 Thread Jacob Pan
On Tue, 18 Sep 2018 16:24:51 +0200 Eric Auger wrote: > From: Jacob Pan > > Device faults detected by IOMMU can be reported outside IOMMU > subsystem for further processing. This patch intends to provide > a generic device fault data such that device drivers can be > communicated with IOMMU

Re: [RFC v2 14/20] iommu: introduce device fault data

2018-09-20 Thread Jacob Pan
On Tue, 18 Sep 2018 16:24:51 +0200 Eric Auger wrote: > From: Jacob Pan > > Device faults detected by IOMMU can be reported outside IOMMU > subsystem for further processing. This patch intends to provide > a generic device fault data such that device drivers can be > communicated with IOMMU

Re: [PATCH 09/12][RFC v3] x86-32, hibernate: Switch to original page table after resumed

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:43:05, Chen Yu wrote: > From: Zhimin Gu > > After all the pages are restored to previous address, the page > table switches back to current swapper_pg_dir. However the > swapper_pg_dir currently in used might not be consistent with > previous page table, which might cause

Re: [PATCH 08/12][RFC v3] x86-32, hibernate: Use the page size macro instead of constant value

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:42:57, Chen Yu wrote: > From: Zhimin Gu > > Convert the hard code into PAGE_SIZE for better scalability. > > No functional change. > > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu > Signed-off-by: Chen Yu Acked-by: Pavel Machek

Re: [PATCH 08/12][RFC v3] x86-32, hibernate: Use the page size macro instead of constant value

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:42:57, Chen Yu wrote: > From: Zhimin Gu > > Convert the hard code into PAGE_SIZE for better scalability. > > No functional change. > > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu > Signed-off-by: Chen Yu Acked-by: Pavel Machek

Re: [PATCH 09/12][RFC v3] x86-32, hibernate: Switch to original page table after resumed

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:43:05, Chen Yu wrote: > From: Zhimin Gu > > After all the pages are restored to previous address, the page > table switches back to current swapper_pg_dir. However the > swapper_pg_dir currently in used might not be consistent with > previous page table, which might cause

Re: [PATCH 02/12][RFC v3] PM / hibernate: Check the success of generating md5 digest before hibernation

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:38:17, Chen Yu wrote: > Currently if get_e820_md5() fails, then it will hibernate nevertheless. > Actually the error code should be propagated to upper caller so that > the hibernation could be aware of the result and terminates the process > if md5 digest fails. > >

Re: [PATCH 01/12][RFC v3] x86, hibernate: Fix nosave_regions setup for hibernation

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:37:15, Chen Yu wrote: > From: Zhimin Gu > > On 32bit systems, nosave_regions(non RAM areas) located between > max_low_pfn and max_pfn are not excluded from hibernation snapshot > currently, which may result in a machine check exception when > trying to access these unsafe

Re: [PATCH 07/12][RFC v3] x86-32, hibernate: Use temp_pgt as the temporary page table

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:42:48, Chen Yu wrote: > From: Zhimin Gu > > This is to reuse the temp_pgt for both 32bit and 64bit > system. > > No functional change. > > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu > Signed-off-by: Chen Yu Acked-by: Pavel Machek

Re: [PATCH 02/12][RFC v3] PM / hibernate: Check the success of generating md5 digest before hibernation

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:38:17, Chen Yu wrote: > Currently if get_e820_md5() fails, then it will hibernate nevertheless. > Actually the error code should be propagated to upper caller so that > the hibernation could be aware of the result and terminates the process > if md5 digest fails. > >

Re: [PATCH 01/12][RFC v3] x86, hibernate: Fix nosave_regions setup for hibernation

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:37:15, Chen Yu wrote: > From: Zhimin Gu > > On 32bit systems, nosave_regions(non RAM areas) located between > max_low_pfn and max_pfn are not excluded from hibernation snapshot > currently, which may result in a machine check exception when > trying to access these unsafe

Re: [PATCH 07/12][RFC v3] x86-32, hibernate: Use temp_pgt as the temporary page table

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:42:48, Chen Yu wrote: > From: Zhimin Gu > > This is to reuse the temp_pgt for both 32bit and 64bit > system. > > No functional change. > > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu > Signed-off-by: Chen Yu Acked-by: Pavel Machek

Re: [PATCH 06/12][RFC v3] x86, hibernate: Rename temp_level4_pgt to temp_pgt

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:42:39, Chen Yu wrote: > From: Zhimin Gu > > As 32bit system is not using 4-level page, rename it > to temp_pgt so that it can be reused for both 32bit > and 64bit hibernation. > > No functional change. > > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu >

Re: [PATCH 06/12][RFC v3] x86, hibernate: Rename temp_level4_pgt to temp_pgt

2018-09-20 Thread Pavel Machek
On Wed 2018-09-19 15:42:39, Chen Yu wrote: > From: Zhimin Gu > > As 32bit system is not using 4-level page, rename it > to temp_pgt so that it can be reused for both 32bit > and 64bit hibernation. > > No functional change. > > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu >

Re: [PATCH v7 1/6] dt-bindings: ti-lmu: Remove LM3697

2018-09-20 Thread Pavel Machek
Hi! > >>> Easy to maintain will be a dedicated LED class driver. > >> > >> You mean, 3 dedicated LED class drivers and 3 MFD drivers with LED > >> parts? We'll need complex driver anyway, and I'd really like to have > >> just one. > > > > In the LED subsystem we can wrap common functionalities >

Re: [PATCH 1/2] libata: add ledtrig support

2018-09-20 Thread Pavel Machek
Hi! > > > +#ifdef CONFIG_ATA_LEDS > > > + /* register LED triggers for all ports */ > > > + for (i = 0; i < host->n_ports; i++) { > > > + if (unlikely(!host->ports[i]->ledtrig)) > > > + continue; > > > + > > > + snprintf(host->ports[i]->ledtrig_name, > > > +

Re: [PATCH v7 1/6] dt-bindings: ti-lmu: Remove LM3697

2018-09-20 Thread Pavel Machek
Hi! > >>> Easy to maintain will be a dedicated LED class driver. > >> > >> You mean, 3 dedicated LED class drivers and 3 MFD drivers with LED > >> parts? We'll need complex driver anyway, and I'd really like to have > >> just one. > > > > In the LED subsystem we can wrap common functionalities >

Re: [PATCH 1/2] libata: add ledtrig support

2018-09-20 Thread Pavel Machek
Hi! > > > +#ifdef CONFIG_ATA_LEDS > > > + /* register LED triggers for all ports */ > > > + for (i = 0; i < host->n_ports; i++) { > > > + if (unlikely(!host->ports[i]->ledtrig)) > > > + continue; > > > + > > > + snprintf(host->ports[i]->ledtrig_name, > > > +

Re: [PATCH] arm64: Trap WFI executed in userspace

2018-09-20 Thread Pavel Machek
On Tue 2018-08-07 10:33:26, Marc Zyngier wrote: > It recently came to light that userspace can execute WFI, and that > the arm64 kernel doesn trap this event. This sounds rather benign, > but the kernel should decide when it wants to wait for an interrupt, > and not userspace. > > Let's trap WFI

Re: [PATCH] arm64: Trap WFI executed in userspace

2018-09-20 Thread Pavel Machek
On Tue 2018-08-07 10:33:26, Marc Zyngier wrote: > It recently came to light that userspace can execute WFI, and that > the arm64 kernel doesn trap this event. This sounds rather benign, > but the kernel should decide when it wants to wait for an interrupt, > and not userspace. > > Let's trap WFI

Re: [PATCH v2 11/11] arm: dts: ste-dbx5x0: Update coresight bindings for hardware port

2018-09-20 Thread Linus Walleij
On Wed, Sep 12, 2018 at 6:54 AM Suzuki K Poulose wrote: > Switch to the new coresight bindings > > Cc: Linus Walleij > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Applied to the ux500 tree. Yours, Linus Walleij

Re: [PATCH v2 11/11] arm: dts: ste-dbx5x0: Update coresight bindings for hardware port

2018-09-20 Thread Linus Walleij
On Wed, Sep 12, 2018 at 6:54 AM Suzuki K Poulose wrote: > Switch to the new coresight bindings > > Cc: Linus Walleij > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Applied to the ux500 tree. Yours, Linus Walleij

Re: [PATCH v2 08/11] arm: dts: omap: Update coresight bindings for hardware ports

2018-09-20 Thread Tony Lindgren
* Suzuki K Poulose [180912 06:58]: > Switch to the new coresight bindings for hardware ports > > Cc: linux-o...@vger.kernel.org > Cc: "Benoît Cousson" > Cc: Tony Lindgren > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > arch/arm/boot/dts/omap3-beagle-xm.dts | 17

Re: [PATCH v2 08/11] arm: dts: omap: Update coresight bindings for hardware ports

2018-09-20 Thread Tony Lindgren
* Suzuki K Poulose [180912 06:58]: > Switch to the new coresight bindings for hardware ports > > Cc: linux-o...@vger.kernel.org > Cc: "Benoît Cousson" > Cc: Tony Lindgren > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > arch/arm/boot/dts/omap3-beagle-xm.dts | 17

Re: [PATCH 0/2] Provide options to enable spectre_v2 userspace-userspace protection

2018-09-20 Thread Lendacky, Thomas
On 09/19/2018 04:35 PM, Tim Chen wrote: > This patchset provides an option to apply IBPB and STIBP mitigation > to only non-dumpable processes. > > Jiri's patch to harden spectre_v2 makes IBPB and STIBP available for > general spectre v2 app to app mitigation. IBPB will be issued for > switching

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Florian Fainelli
On 09/20/2018 02:33 PM, Ard Biesheuvel wrote: > On 20 September 2018 at 14:31, Florian Fainelli wrote: >> On 09/20/2018 02:04 PM, Ard Biesheuvel wrote: >>> On 20 September 2018 at 13:55, Florian Fainelli >>> wrote: On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: > On 19 September 2018 at

Re: [PATCH 0/2] Provide options to enable spectre_v2 userspace-userspace protection

2018-09-20 Thread Lendacky, Thomas
On 09/19/2018 04:35 PM, Tim Chen wrote: > This patchset provides an option to apply IBPB and STIBP mitigation > to only non-dumpable processes. > > Jiri's patch to harden spectre_v2 makes IBPB and STIBP available for > general spectre v2 app to app mitigation. IBPB will be issued for > switching

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Florian Fainelli
On 09/20/2018 02:33 PM, Ard Biesheuvel wrote: > On 20 September 2018 at 14:31, Florian Fainelli wrote: >> On 09/20/2018 02:04 PM, Ard Biesheuvel wrote: >>> On 20 September 2018 at 13:55, Florian Fainelli >>> wrote: On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: > On 19 September 2018 at

Re: [PATCH v3] PCI: dwc: fix scheduling while atomic issues

2018-09-20 Thread Bjorn Helgaas
On Thu, Sep 13, 2018 at 04:05:54PM +0100, Lorenzo Pieralisi wrote: > On Wed, Aug 29, 2018 at 11:04:08AM +0800, Jisheng Zhang wrote: > > When programming inbound/outbound atu, we call usleep_range() after > > each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming > > can be called in

Re: [PATCH v3] PCI: dwc: fix scheduling while atomic issues

2018-09-20 Thread Bjorn Helgaas
On Thu, Sep 13, 2018 at 04:05:54PM +0100, Lorenzo Pieralisi wrote: > On Wed, Aug 29, 2018 at 11:04:08AM +0800, Jisheng Zhang wrote: > > When programming inbound/outbound atu, we call usleep_range() after > > each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming > > can be called in

Re: [PATCH] MAINTAINERS: Clarify UIO vs UACCESS maintainer

2018-09-20 Thread Dan Williams
On Wed, Sep 12, 2018 at 10:23 PM Dan Williams wrote: > > The UIO file mask in MAINTAINERS was incorrectly directing UACCESS > (include/linux/uio.h) patches to Greg. > > Tag Al as the UACCESS maintainer as Ingo and others have explicitly > required his ack before taking architecture patches that

Re: [PATCH] MAINTAINERS: Clarify UIO vs UACCESS maintainer

2018-09-20 Thread Dan Williams
On Wed, Sep 12, 2018 at 10:23 PM Dan Williams wrote: > > The UIO file mask in MAINTAINERS was incorrectly directing UACCESS > (include/linux/uio.h) patches to Greg. > > Tag Al as the UACCESS maintainer as Ingo and others have explicitly > required his ack before taking architecture patches that

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Ard Biesheuvel
On 20 September 2018 at 14:31, Florian Fainelli wrote: > On 09/20/2018 02:04 PM, Ard Biesheuvel wrote: >> On 20 September 2018 at 13:55, Florian Fainelli wrote: >>> On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: On 19 September 2018 at 07:31, Jim Quinlan wrote: > The Broadcom STB PCIe

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Ard Biesheuvel
On 20 September 2018 at 14:31, Florian Fainelli wrote: > On 09/20/2018 02:04 PM, Ard Biesheuvel wrote: >> On 20 September 2018 at 13:55, Florian Fainelli wrote: >>> On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: On 19 September 2018 at 07:31, Jim Quinlan wrote: > The Broadcom STB PCIe

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Florian Fainelli
On 09/20/2018 02:04 PM, Ard Biesheuvel wrote: > On 20 September 2018 at 13:55, Florian Fainelli wrote: >> On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: >>> On 19 September 2018 at 07:31, Jim Quinlan wrote: The Broadcom STB PCIe host controller is intimately related to the memory

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Florian Fainelli
On 09/20/2018 02:04 PM, Ard Biesheuvel wrote: > On 20 September 2018 at 13:55, Florian Fainelli wrote: >> On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: >>> On 19 September 2018 at 07:31, Jim Quinlan wrote: The Broadcom STB PCIe host controller is intimately related to the memory

Re: [PATCH] auxdisplay/cfag12864bfb.c: Replace vm_insert_page

2018-09-20 Thread Miguel Ojeda
On Thu, Sep 20, 2018 at 10:23 PM, Souptick Joarder wrote: > There is a plan to remove vm_insert_page permanently > and replace it with new API vmf_insert_page which will > return vm_fault_t type. As part of it vm_insert_page > is removed from this driver. A link to the discussion/plan would be

Re: [PATCH] auxdisplay/cfag12864bfb.c: Replace vm_insert_page

2018-09-20 Thread Miguel Ojeda
On Thu, Sep 20, 2018 at 10:23 PM, Souptick Joarder wrote: > There is a plan to remove vm_insert_page permanently > and replace it with new API vmf_insert_page which will > return vm_fault_t type. As part of it vm_insert_page > is removed from this driver. A link to the discussion/plan would be

Re: [PATCH] ARM: OMAP1: ams-delta: Don't request unused GPIOs

2018-09-20 Thread Tony Lindgren
* Janusz Krzysztofik [180910 12:53]: > GPIOs with no kernel drivers can still be used from user space, don't > request them from the board file. > > Signed-off-by: Janusz Krzysztofik Thanks applying into omap-for-v4.20/omap1. Regards, Tony

Re: [PATCH] ARM: OMAP1: ams-delta: Don't request unused GPIOs

2018-09-20 Thread Tony Lindgren
* Janusz Krzysztofik [180910 12:53]: > GPIOs with no kernel drivers can still be used from user space, don't > request them from the board file. > > Signed-off-by: Janusz Krzysztofik Thanks applying into omap-for-v4.20/omap1. Regards, Tony

Re: [PATCH] ARM: OMAP1: ams-delta-fiq: Use

2018-09-20 Thread Tony Lindgren
* Janusz Krzysztofik [180910 10:50]: > Instead of defining symbols already defined in > linux/platform_data/gpio-omap.h, use that header file. > > Since we include the header into an assembler code, prevent C only bits > from being read in. > > Signed-off-by: Janusz Krzysztofik Thanks

Re: [PATCH] ARM: OMAP1: ams-delta-fiq: Use

2018-09-20 Thread Tony Lindgren
* Janusz Krzysztofik [180910 10:50]: > Instead of defining symbols already defined in > linux/platform_data/gpio-omap.h, use that header file. > > Since we include the header into an assembler code, prevent C only bits > from being read in. > > Signed-off-by: Janusz Krzysztofik Thanks

Re: [PATCH v2 0/3] ARM: OMAP1: ams-delta: Clean up GPIO setup for MODEM

2018-09-20 Thread Tony Lindgren
* Janusz Krzysztofik [180910 21:52]: > On Monday, September 10, 2018 1:44:16 AM CEST Janusz Krzysztofik wrote: > > > > Convert modem related GPIO setup from integer space to GPIO descriptors. > > Also, restore original initialization order of the MODEM device and its > > related GPIO pins. > >

Re: [PATCH v2 0/3] ARM: OMAP1: ams-delta: Clean up GPIO setup for MODEM

2018-09-20 Thread Tony Lindgren
* Janusz Krzysztofik [180910 21:52]: > On Monday, September 10, 2018 1:44:16 AM CEST Janusz Krzysztofik wrote: > > > > Convert modem related GPIO setup from integer space to GPIO descriptors. > > Also, restore original initialization order of the MODEM device and its > > related GPIO pins. > >

[tip:x86/urgent] x86/mm: Expand static page table for fixmap space

2018-09-20 Thread tip-bot for Feng Tang
Commit-ID: 05ab1d8a4b36ee912b7087c6da127439ed0a903e Gitweb: https://git.kernel.org/tip/05ab1d8a4b36ee912b7087c6da127439ed0a903e Author: Feng Tang AuthorDate: Thu, 20 Sep 2018 10:58:28 +0800 Committer: Thomas Gleixner CommitDate: Thu, 20 Sep 2018 23:17:22 +0200 x86/mm: Expand static

[tip:x86/urgent] x86/mm: Expand static page table for fixmap space

2018-09-20 Thread tip-bot for Feng Tang
Commit-ID: 05ab1d8a4b36ee912b7087c6da127439ed0a903e Gitweb: https://git.kernel.org/tip/05ab1d8a4b36ee912b7087c6da127439ed0a903e Author: Feng Tang AuthorDate: Thu, 20 Sep 2018 10:58:28 +0800 Committer: Thomas Gleixner CommitDate: Thu, 20 Sep 2018 23:17:22 +0200 x86/mm: Expand static

[PATCH V3 (resend) 3/7] CIFS: Add support for direct I/O read

2018-09-20 Thread Long Li
From: Long Li With direct I/O read, we transfer the data directly from transport layer to the user data buffer. Change in v3: add support for kernel AIO Signed-off-by: Long Li --- fs/cifs/cifsfs.h | 1 + fs/cifs/cifsglob.h | 5 ++ fs/cifs/file.c | 210

[PATCH V3 (resend) 3/7] CIFS: Add support for direct I/O read

2018-09-20 Thread Long Li
From: Long Li With direct I/O read, we transfer the data directly from transport layer to the user data buffer. Change in v3: add support for kernel AIO Signed-off-by: Long Li --- fs/cifs/cifsfs.h | 1 + fs/cifs/cifsglob.h | 5 ++ fs/cifs/file.c | 210

[PATCH V3 (resend) 4/7] CIFS: Add support for direct I/O write

2018-09-20 Thread Long Li
From: Long Li With direct I/O write, user supplied buffers are pinned to the memory and data are transferred directly from user buffers to the transport layer. Change in v3: add support for kernel AIO Signed-off-by: Long Li --- fs/cifs/cifsfs.h | 1 + fs/cifs/file.c | 196

[PATCH V3 (resend) 2/7] CIFS: SMBD: Do not call ib_dereg_mr on invalidated memory registration

2018-09-20 Thread Long Li
From: Long Li It is not necessary to deregister a memory registration after it has been successfully invalidated. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/fs/cifs/smbdirect.c

[PATCH V3 (resend) 5/7] CIFS: Add direct I/O functions to file_operations

2018-09-20 Thread Long Li
From: Long Li With direct read/write functions implemented, add them to file_operations. Dircet I/O is used under two conditions: 1. When mounting with "cache=none", CIFS uses direct I/O for all user file data transfer. 2. When opening a file with O_DIRECT, CIFS uses direct I/O for all data

[PATCH V3 (resend) 4/7] CIFS: Add support for direct I/O write

2018-09-20 Thread Long Li
From: Long Li With direct I/O write, user supplied buffers are pinned to the memory and data are transferred directly from user buffers to the transport layer. Change in v3: add support for kernel AIO Signed-off-by: Long Li --- fs/cifs/cifsfs.h | 1 + fs/cifs/file.c | 196

[PATCH V3 (resend) 5/7] CIFS: Add direct I/O functions to file_operations

2018-09-20 Thread Long Li
From: Long Li With direct read/write functions implemented, add them to file_operations. Dircet I/O is used under two conditions: 1. When mounting with "cache=none", CIFS uses direct I/O for all user file data transfer. 2. When opening a file with O_DIRECT, CIFS uses direct I/O for all data

[PATCH V3 (resend) 2/7] CIFS: SMBD: Do not call ib_dereg_mr on invalidated memory registration

2018-09-20 Thread Long Li
From: Long Li It is not necessary to deregister a memory registration after it has been successfully invalidated. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/fs/cifs/smbdirect.c

[PATCH V3 (resend) 1/7] CIFS: pass page offsets on SMB1 read/write

2018-09-20 Thread Long Li
From: Long Li When issuing SMB1 read/write, pass the page offset to transport. Signed-off-by: Long Li --- fs/cifs/cifssmb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 41329f4..f82fd34 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c

[PATCH V3 (resend) 1/7] CIFS: pass page offsets on SMB1 read/write

2018-09-20 Thread Long Li
From: Long Li When issuing SMB1 read/write, pass the page offset to transport. Signed-off-by: Long Li --- fs/cifs/cifssmb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 41329f4..f82fd34 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c

Re: Code of Conduct: Let's revamp it.

2018-09-20 Thread Christoph Conrads
The CoC is extremely ambiguously written for an enforceable document, any behavior disliked by the maintainers can be punished, and the level of naivete of the maintainers defending it is suprising for such a far reaching document. > In the interest of fostering an open and welcoming environment,

Re: Code of Conduct: Let's revamp it.

2018-09-20 Thread Christoph Conrads
The CoC is extremely ambiguously written for an enforceable document, any behavior disliked by the maintainers can be punished, and the level of naivete of the maintainers defending it is suprising for such a far reaching document. > In the interest of fostering an open and welcoming environment,

Re: possible deadlock in __do_page_fault

2018-09-20 Thread Todd Kjos
mmit:a0cb0cabe4bb Add linux-next specific files for 20180920 > > git tree: linux-next > > console output: https://syzkaller.appspot.com/x/log.txt?x=1513972140 > > kernel config: https://syzkaller.appspot.com/x/.config?x=786006c5dafbadf6 > > dashboard link

Re: possible deadlock in __do_page_fault

2018-09-20 Thread Todd Kjos
mmit:a0cb0cabe4bb Add linux-next specific files for 20180920 > > git tree: linux-next > > console output: https://syzkaller.appspot.com/x/log.txt?x=1513972140 > > kernel config: https://syzkaller.appspot.com/x/.config?x=786006c5dafbadf6 > > dashboard link

Re: possible deadlock in __do_page_fault

2018-09-20 Thread Andrew Morton
Thanks. Let's cc the ashmem folks. On Thu, 20 Sep 2018 14:04:05 -0700 syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:a0cb0cabe4bb Add linux-next specific files for 20180920 > git tree: linux-next > console output: https://sy

Re: possible deadlock in __do_page_fault

2018-09-20 Thread Andrew Morton
Thanks. Let's cc the ashmem folks. On Thu, 20 Sep 2018 14:04:05 -0700 syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:a0cb0cabe4bb Add linux-next specific files for 20180920 > git tree: linux-next > console output: https://sy

Re: [RESEND] [PATCH] perf/x86/intel/uncore: Use boot_cpu_data.phys_proc_id instead of hardcorded phy id 0

2018-09-20 Thread Liang, Kan
On 9/20/2018 4:55 PM, Thomas Gleixner wrote: On Mon, 10 Sep 2018, Masayoshi Mizuma wrote: CC+ Kan From: Masayoshi Mizuma Physical package id 0 is not always exists. We should use boot_cpu_data.phys_proc_id here. Signed-off-by: Masayoshi Mizuma --- arch/x86/events/intel/uncore_snbep.c

Re: [RESEND] [PATCH] perf/x86/intel/uncore: Use boot_cpu_data.phys_proc_id instead of hardcorded phy id 0

2018-09-20 Thread Liang, Kan
On 9/20/2018 4:55 PM, Thomas Gleixner wrote: On Mon, 10 Sep 2018, Masayoshi Mizuma wrote: CC+ Kan From: Masayoshi Mizuma Physical package id 0 is not always exists. We should use boot_cpu_data.phys_proc_id here. Signed-off-by: Masayoshi Mizuma --- arch/x86/events/intel/uncore_snbep.c

Re: [PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-20 Thread Tao Ren
On 9/20/18, 8:46 AM, "Linus Walleij" wrote: > Actually this is much more intuitive too, it is the typical way to handle > a down-counting timer. Good catch! > Reviewed-by: Linus Walleij Thank you Linus for the quick review! > Sorry for any cargo-cult programming on my part :/ > Would be

Re: [PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-20 Thread Tao Ren
On 9/20/18, 8:46 AM, "Linus Walleij" wrote: > Actually this is much more intuitive too, it is the typical way to handle > a down-counting timer. Good catch! > Reviewed-by: Linus Walleij Thank you Linus for the quick review! > Sorry for any cargo-cult programming on my part :/ > Would be

mmotm 2018-09-20-14-08 uploaded

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

mmotm 2018-09-20-14-08 uploaded

2018-09-20 Thread akpm
The mm-of-the-moment snapshot 2018-09-20-14-08 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://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 v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Ard Biesheuvel
On 20 September 2018 at 13:55, Florian Fainelli wrote: > On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: >> On 19 September 2018 at 07:31, Jim Quinlan wrote: >>> The Broadcom STB PCIe host controller is intimately related to the >>> memory subsystem. This close relationship adds complexity to how

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Ard Biesheuvel
On 20 September 2018 at 13:55, Florian Fainelli wrote: > On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: >> On 19 September 2018 at 07:31, Jim Quinlan wrote: >>> The Broadcom STB PCIe host controller is intimately related to the >>> memory subsystem. This close relationship adds complexity to how

possible deadlock in __do_page_fault

2018-09-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a0cb0cabe4bb Add linux-next specific files for 20180920 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1513972140 kernel config: https://syzkaller.appspot.com/x/.config?x=786006c5dafbadf6

KMSAN: uninit-value in synaptics_detect

2018-09-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:42a037ca8d9d kmsan: update README.md to reference LLVM r34.. git tree: https://github.com/google/kmsan.git/master console output: https://syzkaller.appspot.com/x/log.txt?x=1392c14940 kernel config:

possible deadlock in __do_page_fault

2018-09-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a0cb0cabe4bb Add linux-next specific files for 20180920 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1513972140 kernel config: https://syzkaller.appspot.com/x/.config?x=786006c5dafbadf6

KMSAN: uninit-value in synaptics_detect

2018-09-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:42a037ca8d9d kmsan: update README.md to reference LLVM r34.. git tree: https://github.com/google/kmsan.git/master console output: https://syzkaller.appspot.com/x/log.txt?x=1392c14940 kernel config:

Re: [PATCH] x86/cpu: Enable cpuid instruction on Cyrix 6x86/6x86L processors

2018-09-20 Thread Andy Lutomirski
On Thu, Sep 20, 2018 at 1:45 PM Matthew Whitehead wrote: > > On power up, the cpuid instruction is disabled on Cyrix 6x86 and 6x86L > processors and it needs to be enabled. There is code to do this, but it > does not work because it uses the broken {set,get}Cx86_old() macros. > > There are

Re: [PATCH] x86/cpu: Enable cpuid instruction on Cyrix 6x86/6x86L processors

2018-09-20 Thread Andy Lutomirski
On Thu, Sep 20, 2018 at 1:45 PM Matthew Whitehead wrote: > > On power up, the cpuid instruction is disabled on Cyrix 6x86 and 6x86L > processors and it needs to be enabled. There is code to do this, but it > does not work because it uses the broken {set,get}Cx86_old() macros. > > There are

Re: [PATCH 2/5] mm/memory_hotplug: Avoid node_set/clear_state(N_HIGH_MEMORY) when !CONFIG_HIGHMEM

2018-09-20 Thread Pasha Tatashin
On 9/19/18 6:08 AM, Oscar Salvador wrote: > From: Oscar Salvador > > Currently, when !CONFIG_HIGHMEM, status_change_nid_high is being set > to status_change_nid_normal, but on such systems N_HIGH_MEMORY falls > back to N_NORMAL_MEMORY. > That means that if status_change_nid_normal is not -1, >

Re: [PATCH 2/5] mm/memory_hotplug: Avoid node_set/clear_state(N_HIGH_MEMORY) when !CONFIG_HIGHMEM

2018-09-20 Thread Pasha Tatashin
On 9/19/18 6:08 AM, Oscar Salvador wrote: > From: Oscar Salvador > > Currently, when !CONFIG_HIGHMEM, status_change_nid_high is being set > to status_change_nid_normal, but on such systems N_HIGH_MEMORY falls > back to N_NORMAL_MEMORY. > That means that if status_change_nid_normal is not -1, >

Re: [RESEND] [PATCH] perf/x86/intel/uncore: Use boot_cpu_data.phys_proc_id instead of hardcorded phy id 0

2018-09-20 Thread Thomas Gleixner
On Mon, 10 Sep 2018, Masayoshi Mizuma wrote: CC+ Kan > From: Masayoshi Mizuma > > Physical package id 0 is not always exists. We should use > boot_cpu_data.phys_proc_id here. > > Signed-off-by: Masayoshi Mizuma > --- > arch/x86/events/intel/uncore_snbep.c | 2 +- > 1 file changed, 1

[PATCH] scsi: arcmsr: Remove unnecessary parentheses

2018-09-20 Thread Nathan Chancellor
Clang warns when multiple pairs of parentheses are used for a single conditional statement. drivers/scsi/arcmsr/arcmsr_hba.c:4138:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((acb->dev_id == 0x1680)) { ^

Re: [RESEND] [PATCH] perf/x86/intel/uncore: Use boot_cpu_data.phys_proc_id instead of hardcorded phy id 0

2018-09-20 Thread Thomas Gleixner
On Mon, 10 Sep 2018, Masayoshi Mizuma wrote: CC+ Kan > From: Masayoshi Mizuma > > Physical package id 0 is not always exists. We should use > boot_cpu_data.phys_proc_id here. > > Signed-off-by: Masayoshi Mizuma > --- > arch/x86/events/intel/uncore_snbep.c | 2 +- > 1 file changed, 1

[PATCH] scsi: arcmsr: Remove unnecessary parentheses

2018-09-20 Thread Nathan Chancellor
Clang warns when multiple pairs of parentheses are used for a single conditional statement. drivers/scsi/arcmsr/arcmsr_hba.c:4138:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((acb->dev_id == 0x1680)) { ^

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Florian Fainelli
On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: > On 19 September 2018 at 07:31, Jim Quinlan wrote: >> The Broadcom STB PCIe host controller is intimately related to the >> memory subsystem. This close relationship adds complexity to how cpu >> system memory is mapped to PCIe memory. Ideally,

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-20 Thread Florian Fainelli
On 09/19/2018 07:19 PM, Ard Biesheuvel wrote: > On 19 September 2018 at 07:31, Jim Quinlan wrote: >> The Broadcom STB PCIe host controller is intimately related to the >> memory subsystem. This close relationship adds complexity to how cpu >> system memory is mapped to PCIe memory. Ideally,

Re: [PATCH 1/5] mm/memory_hotplug: Spare unnecessary calls to node_set_state

2018-09-20 Thread Pasha Tatashin
On 9/19/18 6:08 AM, Oscar Salvador wrote: > From: Oscar Salvador > > In node_states_check_changes_online, we check if the node will > have to be set for any of the N_*_MEMORY states after the pages > have been onlined. > > Later on, we perform the activation in node_states_set_node. >

Re: [PATCH 1/3] percpu_ref: add a new helper interface __percpu_ref_get_many

2018-09-20 Thread Tejun Heo
Hello, On Thu, Sep 20, 2018 at 06:18:21PM +0800, Jianchao Wang wrote: > -static inline void percpu_ref_get_many(struct percpu_ref *ref, unsigned long > nr) > +static inline void __percpu_ref_get_many(struct percpu_ref *ref, unsigned > long nr) > { > unsigned long __percpu *percpu_count;

Re: [PATCH 1/5] mm/memory_hotplug: Spare unnecessary calls to node_set_state

2018-09-20 Thread Pasha Tatashin
On 9/19/18 6:08 AM, Oscar Salvador wrote: > From: Oscar Salvador > > In node_states_check_changes_online, we check if the node will > have to be set for any of the N_*_MEMORY states after the pages > have been onlined. > > Later on, we perform the activation in node_states_set_node. >

Re: [PATCH 1/3] percpu_ref: add a new helper interface __percpu_ref_get_many

2018-09-20 Thread Tejun Heo
Hello, On Thu, Sep 20, 2018 at 06:18:21PM +0800, Jianchao Wang wrote: > -static inline void percpu_ref_get_many(struct percpu_ref *ref, unsigned long > nr) > +static inline void __percpu_ref_get_many(struct percpu_ref *ref, unsigned > long nr) > { > unsigned long __percpu *percpu_count;

[PATCH] x86/cpu: Enable cpuid instruction on Cyrix 6x86/6x86L processors

2018-09-20 Thread Matthew Whitehead
On power up, the cpuid instruction is disabled on Cyrix 6x86 and 6x86L processors and it needs to be enabled. There is code to do this, but it does not work because it uses the broken {set,get}Cx86_old() macros. There are comments in processor-cyrix.h advising you to _not_ make calls using the

[PATCH] x86/cpu: Enable cpuid instruction on Cyrix 6x86/6x86L processors

2018-09-20 Thread Matthew Whitehead
On power up, the cpuid instruction is disabled on Cyrix 6x86 and 6x86L processors and it needs to be enabled. There is code to do this, but it does not work because it uses the broken {set,get}Cx86_old() macros. There are comments in processor-cyrix.h advising you to _not_ make calls using the

Re: [PATCH 0/4] ARM: dts: mvebu: updates and new board

2018-09-20 Thread Chris Packham
On 21/09/18 03:57, Gregory CLEMENT wrote: > Hi Chris, > > On jeu., juil. 26 2018, Chris Packham > wrote: > >> This series updates the armada-xp-98dx3236 SoC and related boards to use the >> new style dts bindings for nand. >> >> I've also added a new db-88f6820-amc board which is an

Re: [PATCH 0/4] ARM: dts: mvebu: updates and new board

2018-09-20 Thread Chris Packham
On 21/09/18 03:57, Gregory CLEMENT wrote: > Hi Chris, > > On jeu., juil. 26 2018, Chris Packham > wrote: > >> This series updates the armada-xp-98dx3236 SoC and related boards to use the >> new style dts bindings for nand. >> >> I've also added a new db-88f6820-amc board which is an

<    1   2   3   4   5   6   7   8   9   10   >