[PATCH] dmaengine: tegra210-adma: remove PM_CLK dependency

2019-06-20 Thread Sameer Pujar
Tegra ADMA does not use pm-clk interface now and hence the dependency is removed from Kconfig. Signed-off-by: Sameer Pujar --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 703275c..ba660e2 100644 ---

Re: [PATCH] kbuild: Remove unnecessary -Wno-unused-value

2019-06-20 Thread Masahiro Yamada
On Tue, Jun 18, 2019 at 2:28 AM Nathan Huckleberry wrote: > > This flag turns off several other warnings that would > be useful. Most notably -warn_unused_result is disabled. > All of the following warnings are currently disabled: > > UnusedValue > |-UnusedComparison > |-warn_unused_comparison

[PATCH] bus: tegra-aconnect: remove PM_CLK dependency

2019-06-20 Thread Sameer Pujar
aconnect bus driver does not use pm-clk interface now and hence the dependency is removed from Kconfig. Signed-off-by: Sameer Pujar --- drivers/bus/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index 1851112..4587ef2 100644 ---

Re: [PATCH net-next] netfilter: ipv6: Fix build error without CONFIG_IPV6

2019-06-20 Thread Pablo Neira Ayuso
On Thu, Jun 20, 2019 at 11:26:01PM +0800, Yuehaibing wrote: > Friendly ping... > > On 2019/6/12 16:47, YueHaibing wrote: > > If CONFIG_IPV6 is not set, building fails: > > > > net/bridge/netfilter/nf_conntrack_bridge.o: In function `nf_ct_bridge_pre': > > nf_conntrack_bridge.c:(.text+0x41c):

Re: mmotm 2019-06-19-20-32 uploaded (drivers/base/memory.c)

2019-06-20 Thread Randy Dunlap
On 6/19/19 8:32 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2019-06-19-20-32 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my

Re: [PATCH] mm: memcg/slab: properly handle kmem_caches reparented to root_mem_cgroup

2019-06-20 Thread Shakeel Butt
On Wed, Jun 19, 2019 at 6:57 PM Roman Gushchin wrote: > > As a result of reparenting a kmem_cache might belong to the root > memory cgroup. It happens when a top-level memory cgroup is removed, > and all associated kmem_caches are reparented to the root memory > cgroup. > > The root memory cgroup

Re: [PATCH] kbuild: Enable -Wuninitialized

2019-06-20 Thread Masahiro Yamada
On Sat, Jun 15, 2019 at 1:53 AM Nathan Chancellor wrote: > > This helps fine very dodgy behavior through both -Wuninitialized > (warning that a variable is always uninitialized) and > -Wsometimes-uninitialized (warning that a variable is sometimes > uninitialized, like GCC's

Re: [PATCH] ASoC: rk3399_gru_sound: Support 32, 44.1 and 88.2 kHz sample rates

2019-06-20 Thread Mark Brown
On Thu, Jun 20, 2019 at 03:47:08PM +0200, Enric Balletbo i Serra wrote: > According to the datasheet the max98357a also supports 32, 44.1 and > 88.2 kHz sample rate. This support was also introduced recently by > commit fdf34366d324 ("ASoC: max98357a: add missing supported rates"). > This patch

Re: [PATCH RESEND] mmc: core: try to use an id from the devicetree

2019-06-20 Thread Ulf Hansson
+ Doug On Thu, 20 Jun 2019 at 17:24, Lubomir Rintel wrote: > > If there's a mmc* alias in the device tree, take the device number from > it, so that we end up with a device name that matches the alias. Lots of people would be happy if I queue something along the lines of what you propose. I am

Re: [PATCH] slub: Don't panic for memcg kmem cache creation failure

2019-06-20 Thread Michal Hocko
On Thu 20-06-19 07:44:27, Shakeel Butt wrote: > On Wed, Jun 19, 2019 at 10:50 PM Michal Hocko wrote: > > > > On Wed 19-06-19 16:25:14, Shakeel Butt wrote: > > > Currently for CONFIG_SLUB, if a memcg kmem cache creation is failed and > > > the corresponding root kmem cache has SLAB_PANIC flag, the

Re: [PATCH 5/6] arm64: dts: Add ipq6018 SoC and CP01 board support

2019-06-20 Thread Christian Lamparter
Hello Sricharan, On Wednesday, June 19, 2019 4:42:11 PM CEST Sricharan R wrote: > On 6/15/2019 2:11 AM, Christian Lamparter wrote: > > On Wednesday, June 12, 2019 11:48:48 AM CEST Sricharan R wrote: > >> Hi Christian, > >> > >> On 6/10/2019 5:45 PM, Christian Lamparter wrote: > >>> On Monday,

Re: [PATCH v2 1/3] media: stm32-dcmi: improve sensor subdev naming

2019-06-20 Thread Sakari Ailus
Hi Hugues, On Tue, Jun 11, 2019 at 10:48:30AM +0200, Hugues Fruchet wrote: > Add a new "sensor" field to dcmi struct instead of > reusing entity->subdev to address sensor subdev. The purpose of the struct binding image source's async subdev as well as related information is to allow associating

Re: [PATCH net-next] netfilter: ipv6: Fix build error without CONFIG_IPV6

2019-06-20 Thread Yuehaibing
Friendly ping... On 2019/6/12 16:47, YueHaibing wrote: > If CONFIG_IPV6 is not set, building fails: > > net/bridge/netfilter/nf_conntrack_bridge.o: In function `nf_ct_bridge_pre': > nf_conntrack_bridge.c:(.text+0x41c): undefined symbol `nf_ct_frag6_gather' >

[PATCH RESEND] mmc: core: try to use an id from the devicetree

2019-06-20 Thread Lubomir Rintel
If there's a mmc* alias in the device tree, take the device number from it, so that we end up with a device name that matches the alias. Signed-off-by: Lubomir Rintel --- drivers/mmc/core/host.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/host.c

Re: [PATCH 2/2] coresight: Abort probe for missing CPU phandle

2019-06-20 Thread Suzuki K Poulose
On 20/06/2019 15:55, Sai Prakash Ranjan wrote: On 6/20/2019 7:28 PM, Suzuki K Poulose wrote: On 20/06/2019 14:45, Sai Prakash Ranjan wrote: Currently the coresight etm and cpu-debug drivers assume the affinity to CPU0 returned by coresight platform and continue the probe in case of

[PATCH] irqchip/mmp: do not use of_address_to_resource() to get mux regs

2019-06-20 Thread Lubomir Rintel
The "regs" property of the "mrvl,mmp2-mux-intc" devices are silly. They are offsets from intc's base, not addresses on the parent bus. At this point it probably can't be fixed. On an OLPC XO-1.75 machine, the muxes are children of the intc, not the axi bus, and thus of_address_to_resource() won't

Re: [PATCH -next] inet: fix compilation warnings in fqdir_pre_exit()

2019-06-20 Thread Eric Dumazet
On Thu, Jun 20, 2019 at 10:52 AM Qian Cai wrote: > > The linux-next commit "inet: fix various use-after-free in defrags > units" [1] introduced compilation warnings, > > ./include/net/inet_frag.h:117:1: warning: 'inline' is not at beginning > of declaration [-Wold-style-declaration] > static

Re: [PATCH RFC] mm: fix regression with deferred struct page init

2019-06-20 Thread Juergen Gross
On 20.06.19 17:17, Alexander Duyck wrote: On Thu, 2019-06-20 at 11:40 +0200, Juergen Gross wrote: Commit 0e56acae4b4dd4a9 ("mm: initialize MAX_ORDER_NR_PAGES at a time instead of doing larger sections") is causing a regression on some systems when the kernel is booted as Xen dom0. The system

FROM MR.ABDERAZACK ZEBDANI

2019-06-20 Thread Mr.Abderazack Zebdani
FROM MR.ABDERAZACK ZEBDANI AUDIT& ACCOUNT MANAGER BANK OF AFRICA (B.O.A) OUAGADOUGOU BURKINA FASO WEST AFRICA. Dear Friend, With due respect, I have decided to contact you on abusinesstransaction that will be beneficial to both of us. At the bank last account and auditing evaluation, my

[PATCH v2 2/3] jbd2: introduce jbd2_inode dirty range scoping

2019-06-20 Thread Ross Zwisler
Currently both journal_submit_inode_data_buffers() and journal_finish_inode_data_buffers() operate on the entire address space of each of the inodes associated with a given journal entry. The consequence of this is that if we have an inode where we are constantly appending dirty pages we can end

[PATCH v2 0/3] Add dirty range scoping to jbd2

2019-06-20 Thread Ross Zwisler
Changes from v1: - Relocated the code which resets dirty range upon transaction completion. (Jan) - Cc'd sta...@vger.kernel.org because we see this issue with v4.14 and v4.19 stable kernels in the field. --- This patch series fixes the issue I described here:

Re: [PATCH] mfd: stmfx: Fix an endian bug in stmfx_irq_handler()

2019-06-20 Thread Amelie DELAUNAY
On 6/19/19 7:58 AM, Lee Jones wrote: > On Tue, 18 Jun 2019, Linus Torvalds wrote: > >> On Tue, Jun 18, 2019 at 1:16 AM Lee Jones wrote: >>> Reported-by: Linus Torvalds >>> >>> Ideally we can get a review too. >> >> Looks fine to me, but obviously somebody should actually _test_ it too. >

[PATCH v2 3/3] ext4: use jbd2_inode dirty range scoping

2019-06-20 Thread Ross Zwisler
Use the newly introduced jbd2_inode dirty range scoping to prevent us from waiting forever when trying to complete a journal transaction. Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara Cc: sta...@vger.kernel.org --- fs/ext4/ext4_jbd2.h | 12 ++-- fs/ext4/inode.c | 13

[PATCH v2 1/3] mm: add filemap_fdatawait_range_keep_errors()

2019-06-20 Thread Ross Zwisler
In the spirit of filemap_fdatawait_range() and filemap_fdatawait_keep_errors(), introduce filemap_fdatawait_range_keep_errors() which both takes a range upon which to wait and does not clear errors from the address space. Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara Cc:

Re: [PATCH RFC] mm: fix regression with deferred struct page init

2019-06-20 Thread Alexander Duyck
On Thu, 2019-06-20 at 11:40 +0200, Juergen Gross wrote: > Commit 0e56acae4b4dd4a9 ("mm: initialize MAX_ORDER_NR_PAGES at a time > instead of doing larger sections") is causing a regression on some > systems when the kernel is booted as Xen dom0. > > The system will just hang in early boot. > >

Re: [PATCH v5 4/7] i2c: core: Make i2c_acpi_get_irq available to the rest of the I2C core

2019-06-20 Thread Charles Keepax
On Thu, Jun 20, 2019 at 05:59:50PM +0300, Andy Shevchenko wrote: > On Thu, Jun 20, 2019 at 02:34:17PM +0100, Charles Keepax wrote: > > In preparation for more refactoring make i2c_acpi_get_irq available > > outside i2c-core-acpi.c. > > > Reviewed-by: Andy Shevchenko > > Reviewed-by: Mika

Re: [PATCH v5 2/7] i2c: acpi: Use available IRQ helper functions

2019-06-20 Thread Charles Keepax
On Thu, Jun 20, 2019 at 05:52:21PM +0300, Andy Shevchenko wrote: > On Thu, Jun 20, 2019 at 02:34:15PM +0100, Charles Keepax wrote: > > Use the available IRQ helper functions, most of the functions have > > additional helpful side affects like configuring the trigger type of the > > IRQ. > > > >

Re: [PATCH RFC] kvm: x86: Expose AVX512_BF16 feature to guest

2019-06-20 Thread Liu, Jing2
Hi Paolo, On 6/20/2019 8:16 PM, Paolo Bonzini wrote: On 20/06/19 13:21, Jing Liu wrote: + for (i = 1; i <= times; i++) { + if (*nent >= maxnent) + goto out; + do_cpuid_1_ent([i], function, i); +

Re: [PATCH 2/3] jbd2: introduce jbd2_inode dirty range scoping

2019-06-20 Thread Ross Zwisler
On Thu, Jun 20, 2019 at 01:04:54PM +0200, Jan Kara wrote: > On Wed 19-06-19 11:21:55, Ross Zwisler wrote: > > Currently both journal_submit_inode_data_buffers() and > > journal_finish_inode_data_buffers() operate on the entire address space > > of each of the inodes associated with a given journal

[PATCH 5/5] ARM: dts: mmp2: specify reg-shift for the UARTs

2019-06-20 Thread Lubomir Rintel
This makes the 8250_of driver happy. There are two more drivers in the tree that bind to mrvl,mmp-uart compatibles: pxa and 8250_pxa and neither of them requires the reg-shift property, assuming it's always 2. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 4 1 file

[PATCH 4/5] ARM: dts: mmp2: add camera interfaces

2019-06-20 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 21432cb9143f..68b547077323 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++

[PATCH 2/5] ARM: dts: mmp2: fix the SPI nodes

2019-06-20 Thread Lubomir Rintel
The SPI bus has a single address cell and not size cells. Also, dtc thinks the SPI nodes are preferrably called "spi" and it is right to think so. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

[PATCH 0/5] ARM: dts: mmp2: devicetree updates

2019-06-20 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. They're pretty much independent of each other, can be applied in any order. Lubo

[PATCH 1/5] ARM: dts: mmp2: trivial whitespace fix

2019-06-20 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b6f40743e07b..50b6c38b39cc 100644 ---

[PATCH 3/5] ARM: dts: mmp2: rename the USB PHY node

2019-06-20 Thread Lubomir Rintel
This device is not an OTG phy, it's a regular USB HS phy. Follow the generic node name recommendation, and rename it to "usb-phy". Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi

[PATCH] sched/fair: util_est: fast ramp-up EWMA on utilization increases

2019-06-20 Thread Patrick Bellasi
The estimated utilization for a task is currently defined based on: - enqueued: the utilization value at the end of the last activation - ewma: an exponential moving average which samples are the enqueued values According to this definition, when a task suddenly change it's bandwidth

Re: [PATCH][next] RDMA: check for null return from call to ib_get_client_data

2019-06-20 Thread Jason Gunthorpe
On Thu, Jun 20, 2019 at 02:50:52PM +0100, Colin King wrote: > From: Colin Ian King > > The return from ib_get_client_data can potentially be null, so add a null > check on umad_dev and return -ENODEV in this unlikely case to avoid any > null pointer deferences. It would be a kernel bug if NULL

[RFC/RFT 06/14] soc: amlogic: meson-clk-measure: add G12B second cluster cpu clk

2019-06-20 Thread Neil Armstrong
Add the G12B second CPU cluster CPU and SYS_PLL measure IDs. These IDs returns 0Hz on G12A. Signed-off-by: Neil Armstrong --- drivers/soc/amlogic/meson-clk-measure.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/amlogic/meson-clk-measure.c

[RFC/RFT 01/14] pinctrl: meson-g12a: add pwm_a on GPIOE_2 pinmux

2019-06-20 Thread Neil Armstrong
Add the missing pinmux for the pwm_a function on the GPIOE_2 pin. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-g12a.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c b/drivers/pinctrl/meson/pinctrl-meson-g12a.c

[RFC/RFT 03/14] clk: meson: regmap: export regmap_div ops functions

2019-06-20 Thread Neil Armstrong
The G12A CPU Clock Postmux divider needs a custom div_set_rate() call. Export the clk_regmap_div_round_rate() and clk_regmap_div_recalc_rate() to be able to override the default clk_regmap_div_set_rate() callback. Signed-off-by: Neil Armstrong --- drivers/clk/meson/clk-regmap.c | 10 ++

[RFC/RFT 08/14] clk: meson: g12a: expose CPUB clock ID for G12B

2019-06-20 Thread Neil Armstrong
Expose the CPUB clock id to add DVFS to the second CPU cluster of the Amlogic G12B SoC. Signed-off-by: Neil Armstrong --- include/dt-bindings/clock/g12a-clkc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/g12a-clkc.h b/include/dt-bindings/clock/g12a-clkc.h

[RFC/RFT 10/14] arm64: dts: meson-g12-common: add pwm_a on GPIOE_2 pinmux

2019-06-20 Thread Neil Armstrong
Add the ao_pinctrl subnode for the pwm_a function on GPIOE_2. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi

[RFC/RFT 11/14] arm64: dts: meson-g12a: add cpus OPP table

2019-06-20 Thread Neil Armstrong
Add the OPP table taken from the vendor u200 and u211 DTS. The Amlogic G12A SoC seems to available in 3 types : - low-speed: up to 1,8GHz - mid-speed: up to 1,908GHz - high-speed: up to 2.1GHz And the S905X2 opp voltages are slightly higher than the S905D2 OPP voltages for the low-speed table.

[RFC/RFT 07/14] clk: meson: g12a: add notifiers to handle cpu clock change

2019-06-20 Thread Neil Armstrong
In order to implement clock switching for the CLKID_CPU_CLK and CLKID_CPUB_CLK, notifiers are added on specific points of the clock tree : cpu_clk / cpub_clk | \- cpu_clk_dyn | | \- cpu_clk_premux0 | ||- cpu_clk_postmux0 | |||- cpu_clk_dyn0_div | |

[RFC/RFT 13/14] arm64: dts: meson-g12b: add cpus OPP tables

2019-06-20 Thread Neil Armstrong
Add the OPP table taken from the HardKernel Odroid-N2 DTS. The Amlogic G12B SoC seems to available in 2 types : - low-speed: Cortex-A73 Cluster up to 1,704GHz - high-speed: Cortex-A73 Cluster up to 2.208GHz The Cortex-A73 Cluster can be clocked up to 1,896GHz for both types. The Vendor Amlogic

[RFC/RFT 12/14] arm64: dts: meson-g12a: enable DVFS on G12A boards

2019-06-20 Thread Neil Armstrong
Enable DVFS for the U200, SEI520 and X96-Max Amlogic G12A based board by setting the clock, OPP and supply for each CPU cores. The CPU cluster power supply can achieve 0.73V to 1.01V using a PWM output clocked at 800KHz with an inverse duty-cycle. DVFS has been tested by running the arm64

[RFC/RFT 04/14] clk: meson: eeclk: add setup callback

2019-06-20 Thread Neil Armstrong
Add a setup() callback in the eeclk structure, to call an optional call() function at end of eeclk probe to setup clocks. It's used for the G12A clock controller to setup the CPU clock notifiers. Signed-off-by: Neil Armstrong --- drivers/clk/meson/meson-eeclk.c | 6 ++

[RFC/RFT 14/14] arm64: dts: meson-g12b-odroid-n2: enable DVFS

2019-06-20 Thread Neil Armstrong
Enable DVFS for the Odroid-N2 by setting the clock, OPP and supply for each cores of each CPU clusters. The first cluster uses the "VDDCPU_B" power supply, and the second cluster uses the "VDDCPU_A" power supply. Each power supply can achieve 0.73V to 1.01V using 2 distinct PWM outputs clocked

[RFC/RFT 00/14] arm64: g12a: add support for DVFS

2019-06-20 Thread Neil Armstrong
The G12A/G12B Socs embeds a specific clock tree for each CPU cluster : cpu_clk / cpub_clk | \- cpu_clk_dyn | | \- cpu_clk_premux0 | ||- cpu_clk_postmux0 | |||- cpu_clk_dyn0_div | ||\- xtal/fclk_div2/fclk_div3 | |\-

Re: [PATCH v5 0/7] I2C IRQ Probe Improvements

2019-06-20 Thread Andy Shevchenko
On Thu, Jun 20, 2019 at 02:34:13PM +0100, Charles Keepax wrote: > This series attempts to align as much IRQ handling into the > probe path as possible. Note that I don't have a great setup > for testing these patches so they are mostly just build tested > and need careful review and testing before

[RFC/RFT 09/14] arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi

2019-06-20 Thread Neil Armstrong
To simplify the representation of differences betweem the G12A and G12B SoCs, move the common nodes into a meson-g12-common.dtsi file and express the CPU nodes and differences in meson-g12a.dtsi and meson-g12b.dtsi. This separation will help for DVFS and future Amlogic SM1 Family support.

[RFC/RFT 05/14] soc: amlogic: meson-clk-measure: protect measure with a mutex

2019-06-20 Thread Neil Armstrong
In order to protect clock measuring when multiple process asks for a mesure, protect the main measure function with mutexes. Signed-off-by: Neil Armstrong --- drivers/soc/amlogic/meson-clk-measure.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git

[RFC/RFT 02/14] clk: core: introduce clk_hw_set_parent()

2019-06-20 Thread Neil Armstrong
Introduce the clk_hw_set_parent() provider call to change parent of a clock by using the clk_hw pointers. This eases the clock reparenting from clock rate notifiers and implementing DVFS with simpler code avoiding the boilerplates functions as __clk_lookup(clk_hw_get_name()) then

Re: [PATCH v5 4/7] i2c: core: Make i2c_acpi_get_irq available to the rest of the I2C core

2019-06-20 Thread Andy Shevchenko
On Thu, Jun 20, 2019 at 02:34:17PM +0100, Charles Keepax wrote: > In preparation for more refactoring make i2c_acpi_get_irq available > outside i2c-core-acpi.c. > Reviewed-by: Andy Shevchenko > Reviewed-by: Mika Westerberg I'm not sure Rb tags are suitable for patches 4 and 5 since the changes

Re: [PATCH 2/2] coresight: Abort probe for missing CPU phandle

2019-06-20 Thread Sai Prakash Ranjan
On 6/20/2019 7:28 PM, Suzuki K Poulose wrote: On 20/06/2019 14:45, Sai Prakash Ranjan wrote: Currently the coresight etm and cpu-debug drivers assume the affinity to CPU0 returned by coresight platform and continue the probe in case of missing CPU phandle. This is not true and leads to crash

Re: [PATCH v5 3/7] i2c: acpi: Factor out getting the IRQ from ACPI

2019-06-20 Thread Andy Shevchenko
On Thu, Jun 20, 2019 at 02:34:16PM +0100, Charles Keepax wrote: > In preparation for future refactoring factor out the fetch of the IRQ > into its own helper function. > +static int i2c_acpi_get_irq(struct acpi_device *adev) > +{ > + struct list_head resource_list; > + int irq = -ENOENT;

Re: [PATCH 1/2] coresight: Set affinity to invalid for missing CPU phandle

2019-06-20 Thread Sai Prakash Ranjan
Hi Suzuki, Thanks for the review. On 6/20/2019 7:25 PM, Suzuki K Poulose wrote: Sai, Thanks for the patch. Please could you change the subject to : "coresight: Do not default to CPU0 for missing CPU phandle" Sure. On 20/06/2019 14:45, Sai Prakash Ranjan wrote: Affinity defaults to

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-20 Thread Jan Kara
On Thu 13-06-19 08:27:55, Matthew Wilcox wrote: > On Thu, Jun 13, 2019 at 10:25:55AM +1000, Dave Chinner wrote: > > e.g. Process A has an exclusive layout lease on file F. It does an > > IO to file F. The filesystem IO path checks that Process A owns the > > lease on the file and so skips straight

[PATCH -next] inet: fix compilation warnings in fqdir_pre_exit()

2019-06-20 Thread Qian Cai
The linux-next commit "inet: fix various use-after-free in defrags units" [1] introduced compilation warnings, ./include/net/inet_frag.h:117:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] static void inline fqdir_pre_exit(struct fqdir *fqdir) ^~ In file

[PATCH -next] Staging: kpc2000: kpc_dma: Fix platform_no_drv_owner.cocci warnings

2019-06-20 Thread YueHaibing
Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: YueHaibing --- drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH v5 2/7] i2c: acpi: Use available IRQ helper functions

2019-06-20 Thread Andy Shevchenko
On Thu, Jun 20, 2019 at 02:34:15PM +0100, Charles Keepax wrote: > Use the available IRQ helper functions, most of the functions have > additional helpful side affects like configuring the trigger type of the > IRQ. > > Reviewed-by: Mika Westerberg > Reviewed-by: Andy Shevchenko > Signed-off-by:

Re: [PATCH] slub: Don't panic for memcg kmem cache creation failure

2019-06-20 Thread Dave Hansen
On 6/20/19 7:44 AM, Shakeel Butt wrote: >> I am wondering whether SLAB_PANIC makes sense in general though. Why is >> it any different from any other essential early allocations? We tend to >> not care about allocation failures for those on bases that the system >> must be in a broken state to

[PATCH -next] ASoC: SOF: Intel: hda: remove duplicated include from hda.c

2019-06-20 Thread YueHaibing
Remove duplicated include. Signed-off-by: YueHaibing --- sound/soc/sof/intel/hda.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index 51c1c1787de7..7f665392618f 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@

Re: [PATCH v2] mm, memcg: Add a memcg_slabinfo debugfs file

2019-06-20 Thread Waiman Long
On 6/20/19 10:39 AM, Shakeel Butt wrote: > On Thu, Jun 20, 2019 at 7:24 AM Waiman Long wrote: >> On 6/19/19 7:48 PM, Shakeel Butt wrote: >>> Hi Waiman, >>> >>> On Wed, Jun 19, 2019 at 10:16 AM Waiman Long wrote: There are concerns about memory leaks from extensive use of memory cgroups

Re: No invalid histogram error

2019-06-20 Thread Zanussi, Tom
Hi Masami, On 6/20/2019 7:17 AM, Masami Hiramatsu wrote: Hi Tom, I'm trying to use histogram on a synthetic event, but faced an odd situation. There is a synthetic event, which has foo and bar. /sys/kernel/debug/tracing # cat synthetic_events testevent int foo; int bar And when I

[PATCH] pwm: meson: fix the G12A AO clock parents order

2019-06-20 Thread Neil Armstrong
The Amlogic G12A and G12B Documentation is wrong, the AO xtal and clk81 clock source order is reversed, and validated when adding DVFS support by using the PWM AO D output to control the CPU supply voltage. The vendor tree also uses the reversed xtal and clk81 order at [1]. [1]

Re: [PATCH] slub: Don't panic for memcg kmem cache creation failure

2019-06-20 Thread Shakeel Butt
On Wed, Jun 19, 2019 at 10:50 PM Michal Hocko wrote: > > On Wed 19-06-19 16:25:14, Shakeel Butt wrote: > > Currently for CONFIG_SLUB, if a memcg kmem cache creation is failed and > > the corresponding root kmem cache has SLAB_PANIC flag, the kernel will > > be crashed. This is unnecessary as the

Dear Friend,

2019-06-20 Thread Mrs Alice Johnson
-- Dear Friend, I am Mrs Alice Johnson.am sending you this brief letter to solicit your partnership to transfer $18.5 million US Dollars.I shall send you more information and procedures when I receive positive response from you. please send me a message in my Email box

Re: [PATCH] x86/mm: Handle physical-virtual alignment mismatch in phys_p4d_init()

2019-06-20 Thread Dave Hansen
On 6/20/19 4:22 AM, Kirill A. Shutemov wrote: > The commit relaxes KASLR alignment requirements and it can lead to > mismatch bentween 'i' and 'p4d_index(vaddr)' inside the loop in > phys_p4d_init(). The mismatch in its turn leads to clearing wrong p4d > entry and eventually to the oops. Just

Re: [PATCH v2] mm, memcg: Add a memcg_slabinfo debugfs file

2019-06-20 Thread Shakeel Butt
On Thu, Jun 20, 2019 at 7:24 AM Waiman Long wrote: > > On 6/19/19 7:48 PM, Shakeel Butt wrote: > > Hi Waiman, > > > > On Wed, Jun 19, 2019 at 10:16 AM Waiman Long wrote: > >> There are concerns about memory leaks from extensive use of memory > >> cgroups as each memory cgroup creates its own set

[PATCH v7 5/5] arm64: dts: qcom: Add Asus NovaGo TP370QL

2019-06-20 Thread Jeffrey Hugo
This adds the initial DT for the Asus NovaGo TP370QL laptop. Supported functionality includes USB (host), microSD-card, keyboard, and trackpad. Signed-off-by: Jeffrey Hugo --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/msm8998-asus-novago-tp370ql.dts | 47

[PATCH v7 4/5] arm64: dts: qcom: Add HP Envy x2

2019-06-20 Thread Jeffrey Hugo
This adds the initial DT for the HP Envy x2 laptop. Supported functionality includes USB (host), microSD-card, keyboard, and trackpad. Signed-off-by: Jeffrey Hugo --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8998-hp-envy-x2.dts | 30 +++ 2

Re: WARNING in add_event_to_ctx

2019-06-20 Thread syzbot
syzbot has bisected this bug to: commit 33ea4b24277b06dbc55d7f5772a46f029600255e Author: Song Liu Date: Wed Dec 6 22:45:16 2017 + perf/core: Implement the 'perf_uprobe' PMU bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17561aa1a0 start commit: abf02e29 Merge tag

[PATCH v7 3/5] arm64: dts: qcom: Add Lenovo Miix 630

2019-06-20 Thread Jeffrey Hugo
This adds the initial DT for the Lenovo Miix 630 laptop. Supported functionality includes USB (host), microSD-card, keyboard, and trackpad. Signed-off-by: Jeffrey Hugo --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8998-clamshell.dtsi | 240

[PATCH v7 2/5] HID: quirks: Refactor ELAN 400 and 401 handling

2019-06-20 Thread Jeffrey Hugo
There needs to be coordination between hid-quirks and the elan_i2c driver about which devices are handled by what drivers. Currently, both use whitelists, which results in valid devices being unhandled by default, when they should not be rejected by hid-quirks. This is quickly becoming an issue.

Re: [PATCH] perf/rapl: restart perf rapl counter after resume

2019-06-20 Thread Liang, Kan
On 6/20/2019 8:50 AM, Peter Zijlstra wrote: On Mon, Jun 17, 2019 at 09:41:37PM +0800, Zhang Rui wrote: After S3 suspend/resume, "perf stat -I 1000 -e power/energy-pkg/ -a" reports an insane value for the very first sampling period after resume as shown below. 19.278989977  

[PATCH v7 1/5] Input: elan_i2c: Export the device id whitelist

2019-06-20 Thread Jeffrey Hugo
Elan_i2c and hid-quirks work in conjunction to decide which devices each driver will handle. Elan_i2c has a whitelist of devices that should be consumed by hid-quirks so that there is one master list of devices to handoff between the drivers. Put the ids in a header file so that hid-quirks can

Re: [PATCH v4 0/3] livepatch: Cleanup of reliable stacktrace warnings

2019-06-20 Thread Petr Mladek
On Sat 2019-06-15 15:43:20, Josh Poimboeuf wrote: > On Tue, Jun 11, 2019 at 04:13:17PM +0200, Miroslav Benes wrote: > > This is the fourth attempt to improve the situation of reliable stack > > trace warnings in livepatch. Based on discussion in > > 20190531074147.27616-1-pmla...@suse.com (v3). >

Re: [PATCH stable-4.4 v3] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

2019-06-20 Thread Greg KH
On Mon, Jun 17, 2019 at 08:58:24AM +0200, Michal Hocko wrote: > From: Andrea Arcangeli > > Upstream 04f5866e41fb70690e28397487d8bd8eea7d712a commit. > > The core dumping code has always run without holding the mmap_sem for > writing, despite that is the only way to ensure that the entire vma >

Re: [PATCH] FMC: fix 'passing zero to PTR_ERR()' warning

2019-06-20 Thread Alessandro Rubini
Hello. drivers/fmc is going to be removed from the official kernel (removal is queued by Linus Walleij, with approval by fmc authors). So this patch should be dropped. thanks /alessandro

Re: [PATCH] kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS

2019-06-20 Thread Masahiro Yamada
On Wed, Jun 12, 2019 at 3:43 AM Nathan Chancellor wrote: > > In commit ebcc5928c5d9 ("arm64: Silence gcc warnings about arch ABI > drift"), the arm64 Makefile added -Wno-psabi to KBUILD_CFLAGS, which is > a GCC only option so clang rightfully complains: > > warning: unknown warning option

Re: [PATCH v2] mm, memcg: Add a memcg_slabinfo debugfs file

2019-06-20 Thread Waiman Long
On 6/19/19 7:48 PM, Shakeel Butt wrote: > Hi Waiman, > > On Wed, Jun 19, 2019 at 10:16 AM Waiman Long wrote: >> There are concerns about memory leaks from extensive use of memory >> cgroups as each memory cgroup creates its own set of kmem caches. There >> is a possiblity that the memcg kmem

[PATCH] regulator: qcom_spmi: Do NULL check for lvs

2019-06-20 Thread Jeffrey Hugo
Low-voltage switches (lvs) don't have set_points since the voltage ranges of the output are really controlled by the inputs. This is a problem for the newly added linear range support in the probe(), as that will cause a null pointer dereference error on older platforms like msm8974 which happen

Re: [RESEND PATCH 4/4] dt-bindings: iio: adc: Convert ad7124 documentation to YAML

2019-06-20 Thread Rob Herring
On Thu, Jun 20, 2019 at 3:42 AM Mircea Caprioru wrote: > > Convert AD7124 bindings documentation to YAML format. > > Signed-off-by: Mircea Caprioru > --- > .../bindings/iio/adc/adi,ad7124.yaml | 146 ++ > 1 file changed, 146 insertions(+) > create mode 100644

Re: [PATCH net-next] net: dsa: mv88e6xxx: introduce helpers for handling chip->reg_lock

2019-06-20 Thread Vivien Didelot
On Thu, 20 Jun 2019 13:50:42 +, Rasmus Villemoes wrote: > This is a no-op that simply moves all locking and unlocking of > ->reg_lock into trivial helpers. I did that to be able to easily add > some ad hoc instrumentation to those helpers to get some information > on contention and hold

Re: [RESEND 5.1-stable PATCH] mm: mmu_gather: remove __tlb_reset_range() for force flush

2019-06-20 Thread Greg KH
On Tue, Jun 18, 2019 at 04:57:17AM +0800, Yang Shi wrote: > commit 7a30df49f63ad92318ddf1f7498d1129a77dd4bd upstream THanks for the backport, now queued up. greg k-h

Re: linux-next: build failure after merge of the netfilter-next tree

2019-06-20 Thread Stephen Rothwell
Hi Pablo, On Thu, 20 Jun 2019 15:57:03 +0200 Pablo Neira Ayuso wrote: > > https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git/commit/?id=8527fa6cc68a489f735823e61b31ec6cb266274a Good timing :-) Thanks. -- Cheers, Stephen Rothwell pgpI6bpfAigja.pgp Description: OpenPGP

Re: [PATCH v2 2/2] x86/cpufeatures: Enumerate new AVX512 BFLOAT16 instructions

2019-06-20 Thread Fenghua Yu
On Thu, Jun 20, 2019 at 12:37:20PM +0200, Borislav Petkov wrote: > On Wed, Jun 19, 2019 at 02:34:04PM -0700, Fenghua Yu wrote: > You need to test the sub-leaf index validity here before accessing > subleaf 1: > > diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c > index

[PATCH 2/3] timekeeping: use proper ktime_add when adding nsecs in coarse offset

2019-06-20 Thread Jason A. Donenfeld
While this doesn't actually amount to a real difference, since the macro evaluates to the same thing, every place else operates on ktime_t using these functions, so let's not break the pattern. Fixes: e3ff9c3678b4 ("timekeeping: Repair ktime_get_coarse*() granularity") Signed-off-by: Jason A.

[PATCH 1/3] timekeeping: add missing non-_ns functions for fast accessors

2019-06-20 Thread Jason A. Donenfeld
Previously there was no analogue to get proper ktime_t versions of the fast variety of ktime invocations. This commit makes the interface uniform with the other accessors. Signed-off-by: Jason A. Donenfeld Cc: Arnd Bergmann Cc: Thomas Gleixner --- Documentation/core-api/timekeeping.rst | 7

[PATCH 3/3] timekeeping: add missing _ns functions for coarse accessors

2019-06-20 Thread Jason A. Donenfeld
This further unifies the accessors for the fast and coarse functions, so that the same types of functions are available for each. There was also a bit of confusion with the documentation, which prior advertised a function that has never existed. Finally, the vanilla ktime_get_coarse() was omitted

[PATCH v2 4/7] rslib: decode_rs: code cleanup

2019-06-20 Thread Ferdinand Blomqvist
Nothing useful was done after the finish label when count is negative so return directly instead of jumping to finish. Signed-off-by: Ferdinand Blomqvist --- lib/reed_solomon/decode_rs.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/reed_solomon/decode_rs.c

[PATCH v2 3/7] rslib: decode_rs: Fix length parameter check

2019-06-20 Thread Ferdinand Blomqvist
The length of the data load must be at least one. Or in other words, there must be room for at least 1 data and nroots parity symbols after shortening the RS code. Signed-off-by: Ferdinand Blomqvist --- lib/reed_solomon/decode_rs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 0/7] rslib: RS decoder is severely broken

2019-06-20 Thread Ferdinand Blomqvist
This is the second revision of this series that fixes the bugs/flaws in the RS decoder. This addresses all of Thomas' comments/suggestions. Changes in v2: - Replace code that requires the FPU (one small thing in test_rslib.c) - More verbose changelog (patch 2/7) - Clarifying comment (patch 7/7) -

[PATCH v2 2/7] rslib: Fix decoding of shortened codes

2019-06-20 Thread Ferdinand Blomqvist
The decoding of shortenend codes is broken. It only works as expected if there are no erasures. When decoding with erasures, Lambda (the error and erasure locator polynomial) is initialized from the given erasure positions. The pad parameter is not accounted for by the initialisation code, and

[PATCH v2 7/7] rslib: Fix remaining decoder flaws

2019-06-20 Thread Ferdinand Blomqvist
The decoder is flawed in the following ways: - The decoder sometimes fails silently, i.e. it announces success but returns a word that is not a codeword. - The return value of the decoder is incoherent with respect to how fixed erasures are counted. If the word to be decoded is a codeword,

[PATCH v2 6/7] rslib: Update documentation

2019-06-20 Thread Ferdinand Blomqvist
The decoder returns the number of corrected symbols, not bits. The caller provided syndrome must be in index form. Signed-off-by: Ferdinand Blomqvist --- lib/reed_solomon/reed_solomon.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH v2 1/7] rslib: Add tests for the encoder and decoder

2019-06-20 Thread Ferdinand Blomqvist
A Reed-Solomon code with minimum distance d can correct any error and erasure pattern that satisfies 2 * #error + #erasures < d. If the error correction capacity is exceeded, then correct decoding cannot be guaranteed. The decoder must, however, return a valid codeword or report failure. There

[PATCH v2 5/7] rslib: Fix handling of of caller provided syndrome

2019-06-20 Thread Ferdinand Blomqvist
Check if the syndrome provided by the caller is zero, and act accordingly. Signed-off-by: Ferdinand Blomqvist --- lib/reed_solomon/decode_rs.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/reed_solomon/decode_rs.c b/lib/reed_solomon/decode_rs.c index

Re: [RFC] deadlock with flush_work() in UAS

2019-06-20 Thread Tejun Heo
Hello, On Tue, Jun 18, 2019 at 11:59:39AM -0400, Alan Stern wrote: > > > Even if you disagree, perhaps we should have a global workqueue with a > > > permanently set noio flag. It could be shared among multiple drivers > > > such as uas and the hub driver for purposes like this. (In fact, the

<    4   5   6   7   8   9   10   11   12   13   >