Re: [PATCH v7 4/5] clk: imx: add imx composite clock

2018-09-20 Thread Andrey Smirnov
On Thu, Sep 20, 2018 at 3:07 AM Abel Vesa wrote: > > Since a lot of clocks on imx8 are formed by a mux, gate, predivider and > divider, the idea here is to combine all of those into one composite clock, > but we need to deal with both predivider and divider at the same time and > therefore we add

Re: [PATCH V8 1/2] clocksource: add gx6605s SOC system timer

2018-09-20 Thread Daniel Lezcano
On 21/09/2018 01:31, Guo Ren wrote: > On Thu, Sep 20, 2018 at 06:06:19PM +0200, Daniel Lezcano wrote: >> On 20/09/2018 10:03, Guo Ren wrote: >>> Changelog: >>> - Add License and Copyright >>> - Use timer-of framework >>> - Change name with upstream feedback >>> - Use clksource_mmio framework >>

Re: [PATCH v7 3/5] clk: imx: add SCCG PLL type

2018-09-20 Thread Andrey Smirnov
On Thu, Sep 20, 2018 at 3:07 AM Abel Vesa wrote: > > From: Lucas Stach > > The SCCG is a new PLL type introduced on i.MX8. Add support for this. > The driver currently misses the PLL lock check, as the preliminary > documentation mentions lock configurations, but is quiet about where > to find th

Re: [PATCH v2 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-09-20 Thread Ryan Case
On Thu, Sep 20, 2018 at 3:46 PM Randy Dunlap wrote: > On 9/20/18 3:40 PM, Ryan Case wrote: > > diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig > > index de03d67bcd2b..36922e12c3b0 100644 > > --- a/drivers/spi/Kconfig > > +++ b/drivers/spi/Kconfig > > @@ -549,6 +549,12 @@ config SPI_RSPI > >

Re: [PATCH v7 2/5] clk: imx: add fractional PLL output clock

2018-09-20 Thread Andrey Smirnov
On Thu, Sep 20, 2018 at 3:07 AM Abel Vesa wrote: > > From: Lucas Stach > > This is a new clock type introduced on i.MX8. > > Signed-off-by: Lucas Stach > Signed-off-by: Abel Vesa > --- > drivers/clk/imx/Makefile | 1 + > drivers/clk/imx/clk-frac-pll.c | 230 > +

Re: [PATCH v6 4/5] seccomp: add support for passing fds via USER_NOTIF

2018-09-20 Thread Tycho Andersen
On Wed, Sep 19, 2018 at 12:58:20PM -0700, Andy Lutomirski wrote: > On Wed, Sep 19, 2018 at 7:38 AM, Tycho Andersen wrote: > > On Wed, Sep 19, 2018 at 07:19:56AM -0700, Andy Lutomirski wrote: > >> > >> > >> > On Sep 19, 2018, at 2:55 AM, Tycho Andersen wrote: > >> > > >> >> On Wed, Sep 12, 2018 at

Re: [PATCH 3/5] mm/memory_hotplug: Tidy up node_states_clear_node

2018-09-20 Thread Pasha Tatashin
On 9/19/18 6:08 AM, Oscar Salvador wrote: > From: Oscar Salvador > > node_states_clear has the following if statements: > > if ((N_MEMORY != N_NORMAL_MEMORY) && > (arg->status_change_nid_high >= 0)) > ... > > if ((N_MEMORY != N_HIGH_MEMORY) && > (arg->status_change_nid >= 0))

Re: possible deadlock in __do_page_fault

2018-09-20 Thread Joel Fernandes
/ It has Neil Brown's Reviewed-by but looks like didn't yet appear in anyone's tree, could Greg take this patch? thanks, - Joel > > On Thu, 20 Sep 2018 14:04:05 -0700 syzbot > > wrote: > > > > > Hello, > > > > > > syzbot found the

Re: [PATCH V8 1/2] clocksource: add gx6605s SOC system timer

2018-09-20 Thread Guo Ren
On Thu, Sep 20, 2018 at 06:06:19PM +0200, Daniel Lezcano wrote: > On 20/09/2018 10:03, Guo Ren wrote: > > Changelog: > > - Add License and Copyright > > - Use timer-of framework > > - Change name with upstream feedback > > - Use clksource_mmio framework > > > > Signed-off-by: Guo Ren > > ---

[PATCH] mtd: rawnand: Use proper enum for flctl_dma_fifo0_transfer

2018-09-20 Thread Nathan Chancellor
Clang warns when one enumerated type is converted implicitly to another: drivers/mtd/nand/raw/sh_flctl.c:483:46: warning: implicit conversion from enumeration type 'enum dma_transfer_direction' to different enumeration type 'enum dma_data_direction' [-Wenum-conversion] flctl_dma_fi

[PATCH] i2c: aspeed: fixed invalid clock parameters for very large divisors

2018-09-20 Thread Brendan Higgins
The function that computes clock parameters from divisors did not respect the maximum size of the bitfields that the parameters were written to. This fixes the bug. This bug can be reproduced with (and this fix verified with) the test at: https://kunit-review.googlesource.com/c/linux/+/1035/ Disc

Re: [PATCH 0/2] Add API to retrieve the Bluetooth Device Address (BD_ADDR)

2018-09-20 Thread Matthias Kaehlcke
On Thu, Sep 20, 2018 at 07:03:15PM -0400, Sinan Kaya wrote: > On 9/20/2018 7:01 PM, Matthias Kaehlcke wrote: > > Certainly true if this was the only driver. However another one will > > follow soon and 'local-bd-address' is the official binding, so it's > > not unlikely there will be more. > > I w

[PATCH] spi: pic32: Use proper enum in dmaengine_prep_slave_rg

2018-09-20 Thread Nathan Chancellor
Clang warns when one enumerated type is converted implicitly to another: drivers/spi/spi-pic32.c:323:8: warning: implicit conversion from enumeration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion]

[PATCH] [v3] HID: add support for Apple Magic Trackpad 2

2018-09-20 Thread Sean O'Brien
USB device Vendor 05ac (Apple) Device 0265 (Magic Trackpad 2) Bluetooth device Vendor 004c (Apple) Device 0265 (Magic Trackpad 2) Add support for Apple Magic Trackpad 2 over USB and bluetooth, putting the device in multi-touch mode. Signed-off-by: Claudio Mettler

Re: [PATCH v3 1/5] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-09-20 Thread Marc Zyngier
Hi Lina, On Tue, 04 Sep 2018 22:18:06 +0100, Lina Iyer wrote: > > QCOM SoC's that have Power Domain Controller (PDC) chip in the always-on > domain can wakeup the SoC, when interrupts and GPIOs are routed to its > interrupt controller. Only select GPIOs that are deemed wakeup capable > are route

Re: [PATCH 0/2] Add API to retrieve the Bluetooth Device Address (BD_ADDR)

2018-09-20 Thread Sinan Kaya
On 9/20/2018 7:01 PM, Matthias Kaehlcke wrote: Certainly true if this was the only driver. However another one will follow soon and 'local-bd-address' is the official binding, so it's not unlikely there will be more. I was missing this information. Is there a way to convert existing users to th

Re: [PATCH 0/2] Add API to retrieve the Bluetooth Device Address (BD_ADDR)

2018-09-20 Thread Matthias Kaehlcke
On Thu, Sep 20, 2018 at 06:45:58PM -0400, Sinan Kaya wrote: > On 9/20/2018 6:34 PM, Matthias Kaehlcke wrote: > > On some systems the Bluetooth Device Address (BD_ADDR) isn't stored > > on the Bluetooth chip itself. One way to configure the BD address is > > through the device tree. The btqcomsmd dr

Re: [RFC PATCH] selinux: add a fallback to defcontext for native labeling

2018-09-20 Thread Taras Kondratiuk
Quoting Stephen Smalley (2018-09-20 07:49:12) > On 09/19/2018 10:41 PM, Taras Kondratiuk wrote: > > Quoting Stephen Smalley (2018-09-19 12:00:33) > >> On 09/19/2018 12:52 PM, Taras Kondratiuk wrote: > >>> When files on NFSv4 server are not properly labeled (label doesn't match > >>> a policy on a c

Re: [PATCH v2] vfio/pci: Mask buggy SR-IOV VF INTx support

2018-09-20 Thread Raj, Ashok
On Thu, Sep 20, 2018 at 03:56:41PM -0700, Eads, Gage wrote: Thanks Gage. > Hi Alex, > > > > Known devices with this issue: 8086:270c > > > > Signed-off-by: Alex Williamson > > Tested-by: Gage Eads Reviewed-by: Ashok Raj

RE: [PATCH v2] vfio/pci: Mask buggy SR-IOV VF INTx support

2018-09-20 Thread Eads, Gage
Hi Alex, This patch passes testing with the 0x270c device, and (when I comment out its known_bogus_vf_intx_pin entry) the warning is triggered by QEMU. Thanks, Gage > -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, September 20, 2018 3:03

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

2018-09-20 Thread Edward Cree
On 20/09/18 10:27, unconditionedwitn...@redchan.it wrote: > Contributors can, at any time, rescind the license grant regarding their > property via written notice to those whom they are rescinding the grant > from (regarding their property (code)). I know others have already said it, but: This is

[PATCH] staging: sm750fb: Fix typo frambuffer->framebuffer

2018-09-20 Thread Aymen Qader
This patch corrects a typo (frambuffer->framebuffer) in the sm750fb_fram(e)buffer_release and sm750fb_fram(e)buffer_alloc function names. Signed-off-by: Aymen Qader --- drivers/staging/sm750fb/sm750.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/

Re: [PATCH 0/2] Add API to retrieve the Bluetooth Device Address (BD_ADDR)

2018-09-20 Thread Sinan Kaya
On 9/20/2018 6:34 PM, Matthias Kaehlcke wrote: On some systems the Bluetooth Device Address (BD_ADDR) isn't stored on the Bluetooth chip itself. One way to configure the BD address is through the device tree. The btqcomsmd driver is an example, it can read the BD address from the DT property 'loc

Re: [PATCH v2 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-09-20 Thread Randy Dunlap
Hi, Just curious: On 9/20/18 3:40 PM, Ryan Case wrote: > diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig > index de03d67bcd2b..36922e12c3b0 100644 > --- a/drivers/spi/Kconfig > +++ b/drivers/spi/Kconfig > @@ -549,6 +549,12 @@ config SPI_RSPI > help > SPI driver for Renesas RS

Re: [PATCH] gpiolib: Show correct direction from the beginning

2018-09-20 Thread Linus Walleij
On Thu, Sep 20, 2018 at 7:14 AM Ricardo Ribalda Delgado wrote: > On Thu, Sep 20, 2018 at 2:20 PM Timur Tabi wrote: > > Users are expected to program the direction for every GPIO they want to > > use, regardless of whatever it's set to before they open it. > > I do not agree that the user should

[PATCH v2 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-09-20 Thread Ryan Case
From: Girish Mahadevan New driver for Qualcomm QuadSPI(QSPI) controller that is used to communicate with slaves such flash memory devices. The QSPI controller can operate in 2 or 4 wire mode but only supports SPI Mode 0 and SPI Mode 3. The controller can also operate in Single or Dual data rate m

[PATCH v2 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation

2018-09-20 Thread Ryan Case
From: Girish Mahadevan Bindings for Qualcomm Quad SPI used on SoCs such as sdm845. Signed-off-by: Girish Mahadevan Signed-off-by: Ryan Case --- Changes in v2: - Added commit text - Removed invalid property - Updated example to match sdm845 with attached spi-nor .../bindings/spi/qcom,spi-qco

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

2018-09-20 Thread Janusz Krzysztofik
Hi Tony, On Thursday, September 20, 2018 11:23:26 PM CEST Tony Lindgren wrote: > * 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, resto

Re: [PATCH] gpiolib: Show correct direction from the beginning

2018-09-20 Thread Linus Walleij
On Thu, Sep 20, 2018 at 5:35 AM Timur Tabi wrote: > On 9/20/18 12:23 AM, Linus Walleij wrote: > > I think most gpiochips easily survives calling the .get_direction() > > early, Qualcomm's stand out here. > > > > Now that we have .valid_mask in the gpiochip could we simply just > > add this back, r

[PATCH 2/2] Bluetooth: btqcomsmd: Get the BD address with device_get_bd_address()

2018-09-20 Thread Matthias Kaehlcke
Use the new API to get the BD address instead of reading it directly from the device tree. Also remove an unncessary pair of braces in the same area of code. Signed-off-by: Matthias Kaehlcke --- drivers/bluetooth/btqcomsmd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH 0/2] Add API to retrieve the Bluetooth Device Address (BD_ADDR)

2018-09-20 Thread Matthias Kaehlcke
On some systems the Bluetooth Device Address (BD_ADDR) isn't stored on the Bluetooth chip itself. One way to configure the BD address is through the device tree. The btqcomsmd driver is an example, it can read the BD address from the DT property 'local-bd-address'. It is also planned to extend the

[PATCH 1/2] device property: Add device_get_bd_address() and fwnode_get_bd_address()

2018-09-20 Thread Matthias Kaehlcke
Provide an API for Bluetooth drivers to retrieve the Bluetooth Device address (BD_ADDR) for a device. If the device node has a property 'local-bd-address' the BD address is read from this property. Signed-off-by: Matthias Kaehlcke --- drivers/base/property.c | 49 +++

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

2018-09-20 Thread Marc Zyngier
On Thu, 20 Sep 2018 23:04:30 +0100, Pavel Machek wrote: > > 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

Re: [PATCH v2 2/2] i2c: i2c-qcom-geni: Simplify tx/rx functions

2018-09-20 Thread Stephen Boyd
Quoting Doug Anderson (2018-09-20 13:22:37) > Hi, > On Thu, Sep 20, 2018 at 11:03 AM Stephen Boyd wrote: > > > > We never really look at the 'ret' local variable in these functions, so > > let's remove it to make way for shorter and simpler code. Furthermore, > > we can shorten some lines by addin

Re: [RFC 02/20] timens: Add timens_offsets

2018-09-20 Thread Cyrill Gorcunov
On Thu, Sep 20, 2018 at 09:45:10PM +0300, Cyrill Gorcunov wrote: > On Wed, Sep 19, 2018 at 09:50:19PM +0100, Dmitry Safonov wrote: > > From: Andrei Vagin > > > > Introduce offsets for time namespace. They will contain adjustment > > needed to convert clocks to/from host's. > > > > Allocate one p

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: "Raf

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, we

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 @@ > > > > +// SPDX-

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 faul

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 iss

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. > > Suggested

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 reg

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 > Signed-off-by

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 a

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 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] 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 to

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 ho

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 subsyst

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 ni

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 applying

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 pag

[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) 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 tran

[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 b/fs

[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: possible deadlock in __do_page_fault

2018-09-20 Thread Todd Kjos
ommit: 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

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

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 n

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 wi

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: https://syzkaller.appspot.c

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 comment

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 insertio

[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)) { ^ drivers/

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, this

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. > Currentl

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 dep

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 Armada-

Re: [PATCH v10 05/26] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-09-20 Thread Tony Krowiak
On 09/20/2018 11:50 AM, Cornelia Huck wrote: On Wed, 12 Sep 2018 15:42:55 -0400 Tony Krowiak wrote: From: Tony Krowiak Registers the matrix device created by the VFIO AP device driver with the VFIO mediated device framework. Registering the matrix device will create the sysfs structures need

Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation

2018-09-20 Thread Joseph Myers
On Thu, 20 Sep 2018, Mathieu Desnoyers wrote: > Something like this in pthreadP.h ? > > +#ifdef __NR_rseq > +#include > +#else > +#include > +#endif /* __NR_rseq. */ > > where sysdeps/unix/sysv/linux/rseq-internal.h contains the linux > implementation of rseq_register_current_thread () and >

Re: [PATCH v2 2/2] i2c: i2c-qcom-geni: Simplify tx/rx functions

2018-09-20 Thread Doug Anderson
Hi, On Thu, Sep 20, 2018 at 11:03 AM Stephen Boyd wrote: > > We never really look at the 'ret' local variable in these functions, so > let's remove it to make way for shorter and simpler code. Furthermore, > we can shorten some lines by adding two local variables for the SE and > the message lengt

Re: [PATCH v2 1/2] i2c: i2c-qcom-geni: Properly handle DMA safe buffers

2018-09-20 Thread Doug Anderson
Hi, On Thu, Sep 20, 2018 at 11:03 AM Stephen Boyd wrote: > > We shouldn't attempt to DMA map the message buffers passed into this > driver from the i2c core unless the message we're mapping have been > properly setup for DMA. The i2c core indicates such a situation by > setting the I2C_M_DMA_SAFE

[PATCH] video: fbdev: sis: Remove unnecessary parentheses and commented code

2018-09-20 Thread Nathan Chancellor
Clang warns when multiple pairs of parentheses are used for a single conditional statement. drivers/video/fbdev/sis/init301.c:851:42: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] } else if((SiS_Pr->SiS_IF_DEF_LVDS == 1) /* ||

[PATCH] auxdisplay/cfag12864bfb.c: Replace vm_insert_page

2018-09-20 Thread Souptick Joarder
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. remap_pfn_range() will be used to map kernel memory to user vma. Signed-off-by: Souptick Joarder --- driv

Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation

2018-09-20 Thread Joseph Myers
On Thu, 20 Sep 2018, Mathieu Desnoyers wrote: > Are you saying glibc has an explicit check for the kernel version visible > from /proc before using specific features ? If so, how can this work with > the variety of feature backports we find in the distribution kernels out > there ? See sysdeps/un

Re: [PATCH security-next v2 00/26] LSM: Explict LSM ordering

2018-09-20 Thread Martin Steigerwald
Kees Cook - 20.09.18, 18:23: > v2: > - add "lsm.order=" and CONFIG_LSM_ORDER instead of overloading > "security=" - reorganize introduction of ordering logic code > > Updated cover letter: > > This refactors the LSM registration and initialization infrastructure > to more centrally support differ

Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation

2018-09-20 Thread Mathieu Desnoyers
- On Sep 19, 2018, at 1:10 PM, Joseph Myers jos...@codesourcery.com wrote: > On Wed, 19 Sep 2018, Mathieu Desnoyers wrote: > >> > This looks like it's coming from the Linux kernel. Can't the relevant >> > uapi header just be used directly without copying into glibc (with due >> > care to ens

Re: [PATCH v2 2/4] [media] ad5820: Add support for enable pin

2018-09-20 Thread Pavel Machek
On Thu 2018-09-20 21:12:44, Ricardo Ribalda Delgado wrote: > On Thu, Sep 20, 2018 at 9:08 PM Pavel Machek wrote: > > > > On Thu 2018-09-20 21:06:16, Ricardo Ribalda Delgado wrote: > > > Hi Pavel > > > > > > On Thu, Sep 20, 2018 at 8:54 PM Pavel Machek wrote: > > > > > > > > On Thu 2018-09-20 20:4

[PATCH] ARM: add serial.h and set BASE_BAUD to 0

2018-09-20 Thread Rafał Miłecki
From: Rafał Miłecki For years arm has been using serial.h from asm-generic which sets BASE_BAUD value to the (1843200 / 16). This is incorrect as: 1) This value obviously isn't correct for all devices 2) There are no device specific serial.h with CONFIG_ARCH_MULTIPLATFORM That value breaks early

Re: [PATCH v7 3/4] dt-bindings: power: supply: qcom_bms: Add bindings

2018-09-20 Thread Baolin Wang
Hi Sebastian, On 21 September 2018 at 00:58, Sebastian Reichel wrote: > [Dropped a couple of people from CC, added Baolin] > > Hi Craig, Baolin and Rob, > > On Thu, Sep 20, 2018 at 03:32:29PM +0100, Craig wrote: >> On 16 September 2018 13:10:45 BST, Sebastian Reichel >> wrote: >> >Sorry for my

Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation

2018-09-20 Thread Mathieu Desnoyers
- On Sep 19, 2018, at 12:37 PM, Joseph Myers jos...@codesourcery.com wrote: > On Wed, 19 Sep 2018, Mathieu Desnoyers wrote: > >> Here is a rough prototype registering rseq(2) TLS for each thread >> (including main), and unregistering for each thread (excluding >> main). "rseq" stands for Rest

[PATCHv2 2/7] mm/gup_benchmark: Add additional pinning methods

2018-09-20 Thread Keith Busch
This patch provides new gup benchmark ioctl commands to run different user page pinning methods, get_user_pages_longterm and get_user_pages, in addition to the existing get_user_pages_fast. Cc: Kirill Shutemov Cc: Dave Hansen Cc: Dan Williams Signed-off-by: Keith Busch --- mm/gup_benchmark.c

[PATCHv2 5/7] tools/gup_benchmark: Add parameter for hugetlb

2018-09-20 Thread Keith Busch
Cc: Kirill Shutemov Cc: Dave Hansen Cc: Dan Williams Signed-off-by: Keith Busch --- tools/testing/selftests/vm/gup_benchmark.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/gup_benchmark.c b/tools/testing/selftests/vm/gup_benchmark.c index

<    1   2   3   4   5   6   7   >