Re: [PATCH 02/10] mm/hmm: do not erase snapshot when a range is invalidated

2019-02-20 Thread John Hubbard
On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse Users of HMM might be using the snapshot information to do preparatory step like dma mapping pages to a device before checking for invalidation through hmm_vma_range_done() so do not erase that information and assume users will d

Re: [PATCH 1/6] lib/string: Enable string selftesting

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > Currently we have a test module but it is not tied into the kselftest > infrastructure. In preparation for adding string manipulation functions > and testing we should enable kselftest to utilize the test module. > > Enable string testin

[PATCH v2 4/4] media: imx: Don't register IPU subdevs/links if CSI port missing

2019-02-20 Thread Steve Longerbeam
The second IPU internal sub-devices were being registered and links to them created even when the second IPU is not present. This is wrong for i.MX6 S/DL and i.MX53 which have only a single IPU. Fixes: e130291212df5 ("[media] media: Add i.MX media core driver") Signed-off-by: Steve Longerbeam Re

[PATCH v2 3/4] media: imx: Rename functions that add IPU-internal subdevs

2019-02-20 Thread Steve Longerbeam
For the functions that add and remove the internal IPU subdevice descriptors, rename them to make clear they are the subdevs internal to the IPU. Also rename the platform data structure for the internal IPU subdevices. No functional changes. Signed-off-by: Steve Longerbeam Acked-by: Philipp Zabel

[PATCH v2 2/4] media: imx: Clear fwnode link struct for each endpoint iteration

2019-02-20 Thread Steve Longerbeam
In imx_media_create_csi_of_links(), the 'struct v4l2_fwnode_link' must be cleared for each endpoint iteration, otherwise if the remote port has no "reg" property, link.remote_port will not be reset to zero. This was discovered on the i.MX53 SMD board, since the OV5642 connects directly to ipu1_csi0

[PATCH v2 1/4] media: imx: csi: Allow unknown nearest upstream entities

2019-02-20 Thread Steve Longerbeam
On i.MX6, the nearest upstream entity to the CSI can only be the CSI video muxes or the Synopsys DW MIPI CSI-2 receiver. However the i.MX53 has no CSI video muxes or a MIPI CSI-2 receiver. So allow for the nearest upstream entity to the CSI to be something other than those. Fixes: bf3cfaa712e5c (

Re: [PATCH 01/10] mm/hmm: use reference counting for HMM struct

2019-02-20 Thread John Hubbard
On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse Every time i read the code to check that the HMM structure does not vanish before it should thanks to the many lock protecting its removal i get a headache. Switch to reference counting instead it is much easier to follow and har

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-20 Thread Kostya Serebryany
On Wed, Feb 20, 2019 at 2:12 PM Kostya Serebryany wrote: > > On Wed, Feb 20, 2019 at 1:40 PM Arnd Bergmann wrote: > > > > On Wed, Feb 20, 2019 at 10:13 PM Arnd Bergmann wrote: > > > > > > In the example in https://bugs.llvm.org/show_bug.cgi?id=38809#c12 > > > (https://godbolt.org/z/ylsGSQ) there

Re: [PATCH v1] Bluetooth: hci_qca: Update baudrate change wait time for wcn3990

2019-02-20 Thread Matthias Kaehlcke
Hi Balakrishna, On Wed, Feb 20, 2019 at 04:55:16PM +0530, Balakrishna Godavarthi wrote: > This patch will update the baudrate change request wait time from > 300 ms to 100 ms. When host sends the change baudrate request to > the controller, controller sets its clock and wait until the > clocks set

Re: [Xen-devel] [PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-20 Thread Marek Marczykowski-Górecki
On Wed, Feb 20, 2019 at 08:15:30PM +, Joao Martins wrote: > 2. PV Driver support (patches 17 - 39) > > We start by redirecting hypercalls from the backend to routines > which emulate the behaviour that PV backends expect i.e. grant > table and interdomain events. Next, we add support for l

Re: [PATCH 00/10] HMM updates for 5.1

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 03:17:58PM -0800, John Hubbard wrote: > On 1/29/19 8:54 AM, jgli...@redhat.com wrote: > > From: Jérôme Glisse > > > > This patchset improves the HMM driver API and add support for hugetlbfs > > and DAX mirroring. The improvement motivation was to make the ODP to HMM > > co

[PATCH v3 3/3] drm/v3d: Make sure the GPU is on when measuring clocks.

2019-02-20 Thread Eric Anholt
You'll get garbage measurements if the registers always read back 0xdeadbeef Signed-off-by: Eric Anholt --- drivers/gpu/drm/v3d/v3d_debugfs.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/v3d/v3d_debugfs.c b/drivers/gpu/drm/v3d/v3d_debugfs.c index eb2b2d2f8553..a24

[PATCH v3 1/3] drm/v3d: Add support for V3D v4.2.

2019-02-20 Thread Eric Anholt
No compatible string for it yet, just the version-dependent changes. They've now tied the hub and the core interrupt lines into a single interrupt line coming out of the block. It also turns out I made a mistake in modeling the V3D v3.3 and v4.1 bridge as a part of V3D itself -- the bridge is goin

[PATCH v3 2/3] drm/v3d: Don't try to set OVRTMUOUT on V3D 4.x.

2019-02-20 Thread Eric Anholt
The old field is gone and the register now has a different field, QRMAXCNT for how many TMU requests get serviced before thread switch. We were accidentally reducing it from its default of 0x3 (4 requests) to 0x0 (1). v2: Skip setting the reg at all on 4.x, instead of trying to update only the

RECRUTEMENT ACTION AGAINST HUNGER CANADA

2019-02-20 Thread ACTION CONTRE LA FAIM MONTRÉAL
ACTION AGAINST HUNGER CANADA(ACF-États-Unis-CANADA) pour le développement international Siège Social: 304 Rue Saint Antoine E, Montréal, QC H2Y 1A3, Canada ÉMAIL: direction...@gmail.com PROGRAMME DE RECRUTEMENT ACTION AGAINST HUNGER CANADA Bonjour Cher citoyen, Dans le cadre de lutter cont

Re: [PATCH] sysctl: Fix proc_do_large_bitmap for large input buffers

2019-02-20 Thread Eric Sandeen
Here's a pretty hacky test script to test this code via ip_local_reserved_ports - #!/bin/bash # Randomly construct well-formed (sequential, non-overlapping) # input for ip_local_reserved_ports, feed it to the sysctl, # then read it back and check for differences. # Port range to use PORT_ST

Re: [PATCH v1 00/12] qcom: dts: thermal cleanups

2019-02-20 Thread Eduardo Valentin
On Wed, Feb 20, 2019 at 03:09:36PM +0530, Amit Kucheria wrote: > On Wed, Feb 20, 2019 at 6:56 AM Eduardo Valentin wrote: > > > > Hey > > On Mon, Feb 18, 2019 at 06:05:14PM +0530, Amit Kucheria wrote: > > > - Expose all temperature sensors on msm8916, msm996, msm8998, sdm845 > > > - split up the re

[PATCH] sysctl: Fix proc_do_large_bitmap for large input buffers

2019-02-20 Thread Eric Sandeen
Today, proc_do_large_bitmap() truncates a large write input buffer to PAGE_SIZE - 1, which may result in misparsed numbers at the (truncated) end of the buffer. Further, it fails to notify the caller that the buffer was truncated, so it doesn't get called iteratively to finish the entire input buf

Re: [PATCH 0/6] lib: Add safe string funtions

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > During your talk at LCA you mentioned that we could do with a couple > more safe string functions. One to zero the tail of the destination > buffer after call to strscpy() and also the self explanatory > strscpy_from_user(). Thanks for ju

Re: ext4 corruption on alpha with 4.20.0-09062-gd8372ba8ce28

2019-02-20 Thread Meelis Roos
First, I found out that both the problematic alphas had memory compaction and page migration and bounce buffers turned on, and working alphas had them off. Next, turing off these options makes the problematic alphas work. OK, thanks for testing! Can you narrow down whether the problem is due to

Re: [PATCH 1/2] doc: translations: sync translations 'remove info about -git patches'

2019-02-20 Thread SeongJae Park
Hello, On Thu, Feb 21, 2019 at 8:03 AM Federico Vaga wrote: > > Synchonise translations: CN, IT, JP, KR > > commit 2c71d305caf9 ("docs: process: Remove outdated info about -git patches") > > I can guarantee for the Italian translations, but since we are removing > an entire chapter I think I did

Re: [PATCH 00/10] HMM updates for 5.1

2019-02-20 Thread John Hubbard
On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse This patchset improves the HMM driver API and add support for hugetlbfs and DAX mirroring. The improvement motivation was to make the ODP to HMM conversion easier [1]. Because we have nouveau bits schedule for 5.1 and to avoid an

Re: [PATCH 10/10] mm/hmm: add helpers for driver to safely take the mmap_sem

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 02:40:20PM -0800, John Hubbard wrote: > On 2/20/19 2:19 PM, Jerome Glisse wrote: > > On Wed, Feb 20, 2019 at 01:59:13PM -0800, John Hubbard wrote: > > > On 1/29/19 8:54 AM, jgli...@redhat.com wrote: > > > > From: Jérôme Glisse > > > > > > > > The device driver context whic

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-20 Thread Palmer Dabbelt
On Wed, 20 Feb 2019 06:20:48 PST (-0800), yury.no...@gmail.com wrote: On Wed, Feb 20, 2019 at 03:52:36PM +0200, Andy Shevchenko wrote: On Wed, Feb 20, 2019 at 03:51:01PM +0200, Andy Shevchenko wrote: > On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > > test_bitmap_parselist currentl

Re: [PATCH -next] platform/chrome: Fix Kconfig dependencies for wilco_ec

2019-02-20 Thread Randy Dunlap
On 2/20/19 2:11 PM, Nick Crews wrote: > In the initial version of the Wilco EC Driver, the > dependency order was wrong. It before was possible to > select CONFIG_WILCO_EC and CONFIG_CROS_EC_LPC without > having CONFIG_CROS_EC_LPC_MEC. This was wrong, since > WILCO_EC depends upon CONFIG CROS_EC_LP

Re: [PATCH] regulator: axp20x: Get rid of AXP20X_xxx_START/END/STEPS defines

2019-02-20 Thread Olliver Schinagl
Hey Axel, On February 20, 2019 5:50:13 PM GMT+01:00, Axel Lin wrote: >The AXP20X_xxx_START/END/STEPS defines make the code hard to read and >very hard to check the linear range settings because it needs to check >the defines one-by-one. >The original code without the defines is very good in reada

question about page tables in DAX/FS/PMEM case

2019-02-20 Thread Larry Bassel
I'm working on sharing page tables in the DAX/XFS/PMEM/PMD case. If multiple processes would use the identical page of PMDs corresponding to a 1 GiB address range of DAX/XFS/PMEM/PMDs, presumably one can instead of populating a new PUD, just atomically increment a refcount and point to the same PU

[PATCH 2/2] doc: process: complete removal of info about -git patches

2019-02-20 Thread Federico Vaga
The following patch forgot to remove a reference to the -git patches commit 2c71d305caf9 ("docs: process: Remove outdated info about -git patches") This patch complete the removal and update all translations Signed-off-by: Federico Vaga --- Documentation/process/howto.rst|

[PATCH 1/2] doc: translations: sync translations 'remove info about -git patches'

2019-02-20 Thread Federico Vaga
Synchonise translations: CN, IT, JP, KR commit 2c71d305caf9 ("docs: process: Remove outdated info about -git patches") I can guarantee for the Italian translations, but since we are removing an entire chapter I think I did it right also for the other languages. Signed-off-by: Federico Vaga ---

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-20 Thread H. Peter Anvin
On 2/19/19 4:48 AM, Will Deacon wrote: > > I think you'll still hate this, but could we not disable preemption during > the uaccess-enabled region, re-enabling it on the fault path after we've > toggled uaccess off and disable it again when we return back to the > uaccess-enabled region? Doesn't h

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 11:44 PM Keith Busch wrote: > > On Wed, Feb 20, 2019 at 11:21:45PM +0100, Rafael J. Wysocki wrote: > > On Wed, Feb 20, 2019 at 11:11 PM Dave Hansen wrote: > > > On 2/20/19 2:02 PM, Rafael J. Wysocki wrote: > > > >> diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/hmat

[PATCH] doc: fix typos in license-rules.rst

2019-02-20 Thread Federico Vaga
The patches fixes some typos in process/license-rules.rst Signed-off-by: Federico Vaga --- Documentation/process/license-rules.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/process/license-rules.rst b/Documentation/process/license-rules.rst index 2bb8

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-20 Thread Keith Busch
On Wed, Feb 20, 2019 at 11:21:45PM +0100, Rafael J. Wysocki wrote: > On Wed, Feb 20, 2019 at 11:11 PM Dave Hansen wrote: > > On 2/20/19 2:02 PM, Rafael J. Wysocki wrote: > > >> diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/hmat/Kconfig > > >> index c9637e2e7514..08e972ead159 100644 > > >>

Re: [PATCH 10/10] mm/hmm: add helpers for driver to safely take the mmap_sem

2019-02-20 Thread John Hubbard
On 2/20/19 2:19 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 01:59:13PM -0800, John Hubbard wrote: On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse The device driver context which holds reference to mirror and thus to core hmm struct might outlive the mm against which it

[PATCH] drm/rockchip: vop: reset scale mode when win is disabled

2019-02-20 Thread Jonas Karlman
NV12 framebuffers produced by the VPU shows distorted on RK3288 after win has been disabled when scaling is active. This issue can be reproduced using a 1080p modeset by: - Scale a 1280x720 NV12 framebuffer to 1920x1080 on win0 - Disable win0 - Display a 1920x1080 NV12 framebuffer without scaling

Re: [PATCH] MAINTAINERS: add linux-security-module mailing list to TPM drivers

2019-02-20 Thread Jerry Snitselaar
On Thu Feb 21 19, James Morris wrote: On Wed, 20 Feb 2019, Jarkko Sakkinen wrote: > being cc'd to linux-security-module? Looking back at > recent patches, it looked like it was a general request. > If it is, I'll be more likely to remember if get_maintainers.pl > brings it up. :) I'm all open

Re: [GIT PULL] One 5.0 docs fix

2019-02-20 Thread pr-tracker-bot
The pull request you sent on Wed, 20 Feb 2019 14:08:59 -0700: > git://git.lwn.net/linux.git tags/docs-5.0-fix has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f6163d67cc31b8f2a946c4df82be3c6dd918412d Thank you! -- Deet-doot-dot, I am a bot. https://korg.wiki.kernel.or

Re: [PATCH v2] phy: phy-twl4030-usb: fix denied runtime access

2019-02-20 Thread Tony Lindgren
* Andreas Kemnade [180922 09:48]: > When runtime is not enabled, pm_runtime_get_sync() returns -EACCESS, > the counter will be incremented but the resume callback not called, > so enumeration and charging will not start properly. > To avoid that happen, disable irq on suspend and recheck on resume

Re: [PATCH 1/1] RDMA/odp: convert to use HMM for ODP

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 10:20:27PM +, Jason Gunthorpe wrote: > On Tue, Feb 12, 2019 at 11:11:24AM -0500, Jerome Glisse wrote: > > This is what serialize programming the hw and any concurrent CPU page > > table invalidation. This is also one of the thing i want to improve > > long term as mlx5_i

Re: [PATCH] clk: samsung: s3c2443: Mark expected switch fall-through

2019-02-20 Thread Kees Cook
On Fri, Feb 15, 2019 at 4:34 PM Stephen Boyd wrote: > Quoting Kees Cook (2019-02-12 10:57:05) > > On Mon, Feb 11, 2019 at 11:41 PM Krzysztof Kozlowski > > wrote: > > > > > > It is just the GCC which has to be fixed not the code. You want to > > > adjust the code for specific version of GCC and w

Re: [PATCH 5/5] iio:potentiostat:lmp91000: add '\n' on dev_err

2019-02-20 Thread Joe Perches
On Wed, 2019-02-20 at 09:49 +, Jonathan Cameron wrote: > On Mon, 18 Feb 2019 13:01:23 -0800 Joe Perches wrote: > > On Mon, 2019-02-18 at 14:22 -0300, Lucas Oshiro wrote: > > > Add missing '\n' at the end of dev_err message on line 215. > > [] > > > diff --git a/drivers/iio/potentiostat/lmp91

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 11:11 PM Dave Hansen wrote: > > On 2/20/19 2:02 PM, Rafael J. Wysocki wrote: > >> diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/hmat/Kconfig > >> index c9637e2e7514..08e972ead159 100644 > >> --- a/drivers/acpi/hmat/Kconfig > >> +++ b/drivers/acpi/hmat/Kconfig > >> @

Re: [PATCH 1/1] RDMA/odp: convert to use HMM for ODP

2019-02-20 Thread Jason Gunthorpe
On Tue, Feb 12, 2019 at 11:11:24AM -0500, Jerome Glisse wrote: > This is what serialize programming the hw and any concurrent CPU page > table invalidation. This is also one of the thing i want to improve > long term as mlx5_ib_update_xlt() can do memory allocation and i would > like to avoid that

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-20 Thread Dan Williams
On Wed, Feb 20, 2019 at 2:17 PM Rafael J. Wysocki wrote: > > On Wed, Feb 20, 2019 at 11:14 PM Dan Williams > wrote: > > > > On Wed, Feb 20, 2019 at 2:11 PM Dave Hansen wrote: > > > > > > On 2/20/19 2:02 PM, Rafael J. Wysocki wrote: > > > >> diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/

Re: [PATCH 10/10] mm/hmm: add helpers for driver to safely take the mmap_sem

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 01:59:13PM -0800, John Hubbard wrote: > On 1/29/19 8:54 AM, jgli...@redhat.com wrote: > > From: Jérôme Glisse > > > > The device driver context which holds reference to mirror and thus to > > core hmm struct might outlive the mm against which it was created. To > > avoid e

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 11:14 PM Dan Williams wrote: > > On Wed, Feb 20, 2019 at 2:11 PM Dave Hansen wrote: > > > > On 2/20/19 2:02 PM, Rafael J. Wysocki wrote: > > >> diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/hmat/Kconfig > > >> index c9637e2e7514..08e972ead159 100644 > > >> --- a/dr

Re: [PATCH v8 4/7] cgroup: cgroup v2 freezer

2019-02-20 Thread Roman Gushchin
On Wed, Feb 20, 2019 at 03:42:02PM +0100, Oleg Nesterov wrote: > On 02/19, Roman Gushchin wrote: > > > > @@ -2065,6 +2066,7 @@ static void ptrace_stop(int exit_code, int why, int > > clear_code, kernel_siginfo_t > > preempt_disable(); > > read_unlock(&tasklist_lock); > >

[PATCH] irqchip: brcmstb-l2: use _irqsave variants in non-interrupt code

2019-02-20 Thread Florian Fainelli
From: Doug Berger Using the irq_gc_lock/irq_gc_unlock functions in the suspend and resume functions creates the opportunity for a deadlock during suspend, resume, and shutdown. Using the irq_gc_lock_irqsave/ irq_gc_unlock_irqrestore variants prevents this possible deadlock. Signed-off-by: Doug B

Re: [PATCH -next] platform/chrome: Fix off-by-one error in wilco_ec/debugfs.c

2019-02-20 Thread Nick Crews
Hi Enric, On Wed, Feb 20, 2019 at 3:06 PM Enric Balletbo i Serra wrote: > > Hi Nick, > > Thanks for the patch. > > On 20/2/19 22:58, Nick Crews wrote: > > Before, in debugfs.c it was possible to supply only the message type, > > and not supply any other arguments when sending raw commands. Howeve

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-20 Thread Dan Williams
On Wed, Feb 20, 2019 at 2:11 PM Dave Hansen wrote: > > On 2/20/19 2:02 PM, Rafael J. Wysocki wrote: > >> diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/hmat/Kconfig > >> index c9637e2e7514..08e972ead159 100644 > >> --- a/drivers/acpi/hmat/Kconfig > >> +++ b/drivers/acpi/hmat/Kconfig > >> @@

[PATCH -next] platform/chrome: Fix Kconfig dependencies for wilco_ec

2019-02-20 Thread Nick Crews
In the initial version of the Wilco EC Driver, the dependency order was wrong. It before was possible to select CONFIG_WILCO_EC and CONFIG_CROS_EC_LPC without having CONFIG_CROS_EC_LPC_MEC. This was wrong, since WILCO_EC depends upon CONFIG CROS_EC_LPC_MEC, not the other way around. Fixes: 1733c32

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-20 Thread Kostya Serebryany
On Wed, Feb 20, 2019 at 1:40 PM Arnd Bergmann wrote: > > On Wed, Feb 20, 2019 at 10:13 PM Arnd Bergmann wrote: > > > > In the example in https://bugs.llvm.org/show_bug.cgi?id=38809#c12 > > (https://godbolt.org/z/ylsGSQ) there is no inlining, yet clang uses > > over ten times as much stack space a

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-20 Thread Dave Hansen
On 2/20/19 2:02 PM, Rafael J. Wysocki wrote: >> diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/hmat/Kconfig >> index c9637e2e7514..08e972ead159 100644 >> --- a/drivers/acpi/hmat/Kconfig >> +++ b/drivers/acpi/hmat/Kconfig >> @@ -2,6 +2,7 @@ >> config ACPI_HMAT >> bool "ACPI Heterogen

[PATCH] device-dax: Add a 'target_node' attribute

2019-02-20 Thread Dan Williams
The target-node attribute is the Linux numa-node that a device-dax instance may create when it is online. Prior to being online the device's 'numa_node' property reflects the closest online cpu node which is the typical expectation of a device 'numa_node'. Once it is online it becomes its own disti

Re: [PATCH -next] platform/chrome: Fix off-by-one error in wilco_ec/debugfs.c

2019-02-20 Thread Enric Balletbo i Serra
Hi Nick, Thanks for the patch. On 20/2/19 22:58, Nick Crews wrote: > Before, in debugfs.c it was possible to supply only the message type, > and not supply any other arguments when sending raw commands. However, > this is never used by the EC, and it led to an underflow error. Now, > just don't a

[PATCH v3 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-20 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 222 ++

Re: [PATCHv6 09/10] acpi/hmat: Register memory side cache attributes

2019-02-20 Thread Rafael J. Wysocki
On Thu, Feb 14, 2019 at 6:10 PM Keith Busch wrote: > > Register memory side cache attributes with the memory's node if HMAT > provides the side cache iniformation table. > > Signed-off-by: Keith Busch Acked-by: Rafael J. Wysocki > --- > drivers/acpi/hmat/hmat.c | 32 ++

Re: [PATCH] mm: Don't let userspace spam allocations warnings

2019-02-20 Thread Michal Hocko
On Wed 20-02-19 21:40:58, Daniel Vetter wrote: > memdump_user usually gets fed unchecked userspace input. Blasting a > full backtrace into dmesg every time is a bit excessive - I'm not sure > on the kernel rule in general, but at least in drm we're trying not to > let unpriviledge userspace spam th

Re: [PATCHv6 08/10] acpi/hmat: Register performance attributes

2019-02-20 Thread Rafael J. Wysocki
On Thu, Feb 14, 2019 at 6:10 PM Keith Busch wrote: > > Save the best performance access attributes and register these with the > memory's node if HMAT provides the locality table. While HMAT does make > it possible to know performance for all possible initiator-target > pairings, we export only th

Re: xen/evtchn and forced threaded irq

2019-02-20 Thread Julien Grall
Hi Boris, On 2/20/19 9:46 PM, Boris Ostrovsky wrote: On 2/20/19 3:46 PM, Julien Grall wrote: (+ Andrew and Jan for feedback on the event channel interrupt) Hi Boris, Thank you for the your feedback. On 2/20/19 8:04 PM, Boris Ostrovsky wrote: On 2/20/19 1:05 PM, Julien Grall wrote: Hi, On

Re: [RFC 0/4] clk/driver: platform: Fix kfree() of const memory on setting driver_override

2019-02-20 Thread Stephen Boyd
Quoting Krzysztof Kozlowski (2019-02-18 03:14:29) > On Mon, 18 Feb 2019 at 11:40, Geert Uytterhoeven wrote: > > > > Hi Krzysztof, > > > > On Mon, Feb 18, 2019 at 11:27 AM Krzysztof Kozlowski > > wrote: > > > The problem > > > === > > > Several device types (platform, amba, spi etc.) prov

Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory

2019-02-20 Thread Rafael J. Wysocki
On Thu, Feb 14, 2019 at 6:10 PM Keith Busch wrote: > > If the HMAT Subsystem Address Range provides a valid processor proximity > domain for a memory domain, or a processor domain matches the performance > access of the valid processor proximity domain, register the memory > target with that initi

Re: [PATCH v8 0/7] freezer for cgroup v2

2019-02-20 Thread Roman Gushchin
On Wed, Feb 20, 2019 at 03:37:48PM +0100, Oleg Nesterov wrote: > On 02/19, Roman Gushchin wrote: > > > > It provides similar functionality as v1 freezer, but the interface > > conforms to the cgroup v2 interface design principles, and it > > provides a better user experience: tasks can be killed, p

[PATCH -next] platform/chrome: Fix off-by-one error in wilco_ec/debugfs.c

2019-02-20 Thread Nick Crews
Before, in debugfs.c it was possible to supply only the message type, and not supply any other arguments when sending raw commands. However, this is never used by the EC, and it led to an underflow error. Now, just don't allow too short of a command, we will never need that anyways. Fixes: 46c7fd0

Re: [PATCH 10/10] mm/hmm: add helpers for driver to safely take the mmap_sem

2019-02-20 Thread John Hubbard
On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse The device driver context which holds reference to mirror and thus to core hmm struct might outlive the mm against which it was created. To avoid every driver to check for that case provide an helper that check if mm is still ali

Re: [PATCH 05/11] x86 topology: export die_siblings

2019-02-20 Thread Brice Goglin
Le 19/02/2019 à 04:40, Len Brown a écrit : > From: Len Brown > > like core_siblings, except it shows which die are in the same package. > > This is needed for lscpu(1) to correctly display die topology. > > Signed-off-by: Len Brown > Cc: linux-...@vger.kernel.org > Signed-off-by: Len Brown > ---

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 1:26 PM Måns Rullgård wrote: > > "Rafael J. Wysocki" writes: > > > On Wed, Feb 20, 2019 at 1:12 PM Måns Rullgård wrote: > >> > >> Johan Hovold writes: > >> > >> > On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: > >> >> If the provided fwnode is an OF node,

Re: xen/evtchn and forced threaded irq

2019-02-20 Thread Boris Ostrovsky
On 2/20/19 3:46 PM, Julien Grall wrote: > (+ Andrew and Jan for feedback on the event channel interrupt) > > Hi Boris, > > Thank you for the your feedback. > > On 2/20/19 8:04 PM, Boris Ostrovsky wrote: >> On 2/20/19 1:05 PM, Julien Grall wrote: >>> Hi, >>> >>> On 20/02/2019 17:07, Boris Ostrovsky

Re: [PATCH v3] PM / suspend: measure the time of filesystem syncing

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 5:44 PM Pan, Harry wrote: > > Thanks for comments. > > > > + if (!IS_ENABLED(CONFIG_SUSPEND_SKIP_SYNC)) { > > > + ktime_t start; > > > + unsigned int elapsed_msecs; > > > + > > > + trace_suspend_resume(TPS("sync_filesystems"), 0, true); > > >

Re: [PATCH -next] mm: fix set but not used warning

2019-02-20 Thread Andrew Morton
On Tue, 19 Feb 2019 18:28:30 + "Kani, Toshi" wrote: > On Mon, 2019-02-18 at 13:57 +, YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > > > lib/ioremap.c: In function 'ioremap_page_range': > > lib/ioremap.c:203:16: warning: > > variable 'start' set but not used [-W

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-20 Thread Arnd Bergmann
On Wed, Feb 20, 2019 at 10:13 PM Arnd Bergmann wrote: > > In the example in https://bugs.llvm.org/show_bug.cgi?id=38809#c12 > (https://godbolt.org/z/ylsGSQ) there is no inlining, yet clang uses > over ten times as much stack space as gcc, for reasons I still > can't explain. My assumption right no

make modules_prepare doesn't build arch/powerpc/lib/crtsavres.o

2019-02-20 Thread Luis Ressel
Hello, as documented in the top-level Makefile, "make modules_prepare" is supposed to get a pristine kernel tree into a state that's suitable to build out-of-tree modules. However, this is not the case for the powerpc arch, since all modules are linked against arch/powerpc/lib/crtsavres.o on ppc32

Re: [PATCH] KEYS: user: Align the payload buffer

2019-02-20 Thread David Howells
James Morris wrote: > Should this first one go into -rc? Yes please. David

Re: linux-next: Fixes tag needs some work in Linus' tree

2019-02-20 Thread David Howells
Stephen Rothwell wrote: > In commit > > 822ad64d7e46 ("keys: Fix dependency loop between construction record and > auth key") > > Fixes tag > > Fixes: 7ee02a316600 ("keys: Fix dependency loop between construction record > and auth key") > > has these problem(s): > > - Target SHA1 doe

[PATCH net] net: socket: add check for negative optlen in compat setsockopt

2019-02-20 Thread Jann Horn
__sys_setsockopt() already checks for `optlen < 0`. Add an equivalent check to the compat path for robustness. This has to be `> INT_MAX` instead of `< 0` because the signedness of `optlen` is different here. Signed-off-by: Jann Horn --- net/compat.c | 6 +- 1 file changed, 5 insertions(+),

Re: [PATCH 1/9] iio: document bindings for mounting matrices

2019-02-20 Thread Linus Walleij
On Wed, Feb 20, 2019 at 5:18 PM H. Nikolaus Schaller wrote: > > Am 20.02.2019 um 17:10 schrieb Jonathan Cameron : > > On Wed, 20 Feb 2019 15:00:48 +0100 > > "H. Nikolaus Schaller" wrote: > > Hmm. I looked back and seems there were still some outstanding questions > > on this last time around. >

Re: [PATCH v2 2/2] extcon intel-cht-wc: Enable external charger

2019-02-20 Thread Yauhen Kharuzhy
ср, 20 февр. 2019 г. в 18:53, Hans de Goede : > > Hi, > > On 2/19/19 10:24 PM, Yauhen Kharuzhy wrote: > > In some configuration external charger "#charge enable" signal is > > connected to PMIC. Enable it at device probing to allow charging. > > > > Save CHGRCTRL0 and CHGDISCTR registers at driver

Re: [RFC PATCH v1 10/25] printk: redirect emit/store to new ringbuffer

2019-02-20 Thread John Ogness
On 2019-02-20, Petr Mladek wrote: >> vprintk_emit and vprintk_store are the main functions that all printk >> variants eventually go through. Change these to store the message in >> the new printk ring buffer that the printk kthread is reading. > > We need to switch the two buffers in a single com

Re: [PATCH v2] x86/asm: Pin sensitive CR4 bits

2019-02-20 Thread Kees Cook
On Wed, Feb 20, 2019 at 10:49 AM Solar Designer wrote: > > On Wed, Feb 20, 2019 at 10:09:34AM -0800, Kees Cook wrote: > > + if (WARN_ONCE((val & cr4_pin) != cr4_pin, "cr4 bypass attempt?!\n")) > > + goto again; > > I think "goto again" is too mild a response given that it occurs af

Re: xarray reserve/release?

2019-02-20 Thread Jason Gunthorpe
On Wed, Feb 20, 2019 at 12:47:26PM -0800, Matthew Wilcox wrote: > On Wed, Feb 20, 2019 at 10:43:33AM -0700, Jason Gunthorpe wrote: > > On Wed, Feb 20, 2019 at 09:14:14AM -0800, Matthew Wilcox wrote: > > > > void __xa_release(struct xarray *xa, unsigned long index) > > > > { > > > > XA_STATE

[PATCH] scripts/spdxcheck.py: fix C++ comment style detection

2019-02-20 Thread Aurélien Cedeyn
With the last commit to support the SuperH boot code files, we have the following regression: $ ./scripts/checkpatch.pl -f <(echo '/* SPDX-License-Identifier: MIT */') WARNING: 'SPDX-License-Identifier: MIT */' is not supported in LICENSES/.. +/* SPDX-License-Identifier: MIT */ total: 0 errors, 1

Re: bug report: iwlwifi: mvm: support mac80211 TXQs model

2019-02-20 Thread Johannes Berg
On Wed, 2019-02-20 at 14:40 +, Colin Ian King wrote: > > ..when the used_hw_queues initialization was removed: > > @@ -360,8 +300,6 @@ int iwl_mvm_mac_ctxt_init(struct iwl_mvm *mvm, > struct ieee80211_vif *vif) > mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, > iwl_

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-20 Thread Arnd Bergmann
On Wed, Feb 20, 2019 at 9:02 PM Nick Desaulniers wrote: > > On Wed, Feb 20, 2019 at 10:44 AM Mark Brown wrote: > > > > On Wed, Feb 20, 2019 at 10:07:36AM -0800, Nick Desaulniers wrote: > > > > > I like Evgenii's idea: > > > https://bugs.llvm.org/show_bug.cgi?id=38809#c10 > > > > That's a suggesti

Re: [PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-20 Thread Paolo Bonzini
On 20/02/19 21:15, Joao Martins wrote: > 2. PV Driver support (patches 17 - 39) > > We start by redirecting hypercalls from the backend to routines > which emulate the behaviour that PV backends expect i.e. grant > table and interdomain events. Next, we add support for late > initialization o

[GIT PULL] One 5.0 docs fix

2019-02-20 Thread Jonathan Corbet
The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) are available in the Git repository at: git://git.lwn.net/linux.git tags/docs-5.0-fix for you to fetch changes up to 0358affb5cd8bbd685a6ab163a36dd28a818da73: Documentat

Re: [PATCH] mm: Don't let userspace spam allocations warnings

2019-02-20 Thread Kees Cook
On Wed, Feb 20, 2019 at 12:41 PM Daniel Vetter wrote: > > memdump_user usually gets fed unchecked userspace input. Blasting a > full backtrace into dmesg every time is a bit excessive - I'm not sure > on the kernel rule in general, but at least in drm we're trying not to > let unpriviledge userspa

[PATCH 3/7] drm/vc4: Use common helpers for debugfs setup by the driver components.

2019-02-20 Thread Eric Anholt
The global list of all debugfs entries for the driver was painful: the list couldn't see into the components' structs, so each component had its own debugs show function to find the component, then find the regset and dump it. The components also had to be careful to check that they were actually

[PATCH 6/7] drm/vc4: Add helpers for pm get/put.

2019-02-20 Thread Eric Anholt
This makes sure the vc4_reset doesn't hit an obscure race with the GET_PARAM ioctl, fixes a decrement outside of the lock, and prevents future code from making mistakes with the weird return value of pm_runtime_get_sync(). Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_drv.c | 21 +++

[PATCH 7/7] drm/vc4: Make sure that the v3d ident debugfs has vc4's power on.

2019-02-20 Thread Eric Anholt
Otherwise, you sometimes decode the ident fields based on 0xdeadbeef register reads. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_v3d.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc

[PATCH 5/7] drm/vc4: Disable V3D interactions if the v3d component didn't probe.

2019-02-20 Thread Eric Anholt
One might want to use the VC4 display stack without using Mesa. Similar to the debugfs fixes for not having all of the possible display bits enabled, make sure you can't oops in vc4 if v3d isn't enabled. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_drv.c | 11 +++ drivers/g

[PATCH 2/7] drm/vc4: Use drm_print_regset32() for our debug register dumping.

2019-02-20 Thread Eric Anholt
This removes a bunch of duplicated boilerplate for the debugfs vs runtime printk debug dumping. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_crtc.c | 68 ++--- drivers/gpu/drm/vc4/vc4_dpi.c | 23 ++--- drivers/gpu/drm/vc4/vc4_drv.h | 7 ++ drivers/gpu/drm/vc4/vc4_dsi.c |

[PATCH 1/7] drm: Add a helper function for printing a debugfs_regset32.

2019-02-20 Thread Eric Anholt
The debugfs_regset32 is nice to use for reducing boilerplate in dumping a bunch of regs in debugfs, but we also want to be able to print to dmesg them at runtime for driver debugging. drm_printer lets us format debugfs and the printk the same way. Signed-off-by: Eric Anholt --- drivers/gpu/drm/

[PATCH 4/7] drm/vc4: Use drm_printer for the debugfs and runtime bo stats output.

2019-02-20 Thread Eric Anholt
Now I can extend the stats without more copy and pasting between the two. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_bo.c | 48 +++- 1 file changed, 14 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_

Re: [PATCH v2 1/3] arm64: mm: use appropriate ctors for page tables

2019-02-20 Thread Matthew Wilcox
On Mon, Feb 18, 2019 at 10:32:05PM -0700, Yu Zhao wrote: > pgtable_pmd_page_ctor() must be used on user pmd. For kernel pmd, > it's okay to use pgtable_page_ctor() instead only because kernel > doesn't have thp. I'm not sure that's true. I think you can create THPs in vmalloc these days. See HAV

Re: [PATCH 6/6] net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver

2019-02-20 Thread Tony Lindgren
* David Miller [190220 20:42]: > From: Tony Lindgren > Date: Wed, 20 Feb 2019 12:33:26 -0800 > > > * David Miller [190220 19:23]: > >> From: Grygorii Strashko > >> Date: Wed, 20 Feb 2019 17:25:19 +0200 > >> > >> > Deprecate cpsw-phy-sel driver as it's been replaced with new > >> > TI phy-gmii

Re: [PATCH v2 1/3] arm64: mm: use appropriate ctors for page tables

2019-02-20 Thread Matthew Wilcox
On Wed, Feb 20, 2019 at 01:22:44PM -0700, Yu Zhao wrote: > On Wed, Feb 20, 2019 at 03:57:59PM +0530, Anshuman Khandual wrote: > > Using pgtable_pmd_page_ctor() during PMD level pgtable page allocation > > as suggested in the patch breaks pmd_alloc_one() changes as per the > > previous proposal. Hen

Re: [PATCH] MAINTAINERS: add linux-security-module mailing list to TPM drivers

2019-02-20 Thread James Morris
On Wed, 20 Feb 2019, Jarkko Sakkinen wrote: > > being cc'd to linux-security-module? Looking back at > > recent patches, it looked like it was a general request. > > If it is, I'll be more likely to remember if get_maintainers.pl > > brings it up. :) > > I'm all open here. Not sure which practice

Re: [PATCH] KEYS: user: Align the payload buffer

2019-02-20 Thread James Morris
On Wed, 20 Feb 2019, David Howells wrote: > David Laight wrote: > > > I'd make the 'datalen' field 'unsigned int' at the same time. > > It will use some of the hole you've made and generate better > > code on most arches. > > Most arches? I though most, if not all, arches had a load-word instr

Re: [PATCH][next] mtd: spi-nor: cadence-quadspi: fix spelling mistake: "Couldnt't" -> "Couldn't"

2019-02-20 Thread Tudor.Ambarus
On 02/15/2019 05:15 PM, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a dev_error message. Fix it. > > Signed-off-by: Colin Ian King Reviewed-by: Tudor Ambarus > --- > drivers/mtd/spi-nor/cadence-quadspi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH v2 2/2] mtd: spi-nor: Add support for MX25V8035F

2019-02-20 Thread Tudor.Ambarus
On 02/18/2019 02:04 PM, Schrempf Frieder wrote: > From: Frieder Schrempf > > This adds support for the Macronix MX25V8035F, a 8Mb SPI NOR chip. > It is used on i.MX6UL/ULL SoMs by Kontron Electronics GmbH (N631x). > It was only tested with a single data line connected, by writing and > reading

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