Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting

2019-02-19 Thread David Hildenbrand
>> I can't follow. We are talking about something as simple as a minimum >> page granularity here that can easily be configured. Nothing that >> screams for different implementations. But I get your point, we could >> tune for different architectures. > > I was thinking about the guest side of t

Re: [PATCH v3 2/9] s390: ap: kvm: setting a hook for PQAP instructions

2019-02-19 Thread Tony Krowiak
On 2/19/19 2:50 PM, Pierre Morel wrote: On 18/02/2019 23:42, Cornelia Huck wrote: On Mon, 18 Feb 2019 19:29:10 +0100 Pierre Morel wrote: On 15/02/2019 23:02, Tony Krowiak wrote: On 2/14/19 8:51 AM, Pierre Morel wrote: +/* + * handle_pqap: Handling pqap interception + * @vcpu: the vcpu hav

[GIT] Networking

2019-02-19 Thread David Miller
1) Fix suspend and resume in mt76x0u USB driver, from Stanislaw Gruszka. 2) Missing memory barriers in xsk, from Magnus Karlsson. 3) rhashtable fixes in mac80211 from Herbert Xu. 4) 32-bit MIPS eBPF JIT fixes from Paul Burton. 5) Fix for_each_netdev_feature() on big endian, from Hauke Mehrten

Re: linux-next: Signed-off-by missing for commit in the kvm-arm tree

2019-02-19 Thread Stephen Rothwell
Hi Marc, On Tue, 19 Feb 2019 21:15:35 + Marc Zyngier wrote: > > Thanks for the heads up. I've just fixed the tree and pushed it out > again. Excellent, thanks. -- Cheers, Stephen Rothwell pgp0W6UQNmYnJ.pgp Description: OpenPGP digital signature

linux-next: Fixes tag needs some work in the net-next tree

2019-02-19 Thread Stephen Rothwell
Hi all, In commit a968b5e9d587 ("net: dsa: qca8k: Enable delay for RGMII_ID mode") Fixes tag Fixes: 40269aa9f40a ("net: dsa: qca8k: disable delay for RGMII mode") has these problem(s): - Target SHA1 does not exist Did you mean: Fixes: 5ecdd77c61c8 ("net: dsa: qca8k: disable delay fo

Re: [PATCH v2 1/3] arm64: mm: use appropriate ctors for page tables

2019-02-19 Thread Yu Zhao
On Tue, Feb 19, 2019 at 11:47:12AM +0530, Anshuman Khandual wrote: > + Matthew Wilcox > > On 02/19/2019 11:02 AM, Yu Zhao wrote: > > On Tue, Feb 19, 2019 at 09:51:01AM +0530, Anshuman Khandual wrote: > >> > >> > >> On 02/19/2019 04:43 AM, Yu Zhao wrote: > >>> For pte page, use pgtable_page_ctor();

Re: [PATCH v3 1/9] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-19 Thread Tony Krowiak
On 2/18/19 11:57 AM, Cornelia Huck wrote: On Mon, 18 Feb 2019 11:35:45 -0500 Tony Krowiak wrote: On 2/18/19 7:01 AM, Cornelia Huck wrote: On Fri, 15 Feb 2019 16:59:33 -0500 Tony Krowiak wrote: On 2/15/19 4:11 AM, Cornelia Huck wrote: On Thu, 14 Feb 2019 13:30:59 -0500 Tony Krowiak wro

Re: [PATCH] sky2: Increase D3 delay again

2019-02-19 Thread David Miller
From: Kai-Heng Feng Date: Tue, 19 Feb 2019 23:45:29 +0800 > Another platform requires even longer delay to make the device work > correctly after S3. > > So increase the delay to 300ms. > > BugLink: https://bugs.launchpad.net/bugs/1798921 > > Cc: sta...@vger.kernel.org Please do not CC: stabl

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-19 Thread Qian Cai
On Tue, 2019-02-19 at 22:49 +0100, Arnd Bergmann wrote: > Building an arm64 allmodconfig kernel with clang results in over 140 warnings > about overly large stack frames, the worst ones being: > > drivers/gpu/drm/panel/panel-sitronix-st7789v.c:196:12: error: stack frame size > of 20224 bytes in fu

Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting

2019-02-19 Thread Michael S. Tsirkin
On Tue, Feb 19, 2019 at 01:57:14PM -0800, Alexander Duyck wrote: > On Tue, Feb 19, 2019 at 10:32 AM David Hildenbrand wrote: > > > > >>> This essentially just ends up being another trade-off of CPU versus > > >>> memory though. Assuming we aren't using THP we are going to take a > > >>> penalty in

Re: [PATCH][next] ptp_qoriq: don't pass a large struct by value but instead pass it by reference

2019-02-19 Thread David Miller
From: Colin King Date: Tue, 19 Feb 2019 14:21:20 + > From: Colin Ian King > > Passing the struct ptp_clock_info caps by parameter is passing over 130 bytes > of data by value on the stack. Optimize this by passing it by reference > instead. > Also shinks the object code size: > > Before:

[PATCH] hpet: Use struct_size() in kzalloc()

2019-02-19 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; struct boo entry[]; }; size = sizeof(struct foo) + cou

Re: [RFC PATCH v1 07/25] printk-rb: add functionality required by printk

2019-02-19 Thread John Ogness
On 2019-02-18, Petr Mladek wrote: >> The printk subsystem needs to be able to query the size of the ring >> buffer, seek to specific entries within the ring buffer, and track >> if records could not be stored in the ring buffer. >> >> diff --git a/lib/printk_ringbuffer.c b/lib/printk_ringbuffer.c

Re: [RFC][PATCH 00/16] sched: Core scheduling

2019-02-19 Thread Greg Kerr
Thanks for posting this patchset Peter. Based on the patch titled, "sched: A quick and dirty cgroup tagging interface," I believe cgroups are used to define co-scheduling groups in this implementation. Chrome OS engineers (kerr...@google.com, mpden...@google.com, and pal...@google.com) are conside

[PATCH v8 3/7] cgroup: protect cgroup->nr_(dying_)descendants by css_set_lock

2019-02-19 Thread Roman Gushchin
The number of descendant cgroups and the number of dying descendant cgroups are currently synchronized using the cgroup_mutex. The number of descendant cgroups will be required by the cgroup v2 freezer, which will use it to determine if a cgroup is frozen (depending on total number of descendants

[PATCH v8 5/7] kselftests: cgroup: don't fail on cg_kill_all() error in cg_destroy()

2019-02-19 Thread Roman Gushchin
If the cgroup destruction races with an exit() of a belonging process(es), cg_kill_all() may fail. It's not a good reason to make cg_destroy() fail and leave the cgroup in place, potentially causing next test runs to fail. Signed-off-by: Roman Gushchin Cc: Shuah Khan Cc: Tejun Heo Cc: kernel-t.

[PATCH v8 6/7] kselftests: cgroup: add freezer controller self-tests

2019-02-19 Thread Roman Gushchin
This patch implements 8 tests for the freezer controller for cgroup v2: 1) a simple test, which aims to freeze and unfreeze a cgroup with 100 processes 2) a more complicated tree test, which creates a hierarchy of cgroups, puts some processes in some cgroups, and tries to freeze and unfreeze differ

[PATCH v8 7/7] cgroup: document cgroup v2 freezer interface

2019-02-19 Thread Roman Gushchin
Describe cgroup v2 freezer interface in the cgroup v2 admin guide. Signed-off-by: Roman Gushchin Reviewed-by: Mike Rapoport Cc: Tejun Heo Cc: linux-...@vger.kernel.org Cc: kernel-t...@fb.com --- Documentation/admin-guide/cgroup-v2.rst | 27 + 1 file changed, 27 insertio

[PATCH v8 1/7] cgroup: rename freezer.c into legacy_freezer.c

2019-02-19 Thread Roman Gushchin
Freezer.c will contain an implementation of cgroup v2 freezer, so let's rename the v1 freezer to avoid naming conflicts. Signed-off-by: Roman Gushchin Cc: Tejun Heo Cc: kernel-t...@fb.com --- kernel/cgroup/Makefile| 2 +- kernel/cgroup/{freezer.c => legacy_freezer.c} | 0

[PATCH v8 0/7] freezer for cgroup v2

2019-02-19 Thread Roman Gushchin
This patchset implements freezer for cgroup v2. It provides similar functionality as v1 freezer, but the interface conforms to the cgroup v2 interface design principles, and it provides a better user experience: tasks can be killed, ptrace works, there is no separate controller, which has to be en

[PATCH v8 2/7] cgroup: implement __cgroup_task_count() helper

2019-02-19 Thread Roman Gushchin
The helper is identical to the existing cgroup_task_count() except it doesn't take the css_set_lock by itself, assuming that the caller does. Also, move cgroup_task_count() implementation into kernel/cgroup/cgroup.c, as there is nothing specific to cgroup v1. Signed-off-by: Roman Gushchin Cc: Te

[PATCH v8 4/7] cgroup: cgroup v2 freezer

2019-02-19 Thread Roman Gushchin
Cgroup v1 implements the freezer controller, which provides an ability to stop the workload in a cgroup and temporarily free up some resources (cpu, io, network bandwidth and, potentially, memory) for some other tasks. Cgroup v2 lacks this functionality. This patch implements freezer for cgroup v2

Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting

2019-02-19 Thread Alexander Duyck
On Tue, Feb 19, 2019 at 10:32 AM David Hildenbrand wrote: > > >>> This essentially just ends up being another trade-off of CPU versus > >>> memory though. Assuming we aren't using THP we are going to take a > >>> penalty in terms of performance but could then free individual pages > >>> less than

general protection fault in ip6erspan_set_version

2019-02-19 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:cb916fc5eabf Add linux-next specific files for 20190218 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1504c0 kernel config: https://syzkaller.appspot.com/x/.config?x=6ef0fb4978ed6ac0 dashb

WARNING: locking bug in icmp_send

2019-02-19 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b5372fe5dc84 exec: load_script: Do not exec truncated inte.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=122bf7b0c0 kernel config: https://syzkaller.appspot.com/x/.config?x=7132344728e7ec3f da

Re: [PATCH 02/11] riscv: remove the HAVE_KPROBES option

2019-02-19 Thread Palmer Dabbelt
On Tue, 19 Feb 2019 07:17:59 PST (-0800), Christoph Hellwig wrote: On Fri, Feb 15, 2019 at 06:32:07PM +0900, Masahiro Yamada wrote: On Thu, Feb 14, 2019 at 2:40 AM Christoph Hellwig wrote: > > HAVE_KPROBES is defined genericly in arch/Kconfig and architectures > should just select it if support

Re: [PATCH 1/6] lib/string: Enable string selftesting

2019-02-19 Thread Tobin C. Harding
On Tue, Feb 19, 2019 at 12:55:09PM +0200, Andy Shevchenko wrote: > On Tue, Feb 19, 2019 at 4:44 AM Tobin C. Harding wrote: > > > > Currently we have a test module but it is not tied into the kselftest > > infrastructure. In preparation for adding string manipulation functions > > and testing we s

RE: [PATCH] MAINTAINERS: update simple firmware interface (SFI) section entry

2019-02-19 Thread Brown, Len
Yes, this can be scheduled to be deleted.

[PATCH] phonet: fix building with clang

2019-02-19 Thread Arnd Bergmann
clang warns about overflowing the data[] member in the struct pnpipehdr: net/phonet/pep.c:295:8: warning: array index 4 is past the end of the array (which contains 1 element) [-Warray-bounds] if (hdr->data[4] == PEP_IND_READY) ^ ~ inclu

Re: [PATCH 6/6] lib: Add function strscpy_from_user()

2019-02-19 Thread Tobin C. Harding
On Tue, Feb 19, 2019 at 03:12:33AM +0100, Jann Horn wrote: > On Tue, Feb 19, 2019 at 12:25 AM Tobin C. Harding wrote: > > Currently we have strncpy_from_userspace(). If the user string is > > longer than the destination kernel buffer we get an error code -EFAULT. > > We are unable to recover from

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

2019-02-19 Thread Tobin C. Harding
On Tue, Feb 19, 2019 at 01:51:45AM +0100, Jann Horn wrote: > +cc Andy because he's also preparing a patch for this function > > On Tue, Feb 19, 2019 at 12:25 AM Tobin C. Harding wrote: > > Current function documentation for strncpy_from_user() is incorrect. If > > @count (size of destination buf

Re: Clang warnings in net/phonet

2019-02-19 Thread Arnd Bergmann
On Tue, Jan 8, 2019 at 3:55 AM Nathan Chancellor wrote: > > Hi all, > > When building the kernel with Clang, this warning comes up in net/phonet. > > net/phonet/pep.c:224:16: warning: array index 1 is past the end of the array > (which contains 1 element) [-Warray-bounds] > ph->data[0] =

[PATCH -mm] tmpfs: test link accounting with O_TMPFILE

2019-02-19 Thread Alexey Dobriyan
Mount tmpfs with "nr_inodes=3" for easy check. Signed-off-by: Alexey Dobriyan --- -ENOTEST fold into tmpfs-fix-link-accounting-when-a-tmpfile-is-linked-in.patch tools/testing/selftests/Makefile |1 tools/testing/selftests/tmpfs/.gitignore |

[PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-19 Thread Arnd Bergmann
Building an arm64 allmodconfig kernel with clang results in over 140 warnings about overly large stack frames, the worst ones being: drivers/gpu/drm/panel/panel-sitronix-st7789v.c:196:12: error: stack frame size of 20224 bytes in function 'st7789v_prepare' drivers/video/fbdev/omap2/omapfb/display

Re: [RFC PATCH v1 06/25] printk-rb: add blocking reader support

2019-02-19 Thread John Ogness
On 2019-02-18, Petr Mladek wrote: >> Add a blocking read function for readers. An irq_work function is >> used to signal the wait queue so that write notification can >> be triggered from any context. > > I would be more precise what exacly is problematic in which context. > Something like: > > An

Re: [PATCH v3] vfio_pci: Enable memory accesses before calling pci_map_rom

2019-02-19 Thread Alex Williamson
On Fri, 15 Feb 2019 17:16:06 +0100 Eric Auger wrote: > pci_map_rom/pci_get_rom_size() performs memory access in the ROM. > In case the Memory Space accesses were disabled, readw() is likely > to trigger a synchronous external abort on some platforms. > > In case memory accesses were disabled, re

Re: False positive "do_IRQ: #.55 No irq handler for vector" messages on AMD ryzen based laptops

2019-02-19 Thread Lendacky, Thomas
On 2/19/19 3:01 PM, Thomas Gleixner wrote: > Hans, > > On Tue, 19 Feb 2019, Hans de Goede wrote: > > Cc+: ACPI/AMD folks > >> Various people are reporting false positive "do_IRQ: #.55 No irq handler for >> vector" >> messages on AMD ryzen based laptops, see e.g.: >> >> https://bugzilla.redhat.co

Re: [RFC PATCH v1 05/25] printk-rb: add basic non-blocking reading interface

2019-02-19 Thread John Ogness
Hi Petr, Below I make several comments, responding to your questions. But I like the new API I believe you are trying to propose. So really only my final comments are of particular importance. There I show you what I think reader code would look like using your proposed API. On 2019-02-18, Petr M

Re: [PATCH 13/14] staging: android: ion: Do not sync CPU cache on map/unmap

2019-02-19 Thread Laura Abbott
On 1/24/19 8:44 AM, Brian Starkey wrote: On Thu, Jan 24, 2019 at 10:04:46AM -0600, Andrew F. Davis wrote: On 1/23/19 11:11 AM, Brian Starkey wrote: [snip] I'm very new to all this, so any pointers to history in this area are appreciated. [snip] In case you didn't come across it alrea

Re: [PATCH v3 6/9] vfio: ap: register IOMMU VFIO notifier

2019-02-19 Thread Tony Krowiak
On 2/19/19 4:59 AM, Halil Pasic wrote: On Fri, 15 Feb 2019 17:55:35 -0500 Tony Krowiak wrote: On 2/14/19 8:51 AM, Pierre Morel wrote: To be able to use the VFIO interface to facilitate the mediated device memory pining/unpining we need to register a notifier for IOMMU. Signed-off-by: Pierre

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-19 Thread Pierre Morel
On 19/02/2019 19:52, Tony Krowiak wrote: On 2/18/19 1:08 PM, Pierre Morel wrote: Libudev relies on having a subsystem link for non-root devices. To avoid libudev (and potentially other userspace tools) choking on the matrix device let us introduce a vfio_ap bus and with that the vfio_ap bus subs

Re: [PATCH v5 0/9] mmu notifier provide context informations

2019-02-19 Thread Jerome Glisse
On Tue, Feb 19, 2019 at 01:19:09PM -0800, Dan Williams wrote: > On Tue, Feb 19, 2019 at 12:58 PM Jerome Glisse wrote: > > > > On Tue, Feb 19, 2019 at 12:40:37PM -0800, Dan Williams wrote: > > > On Tue, Feb 19, 2019 at 12:30 PM Jerome Glisse wrote: > > > > > > > > On Tue, Feb 19, 2019 at 12:15:55P

Re: DVB-T2 Stick

2019-02-19 Thread Sean Young
Hi, On Wed, Jan 30, 2019 at 11:32:12AM +0100, Gonsolo wrote: > Hi! > > The following patch adds support for the Logilink VG0022A DVB-T2 stick. > After patching and building the kernel it shows up with lsusb and I > used w_scan to scan for channels and vlc for watching. > The original patches were

Re: [PATCH v2 14/20] mm: Make hibernate handle unmapped pages

2019-02-19 Thread Edgecombe, Rick P
On Tue, 2019-02-19 at 12:04 +0100, Borislav Petkov wrote: > On Mon, Jan 28, 2019 at 04:34:16PM -0800, Rick Edgecombe wrote: > > For architectures with CONFIG_ARCH_HAS_SET_ALIAS, pages can be unmapped > > briefly on the directmap, even when CONFIG_DEBUG_PAGEALLOC is not > > configured. So this chang

[PATCH v2 1/2] extcon-intel-cht-wc: Make charger detection co-existed with OTG host mode

2019-02-19 Thread Yauhen Kharuzhy
Whiskey Cove Cherry Trail PMIC requires disabling OTG host mode before of charger detection procedure. Do this by manipulationg of CHGRCTRL1 register. Source: APCI DSDT code of Lenovo Yoga Book YB1-X91L and open-sourced Intel's drivers. Signed-off-by: Yauhen Kharuzhy Reviewed-by: Hans de Goede

[PATCH v2 2/2] extcon intel-cht-wc: Enable external charger

2019-02-19 Thread Yauhen Kharuzhy
In some configuration external charger "#charge enable" signal is connected to PMIC. Enable it at device probing to allow charging. Save CHGRCTRL0 and CHGDISCTR registers at driver probing and restore them at driver unbind to re-enable hardware charging control if it was enabled before. Tested at

[PATCH v2 0/2] extcon: Intel Cherry Trail Whiskey Cove PMIC and external charger tweaks

2019-02-19 Thread Yauhen Kharuzhy
At implementation of charging support for Lenovo Yoga Book (Intel Cherry Trail based with Whiskey Cove PMIC), two pitfalls were found: - for detection of charger type by PMIC, bit 6 in the CHGRCTRL1 register should be set in 0 (and set to 1 for Host mode). Pick up its definition and logic from

Re: [PATCH net-next] net: rose: add missing dev_put() on error in rose_bind

2019-02-19 Thread David Miller
From: YueHaibing Date: Tue, 19 Feb 2019 16:06:22 +0800 > when capable check failed, dev_put should > be call before return -EACCES. > > Signed-off-by: YueHaibing Applied.

Re: [PATCH] arch: riscv: fix logic error in parse_dtb

2019-02-19 Thread Paul Walmsley
On Thu, 7 Feb 2019, Andreas Schwab wrote: > The function early_init_dt_scan returns true if a DTB was detected. > > Fixes: 8fd6e05c7463 ("arch: riscv: support kernel command line forcing when > no DTB passed") > Signed-off-by: Andreas Schwab > --- > arch/riscv/kernel/setup.c | 2 +- > 1 fil

Re: [PATCH] arch: riscv: support kernel command line forcing when no DTB passed

2019-02-19 Thread Paul Walmsley
On Tue, 5 Feb 2019, Andreas Schwab wrote: > On Dez 17 2018, Paul Walmsley wrote: > > > diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c > > index 2c290e6aaa6e..e6b962ff39b1 100644 > > --- a/arch/riscv/kernel/setup.c > > +++ b/arch/riscv/kernel/setup.c > > @@ -171,7 +171,14 @

Re: [PATCH v5 0/9] mmu notifier provide context informations

2019-02-19 Thread Dan Williams
On Tue, Feb 19, 2019 at 12:58 PM Jerome Glisse wrote: > > On Tue, Feb 19, 2019 at 12:40:37PM -0800, Dan Williams wrote: > > On Tue, Feb 19, 2019 at 12:30 PM Jerome Glisse wrote: > > > > > > On Tue, Feb 19, 2019 at 12:15:55PM -0800, Dan Williams wrote: > > > > On Tue, Feb 19, 2019 at 12:04 PM wro

Re: [PATCH] staging: android: ion: fix sys heap pool's gfp_flags

2019-02-19 Thread Laura Abbott
On 1/31/19 10:59 PM, Qing Xia wrote: In the first loop, gfp_flags will be modified to high_order_gfp_flags, and there will be no chance to change back to low_order_gfp_flags. Fixes: e7f63771 ("ION: Sys_heap: Add cached pool to spead up cached buffer alloc") Signed-off-by: Qing Xia --- driver

Re: linux-next: Signed-off-by missing for commit in the kvm-arm tree

2019-02-19 Thread Marc Zyngier
On Tue, 19 Feb 2019 20:38:05 +, Stephen Rothwell wrote: Hi Stephen, > Hi all, > > Commits > > 32296b9048b7 ("KVM: arm64: Fix comment for KVM_PHYS_SHIFT") > bfc871bad87c ("KVM: arm/arm64: fix spelling mistake: "auxilary" -> > "auxiliary"") > 1c1c37e5600b ("KVM: arm/arm64: Update MAIN

Re: [PATCH net V2] vhost: correctly check the return value of translate_desc() in log_used()

2019-02-19 Thread David Miller
From: Jason Wang Date: Tue, 19 Feb 2019 14:53:44 +0800 > When fail, translate_desc() returns negative value, otherwise the > number of iovs. So we should fail when the return value is negative > instead of a blindly check against zero. > > Detected by CoverityScan, CID# 1442593: Control flow is

Re: [PATCH 0/6]Bluetooth: mediatek: add support for MediaTek MT7663U and MT7668U UART devices

2019-02-19 Thread Sean Wang
Hi Marcel, I will follow it up. Thank for your help! Sean On Mon, 2019-02-18 at 14:10 +0100, Marcel Holtmann wrote: > Hi Sean, > > > This adds the support of enabling MT7668U and MT7663U UART based Bluetooth > > function running on the top of btmtkuart driver. > > > > We are through s

[GIT PULL] updates to soc/fsl drivers for v5.1 take3

2019-02-19 Thread Li Yang
Hi arm-soc maintainers, Please help to look into the following changes on top of previous pull request and merge them if they look good. The following changes since commit 3c0d64e867ed78a782a8a00d3b519396d9c5a2db: soc: fsl: guts: reuse machine name from device tree (2019-01-11 16:08:43 -0600

Re: False positive "do_IRQ: #.55 No irq handler for vector" messages on AMD ryzen based laptops

2019-02-19 Thread Thomas Gleixner
Hans, On Tue, 19 Feb 2019, Hans de Goede wrote: Cc+: ACPI/AMD folks > Various people are reporting false positive "do_IRQ: #.55 No irq handler for > vector" > messages on AMD ryzen based laptops, see e.g.: > > https://bugzilla.redhat.com/show_bug.cgi?id=1551605 > > Which contains this dmesg sn

Re: [PATCH v5 0/9] mmu notifier provide context informations

2019-02-19 Thread Jerome Glisse
On Tue, Feb 19, 2019 at 12:40:37PM -0800, Dan Williams wrote: > On Tue, Feb 19, 2019 at 12:30 PM Jerome Glisse wrote: > > > > On Tue, Feb 19, 2019 at 12:15:55PM -0800, Dan Williams wrote: > > > On Tue, Feb 19, 2019 at 12:04 PM wrote: > > > > > > > > From: Jérôme Glisse > > > > > > > > Since last

RE: [PATCH][next] soc: fsl: dpio: fix memory leak of a struct qbman on error exit path

2019-02-19 Thread Leo Li
> -Original Message- > From: Colin King > Sent: Tuesday, February 19, 2019 8:05 AM > To: Roy Pledge ; Leo Li ; > linuxppc-...@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org > Cc: kernel-janit...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH][next] soc: fsl: dpio

[PATCH v2 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-19 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 246 ++

RE: [PATCH v1 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-19 Thread Shravan Ramani
Thank you for the feedback. Regarding the suggested use of regmap mmio, all of the registers being accessed here are 64-bit and the regmap_update_bits/regmap_read/regmap_write calls aren't very convenient to use in this case. All other comments have been addressed in v2. Regards, Shravan Kumar

Re: [PATCH] MIPS: irq: Allocate accurate order pages for irq stack

2019-02-19 Thread Paul Burton
Hi Liu, On Sat, Feb 16, 2019 at 05:12:24PM +0800, Liu Xiang wrote: > The irq_pages is the number of pages for irq stack, but not the > order which is needed by __get_free_pages(). > We can use get_order() to calculate the accurate order. > > Signed-off-by: Liu Xiang > --- > arch/mips/kernel/irq

Re: [PATCH v5 0/9] mmu notifier provide context informations

2019-02-19 Thread Dan Williams
On Tue, Feb 19, 2019 at 12:41 PM Jason Gunthorpe wrote: > > On Tue, Feb 19, 2019 at 03:30:33PM -0500, Jerome Glisse wrote: > > On Tue, Feb 19, 2019 at 12:15:55PM -0800, Dan Williams wrote: > > > On Tue, Feb 19, 2019 at 12:04 PM wrote: > > > > > > > > From: Jérôme Glisse > > > > > > > > Since las

Re: [PATCH 1/2] MIPS: eBPF: Always return sign extended 32b values

2019-02-19 Thread Paul Burton
Hello, Paul Burton wrote: > The function prototype used to call JITed eBPF code (ie. the type of the > struct bpf_prog bpf_func field) returns an unsigned int. The MIPS n64 > ABI that MIPS64 kernels target defines that 32 bit integers should > always be sign extended when passed in registers as ei

Re: [PATCH] MAINTAINERS: update simple firmware interface (SFI) section entry

2019-02-19 Thread Lukas Bulwahn
On Tue, 19 Feb 2019, Len Brown wrote: > Acked-by: Len Brown > > Indeed, Lukas, I believe that all of the systems that will ship with > SFI have shipped. > It is probably time to delete this code from the kernel. > Len, your answer suggests that we should actually set the status to Obsolete

Re: [PATCH v2] staging: android: ion: Allocate from heap ID directly without mask

2019-02-19 Thread Laura Abbott
On 2/15/19 11:01 AM, John Stultz wrote: On Fri, Feb 15, 2019 at 2:51 AM Brian Starkey wrote: Hi John, On Thu, Feb 14, 2019 at 09:38:29AM -0800, John Stultz wrote: [snip] Some thoughts, as this ABI break has the potential to be pretty painful. 1) Unfortunately, this ABI is exposed *throu

linux-next: Fixes tags need some work in the staging tree

2019-02-19 Thread Stephen Rothwell
Hi Greg, In commit 8b20408a5662 ("staging: mt7621-pci: reverse condition to check for enabled port") Fixes tag Fixes: 802a2f7b2fe3: staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function has these problem(s): - colon after the SHA1 is unexpected Just use git lo

Re: [PATCH v5 0/9] mmu notifier provide context informations

2019-02-19 Thread Dan Williams
On Tue, Feb 19, 2019 at 12:30 PM Jerome Glisse wrote: > > On Tue, Feb 19, 2019 at 12:15:55PM -0800, Dan Williams wrote: > > On Tue, Feb 19, 2019 at 12:04 PM wrote: > > > > > > From: Jérôme Glisse > > > > > > Since last version [4] i added the extra bits needed for the change_pte > > > optimizati

Re: [PATCH v5 0/9] mmu notifier provide context informations

2019-02-19 Thread Jason Gunthorpe
On Tue, Feb 19, 2019 at 03:30:33PM -0500, Jerome Glisse wrote: > On Tue, Feb 19, 2019 at 12:15:55PM -0800, Dan Williams wrote: > > On Tue, Feb 19, 2019 at 12:04 PM wrote: > > > > > > From: Jérôme Glisse > > > > > > Since last version [4] i added the extra bits needed for the change_pte > > > opti

linux-next: Signed-off-by missing for commit in the kvm-arm tree

2019-02-19 Thread Stephen Rothwell
Hi all, Commits 32296b9048b7 ("KVM: arm64: Fix comment for KVM_PHYS_SHIFT") bfc871bad87c ("KVM: arm/arm64: fix spelling mistake: "auxilary" -> "auxiliary"") 1c1c37e5600b ("KVM: arm/arm64: Update MAINTAINERS entries") b1206bfb39d6 ("KVM: arm/arm64: Prefix header search paths with $(srctre

Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting

2019-02-19 Thread Michael S. Tsirkin
On Tue, Feb 19, 2019 at 09:21:20PM +0100, David Hildenbrand wrote: > On 19.02.19 21:17, Michael S. Tsirkin wrote: > > On Tue, Feb 19, 2019 at 09:02:52PM +0100, David Hildenbrand wrote: > >> On 19.02.19 20:58, Michael S. Tsirkin wrote: > >>> On Tue, Feb 19, 2019 at 10:06:35AM -0800, Alexander Duyck

RE: [linux-drivers-review] [PATCH 02/11] topolgy: simplify cputopology.txt formatting and wording

2019-02-19 Thread Brown, Len
>> +if CONFIG_SCHED_BOOK and CONFIG_SCHED_DRAWER are selected, respectively. >> >> CONFIG_SCHED_BOOK and CONFIG_DRAWER are currently only used on s390, >> where >fwiw:CONFIG_SCHED_DRAWER Heh. Seems that every line of update to a .txt files uncovers two lines of existing

Re: [PATCH v5 0/9] mmu notifier provide context informations

2019-02-19 Thread Jerome Glisse
On Tue, Feb 19, 2019 at 12:15:55PM -0800, Dan Williams wrote: > On Tue, Feb 19, 2019 at 12:04 PM wrote: > > > > From: Jérôme Glisse > > > > Since last version [4] i added the extra bits needed for the change_pte > > optimization (which is a KSM thing). Here i am not posting users of > > this, the

Re: [PATCH 4/8] asm-generic: Make time32 syscall numbers optional

2019-02-19 Thread Arnd Bergmann
On Tue, Feb 19, 2019 at 9:06 PM Geert Uytterhoeven wrote: > > Hi Arnd, > > On Tue, Feb 19, 2019 at 3:34 AM Arnd Bergmann wrote: > > We don't want new architectures to even provide the old 32-bit time_t > > based system calls any more, or define the syscall number macros. > > > > Add a new __ARCH_

Re: [PATCH v4 2/2] irqchip: Add support for Renesas RZ/N1 GPIO interrupt multiplexer

2019-02-19 Thread Marc Zyngier
On Tue, 19 Feb 2019 15:55:11 + Phil Edworthy wrote: + LinusW, who seem to have taken an interest in irqchip hierarchies... > On RZ/N1 devices, there are 3 Synopsys DesignWare GPIO blocks each > configured to have 32 interrupt outputs, so we have a total of 96 GPIO > interrupts. All of these

[PATCH net-next] igb: e1000_82575: mark expected switch fall-through

2019-02-19 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/net/ethernet/intel/igb/e1000_82575.c: In function ‘igb_get_invariants_82575’: drivers/net/ethernet/intel/igb/e1000_82575.c:636:6: warning:

[PATCH 4/5] EDAC/amd64: Support more than two Controllers for Chip Select handling

2019-02-19 Thread Ghannam, Yazen
From: Yazen Ghannam The struct chip_select array that's used for saving Chip Select bases and masks is fixed at length of two. There should be one struct chip_select for each controller, so this array should be increased to support systems that may have more than two controllers. Increase the si

[PATCH 2/5] EDAC/amd64: Support more than two UMCs

2019-02-19 Thread Ghannam, Yazen
From: Yazen Ghannam The first few models of Family 17h all had 2 UMCs per Die, so we treated this as a fixed value. However, future systems may have more UMCs per Die. Related to this, we were finding the channel number and base address of a UMC by matching on fixed, known values. However, a pat

[PATCH 5/5] EDAC/amd64: Adjust printed Chip Select sizes when interleaved

2019-02-19 Thread Ghannam, Yazen
From: Yazen Ghannam AMD systems may support Chip Select interleaving. However, on Fam17h+ this was not taken into account when printing the Chip Select sizes. Add support to detect if Chip Selects are interleaved on Fam17h+, and adjust the sizes accordingly. Signed-off-by: Yazen Ghannam --- d

[PATCH 1/5] EDAC/amd64: Add Fam17hMod30h PCI IDs

2019-02-19 Thread Ghannam, Yazen
From: Yazen Ghannam Add the new Family 17h Model 30h PCI IDs to the AMD64 EDAC module. This also fixes a probe failure that appeared when some other PCI IDs for Fam17hMod30h were added to the AMD NB code. Fixes: be3518a16ef2 (x86/amd_nb: Add PCI device IDs for family 17h, model 30h) Signed-off-

Re: [PATCH v2 2/2] i2c: designware: Add support for a bus clock

2019-02-19 Thread Wolfram Sang
> - if (prepare) > + if (prepare) { > + /* Optional bus clock */ > + ret = clk_prepare_enable(dev->busclk); > + if (ret) > + return ret; > + > return clk_prepare_enable(dev->clk); This leaves 'busclk' enabled when the o

[PATCH 3/5] EDAC/amd64: Recognize x16 Symbol Size

2019-02-19 Thread Ghannam, Yazen
From: Yazen Ghannam Future AMD systems may support x16 symbol sizes. Recognize if a system is using x16 symbol size. Also, simplify the print statement. Note that a x16 syndrome vector table is not necessary like with x4 or x8. This is because systems that support x16 symbol sizes will be SMCA

[PATCH] igb_main: mark expected switch fall-through

2019-02-19 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/net/ethernet/intel/igb/igb_main.c: In function ‘__igb_notify_dca’: drivers/net/ethernet/intel/igb/igb_main.c:6694:6: warning: this statement

Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting

2019-02-19 Thread David Hildenbrand
On 19.02.19 21:17, Michael S. Tsirkin wrote: > On Tue, Feb 19, 2019 at 09:02:52PM +0100, David Hildenbrand wrote: >> On 19.02.19 20:58, Michael S. Tsirkin wrote: >>> On Tue, Feb 19, 2019 at 10:06:35AM -0800, Alexander Duyck wrote: > I tend to like an asynchronous reporting approach as discussed

Re: [PATCH 2/2] extcon intel-cht-wc: Enable external charger

2019-02-19 Thread Yauhen Kharuzhy
On Tue, Feb 19, 2019 at 02:39:55PM +0100, Hans de Goede wrote: > > > I also wonder if you've considered just disabling the extcon driver > > > for the PMIC leaving it in automatic mode. Unlike the GPD win / pocket > > > with their Type-C connector, your device seems to actually be using > > > the P

[PATCH net-next] i40e: mark expected switch fall-through

2019-02-19 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/net/ethernet/intel/i40e/i40e_xsk.c: In function ‘i40e_run_xdp_zc’: drivers/net/ethernet/intel/i40e/i40e_xsk.c:209:3: warning: this statement

Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting

2019-02-19 Thread Michael S. Tsirkin
On Tue, Feb 19, 2019 at 09:02:52PM +0100, David Hildenbrand wrote: > On 19.02.19 20:58, Michael S. Tsirkin wrote: > > On Tue, Feb 19, 2019 at 10:06:35AM -0800, Alexander Duyck wrote: > >>> I tend to like an asynchronous reporting approach as discussed in this > >>> thread, we would have to see if N

Re: [PATCH] powerpc/64s: Fix possible corruption on big endian due to pgd/pud_present()

2019-02-19 Thread Segher Boessenkool
On Mon, Feb 18, 2019 at 11:49:18AM +1100, Michael Ellerman wrote: > Balbir Singh writes: > > Fair enough, my point was that the compiler can help out. I'll see what > > -Wconversion finds on my local build :) > > I get about 43MB of warnings here :) Yes, -Wconversion complains about a lot of thi

Re: [PATCH v5 0/9] mmu notifier provide context informations

2019-02-19 Thread Dan Williams
On Tue, Feb 19, 2019 at 12:04 PM wrote: > > From: Jérôme Glisse > > Since last version [4] i added the extra bits needed for the change_pte > optimization (which is a KSM thing). Here i am not posting users of > this, they will be posted to the appropriate sub-systems (KVM, GPU, > RDMA, ...) once

Re: [PATCH] MAINTAINERS: update simple firmware interface (SFI) section entry

2019-02-19 Thread Len Brown
Acked-by: Len Brown Indeed, Lukas, I believe that all of the systems that will ship with SFI have shipped. It is probably time to delete this code from the kernel. -Len On Sat, Jan 19, 2019 at 3:07 PM Lukas Bulwahn wrote: > > Len Brown has not been active in this part since around 2010. The re

Re: [PATCH] drm/msm: Remove pm_runtime calls from msm_iommu.c

2019-02-19 Thread Bjorn Andersson
On Tue 19 Feb 10:48 PST 2019, Jordan Crouse wrote: > Currently the IOMMU code calls pm_runtime_get/put on the GPU or display > device before doing a IOMMU operation. This was because usually the > IOMMU driver didn't do power control of its own and since the hardware > used the same clocks and pow

Re: [PATCH] modpost: file2alias: define size of alias

2019-02-19 Thread Mattias Jacobsson
Hi Masahiro, On 2019-02-18, Masahiro Yamada wrote: > Hi Mattias, > > On Thu, Feb 7, 2019 at 9:31 PM Mattias Jacobsson <2...@mok.nu> wrote: > > > > The size of the variable alias provided to do_entry functions are > > currently not readily available. Thus hindering do_entry functions to > > perfor

Re: [PATCH] drm/amd/powerplay/smu10_hwmgr: use struct_size() in kzalloc()

2019-02-19 Thread Gustavo A. R. Silva
On 2/19/19 1:51 PM, Alex Deucher wrote: > On Tue, Feb 19, 2019 at 1:55 PM Gustavo A. R. Silva > wrote: >> >> One of the more common cases of allocation size calculations is finding >> the size of a structure that has a zero-sized array at the end, along >> with memory for some number of element

RE: [PATCH] drivers: mux: Generic register bitfield-based multiplexer driver

2019-02-19 Thread Leo Li
> -Original Message- > From: Peter Rosin > Sent: Monday, February 18, 2019 5:39 PM > To: Leo Li ; Pankaj Bansal ; > linux-kernel@vger.kernel.org; Philipp Zabel > Subject: Re: [PATCH] drivers: mux: Generic register bitfield-based > multiplexer driver > > On 2019-02-18 22:07, Leo Li wrot

[PATCH v4 2/3] Bluetooth: btqcomsmd: use HCI_QUIRK_USE_BDADDR_PROPERTY

2019-02-19 Thread Matthias Kaehlcke
Use the HCI_QUIRK_USE_BDADDR_PROPERTY quirk to let the HCI core handle the reading of 'local-bd-address'. With this there is no need to set HCI_QUIRK_INVALID_BDADDR, the case of a non-existing or invalid fwnode property is handled by the core code. Signed-off-by: Matthias Kaehlcke Reviewed-by: Ba

[PATCH v4 3/3] Bluetooth: hci_qca: Set HCI_QUIRK_USE_BDADDR_PROPERTY for wcn3990

2019-02-19 Thread Matthias Kaehlcke
Set quirk for wcn3990 to read BD_ADDR from a firmware node property. Signed-off-by: Matthias Kaehlcke Tested-by: Balakrishna Godavarthi --- Changes in v4: -none Changes in v3: - none Changes in v2: - patch added to the series --- drivers/bluetooth/hci_qca.c | 1 + 1 file changed, 1 insertion(

[PATCH v4 1/3] Bluetooth: Add quirk for reading BD_ADDR from fwnode property

2019-02-19 Thread Matthias Kaehlcke
Add HCI_QUIRK_USE_BDADDR_PROPERTY to allow controllers to retrieve the public Bluetooth address from the firmware node property 'local-bd-address'. If quirk is set and the property does not exist or is invalid the controller is marked as unconfigured. Signed-off-by: Matthias Kaehlcke Reviewed-by:

Re: [PATCH 4/8] asm-generic: Make time32 syscall numbers optional

2019-02-19 Thread Geert Uytterhoeven
Hi Arnd, On Tue, Feb 19, 2019 at 3:34 AM Arnd Bergmann wrote: > We don't want new architectures to even provide the old 32-bit time_t > based system calls any more, or define the syscall number macros. > > Add a new __ARCH_WANT_TIME32_SYSCALLS macro that gets enabled for all > existing 32-bit arc

[PATCH v4 0/3] Add quirk for reading BD_ADDR from fwnode property

2019-02-19 Thread Matthias Kaehlcke
On some systems the Bluetooth Device Address (BD_ADDR) isn't stored on the Bluetooth chip itself. One way to configure the address is through the device tree (patched in by the bootloader). The btqcomsmd driver is an example, it can read the address from the DT property 'local-bd-address'. To avoi

[PATCH v5 8/9] mm/mmu_notifier: mmu_notifier_range_update_to_read_only() helper

2019-02-19 Thread jglisse
From: Jérôme Glisse Helper to test if a range is updated to read only (it is still valid to read from the range). This is useful for device driver or anyone who wish to optimize out update when they know that they already have the range map read only. Signed-off-by: Jérôme Glisse Cc: Christian

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