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 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 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: [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] 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

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

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

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

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

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

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

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

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

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

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

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

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

[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

[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

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

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 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: [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 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

[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 (

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

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

linux-next: manual merge of the v4l-dvb tree with the dma-mapping tree

2019-02-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the v4l-dvb tree got a conflict in: drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c between commit: 82c5de0ab8db ("dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag") from the dma-mapping tree and commit: 43a445f188e1 ("media: sh_mobile_ceu_c

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 Tue, Feb 19, 2019 at 1:55 PM Tobin C. Harding wrote: > > On Tue, Feb 19, 2019 at 12:55:09PM +0200, Andy Shevchenko wrote: > > On Tue, Feb 19, 2019 at 4:44 AM Tobin C. Harding wrote: > > > + If unsure, say N. > > Does that mean that this is redundant too? I've started leaving this off Kc

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

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: > 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

Re: [PATCH 2/6] lib/string: Fix erroneous 'overflow' documentation

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > Current documentation uses 'overflow' to describe a situation where less > data is written to a buffer than buffer size not more. 'overflow' is > the wrong word here - since we don't typically say 'underflow' change > the whole sentence.

Re: [RFC PATCH] kbuild: support llvm-ar

2019-02-20 Thread Jordan Rupprecht
Great to hear! If you discover anything later, let me know. On Tue, Feb 19, 2019 at 10:11 PM Masahiro Yamada wrote: > > Hi Jordan, > > > On Thu, Feb 7, 2019 at 9:56 AM Jordan Rupprecht wrote: > > > > I have a patch up for review that fixes the second case of chopping > > off the directory when n

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

2019-02-20 Thread John Hubbard
On 2/20/19 3:59 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: 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 protecti

Re: [PATCH 3/6] lib/string: Use correct docstring format

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > Currently the docstring comments for strscpy() are not in the correct > format. Prior to working on this file fix up the docstring. > > Use correct docstring format for strscpy(). Is this attached to "make htmldocs" anywhere? Maybe in t

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

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 04:06:50PM -0800, John Hubbard wrote: > On 2/20/19 3:59 PM, Jerome Glisse wrote: > > On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: > > > On 1/29/19 8:54 AM, jgli...@redhat.com wrote: > > > > From: Jérôme Glisse > > > > > > > > Every time i read the code to

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

2019-02-20 Thread David Miller
From: Tony Lindgren Date: Wed, 20 Feb 2019 13:01:27 -0800 > What I can do is set up a separate branch with just this > patch on top of the dts changes that the arm-soc guys can > then merge towards the end of the merge cycle. If that > works for you, let me know and I'll do it. Yes, it does work

Re: [PATCH v2] perf/core: use strndup_user() instead of buggy open-coded version

2019-02-20 Thread Masami Hiramatsu
Hi Jann, On Wed, 20 Feb 2019 17:54:43 +0100 Jann Horn wrote: > The first version of this method was missing the check for > `ret == PATH_MAX`; then such a check was added, but it didn't call kfree() > on error, so there was still a small memory leak in the error case. > Fix it by using strndup_u

[PATCH] Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255

2019-02-20 Thread Kalash Nainwal
Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255 to keep legacy software happy. This is similar to what was done for ipv4 in commit 709772e6e065 ("net: Fix routing tables with id > 255 for legacy software"). Signed-off-by: Kalash Nainwal --- net/ipv6/route.c | 2 +- 1 file changed, 1 i

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

2019-02-20 Thread Axel Lin
Olliver Schinagl 於 2019年2月21日 週四 上午6:57寫道: > > 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.

Re: [PATCH 03/10] mm/hmm: improve and rename hmm_vma_get_pfns() to hmm_range_snapshot()

2019-02-20 Thread John Hubbard
On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse Rename for consistency between code, comments and documentation. Also improves the comments on all the possible returns values. Improve the function by returning the number of populated entries in pfns array. Signed-off-by: Jérô

Re: [PATCH v2] powerpc/prom_init: add __init markers to all functions

2019-02-20 Thread Daniel Axtens
Hi Masahiro, > It is fragile to rely on the compiler's optimization to avoid the > section mismatch. Some functions may not be necessarily inlined > when the compiler's inlining heuristic changes. > > Add __init markers consistently. > Are you doing this with some sort of static analysis, or manu

Re: [PATCH 03/10] mm/hmm: improve and rename hmm_vma_get_pfns() to hmm_range_snapshot()

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 04:25:07PM -0800, John Hubbard wrote: > On 1/29/19 8:54 AM, jgli...@redhat.com wrote: > > From: Jérôme Glisse > > > > Rename for consistency between code, comments and documentation. Also > > improves the comments on all the possible returns values. Improve the > > functio

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

2019-02-20 Thread Ankur Arora
On 2/20/19 1:09 PM, Paolo Bonzini wrote: 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 ad

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

2019-02-20 Thread Ankur Arora
On 2/20/19 3:39 PM, Marek Marczykowski-Górecki wrote: 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 ta

Re: [PATCHv5] random: Make /dev/random wait for input_pool initializedy

2019-02-20 Thread Theodore Y. Ts'o
Hi Brend, I've been looking at your patch, and as far as the core part of what you're patching, I think this patch below is a conceptually simpler way of fixing the original core problem. Please take a look and let me know what you think. There are some other auxiliary things that your patch is

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

2019-02-20 Thread John Hubbard
On 2/20/19 4:15 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 04:06:50PM -0800, John Hubbard wrote: On 2/20/19 3:59 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: On 1/29/19 8:54 AM, jgli...@redhat.com wrote: From: Jérôme Glisse Every time i read t

[PATCH] drm/bochs: Fix the ID mismatch error

2019-02-20 Thread Alistair Francis
When running RISC-V QEMU with the Bochs device attached via PCIe the probe of the Bochs device fails with: [drm:bochs_hw_init] *ERROR* ID mismatch This was introduced by this commit: 7780eb9ce8 bochs: convert to drm_dev_register To fix the error we ensure that pci_enable_device() is calle

Re: [PATCH v3 9/9] ARM: configs: Add Milbeaut M10V defconfig

2019-02-20 Thread Sugaya, Taichi
Hi, On 2019/02/20 22:23, Masami Hiramatsu wrote: Hi Arnd, 2019年2月20日(水) 22:18 Arnd Bergmann : On Wed, Feb 20, 2019 at 2:16 PM Masami Hiramatsu wrote: 2019年2月20日(水) 21:28 Arnd Bergmann : On Wed, Feb 20, 2019 at 12:27 PM Sugaya, Taichi wrote: On 2019/02/20 18:28, Arnd Bergmann wrote: On W

Re: [PATCH v3 3/9] dt-bindings: Add documentation for Milbeaut SoCs

2019-02-20 Thread Sugaya, Taichi
Hi, On 2019/02/20 22:33, Rob Herring wrote: On Wed, Feb 20, 2019 at 1:43 AM Sugaya Taichi wrote: This adds a DT binding documentation for the M10V and its evaluation board. Signed-off-by: Sugaya Taichi --- .../bindings/arm/socionext/milbeaut.yaml | 22 ++ 1

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

2019-02-20 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 04:32:09PM -0800, John Hubbard wrote: > On 2/20/19 4:15 PM, Jerome Glisse wrote: > > On Wed, Feb 20, 2019 at 04:06:50PM -0800, John Hubbard wrote: > > > On 2/20/19 3:59 PM, Jerome Glisse wrote: > > > > On Wed, Feb 20, 2019 at 03:47:50PM -0800, John Hubbard wrote: > > > > > O

Re: linux-next: Fixes tag needs some work in the drivers-x86 tree

2019-02-20 Thread Darren Hart
On Wed, Feb 13, 2019 at 08:45:56PM +0530, Bhardwaj, Rajneesh wrote: > > On 07-Feb-19 9:25 PM, Andy Shevchenko wrote: > > On Thu, Feb 7, 2019 at 4:06 AM Bhardwaj, Rajneesh > > wrote: > > > On 07-Feb-19 4:27 AM, Stephen Rothwell wrote: > > > > > > Hi all, > > > > > > In commit > > > > > >428

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

2019-02-20 Thread John Hubbard
On 2/20/19 4:37 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 04:32:09PM -0800, John Hubbard wrote: On 2/20/19 4:15 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 04:06:50PM -0800, John Hubbard wrote: On 2/20/19 3:59 PM, Jerome Glisse wrote: On Wed, Feb 20, 2019 at 03:47:50PM -0800, John

Re: linux-next: Tree for Feb 20

2019-02-20 Thread Zhangshaokun
Hi Ard, On 2019/2/20 18:05, Ard Biesheuvel wrote: > On Wed, 20 Feb 2019 at 10:58, Jarkko Sakkinen > wrote: >> >> On Wed, Feb 20, 2019 at 11:52:52AM +0200, Jarkko Sakkinen wrote: >>> On Wed, Feb 20, 2019 at 05:11:15PM +0800, Zhangshaokun wrote: There is a compiler failure on arm64 platform, a

[PATCH] regulator: fan53555: Add support for FAN53526

2019-02-20 Thread Bjorn Andersson
The FAN53526 differs from the FAN53555 only in that the mode bit in VSEL0/VSEL1 is moved to the CONTROL register, the voltage selector mask is extended by 1 bit and the step is different. So extend the existing fan53555 driver to support FAN53526 as well. Signed-off-by: Bjorn Andersson --- .../

Re: [PATCH 4/6] lib/string: Add string copy/zero function

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > We have a function to copy strings safely and we have a function to copy > strings _and_ zero the tail of the destination (if source string is > shorter than destination buffer) but we do not have a function to do > both at once. This me

Re: [PATCH 00/12] QorIQ TMU multi-sensor and HWMON support

2019-02-20 Thread Eduardo Valentin
Hey Andrey On Mon, Feb 18, 2019 at 11:11:29AM -0800, Andrey Smirnov wrote: > Everyone: > > This series contains patches adding support for HWMON integration, > multi-sensor support as well as a small fix and general improvements > (hopefully) for TMU driver I made while working on it on i.MX8MQ.

Re: [PATCH 12/12] thermal: qoriq: Add support for multiple thremal sites

2019-02-20 Thread Eduardo Valentin
On Mon, Feb 18, 2019 at 11:11:41AM -0800, Andrey Smirnov wrote: > TMU IP block provides temerature measurement for up to 16 sites, > current implementation of the driver however hardcodes a single site > ID. Change the code so it would be possible to reference multiple > sites as indivudial sensors

[PATCH net-next v3 5/8] rocker: Check Handle PORT_PRE_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for getting rid of switchdev_port_attr_get(), have rocker check for the bridge flags being set through switchdev_port_attr_set() with the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute identifier. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/rocker/rocker_main.c | 5

[PATCH net-next v3 1/8] net: switchdev: Add PORT_PRE_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for removing switchdev_port_attr_get(), introduce PORT_PRE_BRIDGE_FLAGS which will be called through switchdev_port_attr_set(), in the caller's context (possibly atomic) and which must be checked by the switchdev driver in order to return whether the operation is supported or not. T

[PATCH net-next v3 4/8] net: dsa: Add setter for SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for removing SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT, add support for a function that processes the SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS and SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attributes and returns not supported for any flag set, since DSA does not currently support toggling

[PATCH net-next v3 3/8] staging: fsl-dpaa2: ethsw: Handle PORT_PRE_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for removing SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT, handle the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute and check that the bridge port flags being configured are supported. Signed-off-by: Florian Fainelli --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 14

[PATCH net-next v3 0/8] net: Get rid of switchdev_port_attr_get()

2019-02-20 Thread Florian Fainelli
Hi all, This patch series splits the removal of the switchdev_ops that was proposed a few times before and first tackles the easy part which is the removal of the single call to switchdev_port_attr_get() within the bridge code. As suggestd by Ido, this patch series adds a SWITCHDEV_ATTR_ID_PORT_P

[PATCH net-next v3 2/8] mlxsw: spectrum: Handle PORT_PRE_BRIDGE_FLAGS

2019-02-20 Thread Florian Fainelli
In preparation for getting rid of switchdev_port_attr_get(), have mlxsw check for the bridge flags being set through switchdev_port_attr_set() when the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute identifier is used. Signed-off-by: Florian Fainelli --- .../ethernet/mellanox/mlxsw/spectrum_s

[PATCH net-next v3 6/8] net: bridge: Stop calling switchdev_port_attr_get()

2019-02-20 Thread Florian Fainelli
Now that all switchdev drivers have been converted to check the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS flags and report flags that they do not support accordingly, we can migrate the bridge code to try to set that attribute first, check the results and then do the actual setting. Signed-off-by: F

[PATCH net-next v3 7/8] net: Remove SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT

2019-02-20 Thread Florian Fainelli
Now that we have converted the bridge code and the drivers to check for bridge port(s) flags at the time we try to set them, there is no need for a get() -> set() sequence anymore and SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT therefore becomes unused. Reviewed-by: Ido Schimmel Signed-off-by: Fl

[PATCH net-next v3 8/8] net: Get rid of switchdev_port_attr_get()

2019-02-20 Thread Florian Fainelli
With the bridge no longer calling switchdev_port_attr_get() to obtain the supported bridge port flags from a driver but instead trying to set the bridge port flags directly and relying on driver to reject unsupported configurations, we can effectively get rid of switchdev_port_attr_get() entirely s

Re: [PATCH V7 4/4] arm64: dts: imx: add i.MX8QXP thermal support

2019-02-20 Thread Eduardo Valentin
On Wed, Feb 20, 2019 at 06:53:58AM +, Anson Huang wrote: > Add i.MX8QXP CPU thermal zone support. > > Signed-off-by: Anson Huang > --- > Changes since V6: > - add fallback compatible string "fsl,imx-sc-thermal" according to i.MX > SC thermal driver > update. > --- > arch/arm64

[PATCH] IB/hfi1: Add missing break in switch statement

2019-02-20 Thread Gustavo A. R. Silva
Fix the following warning by adding a missing break: drivers/infiniband/hw/hfi1/tid_rdma.c: In function ‘hfi1_tid_rdma_wqe_interlock’: drivers/infiniband/hw/hfi1/tid_rdma.c:3251:3: warning: this statement may fall through [-Wimplicit-fallthrough=] switch (prev->wr.opcode) { ^~ drivers/

Re: [PATCH 5/6] lib: Fix function documentation for strncpy_from_user

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 4:52 PM Jann Horn wrote: > AFAICS the byte_at_a_time loop exits when max==0 is reached, and then > if `res >= count` (in other words, if we've copied as many bytes as > requested, haven't encountered a null byte so far, and haven't reached > the end of the address space), w

Re: [PATCH V7 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-20 Thread Eduardo Valentin
On Wed, Feb 20, 2019 at 06:53:40AM +, Anson Huang wrote: > i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > inside, the system controller is in charge of controlling power, > clock and thermal sensors etc.. > > This patch adds i.MX system controller thermal driver support, >

[PATCH -next] mm/debug: use lx% for atomic64_read() on ppc64le

2019-02-20 Thread Qian Cai
atomic64_read() on ppc64le returns "long int" while "long long" seems on all other arches, so deal the special case for ppc64le. In file included from ./include/linux/printk.h:7, from ./include/linux/kernel.h:15, from mm/debug.c:9: mm/debug.c: In function 'dump_mm

Re: [PATCH 5/8] iio/counter: add FlexTimer Module Quadrature decoder counter driver

2019-02-20 Thread William Breathitt Gray
On Wed, Feb 20, 2019 at 04:41:54PM +, Jonathan Cameron wrote: > On Mon, 18 Feb 2019 15:03:18 +0100 > Patrick Havelange wrote: > > > This driver exposes the counter for the quadrature decoder of the > > FlexTimer Module, present in the LS1021A soc. > > > > Signed-off-by: Patrick Havelange >

[PATCH v12 3/3] Documentation/filesystems/proc.txt: add AVX512_elapsed_ms

2019-02-20 Thread Aubrey Li
Added AVX512_elapsed_ms in /proc//status. Report it in Documentation/filesystems/proc.txt Signed-off-by: Aubrey Li Cc: Peter Zijlstra Cc: Andi Kleen Cc: Tim Chen Cc: Dave Hansen Cc: Arjan van de Ven --- Documentation/filesystems/proc.txt | 28 +++- 1 file changed, 27

[PATCH v12 2/3] x86,/proc/pid/status: Add AVX-512 usage elapsed time

2019-02-20 Thread Aubrey Li
AVX-512 components use could cause core turbo frequency drop. So it's useful to expose AVX-512 usage elapsed time as a heuristic hint for the user space job scheduler to cluster the AVX-512 using tasks together. Tensorflow example: $ while [ 1 ]; do cat /proc/pid/status | grep AVX; sleep 1; done A

[PATCH v12 1/3] /proc/pid/status: Add support for architecture specific output

2019-02-20 Thread Aubrey Li
The architecture specific information of the running processes could be useful to the userland. Add support to examine process architecture specific information externally. Signed-off-by: Aubrey Li Cc: Peter Zijlstra Cc: Andi Kleen Cc: Tim Chen Cc: Dave Hansen Cc: Arjan van de Ven --- fs/pr

Re: [PATCH v5 01/10] dt-bindings: olpc,xo1.75-ec: Add OLPC XO-1.75 EC bindings

2019-02-20 Thread Darren Hart
On Fri, Jan 11, 2019 at 08:36:35AM -0600, Rob Herring wrote: > On Thu, 10 Jan 2019 18:58:36 +0100, Lubomir Rintel wrote: > > The OLPC XO-1.75 Embedded Controller is a SPI master that uses extra > > signals for handshaking. It needs to know when is the slave (Linux) > > side's TX FIFO ready for tran

[PATCH v2 1/1] kvm/mmu_notifier: re-enable the change_pte() optimization.

2019-02-20 Thread jglisse
From: Jérôme Glisse Since changes to mmu notifier the change_pte() optimization was lost for kvm. This re-enable it, when ever a pte is going from read and write to read only with same pfn, or from read only to read and write with different pfn. It is safe to update the secondary MMUs, because t

[PATCH v2 0/1] Restore change_pte optimization

2019-02-20 Thread jglisse
From: Jérôme Glisse This patch is on top of my patchset to add context information to mmu notifier [1] you can find a branch with everything [2]. It has been tested with qemu/KVM building kernel within the guest and also running a benchmark which the result are given below. The change_pte() call

Re: [PATCH v5 06/10] Platform: OLPC: Add XO-1.75 EC driver

2019-02-20 Thread Darren Hart
On Thu, Jan 10, 2019 at 06:58:41PM +0100, Lubomir Rintel wrote: > It's based off the driver from the OLPC kernel sources. Somewhat > modernized and cleaned up, for better or worse. > > Modified to plug into the olpc-ec driver infrastructure (so that battery > interface and debugfs could be reused)

Re: [PATCH] iio: cros_ec_accel_legacy: Mark expected switch fall-throughs

2019-02-20 Thread Kees Cook
On Wed, Feb 20, 2019 at 10:47 AM Gustavo A. R. Silva wrote: > Yeah. Actually, we can even take the switch and for out of the equation, > and the code can be rewritten as follows: > > ec_accel_channels[X].scan_index = Y; > ec_accel_channels[Y].scan_index = X; > ec_accel_channels[Z].scan_index = Z;

Re: [PATCH 4/6] perf tools: Add missing new line into pr_debug call

2019-02-20 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 20, 2019 at 01:27:58PM +0100, Jiri Olsa escreveu: > Adding missing new line into pr_debug call in > perf_event__synthesize_bpf_events function, > so the error message does not screw the verbose > output. Adding Song Liu to the CC list, - Arnaldo > Link: http://lkml.kernel.org/n/tip-

[PATCH 07/17] perf doc: Fix HEADER_CMDLINE description in perf.data documentation

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jonas Rabenstein The content of the HEADER_CMDLINE feature header is a perf_header_string_list of the argument vector and not a perf_header_string of the commandline. Signed-off-by: Jonas Rabenstein Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter Z

[PATCH 08/17] perf doc: Fix documentation of the Flags section in perf.data

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jonas Rabenstein According to the current documentation the flags section is placed after the file header itself but the code assumes to find the flags section after the data section. This change updates the documentation to that assumption. Signed-off-by: Jonas Rabenstein Acked-by: Jiri

[PATCH 10/17] perf bpf: Add bpf_map dumper

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo At some point I'll suggest moving this to libbpf, for now I'll experiment with ways to dump BPF maps set by events in 'perf trace', starting with a very basic dumper for the current very limited needs of the augmented_raw_syscalls code: dumping booleans. Having fun

[GIT PULL 00/17] perf/core improvements and fixes

2019-02-20 Thread Arnaldo Carvalho de Melo
linux into perf/core (2019-02-15 10:19:11 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-5.1-20190220 for you to fetch changes up to b4409ae112caa6315f6ee678e953b9fc93e6919c: perf tools: Make rm_rf() rem

[PATCH 09/17] perf test: Fix failure of 'evsel-tp-sched' test on s390

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Commit 489338a717a0 ("perf tests evsel-tp-sched: Fix bitwise operator") causes test case 14 "Parse sched tracepoints fields" to fail on s390. This test succeeds on x86. In fact this test now fails on all architectures with type char treated as type unsigned char. The root

[PATCH 02/17] perf header: Fix wrong node write in NUMA_TOPOLOGY feature

2019-02-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We are currently passing the node index instead of the real node number. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Alexander Shishkin Cc: Peter Zijlstra Fixes: fbe96f29ce4b ("perf tools: Make perf.data more self-descriptive (v8)" Link: http://lkml.kernel.org/r/20190

<    5   6   7   8   9   10   11   12   >