[PATCH v2 8/8] fs: prevent page refcount overflow in pipe_buf_get

2019-10-08 Thread Ajay Kaher
From: Matthew Wilcox commit 15fab63e1e57be9fdb5eec1bbc5916e9825e9acb upstream. Change pipe_buf_get() to return a bool indicating whether it succeeded in raising the refcount of the page (if the thing in the pipe is a page). This removes another mechanism for overflowing the page refcount. All

Re: [PATCH] ARM: dts: am335x-sancloud-bbe: Fix PHY mode for ethernet

2019-10-08 Thread Jeroen Hofstee
Hi, On 10/8/19 6:51 PM, Tony Lindgren wrote: > * Jeroen Hofstee [191008 16:43]: >> Hello Tony, >> >> On 10/8/19 6:14 PM, Tony Lindgren wrote: >>> * Jeroen Hofstee [191008 16:03]: Hello Tony, On 10/8/19 4:23 PM, Tony Lindgren wrote: > * Grygorii Strashko [191003 02:32]:

[PATCH v2 1/8] mm: make page ref count overflow check tighter and more explicit

2019-10-08 Thread Ajay Kaher
From: Linus Torvalds commit f958d7b528b1b40c44cfda5eabe2d82760d868c3 upsteam. We have a VM_BUG_ON() to check that the page reference count doesn't underflow (or get close to overflow) by checking the sign of the count. That's all fine, but we actually want to allow people to use a "get page

[PATCH v2 7/8] pipe: add pipe_buf_get() helper

2019-10-08 Thread Ajay Kaher
From: Miklos Szeredi commit 7bf2d1df80822ec056363627e2014990f068f7aa upstream. Signed-off-by: Miklos Szeredi Signed-off-by: Al Viro Signed-off-by: Ajay Kaher Reviewed-by: Srivatsa S. Bhat (VMware) --- fs/fuse/dev.c | 2 +- fs/splice.c | 4 ++--

[PATCH v2 5/8] mm, gup: ensure real head page is ref-counted when using hugepages

2019-10-08 Thread Ajay Kaher
From: Punit Agrawal commit d63206ee32b6e64b0e12d46e5d6004afd9913713 upstream. When speculatively taking references to a hugepage using page_cache_add_speculative() in gup_huge_pmd(), it is assumed that the page returned by pmd_page() is the head page. Although normally true, this assumption

[PATCH v2 2/8] mm: add 'try_get_page()' helper function

2019-10-08 Thread Ajay Kaher
From: Linus Torvalds commit 88b1a17dfc3ed7728316478fae0f5ad508f50397 upsteam. This is the same as the traditional 'get_page()' function, but instead of unconditionally incrementing the reference count of the page, it only does so if the count was "safe". It returns whether the reference count

[PATCH v2 6/8] mm: prevent get_user_pages() from overflowing page refcount

2019-10-08 Thread Ajay Kaher
From: Linus Torvalds commit 8fde12ca79aff9b5ba951fce1a2641901b8d8e64 upstream. If the page refcount wraps around past zero, it will be freed while there are still four billion references to it. One of the possible avenues for an attacker to try to make this happen is by doing direct IO on a

[PATCH v2 4/8] mm, gup: remove broken VM_BUG_ON_PAGE compound check for hugepages

2019-10-08 Thread Ajay Kaher
From: Will Deacon commit a3e328556d41bb61c55f9dfcc62d6a826ea97b85 upstream. When operating on hugepages with DEBUG_VM enabled, the GUP code checks the compound head for each tail page prior to calling page_cache_add_speculative. This is broken, because on the fast-GUP path (where we don't hold

[PATCH] ARM: dts: s3c64xx: Fix init order of clock providers

2019-10-08 Thread Krzysztof Kozlowski
From: Lihua Yao fin_pll is the parent of clock-controller@7e00f000, specify the dependency to ensure proper initialization order of clock providers. without this patch: [0.00] S3C6410 clocks: apll = 0, mpll = 0 [0.00] epll = 0, arm_clk = 0 with this patch: [0.00]

[PATCH v2 3/8] mm: handle PTE-mapped tail pages in gerneric fast gup implementaiton

2019-10-08 Thread Ajay Kaher
From: "Kirill A. Shutemov" commit 7aef4172c7957d7e65fc172be4c99becaef855d4 upstream. With new refcounting we are going to see THP tail pages mapped with PTE. Generic fast GUP rely on page_cache_get_speculative() to obtain reference on page. page_cache_get_speculative() always fails on tail

[PATCH v2 0/8] Backported fixes for 4.4 stable tree

2019-10-08 Thread Ajay Kaher
These patches include few backported fixes for the 4.4 stable tree. I would appreciate if you could kindly consider including them in the next release. Ajay --- [Changes from v1]: No changes, only answering Greg's below queries: >> Why are these needed? From what I remember, the last patch

Re: [PATCH] clk: at91: add compatible for sam9x60

2019-10-08 Thread Alexandre Belloni
Hi, On 08/10/2019 19:46:26+0300, Claudiu Beznea wrote: > Add compatible for SAM9X60's PMC. I think the commit log could be clearer and mention why this is needed and the compatible string in sam9x60 is not sufficient. > > Signed-off-by: Claudiu Beznea > --- > drivers/clk/at91/pmc.c | 1 + >

RE: [Intel-wired-lan] [PATCH 1/1] ixgbe: protect TX timestamping from API misuse

2019-10-08 Thread Bowers, AndrewX
> -Original Message- > From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On > Behalf Of Manjunath Patil > Sent: Saturday, October 5, 2019 8:20 AM > To: Kirsher, Jeffrey T ; da...@davemloft.net; > intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; linux- >

Re: [PATCH 11/16] x86/cpu: Print VMX features as separate line item in /proc/cpuinfo

2019-10-08 Thread Jim Mattson
On Mon, Oct 7, 2019 at 11:57 PM Paolo Bonzini wrote: > > On 07/10/19 21:56, Sean Christopherson wrote: > > On Mon, Oct 07, 2019 at 07:12:37PM +0200, Paolo Bonzini wrote: > >> On 04/10/19 23:56, Sean Christopherson wrote: > >>> diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c >

Re: [alsa-devel] Applied "ASoc: tas2770: Fix build error without GPIOLIB" to the asoc tree

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 06:35:08PM +0200, Ladislav Michl wrote: > Hmm, too late it seems... > Patch should actually remove as this is legacy one (see comment > on the top and also Documentation/driver-api/gpio/consumer.rst) Yes, leaving that is an oversight. > And that brings a question. Given

Re: [RFC v5 4/6] sched/fair: Tune task wake-up logic to pack small background tasks on fewer cores

2019-10-08 Thread Dietmar Eggemann
[- Quentin Perret ] [+ Quentin Perret ] See commit c193a3ffc282 ("mailmap: Update email address for Quentin Perret") On 07/10/2019 18:53, Parth Shah wrote: > > > On 10/7/19 5:49 PM, Vincent Guittot wrote: >> On Mon, 7 Oct 2019 at 10:31, Parth Shah wrote: >>> >>> The algorithm finds the first

Re: [PATCH] ARM: dts: am335x-sancloud-bbe: Fix PHY mode for ethernet

2019-10-08 Thread Tony Lindgren
* Jeroen Hofstee [191008 16:43]: > Hello Tony, > > On 10/8/19 6:14 PM, Tony Lindgren wrote: > > * Jeroen Hofstee [191008 16:03]: > >> Hello Tony, > >> > >> On 10/8/19 4:23 PM, Tony Lindgren wrote: > >>> * Grygorii Strashko [191003 02:32]: > On 03/10/2019 11:16, Jeroen Hofstee wrote: >

Re: [PATCH] mm/kmemleak: skip late_init if not skip disable

2019-10-08 Thread Catalin Marinas
Hi Murphy, On Sun, Sep 29, 2019 at 05:56:59PM +0800, Murphy Zhou wrote: > Now if DEFAULT_OFF set to y, kmemleak_init will start the cleanup_work > workqueue. Then late_init call will set kmemleak_initialized to 1, the > cleaup workqueue will try to do cleanup, triggering: > > [24.738773]

[PATCH] clk: at91: add compatible for sam9x60

2019-10-08 Thread Claudiu Beznea
Add compatible for SAM9X60's PMC. Signed-off-by: Claudiu Beznea --- drivers/clk/at91/pmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index db24539d5740..24975bca608e 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@

Re: [PATCH 1/2] Revert "rsi: fix potential null dereference in rsi_probe()"

2019-10-08 Thread Johan Hovold
On Tue, Oct 08, 2019 at 06:56:37PM +0300, Kalle Valo wrote: > Kalle Valo writes: > > > Johan Hovold writes: > > > >> This reverts commit f170d44bc4ec2feae5f6206980e7ae7fbf0432a0. > >> > >> USB core will never call a USB-driver probe function with a NULL > >> device-id pointer. > >> > >>

Re: [PATCH] ARM: dts: am335x-sancloud-bbe: Fix PHY mode for ethernet

2019-10-08 Thread Jeroen Hofstee
Hello Tony, On 10/8/19 6:14 PM, Tony Lindgren wrote: > * Jeroen Hofstee [191008 16:03]: >> Hello Tony, >> >> On 10/8/19 4:23 PM, Tony Lindgren wrote: >>> * Grygorii Strashko [191003 02:32]: On 03/10/2019 11:16, Jeroen Hofstee wrote: > Furthermore 4.19 is fine, so there is no need to

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-08 Thread Valentin Schneider
On 08/10/2019 17:33, Peter Zijlstra wrote: > On Tue, Oct 08, 2019 at 03:34:04PM +0100, Valentin Schneider wrote: >> On 08/10/2019 15:16, Peter Zijlstra wrote: >>> On Wed, Oct 02, 2019 at 11:47:59AM +0100, Valentin Schneider wrote: >>> Yeah, right shift on signed negative values are

Re: [PATCH] rcu: Avoid to modify mask_ofl_ipi in sync_rcu_exp_select_node_cpus()

2019-10-08 Thread Marco Elver
On Tue, 8 Oct 2019 at 18:30, Joel Fernandes wrote: > > On Tue, Oct 08, 2019 at 01:01:40PM +0800, Boqun Feng wrote: > > "mask_ofl_ipi" is used for iterate CPUs which IPIs are needed to send > > to, however in the IPI sending loop, "mask_ofl_ipi" along with another > > variable "mask_ofl_test"

Re: [alsa-devel] Applied "ASoc: tas2770: Fix build error without GPIOLIB" to the asoc tree

2019-10-08 Thread Ladislav Michl
Hi YueHaibing & Mark, On Mon, Oct 07, 2019 at 02:03:09PM +0100, Mark Brown wrote: > The patch > >ASoc: tas2770: Fix build error without GPIOLIB > > has been applied to the asoc tree at > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 Hmm, too late it

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-08 Thread Peter Zijlstra
On Tue, Oct 08, 2019 at 03:34:04PM +0100, Valentin Schneider wrote: > On 08/10/2019 15:16, Peter Zijlstra wrote: > > On Wed, Oct 02, 2019 at 11:47:59AM +0100, Valentin Schneider wrote: > > > >> Yeah, right shift on signed negative values are implementation defined. > > > > Seriously? Even under

Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Laura Abbott
On 10/7/19 9:26 PM, Al Viro wrote: On Mon, Oct 07, 2019 at 05:50:31PM -0700, Hugh Dickins wrote: [sorry for being MIA - had been sick through the last week, just digging myself from under piles of mail; my apologies] (tmpfs, very tiresomely, supports a NUMA "mpol" mount option which can have

Re: [PATCH] pwm: cros-ec: Let cros_ec_pwm_get_state() return the last applied state

2019-10-08 Thread Enric Balletbo i Serra
Hi Uwe, Thanks for the quick reply. On 8/10/19 16:34, Uwe Kleine-König wrote: > Hello Enric, > > On Tue, Oct 08, 2019 at 12:54:17PM +0200, Enric Balletbo i Serra wrote: >> @@ -117,17 +122,28 @@ static void cros_ec_pwm_get_state(struct pwm_chip >> *chip, struct pwm_device *pwm, >> struct

Re: [PATCH 01/10] perf/core, x86: Add PERF_SAMPLE_LBR_TOS

2019-10-08 Thread Peter Zijlstra
On Tue, Oct 08, 2019 at 11:25:01AM -0400, Liang, Kan wrote: > > The perf tool bloody sets the perf_event_attr::branch_sample_type value! > > Of course it knows to expect the TOS field when it asks for it in the > > first place. > > > > Users may generate the perf.data on one machine, and parse

Re: [PATCH] rcu: Avoid to modify mask_ofl_ipi in sync_rcu_exp_select_node_cpus()

2019-10-08 Thread Joel Fernandes
On Tue, Oct 08, 2019 at 01:01:40PM +0800, Boqun Feng wrote: > "mask_ofl_ipi" is used for iterate CPUs which IPIs are needed to send > to, however in the IPI sending loop, "mask_ofl_ipi" along with another > variable "mask_ofl_test" might also get modified to record which CPU's > quiesent state can

Re: [PATCH] rtl8xxxu: make arrays static, makes object smaller

2019-10-08 Thread Jes Sorensen
On 10/7/19 9:53 AM, Colin King wrote: From: Colin Ian King Don't populate const arrays on the stack but instead make them static. Makes the object code smaller by 60 bytes. Before: text data bss dec hex filename 15133 8768 0 239015d5d

Re: [PATCH 1/3] regulator: core: fix boot-on regulators use_count usage

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 06:16:40PM +0200, Marco Felsch wrote: > On 19-10-08 16:42, Mark Brown wrote: > > If this is a GPIO regulator then the Linux APIs mean you can't read the > > status back so it's one of the regulators for which this property was > > invented. This is a real limitation of

Re: [PATCH v4 1/2] rcu/tree: Add basic support for kfree_rcu() batching

2019-10-08 Thread Uladzislau Rezki
On Fri, Oct 04, 2019 at 01:20:38PM -0400, Joel Fernandes wrote: > On Tue, Oct 01, 2019 at 01:27:02PM +0200, Uladzislau Rezki wrote: > [snip] > > > > I have just a small question related to workloads and performance > > > > evaluation. > > > > Are you aware of any specific workloads which benefit

Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable()

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 06:02:08PM +0200, Bartlomiej Zolnierkiewicz wrote: > Taking into account your remark about enable operation on coupled > regulators and Dmitry's mail about cpufreq issue I think now that just > dropping opp change is the most straightforward fix. It's certainly the most

Re: [RFC v5 4/6] sched/fair: Tune task wake-up logic to pack small background tasks on fewer cores

2019-10-08 Thread Vincent Guittot
On Mon, 7 Oct 2019 at 18:54, Parth Shah wrote: > > > > On 10/7/19 5:49 PM, Vincent Guittot wrote: > > On Mon, 7 Oct 2019 at 10:31, Parth Shah wrote: > >> > >> The algorithm finds the first non idle core in the system and tries to > >> place a task in the idle CPU in the chosen core. To maintain

Re: [PATCH] arm64: lse: fix LSE atomics with LLVM's integrated assembler

2019-10-08 Thread Robin Murphy
On 08/10/2019 16:22, Sami Tolvanen wrote: On Mon, Oct 7, 2019 at 2:46 PM 'Nick Desaulniers' via Clang Built Linux wrote: I'm worried that one of these might lower to LSE atomics without ALTERNATIVE guards by blanketing all C code with `-march=armv8-a+lse`. True, that's a valid concern. I

Re: [PATCH 1/3] regulator: core: fix boot-on regulators use_count usage

2019-10-08 Thread Marco Felsch
On 19-10-08 16:42, Mark Brown wrote: > On Tue, Oct 08, 2019 at 04:56:05PM +0200, Marco Felsch wrote: > > On 19-10-08 13:51, Mark Brown wrote: > > > > No, we shouldn't do anything when the regulator probes - we'll only > > > disable unused regulators when we get to the end of boot (currently we >

[PATCH v2] MIPS: generic: Use __initconst for const init data

2019-10-08 Thread Tiezhu Yang
Fix the following checkpatch errors: $ ./scripts/checkpatch.pl --no-tree -f arch/mips/generic/init.c ERROR: Use of const init definition must use __initconst #23: FILE: arch/mips/generic/init.c:23: +static __initdata const void *fdt; ERROR: Use of const init definition must use __initconst #24:

Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable()

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 06:02:36PM +0300, Dmitry Osipenko wrote: Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > That OPP patch caused the same problem for the NVIDIA

Re: [PATCH] ARM: dts: am335x-sancloud-bbe: Fix PHY mode for ethernet

2019-10-08 Thread Tony Lindgren
* Jeroen Hofstee [191008 16:03]: > Hello Tony, > > On 10/8/19 4:23 PM, Tony Lindgren wrote: > > * Grygorii Strashko [191003 02:32]: > >> On 03/10/2019 11:16, Jeroen Hofstee wrote: > >>> Furthermore 4.19 is fine, so there is no need to include it in stable > >>> and have a note to make sure also

Re: [PATCH] ip6erspan: remove the incorrect mtu limit for ip6erspan

2019-10-08 Thread William Tu
On Tue, Oct 08, 2019 at 05:56:03PM +0800, Haishuang Yan wrote: > ip6erspan driver calls ether_setup(), after commit 61e84623ace3 > ("net: centralize net_device min/max MTU checking"), the range > of mtu is [min_mtu, max_mtu], which is [68, 1500] by default. > > It causes the dev mtu of the erspan

Re: [PATCH v2] mfd: intel-lpss: use devm_ioremap_uc for MMIO

2019-10-08 Thread Andy Shevchenko
On Tue, Oct 08, 2019 at 03:16:28PM +, Luis Chamberlain wrote: > On Mon, Oct 07, 2019 at 12:42:31PM -0600, Tuowen Zhao wrote: > > +EXPORT_SYMBOL(devm_ioremap_uc); > > EXPORT_SYMBOL_GPL() would be my preference. Maybe we can even split this to two patches? -- With Best Regards, Andy

Re: [PATCH RFC] kconfig: add hvconfig for Linux on Hyper-V

2019-10-08 Thread Wei Liu
On Wed, Oct 09, 2019 at 01:03:19AM +0900, Masahiro Yamada wrote: [...] > > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile > > index ef2f2336c469..2ee46301b22e 100644 > > --- a/scripts/kconfig/Makefile > > +++ b/scripts/kconfig/Makefile > > @@ -104,6 +104,10 @@ PHONY += xenconfig

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Qian Cai
On Tue, 2019-10-08 at 14:56 +0200, Christian Borntraeger wrote: > Adding Peter Oberparleiter. > Peter, can you have a look? > > On 08.10.19 10:27, Michal Hocko wrote: > > On Tue 08-10-19 09:43:57, Petr Mladek wrote: > > > On Mon 2019-10-07 16:49:37, Michal Hocko wrote: > > > > [Cc s390

Re: [PATCH] mm: vmalloc: Use the vmap_area_lock to protect ne_fit_preload_node

2019-10-08 Thread Uladzislau Rezki
On Mon, Oct 07, 2019 at 11:44:20PM +0200, Uladzislau Rezki wrote: > On Mon, Oct 07, 2019 at 07:36:44PM +0200, Sebastian Andrzej Siewior wrote: > > On 2019-10-07 18:56:11 [+0200], Uladzislau Rezki wrote: > > > Actually there is a high lock contention on vmap_area_lock, because it > > > is still

Re: [PATCH RFC] kconfig: add hvconfig for Linux on Hyper-V

2019-10-08 Thread Masahiro Yamada
On Tue, Oct 8, 2019 at 10:15 PM Wei Liu wrote: > > From: Wei Liu > > Add an config file snippet which enalbes additional options useful for > running the kernel in a Hyper-V guest. > > The expected use case is a user provides an existing config file then > executes `make hvconfig`. It will merge

[PATCH v2 1/2] ARM: multi_v7_defconfig: Enable options for boards with Exynos SoC

2019-10-08 Thread Krzysztof Kozlowski
Sync with exynos_defconfig and enable following options for Samsung Exynos SoC based boards: 1. NFC_S3FWRN5_I2C (with NFC stack): Samsung S3FWRN5 NCI NFC Controller, used for example on Exynos5433 (if booted in 32-bit mode), 2. S3C2410_WATCHDOG: watchdog driver used on S3C, S5P and Exynos SoCs,

[PATCH v2 2/2] ARM: multi_v7_defconfig: Enable Exynos bus and memory frequency scaling (devfreq)

2019-10-08 Thread Krzysztof Kozlowski
Enable devfreq events along with drivers for scaling frequency and voltages of Exynos buses and Dynamic Memory Controller (DMC). This usually brings energy saving benefits. So far devfreq was disabled because it was causing hangs during system reboot (voltage not matching reset frequency). This

Re: [PATCH] ARM: dts: am335x-sancloud-bbe: Fix PHY mode for ethernet

2019-10-08 Thread Jeroen Hofstee
Hello Tony, On 10/8/19 4:23 PM, Tony Lindgren wrote: > * Grygorii Strashko [191003 02:32]: >> On 03/10/2019 11:16, Jeroen Hofstee wrote: >>> Furthermore 4.19 is fine, so there is no need to include it in stable >>> and have a note to make sure also other patches are required etc. >> Hence all

Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable()

2019-10-08 Thread Bartlomiej Zolnierkiewicz
On 10/8/19 5:48 PM, Mark Brown wrote: > On Tue, Oct 08, 2019 at 03:24:17PM +0200, Bartlomiej Zolnierkiewicz wrote: > >> Commit 7f93ff73f7c8 ("opp: core: add regulators enable and disable") >> currently can be safely reverted as all affected users use always-on >> regulators. However IMHO it

Re: [PATCH v3] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-10-08 Thread Jes Sorensen
On 10/5/19 5:48 AM, Chris Chiu wrote: The RTL8723BU suffers the wifi disconnection problem while bluetooth device connected. While wifi is doing tx/rx, the bluetooth will scan without results. This is due to the wifi and bluetooth share the same single antenna for RF communication and they need

Re: [PATCH 5/7] bcm-vk: add bcm_vk UAPI

2019-10-08 Thread Olof Johansson
On Tue, Aug 27, 2019 at 7:49 AM Kieran Bingham wrote: > > Hi Scott, > > On 22/08/2019 20:24, Scott Branden wrote: > > Add user space api for bcm-vk driver. > > > > Signed-off-by: Scott Branden > > --- > > include/uapi/linux/misc/bcm_vk.h | 88 > > 1 file

Re: [PATCH 1/2] Revert "rsi: fix potential null dereference in rsi_probe()"

2019-10-08 Thread Kalle Valo
Kalle Valo writes: > Johan Hovold writes: > >> This reverts commit f170d44bc4ec2feae5f6206980e7ae7fbf0432a0. >> >> USB core will never call a USB-driver probe function with a NULL >> device-id pointer. >> >> Reverting before removing the existing checks in order to document this >> and prevent

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-10-08 Thread Philipp Zabel
Hi Martin, On Mon, 2019-10-07 at 21:53 +0200, Martin Blumenstingl wrote: > Hi Philipp, > > On Thu, Oct 3, 2019 at 4:19 PM Philipp Zabel wrote: > [...] > > > because the register layout was greatly simplified for the newer SoCs > > > (for which there is reset-intel) compared to the older ones >

Re: [PATCH v3 0/8] sched/fair: rework the CFS load balance

2019-10-08 Thread Vincent Guittot
Hi Phil, On Tue, 8 Oct 2019 at 16:33, Phil Auld wrote: > > Hi Vincent, > > On Thu, Sep 19, 2019 at 09:33:31AM +0200 Vincent Guittot wrote: > > Several wrong task placement have been raised with the current load > > balance algorithm but their fixes are not always straight forward and > > end up

[PATCH 6/9] perf/x86/cstate: Update C-state counters for Ice Lake

2019-10-08 Thread kan . liang
From: Kan Liang There is no Core C3 C-State counter for Ice Lake. Package C8/C9/C10 C-State counters are added for Ice Lake. Introduce a new event list, icl_cstates, for Ice Lake. Update the comments accordingly. Fixes: f08c47d1f86c ("perf/x86/intel/cstate: Add Icelake support") Signed-off-by:

[PATCH 9/9] perf/x86/cstate: Add Tiger Lake CPU support

2019-10-08 Thread kan . liang
From: Kan Liang Tiger Lake is the followon to Ice Lake. From the perspective of Intel cstate residency counters, there is nothing changed compared with Ice Lake. Share icl_cstates with Ice Lake. Update the comments for Tiger Lake. The External Design Specification (EDS) is not published yet.

[PATCH 7/9] perf/x86/intel: Add Tiger Lake CPU support

2019-10-08 Thread kan . liang
From: Kan Liang Tiger Lake is the followon to Ice Lake. From the perspective of Intel core PMU, there is little changes compared with Ice Lake, e.g. small changes in event list. But it doesn't impact on core PMU functionality. Share the perf code with Ice Lake. The event list patch will be

[PATCH 1/9] x86/cpu: Add Comet Lake to Intel family

2019-10-08 Thread kan . liang
From: Kan Liang Comet Lake is the new 10th Gen Intel processor. Add CPU model number for Comet Lake to the Intel family list. The CPU model number is not published in SDM yet. It comes from an authoritative internal source. Signed-off-by: Kan Liang Reviewed-by: Tony Luck Cc: Peter Zijlstra

[PATCH 5/9] perf/x86/msr: Add more CPU model number for Ice Lake

2019-10-08 Thread kan . liang
From: Kan Liang PPERF and SMI_COUNT MSRs are also supported by Ice Lake desktop and server. Signed-off-by: Kan Liang --- arch/x86/events/msr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c index c177bbe..8515512 100644 ---

[PATCH 2/9] perf/x86/intel: Add Comet Lake CPU support

2019-10-08 Thread kan . liang
From: Kan Liang Comet Lake is the new 10th Gen Intel processor. From the perspective of Intel PMU, there is nothing changed compared with Sky Lake. Share the perf code with Sky Lake. The patch has been tested on real hardware. Signed-off-by: Kan Liang --- arch/x86/events/intel/core.c | 2 ++

[PATCH 3/9] perf/x86/msr: Add Comet Lake CPU support

2019-10-08 Thread kan . liang
From: Kan Liang Comet Lake is the new 10th Gen Intel processor. PPERF and SMI_COUNT MSRs are also supported. The External Design Specification (EDS) is not published yet. It comes from an authoritative internal source. The patch has been tested on real hardware. Signed-off-by: Kan Liang ---

[PATCH 4/9] perf/x86/cstate: Add Comet Lake CPU support

2019-10-08 Thread kan . liang
From: Kan Liang Comet Lake is the new 10th Gen Intel processor. From the perspective of Intel cstate residency counters, there is nothing changed compared with Kaby Lake. Share hswult_cstates with Kaby Lake. Update the comments for Comet Lake. Kaby Lake is missed in the comments for some

[PATCH 8/9] perf/x86/msr: Add Tiger Lake CPU support

2019-10-08 Thread kan . liang
From: Kan Liang Tiger Lake is the followon to Ice Lake. PPERF and SMI_COUNT MSRs are also supported. The External Design Specification (EDS) is not published yet. It comes from an authoritative internal source. The patch has been tested on real hardware. Signed-off-by: Kan Liang ---

Re: [PATCH] mm, compaction: fix wrong pfn handling in __reset_isolation_pfn()

2019-10-08 Thread Mel Gorman
On Tue, Oct 08, 2019 at 05:29:15PM +0200, Vlastimil Babka wrote: > Florian and Dave reported [1] a NULL pointer dereference in > __reset_isolation_pfn(). While the exact cause is unclear, staring at the code > revealed two bugs, which might be related. > I think the fix is a good fit. Even if

[PATCH 0/9] perf: Several update for Comet Lake, Ice Lake and Tiger Lake

2019-10-08 Thread kan . liang
From: Kan Liang Comet Lake is the new 10th Gen Intel processor. Add Comet Lake to Intel family. >From the perspective of Intel core PMU, there is nothing changed compared with Sky Lake. Share the perf code with Sky Lake. Add support for perf msr and cstate driver as well. Tiger Lake is the

Re: [PATCH] rt2x00: remove input-polldev.h header

2019-10-08 Thread Kalle Valo
Dmitry Torokhov wrote: > The driver does not use input subsystem so we do not need this header, > and it is being removed, so stop pulling it in. > > Signed-off-by: Dmitry Torokhov Patch applied to wireless-drivers.git, thanks. 98d22b01f9f6 rt2x00: remove input-polldev.h header --

Re: [PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable()

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 03:24:17PM +0200, Bartlomiej Zolnierkiewicz wrote: > Commit 7f93ff73f7c8 ("opp: core: add regulators enable and disable") > currently can be safely reverted as all affected users use always-on > regulators. However IMHO it should be possible to enable always-on > regulator

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-08 Thread Valentin Schneider
On 08/10/2019 16:30, Vincent Guittot wrote: [...] > > This is how I plan to get ride of the problem: > + if (busiest->group_weight == 1 || sds->prefer_sibling) { > + unsigned int nr_diff = busiest->sum_h_nr_running; > + /* > +

Re: ehci-pci breakage with dma-mapping changes in 5.4-rc2

2019-10-08 Thread Arvind Sankar
On Tue, Oct 08, 2019 at 07:51:03AM -0400, Arvind Sankar wrote: > On Tue, Oct 08, 2019 at 09:32:10AM +0200, Christoph Hellwig wrote: > > On Mon, Oct 07, 2019 at 07:54:02PM -0400, Arvind Sankar wrote: > > > > Do you want me to resend the patch as its own mail, or do you just take > > > > it with a

Re: [PATCH v2] PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for Microblaze

2019-10-08 Thread Christoph Hellwig
> diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig > index a304f5ea11b9..9d259372fbfd 100644 > --- a/drivers/pci/Kconfig > +++ b/drivers/pci/Kconfig > @@ -52,7 +52,7 @@ config PCI_MSI > If you don't know what to do here, say Y. > > config PCI_MSI_IRQ_DOMAIN > - def_bool ARC

Re: [PATCH] microblaze: Include generic support for MSI irqdomains

2019-10-08 Thread Christoph Hellwig
On Tue, Oct 08, 2019 at 12:34:47PM +0200, Michal Simek wrote: > index e5c9170a07fc..83417105c00a 100644 > --- a/arch/microblaze/include/asm/Kbuild > +++ b/arch/microblaze/include/asm/Kbuild > @@ -25,6 +25,7 @@ generic-y += local64.h > generic-y += mcs_spinlock.h > generic-y += mm-arch-hooks.h >

Re: [PATCH v2] taskstats: fix data-race

2019-10-08 Thread Andrea Parri
> Oh ups, yeah of course :) > https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/log/?h=taskstats_syzbot You forgot to update the commit msg. It looks good to me modulo that. Thanks, Andrea

Re: [v1 PATCH 2/2] RISC-V: Consolidate isa correctness check

2019-10-08 Thread Christoph Hellwig
> +int riscv_read_check_isa(struct device_node *node, const char **isa) > +{ > + u32 hart; > + > + if (of_property_read_u32(node, "reg", )) { > + pr_warn("Found CPU without hart ID\n"); > + return -ENODEV; > + } > + > + if (of_property_read_string(node,

Re: [PATCH v2] base: soc: Handle custom soc information sysfs entries

2019-10-08 Thread Greg KH
On Tue, Oct 08, 2019 at 08:33:11AM -0700, Stephen Boyd wrote: > Quoting Murali Nalajala (2019-10-07 13:37:42) > > Soc framework exposed sysfs entries are not sufficient for some > > of the h/w platforms. Currently there is no interface where soc > > drivers can expose further information about

Re: [PATCH 1/3] regulator: core: fix boot-on regulators use_count usage

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 04:56:05PM +0200, Marco Felsch wrote: > On 19-10-08 13:51, Mark Brown wrote: > > No, we shouldn't do anything when the regulator probes - we'll only > > disable unused regulators when we get to the end of boot (currently we > > delay this by 30s to give userspace a chance

Re: [v1 PATCH 1/2] RISC-V: Remove unsupported isa string info print

2019-10-08 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v2 3/3] RISC-V: Move SBI related macros under uapi.

2019-10-08 Thread Christoph Hellwig
On Thu, Oct 03, 2019 at 11:00:05AM +0530, Anup Patel wrote: > These defines are indeed part of KVM userspace API because we will > be forwarding SBI calls not handled by KVM RISC-V kernel module to > KVM userspace (QEMU/KVMTOOL). The forwarded SBI call details > are passed to userspace via "struct

Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-08 Thread Greg KH
On Tue, Oct 08, 2019 at 04:29:00PM +0100, Al Viro wrote: > On Tue, Oct 08, 2019 at 03:14:16PM +0200, Greg KH wrote: > > On Tue, Oct 08, 2019 at 05:57:12AM +0100, Al Viro wrote: > > > > > > OK... BTW, do you agree that the use of access_ok() in > > > drivers/tty/n_hdlc.c:n_hdlc_tty_read() is

[PATCH] HID: i2c-hid: Remove runtime power management

2019-10-08 Thread Kai-Heng Feng
Runtime power management in i2c-hid brings lots of issues, such as: - When transitioning from display manager to desktop session, i2c-hid was closed and opened, so the device was set to SLEEP and ON in a short period. Vendors confirmed that their devices can't handle fast ON/SLEEP command because

Re: [PATCH v2] taskstats: fix data-race

2019-10-08 Thread Christian Brauner
On Tue, Oct 08, 2019 at 05:26:59PM +0200, Andrea Parri wrote: > On Tue, Oct 08, 2019 at 04:24:14PM +0200, Christian Brauner wrote: > > On Tue, Oct 08, 2019 at 04:20:35PM +0200, Andrea Parri wrote: > > > On Mon, Oct 07, 2019 at 04:18:26PM +0200, Dmitry Vyukov wrote: > > > > On Mon, Oct 7, 2019 at

Re: [PATCH 4.19 033/106] drm/amd/display: support spdif

2019-10-08 Thread Lakha, Bhawanpreet
+Harry You're completely right. This was part of a larger patch dealing with embargoed code and is meaningless without the embargoed code. It should've been caught and never gone upstream. We've already put some new processes in place to deal with patches like this going forward. This isn't a

Re: [PATCH v2] base: soc: Handle custom soc information sysfs entries

2019-10-08 Thread Stephen Boyd
Quoting Murali Nalajala (2019-10-07 13:37:42) > Soc framework exposed sysfs entries are not sufficient for some > of the h/w platforms. Currently there is no interface where soc > drivers can expose further information about their SoCs via soc > framework. This change address this limitation where

Re: [PATCH v10 1/3] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-10-08 Thread Suzuki K Poulose
On 08/10/2019 02:12, Justin He (Arm Technology China) wrote: Hi Will and Marc Sorry for the late response, just came back from a vacation. -Original Message- From: Marc Zyngier Sent: 2019年10月1日 21:19 To: Will Deacon Cc: Justin He (Arm Technology China) ; Catalin Marinas ; Mark

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-08 Thread Vincent Guittot
Le Tuesday 08 Oct 2019 à 15:34:04 (+0100), Valentin Schneider a écrit : > On 08/10/2019 15:16, Peter Zijlstra wrote: > > On Wed, Oct 02, 2019 at 11:47:59AM +0100, Valentin Schneider wrote: > > > >> Yeah, right shift on signed negative values are implementation defined. > > > > Seriously? Even

Re: [PATCH 1/1] iio: (bma400) add driver for the BMA400

2019-10-08 Thread Peter Meerwald-Stadler
On Sun, 6 Oct 2019, Jonathan Cameron wrote: > On Wed, 25 Sep 2019 01:39:41 + > Dan Robertson wrote: > > > Add a IIO driver for the Bosch BMA400 3-axes ultra-low power accelerometer. > > The driver supports reading from the acceleration and temperature > > registers. The driver also supports

[PATCH -next] hung_task: fix Documentation warning

2019-10-08 Thread Randy Dunlap
--- Documentation/admin-guide/sysctl/kernel.rst |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20191008.orig/Documentation/admin-guide/sysctl/kernel.rst +++ linux-next-20191008/Documentation/admin-guide/sysctl/kernel.rst @@ -394,7 +394,7 @@ This file shows up

[PATCH] mm, compaction: fix wrong pfn handling in __reset_isolation_pfn()

2019-10-08 Thread Vlastimil Babka
Florian and Dave reported [1] a NULL pointer dereference in __reset_isolation_pfn(). While the exact cause is unclear, staring at the code revealed two bugs, which might be related. One bug is that if zone starts in the middle of pageblock, block_page might correspond to different pfn than

Re: [PATCH] checkpatch: use patch subject when reading from stdin

2019-10-08 Thread Geert Uytterhoeven
Hi Joe, On Tue, Oct 8, 2019 at 5:20 PM Joe Perches wrote: > On Tue, 2019-10-08 at 11:40 +0200, Geert Uytterhoeven wrote: > > When reading a patch file from standard input, checkpatch calls it "Your > > patch", and reports its state as: > > > > Your patch has style problems, please review. >

Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-08 Thread Al Viro
On Tue, Oct 08, 2019 at 03:14:16PM +0200, Greg KH wrote: > On Tue, Oct 08, 2019 at 05:57:12AM +0100, Al Viro wrote: > > > > OK... BTW, do you agree that the use of access_ok() in > > drivers/tty/n_hdlc.c:n_hdlc_tty_read() is wrong? It's used as an early > > cutoff, so we don't bother

Re: [PATCH] quota: check quota type in early stage

2019-10-08 Thread Jan Kara
On Tue 08-10-19 22:50:59, Chengguang Xu wrote: > Check quota type in early stage so we can avoid many > unncessary operations when the type is wrong. > > Signed-off-by: Chengguang Xu Yeah, checking earlier makes sense, especially since it consolidates two checks into one. I've added your patch

Re: [PATCH v2] taskstats: fix data-race

2019-10-08 Thread Andrea Parri
On Tue, Oct 08, 2019 at 04:24:14PM +0200, Christian Brauner wrote: > On Tue, Oct 08, 2019 at 04:20:35PM +0200, Andrea Parri wrote: > > On Mon, Oct 07, 2019 at 04:18:26PM +0200, Dmitry Vyukov wrote: > > > On Mon, Oct 7, 2019 at 4:14 PM Andrea Parri > > > wrote: > > > > > > > > > > > static

Re: [PATCH 01/10] perf/core, x86: Add PERF_SAMPLE_LBR_TOS

2019-10-08 Thread Liang, Kan
On 10/8/2019 10:38 AM, Peter Zijlstra wrote: On Tue, Oct 08, 2019 at 09:53:24AM -0400, Liang, Kan wrote: On 10/8/2019 4:31 AM, Peter Zijlstra wrote: On Mon, Oct 07, 2019 at 10:59:01AM -0700, kan.li...@linux.intel.com wrote: diff --git a/include/linux/perf_event.h

Re: [PATCH v3 1/6] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-10-08 Thread Borislav Petkov
On Tue, Oct 08, 2019 at 11:04:12AM -0400, Steven Rostedt wrote: > The difference between do_sync and i is that i gets incremented at > every iteration, where do_sync gets incremented only when the first > conditional is false. But I still see do_sync as a loop variable. I'd prefer it this way:

Re: [PATCH] arm64: lse: fix LSE atomics with LLVM's integrated assembler

2019-10-08 Thread Sami Tolvanen
On Mon, Oct 7, 2019 at 2:46 PM 'Nick Desaulniers' via Clang Built Linux wrote: > I'm worried that one of these might lower to LSE atomics without > ALTERNATIVE guards by blanketing all C code with `-march=armv8-a+lse`. True, that's a valid concern. I think adding the directive to each assembly

Re: [PATCH] watchdog: cadence: Do not show error in case of deferred probe

2019-10-08 Thread Guenter Roeck
On Tue, Oct 08, 2019 at 04:29:10PM +0200, Michal Simek wrote: > There is no reason to show error message if clocks are not ready yet. > > Signed-off-by: Michal Simek Reviewed-by: Guenter Roeck > --- > > drivers/watchdog/cadence_wdt.c | 6 -- > 1 file changed, 4 insertions(+), 2

Re: [PATCH] checkpatch: use patch subject when reading from stdin

2019-10-08 Thread Joe Perches
On Tue, 2019-10-08 at 11:40 +0200, Geert Uytterhoeven wrote: > When reading a patch file from standard input, checkpatch calls it "Your > patch", and reports its state as: > > Your patch has style problems, please review. > > or: > > Your patch has no obvious style problems and is ready

Re: [PATCH RFC] selftests: kvm: fix sync_regs_test with newer gccs

2019-10-08 Thread Paolo Bonzini
On 08/10/19 16:57, Vitaly Kuznetsov wrote: > Commit 204c91eff798a ("KVM: selftests: do not blindly clobber registers in > guest asm") was intended to make test more gcc-proof, however, the result > is exactly the opposite: on newer gccs (e.g. 8.2.1) the test breaks with > > Test Assertion

Re: [PATCH 4.19 033/106] drm/amd/display: support spdif

2019-10-08 Thread Greg Kroah-Hartman
On Tue, Oct 08, 2019 at 03:37:41PM +0200, Pavel Machek wrote: > Hi! > > > [ Upstream commit b5a41620bb88efb9fb31a4fa5e652e3d5bead7d4 ] > > > > [Description] > > port spdif fix to staging: > > spdif hardwired to afmt inst 1. > > spdif func pointer > > spdif resource allocation (reserve last

Re: [PATCH v2] mfd: intel-lpss: use devm_ioremap_uc for MMIO

2019-10-08 Thread Luis Chamberlain
On Mon, Oct 07, 2019 at 12:42:31PM -0600, Tuowen Zhao wrote: > +EXPORT_SYMBOL(devm_ioremap_uc); EXPORT_SYMBOL_GPL() would be my preference. Luis

Re: [PATCH linux-kselftest-test 2/3] kunit: allow kunit to be loaded as a module

2019-10-08 Thread Alan Maguire
On Tue, 8 Oct 2019, Andy Shevchenko wrote: > On Tue, Oct 08, 2019 at 03:43:51PM +0100, Alan Maguire wrote: > > Making kunit itself buildable as a module allows for "always-on" > > kunit configuration; specifying CONFIG_KUNIT=m means the module > > is built but only used when loaded. Kunit test

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