Re: [PATCH 1/9] clk: actions: Don't reference clk_init_data after registration

2019-08-16 Thread Stephen Boyd
Quoting Manivannan Sadhasivam (2019-08-16 04:22:10) > On Wed, Jul 31, 2019 at 12:35:09PM -0700, Stephen Boyd wrote: > > A future patch is going to change semantics of clk_register() so that > > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid > > referencing this member here s

Re: [PATCH] clk: ti: Don't reference clk_init_data after registration

2019-08-16 Thread Stephen Boyd
Quoting Stephen Boyd (2019-08-15 15:12:49) > A future patch is going to change semantics of clk_register() so that > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid > referencing this member here so that we don't run into NULL pointer > exceptions. > > Cc: Tero Kristo > Cc:

Re: [PATCH v12 5/6] khugepaged: enable collapse pmd for pte-mapped THP

2019-08-16 Thread Kirill A. Shutemov
On Tue, Aug 13, 2019 at 06:24:51PM +0200, Oleg Nesterov wrote: > > Let me see first that my explanation makes sense :P > > It does ;) Does it look fine to you? It's on top of Song's patchset. >From 58834d6c1e63321af742b208558a6b5cb86fc7ec Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date

Re: [PATCH] clocksource: Add driver for the Ingenic JZ47xx OST

2019-08-16 Thread Daniel Lezcano
On 09/08/2019 14:38, Paul Cercueil wrote: > From: Maarten ter Huurne > > OST is the OS Timer, a 64-bit timer/counter with buffered reading. > > SoCs before the JZ4770 had (if any) a 32-bit OST; the JZ4770 and > JZ4780 have a 64-bit OST. > > This driver will register both a clocksource and a sch

[PATCH] PM / wakeup: Register wakeup class kobj after device is added

2019-08-16 Thread Stephen Boyd
The device_set_wakeup_enable() function can be called on a device that hasn't been registered with device_add() yet. This allows the device to be in a state where wakeup is enabled for it but the device isn't published to userspace in sysfs yet. After commit 986845e747af ("PM / wakeup: Show wakeup

Re: [PATCH 3/3] soc: fsl: FSL_MC_DPIO selects directly FSL_GUTS

2019-08-16 Thread Roy Pledge
On 8/15/2019 7:09 PM, Li Yang wrote: > On Wed, Jul 3, 2019 at 9:58 AM Ioana Ciornei wrote: >> Make FSL_MC_DPIO select directly FSL_GUTS. Without this change we could >> be in a situation where both FSL_MC_DPIO and SOC_BUS are enabled but >> FSL_GUTS is not. >> >> Signed-off-by: Ioana Ciornei >> -

Re: [PATCH V2 1/2] clocksource/Hyper-v: Allocate Hyper-V tsc page statically

2019-08-16 Thread Daniel Lezcano
On 14/08/2019 14:32, lantianyu1...@gmail.com wrote: > From: Tianyu Lan > > Prepare to add Hyper-V sched clock callback and move Hyper-V > Reference TSC initialization much earlier in the boot process. Earlier > initialization is needed so that it happens while the timestamp value > is still 0 an

Re: [PATCH 2/3] mm/migrate: see hole as invalid source page

2019-08-16 Thread Pingfan Liu
On Thu, Aug 15, 2019 at 01:22:22PM -0400, Jerome Glisse wrote: > On Tue, Aug 06, 2019 at 04:00:10PM +0800, Pingfan Liu wrote: > > MIGRATE_PFN_MIGRATE marks a valid pfn, further more, suitable to migrate. > > As for hole, there is no valid pfn, not to mention migration. > > > > Before this patch, h

Re: [PATCH v2 1/5] RISC-V: Remove per cpu clocksource

2019-08-16 Thread Daniel Lezcano
On 31/07/2019 03:24, Atish Patra wrote: > There is only one clocksource in RISC-V. The boot cpu initializes > that clocksource. No need to keep a percpu data structure. That is not what is stated in the initial patch [1]. Can you clarify that ? Thanks -- Daniel [1] https://lkml.org/lkml/2018

RE: [PATCH 01/10] PCI: designware-ep: Add multiple PFs support for DWC

2019-08-16 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月16日 20:35 > To: Xiaowei Bao > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > mark.rutl...@arm.com; shawn...@kernel.org; Leo Li > ; kis...@ti.com; lorenzo.pieral...@arm.com; > a...@arndb.de; gre...@linuxfoundation.org;

Re: [PATCH v3 hmm 00/11] Add mmu_notifier_get/put for managing mmu notifier registrations

2019-08-16 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 08:15:37PM -0300, Jason Gunthorpe wrote: > This series is already entangled with patches in the hmm & RDMA tree and > will require some git topic branches for the RDMA ODP stuff. I intend for > it to go through the hmm tree. > Jason Gunthorpe (11): > mm/mmu_notifiers: hoi

Re: [PATCH v2 2/2] vfio/mdev: Removed unused and redundant API for mdev UUID

2019-08-16 Thread Cornelia Huck
On Thu, 8 Aug 2019 09:12:55 -0500 Parav Pandit wrote: > There is no single production driver who is interested in mdev device > uuid. Currently UUID is mainly used to derive a device name. > Additionally mdev device name is already available using core kernel > API dev_name(). > > Hence removed

Re: [PATCHv6 23/36] x86/vdso: Allocate timens vdso

2019-08-16 Thread Andy Lutomirski
On 8/15/19 9:38 AM, Dmitry Safonov wrote: As it has been discussed on timens RFC, adding a new conditional branch `if (inside_time_ns)` on VDSO for all processes is undesirable. It will add a penalty for everybody as branch predictor may mispredict the jump. Also there are instruction cache lines

Re: [PATCH v9 0/7] Solve postboot supplier cleanup and optimize probe ordering

2019-08-16 Thread Greg Kroah-Hartman
On Fri, Aug 16, 2019 at 07:05:06AM -0700, Frank Rowand wrote: > i Greg, > > On 8/16/19 2:10 AM, Greg Kroah-Hartman wrote: > > On Thu, Aug 15, 2019 at 08:09:19PM -0700, Frank Rowand wrote: > >> Hi Saravana, > >> > >> On 8/15/19 6:50 PM, Saravana Kannan wrote: > >>> On Fri, Aug 9, 2019 at 10:20 PM F

Re: [PATCH] vfio_pci: Replace pci_try_reset_function() with __pci_reset_function_locked() to ensure that the pci device configuration space is restored to its original state

2019-08-16 Thread Alex Williamson
On Fri, 16 Aug 2019 11:33:47 +0800 hexin wrote: > In vfio_pci_enable(), save the device's initial configuration information > and then restore the configuration in vfio_pci_disable(). However, the > execution result is not the same. Since the pci_try_reset_function() > function saves the current

Re: [PATCH v2 2/3] perf unwind: fix libunwind when tid != pid

2019-08-16 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2019 at 04:10:35PM +0200, Jiri Olsa escreveu: > On Thu, Aug 15, 2019 at 11:01:45AM +0100, John Keeping wrote: > > Commit e5adfc3e7e77 ("perf map: Synthesize maps only for thread group > > leader") changed the recording side so that we no longer get mmap events > > for threads other

[ANNOUNCE] v5.2.9-rt3

2019-08-16 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v5.2.9-rt3 patch set. Changes since v5.2.9-rt2: - The exynos5 i2c controller disabled IRQ threading as reported by Benjamin Rouxel. The hix5hd2 i2c controller did the same. - A timer related to the deadline scheduler now fires in hard-irq

Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote()

2019-08-16 Thread Jan Kara
On Thu 15-08-19 19:14:08, John Hubbard wrote: > On 8/15/19 10:41 AM, John Hubbard wrote: > > On 8/15/19 10:32 AM, Ira Weiny wrote: > >> On Thu, Aug 15, 2019 at 03:35:10PM +0200, Jan Kara wrote: > >>> On Thu 15-08-19 15:26:22, Jan Kara wrote: > On Wed 14-08-19 20:01:07, John Hubbard wrote: > >>

Re: [PATCH 1/7] [RFC] ARM: remove Intel iop33x and iop13xx support

2019-08-16 Thread Aaro Koskinen
Hi, On Wed, Aug 14, 2019 at 10:36:01AM +0200, Linus Walleij wrote: > On Mon, Aug 12, 2019 at 11:45 AM Martin Michlmayr wrote: > > As Arnd points out, Debian used to have support for various iop32x > > devices. While Debian hasn't supported iop32x in a number of years, > > these devices are still

Re: [PATCH v21 24/28] selftests/x86: Add a selftest for SGX

2019-08-16 Thread Jarkko Sakkinen
On Wed, Jul 17, 2019 at 03:37:03PM -0700, Xing, Cedric wrote: > > +$(OUTPUT)/encl.bin: $(OUTPUT)/encl.elf $(OUTPUT)/sgxsign > > + objcopy --remove-section=.got.plt -O binary $< $@ > > .got.plt section will never be present for statically linked binaries. You are right that it should not be ther

Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote()

2019-08-16 Thread Jan Kara
On Fri 16-08-19 10:47:21, Vlastimil Babka wrote: > On 8/15/19 3:35 PM, Jan Kara wrote: > >> > >> So when the GUP user uses MMU notifiers to stop writing to pages whenever > >> they are writeprotected with page_mkclean(), they don't really need page > >> pin - their access is then fully equivalent

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-16 Thread Li Yang
On Fri, Aug 16, 2019 at 3:05 AM Alexandre Belloni wrote: > > On 16/08/2019 10:46:36+0800, Biwen Li wrote: > > Issue: > > - # hwclock -w > > hwclock: RTC_SET_TIME: Invalid argument > > > > Why: > > - Relative patch: https://lkml.org/lkml/2019/4/3/55 , this patch > > will always

Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote()

2019-08-16 Thread Jerome Glisse
On Fri, Aug 16, 2019 at 05:44:04PM +0200, Jan Kara wrote: > On Fri 16-08-19 10:47:21, Vlastimil Babka wrote: > > On 8/15/19 3:35 PM, Jan Kara wrote: > > >> > > >> So when the GUP user uses MMU notifiers to stop writing to pages whenever > > >> they are writeprotected with page_mkclean(), they don'

Re: [PATCH v21 24/28] selftests/x86: Add a selftest for SGX

2019-08-16 Thread Jarkko Sakkinen
On Fri, Aug 16, 2019 at 06:43:44PM +0300, Jarkko Sakkinen wrote: > On Wed, Jul 17, 2019 at 03:37:03PM -0700, Xing, Cedric wrote: > > > +$(OUTPUT)/encl.bin: $(OUTPUT)/encl.elf $(OUTPUT)/sgxsign > > > + objcopy --remove-section=.got.plt -O binary $< $@ > > > > .got.plt section will never be present

[RFC PATCH] powerpc: Convert ____flush_dcache_icache_phys() to C

2019-08-16 Thread Christophe Leroy
Resulting code (8xx with 16 bytes per cacheline and 16k pages) 016c <__flush_dcache_icache_phys>: 16c: 54 63 00 22 rlwinm r3,r3,0,0,17 170: 7d 20 00 a6 mfmsr r9 174: 39 40 04 00 li r10,1024 178: 55 28 07 34 rlwinm r8,r9,0,28,26 17c: 7c 67 1b 78 mr

Re: [PATCH V5 2/2] genirq/affinity: Spread vectors on node according to nr_cpu ratio

2019-08-16 Thread Keith Busch
On Thu, Aug 15, 2019 at 07:28:49PM -0700, Ming Lei wrote: > Now __irq_build_affinity_masks() spreads vectors evenly per node, and > all vectors may not be spread in case that each numa node has different > CPU number, then the warning in irq_build_affinity_masks() can > be triggered. > > Improve c

Re: [PATCH v2 1/6] hwrng: core: Freeze khwrng thread during suspend

2019-08-16 Thread Alexander Steffen
On 03.08.2019 00:50, Stephen Boyd wrote: Quoting Stephen Boyd (2019-07-17 10:03:22) Quoting Jason Gunthorpe (2019-07-17 09:50:11) On Wed, Jul 17, 2019 at 09:42:32AM -0700, Stephen Boyd wrote: Yes. That's exactly my point. A hwrng that's suspended will fail here and it's better to just not try

Re: [PATCH 3/6] powerpc: Convert flush_icache_range & friends to C

2019-08-16 Thread Christophe Leroy
Le 15/08/2019 à 09:29, christophe leroy a écrit : Le 15/08/2019 à 06:10, Alastair D'Silva a écrit : From: Alastair D'Silva Similar to commit 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") this patch converts flush_icache_range() to C, and reimplements the foll

[PATCH 0/2] clk: Add driver for ast2600

2019-08-16 Thread Joel Stanley
Hello clock maintainers, This adds a new driver for the ast2600 BMC's clocks. It's a separate from the existing aspeed one as the ast2600 changes enough from the previous generation to make it hard to support with one driver. It has been tested on the ast2600 evaluation board. Joel Stanley (2):

[PATCH 2/2] clk: Add support for AST2600 SoC

2019-08-16 Thread Joel Stanley
The ast2600 is a new BMC SoC from ASPEED. It contains many more clocks than the previous iterations, so support is broken out into it's own driver. Signed-off-by: Joel Stanley --- drivers/clk/Makefile | 1 + drivers/clk/clk-ast2600.c | 701 +

[PATCH 1/2] clk: aspeed: Move structures to header

2019-08-16 Thread Joel Stanley
They will be reused by the ast2600 driver. Signed-off-by: Joel Stanley --- drivers/clk/clk-aspeed.c | 63 ++ drivers/clk/clk-aspeed.h | 74 2 files changed, 76 insertions(+), 61 deletions(-) create mode 100644 drivers/clk/

Re: [PATCH 1/7] [RFC] ARM: remove Intel iop33x and iop13xx support

2019-08-16 Thread Russell King - ARM Linux admin
On Fri, Aug 16, 2019 at 06:42:49PM +0300, Aaro Koskinen wrote: > Hi, > > On Wed, Aug 14, 2019 at 10:36:01AM +0200, Linus Walleij wrote: > > On Mon, Aug 12, 2019 at 11:45 AM Martin Michlmayr wrote: > > > As Arnd points out, Debian used to have support for various iop32x > > > devices. While Debia

[PATCH v7 01/11] lib/sort.c: implement sort() variant taking context argument

2019-08-16 Thread Ezequiel Garcia
From: Rasmus Villemoes Our list_sort() utility has always supported a context argument that is passed through to the comparison routine. Now there's a use case for the similar thing for sort(). This implements sort_r by simply extending the existing sort function in the obvious way. To avoid cod

[PATCH v7 02/11] media: uapi: h264: Rename pixel format

2019-08-16 Thread Ezequiel Garcia
The V4L2_PIX_FMT_H264_SLICE_RAW name was originally suggested because the pixel format would represent H264 slices without any start code. However, as we will now introduce a start code menu control, give the pixel format a more meaningful name, while it's still early enough to do so. Signed-off-

[PATCH v7 00/11] media: hantro: Add support for H264 decoding

2019-08-16 Thread Ezequiel Garcia
Yet another small respin of H264 uAPI review and Hantro G1 H264 decoding support, addressing some last minute feedback from Hans. It would be awesome if we can get this first part merged for v5.4. We have lots of changes and improvements in the pipeline for this driver! Thanks, Ezequiel Boris Br

[PATCH v7 04/11] media: uapi: h264: Add the concept of start code

2019-08-16 Thread Ezequiel Garcia
Stateless decoders have different expectations about the start code that is prepended on H264 slices. Add a menu control to express the supported start code types (including no start code). Drivers are allowed to support only one start code type, but they can support both too. Note that this is i

[PATCH v7 05/11] media: uapi: h264: Get rid of the p0/b0/b1 ref-lists

2019-08-16 Thread Ezequiel Garcia
From: Boris Brezillon Those lists can be extracted from the dpb, let's simplify userspace life and build that list kernel-side (generic helpers will be provided for drivers that need this list). Signed-off-by: Boris Brezillon Reviewed-by: Nicolas Dufresne Reviewed-by: Ezequiel Garcia Reviewed

Re: [PATCH v5 2/2] hwmon: pmbus: Add Inspur Power System power supply driver

2019-08-16 Thread Vijay Khemka
On 8/16/19, 3:20 AM, "openbmc on behalf of John Wang" wrote: Add the driver to monitor Inspur Power System power supplies with hwmon over pmbus. This driver adds sysfs attributes for additional power supply data, including vendor, model, part_number, serial number, fi

[PATCH v7 06/11] media: cedrus: Cleanup control initialization

2019-08-16 Thread Ezequiel Garcia
In order to introduce other controls, the control initialization needs to support an initial struct v4l2_ctrl_control. While here, let's cleanup the control initialization, removing unneeded fields. Signed-off-by: Ezequiel Garcia --- Changes in v7: * None. Changes in v6: * None. Changes in v5: *

[PATCH v7 07/11] media: cedrus: Specify H264 startcode and decoding mode

2019-08-16 Thread Ezequiel Garcia
The cedrus VPU is slice-based and expects V4L2_PIX_FMT_H264_SLICE buffers to contain H264 slices with no start code. Expose this to userspace with the newly added menu control. These two controls are specified as mandatory for applications, but we mark them as non-required on the driver side for

[PATCH v7 03/11] media: uapi: h264: Add the concept of decoding mode

2019-08-16 Thread Ezequiel Garcia
From: Boris Brezillon Some stateless decoders don't support per-slice decoding granularity (or at least not in a way that would make them efficient or easy to use). Expose a menu to control the supported decoding modes. Drivers are allowed to support only one decoding but they can support both t

Re: [alsa-devel] [PATCH -next] soundwire: Fix -Wunused-function warning

2019-08-16 Thread Ladislav Michl
On Fri, Aug 16, 2019 at 10:14:09PM +0800, YueHaibing wrote: > If CONFIG_ACPI is not set, gcc warning this: > > drivers/soundwire/slave.c:16:12: warning: > 'sdw_slave_add' defined but not used [-Wunused-function] > > move them to #ifdef CONFIG_ACPI block. ...and that makes slave.c empty, right?

[PATCH v7 08/11] media: hantro: Move copy_metadata() before doing a decode operation

2019-08-16 Thread Ezequiel Garcia
From: Boris Brezillon Some decoders use intra slice/frame references. The capture buffer pointed by these references might be new and thus have invalid timestamp which prevents the decoder logic from retrieving the vb2_buffer object based on the output buf timestamp. Copy all metadata (including

[PATCH v7 09/11] media: hantro: Add core bits to support H264 decoding

2019-08-16 Thread Ezequiel Garcia
From: Hertz Wong Add helpers and patch hantro_{drv,v4l2}.c to prepare addition of H264 decoding support. Signed-off-by: Hertz Wong Signed-off-by: Boris Brezillon Tested-by: Philipp Zabel --- Changes in v7: * Comment on the source of the CABAC constant table. * Remove unneeded menu_skip_mask.

[PATCH v7 11/11] media: hantro: Enable H264 decoding on rk3288

2019-08-16 Thread Ezequiel Garcia
From: Hertz Wong Now that the generic bits have been added, we can activate H264 decoding on rk3288. Signed-off-by: Hertz Wong Signed-off-by: Boris Brezillon --- Changes in v7: * None. Changes in v6: * None. Changes in v5: * None. Changes in v4: * None. --- drivers/staging/media/hantro/rk3288

[PATCH v7 10/11] media: hantro: Add support for H264 decoding on G1

2019-08-16 Thread Ezequiel Garcia
From: Hertz Wong Add the G1 specific bits to support H264 decoding. Signed-off-by: Hertz Wong Signed-off-by: Boris Brezillon Tested-by: Philipp Zabel --- Changes from v7: * None. Changes from v6: * None. Changes from v5: * None. Changes from v4: * Update to use pic_size from the H264 private

[PATCH] sched/core: Schedule new worker even if PI-blocked

2019-08-16 Thread Sebastian Andrzej Siewior
If a task is PI-blocked (blocking on sleeping spinlock) then we don't want to schedule a new kworker if we schedule out due to lock contention because !RT does not do that as well. A spinning spinlock disables preemption and a worker does not schedule out on lock contention (but spin). On RT the R

Re: [PATCH v2] ARM: dts: add device tree for Mecer Xtreme Mini S6

2019-08-16 Thread Heiko Stuebner
Am Montag, 12. August 2019, 01:00:13 CEST schrieb Justin Swartz: > The Mecer Xtreme Mini S6 features a Rockchip RK3229 SoC, > 1GB DDR3 RAM, 8GB eMMC, MicroSD port, 10/100Mbps Ethernet, > Realtek 8723BS WLAN module, 2 x USB 2.0 ports, HDMI output, > and S/PDIF output. > > Signed-off-by: Justin Swar

[PATCH] genirq: Force interrupt thread on RT

2019-08-16 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner Force threaded_irqs and optimize the code (force_irqthreads) in regard to this. Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior --- include/linux/interrupt.h |4 kernel/irq/manage.c |2 +- 2 files changed, 5 insertions(+), 1 del

Re: [PATCH v2 0/2] char: tpm: add new driver for tpm i2c ptp

2019-08-16 Thread Alexander Steffen
On 15.08.2019 19:03, Oshri Alkobi wrote: On Thu, Jul 18, 2019 at 8:10 PM Alexander Steffen wrote: On 18.07.2019 14:51, eyal.co...@nuvoton.com wrote: Hi Jarkko and Alexander, We have made an additional code review on the TPM TIS core driver, it looks quite good and we can connect our new I2C

Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote()

2019-08-16 Thread Jan Kara
On Fri 16-08-19 11:52:20, Jerome Glisse wrote: > On Fri, Aug 16, 2019 at 05:44:04PM +0200, Jan Kara wrote: > > On Fri 16-08-19 10:47:21, Vlastimil Babka wrote: > > > On 8/15/19 3:35 PM, Jan Kara wrote: > > > >> > > > >> So when the GUP user uses MMU notifiers to stop writing to pages > > > >> whe

Re: [PATCH 1/7] [RFC] ARM: remove Intel iop33x and iop13xx support

2019-08-16 Thread Aaro Koskinen
Hi, On Fri, Aug 16, 2019 at 04:58:33PM +0100, Russell King - ARM Linux admin wrote: > On Fri, Aug 16, 2019 at 06:42:49PM +0300, Aaro Koskinen wrote: > > On Wed, Aug 14, 2019 at 10:36:01AM +0200, Linus Walleij wrote: > > > On Mon, Aug 12, 2019 at 11:45 AM Martin Michlmayr wrote: > > > > As Arnd po

RE: [PATCH net-next, 2/6] PCI: hv: Add a Hyper-V PCI mini driver for software backchannel interface

2019-08-16 Thread Vitaly Kuznetsov
Haiyang Zhang writes: > > The pci_hyperv can only be loaded on VMs on Hyper-V and Azure. Other > drivers like MLX5e will have symbolic dependency of pci_hyperv if they > use functions exported by pci_hyperv. This dependency will cause other > drivers fail to load on other platforms, like VMs o

Re: cleanup the walk_page_range interface

2019-08-16 Thread Linus Torvalds
On Fri, Aug 16, 2019 at 5:33 AM Christoph Hellwig wrote: > > I see two new walk_page_range user in linux-next related to MADV_COLD > support (which probably really should use walk_range_vma), and then > there is the series from Steven, which hasn't been merged yet. It does sound like this might a

[PATCH v2 2/2] vfs: don't allow writes to swap files

2019-08-16 Thread Darrick J. Wong
From: Darrick J. Wong Don't let userspace write to an active swap file because the kernel effectively has a long term lease on the storage and things could get seriously corrupted if we let this happen. Signed-off-by: Darrick J. Wong --- v2: add missing inode_drain_writes --- fs/block_dev.c

Re: [PATCH v2 08/10] vfio_pci: Loop using PCI_STD_NUM_BARS

2019-08-16 Thread Alex Williamson
On Fri, 16 Aug 2019 12:24:35 +0300 Denis Efremov wrote: > Refactor loops to use 'i < PCI_STD_NUM_BARS' instead of > 'i <= PCI_STD_RESOURCE_END'. > > Signed-off-by: Denis Efremov > --- > drivers/vfio/pci/vfio_pci.c | 11 +++ > drivers/vfio/pci/vfio_pci_config.c | 10 ++

Re: [PATCH -rcu dev 3/3] RFC: rcu/tree: Read dynticks_nmi_nesting in advance

2019-08-16 Thread Joel Fernandes
On Thu, Aug 15, 2019 at 10:53:11PM -0400, Joel Fernandes (Google) wrote: > I really cannot explain this patch, but without it, the "else if" block > just doesn't execute thus causing the tick's dep mask to not be set and > causes the tick to be turned off. > > I tried various _ONCE() macros but th

Re: [PATCH 1/1] Fix: trace sched switch start/stop racy updates

2019-08-16 Thread Steven Rostedt
On Fri, 16 Aug 2019 10:26:43 -0400 Mathieu Desnoyers wrote: > Reading the sched_cmdline_ref and sched_tgid_ref initial state within > tracing_start_sched_switch without holding the sched_register_mutex is > racy against concurrent updates, which can lead to tracepoint probes > being registered mo

Re: [PATCH V5 2/2] genirq/affinity: Spread vectors on node according to nr_cpu ratio

2019-08-16 Thread Ming Lei
On Fri, Aug 16, 2019 at 11:56 PM Keith Busch wrote: > > On Thu, Aug 15, 2019 at 07:28:49PM -0700, Ming Lei wrote: > > Now __irq_build_affinity_masks() spreads vectors evenly per node, and > > all vectors may not be spread in case that each numa node has different > > CPU number, then the warning i

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-16 Thread Alexandre Belloni
On 16/08/2019 10:50:49-0500, Li Yang wrote: > On Fri, Aug 16, 2019 at 3:05 AM Alexandre Belloni > wrote: > > > > On 16/08/2019 10:46:36+0800, Biwen Li wrote: > > > Issue: > > > - # hwclock -w > > > hwclock: RTC_SET_TIME: Invalid argument > > > > > > Why: > > > - Relative patch: https

RE: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-16 Thread Luck, Tony
>> + * The defined symbol names have the following form: >> + * INTEL_FAM6{OPTFAMILY}_{MICROARCH}{OPTDIFF} > > I think you want to have the underscores in the template: > > INTEL_FAM6_{OPTFAMILY}_{MICROARCH}_{OPTDIFF} > > but no need to resend if this is the only issue - I'll fix it up when

Re: [RFC PATCH v2 4/5] hugetlb_cgroup: Add accounting for shared mappings

2019-08-16 Thread Mike Kravetz
On 8/15/19 4:04 PM, Mina Almasry wrote: > On Wed, Aug 14, 2019 at 9:46 AM Mike Kravetz wrote: >> >> On 8/13/19 4:54 PM, Mike Kravetz wrote: >>> On 8/8/19 4:13 PM, Mina Almasry wrote: For shared mappings, the pointer to the hugetlb_cgroup to uncharge lives in the resv_map entries, in file

Re: [GIT PULL] Power management fixes for v5.3-rc5

2019-08-16 Thread pr-tracker-bot
The pull request you sent on Fri, 16 Aug 2019 15:11:27 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-5.3-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2d63ba3e41db3ceb0d23924ed2879b910276e24c Thank you! -- Deet-doot-dot, I am a b

Re: [GIT PULL] sound fixes for 5.3-rc5

2019-08-16 Thread pr-tracker-bot
The pull request you sent on Fri, 16 Aug 2019 11:17:54 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-5.3-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cfa0bb2aef998a64d5ad2c065be8511ad98d5d79 Thank you! -- Deet-doot-dot, I

Re: [git pull] drm fixes for 5.3-rc5

2019-08-16 Thread pr-tracker-bot
The pull request you sent on Fri, 16 Aug 2019 14:21:56 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2019-08-16 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ec037ac244c070f9eedcdf5cdb23bd817e7b8cf4 Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [GIT PULL]: dmaengine fixes for v5.3-rc5

2019-08-16 Thread pr-tracker-bot
The pull request you sent on Fri, 16 Aug 2019 15:16:28 +0530: > git://git.infradead.org/users/vkoul/slave-dma.git tags/dmaengine-fix-5.3-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9da5bb24bb368567a43ac2df0e108e43d80f3564 Thank you! -- Deet-doot-dot, I am a b

[GIT PULL 2/3] ARM: samsung: mach for v5.4

2019-08-16 Thread Krzysztof Kozlowski
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-soc-5.4 for you to fetch changes up to 1fa70c7f49132513

[GIT PULL 3/3] ARM: dts: exynos: DT for v5.4

2019-08-16 Thread Krzysztof Kozlowski
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-dt-5.4 for you to fetch changes up to bfb77169306d5d560

[GIT PULL 1/3] soc: samsung: Exynos for v5.4

2019-08-16 Thread Krzysztof Kozlowski
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-drivers-5.4 for you to fetch changes up to 40d8aff614f7

Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote()

2019-08-16 Thread Jason Gunthorpe
On Fri, Aug 16, 2019 at 06:13:55PM +0200, Jan Kara wrote: > > For 3 we do not need to take a reference at all :) So just forget about 3 > > it does not exist. For 3 the reference is the reference the CPU page table > > has on the page and that's it. GUP is no longer involve in ODP or anything > >

[PATCH net-next 0/3] Improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-16 Thread Hubert Feurstein
With this patchset the phc2sys synchronisation precision improved to +/-555ns on an IMX6DL with an MV88E6220 switch attached. This patchset takes into account the comments from the following discussions: - https://lkml.org/lkml/2019/8/2/1364 - https://lkml.org/lkml/2019/8/5/169 Patch 01 adds the

[PATCH net-next 2/3] net: dsa: mv88e6xxx: extend PTP gettime function to read system clock

2019-08-16 Thread Hubert Feurstein
This adds support for the PTP_SYS_OFFSET_EXTENDED ioctl. Signed-off-by: Hubert Feurstein --- drivers/net/dsa/mv88e6xxx/chip.h | 2 ++ drivers/net/dsa/mv88e6xxx/ptp.c | 11 +++ drivers/net/dsa/mv88e6xxx/smi.c | 3 ++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/dri

[PATCH net-next 3/3] net: fec: add support for PTP system timestamping for MDIO devices

2019-08-16 Thread Hubert Feurstein
In order to improve the synchronisation precision of phc2sys (from the linuxptp project) for devices like switches which are attached to the MDIO bus, it is necessary the get the system timestamps as close as possible to the access which causes the PTP timestamp register to be snapshotted in the sw

[PATCH net-next 1/3] net: mdio: add support for passing a PTP system timestamp to the mii_bus driver

2019-08-16 Thread Hubert Feurstein
In order to improve the synchronisation precision of phc2sys (from the linuxptp project) for devices like switches which are attached to the MDIO bus, it is necessary the get the system timestamps as close as possible to the access which causes the PTP timestamp register to be snapshotted in the sw

RE: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-16 Thread David Laight
From: Luck, Tony > Sent: 16 August 2019 17:29 > >> + * The defined symbol names have the following form: > >> + *INTEL_FAM6{OPTFAMILY}_{MICROARCH}{OPTDIFF} > > > > I think you want to have the underscores in the template: > > > > INTEL_FAM6_{OPTFAMILY}_{MICROARCH}_{OPTDIFF} > > > > but

Re: [RFC PATCH v2 4/5] hugetlb_cgroup: Add accounting for shared mappings

2019-08-16 Thread Mike Kravetz
On 8/15/19 4:08 PM, Mina Almasry wrote: > On Tue, Aug 13, 2019 at 4:54 PM Mike Kravetz wrote: >>> mm/hugetlb.c | 208 +-- >>> 1 file changed, 170 insertions(+), 38 deletions(-) >>> >>> diff --git a/mm/hugetlb.c b/mm/hugetlb.c >>> index 235996aef6618

Re: [PATCH v4 1/2] rcu/tree: Add basic support for kfree_rcu() batching

2019-08-16 Thread Paul E. McKenney
Hello, Joel, I reworked the commit log as follows, but was then unsuccessful in working out which -rcu commit to apply it to. Could you please tell me what commit to apply this to? (Once applied, git cherry-pick is usually pretty good about handling minor conflicts.)

Re: [PATCH] powerpc/vdso32: Add support for CLOCK_{REALTIME/MONOTONIC}_COARSE

2019-08-16 Thread Segher Boessenkool
On Fri, Aug 16, 2019 at 01:01:50PM +, Christophe Leroy wrote: > - add r3,r3,r5 > +78: add r3,r3,r5 You can use actual names for the labels as well... .Lsomething if you want it to stay a local symbol only. Segher

Re: [PATCH 1/1] Fix: trace sched switch start/stop racy updates

2019-08-16 Thread Valentin Schneider
On 16/08/2019 17:25, Steven Rostedt wrote: >> Also, write and read to/from those variables should be done with >> WRITE_ONCE() and READ_ONCE(), given that those are read within tracing >> probes without holding the sched_register_mutex. >> > > I understand the READ_ONCE() but is the WRITE_ONCE() t

[PATCH] gpio: of: fix Freescale SPI CS quirk handling

2019-08-16 Thread Andreas Kemnade
On the gta04 we see: spi_gpio: probe of spi_lcd failed with error -2 The quirk introduced in commit e3023bf80639 ("gpio: of: Handle the Freescale SPI CS") can also be triggered by a temporary -EPROBE_DEFER and so "convert" it to a hard -ENOENT. Disable that conversion by checking for -EPROBE_DEFE

[PATCH] serial: 8250_pci: Merge 8250_moxa to 8250_pci

2019-08-16 Thread Kai-Heng Feng
Moxa serial boards only need a special setup function, we can use generic 8250 framework for other parts. So let's merge 8250_moxa to 8250_pci. Signed-off-by: Kai-Heng Feng --- drivers/tty/serial/8250/8250_moxa.c | 155 drivers/tty/serial/8250/8250_pci.c | 113

Re: [PATCH -rcu dev 3/3] RFC: rcu/tree: Read dynticks_nmi_nesting in advance

2019-08-16 Thread Paul E. McKenney
On Fri, Aug 16, 2019 at 12:24:04PM -0400, Joel Fernandes wrote: > On Thu, Aug 15, 2019 at 10:53:11PM -0400, Joel Fernandes (Google) wrote: > > I really cannot explain this patch, but without it, the "else if" block > > just doesn't execute thus causing the tick's dep mask to not be set and > > caus

Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote()

2019-08-16 Thread Jerome Glisse
On Fri, Aug 16, 2019 at 06:13:55PM +0200, Jan Kara wrote: > On Fri 16-08-19 11:52:20, Jerome Glisse wrote: > > On Fri, Aug 16, 2019 at 05:44:04PM +0200, Jan Kara wrote: > > > On Fri 16-08-19 10:47:21, Vlastimil Babka wrote: > > > > On 8/15/19 3:35 PM, Jan Kara wrote: > > > > >> > > > > >> So when

Re: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-16 Thread Arul Jeniston
Hi tglx, Thank you for your comments. Please find my commend in-lined On Fri, Aug 16, 2019 at 4:15 PM Thomas Gleixner wrote: > > Arul, > > On Fri, 16 Aug 2019, Arul Jeniston wrote: > > > Subject: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read > > function. > > The prefix is no

Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end()

2019-08-16 Thread Jason Gunthorpe
On Fri, Aug 16, 2019 at 06:36:52PM +0200, Daniel Vetter wrote: > On Fri, Aug 16, 2019 at 4:38 PM Jason Gunthorpe wrote: > > > > On Fri, Aug 16, 2019 at 04:11:34PM +0200, Daniel Vetter wrote: > > > Also, aside from this patch (which is prep for the next) and some > > > simple reordering conflicts t

Re: [PATCH v21 24/28] selftests/x86: Add a selftest for SGX

2019-08-16 Thread Jarkko Sakkinen
On Wed, Jul 17, 2019 at 03:37:03PM -0700, Xing, Cedric wrote: > > +$(TEST_CUSTOM_PROGS): $(OUTPUT)/main.o $(OUTPUT)/sgx_call.o \ > > + $(OUTPUT)/encl_piggy.o > > + $(CC) $(HOST_CFLAGS) -o $@ $^ > > + > > +$(OUTPUT)/main.o: main.c > > + $(CC) $(HOST_CFLAGS) -c $< -o $@ > > .o fi

Re: [PATCH V5 2/2] genirq/affinity: Spread vectors on node according to nr_cpu ratio

2019-08-16 Thread Derrick, Jonathan
On Fri, 2019-08-16 at 09:53 -0600, Keith Busch wrote: > On Thu, Aug 15, 2019 at 07:28:49PM -0700, Ming Lei wrote: > > Now __irq_build_affinity_masks() spreads vectors evenly per node, and > > all vectors may not be spread in case that each numa node has different > > CPU number, then the warning in

Re: [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150

2019-08-16 Thread Stephen Boyd
Quoting Vinod Koul (2019-08-15 21:24:40) > On 14-08-19, 10:19, Stephen Boyd wrote: > > Quoting Vinod Koul (2019-08-14 05:29:58) > > > Add support for rpmh clocks found in SM8150 > > > > > > Signed-off-by: Vinod Koul > > > --- > > > > Patch looks OK, but can you convert this driver to use the new

Re: [Freedreno] [PATCH v3 0/2] iommu/arm-smmu: Split pagetable support

2019-08-16 Thread Robin Murphy
Hi Jordan, On 15/08/2019 16:33, Jordan Crouse wrote: On Wed, Aug 07, 2019 at 04:21:38PM -0600, Jordan Crouse wrote: (Sigh, resend. I freaked out my SMTP server) This is part of an ongoing evolution for enabling split pagetable support for arm-smmu. Previous versions can be found [1]. In the d

Re: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-16 Thread Arul Jeniston
Adding few more data points... On Fri, Aug 16, 2019 at 10:25 PM Arul Jeniston wrote: > > Hi tglx, > > Thank you for your comments. > Please find my commend in-lined > > On Fri, Aug 16, 2019 at 4:15 PM Thomas Gleixner wrote: > > > > Arul, > > > > On Fri, 16 Aug 2019, Arul Jeniston wrote: > > > >

Re: [PATCH 1/2] clk: aspeed: Move structures to header

2019-08-16 Thread Stephen Boyd
Quoting Joel Stanley (2019-08-16 08:58:05) > diff --git a/drivers/clk/clk-aspeed.h b/drivers/clk/clk-aspeed.h > new file mode 100644 > index ..92d384367c25 > --- /dev/null > +++ b/drivers/clk/clk-aspeed.h > @@ -0,0 +1,74 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > +/* > + *

Re: [PATCH 3/3] soc: fsl: FSL_MC_DPIO selects directly FSL_GUTS

2019-08-16 Thread Li Yang
On Fri, Aug 16, 2019 at 9:59 AM Roy Pledge wrote: > > On 8/15/2019 7:09 PM, Li Yang wrote: > > On Wed, Jul 3, 2019 at 9:58 AM Ioana Ciornei wrote: > >> Make FSL_MC_DPIO select directly FSL_GUTS. Without this change we could > >> be in a situation where both FSL_MC_DPIO and SOC_BUS are enabled but

Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote()

2019-08-16 Thread Jason Gunthorpe
On Fri, Aug 16, 2019 at 12:54:45PM -0400, Jerome Glisse wrote: > > Yes, I understand. But the fact is that GUP calls are currently still there > > e.g. in ODP code. If you can make the code work without taking a page > > reference at all, I'm only happy :) > > Already in rdma next AFAIK so in 5.4

Re: [PATCH v2 -rcu dev 2/3] rcu/tree: Fix issue where sometimes rcu_urgent_qs is not set on IPI

2019-08-16 Thread Paul E. McKenney
On Thu, Aug 15, 2019 at 10:59:14PM -0400, Joel Fernandes (Google) wrote: > Sometimes I see rcu_urgent_qs is not set. This could be when the last > IPI was a long time ago, however, the grace period just started. Set > rcu_urgent_qs so the tick can indeed not be stopped. > > Signed-off-by: Joel Fer

Re: [PATCH 1/1] Fix: trace sched switch start/stop racy updates

2019-08-16 Thread Steven Rostedt
On Fri, 16 Aug 2019 17:48:59 +0100 Valentin Schneider wrote: > On 16/08/2019 17:25, Steven Rostedt wrote: > >> Also, write and read to/from those variables should be done with > >> WRITE_ONCE() and READ_ONCE(), given that those are read within tracing > >> probes without holding the sched_registe

Re: [PATCH -rcu dev 3/3] RFC: rcu/tree: Read dynticks_nmi_nesting in advance

2019-08-16 Thread Joel Fernandes
On Fri, Aug 16, 2019 at 09:52:42AM -0700, Paul E. McKenney wrote: > On Fri, Aug 16, 2019 at 12:24:04PM -0400, Joel Fernandes wrote: > > On Thu, Aug 15, 2019 at 10:53:11PM -0400, Joel Fernandes (Google) wrote: > > > I really cannot explain this patch, but without it, the "else if" block > > > just d

Re: [PATCH v4 1/3] kasan: support backing vmalloc space with real shadow memory

2019-08-16 Thread Mark Rutland
Hi Christophe, On Fri, Aug 16, 2019 at 09:47:00AM +0200, Christophe Leroy wrote: > Le 15/08/2019 à 02:16, Daniel Axtens a écrit : > > Hook into vmalloc and vmap, and dynamically allocate real shadow > > memory to back the mappings. > > > > Most mappings in vmalloc space are small, requiring less

Re: [PATCH v1 01/63] Input: introduce input_mt_report_slot_inactive

2019-08-16 Thread Dmitry Torokhov
Hi Jiada, On Fri, Aug 16, 2019 at 05:28:50PM +0900, Jiada Wang wrote: > input_mt_report_slot_state() ignores the tool when the slot is closed. > which has caused a bit of confusion. > This patch introduces input_mt_report_slot_inactive() to report slot > inactive state. > replaces all input_mt_rep

Re: [PATCH V3 0/3] riscv: Add perf callchain support

2019-08-16 Thread Paul Walmsley
Hello Mao Han, On Fri, 17 May 2019, Mao Han wrote: > This patch set add perf callchain(FP/DWARF) support for RISC-V. > It comes from the csky version callchain support with some > slight modifications. The patchset base on Linux 5.1. > > CC: Palmer Dabbelt > CC: linux-riscv > CC: Christoph Hel

Re: [PATCH 2/2] clk: Add support for AST2600 SoC

2019-08-16 Thread Stephen Boyd
Quoting Joel Stanley (2019-08-16 08:58:06) > diff --git a/drivers/clk/clk-ast2600.c b/drivers/clk/clk-ast2600.c > new file mode 100644 > index ..083d5299238c > --- /dev/null > +++ b/drivers/clk/clk-ast2600.c > @@ -0,0 +1,701 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +// Copyr

<    1   2   3   4   5   6   7   8   9   >