[PATCH net-next 3/3] staging: fsl-dpaa2: ethsw: Remove getting PORT_BRIDGE_FLAGS

2019-02-11 Thread Florian Fainelli
There is no code that tries to get the attribute SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS, remove support for doing that. Signed-off-by: Florian Fainelli --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c

[PATCH net-next 2/3] rocker: Remove getting PORT_BRIDGE_FLAGS

2019-02-11 Thread Florian Fainelli
There is no code that attempts to get the SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS attribute, remove support for that. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/rocker/rocker.h | 2 -- drivers/net/ethernet/rocker/rocker_main.c | 15 ---

[PATCH net-next 0/3] Remove getting SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS

2019-02-11 Thread Florian Fainelli
Hi all, AFAICT there is no code that attempts to get the value of the attribute SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS while it is used with switchdev_port_attr_set(). This is effectively no doing anything and it can slow down future work that tries to make modifications in these areas so remove

[PATCH net-next 1/3] mlxsw: spectrum_switchdev: Remove getting PORT_BRIDGE_FLAGS

2019-02-11 Thread Florian Fainelli
There is no code that will query the SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS attribute remove support for that. Signed-off-by: Florian Fainelli --- .../mellanox/mlxsw/spectrum_switchdev.c | 17 - 1 file changed, 17 deletions(-) diff --git

Re: + sysctl-return-einval-if-val-violates-minmax.patch added to -mm tree

2019-02-11 Thread Alexey Dobriyan
On Mon, Feb 11, 2019 at 01:06:32PM -0800, a...@linux-foundation.org wrote: > @@ -2848,8 +2848,10 @@ static int __do_proc_doulongvec_minmax(v > - if ((min && val < *min) || (max && val > *max)) > - continue; > + if ((min && val <

RE: [PATCH 0/3] Add gup fast + longterm and use it in HFI1

2019-02-11 Thread Weiny, Ira
> > On Mon, Feb 11, 2019 at 12:16:40PM -0800, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > NOTE: This series depends on my clean up patch to remove the write > > parameter from gup_fast_permitted()[1] > > > > HFI1 uses get_user_pages_fast() due to it performance advantages. > > Like

Re: [PATCH 2/3] mm/gup: Introduce get_user_pages_fast_longterm()

2019-02-11 Thread John Hubbard
On 2/11/19 12:39 PM, Jason Gunthorpe wrote: > On Mon, Feb 11, 2019 at 12:16:42PM -0800, ira.we...@intel.com wrote: >> From: Ira Weiny [...] >> +static inline int get_user_pages_fast_longterm(unsigned long start, int >> nr_pages, >> + bool write, struct

Re: [PATCH] Documentation/atomic_t: Clarify signed vs unsigned

2019-02-11 Thread Paul E. McKenney
On Mon, Feb 11, 2019 at 05:28:00PM +, Will Deacon wrote: > On Mon, Feb 11, 2019 at 06:09:43PM +0100, Peter Zijlstra wrote: > > > > Clarify the whole signed vs unsigned issue for atomic_t. > > > > There has been enough confusion on this topic to warrant a few explicit > > words I feel. > > >

[PATCH] KEYS: allow reaching the keys quotas exactly

2019-02-11 Thread Eric Biggers
From: Eric Biggers If the sysctl 'kernel.keys.maxkeys' is set to some number n, then actually users can only add up to 'n - 1' keys. Likewise for 'kernel.keys.maxbytes' and the root_* versions of these sysctls. But these sysctls are apparently supposed to be *maximums*, as per their names and

Undefined behaviour in drivers/gpu/drm/radeon/r200.c:480:34 - shift exponent 4096 is too large

2019-02-11 Thread Meelis Roos
Got UBSAN warning from Dell D600 running 5.0.0-rc4-00218-g12491ed354d2. The warning did not happen on bootup but during xfce session start or console switch. [ 15.323113] radeon :01:00.0: putting AGP V2 device into 4x mode [ 15.323134] radeon :01:00.0: GTT: 128M 0xE000 -

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-11 Thread Jason Gunthorpe
On Mon, Feb 11, 2019 at 01:02:37PM -0800, Dan Williams wrote: > On Mon, Feb 11, 2019 at 12:49 PM Jason Gunthorpe wrote: > > > > On Mon, Feb 11, 2019 at 11:58:47AM -0800, Dan Williams wrote: > > > On Mon, Feb 11, 2019 at 10:40 AM Matthew Wilcox > > > wrote: > > > > > > > > On Mon, Feb 11, 2019

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-11 Thread Jerome Glisse
On Mon, Feb 11, 2019 at 10:19:22AM -0800, Ira Weiny wrote: > On Mon, Feb 11, 2019 at 11:06:54AM -0700, Jason Gunthorpe wrote: > > On Mon, Feb 11, 2019 at 09:22:58AM -0800, Dan Williams wrote: > > > > > I honestly don't like the idea that random subsystems can pin down > > > file blocks as a side

[RFC v2] tlv320aic32x4: delay i2c access by 1 ms after hardware reset

2019-02-11 Thread Peter Seiderer
As stated in 'TLV320AIC3254 Application Reference Guide' ([1]): 3.2 Device Startup Lockout Times After the TLV320AIC3254 initializes through hardware reset at power-up or software reset, the internal registers initialize to default values. This initialization takes place within 1ms

Re: [RFC v1] tlv320aic32x4: delay i2c access by 1 ms after hardware reset

2019-02-11 Thread Peter Seiderer
Hello Mark, On Mon, 11 Feb 2019 15:04:25 +, Mark Brown wrote: > On Sun, Feb 10, 2019 at 04:45:19PM +0100, Peter Seiderer wrote: > > > @@ -972,6 +972,8 @@ static int aic32x4_component_probe(struct > > snd_soc_component *component) > > gpio_set_value(aic32x4->rstn_gpio, 1); > >

[PATCH net-next] net/skbuff: fix up kernel-doc placement

2019-02-11 Thread Brian Norris
There are several skb_* functions where the locked and unlocked functions are confusingly documented. For several of them, the kernel-doc for the unlocked version is placed above the locked version, which to the casual reader makes it seems like the locked version "takes no locks and you must

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-11 Thread Dan Williams
On Mon, Feb 11, 2019 at 12:49 PM Jason Gunthorpe wrote: > > On Mon, Feb 11, 2019 at 11:58:47AM -0800, Dan Williams wrote: > > On Mon, Feb 11, 2019 at 10:40 AM Matthew Wilcox wrote: > > > > > > On Mon, Feb 11, 2019 at 11:26:49AM -0700, Jason Gunthorpe wrote: > > > > On Mon, Feb 11, 2019 at

Re: [RFC PATCH 3/4] kvm: Add guest side support for free memory hints

2019-02-11 Thread Alexander Duyck
On Mon, 2019-02-11 at 14:54 -0500, Michael S. Tsirkin wrote: > On Mon, Feb 11, 2019 at 10:10:06AM -0800, Alexander Duyck wrote: > > On Mon, 2019-02-11 at 12:36 -0500, Michael S. Tsirkin wrote: > > > On Mon, Feb 11, 2019 at 08:31:34AM -0800, Alexander Duyck wrote: > > > > On Sat, 2019-02-09 at

Re: d_type and bind mounts

2019-02-11 Thread Dave Chinner
On Mon, Feb 11, 2019 at 02:59:29PM -0500, Tavian Barnes wrote: > It seems that readdir()/getdents() fill d_type from the underlying > filesystem, not respecting bind mounts of non-directories: > > $ touch mount_point > $ sudo mount --bind /dev/null mount_point > $ find -name mount_point -type c >

Re: [PATCH] drivers: devfreq: change devfreq workqueue mechanism

2019-02-11 Thread Matthias Kaehlcke
Hi Lukasz, On Mon, Feb 11, 2019 at 11:05:27AM +0100, Lukasz Luba wrote: > Hi Matthias, > > My apologize for late response, I did not have access to mailbox. > Thank you for review, please check the comments below. > > On 2/5/19 1:39 AM, Matthias Kaehlcke wrote: > > Hi Lukasz, > > > > On Fri,

Re: [PATCH 4.9 034/137] ARM: mmp/mmp2: dt: enable the clock

2019-02-11 Thread Pavel Machek
Hi! > 4.9-stable review patch. If anyone has any objections, please let me know. > > -- > > [ Upstream commit f36797ee43802b367e59f0f9a9805304a4ff0c98 ] > > The device-tree booted MMP2 needs to enable the timer clock, otherwise > it would stop ticking when the boot finishes. >

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-11 Thread Jason Gunthorpe
On Mon, Feb 11, 2019 at 11:58:47AM -0800, Dan Williams wrote: > On Mon, Feb 11, 2019 at 10:40 AM Matthew Wilcox wrote: > > > > On Mon, Feb 11, 2019 at 11:26:49AM -0700, Jason Gunthorpe wrote: > > > On Mon, Feb 11, 2019 at 10:19:22AM -0800, Ira Weiny wrote: > > > > What if user space then writes

Re: [PATCH v2 RESEND] tracing: probeevent: Correctly update remaining space in dynamic area

2019-02-11 Thread Steven Rostedt
On Wed, 6 Feb 2019 20:00:13 +0100 Andreas Ziegler wrote: > Commit 9178412ddf5a ("tracing: probeevent: Return consumed > bytes of dynamic area") improved the string fetching > mechanism by returning the number of required bytes after > copying the argument to the dynamic area. However, this >

Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2019-02-11 Thread Dave Young
On 02/06/19 at 08:08pm, Dave Young wrote: > On 02/05/19 at 09:15am, Borislav Petkov wrote: > > On Mon, Feb 04, 2019 at 03:30:16PM -0700, Jerry Hoemann wrote: > > > Is your objection only to the second fallback of allocating > > > memory above >= 4GB? Or are you objecting to allocating from > > >

Re: [PATCH 0/3] Add gup fast + longterm and use it in HFI1

2019-02-11 Thread Jason Gunthorpe
On Mon, Feb 11, 2019 at 12:34:17PM -0800, Davidlohr Bueso wrote: > On Mon, 11 Feb 2019, ira.we...@intel.com wrote: > > Ira Weiny (3): > > mm/gup: Change "write" parameter to flags > > mm/gup: Introduce get_user_pages_fast_longterm() > > IB/HFI1: Use new get_user_pages_fast_longterm() > > Out

Re: [PATCH 0/3] vmalloc enhancements

2019-02-11 Thread Roman Gushchin
On Mon, Feb 11, 2019 at 11:18:45AM -0800, Andrew Morton wrote: > On Mon, 11 Feb 2019 14:08:22 -0500 Johannes Weiner wrote: > > > On Wed, Dec 19, 2018 at 09:37:48AM -0800, Roman Gushchin wrote: > > > The patchset contains few changes to the vmalloc code, which are > > > leading to some

Re: [PATCH] staging: iio: ad5933: move out of staging

2019-02-11 Thread Jonathan Cameron
On Mon, 11 Feb 2019 13:43:11 -0200 Marcelo Schmitt wrote: > Move ad5933 impedance-analyzer driver from staging to mainline. > > The ad5933 is a high precision impedance converter system > solution that combines an on-board frequency generator with an > analog-to-digital converter (ADC). This

Re: [GIT PULL] of: overlay: validation checks, subsequent fixes for v20 -- correction: v4.20

2019-02-11 Thread Alan Tull
On Mon, Feb 11, 2019 at 1:13 PM Greg Kroah-Hartman wrote: > > On Mon, Feb 11, 2019 at 12:41:40PM -0600, Alan Tull wrote: > > On Fri, Nov 9, 2018 at 12:58 AM Frank Rowand wrote: > > > > What LTSI's are these patches likely to end up in? Just to be clear, > > I'm not pushing for any specific

Re: [RFC/PATCH 00/14] perf record: Add support to store data in directory

2019-02-11 Thread Stephane Eranian
On Mon, Feb 11, 2019 at 12:18 PM Jiri Olsa wrote: > > On Mon, Feb 11, 2019 at 04:32:02PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Feb 11, 2019 at 07:53:06PM +0100, Jiri Olsa escreveu: > > > On Mon, Feb 11, 2019 at 10:34:16AM -0800, Stephane Eranian wrote: > > > > On Mon, Feb 11, 2019 at

Re: [PATCH 0/3] Add gup fast + longterm and use it in HFI1

2019-02-11 Thread Jason Gunthorpe
On Mon, Feb 11, 2019 at 12:16:40PM -0800, ira.we...@intel.com wrote: > From: Ira Weiny > > NOTE: This series depends on my clean up patch to remove the write parameter > from gup_fast_permitted()[1] > > HFI1 uses get_user_pages_fast() due to it performance advantages. Like RDMA, > HFI1 pages

Re: [RFC PATCH v2] blkcg: prevent priority inversion problem during sync()

2019-02-11 Thread Andrea Righi
On Mon, Feb 11, 2019 at 10:39:34AM -0500, Josef Bacik wrote: > On Sat, Feb 09, 2019 at 03:07:49PM +0100, Andrea Righi wrote: > > This is an attempt to mitigate the priority inversion problem of a > > high-priority blkcg issuing a sync() and being forced to wait the > > completion of all the

Re: [PATCH 2/3] mm/gup: Introduce get_user_pages_fast_longterm()

2019-02-11 Thread Jason Gunthorpe
On Mon, Feb 11, 2019 at 12:16:42PM -0800, ira.we...@intel.com wrote: > From: Ira Weiny > > Users of get_user_pages_fast are not protected against mapping > pages within FS DAX. Introduce a call which protects them. > > We do this by checking for DEVMAP pages during the fast walk and > falling

Re: [PATCH 0/3] Add gup fast + longterm and use it in HFI1

2019-02-11 Thread Davidlohr Bueso
On Mon, 11 Feb 2019, ira.we...@intel.com wrote: Ira Weiny (3): mm/gup: Change "write" parameter to flags mm/gup: Introduce get_user_pages_fast_longterm() IB/HFI1: Use new get_user_pages_fast_longterm() Out of curiosity, are you planning on having all rdma drivers use

Re: [PATCH v1 1/2] PCI: ATS: Add function to check ATS page aligned request status.

2019-02-11 Thread Sinan Kaya
On 2/11/2019 2:15 PM, Raj, Ashok wrote: It seems rather odd we have to check for ATS version. I always assumed unspecified bits (Reserved) must be 0. We only check this if ATS is enabled, and this particular bit wasn't given away for another feature. Is it really required to check for ATS

Re: [RFC][PATCH 0/3] arm64 relaxed ABI

2019-02-11 Thread Evgenii Stepanov
On Mon, Feb 11, 2019 at 9:28 AM Kevin Brodsky wrote: > > On 19/12/2018 12:52, Dave Martin wrote: > > On Tue, Dec 18, 2018 at 05:59:38PM +, Catalin Marinas wrote: > >> On Tue, Dec 18, 2018 at 04:03:38PM +0100, Andrey Konovalov wrote: > >>> On Wed, Dec 12, 2018 at 4:02 PM Catalin Marinas >

Re: [PATCH v2 10/20] x86: avoid W^X being broken during modules loading

2019-02-11 Thread Nadav Amit
> On Feb 11, 2019, at 11:42 AM, Borislav Petkov wrote: > > On Mon, Feb 11, 2019 at 11:27:03AM -0800, Nadav Amit wrote: >> Is there any comment over static_cpu_has()? ;-) > > Almost: > > /* > * Static testing of CPU features. Used the same as boot_cpu_has(). > * These will statically patch the

Re: [RFC/PATCH 00/14] perf record: Add support to store data in directory

2019-02-11 Thread Song Liu
> On Feb 11, 2019, at 11:30 AM, Stephane Eranian wrote: > > Arnaldo, > > On Mon, Feb 11, 2019 at 10:55 AM Arnaldo Carvalho de Melo > wrote: >> >> Em Mon, Feb 11, 2019 at 10:34:16AM -0800, Stephane Eranian escreveu: >>> Jiri, >>> >>> On Mon, Feb 11, 2019 at 2:20 AM Jiri Olsa wrote:

Re: [PATCH] uprobes: convert uprobe.ref to refcount_t

2019-02-11 Thread Steven Rostedt
On Mon, 11 Feb 2019 15:27:25 -0500 Steven Rostedt wrote: > On Mon, 11 Feb 2019 12:21:32 -0800 > Kees Cook wrote: > > > > > Looks good to me. > > > > > > > > Reviewed-by: Srikar Dronamraju > > > > > > Thank you very much Srikar! > > > Would you be able to take this patch to integration?

Re: [PATCH] uprobes: convert uprobe.ref to refcount_t

2019-02-11 Thread Steven Rostedt
On Mon, 11 Feb 2019 12:21:32 -0800 Kees Cook wrote: > > > Looks good to me. > > > > > > Reviewed-by: Srikar Dronamraju > > > > Thank you very much Srikar! > > Would you be able to take this patch to integration? > > Steve can you pick this up with Srikar's Reviewed-by? Yep. And I'll also

Re: [PATCH v1 1/1] dt-binding: iio: remove rst node from NPCM ADC document

2019-02-11 Thread Jonathan Cameron
On Sun, 10 Feb 2019 22:47:49 +0200 Tomer Maimon wrote: > Remove NPCM7xx rst node for preparing the NPCM ADC > document to describe ADC reset binding. > > Signed-off-by: Tomer Maimon Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.

[PATCH v2 4/4] perf report: support record trace file decompression

2019-02-11 Thread Alexey Budankov
PERF_RECORD_COMPRESSED records are decompressed from trace file into a linked list of mmaped memory regions using streaming Zstandard API. After that the regions are loaded fetching uncompressed events. When dumping raw trace (e.g., perf report -D --header) file offsets of events from compressed

[PATCH v2 3/4] perf record: enable runtime trace compression

2019-02-11 Thread Alexey Budankov
Compression is implemented using simple Zstd API and employs AIO data buffer as the memory to operate on. If the API call fails for some reason compression falls back to memcpy(). Data chunks are split and packed into PERF_RECORD_COMPRESSED records by 64KB at max. mmap-flush option value can be

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-11 Thread Paul E. McKenney
On Mon, Feb 11, 2019 at 05:29:48PM +, Will Deacon wrote: > The "KERNEL I/O BARRIER EFFECTS" section of memory-barriers.txt is vague, > x86-centric, out-of-date, incomplete and demonstrably incorrect in places. > This is largely because I/O ordering is a horrible can of worms, but also >

[PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-02-11 Thread Alexey Budankov
Implement -z,--compression_level= and --mmap-flush= options as well as a special PERF_RECORD_COMPRESSED record that contains compressed parts of kernel data buffer. Because compression requires auxilary memory to implement encoding of kernel data record->opts.nr_cblocks == -1 signifies to

Re: [PATCH v4 3/3] dt-bindings: iio: chemical: pms7003: add device tree support

2019-02-11 Thread Jonathan Cameron
On Sat, 9 Feb 2019 18:36:09 +0100 Tomasz Duszynski wrote: > Add device tree support for Plantower PMS7003 particulate matter sensor. > > Signed-off-by: Tomasz Duszynski Applied to the togreg branch of iio.git and pushed out as testing. I'll be doing a pull request pretty soon on this given

Re: [PATCH] uprobes: convert uprobe.ref to refcount_t

2019-02-11 Thread Kees Cook
On Sun, Feb 3, 2019 at 10:51 PM Reshetova, Elena wrote: > > > > * Elena Reshetova [2019-01-16 13:20:27]: > > > > > atomic_t variables are currently used to implement reference > > > counters with the following properties: > > > - counter is initialized to 1 using atomic_set() > > > - a

[PATCH v2 1/4] feature: realize libzstd check, LIBZSTD_DIR and NO_LIBZSTD defines

2019-02-11 Thread Alexey Budankov
Implement libzstd feature check, NO_LIBZSTD and LIBZSTD_DIR defines to override Zstd library sources or disable the feature from the command line: $ make -C tools/perf LIBZSTD_DIR=/root/abudanko/zstd-1.3.7 clean all $ make -C tools/perf NO_LIBZSTD=1 clean all Signed-off-by: Alexey Budankov

Re: [PATCH v4 2/3] dt-bindings: add Plantower to the vendor prefixes

2019-02-11 Thread Jonathan Cameron
On Sat, 9 Feb 2019 18:36:08 +0100 Tomasz Duszynski wrote: > Add Plantower to the vendor prefixes. > > Signed-off-by: Tomasz Duszynski > Reviewed-by: Rob Herring Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to ignore this. Thanks, Jonathan > --- >

Re: [PATCH 4.20 081/352] f2fs: avoid build warn of fall_through

2019-02-11 Thread Stephen Rothwell
Hi all, On Tue, 12 Feb 2019 07:18:58 +1100 Stephen Rothwell wrote: > > Does the 4.20 stable tree use -Wimplicit-fallthrough? I assume not > (since v4.20 doesn't), so this warning does not happen in that tree. Ditto for 4.19, 4.14 and 4.9. -- Cheers, Stephen Rothwell pgp2oJEZLx65N.pgp

Re: [PATCH 4.20 081/352] f2fs: avoid build warn of fall_through

2019-02-11 Thread Stephen Rothwell
Hi Greg, On Mon, 11 Feb 2019 15:15:08 +0100 Greg Kroah-Hartman wrote: > > 4.20-stable review patch. If anyone has any objections, please let me know. > > -- > > [ Upstream commit f5d5510e7389fa264337fb524346bac9eb93adc8 ] > > After merging the f2fs tree, today's linux-next

Re: [RFC/PATCH 00/14] perf record: Add support to store data in directory

2019-02-11 Thread Jiri Olsa
On Mon, Feb 11, 2019 at 04:32:02PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Feb 11, 2019 at 07:53:06PM +0100, Jiri Olsa escreveu: > > On Mon, Feb 11, 2019 at 10:34:16AM -0800, Stephane Eranian wrote: > > > On Mon, Feb 11, 2019 at 2:20 AM Jiri Olsa wrote: > > > > On Tue, Feb 05, 2019 at

RE: [PATCH V18 2/6] i2c: tegra: add bus clear Master Support

2019-02-11 Thread Sowjanya Komatineni
> > Bus clear feature of Tegra I2C controller helps to recover from bus > > hang when I2C master loses the bus arbitration due to the slave device > > holding SDA LOW continuously for some unknown reasons. > > > > Per I2C specification, the device that held the bus LOW should release > > it

Re: [PATCH v4 1/3] iio: chemical: add support for Plantower PMS7003 sensor

2019-02-11 Thread Jonathan Cameron
On Sat, 9 Feb 2019 18:36:07 +0100 Tomasz Duszynski wrote: > Add support for Plantower PMS7003 particulate matter sensor. > > Signed-off-by: Tomasz Duszynski Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. I made a really small tweak to

[PATCH] vfio/pci: Restore device state on PM transition

2019-02-11 Thread Alex Williamson
PCI core handles save and restore of device state around reset, but when using pci_set_power_state() we can unintentionally trigger a soft reset of the device, where PCI core only restores the BAR state. If we're using vfio-pci's idle D3 support to try to put devices into low power when unused,

Re: [PATCH] iio: adc: ti-ads7950: add GPIO support

2019-02-11 Thread Justin Chen
On Mon, Feb 11, 2019 at 12:06 PM Jonathan Cameron wrote: > > On Sat, 9 Feb 2019 12:56:11 -0600 > David Lechner wrote: > > > On 2/9/19 11:00 AM, Jonathan Cameron wrote: > > > Nope. This is a state lock used to protect against transitions between > > > different modes of the IIO device (buffered

[PATCH 1/3] mm/gup: Change "write" parameter to flags

2019-02-11 Thread ira . weiny
From: Ira Weiny In order to support more options in the GUP fast walk, change the write parameter to flags throughout the call stack. This patch does not change functionality and passes FOLL_WRITE where write was previously used. Signed-off-by: Ira Weiny --- mm/gup.c | 52

[PATCH 2/3] mm/gup: Introduce get_user_pages_fast_longterm()

2019-02-11 Thread ira . weiny
From: Ira Weiny Users of get_user_pages_fast are not protected against mapping pages within FS DAX. Introduce a call which protects them. We do this by checking for DEVMAP pages during the fast walk and falling back to the longterm gup call to check for FS DAX if needed. Signed-off-by: Ira

[PATCH v2 0/4] perf: enable compression of record mode trace to save storage space

2019-02-11 Thread Alexey Budankov
This is the rebase to the tip of Arnaldo's perf/core repository. The patch set implements runtime trace compression for record mode and trace file decompression for report mode. Zstandard API [1] is used for compression/decompression of data that come from perf_events kernel data buffers.

[PATCH 0/3] Add gup fast + longterm and use it in HFI1

2019-02-11 Thread ira . weiny
From: Ira Weiny NOTE: This series depends on my clean up patch to remove the write parameter from gup_fast_permitted()[1] HFI1 uses get_user_pages_fast() due to it performance advantages. Like RDMA, HFI1 pages can be held for a significant time. But get_user_pages_fast() does not protect

[PATCH 3/3] IB/HFI1: Use new get_user_pages_fast_longterm()

2019-02-11 Thread ira . weiny
From: Ira Weiny Use the new get_user_pages_fast_longterm() call to protect against FS DAX pages being mapped. Signed-off-by: Ira Weiny --- drivers/infiniband/hw/hfi1/user_pages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hfi1/user_pages.c

Re: [PATCH net-next v4 0/9] net: Remove switchdev_ops

2019-02-11 Thread David Miller
From: Florian Fainelli Date: Mon, 11 Feb 2019 11:09:52 -0800 > David, I would like to get Ido's feedback on this to make sure I did not > miss something, thank you! Ok, Ido please look at this when you can.

Re: [GIT PULL] Thermal-SoC management fixes for v5.0-rc6

2019-02-11 Thread Konstantin Ryabitsev
On Mon, Feb 11, 2019 at 10:34:09AM -0800, Linus Torvalds wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal > > fixes > > has been merged into torvalds/linux.git: > https://git.kernel.org/torvalds/c/7ad915f5ebf5b9e7ca98a7048d8f84a631fe388b I think the bot is

Re: [PATCH 2/2] ARM: dts: imx7: add DMA properties for ECSPI

2019-02-11 Thread Trent Piepho
On Mon, 2019-02-11 at 09:23 +0800, Shawn Guo wrote: > On Thu, Feb 07, 2019 at 09:00:44PM +, Trent Piepho wrote: > > On Mon, 2019-01-07 at 14:22 +0100, Stefan Agner wrote: > > > Allow to use DMA for SPI by adding the appropriate DMA properites > > > to the ecspi nodes. > > > > > >

RE: [PATCH] cpufreq: intel_pstate: Rework iowait boosting to be less aggressive

2019-02-11 Thread Doug Smythies
On 2019.02.05 04:04 Rafael J. Wysocki wrote: > On Friday, February 1, 2019 5:54:37 PM CET Doug Smythies wrote: >> On 2019.01.30 16:05 Rafael J. Wysocki wrote: >> >>> From: Rafael J. Wysocki >>> >>> The current iowait boosting mechanism in intel_pstate_update_util() >>> is quite aggressive, as it

Re: [PATCH] misc: aspeed-lpc-ctrl: Correct return values

2019-02-11 Thread Vijay Khemka
On 2/10/19, 9:22 PM, "Andrew Jeffery" wrote: On Fri, 25 Jan 2019, at 05:59, Vijay Khemka wrote: > > > On 1/24/19, 12:16 AM, "Greg Kroah-Hartman" wrote: > > On Wed, Jan 23, 2019 at 03:06:34PM -0800, Vijay Khemka wrote: > > Corrected some of return

[GIT PULL rcu/next] RCU commits for 5.1

2019-02-11 Thread Paul E. McKenney
Hello, Ingo, This pull request contains the following changes: 1. Additional cleanups after RCU flavor consolidation. http://lkml.kernel.org/r/20190109211830.ga30...@linux.ibm.com 2. Grace-period forward-progress cleanups and improvements.

Re: [PATCH 0/9] perf annotation of BPF programs

2019-02-11 Thread Song Liu
> On Feb 11, 2019, at 10:54 AM, Arnaldo Carvalho de Melo > wrote: > > Em Fri, Feb 08, 2019 at 05:16:56PM -0800, Song Liu escreveu: >> This series enables annotation of BPF programs in perf. >> >> perf tool gathers information via sys_bpf and (optionally) stores them in >> perf.data as

Re: [PATCH v8 0/3] x86/boot/KASLR: Parse ACPI table and limit kaslr in immovable memory

2019-02-11 Thread Masayoshi Mizuma
Hi Chao, Thank you for your review. On Mon, Feb 11, 2019 at 09:46:05AM +0800, Chao Fan wrote: > On Tue, Feb 05, 2019 at 10:05:16AM -0500, Masayoshi Mizuma wrote: > [...] > > Hi Masa, > > Sorry for delay, since last days were Chinese holiday. > > >diff --git a/arch/x86/boot/compressed/acpi.c

Re: [PATCH] iio: adc: ti-ads7950: add GPIO support

2019-02-11 Thread Jonathan Cameron
On Sat, 9 Feb 2019 12:56:11 -0600 David Lechner wrote: > On 2/9/19 11:00 AM, Jonathan Cameron wrote: > > Nope. This is a state lock used to protect against transitions between > > different modes of the IIO device (buffered vs polled), it > > isn't suitable for general use. > > > > The driver

Re: [GIT PULL] Thermal-SoC management fixes for v5.0-rc6

2019-02-11 Thread Konstantin Ryabitsev
On Mon, 11 Feb 2019 at 13:40, Konstantin Ryabitsev wrote: > >> On Sun, Feb 10, 2019 at 04:25:16AM +, pr-tracker-...@kernel.org wrote: > >> > The pull request you sent on Sat, 9 Feb 2019 20:17:23 -0800: > >> > > >> > > git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal >

Re: [v3 PATCH 8/8] RISC-V: Assign hwcap only according to boot cpu.

2019-02-11 Thread Atish Patra
On 2/11/19 11:02 AM, Palmer Dabbelt wrote: On Fri, 08 Feb 2019 20:26:07 PST (-0800), david.abdurachma...@gmail.com wrote: On Sat, Feb 9, 2019 at 12:03 AM Atish Patra wrote: On 2/8/19 1:11 AM, Christoph Hellwig wrote: + * We don't support running Linux on hertergenous ISA systems. +

Re: [RFC PATCH 0/4] Restore change_pte optimization to its former glory

2019-02-11 Thread Andrea Arcangeli
On Mon, Feb 11, 2019 at 02:09:31PM -0500, Jerome Glisse wrote: > Yeah, between do you have any good workload for me to test this ? I > was thinking of running few same VM and having KSM work on them. Is > there some way to trigger KVM to fork ? As the other case is breaking > COW after fork. KVM

Re: [PATCH 0/5] riscv: minor fixes and cleanups

2019-02-11 Thread Palmer Dabbelt
On Mon, 11 Feb 2019 01:34:06 PST (-0800), jo...@kernel.org wrote: On Fri, Jan 18, 2019 at 03:03:03PM +0100, Johan Hovold wrote: This series fix up some minor issues found through inspection. Note that the fourth patch changes which cpu (hart) devicetree nodes are enabled by following the Linux

d_type and bind mounts

2019-02-11 Thread Tavian Barnes
It seems that readdir()/getdents() fill d_type from the underlying filesystem, not respecting bind mounts of non-directories: $ touch mount_point $ sudo mount --bind /dev/null mount_point $ find -name mount_point -type c $ find -name mount_point -type f ./mount_point (Requires a fairly recent

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-11 Thread Dan Williams
On Mon, Feb 11, 2019 at 10:40 AM Matthew Wilcox wrote: > > On Mon, Feb 11, 2019 at 11:26:49AM -0700, Jason Gunthorpe wrote: > > On Mon, Feb 11, 2019 at 10:19:22AM -0800, Ira Weiny wrote: > > > What if user space then writes to the end of the file with a regular > > > write? > > > Does that write

Re: [PATCH 4.19 000/313] 4.19.21-stable review

2019-02-11 Thread kernelci.org bot
stable-rc/linux-4.19.y boot: 113 boots: 0 failed, 112 passed with 1 untried/unknown (v4.19.20-313-g175a7aa1da44) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.19.y/kernel/v4.19.20-313-g175a7aa1da44/ Full Build Summary:

Re: [PATCH v8 3/7] mm, devm_memremap_pages: Fix shutdown handling

2019-02-11 Thread Jerome Glisse
On Sun, Feb 10, 2019 at 12:09:08PM +0100, Krzysztof Grygiencz wrote: > Dear Sir, > > I'm using ArchLinux distribution. After kernel upgrade form 4.19.14 to > 4.19.15 my X environment stopped working. I have AMD HD3300 (RS780D) > graphics card. I have bisected kernel and found a failing commit: >

Re: [RFC PATCH 3/4] kvm: Add guest side support for free memory hints

2019-02-11 Thread Michael S. Tsirkin
On Mon, Feb 11, 2019 at 10:19:17AM -0800, Dave Hansen wrote: > On 2/11/19 9:58 AM, Michael S. Tsirkin wrote: > >>> Really it seems we want a virtio ring so we can pass a batch of these. > >>> E.g. 256 entries, 2M each - that's more like it. > >> That only makes sense for a system that's doing

Re: [PATCH] tracing: print function names instead of just address

2019-02-11 Thread Steven Rostedt
On Sun, 10 Feb 2019 00:19:19 +0800 Changbin Du wrote: > Here is an example for this change. > > $ sudo perf record -e 'ftrace:function' --filter='ip==schedule' > $ sudo perf report I took this but changed the subject as it only affects perf (the kernel doesn't use the format field for output,

[GIT PULL] ARM: samsung: mach/soc for v5.1

2019-02-11 Thread Krzysztof Kozlowski
The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-soc-5.1 for you to fetch changes up to

Re: [RFC PATCH 3/4] kvm: Add guest side support for free memory hints

2019-02-11 Thread Michael S. Tsirkin
On Mon, Feb 11, 2019 at 10:10:06AM -0800, Alexander Duyck wrote: > On Mon, 2019-02-11 at 12:36 -0500, Michael S. Tsirkin wrote: > > On Mon, Feb 11, 2019 at 08:31:34AM -0800, Alexander Duyck wrote: > > > On Sat, 2019-02-09 at 19:49 -0500, Michael S. Tsirkin wrote: > > > > On Mon, Feb 04, 2019 at

Re: [PATCH v2] xsk: share the mmap_sem for page pinning

2019-02-11 Thread Daniel Borkmann
On 02/11/2019 05:15 PM, Davidlohr Bueso wrote: > Holding mmap_sem exclusively for a gup() is an overkill. > Lets share the lock and replace the gup call for gup_longterm(), > as it is better suited for the lifetime of the pinning. > > Cc: David S. Miller > Cc: Bjorn Topel > Cc: Magnus Karlsson

Re: [PATCH v3 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-02-11 Thread Ezequiel Garcia
On Mon, 2019-02-11 at 15:39 +0100, Maxime Ripard wrote: > From: Pawel Osciak > > Stateless video codecs will require both the H264 metadata and slices in > order to be able to decode frames. > > This introduces the definitions for a new pixel format for H264 slices that > have been parsed, as

Re: [RFC PATCH v4 3/3] sysctl: return -EINVAL if val violates minmax

2019-02-11 Thread Luis Chamberlain
On Sun, Feb 10, 2019 at 09:39:43PM +0100, Christian Brauner wrote: > Currently when userspace gives us a values that overflow e.g. file-max and > other callers of __do_proc_doulongvec_minmax() we simply > ignore the new value and leave the current value untouched. This can be > problematic as it

Re: [PATCH v3 2/2] media: cedrus: Add H264 decoding support

2019-02-11 Thread Ezequiel Garcia
On Mon, 2019-02-11 at 15:39 +0100, Maxime Ripard wrote: > Introduce some basic H264 decoding support in cedrus. So far, only the > baseline profile videos have been tested, and some more advanced features > used in higher profiles are not even implemented. > > Signed-off-by: Maxime Ripard [..]

Re: [PATCH v2 10/20] x86: avoid W^X being broken during modules loading

2019-02-11 Thread Borislav Petkov
On Mon, Feb 11, 2019 at 11:27:03AM -0800, Nadav Amit wrote: > Is there any comment over static_cpu_has()? ;-) Almost: /* * Static testing of CPU features. Used the same as boot_cpu_has(). * These will statically patch the target code for additional * performance. */ static __always_inline

[PATCH tip/core/rcu] tools/.../rcutorture: Convert to SPDX license identifier

2019-02-11 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address and add copyright notices. Signed-off-by: Paul E. McKenney diff --git a/tools/testing/selftests/rcutorture/bin/configNR_CPUS.sh b/tools/testing/selftests/rcutorture/bin/configNR_CPUS.sh

Re: [PATCH 3/4] Makefile: lld: tell clang to use lld

2019-02-11 Thread Nick Desaulniers
On Mon, Feb 11, 2019 at 8:05 AM Sedat Dilek wrote: > > On Mon, Feb 11, 2019 at 4:33 PM Masahiro Yamada > wrote: > [ ... ] > > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/342 > > > > > Suggested-by: Nathan Chancellor > > > > > Signed-off-by: Nick Desaulniers > > > > > --- > > >

Re: [PATCH v2 09/20] x86/kprobes: instruction pages initialization enhancements

2019-02-11 Thread Nadav Amit
> On Feb 11, 2019, at 10:22 AM, Borislav Petkov wrote: > > Only nitpicks: Thanks for the feedback. Applied.

Re: [PATCH] arm64: dts: sdm845: Add dynamic CPU power coefficients

2019-02-11 Thread Doug Anderson
Hi, On Mon, Feb 11, 2019 at 11:00 AM Matthias Kaehlcke wrote: > > Add dynamic power coefficients for the Silver and Gold CPU cores of > the Qualcomm SDM845. > > Signed-off-by: Matthias Kaehlcke > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 8 > 1 file changed, 8 insertions(+)

Re: [PULL] topic/component-typed

2019-02-11 Thread Greg KH
On Mon, Feb 11, 2019 at 08:18:04PM +0100, Daniel Vetter wrote: > On Mon, Feb 11, 2019 at 7:57 PM Takashi Iwai wrote: > > > > On Mon, 11 Feb 2019 19:25:12 +0100, > > Sam Ravnborg wrote: > > > > > > Hi Daniel. > > > > > > On Mon, Feb 11, 2019 at 06:15:20PM +0100, Daniel Vetter wrote: > > > > Hi

Re: [PATCH 3/4] Makefile: lld: tell clang to use lld

2019-02-11 Thread Nick Desaulniers
On Thu, Feb 7, 2019 at 9:51 PM Nathan Chancellor wrote: > > On Thu, Feb 07, 2019 at 02:01:51PM -0800, ndesaulni...@google.com wrote: > > This is needed because clang doesn't select which linker to use based on > > $LD but rather -fuse-ld=$(LD). This is problematic especially for > > cc-ldoption,

[PATCH v2 0/2] locking/rwsem: Remove arch specific rwsem files

2019-02-11 Thread Waiman Long
v2: - Add patch 2 to optimize __down_read_trylock() as suggested by PeterZ. - Update performance test data in patch 1. This is part 0 of my rwsem patchset. It just removes the architecture specific files to make it easer to add enhancements in the upcoming rwsem patches. Since the two ll/sc

Re: [RFC/PATCH 00/14] perf record: Add support to store data in directory

2019-02-11 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 11, 2019 at 07:53:06PM +0100, Jiri Olsa escreveu: > On Mon, Feb 11, 2019 at 10:34:16AM -0800, Stephane Eranian wrote: > > On Mon, Feb 11, 2019 at 2:20 AM Jiri Olsa wrote: > > > On Tue, Feb 05, 2019 at 02:37:27PM +0100, Jiri Olsa wrote: > > > I think all could be added and worked

[PATCH v2 1/2] locking/rwsem: Remove arch specific rwsem files

2019-02-11 Thread Waiman Long
As the generic rwsem-xadd code is using the appropriate acquire and release versions of the atomic operations, the arch specific rwsem.h files will not be that much faster than the generic code as long as the atomic functions are properly implemented. So we can remove those arch specific rwsem.h

[PATCH v2 2/2] locking/rwsem: Optimize down_read_trylock()

2019-02-11 Thread Waiman Long
Modify __down_read_trylock() to make it generate slightly better code (smaller and maybe a tiny bit faster). Before this patch, down_read_trylock: 0x <+0>: callq 0x5 0x0005 <+5>: jmp0x18 0x0007 <+7>: lea0x1(%rdx),%rcx

[PATCH v2 4/4] Makefile: lld: set -O2 linker flag when linking with LLD

2019-02-11 Thread ndesaulniers
For arm64: 0.34% size improvement with lld -O2 over lld for vmlinux. 3.3% size improvement with lld -O2 over lld for Image.lz4-dtb. Link: https://github.com/ClangBuiltLinux/linux/issues/343 Suggested-by: Rui Ueyama Suggested-by: Nathan Chancellor Reviewed-by: Nathan Chancellor Tested-by:

[PATCH v2 2/4] Makefile: clang: choose GCC_TOOLCHAIN_DIR not on LD

2019-02-11 Thread ndesaulniers
This causes an issue when trying to build with `make LD=ld.lld` if ld.lld and the rest of your cross tools aren't in the same directory (ex. /usr/local/bin) (as is the case for Android's build system), as the GCC_TOOLCHAIN_DIR then gets set based on `which $(LD)` which will point where LLVM tools

[PATCH v2 0/4] Improve kernel LLD support

2019-02-11 Thread ndesaulniers
This patch cleans up a few places in the Makefile to make way for landing LLD support in the kernel. There are still a few arch specific fixes that need to get upstreamed, but this core set of patches should be arch independent. Some very rough numbers: LLD is improving the overall build time of

[PATCH v2 3/4] Makefile: lld: tell clang to use lld

2019-02-11 Thread ndesaulniers
This is needed because clang doesn't select which linker to use based on $LD but rather -fuse-ld=lld. This is problematic especially for cc-ldoption, which checks for linker flag support via invoking the compiler, rather than the linker. Link: https://github.com/ClangBuiltLinux/linux/issues/342

[PATCH v2 1/4] init/Kconfig: add config support for detecting linker

2019-02-11 Thread ndesaulniers
Similar to how we differentiate between CONFIG_CC_IS_GCC and CONFIG_CC_IS_CLANG, add CONFIG_LD_IS_BFD, CONFIG_LD_IS_GOLD, and CONFIG_LD_IS_LLD. This simiplifies patches to Makefiles that need to do different things for different linkers. Cc: Sami Tolvanen Suggested-by: Sedat Dilek Reviewed-by:

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