Re: [PATCH v2 5/5] memory: tegra: Introduce Tegra20 EMC driver

2018-06-11 Thread Thierry Reding
On Mon, Jun 11, 2018 at 04:06:41PM +0300, Dmitry Osipenko wrote: > On Monday, 11 June 2018 14:35:03 MSK Thierry Reding wrote: > > On Wed, Jun 06, 2018 at 04:42:01PM +0300, Dmitry Osipenko wrote: > > > On 06.06.2018 14:02, Thierry Reding wrote: > > > > On Mon, Jun 04, 2018 at 01:36:54AM +0300, Dmitr

Re: [PATCH v2 15/24] net: qualcomm: MODULE_DEVICE_TABLE(serdev)

2018-06-11 Thread Marcel Holtmann
Hi Ricardo, the commit message is misleading me. If I build something with ACPI or DT support, then modinfo will show all modalias information for ACPI and DT compatible strings. What else does udev/modprobe actually need? Is something broken with the modalias export? >>> >

[PATCH v7 0/5] Reintroduce i.MX EPIT Timer

2018-06-11 Thread Clément Péron
From: Clément Peron As suggested in the commit message we have added the device tree support, proper bindings and we moved the driver into the correct folder. Moreover we made some changes like use of relaxed IO accesor, implement sched_clock, delay_timer and reduce the clockevents min_delta. C

[PATCH v7 2/5] ARM: imx: remove inexistant EPIT timer init

2018-06-11 Thread Clément Péron
From: Clément Peron i.MX EPIT timer has been removed but not the init function declaration. Signed-off-by: Clément Peron Reviewed-by: Fabio Estevam Reviewed-by: Vladimir Zapolskiy Tested-by: Vladimir Zapolskiy --- arch/arm/mach-imx/common.h | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH v7 4/5] clocksource: add driver for i.MX EPIT timer

2018-06-11 Thread Clément Péron
From: Colin Didier Add driver for NXP's EPIT timer used in i.MX SoC. Signed-off-by: Colin Didier Signed-off-by: Clément Peron Reviewed-by: Vladimir Zapolskiy Tested-by: Vladimir Zapolskiy --- drivers/clocksource/Kconfig | 11 ++ drivers/clocksource/Makefile | 1 + driver

[PATCH v7 3/5] dt-bindings: timer: add i.MX EPIT timer binding

2018-06-11 Thread Clément Péron
From: Clément Peron Add devicetree binding document for NXP's i.MX SoC specific EPIT timer driver. Signed-off-by: Clément Peron Reviewed-by: Vladimir Zapolskiy --- .../devicetree/bindings/timer/fsl,imxepit.txt | 21 +++ 1 file changed, 21 insertions(+) create mode 100644 Docu

[PATCH v7 5/5] ARM: dts: imx: add missing compatible and clock properties for EPIT

2018-06-11 Thread Clément Péron
From: Colin Didier Add missing compatible and clock properties for EPIT node. Signed-off-by: Colin Didier Signed-off-by: Clément Peron Reviewed-by: Vladimir Zapolskiy --- arch/arm/boot/dts/imx25.dtsi | 8 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 10 -- arch/arm/boot/dts/imx6sl.dt

[PATCH v7 1/5] clk: imx6: add EPIT clock support

2018-06-11 Thread Clément Péron
From: Colin Didier Ignore this Patch, already merged in clk-next Signed-off-by: Colin Didier Signed-off-by: Clément Peron Reviewed-by: Fabio Estevam Acked-by: Rob Herring --- drivers/clk/imx/clk-imx6q.c | 2 ++ include/dt-bindings/clock/imx6qdl-clock.h | 4 +++- 2 files change

Re: [PATCH] Bluetooth: hci_bcm: Configure SCO routing automatically

2018-06-11 Thread Marcel Holtmann
Hi Rob, Added support to automatically configure the SCO packet routing at the device setup. The SCO packets are used with the HSP / HFP profiles, but in some devices (ex. CYW43438) they are routed to a PCM output by default. This change allows sending the vendor specific

Re: [PATCH v5 2/4] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations

2018-06-11 Thread Johan Hovold
On Fri, Jun 08, 2018 at 04:03:55PM -0400, Steven Rostedt wrote: > On Thu, 7 Jun 2018 11:18:16 +0200 > Johan Hovold wrote: > > > > If you want to work around the warning and think you can do it in some > > non-contrived way, then go for it. > > > > Clearing the request buffer, checking for termi

Re: [linus:master] BUILD REGRESSION 68abbe729567cef128b2c2141f2ed2567f3b8372

2018-06-11 Thread Linus Torvalds
On Mon, Jun 11, 2018 at 12:16 AM Philip Li wrote: > > The bisect considers the errors belong to mainline tree, meanwhile, there's a > corner case, the bot sends out this mail externally which is supposed to send > only internally for double check. > > Kindly ignore this. We will continue the impro

Re: PATCH fixed coding style error in drivers/bluetooth/hci_serdev.c

2018-06-11 Thread Mathieu Poirier
On Mon, Jun 11, 2018 at 08:15:13AM -0700, jagadish tirumala wrote: > > HI , This is Jagdish , I have fixed a coding style ERROR: space required > before the open parenthesis in drivers/bluetooth/hci_serdev.c , please > have a look > > Jagdish > > > Hello Jagdish, I am afraid your patch has se

Re: [PATCH v6 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-06-11 Thread Alexandre Belloni
Hi, On 07/06/2018 14:00:16+0300, Radu Pirea wrote: > diff --git a/include/dt-bindings/mfd/at91-usart.h > b/include/dt-bindings/mfd/at91-usart.h > new file mode 100644 > index ..ac811628a42d > --- /dev/null > +++ b/include/dt-bindings/mfd/at91-usart.h > @@ -0,0 +1,17 @@ > +/* SPDX-Lice

Re: [PATCH v6 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-11 Thread Alexandre Belloni
On 07/06/2018 14:00:17+0300, Radu Pirea wrote: > +static int at91_usart_mode_probe(struct platform_device *pdev) > +{ > + struct mfd_cell cell; > + u32 opmode; This has to be initialized to AT91_USART_MODE_SERIAL... > + int err; > + > + err = device_property_read_u32(&pdev->dev, "

Re: [PATCH] Bluetooth: hci_bcm: Configure SCO routing automatically

2018-06-11 Thread Rob Herring
On Sat, Jun 9, 2018 at 12:26 AM, Attila Tőkés wrote: > Hello Rob, > > On Fri, Jun 8, 2018 at 8:25 PM, Rob Herring wrote: >> >> On Fri, Jun 8, 2018 at 10:20 AM, wrote: >> > From: Attila Tőkés >> > >> > Added support to automatically configure the SCO packet routing at the >> > device setup. The

Re: [PATCH v2 15/24] net: qualcomm: MODULE_DEVICE_TABLE(serdev)

2018-06-11 Thread Ricardo Ribalda Delgado
Hi Marcel, On Mon, Jun 11, 2018 at 5:28 PM Marcel Holtmann wrote: > > Hi Marcel, > > >> the commit message is misleading me. If I build something with ACPI or DT > >> support, then modinfo will show all modalias information for ACPI and DT > >> compatible strings. What else does udev/modprobe ac

Re: Regression: x86/tsc: Fix mark_tsc_unstable()

2018-06-11 Thread Peter Zijlstra
On Mon, Jun 11, 2018 at 04:38:01PM +0200, Peter Zijlstra wrote: > On Mon, Jun 11, 2018 at 04:17:42PM +0200, Peter Zijlstra wrote: > > On Mon, Jun 11, 2018 at 01:59:15PM +, Jeremy Cline wrote: > > > A user has bisected the problem to the v4.16 commit 1ab4ca7c59d4 > > > ("x86/tsc: Fix mark_tsc_un

Re: [PATCH v2 15/24] net: qualcomm: MODULE_DEVICE_TABLE(serdev)

2018-06-11 Thread Marcel Holtmann
Hi Marcel, >> the commit message is misleading me. If I build something with ACPI or DT >> support, then modinfo will show all modalias information for ACPI and DT >> compatible strings. What else does udev/modprobe actually need? Is something >> broken with the modalias export? > > The main p

Re: 4.16.14: kernel tried to execute NX-protected page [after USB device went to charging state]

2018-06-11 Thread Johan Hovold
[ +CC: linux-usb, even if this does not look like a USB issue ] On Sat, Jun 09, 2018 at 11:50:34AM +0200, Udo van den Heuvel wrote: > Hello, > > My Holus GPSport 245 was used to download a gpx track. Afterwards I > turned the device off while it was attached to USB so it could charge. > Later I

Re: [PATCH v11 06/13] crypto: aesni: add minimal build option for SGX LE

2018-06-11 Thread Sean Christopherson
On Fri, 2018-06-08 at 10:27 -0700, Dave Hansen wrote: > On 06/08/2018 10:09 AM, Jarkko Sakkinen wrote: > > > > --- a/arch/x86/crypto/aesni-intel_asm.S > > +++ b/arch/x86/crypto/aesni-intel_asm.S > > @@ -45,6 +45,8 @@ > >  #define MOVADQ movaps > >  #define MOVUDQ movups > >   > > +#ifndef

Re: [PATCH v2 21/24] rave-sp: Support for variants on modalias drivers

2018-06-11 Thread Ricardo Ribalda Delgado
Hello On Mon, Jun 11, 2018 at 3:38 PM Marcel Holtmann wrote: > > Hi Andy, > > >> Rave-sp behaves differently based on the device variant. > > > > > >>sp->variant = of_device_get_match_data(dev); > >> + if (!sp->variant) { > >> + id = serdev_match_id(rave_sp_serdev_id,

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-11 Thread Jason Baron
On 06/11/2018 03:20 AM, Michal Hocko wrote: > [CCing linux-api - please make sure to CC this mailing list anytime you > are touching user visible apis] > > On Fri 08-06-18 14:56:52, Jason Baron wrote: >> In order to free memory that is marked MLOCK_ONFAULT, the memory region >> needs to be first

[PATCH 0/2] media: i2c: mt9v111 sensor driver

2018-06-11 Thread Jacopo Mondi
Hello, this is a sensor level driver for Aptina MT9V111. The driver supports YUYV_2X8 output formats and VGA,QVGA,QQVGA,CIF and QCIF resolution. The driver allows control of frame rate through s_frame_interval or V4L2_CID_H/VBLANK control. In order to allow manual frame control, the chip is in

Re: [PATCH 1/2] rcutorture: Disable RT throttling for boost tests

2018-06-11 Thread Paul E. McKenney
On Sun, Jun 10, 2018 at 04:45:43PM -0700, Joel Fernandes wrote: > From: "Joel Fernandes (Google)" > > Currently rcutorture is not able to torture RCU boosting properly. This > is because the rcutorture's boost threads which are doing the torturing > may be throttled due to RT throttling. > > Thi

Re: [PATCH v2 14/24] mfd: rave-sp: MODULE_DEVICE_TABLE(serdev)

2018-06-11 Thread Ricardo Ribalda Delgado
Hi Marcel On Mon, Jun 11, 2018 at 3:14 PM Marcel Holtmann wrote: > > Hi Ricardo, > > > Export serdev table to the module header, allowing module autoload via > > udev/modprobe. > > > > Cc: Lee Jones > > Cc: Rob Herring > > Cc: Johan Hovold > > Signed-off-by: Ricardo Ribalda Delgado > > --- > >

[PATCH 2/2] media: i2c: Add driver for Aptina MT9V111

2018-06-11 Thread Jacopo Mondi
Add V4L2 sensor driver for Aptina MT9V111 CMOS image sensor. The MT9V111 is a 1/4-Inch CMOS image sensor based on MT9V011 with an integrated Image Flow Processor. Signed-off-by: Jacopo Mondi --- MAINTAINERS |8 + drivers/media/i2c/Kconfig | 12 + drivers/media/i2c/Makefi

[PATCH v2 1/1] ASoC: stm32: sai: add iec958 controls support

2018-06-11 Thread Olivier Moysan
Add support of iec958 controls for STM32 SAI. Signed-off-by: Olivier Moysan --- sound/soc/stm/Kconfig | 1 + sound/soc/stm/stm32_sai_sub.c | 139 ++ 2 files changed, 128 insertions(+), 12 deletions(-) diff --git a/sound/soc/stm/Kconfig b/sound/s

[PATCH 1/2] dt-bindings: media: i2c: Document MT9V111 bindings

2018-06-11 Thread Jacopo Mondi
Add documentation for Aptina MT9V111 image sensor. Signed-off-by: Jacopo Mondi --- .../bindings/media/i2c/aptina,mt9v111.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/aptina,mt9v111.txt diff --git a/Do

[PATCH v2 0/1] ASoC: stm32: sai: add iec958 controls support

2018-06-11 Thread Olivier Moysan
Changes v2: - Remove iec958 helpers and implement iec958 controls in sai driver Olivier Moysan (1): ASoC: stm32: sai: add iec958 controls support sound/soc/stm/Kconfig | 1 + sound/soc/stm/stm32_sai_sub.c | 139 ++ 2 files changed, 128 inserti

Re: [PATCH] Documentation: devicetree: tilcdc: fix spelling mistake "suppors" -> "supports"

2018-06-11 Thread Rob Herring
On Wed, Jun 06, 2018 at 05:39:42PM +0200, Enric Balletbo i Serra wrote: > Trivial fix to spelling mistake in tilcdc.txt devicetree documentation. > > Signed-off-by: Enric Balletbo i Serra > --- > > Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 2 +- > 1 file changed, 1 insertion

PATCH fixed coding style error in drivers/bluetooth/hci_serdev.c

2018-06-11 Thread jagadish tirumala
HI , This is Jagdish , I have fixed a coding style ERROR: space required before the open parenthesis in drivers/bluetooth/hci_serdev.c , please have a look Jagdish >From 3c3e844d0f0ba49a6d40a7265548f81316f756e4 Mon Sep 17 00:00:00 2001 From: Jagdish587 Date: Sun, 10 Jun 2018 04:15:53 -0700 Su

Re: [intel-sgx-kernel-dev] [PATCH v11 09/13] x86, sgx: basic routines for enclave page cache

2018-06-11 Thread Sean Christopherson
On Sat, 2018-06-09 at 22:32 -0700, Andy Lutomirski wrote: > On Fri, Jun 8, 2018 at 10:22 AM Jarkko Sakkinen > wrote: > > > > > > SGX has a set of data structures to maintain information about the enclaves > > and their security properties. BIOS reserves a fixed size region of > > physical memory

[PATCH] [media] cx18: remove redundant zero check on retval

2018-06-11 Thread Colin King
From: Colin Ian King The check for a zero retval is redundant as all paths that lead to this point have set retval to an error return value that is non-zero. Remove the redundant check. Detected by CoverityScan, CID#102589 ("Logically dead code") Signed-off-by: Colin Ian King --- drivers/medi

[PATCH] ARM: dts: am33xx: Fix syntax of alias names

2018-06-11 Thread Felix Brack
DT specifications do not allow the underscore character in alias names. Replace all underscores in alias names by dashes. Signed-off-by: Felix Brack --- arch/arm/boot/dts/am33xx.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/

Re: [PATCH v2 15/24] net: qualcomm: MODULE_DEVICE_TABLE(serdev)

2018-06-11 Thread Ricardo Ribalda Delgado
Hi Marcel, On Mon, Jun 11, 2018 at 3:01 PM Marcel Holtmann wrote: > > > the commit message is misleading me. If I build something with ACPI or DT > support, then modinfo will show all modalias information for ACPI and DT > compatible strings. What else does udev/modprobe actually need? Is someth

Re: [PATCH 02/10] x86/cet: Introduce WRUSS instruction

2018-06-11 Thread Yu-cheng Yu
On Mon, 2018-06-11 at 10:17 +0200, Peter Zijlstra wrote: > On Thu, Jun 07, 2018 at 09:40:02AM -0700, Andy Lutomirski wrote: > > On Thu, Jun 7, 2018 at 7:41 AM Yu-cheng Yu wrote: > > > Peterz, isn't there some fancy better way we're supposed to handle the > > error return these days? > > > > +

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-11 Thread Michal Hocko
On Mon 11-06-18 10:51:44, Jason Baron wrote: > On 06/11/2018 03:20 AM, Michal Hocko wrote: > > [CCing linux-api - please make sure to CC this mailing list anytime you > > are touching user visible apis] > > > > On Fri 08-06-18 14:56:52, Jason Baron wrote: > >> In order to free memory that is mark

Re: [PATCH v11 11/13] intel_sgx: ptrace() support

2018-06-11 Thread Sean Christopherson
On Fri, 2018-06-08 at 11:34 -0700, Dave Hansen wrote: > On 06/08/2018 10:09 AM, Jarkko Sakkinen wrote: > > > > + ret = sgx_edbgrd(encl, entry, align, data); > > + if (ret) > > + break; > > + if (write) { > > + memcpy(data + offset,

Re: [PATCH 01/19 v3] regulator: fixed: Convert to use GPIO descriptor only

2018-06-11 Thread Mark Brown
On Mon, Jun 11, 2018 at 03:11:14PM +0200, Linus Walleij wrote: > The DT binding for "regulator-fixed" specifies that enable-active-high > should be set for polarity inversion. For historical reasons, I guess, > we screwed up. The example in the binding uses that. No, it just says that if the enab

[PATCH] microblaze: heartbeat: fix missing prom.h include

2018-06-11 Thread Rob Herring
Since commit 96f0e6fcc9ad ("microblaze: remove redundant early_printk support") prom.h was removed and one instance in heartbeat.c remained. Include of.h as it is the actual header needed. Fixes: 96f0e6fcc9ad ("microblaze: remove redundant early_printk support") Reported-by: kbuild test robot Cc:

Re: [PATCH v5 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-11 Thread Enric Balletbo Serra
Hi Radu, Some few feedback in a hope to help you. Missatge de Radu Pirea del dia dl., 4 de juny 2018 a les 19:03: > > This mfd driver is just a wrapper over atmel_serial driver and > spi-at91-usart driver. Selection of one of the drivers is based on a > property from device tree. If the property

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-11 Thread Michal Hocko
On Mon 11-06-18 08:43:03, Bjorn Helgaas wrote: > On Mon, Jun 11, 2018 at 08:32:10PM +0800, Xie XiuQi wrote: > > Hi Michal, > > > > On 2018/6/11 16:52, Michal Hocko wrote: > > > On Mon 11-06-18 11:23:18, Xie XiuQi wrote: > > >> Hi Michal, > > >> > > >> On 2018/6/7 20:21, Michal Hocko wrote: > > >>>

Re: [PATCH V2] EDAC, altera: Fix an error handling path in 'altr_s10_sdram_probe()'

2018-06-11 Thread Thor Thayer
On 06/10/2018 12:45 PM, Christophe JAILLET wrote: IF 'regmap_write()' fails, we should release some resources as done in all the other error handling paths of the function. Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10") Signed-off-by: Christophe JAILLET --

Re: [PATCH] posix-cpu-timers: remove lockdep_assert_irqs_disabled()

2018-06-11 Thread Sebastian Andrzej Siewior
On 2018-05-04 17:25:48 [+0200], To linux-kernel@vger.kernel.org wrote: > The lockdep_assert_irqs_disabled() was a BUG_ON() statement in the > beginning and it was added just before the "spin_lock(siglock)" > statement to ensure this lock was taken with disabled interrupts. > This is no longer the c

[PATCH REPOST] ntfs: don't disable interrupts during kmap_atomic()

2018-06-11 Thread Sebastian Andrzej Siewior
ntfs_end_buffer_async_read() disables interrupts around kmap_atomic(). This is a leftover from the old kmap_atomic() implementation which relied on fixed mapping slots, so the caller had to make sure that the same slot could not be reused from an interrupting context. kmap_atomic() was changed to

Re: [PATCH v6 0/5] Reintroduce i.MX EPIT Timer

2018-06-11 Thread Clément Péron
Hi Vladimir, On Mon, 11 Jun 2018 at 16:39, Vladimir Zapolskiy wrote: > > Hi Clément, > > On 06/07/2018 05:05 PM, Clément Péron wrote: > > From: Clément Peron > > > > As suggested in the commit message we have added the device tree support, > > proper bindings and we moved the driver into the corr

Re: [PATCH v6 4/5] clocksource: add driver for i.MX EPIT timer

2018-06-11 Thread Vladimir Zapolskiy
On 06/07/2018 05:05 PM, Clément Péron wrote: > From: Colin Didier > > Add driver for NXP's EPIT timer used in i.MX SoC. > > Signed-off-by: Colin Didier > Signed-off-by: Clément Peron Reviewed-by: Vladimir Zapolskiy Tested-by: Vladimir Zapolskiy I tested the driver on i.MX31 only, and I did

Re: [PATCH v6 5/5] ARM: dts: imx: add missing compatible and clock properties for EPIT

2018-06-11 Thread Vladimir Zapolskiy
On 06/07/2018 05:05 PM, Clément Péron wrote: > From: Colin Didier > > Add missing compatible and clock properties for EPIT node. > > Signed-off-by: Colin Didier > Signed-off-by: Clément Peron Reviewed-by: Vladimir Zapolskiy -- With best wishes, Vladimir

Re: [PATCH v6 0/5] Reintroduce i.MX EPIT Timer

2018-06-11 Thread Vladimir Zapolskiy
Hi Clément, On 06/07/2018 05:05 PM, Clément Péron wrote: > From: Clément Peron > > As suggested in the commit message we have added the device tree support, > proper bindings and we moved the driver into the correct folder. > > Moreover we made some changes like use of relaxed IO accesor, > imp

Re: [PATCH v6 2/5] ARM: imx: remove inexistant EPIT timer init

2018-06-11 Thread Vladimir Zapolskiy
On 06/07/2018 05:05 PM, Clément Péron wrote: > From: Clément Peron > > i.MX EPIT timer has been removed but not the init function declaration. > > Signed-off-by: Clément Peron > Reviewed-by: Fabio Estevam Reviewed-by: Vladimir Zapolskiy Tested-by: Vladimir Zapolskiy -- With best wishes, Vl

Re: [PATCH v6 3/5] dt-bindings: timer: add i.MX EPIT timer binding

2018-06-11 Thread Vladimir Zapolskiy
On 06/07/2018 05:05 PM, Clément Péron wrote: > From: Clément Peron > > Add devicetree binding document for NXP's i.MX SoC specific > EPIT timer driver. > > Signed-off-by: Clément Peron Reviewed-by: Vladimir Zapolskiy -- With best wishes, Vladimir

Re: Regression: x86/tsc: Fix mark_tsc_unstable()

2018-06-11 Thread Peter Zijlstra
On Mon, Jun 11, 2018 at 04:17:42PM +0200, Peter Zijlstra wrote: > On Mon, Jun 11, 2018 at 01:59:15PM +, Jeremy Cline wrote: > > A user has bisected the problem to the v4.16 commit 1ab4ca7c59d4 > > ("x86/tsc: Fix mark_tsc_unstable()"). According to the reporter, > > explicitly setting "tsc=" on

Re: INFO: task hung in xlog_grant_head_check

2018-06-11 Thread Eric Sandeen
On 6/11/18 8:20 AM, Dmitry Vyukov wrote: > On Wed, May 23, 2018 at 8:01 PM, Eric Sandeen wrote: ... >> As an aside, I wonder how much coverage of the V5 format code syzkaller >> /has/ >> achieved; that would be another useful datapoint google could provide - if >> syzkaller is in fact traversing

[PATCH v13 07/72] xarray: Add documentation

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This is documentation on how to use the XArray, not details about its internal implementation. Signed-off-by: Matthew Wilcox Acked-by: Josef Bacik --- Documentation/core-api/index.rst | 1 + Documentation/core-api/xarray.rst | 395 ++ 2 file

Re: [PATCH 0/2] mm/page_ext: Trivial cleanups

2018-06-11 Thread Kirill A. Shutemov
On Thu, May 31, 2018 at 01:54:55PM +, Kirill A. Shutemov wrote: > A pair of trivial cleanups in preparation for memory encryption. Andrew, can we get these applied? -- Kirill A. Shutemov

[PATCH v13 09/72] xarray: Add XArray tags

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox XArray tags are slightly more strongly typed than the radix tree tags, but occupy the same bits. This commit adds the basic get/set/clear operations. Signed-off-by: Matthew Wilcox --- include/linux/xarray.h| 47 lib/xarray.c

Re: [PATCH resend v2] dcdbas: Add support for WSMT ACPI table

2018-06-11 Thread Stuart Hayes
On 6/8/2018 8:04 PM, Darren Hart wrote: > On Thu, Jun 07, 2018 at 08:11:41PM +0300, Andy Shevchenko wrote: >> On Thu, Jun 7, 2018 at 6:59 PM, Stuart Hayes >> wrote: >>> If the WSMT ACPI table is present and indicates that a fixed communication >>> buffer should be used, use the firmware-specif

[PATCH v13 05/72] xarray: Add definition of struct xarray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This is a direct replacement for struct radix_tree_root. Some of the struct members have changed name; convert those, and use a #define so that radix_tree users continue to work without change. Signed-off-by: Matthew Wilcox Reviewed-by: Josef Bacik --- include/linux/radi

[PATCH v13 03/72] xarray: Replace exceptional entries

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Introduce xarray value entries to replace the radix tree exceptional entry code. This is a slight change in encoding to allow the use of an extra bit (we can now store BITS_PER_LONG - 1 bits in a value entry). It is also a change in emphasis; exceptional entries are intimida

[PATCH v13 08/72] xarray: Add xa_load

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This first function in the XArray API brings with it a lot of support infrastructure. The advanced API is based around the xa_state which is a more capable version of the radix_tree_iter. As the test-suite demonstrates, it is possible to use the xarray and radix tree APIs o

Re: [PATCH 4.4 059/268] xen-netfront: Fix race between device setup and open

2018-06-11 Thread Ben Hutchings
On Mon, 2018-05-28 at 12:00 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Ross Lagerwall > > [ Upstream commit f599c64fdf7d9c108e8717fb04bc41c680120da4 ] [...] > --- a/drivers/net/xen-netfront.c >

[PATCH v13 02/72] dax: Fix use of zero page

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Use my_zero_pfn instead of ZERO_PAGE, and pass the vaddr to it so it works on MIPS and s390. Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler --- fs/dax.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index 4

[PATCH 4/6] arcnet: com20020: bindings for smsc com20020

2018-06-11 Thread Andrea Greco
From: Andrea Greco Add devicetree bindings for smsc com20020 Signed-off-by: Andrea Greco --- .../devicetree/bindings/net/smsc-com20020.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/smsc-com20020.txt diff --git

[PATCH 6/6] arcnet: com20020: Add ethtool support

2018-06-11 Thread Andrea Greco
From: Andrea Greco Setup ethtols for export com20020 diag register Signed-off-by: Andrea Greco --- drivers/net/arcnet/com20020-io.c | 1 + drivers/net/arcnet/com20020-isa.c | 1 + drivers/net/arcnet/com20020.c | 24 drivers/net/arcnet/com20020.h | 1 + driv

[PATCH 5/6] arcnet: com20020: Fixup missing SLOWARB bit

2018-06-11 Thread Andrea Greco
From: Andrea Greco If com20020 clock is major of 40Mhz SLOWARB bit is requested. Signed-off-by: Andrea Greco --- drivers/net/arcnet/com20020.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c index 8d979a66d8e9..1a0fd30fe8ae

[PATCH 4/6] arcnet: com20020: bindings for smsc com20020

2018-06-11 Thread Andrea Greco
From: Andrea Greco Add devicetree bindings for smsc com20020 Signed-off-by: Andrea Greco --- .../devicetree/bindings/net/smsc-com20020.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/smsc-com20020.txt diff --git

[PATCH 3/6] arcnet: com20020: Add com20020 io mapped version

2018-06-11 Thread Andrea Greco
From: Andrea Greco Add support for com20022I/com20020, io mapped. Signed-off-by: Andrea Greco --- drivers/net/arcnet/Kconfig | 9 +- drivers/net/arcnet/Makefile | 1 + drivers/net/arcnet/com20020-io.c | 315 +++ drivers/net/arcnet/com20020.c

[PATCH 2/6] arcnet: com20020: Add IO cb for configure rw

2018-06-11 Thread Andrea Greco
From: Andrea Greco Add IO callback. No logic change are intended. Now every driver implementation could specify IO callback. Default IO callback is provided. Signed-off-by: Andrea Greco --- drivers/net/arcnet/arcdevice.h| 4 ++ drivers/net/arcnet/com20020-isa.c | 21 -- drivers/net/

[PATCH 1/6] arcnet: leds: Removed leds dependecy

2018-06-11 Thread Andrea Greco
From: Andrea Greco Only PCI driver depends from leds class. Signed-off-by: Andrea Greco --- drivers/net/arcnet/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/arcnet/Kconfig b/drivers/net/arcnet/Kconfig index 39bd16f3f86d..afc5898e7a16 100644 --- a/drive

[PATCH v13 04/72] xarray: Change definition of sibling entries

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Instead of storing a pointer to the slot containing the canonical entry, store the offset of the slot. Produces slightly more efficient code (~300 bytes) and simplifies the implementation. Signed-off-by: Matthew Wilcox Reviewed-by: Josef Bacik --- include/linux/xarray.h

[PATCH v13 00/72] Convert page cache to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox The XArray is a replacement for the radix tree. For the moment it uses the same data structures, enabling a gradual replacement. This patch set implements the XArray and converts the page cache to use it. A version of these patches has been running under xfstests for over

[PATCH v13 06/72] xarray: Define struct xa_node

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This is a direct replacement for struct radix_tree_node. A couple of struct members have changed name, so convert those. Use a #define so that radix tree users continue to work without change. Signed-off-by: Matthew Wilcox Reviewed-by: Josef Bacik --- include/linux/radi

[PATCH v13 10/72] xarray: Add xa_store

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox xa_store() differs from radix_tree_insert() in that it will overwrite an existing element in the array rather than returning an error. This is the behaviour which most users want, and those that want more complex behaviour generally want to use the xas family of routines any

[PATCH v13 12/72] xarray: Add xa_for_each

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This iterator allows the user to efficiently walk a range of the array, executing the loop body once for each entry in that range that matches the filter. This commit also includes xa_find() and xa_find_above() which are helper functions for xa_for_each() but may also be use

Re: [PATCH v2 5/5] arm64: perf: Add support for chaining event counters

2018-06-11 Thread Mark Rutland
On Mon, Jun 11, 2018 at 02:54:16PM +0100, Suzuki K Poulose wrote: > On 08/06/18 15:46, Suzuki K Poulose wrote: > > On 06/06/2018 07:01 PM, Mark Rutland wrote: > > > On Tue, May 29, 2018 at 11:55:56AM +0100, Suzuki K Poulose wrote: > > > > > -    value |= 0xULL; > > > > +   

[PATCH v13 11/72] xarray: Add xa_cmpxchg and xa_insert

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Like cmpxchg(), xa_cmpxchg will only store to the index if the current entry matches the old entry. It returns the current entry, which is usually more useful than the errno returned by radix_tree_insert(). For the users who really only want the errno, the xa_insert() wrappe

[PATCH v13 14/72] xarray: Add xa_destroy

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This function frees all the internal memory allocated to the xarray and reinitialises it to be empty. Signed-off-by: Matthew Wilcox --- include/linux/xarray.h | 1 + lib/xarray.c | 28 2 files changed, 29 insertions(+) diff --git a/

[PATCH v13 30/72] radix tree test suite: Convert regression1 to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Now the page cache lookup is using the XArray, let's convert this regression test from the radix tree API to the XArray so it's testing roughly the same thing it was testing before. Signed-off-by: Matthew Wilcox --- tools/testing/radix-tree/regression1.c | 58 +

[PATCH v13 31/72] page cache: Convert delete_batch to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Rename the function from page_cache_tree_delete_batch to just page_cache_delete_batch. Signed-off-by: Matthew Wilcox --- mm/filemap.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 4204d9

[PATCH v13 32/72] page cache: Remove stray radix comment

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index 025077bc82be..e447dd2d0f5c 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2682,7 +2682,7 @@ static struct page *do_read_cac

[PATCH v13 28/72] page cache: Convert find_get_entries_tag to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Slightly shorter and simpler code. Signed-off-by: Matthew Wilcox --- include/linux/pagemap.h | 2 +- mm/filemap.c| 54 ++--- 2 files changed, 25 insertions(+), 31 deletions(-) diff --git a/include/linux/pagemap.h b/include/

[PATCH v13 15/72] xarray: Add xas_next and xas_prev

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox These two functions move the xas index by one position, and adjust the rest of the iterator state to match it. This is more efficient than calling xas_set() as it keeps the iterator at the leaves of the tree instead of walking the iterator from the root each time. Signed-of

[PATCH v13 22/72] page cache: Convert page deletion to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox The code is slightly shorter and simpler. Signed-off-by: Matthew Wilcox --- mm/filemap.c | 31 +-- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 965ff68e5b8d..7cdb1d4b8117 100644 --- a/mm/filem

[PATCH v13 13/72] xarray: Add xa_extract

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This function combines the functionality of radix_tree_gang_lookup() and radix_tree_gang_lookup_tagged(). It extracts entries matching the specified filter into a normal array. Signed-off-by: Matthew Wilcox --- include/linux/xarray.h | 2 ++ lib/xarray.c | 80 +

[PATCH v13 29/72] page cache: Convert filemap_map_pages to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Slight change of strategy here; if we have trouble getting hold of a page for whatever reason (eg a compound page is split underneath us), don't spin to stabilise the page, just continue the iteration, like we would if we failed to trylock the page. Since this is a speculati

[PATCH v13 24/72] page cache: Convert find_get_entries to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Slightly shorter and simpler code. Signed-off-by: Matthew Wilcox --- mm/filemap.c | 51 +++ 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 6db3d35ff5f6..b49290131e85 100644 -

[PATCH v13 26/72] page cache: Convert find_get_pages_contig to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox There's no direct replacement for radix_tree_for_each_contig() in the XArray API as it's an unusual thing to do. Instead, open-code a loop using xas_next(). This removes the only user of radix_tree_for_each_contig() so delete the iterator from the API and the test suite cod

[PATCH v13 27/72] page cache; Convert find_get_pages_range_tag to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox The 'end' parameter of the xas_for_each iterator avoids a useless iteration at the end of the range. Signed-off-by: Matthew Wilcox --- include/linux/pagemap.h | 4 +-- mm/filemap.c| 68 - 2 files changed, 28 insertions(+

[PATCH v13 23/72] page cache: Convert find_get_entry to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Slightly shorter and simpler code. Signed-off-by: Matthew Wilcox --- mm/filemap.c | 63 +++- 1 file changed, 28 insertions(+), 35 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 7cdb1d4b8117..6db3d35ff5f6 100644

[PATCH v13 16/72] xarray: Add xas_for_each_conflict

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This iterator iterates over each entry that is stored in the index or indices specified by the xa_state. This is intended for use for a conditional store of a multiindex entry, or to allow entries which are about to be removed from the xarray to be disposed of properly. Sig

[PATCH v13 25/72] page cache: Convert find_get_pages_range to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox The 'end' parameter of the xas_for_each iterator avoids a useless iteration at the end of the range. Signed-off-by: Matthew Wilcox --- mm/filemap.c | 52 +++- 1 file changed, 19 insertions(+), 33 deletions(-) diff --git a/mm

Re: [PATCH] mmc: dw_mmc: fix card threshold control configuration

2018-06-11 Thread Shawn Lin
On 2018/6/11 20:20, Ulf Hansson wrote: + Shawn Lin, Evgeniy Didin, Doug Andersson On 29 May 2018 at 12:38, Qing Xia wrote: From: x00270170 Card write threshold control is supposed to be set since controller version 2.80a for data write in HS400 mode and data read in HS200/HS400/SDR104 mode.

[PATCH v13 33/72] page cache: Convert filemap_range_has_page to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Instead of calling find_get_pages_range() and putting any reference, use xas_find() to iterate over any entries in the range, skipping the shadow/swap entries. Signed-off-by: Matthew Wilcox --- mm/filemap.c | 26 ++ 1 file changed, 18 insertions(+),

[PATCH v13 35/72] mm: Convert workingset to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox We construct a fake XA_STATE and use it to delete the node with xas_store() rather than adding a special function for this unique use case. Signed-off-by: Matthew Wilcox --- include/linux/swap.h | 9 mm/workingset.c | 51 +++--

[PATCH v13 34/72] mm: Convert page-writeback to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Includes moving mapping_tagged() to fs.h as a static inline, and changing it to return bool. Signed-off-by: Matthew Wilcox --- include/linux/fs.h | 17 ++- mm/page-writeback.c | 72 - 2 files changed, 36 insertions(+), 5

[PATCH v13 36/72] mm: Convert truncate to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox This is essentially xa_cmpxchg() with the locking handled above us, and it doesn't have to handle replacing a NULL entry. Signed-off-by: Matthew Wilcox --- mm/truncate.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/mm/truncate.c b/mm/

[PATCH v13 38/72] mm: Convert delete_from_swap_cache to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Both callers of __delete_from_swap_cache have the swp_entry_t already, so pass that in to make constructing the XA_STATE easier. Signed-off-by: Matthew Wilcox --- include/linux/swap.h | 5 +++-- mm/swap_state.c | 24 ++-- mm/vmscan.c | 2

[PATCH v13 19/72] page cache: Rearrange address_space

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Change i_pages from a radix_tree_root to an xarray, convert the documentation into kernel-doc format and change the order of the elements to pack them better on 64-bit systems. Signed-off-by: Matthew Wilcox --- include/linux/fs.h | 46 +++---

[PATCH v13 37/72] mm: Convert add_to_swap_cache to XArray

2018-06-11 Thread Matthew Wilcox
From: Matthew Wilcox Combine __add_to_swap_cache and add_to_swap_cache into one function since there is no more need to preload. Signed-off-by: Matthew Wilcox --- mm/swap_state.c | 93 +++-- 1 file changed, 29 insertions(+), 64 deletions(-) diff --g

Re: Regression: x86/tsc: Fix mark_tsc_unstable()

2018-06-11 Thread Peter Zijlstra
On Mon, Jun 11, 2018 at 01:59:15PM +, Jeremy Cline wrote: > A user has bisected the problem to the v4.16 commit 1ab4ca7c59d4 > ("x86/tsc: Fix mark_tsc_unstable()"). According to the reporter, > explicitly setting "tsc=" on the kernel command line causes the boot to > always succeed. All the use

<    1   2   3   4   5   6   7   8   >