[PATCH v6 0/4] Support accelerometers for veyron_minnie

2019-07-15 Thread Gwendal Grignou
veyron_minnie - ASUS Chromebook Flip C100PA - embedded controller controls two accelerometers, one in the lid, one in the base. However, the EC firmware does not follow the new interface that cros_ec_accel driver use. Extend the legacy driver used on glimmer - Lenovo ThinkPad 11e Chromebook - to

[PATCH v6 1/4] iio: cros_ec: Add sign vector in core for backward compatibility

2019-07-15 Thread Gwendal Grignou
To allow cros_ec iio core library to be used with legacy device, add a vector to rotate sensor data if necessary: legacy devices are not reporting data in HTML5/Android sensor referential. Check the data is not rotated on recent chromebooks that use the HTML5 standard to present sensor data.

[PATCH v6 4/4] iio: cros_ec_accel_legacy: Add support for veyron-minnie

2019-07-15 Thread Gwendal Grignou
Veyron minnie embedded controller presents 2 accelerometers using an older interface. Add function to query the data in cros_ec_accel. Verify accelerometers on veyron-minnie are presented and working. Signed-off-by: Gwendal Grignou Acked-by: Jonathan Cameron ---

Re: [RFC PATCH, x86]: Disable CPA cache flush for selfsnoop targets

2019-07-15 Thread Andy Lutomirski
On Mon, Jul 15, 2019 at 3:53 PM Andi Kleen wrote: > > > I haven't tested on a real kernel with i915. Does i915 really hit > > this code path? Does it happen more than once or twice at boot? > > Yes some workloads allocate/free a lot of write combined memory > for graphics objects. > But where

Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-07-15 Thread Thiago Jung Bauermann
Michael S. Tsirkin writes: > On Mon, Jul 15, 2019 at 07:03:03PM -0300, Thiago Jung Bauermann wrote: >> >> Michael S. Tsirkin writes: >> >> > On Mon, Jul 15, 2019 at 05:29:06PM -0300, Thiago Jung Bauermann wrote: >> >> >> >> Michael S. Tsirkin writes: >> >> >> >> > On Sun, Jul 14, 2019 at

[PATCH] dt-bindings: Ensure child nodes are of type 'object'

2019-07-15 Thread Rob Herring
Properties which are child node definitions need to have an explict type. Otherwise, a matching (DT) property can silently match when an error is desired. Fix this up tree-wide. Once this is fixed, the meta-schema will enforce this on any child node definitions. Cc: Maxime Ripard Cc: Chen-Yu

Re: [PATCH v1 2/2] clk: qcom : dispcc: Add support for display port clocks

2019-07-15 Thread Stephen Boyd
Quoting chand...@codeaurora.org (2019-02-01 16:05:55) > On 2018-10-29 11:43, Stephen Boyd wrote: > > Quoting Taniya Das (2018-10-28 03:34:55) > >> On 2018-10-19 16:04, Taniya Das wrote: > > >> >> > >> >>> +static struct clk_branch disp_cc_mdss_dp_link_intf_clk = { > >> >>> + .halt_reg =

Re: [PATCH] mm: Proportional memory.{low,min} reclaim

2019-07-15 Thread Chris Down
Hey Andrew, Andrew Morton writes: On Mon, 28 Jan 2019 21:52:40 + Roman Gushchin wrote: > Hmm, this isn't really a common situation that I'd thought about, but it > seems reasonable to make the boundaries when in low reclaim to be between > min and low, rather than 0 and low. I'll add

Re: [PATCH V35 23/29] bpf: Restrict bpf when kernel lockdown is in confidentiality mode

2019-07-15 Thread Daniel Borkmann
On 7/15/19 9:59 PM, Matthew Garrett wrote: > From: David Howells > > bpf_read() and bpf_read_str() could potentially be abused to (eg) allow > private keys in kernel memory to be leaked. Disable them if the kernel > has been locked down in confidentiality mode. > > Suggested-by: Alexei

Re: [RFC PATCH, x86]: Disable CPA cache flush for selfsnoop targets

2019-07-15 Thread Andi Kleen
> I haven't tested on a real kernel with i915. Does i915 really hit > this code path? Does it happen more than once or twice at boot? Yes some workloads allocate/free a lot of write combined memory for graphics objects. -Andi

Re: [PATCH v1 2/3] clk: qcom: rcg2: Add support for hardware control mode

2019-07-15 Thread Stephen Boyd
Quoting Taniya Das (2019-05-08 11:24:54) > diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c > index 57dbac9..5bb6d45 100644 > --- a/drivers/clk/qcom/clk-rcg2.c > +++ b/drivers/clk/qcom/clk-rcg2.c > @@ -289,6 +289,9 @@ static int __clk_rcg2_configure(struct clk_rcg2 *rcg, >

Re: [PATCH v1 1/3] clk: qcom: rcg: Return failure for RCG update

2019-07-15 Thread Stephen Boyd
Quoting Taniya Das (2019-05-08 11:24:53) > In case of update config failure, return -EBUSY, so that consumers could > handle the failure gracefully. > > Signed-off-by: Taniya Das > --- Applied to clk-next

Re: [PATCH v1 3/3] clk: qcom: rcg: update the DFS macro for RCG

2019-07-15 Thread Stephen Boyd
Quoting Taniya Das (2019-05-12 20:44:46) > On 5/10/2019 11:24 PM, Stephen Boyd wrote: > diff --git a/drivers/clk/qcom/clk-rcg.h b/drivers/clk/qcom/clk-rcg.h > index 5562f38..e40e8f8 100644 > --- a/drivers/clk/qcom/clk-rcg.h > +++ b/drivers/clk/qcom/clk-rcg.h > @@ -171,7

Re: [PATCH v2 1/2] clk: qcom: rcg2: Add support for display port clock ops

2019-07-15 Thread Stephen Boyd
Quoting Taniya Das (2019-05-14 21:20:38) > diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig > index 18bdf34..0de080f 100644 > --- a/drivers/clk/qcom/Kconfig > +++ b/drivers/clk/qcom/Kconfig > @@ -15,6 +15,7 @@ menuconfig COMMON_CLK_QCOM > depends on ARCH_QCOM ||

Re: [PATCH v9] Documentation: filesystem: Convert xfs.txt to ReST

2019-07-15 Thread Sheriff Esseson
Move xfs.txt to admin-guide, convert to ReST and fix broken references. Signed-off-by: Sheriff Esseson --- Changes in v9: - fix table for "Removed Sysctls". - "Deprecated Mount Options", just like "Deprecated Sysctls", currently needs no table - remove table.

Re: [patch v2] crypto: ccp - Fix SEV_VERSION_GREATER_OR_EQUAL

2019-07-15 Thread Gary R Hook
On 7/15/19 12:03 PM, Lendacky, Thomas wrote: > On 7/12/19 3:41 PM, David Rientjes wrote: >> SEV_VERSION_GREATER_OR_EQUAL() will fail if upgrading from 2.2 to 3.1, for >> example, because the minor version is not equal to or greater than the >> major. >> >> Fix this and move to a static inline

Re: [PATCH v2 2/2] clk: qcom : dispcc: Add support for display port clocks

2019-07-15 Thread Stephen Boyd
Quoting Taniya Das (2019-05-14 21:20:39) > @@ -128,6 +144,82 @@ enum { > }, > }; > > +static const struct freq_tbl ftbl_disp_cc_mdss_dp_aux_clk_src[] = { > + F(1920, P_BI_TCXO, 1, 0, 0), > + { } > +}; > + > +static struct clk_rcg2 disp_cc_mdss_dp_aux_clk_src = { > +

Re: [PATCH] mm: Proportional memory.{low,min} reclaim

2019-07-15 Thread Andrew Morton
On Mon, 28 Jan 2019 21:52:40 + Roman Gushchin wrote: > > Hmm, this isn't really a common situation that I'd thought about, but it > > seems reasonable to make the boundaries when in low reclaim to be between > > min and low, rather than 0 and low. I'll add another patch with that. Thanks > >

Re: [PATCH 4/6] kvm: lapic: Add apicv activate/deactivate helper function

2019-07-15 Thread Suthikulpanit, Suravee
Jan, On 5/8/2019 5:27 PM, Jan H. Schönherr wrote: > On 22/03/2019 12.57, Suthikulpanit, Suravee wrote: >> Introduce a helper function for setting lapic parameters when >> activate/deactivate apicv. >> >> Signed-off-by: Suravee Suthikulpanit >> --- >> arch/x86/kvm/lapic.c | 23

Re: [PATCH] staging: kpc2000: whitespace and line length cleanup

2019-07-15 Thread Joe Perches
On Mon, 2019-07-15 at 14:21 -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > This commit was created by running indent(1): > `indent -linux` > > ...and then applying some manual corrections and > cleanup afterward, to keep it sane. No functional changes > were made. I don't

Re: [PATCH] staging: kpc2000: whitespace and line length cleanup

2019-07-15 Thread John Hubbard
On 7/15/19 3:21 PM, Joe Perches wrote: > On Mon, 2019-07-15 at 14:21 -0700, john.hubb...@gmail.com wrote: >> From: John Hubbard >> >> This commit was created by running indent(1): >> `indent -linux` >> >> ...and then applying some manual corrections and >> cleanup afterward, to keep it sane.

Re: [v2 PATCH 0/2] mm: mempolicy: fix mbind()'s inconsistent behavior for unmovable pages

2019-07-15 Thread Andrew Morton
On Sat, 22 Jun 2019 08:20:07 +0800 Yang Shi wrote: > > Changelog > v2: * Fixed the inconsistent behavior by not aborting !vma_migratable() > immediately by a separate patch (patch 1/2), and this is also the > preparation for patch 2/2. For the details please see the commit >

Re: [PATCH v2 1/2] dt-bindings: mmc: Document Aspeed SD controller

2019-07-15 Thread Rob Herring
On Thu, Jul 11, 2019 at 9:32 PM Andrew Jeffery wrote: > > The ASPEED SD/SDIO/eMMC controller exposes two slots implementing the > SDIO Host Specification v2.00, with 1 or 4 bit data buses, or an 8 bit > data bus if only a single slot is enabled. > > Signed-off-by: Andrew Jeffery > --- > In v2: >

[PATCH v2] nvmet-file: fix nvmet_file_flush() always returning an error

2019-07-15 Thread Logan Gunthorpe
Presently, nvmet_file_flush() always returns a call to errno_to_nvme_status() but that helper doesn't take into account the case when errno=0. So nvmet_file_flush() always returns an error code. All other callers of errno_to_nvme_status() check for success before calling it. To fix this, ensure

Re: [RFC PATCH, x86]: Disable CPA cache flush for selfsnoop targets

2019-07-15 Thread Andy Lutomirski
On Mon, Jul 15, 2019 at 12:38 PM Andi Kleen wrote: > > > > > That does not answer the question whether it's worthwhile to do that. > > It's likely worthwhile for (Intel integrated) graphics. > > There was also a recent issue with 3dxp/dax, which uses ioremap in some > cases. > FWIW, I applied

[PATCH] s390: enable detection of kernel version from bzImage

2019-07-15 Thread Vasily Gorbik
Extend "parmarea" to include an offset of the version string, which is stored as 8-byte big endian value. To retrieve version string from bzImage reliably, one should check the presence of "S390EP" ascii string at 0x10008 (available since v3.2), then read the version string offset from 0x10428

Re: [PATCH 2/2] s390: add Linux banner to the compressed image

2019-07-15 Thread Vasily Gorbik
On Sun, Jul 14, 2019 at 03:52:52PM +, Petr Tesarik wrote: > On Sun, 14 Jul 2019 16:35:33 +0200 > Vasily Gorbik wrote: > > > On Fri, Jul 12, 2019 at 07:21:01PM +0200, Petr Tesarik wrote: > > > Various tools determine the kernel version from a given binary by > > > scanning for the Linux

Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-07-15 Thread Thiago Jung Bauermann
Michael S. Tsirkin writes: > On Mon, Jul 15, 2019 at 05:29:06PM -0300, Thiago Jung Bauermann wrote: >> >> Michael S. Tsirkin writes: >> >> > On Sun, Jul 14, 2019 at 02:51:18AM -0300, Thiago Jung Bauermann wrote: >> >> >> >> >> >> Michael S. Tsirkin writes: >> >> >> >> > So this is what I

Re: [PATCH] staging: kpc2000: Convert put_page() to put_user_page*()

2019-07-15 Thread John Hubbard
On 7/15/19 3:01 PM, John Hubbard wrote: > On 7/15/19 2:47 PM, Matt Sickler wrote: ... > I agree: the PageReserved check looks unnecessary here, from my > outside-the-kpc_2000-team > perspective, anyway. Assuming that your analysis above is correct, you could > collapse that > whole think into

Re: [PATCH v9 03/18] kunit: test: add string_stream a std::stream like string builder

2019-07-15 Thread Stephen Boyd
Quoting Brendan Higgins (2019-07-15 14:11:50) > On Mon, Jul 15, 2019 at 1:43 PM Stephen Boyd wrote: > > > > I also wonder if it would be better to just have a big slop buffer of a > > 4K page or something so that we almost never have to allocate anything > > with a string_stream and we can just

[PATCH v5 0/4] Support accelerometers for veyron_minnie

2019-07-15 Thread Gwendal Grignou
veyron_minnie - ASUS Chromebook Flip C100PA - embedded controller controls two accelerometers, one in the lid, one in the base. However, the EC firmware does not follow the new interface that cros_ec_accel driver use. Extend the legacy driver used on glimmer - Lenovo ThinkPad 11e Chromebook - to

[PATCH v5 3/4] iio: cros_ec_accel_legacy: Use cros_ec_sensors_core

2019-07-15 Thread Gwendal Grignou
Remove duplicate code in cros-ec-accel-legacy, use cros-ec-sensors-core functions and structures when possible. On glimmer, check the 2 accelerometers are presented and working. Signed-off-by: Gwendal Grignou Acked-by: Jonathan Cameron --- drivers/iio/accel/Kconfig| 4 +-

[PATCH v5 1/4] iio: cros_ec: Add sign vector in core for backward compatibility

2019-07-15 Thread Gwendal Grignou
To allow cros_ec iio core library to be used with legacy device, add a vector to rotate sensor data if necessary: legacy devices are not reporting data in HTML5/Android sensor referential. Check the data is not rotated on recent chromebooks that use the HTML5 standard to present sensor data.

[PATCH v5 4/4] iio: cros_ec_accel_legacy: Add support for veyron-minnie

2019-07-15 Thread Gwendal Grignou
Veyron minnie embedded controller presents 2 accelerometers using an older interface. Add function to query the data in cros_ec_accel. Verify accelerometers on veyron-minnie are presented and working. Signed-off-by: Gwendal Grignou Acked-by: Jonathan Cameron ---

[PATCH v5 2/4] iio: cros_ec_accel_legacy: Fix incorrect channel setting

2019-07-15 Thread Gwendal Grignou
INFO_SCALE is set both for each channel and all channels. iio is using all channel setting, so the error was not user visible. Signed-off-by: Gwendal Grignou --- drivers/iio/accel/cros_ec_accel_legacy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/accel/cros_ec_accel_legacy.c

Re: [PATCH] staging: kpc2000: Convert put_page() to put_user_page*()

2019-07-15 Thread John Hubbard
On 7/15/19 2:47 PM, Matt Sickler wrote: > It looks like Outlook is going to absolutely trash this email. Hopefully it > comes through okay. > ... >> >> Because this is a common pattern, and because the code here doesn't likely >> need to set page dirty before the dma_unmap_sg call, I think the

Re: [PATCH 1/6] clk: Sync prototypes for clk_bulk_enable()

2019-07-15 Thread Stephen Boyd
Quoting Andrey Smirnov (2019-07-15 13:12:29) > No-op version of clk_bulk_enable() should have the same protoype as > the real implementation, so constify the last argument to make it so. > > Signed-off-by: Andrey Smirnov > Cc: Russell King > Cc: Chris Healy > Cc: linux-...@vger.kernel.org >

Re: [PATCH] mm/hmm: Fix bad subpage pointer in try_to_unmap_one

2019-07-15 Thread Andrew Morton
On Tue, 9 Jul 2019 18:24:57 -0700 Ralph Campbell wrote: > > On 7/9/19 5:28 PM, Andrew Morton wrote: > > On Tue, 9 Jul 2019 15:35:56 -0700 Ralph Campbell > > wrote: > > > >> When migrating a ZONE device private page from device memory to system > >> memory, the subpage pointer is initialized

Re: [PATCH 2/3] iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9sd1

2019-07-15 Thread Lorenzo Bianconi
> The LSM9DS1's accelerometer / gyroscope unit and it's magnetometer (separately > supported in iio/magnetometer/st_magn*) are located on a separate i2c > addresses > on the bus. > > For the datasheet, see https://www.st.com/resource/en/datasheet/lsm9ds1.pdf > > Treat it just like the LSM6*

[PATCH v2] staging: kpc2000: Convert put_page() to put_user_page*()

2019-07-15 Thread Bharath Vedartham
There have been issues with get_user_pages and filesystem writeback. The issues are better described in [1]. The solution being proposed wants to keep track of gup_pinned pages which will allow to take furthur steps to coordinate between subsystems using gup. put_user_page() simply calls

Re: [PATCH v4] PM / wakeup: show wakeup sources stats in sysfs

2019-07-15 Thread Rafael J. Wysocki
On Mon, Jul 15, 2019 at 11:44 PM Tri Vo wrote: > > Userspace can use wakeup_sources debugfs node to plot history of suspend > blocking wakeup sources over device's boot cycle. This information can > then be used (1) for power-specific bug reporting and (2) towards > attributing battery

RE: [PATCH] staging: kpc2000: Convert put_page() to put_user_page*()

2019-07-15 Thread Matt Sickler
It looks like Outlook is going to absolutely trash this email. Hopefully it comes through okay. >> There have been issues with get_user_pages and filesystem writeback. >> The issues are better described in [1]. >> >> The solution being proposed wants to keep track of gup_pinned pages >which

Re: [PATCH v3] PM / wakeup: show wakeup sources stats in sysfs

2019-07-15 Thread Tri Vo
On Mon, Jul 15, 2019 at 1:37 PM Greg KH wrote: > > On Mon, Jul 15, 2019 at 01:11:16PM -0700, Tri Vo wrote: > > Userspace can use wakeup_sources debugfs node to plot history of suspend > > blocking wakeup sources over device's boot cycle. This information can > > then be used (1) for

Re: [PATCH 00/22] x86, objtool: several fixes/improvements

2019-07-15 Thread Nick Desaulniers
On Mon, Jul 15, 2019 at 12:38 PM Josh Poimboeuf wrote: > > On Sun, Jul 14, 2019 at 07:36:55PM -0500, Josh Poimboeuf wrote: > > There have been a lot of objtool bug reports lately, mainly related to > > Clang and BPF. As part of fixing those bugs, I added some improvements > > to objtool which

Re: [PATCH v1] clk: Add devm_clk_{prepare,enable,prepare_enable}

2019-07-15 Thread Bjorn Andersson
On Mon 15 Jul 08:34 PDT 2019, Marc Gonzalez wrote: [..] > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c > index c0990703ce54..5e85548357c0 100644 > --- a/drivers/clk/clk.c > +++ b/drivers/clk/clk.c > @@ -914,6 +914,18 @@ int clk_prepare(struct clk *clk) > } >

Re: [PATCH 8/9] acpi: Use built-in RCU list checking for acpi_ioremaps list (v1)

2019-07-15 Thread Rafael J. Wysocki
On Mon, Jul 15, 2019 at 4:43 PM Joel Fernandes (Google) wrote: > > list_for_each_entry_rcu has built-in RCU and lock checking. Make use of > it for acpi_ioremaps list traversal. > > Signed-off-by: Joel Fernandes (Google) Acked-by: Rafael J. Wysocki > --- > drivers/acpi/osl.c | 6 -- > 1

[PATCH v4] PM / wakeup: show wakeup sources stats in sysfs

2019-07-15 Thread Tri Vo
Userspace can use wakeup_sources debugfs node to plot history of suspend blocking wakeup sources over device's boot cycle. This information can then be used (1) for power-specific bug reporting and (2) towards attributing battery consumption to specific processes over a period of time. However,

[PATCH 4/5] MIPS: ingenic: Add support for huge pages

2019-07-15 Thread Paul Cercueil
From: Daniel Silsby The Ingenic jz47xx SoC series of 32-bit MIPS CPUs support huge pages. Signed-off-by: Daniel Silsby Signed-off-by: Paul Cercueil --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 47d50e37faa4..2a5d80c72c4e

[PATCH 5/5] MIPS: Undefine PMD_ORDER for 32-bit builds

2019-07-15 Thread Paul Cercueil
From: Daniel Silsby During an update long ago to conform to 4-level page code, PMD_ORDER was changed from 0 to 1, despite the fact that a PMD table is not used at all in a 32-bit MIPS build. PMD_ORDER does not seem to be used in these builds. Now, it matches PUD_ORDER, a nonsense #define to give

[PATCH 1/5] MIPS: Disallow CPU_SUPPORTS_HUGEPAGES for XPA,EVA

2019-07-15 Thread Paul Cercueil
From: Daniel Silsby In preparation for 32-bit MIPS huge page support. EVA,XPA are extended-addressing modes for 32-bit MIPS systems. Because huge pages aren't currently supported in 32-bit MIPS, this doesn't take any features away from EVA,XPA-enabled systems. However, the soon-to- come 32-bit

[PATCH 3/5] MIPS: Decouple CPU_SUPPORTS_HUGEPAGES from 64BIT

2019-07-15 Thread Paul Cercueil
From: Daniel Silsby We now have partial 32-bit MIPS huge page support, so there's no need to restrict these config options only to 64-bit systems. Signed-off-by: Daniel Silsby Signed-off-by: Paul Cercueil --- arch/mips/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 2/5] MIPS: Add partial 32-bit huge page support

2019-07-15 Thread Paul Cercueil
From: Daniel Silsby This adds initial support for huge pages to 32-bit MIPS systems. Systems with extended addressing enabled (EVA,XPA,Alchemy/Netlogic) are not yet supported. With huge pages enabled, this implementation will increase page table memory overhead to match that of a 64-bit MIPS

[PULL REQUEST] i2c for 5.3

2019-07-15 Thread Wolfram Sang
Linus, new stuff from the I2C world: * in the core, getting irqs from ACPI is now similar to OF * new driver for MediaTek MT7621/7628/7688 SoCs * bcm2835, i801, and tegra drivers got some more attention * GPIO API cleanups * cleanups in the core headers * lots of usual driver updates There is a

Re: [PATCH v3 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-07-15 Thread Waiman Long
On 7/15/19 3:25 PM, Alex Kogan wrote: > In CNA, spinning threads are organized in two queues, a main queue for > threads running on the same node as the current lock holder, and a > secondary queue for threads running on other nodes. At the unlock time, > the lock holder scans the main queue

Re: [PATCH v9 01/18] kunit: test: add KUnit test runner core

2019-07-15 Thread Brendan Higgins
On Mon, Jul 15, 2019 at 1:10 PM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-07-12 01:17:27) > > Add core facilities for defining unit tests; this provides a common way > > to define test cases, functions that execute code which is under test > > and determine whether the code under test

Re: [PATCH 2/2] mm,memory_hotplug: Fix shrink_{zone,node}_span

2019-07-15 Thread Oscar Salvador
On Mon, 2019-07-15 at 21:41 +0530, Aneesh Kumar K.V wrote: > Oscar Salvador writes: > > > Since [1], shrink_{zone,node}_span work on PAGES_PER_SUBSECTION > > granularity. > > The problem is that deactivation of the section occurs later on in > > sparse_remove_section, so

Re: list corruption in deferred_split_scan()

2019-07-15 Thread Qian Cai
On Fri, 2019-07-12 at 12:12 -0700, Yang Shi wrote: > > Another possible lead is that without reverting the those commits below, > > kdump > > kernel would always also crash in shrink_slab_memcg() at this line, > > > > map = rcu_dereference_protected(memcg->nodeinfo[nid]->shrinker_map, true); > >

Re: [PATCH] mm/z3fold.c: Reinitialize zhdr structs after migration

2019-07-15 Thread Henry Burns
Sorry Vitaly, I had the wrong impression from your email that INIT_LIST_HEAD() was being ensured directly in migrate and got confused. (I thought you were saying it happened through the call to do_compact_page() queued). That being said, I don't see where in migrate new_zhdr->buddy is being

[PATCH 0/1] staging: kpc2000: whitespace and line length cleanup

2019-07-15 Thread john . hubbard
From: John Hubbard Hi everyone, This is an easy, drive-by cleanup that I did while reviewing Bharath's changes to convert over to put_user_page(). It should make the code less obviously non-conforming, and therefore help future reviews and cleanups. This is on top of latest linux.git, commit

[PATCH] staging: kpc2000: whitespace and line length cleanup

2019-07-15 Thread john . hubbard
From: John Hubbard This commit was created by running indent(1): `indent -linux` ...and then applying some manual corrections and cleanup afterward, to keep it sane. No functional changes were made. In addition to whitespace changes, some strings were split, but not strings that were

[PATCH 28/28] perf version: Fix segfault due to missing OPT_END()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria 'perf version' on powerpc segfaults when used with non-supported option: # perf version -a Segmentation fault (core dumped) Fix this. Signed-off-by: Ravi Bangoria Reviewed-by: Kamalesh Babulal Tested-by: Mamatha Inamdar Cc: Jiri Olsa Cc: Kamalesh Babulal Link:

[PATCH 27/28] perf vendor events s390: Add JSON files for machine type 8561

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Add CPU measurement counter facility event description files (JSON) for IBM machine types 8561 and 8562. Signed-off-by: Thomas Richter Reviewed-by: Vasily Gorbik Cc: Heiko Carstens Cc: Hendrik Brueckner Link:

[PATCH 26/28] perf cs-etm: Return errcode in cs_etm__process_auxtrace_info()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: YueHaibing The 'err' variable is set in the error path, but it's not returned to callers. Don't always return -EINVAL, return err. Signed-off-by: YueHaibing Reviewed-by: Mathieu Poirier Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Suzuki Poulouse

[PATCH 25/28] perf cs-etm: Remove errnoeous ERR_PTR() usage in cs_etm__process_auxtrace_info

2019-07-15 Thread Arnaldo Carvalho de Melo
From: YueHaibing intlist__findnew() doesn't uses ERR_PTR() as a return mechanism so its callers shouldn't try to extract the error using PTR_ERR( ret) from intlist__findnew(), make cs_etm__process_auxtrace_info return -ENOMEM instead. Signed-off-by: YueHaibing Reviewed-by: Mathieu Poirier Cc:

[PATCH 24/28] perf scripts python: export-to-postgresql.py: Export switch events

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Export switch events to a new table 'context_switches' and create a view 'context_switches_view'. The table and view will show automatically in the exported-sql-viewer.py script. If the table ends up empty, then it and the view are dropped. Signed-off-by: Adrian Hunter Cc:

[PATCH 23/28] perf scripts python: export-to-sqlite.py: Export switch events

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Export switch events to a new table 'context_switches' and create a view 'context_switches_view'. The table and view will show automatically in the exported-sql-viewer.py script. If the table ends up empty, then it and the view are dropped. Committer testing: Use the

[PATCH 19/28] perf scripts python: exported-sql-viewer.py: Use new 'has_calls' column

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter If the new 'has_calls' column is present, use it with the call graph and call tree to select only comms that have calls. Committer testing: Just started the exported-sql-view.py and accessed all the reports, no backtraces. Signed-off-by: Adrian Hunter Tested-by: Arnaldo

[PATCH 21/28] perf db-export: Factor out db_export__threads()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation for exporting switch events, factor out db_export__threads(). Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-19-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/db-export.c |

[PATCH 22/28] perf db-export: Export switch events

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Export details of switch events including the threads and their current comms. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-20-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/db-export.c

[PATCH 20/28] perf script: Add scripting operation process_switch()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add scripting operation process_switch() to process switch events. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-18-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-script.c | 8

[PATCH 18/28] perf scripts python: exported-sql-viewer.py: Remove redundant semi-colons

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Remove redundant semi-colons added inadvertently. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-16-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- .../scripts/python/exported-sql-viewer.py | 24

[PATCH 16/28] perf scripts python: export-to-sqlite.py: Add has_calls column to comms table

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Now that a thread's current comm is exported, it shows up in the call graph and call tree even if it has no calls. That can happen because the calls are recorded against the main thread's initial comm. Add a table column to make it easy for the exported-sql-viewer.py script

[PATCH 17/28] perf scripts python: export-to-postgresql.py: Add has_calls column to comms table

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Now that a thread's current comm is exported, it shows up in the call graph and call tree even if it has no calls. That can happen because the calls are recorded against the main thread's initial comm. Add a table column to make it easy for the exported-sql-viewer.py script

[PATCH 15/28] perf db-export: Also export thread's current comm

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Currently, the initial comm of the main thread is exported. Export also a thread's current comm. That better supports the tracing of multi-threaded applications that set different comms for different threads to make it easier to distinguish them. Signed-off-by: Adrian Hunter

[PATCH 12/28] perf scripts python: export-to-sqlite.py: Export comm details

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add table columns for thread id, comm start time and exec flag. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-10-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 14/28] perf db-export: Factor out db_export__comm()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation for exporting the current comm for a thread, factor out db_export__comm(). Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-12-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 13/28] perf scripts python: export-to-postgresql.py: Export comm details

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add table columns for thread id, comm start time and exec flag. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-11-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 07/28] perf db-export: Export main_thread in db_export__sample()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Export main_thread in db_export__sample() because it makes the code easier to understand, and prepares db_export__thread() for further simplification. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-5-adrian.hun...@intel.com

[PATCH 11/28] perf db-export: Export comm details

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation for exporting the current comm for a thread, export comm thread id, start time and exec flag. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-9-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 05/28] perf db-export: Rename db_export__comm() to db_export__exec_comm()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Rename db_export__comm() to db_export__exec_comm() to better reflect what it does and add explanatory comments. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-3-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 10/28] perf db-export: Fix a white space issue in db_export__sample()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Fix a white space issue in db_export__sample() Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-8-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/db-export.c | 2 +- 1 file changed, 1

[PATCH 02/28] perf test: Auto bump rlimit(MEMLOCK) for BPF test sake

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo I noticed that the 'perf test bpf' was failing: # perf test bpf 41: BPF filter: 41.1: Basic BPF filtering : Skip 41.2: BPF pinning : Skip

[PATCH 06/28] perf db-export: Pass main_thread to db_export__thread()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Calls to db_export__thread() already have main_thread so there is no reason to get it again, instead pass it as a parameter. Note that one difference in this approach is that the main thread is not created if it does not exist. It is better if it is not created because: -

[PATCH 08/28] perf db-export: Export comm before exporting thread

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Export comm before exporting the non-main thread because db_export__thread() also exports the comm_thread. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190710085810.1650-6-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 09/28] perf db-export: Move export__comm_thread into db_export__sample()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Move call to db_export__comm_thread() from db_export__thread() into db_export__sample() because it makes the code easier to understand, and add explanatory comments. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link:

[PATCH 04/28] perf db-export: Get rid of db_export__deferred()

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter db_export__deferred() deferred the export of comms if the comm string had not been "set" (changed from :) however that problem was fixed a long time ago by commit e803cf97a4f9 ("perf record: Synthesize COMM event for a command line workload"), so get rid of

[PATCH 03/28] perf trace: Auto bump rlimit(MEMLOCK) for eBPF maps sake

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Circa v5.2 this started to fail: # perf trace -e /wb/augmented_raw_syscalls.o event syntax error: '/wb/augmented_raw_syscalls.o' \___ Operation not permitted (add -v to see detail) Run 'perf list' for a list of valid events

[PATCH 01/28] perf tools: Introduce rlimit__bump_memlock() helper

2019-07-15 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just like the BPF guys did when faced with failures with map creation, etc, i.e. their solution is: tools/testing/selftests/bpf/bpf_rlimit.h For perf use this function in 'perf test' and in 'perf trace'. Make it bump to 4 times the current value, if it fails

Re: [PATCH v9 03/18] kunit: test: add string_stream a std::stream like string builder

2019-07-15 Thread Brendan Higgins
On Mon, Jul 15, 2019 at 1:43 PM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-07-12 01:17:29) > > diff --git a/include/kunit/string-stream.h b/include/kunit/string-stream.h > > new file mode 100644 > > index 0..0552a05781afe > > --- /dev/null > > +++

[GIT PULL] perf/core improvements and fixes

2019-07-15 Thread Arnaldo Carvalho de Melo
:13:28 -0300) 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.3-20190715 for you to fetch changes up to 916c31fff946fae0e05862f9b2435fdb29fd5090: perf version: Fix segfault due to missing OPT_END() (2019-07-15 07

[PATCH v1] net: fec: optionally reset PHY via a reset-controller

2019-07-15 Thread Sven Van Asbroeck
The current fec driver allows the PHY to be reset via a gpio, specified in the devicetree. However, some PHYs need to be reset in a more complex way. To accommodate such PHYs, allow an optional reset controller in the fec devicetree. If no reset controller is found, the fec will fall back to the

Re: [Intel-gfx] screen freeze with 5.2-rc6 Dell XPS-13 skylake i915

2019-07-15 Thread Souza, Jose
Hi James and Paul So the issue did not happened again with the patch applied? If you still have the kernel 5.1 installed could you share your /sys/kernel/debug/dri/0/i915_edp_psr_status with the older kernel? We want to check if training values changed between kernel versions. On Fri,

Re: [PATCH] staging: kpc2000: Convert put_page() to put_user_page*()

2019-07-15 Thread Bharath Vedartham
On Mon, Jul 15, 2019 at 01:14:13PM -0700, John Hubbard wrote: > On 7/15/19 12:52 PM, Bharath Vedartham wrote: > > There have been issues with get_user_pages and filesystem writeback. > > The issues are better described in [1]. > > > > The solution being proposed wants to keep track of gup_pinned

Re: [PATCH v9 03/18] kunit: test: add string_stream a std::stream like string builder

2019-07-15 Thread Stephen Boyd
Quoting Brendan Higgins (2019-07-12 01:17:29) > diff --git a/include/kunit/string-stream.h b/include/kunit/string-stream.h > new file mode 100644 > index 0..0552a05781afe > --- /dev/null > +++ b/include/kunit/string-stream.h > @@ -0,0 +1,49 @@ > +/* SPDX-License-Identifier: GPL-2.0 */

Re: [PATCH v2 2/2] leds: Add control of the voltage/current regulator to the LED core

2019-07-15 Thread Jacek Anaszewski
Hi Jean, Thank you for the patch. I have one issue. Please refer below. On 7/15/19 5:56 PM, Jean-Jacques Hiblot wrote: > A LED is usually powered by a voltage/current regulator. Let the LED core > know about it. This allows the LED core to turn on or off the power supply > as needed. > >

Re: PROBLEM: Marvell 88E8040 (sky2) fails after hibernation

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 21:09:44 +0200 (CEST) Thomas Gleixner wrote: > Octavio, > > On Mon, 15 Jul 2019, Octavio Alvarez wrote: > > If I reboot with sky2.disable_msi=1, then I get IO-APIC and the bug does not > > occur: > > > > 19: 0 0 0 0 IO-APIC 19-fasteoi

Re: [net-next 1/2] ipvs: batch __ip_vs_cleanup

2019-07-15 Thread Julian Anastasov
Hello, On Sat, 13 Jul 2019, Haishuang Yan wrote: > It's better to batch __ip_vs_cleanup to speedup ipvs > connections dismantle. > > Signed-off-by: Haishuang Yan > --- > include/net/ip_vs.h | 2 +- > net/netfilter/ipvs/ip_vs_core.c | 29 + >

Re: [PATCH v3] PM / wakeup: show wakeup sources stats in sysfs

2019-07-15 Thread Greg KH
On Mon, Jul 15, 2019 at 01:11:16PM -0700, Tri Vo wrote: > Userspace can use wakeup_sources debugfs node to plot history of suspend > blocking wakeup sources over device's boot cycle. This information can > then be used (1) for power-specific bug reporting and (2) towards > attributing battery

Re: [PATCH] binder: prevent transactions to context manager from its own process.

2019-07-15 Thread Todd Kjos
On Mon, Jul 15, 2019 at 12:18 PM Hridya Valsaraju wrote: > > Currently, a transaction to context manager from its own process > is prevented by checking if its binder_proc struct is the same as > that of the sender. However, this would not catch cases where the > process opens the binder device

Re: [PATCH RESEND] arm64: dts: meson-g12a-sei510: enable IR controller

2019-07-15 Thread Kevin Hilman
Neil Armstrong writes: > Enable the IR receiver controller on the SEI510 board. > > Signed-off-by: Neil Armstrong > --- Queued for v5.3-rc, Kevin

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