[PATCH v2 08/11] drm/qxl: fix monitors object vmap

2021-02-17 Thread Gerd Hoffmann
Use the correct vmap variant. We don't hold a reservation here, so we can't use the _locked variant. We can drop the pin because qxl_bo_vmap will do that for us. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-)

[PATCH v2 11/11] drm/qxl: add lock asserts to qxl_bo_vmap_locked + qxl_bo_vunmap_locked

2021-02-17 Thread Gerd Hoffmann
Try avoid re-introducing locking bugs. Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann --- drivers/gpu/drm/qxl/qxl_object.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl/qxl_object.c index 82c3bf195ad6..6e26d70f2f07

[tip: sched/core] sched/features: Distinguish between NORMAL and DEADLINE hrtick

2021-02-17 Thread tip-bot2 for Juri Lelli
The following commit has been merged into the sched/core branch of tip: Commit-ID: e0ee463c93c43b1657ad69cf2678ff5bf1b754fe Gitweb: https://git.kernel.org/tip/e0ee463c93c43b1657ad69cf2678ff5bf1b754fe Author:Juri Lelli AuthorDate:Mon, 08 Feb 2021 08:35:54 +01:00 Committer:

[tip: sched/core] rbtree: Add generic add and find helpers

2021-02-17 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the sched/core branch of tip: Commit-ID: 2d24dd5798d0474d9bf705bfca8725e7d20f9d54 Gitweb: https://git.kernel.org/tip/2d24dd5798d0474d9bf705bfca8725e7d20f9d54 Author:Peter Zijlstra AuthorDate:Wed, 29 Apr 2020 17:03:22 +02:00

[tip: sched/core] uprobes: (Re)add missing get_uprobe() in __find_uprobe()

2021-02-17 Thread tip-bot2 for Sven Schnelle
The following commit has been merged into the sched/core branch of tip: Commit-ID: b0d6d4789677d128b1933af023083054f0973574 Gitweb: https://git.kernel.org/tip/b0d6d4789677d128b1933af023083054f0973574 Author:Sven Schnelle AuthorDate:Tue, 09 Feb 2021 16:07:11 +01:00

[tip: sched/core] rbtree, sched/fair: Use rb_add_cached()

2021-02-17 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the sched/core branch of tip: Commit-ID: bf9be9a163b464aa90f60af13b336da2db8b2ea1 Gitweb: https://git.kernel.org/tip/bf9be9a163b464aa90f60af13b336da2db8b2ea1 Author:Peter Zijlstra AuthorDate:Wed, 29 Apr 2020 17:04:12 +02:00

Re: [PATCH RESEND V12 3/8] fuse: Definitions and ioctl for passthrough

2021-02-17 Thread Miklos Szeredi
On Mon, Jan 25, 2021 at 4:31 PM Alessio Balsini wrote: > > Expose the FUSE_PASSTHROUGH interface to user space and declare all the > basic data structures and functions as the skeleton on top of which the > FUSE passthrough functionality will be built. > > As part of this, introduce the new FUSE

[GIT PULL] scheduler updates for v5.12

2021-02-17 Thread Ingo Molnar
Linus, Please pull the latest sched/core git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-core-2021-02-17 # HEAD: c5e6fc08feb2b88dc5dac2f3c817e1c2a4cafda4 sched,x86: Allow !PREEMPT_DYNAMIC Scheduler updates for v5.12: [ NOTE: unfortunately this tree had

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-17 Thread Oscar Salvador
On Wed, Feb 17, 2021 at 02:30:43PM +0100, Michal Hocko wrote: > On Wed 17-02-21 11:08:15, Oscar Salvador wrote: > I do not think fallback to a different zone is ok. If yes then this > really requires a very good reasoning. alloc_contig_range is an > optimistic allocation interface at best and it

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-17 Thread David Hildenbrand
On 17.02.21 14:50, Michal Hocko wrote: On Wed 17-02-21 14:36:47, David Hildenbrand wrote: On 17.02.21 14:30, Michal Hocko wrote: On Wed 17-02-21 11:08:15, Oscar Salvador wrote: Free hugetlb pages are tricky to handle so as to no userspace application notices disruption, we need to replace the

Re: [PATCH RFC 1/4] firmware: Add the support for ZSTD-compressed firmware files

2021-02-17 Thread Greg Kroah-Hartman
On Wed, Feb 17, 2021 at 02:34:34PM +0100, Takashi Iwai wrote: > On Wed, 17 Feb 2021 14:24:19 +0100, > Luis Chamberlain wrote: > > > > On Wed, Jan 27, 2021 at 04:49:36PM +0100, Takashi Iwai wrote: > > > Due to the popular demands on ZSTD, here is a patch to add a support > > > of ZSTD-compressed

Re: [RFT][PATCH v1] cpufreq: ACPI: Set cpuinfo.max_freq directly if max boost is known

2021-02-17 Thread Rafael J. Wysocki
On Wed, Feb 17, 2021 at 11:46 AM Giovanni Gherdovich wrote: > > On Mon, 2021-02-15 at 20:24 +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Commit 3c55e94c0ade ("cpufreq: ACPI: Extend frequency tables to cover > > boost frequencies") attempted to address a performance issue

Re: [PATCH 2/2] rcu-tasks: add RCU-tasks self tests

2021-02-17 Thread Masami Hiramatsu
On Tue, 16 Feb 2021 09:30:03 -0800 "Paul E. McKenney" wrote: > On Mon, Feb 15, 2021 at 12:28:26PM +0100, Sebastian Andrzej Siewior wrote: > > On 2021-02-13 08:45:54 [-0800], Paul E. McKenney wrote: > > > Glad you like it! But let's see which (if any) of these patches solves > > > the problem

Re: [PATCH] tty: fix when iov_iter_count() returns 0 in tty_write()

2021-02-17 Thread Greg KH
On Wed, Feb 17, 2021 at 08:43:47PM +0600, Sabyrzhan Tasbolatov wrote: > syzbot found WARNING in iov_iter_revert[1] when iov_iter_count() returns 0, > therefore INT_MAX is passed to iov_iter_revert() causing > MAX_RW_COUNT > warning. > > static inline ssize_t do_tty_write() > { > .. > size_t

Re: [PATCH] pinctrl: use to octal permissions for debugfs files

2021-02-17 Thread Linus Walleij
On Fri, Feb 12, 2021 at 6:37 PM Drew Fustini wrote: > On Fri, Feb 12, 2021 at 08:58:58AM +0100, Linus Walleij wrote: > > On Tue, Jan 26, 2021 at 5:55 AM Drew Fustini wrote: > > > > > Switch over pinctrl debugfs files to use octal permissions as they are > > > preferred over symbolic permissions.

Re: debugfs: was: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Chris Down
Petr Mladek writes: > > + debugfs_remove(ps->file); > > IMHO, we should remove the file before we remove the way how > to read it. This should be done in the opposite order > than in store_printk_fmt_sec(). There is a subtle issue with doing this as-is: debugfs_remove(ps->file) cannot be

[PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-17 Thread David Hildenbrand
When we manage sparse memory mappings dynamically in user space - also sometimes involving MADV_NORESERVE - we want to dynamically populate/ discard memory inside such a sparse memory region. Example users are hypervisors (especially implementing memory ballooning or similar technologies like

Re: [PATCH net-next v4 6/8] net: mscc: ocelot: Add support for MRP

2021-02-17 Thread Vladimir Oltean
On Tue, Feb 16, 2021 at 10:42:03PM +0100, Horatiu Vultur wrote: > +static inline void ocelot_xfh_get_cpuq(void *extraction, u64 *cpuq) > +{ > + packing(extraction, cpuq, 28, 20, OCELOT_TAG_LEN, UNPACK, 0); > +} > + The 8 bits I count for CPUQ are from 27 to 20. This is spilling over into

Re: [PATCH 6/7 v3] sched/fair: trigger the update of blocked load on newly idle cpu

2021-02-17 Thread Valentin Schneider
On 15/02/21 16:02, Vincent Guittot wrote: > On Fri, 12 Feb 2021 at 20:19, Valentin Schneider > wrote: >> I don't think there is anything inherently wrong with it - the >> nohz_idle_balance() call resulting from the kick_ilb() IPI will just bail >> out due to the flags being cleared here. This

Re: [PATCH v2 4/5] arm64: dts: librem5: protect some partitions of the nor-flash

2021-02-17 Thread Krzysztof Kozlowski
On Wed, Feb 17, 2021 at 12:19:43PM +0100, Martin Kepplinger wrote: > From: Angus Ainslie > > These sections should be read only as they contain important data. > > Signed-off-by: Angus Ainslie > Signed-off-by: Martin Kepplinger > --- > .../arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 16

Re: [PATCH v2 09/25] arm64: entry: Map the FIQ vector to IRQ on NEEDS_FIQ platforms

2021-02-17 Thread Mark Rutland
Hi Hector, On Mon, Feb 15, 2021 at 09:16:57PM +0900, Hector Martin wrote: > From: Marc Zyngier > > By default, FIQ exceptions trigger a panic. On platforms that need to > deliver interrupts via FIQ, this gets redirected via an alternative to > instead handle FIQ the same way as IRQ. It is up to

[PATCH v7 bpf-next 4/6] virtio-net: support IFF_TX_SKB_NO_LINEAR

2021-02-17 Thread Alexander Lobakin
From: Xuan Zhuo Virtio net supports the case where the skb linear space is empty, so add priv_flags. Signed-off-by: Xuan Zhuo Acked-by: Michael S. Tsirkin Signed-off-by: Alexander Lobakin --- drivers/net/virtio_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v7 bpf-next 3/6] net: add priv_flags for allow tx skb without linear

2021-02-17 Thread Alexander Lobakin
From: Xuan Zhuo In some cases, we hope to construct skb directly based on the existing memory without copying data. In this case, the page will be placed directly in the skb, and the linear space of skb is empty. But unfortunately, many the network card does not support this operation. For

[PATCH v7 bpf-next 0/6] xsk: build skb by page (aka generic zerocopy xmit)

2021-02-17 Thread Alexander Lobakin
This series introduces XSK generic zerocopy xmit by adding XSK umem pages as skb frags instead of copying data to linear space. The only requirement for this for drivers is to be able to xmit skbs with skb_headlen(skb) == 0, i.e. all data including hard headers starts from frag 0. To indicate

[PATCH v7 bpf-next 1/6] netdev_priv_flags: add missing IFF_PHONY_HEADROOM self-definition

2021-02-17 Thread Alexander Lobakin
This is harmless for now, but comes fatal for the subsequent patch. Fixes: 871b642adebe3 ("netdev: introduce ndo_set_rx_headroom") Signed-off-by: Alexander Lobakin --- include/linux/netdevice.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/netdevice.h

[PATCH] lib: vsprintf: check for NULL device_node name in device_node_string()

2021-02-17 Thread Enrico Weigelt, metux IT consult
Under rare circumstances it may happen that a device node's name is NULL (most likely kernel bug in some other place). In such situations anything but helpful, if the debug printout crashes, and nobody knows what actually happened here. Therefore protect it by an explicit NULL check and print out

[tip: sched/core] preempt/dynamic: Provide irqentry_exit_cond_resched() static call

2021-02-17 Thread tip-bot2 for Peter Zijlstra (Intel)
The following commit has been merged into the sched/core branch of tip: Commit-ID: 40607ee97e4eec5655cc0f76a720bdc4c63a6434 Gitweb: https://git.kernel.org/tip/40607ee97e4eec5655cc0f76a720bdc4c63a6434 Author:Peter Zijlstra (Intel) AuthorDate:Mon, 18 Jan 2021 15:12:22

[tip: sched/core] sched: Harden PREEMPT_DYNAMIC

2021-02-17 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the sched/core branch of tip: Commit-ID: ef72661e28c64ad610f89acc2832ec67b27ba438 Gitweb: https://git.kernel.org/tip/ef72661e28c64ad610f89acc2832ec67b27ba438 Author:Peter Zijlstra AuthorDate:Mon, 25 Jan 2021 16:26:50 +01:00

[tip: sched/core] rcu: Pull deferred rcuog wake up to rcu_eqs_enter() callers

2021-02-17 Thread tip-bot2 for Frederic Weisbecker
The following commit has been merged into the sched/core branch of tip: Commit-ID: 54b7429efffc99e845ba9381bee3244f012a06c2 Gitweb: https://git.kernel.org/tip/54b7429efffc99e845ba9381bee3244f012a06c2 Author:Frederic Weisbecker AuthorDate:Mon, 01 Feb 2021 00:05:44 +01:00

[tip: sched/core] sched/features: Fix hrtick reprogramming

2021-02-17 Thread tip-bot2 for Juri Lelli
The following commit has been merged into the sched/core branch of tip: Commit-ID: 156ec6f42b8d300dbbf382738ff35c8bad8f4c3a Gitweb: https://git.kernel.org/tip/156ec6f42b8d300dbbf382738ff35c8bad8f4c3a Author:Juri Lelli AuthorDate:Mon, 08 Feb 2021 08:35:53 +01:00 Committer:

[tip: sched/core] sched/deadline: Reduce rq lock contention in dl_add_task_root_domain()

2021-02-17 Thread tip-bot2 for Dietmar Eggemann
The following commit has been merged into the sched/core branch of tip: Commit-ID: de40f33e788b0c016bfde512ace2f76339ef7ddb Gitweb: https://git.kernel.org/tip/de40f33e788b0c016bfde512ace2f76339ef7ddb Author:Dietmar Eggemann AuthorDate:Tue, 19 Jan 2021 09:35:42 +01:00

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-17 Thread Michal Hocko
On Wed 17-02-21 14:36:47, David Hildenbrand wrote: > On 17.02.21 14:30, Michal Hocko wrote: > > On Wed 17-02-21 11:08:15, Oscar Salvador wrote: > > > Free hugetlb pages are tricky to handle so as to no userspace application > > > notices disruption, we need to replace the current free hugepage

Re: [PATCH] lib: vsprintf: check for NULL device_node name in device_node_string()

2021-02-17 Thread Andy Shevchenko
On Wed, Feb 17, 2021 at 01:15:43PM +0100, Enrico Weigelt, metux IT consult wrote: > Under rare circumstances it may happen that a device node's name is NULL > (most likely kernel bug in some other place). What circumstances? How can I reproduce this? More information, please! > In such

Re: [PATCH RESEND V12 4/8] fuse: Passthrough initialization and release

2021-02-17 Thread Miklos Szeredi
On Mon, Jan 25, 2021 at 4:31 PM Alessio Balsini wrote: > > Implement the FUSE passthrough ioctl that associates the lower > (passthrough) file system file with the fuse_file. > > The file descriptor passed to the ioctl by the FUSE daemon is used to > access the relative file pointer, that will be

Re: [PATCH][next] ASoC: codecs: lpass-rx-macro: remove redundant initialization of variable hph_pwr_mode

2021-02-17 Thread Srinivas Kandagatla
On 15/02/2021 20:05, Colin King wrote: From: Colin Ian King The variable hph_pwr_mode is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Signed-off-by: Colin Ian King --- Thanks for the

[PATCH] staging: emxx_udc: remove unused variable driver_desc

2021-02-17 Thread Sean Behan
When building with W=1, there is a warning that this variable is unused. It is not used so remove it to fix the warning. Thanks to nat...@kernel.org for helping me submit my first patch. Signed-off-by: Sean Behan --- drivers/staging/emxx_udc/emxx_udc.c | 1 - 1 file changed, 1 deletion(-)

Re: [PATCH 5/8] arm64: dts: imx8mm-nitrogen-r2: add pwms

2021-02-17 Thread Krzysztof Kozlowski
On Tue, Feb 16, 2021 at 12:19:40AM +0100, Adrien Grassein wrote: > Add description for the four pwms. In title and msg: PWM is an acronym, so "four PWMs", "add PWMs". Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [PATCH 1/8] arm64: dts: imx8mm-nitrogen-r2: add wifi/bt chip

2021-02-17 Thread Adrien Grassein
Hello, Thanks for your review and your time. Le mer. 17 févr. 2021 à 12:58, Krzysztof Kozlowski a écrit : > > On Tue, Feb 16, 2021 at 12:19:36AM +0100, Adrien Grassein wrote: > > Add usdhc3 description which corresponds to the wifi/bt chip > > > > Signed-off-by: Adrien Grassein > > --- > >

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-17 Thread Michal Hocko
On Wed 17-02-21 11:08:15, Oscar Salvador wrote: [...] > +static bool alloc_and_dissolve_huge_page(struct hstate *h, struct page *page) > +{ > + gfp_t gfp_mask = htlb_alloc_mask(h); > + nodemask_t *nmask = _states[N_MEMORY]; > + struct page *new_page; > + bool ret = false; > +

Re: [PATCH] mhi_bus: core: Return EBUSY if MHI ring is full

2021-02-17 Thread Jeffrey Hugo
On 2/17/2021 8:02 AM, Loic Poulain wrote: On Tue, 16 Feb 2021 at 19:50, Jeffrey Hugo wrote: From: Fan Wu Currently ENOMEM is returned when MHI ring is full. This error code is very misleading. Change to EBUSY instead. Well, there is no space left in the ring, so it's no so misleading.

KASAN: use-after-free Read in tcp_current_mss

2021-02-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:773dc50d Merge branch 'Xilinx-axienet-updates' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=13460822d0 kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f dashboard link:

[PATCH v3] mm: memcontrol: fix swap undercounting in cgroup2

2021-02-17 Thread Muchun Song
When pages are swapped in, the VM may retain the swap copy to avoid repeated writes in the future. It's also retained if shared pages are faulted back in some processes, but not in others. During that time we have an in-memory copy of the page, as well as an on-swap copy. Cgroup1 and cgroup2

Re: Should RCU_BOOST kernels use hrtimers in GP kthread?

2021-02-17 Thread Sebastian Andrzej Siewior
On 2021-02-16 10:36:09 [-0800], Paul E. McKenney wrote: > Hello, Sebastian, Hi Paul, > I punted on this for the moment by making RCU priority boosting testing > depend on CONFIG_PREEMPT_RT, but longer term I am wondering if RCU's > various timed delays and timeouts should use hrtimers rather

Re: [PATCH 2/2] mm: Make alloc_contig_range handle in-use hugetlb pages

2021-02-17 Thread Michal Hocko
On Wed 17-02-21 16:27:27, Oscar Salvador wrote: > On 2021-02-17 16:06, Michal Hocko wrote: > > I do not follow. You have successfully isolated huge pages so why don't > > you add that page to the migratepages list to be migrated? > > It is added. Note that I pass de list (cc->migratepages) to >

Re: [PATCH 6/7 v3] sched/fair: trigger the update of blocked load on newly idle cpu

2021-02-17 Thread Vincent Guittot
On Wed, 17 Feb 2021 at 12:51, Valentin Schneider wrote: > > On 15/02/21 16:02, Vincent Guittot wrote: > > On Fri, 12 Feb 2021 at 20:19, Valentin Schneider > > wrote: > >> I don't think there is anything inherently wrong with it - the > >> nohz_idle_balance() call resulting from the kick_ilb()

Re: debugfs: was: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Petr Mladek
On Tue 2021-02-16 17:18:58, Chris Down wrote: > Petr Mladek writes: > > > +static size_t printk_fmt_size(const char *fmt) > > > +{ > > > + size_t sz = strlen(fmt) + 1; > > > + > > > + /* > > > + * Some printk formats don't start with KERN_SOH + level. We will add > > > + * it later when

[PATCH v2] tty: fix when iov_iter_count() returns 0 in tty_write()

2021-02-17 Thread Sabyrzhan Tasbolatov
syzbot found WARNING in iov_iter_revert[1] when iov_iter_count() returns 0, therefore INT_MAX is passed to iov_iter_revert() causing > MAX_RW_COUNT warning. static inline ssize_t do_tty_write() { .. size_t count = iov_iter_count(from); .. size_t size = count;

Re: [PATCH net-next] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-02-17 Thread Arnd Bergmann
On Tue, Feb 16, 2021 at 11:14 PM Min Li wrote: > > I can't help but think you are evading my question I asked. If there is no > > specific action that this pcm4l tool needs to perform, then I'd think we > > should better not provide any interface for it at all. > > > > I also found a reference to

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Chris Down
Petr Mladek writes: > How about config PRINTK_INDEX? Ah yes, I also like that. PRINTK_INDEX is fine from my perspective and is more straightforward than "enumeration", thanks. It is better than enumeration. But there is still the same problem. The word "index" is used neither in the code nor

[PATCH 0/1] arm64: defconfig: Switch on sm8250 videocc by default

2021-02-17 Thread Bryan O'Donoghue
We already switch on the sdm845 display and video clock controllers. The sm8250 display clock controller is similarly switched on by default. Lets switch on the sm8250 videocc too. Bryan O'Donoghue (1): arm64: defconfig: Enable SM8250 video clock controller arch/arm64/configs/defconfig | 1 +

Re: [PATCH net-next v4 4/8] bridge: mrp: Extend br_mrp_switchdev to detect better the errors

2021-02-17 Thread Horatiu Vultur
The 02/17/2021 10:56, Vladimir Oltean wrote: > > On Tue, Feb 16, 2021 at 10:42:01PM +0100, Horatiu Vultur wrote: > > This patch extends the br_mrp_switchdev functions to be able to have a > > better understanding what cause the issue and if the SW needs to be used > > as a backup. > > > > There

[PATCH v3 14/15] ARM: configs: Enable DRM_V3D

2021-02-17 Thread Nicolas Saenz Julienne
BCM2711, the SoC used on the Raspberry Pi 4 has a different GPU than its predecessors. Enable it. Signed-off-by: Nicolas Saenz Julienne --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH v3 13/15] ARM: dts: bcm2711: Enable V3D

2021-02-17 Thread Nicolas Saenz Julienne
This enables V3D for bcm2711 (used in the Raspberry Pi 4). Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Correct node's name address arch/arm/boot/dts/bcm2711.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711.dtsi

[PATCH v3 12/15] drm/v3d: Add support for bcm2711

2021-02-17 Thread Nicolas Saenz Julienne
Add compatible string and Kconfig options for bcm2711. Signed-off-by: Nicolas Saenz Julienne --- drivers/gpu/drm/v3d/Kconfig | 2 +- drivers/gpu/drm/v3d/v3d_drv.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/v3d/Kconfig b/drivers/gpu/drm/v3d/Kconfig

[PATCH v3 15/15] arm64: config: Enable DRM_V3D

2021-02-17 Thread Nicolas Saenz Julienne
BCM2711, the SoC used on the Raspberry Pi 4 has a different GPU than its predecessors. Enable it. Signed-off-by: Nicolas Saenz Julienne --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH 2/4] cgroup: Fix 'usage_usec' time in root's cpu.stat

2021-02-17 Thread Andrey Ryabinin
Global CPUTIME_USER counter already includes CPUTIME_GUEST Also CPUTIME_NICE already includes CPUTIME_GUEST_NICE. Remove additions of CPUTIME_GUEST[_NICE] to total ->sum_exec_runtime to not account them twice. Fixes: 936f2a70f207 ("cgroup: add cpu.stat file to root cgroup") Signed-off-by: Andrey

[PATCH 4/4] sched/cpuacct: Make user/system times in cpuacct.stat more precise

2021-02-17 Thread Andrey Ryabinin
cpuacct.stat shows user time based on raw random precision tick based counters. Use cputime_addjust() to scale these values against the total runtime accounted by the scheduler, like we already do for user/system times in /proc//stat. Signed-off-by: Andrey Ryabinin --- kernel/sched/cpuacct.c |

[PATCH 1/4] cputime,cpuacct: Include guest time in user time in cpuacct.stat

2021-02-17 Thread Andrey Ryabinin
cpuacct.stat in no-root cgroups shows user time without guest time included int it. This doesn't match with user time shown in root cpuacct.stat and /proc//stat. Make account_guest_time() to add user time to cgroup's cpustat to fix this. Fixes: ef12fefabf94 ("cpuacct: add per-cgroup utime/stime

Re: [PATCH 2/8] arm64: dts: imx8mm-nitrogen-r2: add USB support

2021-02-17 Thread Krzysztof Kozlowski
On Tue, Feb 16, 2021 at 12:19:37AM +0100, Adrien Grassein wrote: > add description of USB. s/add/Add/ Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [PATCH v9 0/4] Add %p4cc printk modifier for V4L2 and DRM fourcc codes

2021-02-17 Thread Thomas Zimmermann
Hi Am 16.02.21 um 16:57 schrieb Sakari Ailus: Hi all, On merging --- it would seem everyone is happy with merging this through the drm-misc tree. The last patch should wait until all users are gone for sure, probably to the next kernel release. There are no

Re: [RFC PATCH] mm, oom: introduce vm.sacrifice_hugepage_on_oom

2021-02-17 Thread Michal Hocko
On Wed 17-02-21 13:31:07, Michal Hocko wrote: [...] > Thanks for your usecase description. It helped me to understand what you > are doing and how this can be really useful for your particular setup. > This is really a very specific situation from my POV. I am not yet sure > this is generic enough

Re: [PATCH for 5.4] Fix unsynchronized access to sev members through svm_register_enc_region

2021-02-17 Thread Paolo Bonzini
On 17/02/21 10:18, Dov Murik wrote: Hi Peter, On 08/02/2021 18:48, Peter Gonda wrote: commit 19a23da53932bc8011220bd8c410cb76012de004 upstream. Grab kvm->lock before pinning memory when registering an encrypted region; sev_pin_memory() relies on kvm->lock being held to ensure correctness when

Re: [PATCH v3] perf probe: fix kretprobe issue caused by GCC bug

2021-02-17 Thread Masami Hiramatsu
On Tue, 16 Feb 2021 18:30:26 +0800 Jianlin Lv wrote: > Perf failed to add kretprobe event with debuginfo of vmlinux which is > compiled by gcc with -fpatchable-function-entry option enabled. > The same issue with kernel module. > > Issue: > > # perf probe -v 'kernel_clone%return $retval' >

Re: [PATCH RFC 1/4] firmware: Add the support for ZSTD-compressed firmware files

2021-02-17 Thread Luis Chamberlain
On Wed, Jan 27, 2021 at 04:49:36PM +0100, Takashi Iwai wrote: > Due to the popular demands on ZSTD, here is a patch to add a support > of ZSTD-compressed firmware files via the direct firmware loader. > It's just like XZ-compressed file support, providing a decompressor > with ZSTD. Since ZSTD

[tip: sched/core] entry/kvm: Explicitly flush pending rcuog wakeup before last rescheduling point

2021-02-17 Thread tip-bot2 for Frederic Weisbecker
The following commit has been merged into the sched/core branch of tip: Commit-ID: 4ae7dc97f726ea95c58ac58af71cc034ad22d7de Gitweb: https://git.kernel.org/tip/4ae7dc97f726ea95c58ac58af71cc034ad22d7de Author:Frederic Weisbecker AuthorDate:Mon, 01 Feb 2021 00:05:48 +01:00

[tip: sched/core] rcu/nocb: Trigger self-IPI on late deferred wake up before user resume

2021-02-17 Thread tip-bot2 for Frederic Weisbecker
The following commit has been merged into the sched/core branch of tip: Commit-ID: f8bb5cae9616224a39cbb399de382d36ac41df10 Gitweb: https://git.kernel.org/tip/f8bb5cae9616224a39cbb399de382d36ac41df10 Author:Frederic Weisbecker AuthorDate:Mon, 01 Feb 2021 00:05:46 +01:00

[tip: sched/core] rbtree, sched/deadline: Use rb_add_cached()

2021-02-17 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the sched/core branch of tip: Commit-ID: 8ecca39483ed4e4e97096d0d6f8e25fdd323b189 Gitweb: https://git.kernel.org/tip/8ecca39483ed4e4e97096d0d6f8e25fdd323b189 Author:Peter Zijlstra AuthorDate:Wed, 29 Apr 2020 17:04:41 +02:00

[PATCH v4 07/16] rpmsg: update rpmsg_chrdev_register_device function

2021-02-17 Thread Arnaud Pouliquen
As driver is now the rpmsg_ioctl, rename the function. In addition, initialize the rpdev addresses to RPMSG_ADDR_ANY as not defined. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/qcom_glink_native.c | 2 +- drivers/rpmsg/qcom_smd.c | 2 +- drivers/rpmsg/rpmsg_ctrl.c| 2

[PATCH v4 08/16] rpmsg: glink: add sendto and trysendto ops

2021-02-17 Thread Arnaud Pouliquen
Implement the sendto ops to support the future rpmsg_char update for the vitio backend support. The use of sendto in rpmsg_char is needed as a destination address is requested at least by the virtio backend. The glink implementation does not need a destination address so ignores it.

[PATCH v4 06/16] rpmsg: move the rpmsg control device from rpmsg_char to rpmsg_ctrl

2021-02-17 Thread Arnaud Pouliquen
Move the code related to the rpmsg_ctrl char device to the new rpmsg_ctrl.c module. Manage the dependency in the kconfig. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/Kconfig | 9 ++ drivers/rpmsg/Makefile | 1 + drivers/rpmsg/rpmsg_char.c | 163

[PATCH v4 09/16] rpmsg: smd: add sendto and trysendto ops

2021-02-17 Thread Arnaud Pouliquen
Implement the sendto ops to support the future rpmsg_char update for the vitio backend support. The use of sendto in rpmsg_char is needed as a destination address is requested at least by the virtio backend. The SMD implementation does not need a destination address so ignores it. Signed-off-by:

[PATCH v4 12/16] rpmsg: ctrl: introduce RPMSG_CREATE_DEV_IOCTL

2021-02-17 Thread Arnaud Pouliquen
Implement the RPMSG_CREATE_DEV_IOCTL to allow the user application to initiate a communication through a new RPMsg channel. This Ioctl can be used to instantiate a local RPMsg device. Depending on the back-end implementation, a NS announcement can be sent to the remote processor. Suggested-by:

[PATCH v4 11/16] rpmsg: virtio: register the rpmsg_ctrl device

2021-02-17 Thread Arnaud Pouliquen
Instantiate the rpmsg_ioctl device on virtio RPMsg bus creation. This provides the possibility to expose the RPMSG_CREATE_EPT_IOCTL to create RPMsg chdev endpoints. Signed-off-by: Arnaud Pouliquen --- V3: Fix compilation issue Reported-by: kernel test robot Reported-by: Dan Carpenter

[PATCH v4 14/16] rpmsg: char: introduce a RPMsg driver for the RPMsg char device

2021-02-17 Thread Arnaud Pouliquen
A RPMsg char device allows to probe the endpoint device on a remote name service announcement. With this patch the /dev/rpmsgX interface is created either by a user application or by the remote firmware. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/rpmsg_char.c | 63

Re: [PATCH] drm/i915: Enable -Wuninitialized

2021-02-17 Thread Chris Wilson
Quoting Nathan Chancellor (2021-02-16 21:29:54) > -Wunintialized was disabled in commit c5627461490e ("drm/i915: Disable > -Wuninitialized") because there were two warnings that were false > positives. The first was due to DECLARE_WAIT_QUEUE_HEAD_ONSTACK, which > was fixed in LLVM 9.0.0. The

[PATCH] Staging: hv: channel.c: fixed a tab spaces before space hv: connection.c fixed a "=" sign without space in code

2021-02-17 Thread Vasanth
Signed-off-by: Vasanth Mathivanan --- drivers/hv/channel.c| 2 +- drivers/hv/connection.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 6fb0c76bfbf8..587234065e37 100644 --- a/drivers/hv/channel.c +++

Re: [PATCH 4/8] arm64: dts: imx8mm-nitrogen-r2: add uarts

2021-02-17 Thread Krzysztof Kozlowski
On Tue, Feb 16, 2021 at 12:19:39AM +0100, Adrien Grassein wrote: > Add description and pinmuxing for uarts. > > Signed-off-by: Adrien Grassein > --- > .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 53 ++- > 1 file changed, 52 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-17 Thread Oscar Salvador
On Wed, Feb 17, 2021 at 03:08:04PM +0100, David Hildenbrand wrote: > On 17.02.21 14:59, Michal Hocko wrote: > > On Wed 17-02-21 14:53:37, David Hildenbrand wrote: > > > On 17.02.21 14:50, Michal Hocko wrote: > > [...] > > > > Do we have any real life examples? Or does this fall more into, let's >

Re: [PATCH RFC 1/4] firmware: Add the support for ZSTD-compressed firmware files

2021-02-17 Thread Takashi Iwai
On Wed, 17 Feb 2021 15:17:52 +0100, Greg Kroah-Hartman wrote: > > On Wed, Feb 17, 2021 at 02:34:34PM +0100, Takashi Iwai wrote: > > On Wed, 17 Feb 2021 14:24:19 +0100, > > Luis Chamberlain wrote: > > > > > > On Wed, Jan 27, 2021 at 04:49:36PM +0100, Takashi Iwai wrote: > > > > Due to the popular

Re: [PATCH] thermal: cpufreq_cooling: freq_qos_update_request() returns < 0 on error

2021-02-17 Thread Rafael J. Wysocki
On Wed, Feb 17, 2021 at 6:50 AM Viresh Kumar wrote: > > freq_qos_update_request() returns 1 if the effective constraint value > has changed, 0 if the effective constraint value has not changed, or a > negative error code on failures. > > The frequency constraints for CPUs can be set by different

Re: [PATCH 03/33] mm: Implement readahead_control pageset expansion

2021-02-17 Thread Mike Marshall
I plan to try and use readahead_expand in Orangefs... -Mike On Tue, Feb 16, 2021 at 8:28 AM Matthew Wilcox wrote: > > On Tue, Feb 16, 2021 at 11:32:15AM +0100, Christoph Hellwig wrote: > > On Mon, Feb 15, 2021 at 03:44:52PM +, David Howells wrote: > > > Provide a function,

Re: [PATCH] staging: emxx_udc: remove unused variable driver_desc

2021-02-17 Thread Greg Kroah-Hartman
On Wed, Feb 17, 2021 at 09:24:17AM -0500, Sean Behan wrote: > When building with W=1, there is a warning that this variable is unused. > > It is not used so remove it to fix the warning. > > Thanks to nat...@kernel.org for helping me submit my first patch. This is nice, but is it needed in the

Re: [RFC PATCH] mm, oom: introduce vm.sacrifice_hugepage_on_oom

2021-02-17 Thread Shakeel Butt
On Tue, Feb 16, 2021 at 5:25 PM David Rientjes wrote: > > On Tue, 16 Feb 2021, Michal Hocko wrote: > > > > Hugepages can be preallocated to avoid unpredictable allocation latency. > > > If we run into 4k page shortage, the kernel can trigger OOM even though > > > there were free hugepages. When

[PATCH 5/7] KVM: nSVM: fix running nested guests when npt=0

2021-02-17 Thread Maxim Levitsky
In case of npt=0 on host, nSVM needs the same .inject_page_fault tweak as VMX has, to make sure that shadow mmu faults are injected as vmexits. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 18 ++ arch/x86/kvm/svm/svm.c| 5 - arch/x86/kvm/svm/svm.h|

[PATCH 2/7] KVM: nSVM: move nested vmrun tracepoint to enter_svm_guest_mode

2021-02-17 Thread Maxim Levitsky
This way trace will capture all the nested mode entries (including entries after migration, and from smm) Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/svm/nested.c

[PATCH 4/7] KVM: nVMX: move inject_page_fault tweak to .complete_mmu_init

2021-02-17 Thread Maxim Levitsky
This fixes a (mostly theoretical) bug which can happen if ept=0 on host and we run a nested guest which triggers a mmu context reset while running nested. In this case the .inject_page_fault callback will be lost. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/vmx/nested.c | 8 +---

[PATCH 3/7] KVM: x86: add .complete_mmu_init arch callback

2021-02-17 Thread Maxim Levitsky
This callback will be used to tweak the mmu context in arch specific code after it was reset. Signed-off-by: Maxim Levitsky --- arch/x86/include/asm/kvm-x86-ops.h | 1 + arch/x86/include/asm/kvm_host.h| 2 ++ arch/x86/kvm/mmu/mmu.c | 2 ++ arch/x86/kvm/svm/svm.c | 6

[PATCH 6/7] KVM: nVMX: don't load PDPTRS right after nested state set

2021-02-17 Thread Maxim Levitsky
Just like all other nested memory accesses, after a migration loading PDPTRs should be delayed to first VM entry to ensure that guest memory is fully initialized. Just move the call to nested_vmx_load_cr3 to nested_get_vmcs12_pages to implement this. Signed-off-by: Maxim Levitsky ---

[PATCH 7/7] KVM: nSVM: call nested_svm_load_cr3 on nested state load

2021-02-17 Thread Maxim Levitsky
While KVM's MMU should be fully reset by loading of nested CR0/CR3/CR4 by KVM_SET_SREGS, we are not in nested mode yet when we do it and therefore only root_mmu is reset. On regular nested entries we call nested_svm_load_cr3 which both updates the guest's CR3 in the MMU when it is needed, and it

Re: Using TCPM for ports without Power Delivery support

2021-02-17 Thread Cristian.Birsan
Hi Heikki, On 2/16/21 11:12 AM, Heikki Krogerus wrote: > > Hi Cristian, > > On Mon, Feb 15, 2021 at 05:25:29PM +, cristian.bir...@microchip.com wrote: >> My name is Cristian and I'm working on bringing up a USB Type-C Port >> Controller >> (TCPC) without Power Delivery support which is

Re: [External] Re: [PATCH v2] mm: memcontrol: fix swap undercounting in cgroup2

2021-02-17 Thread Muchun Song
On Wed, Feb 17, 2021 at 10:39 PM Shakeel Butt wrote: > > On Wed, Feb 17, 2021 at 3:09 AM Muchun Song wrote: > > > > When pages are swapped in, the VM may retain the swap copy to avoid > > repeated writes in the future. It's also retained if shared pages are > > faulted back in some processes,

[PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Rui Salvaterra
Hardware buffer management has never worked on the Turris Omnia, as the required MBus window hadn't been reserved. Fix thusly. Fixes: 018b88eee1a2 ("ARM: dts: turris-omnia: enable HW buffer management") Signed-off-by: Rui Salvaterra --- arch/arm/boot/dts/armada-385-turris-omnia.dts | 3 ++- 1

Re: [PATCH] cpufreq: exclude boost frequencies from valid count if not enabled

2021-02-17 Thread Thara Gopinath
On 2/17/21 12:50 AM, Viresh Kumar wrote: Hi Thara, On 16-02-21, 19:00, Thara Gopinath wrote: This is a fix for a regression observed on db845 platforms with 5.7-rc11 kernel. On these platforms running stress tests with 5.11-rc7 kernel causes big cpus to overheat and ultimately shutdown the

[PATCH] staging: wlan-ng: Fixed incorrect type warning in p80211netdev.c

2021-02-17 Thread Pritthijit Nath
This change fixes a sparse warning "incorrect type in argument 1 (different address spaces)". Signed-off-by: Pritthijit Nath --- drivers/staging/wlan-ng/p80211netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/p80211netdev.c

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Marek Behún
/o\ How did I manage to miss this? Please wait a few minutes I am just going to do a fast compile and test. Marek

Re: [PATCH 03/33] mm: Implement readahead_control pageset expansion

2021-02-17 Thread David Howells
Mike Marshall wrote: > I plan to try and use readahead_expand in Orangefs... Would it help if I shuffled the readahead_expand patch to the bottom of the pack? David

Re: Should RCU_BOOST kernels use hrtimers in GP kthread?

2021-02-17 Thread Paul E. McKenney
On Wed, Feb 17, 2021 at 04:32:53PM +0100, Sebastian Andrzej Siewior wrote: > On 2021-02-16 10:36:09 [-0800], Paul E. McKenney wrote: > > Hello, Sebastian, > > Hi Paul, > > > I punted on this for the moment by making RCU priority boosting testing > > depend on CONFIG_PREEMPT_RT, but longer term I

Re: [PATCH] staging: wlan-ng: Fixed incorrect type warning in p80211netdev.c

2021-02-17 Thread Greg KH
On Wed, Feb 17, 2021 at 09:12:55PM +0530, Pritthijit Nath wrote: > This change fixes a sparse warning "incorrect type in argument 1 > (different address spaces)". > > Signed-off-by: Pritthijit Nath > --- > drivers/staging/wlan-ng/p80211netdev.c | 2 +- > 1 file changed, 1 insertion(+), 1

[PATCH v3 11/15] drm/v3d: Get rid of pm code

2021-02-17 Thread Nicolas Saenz Julienne
Runtime PM doesn't seem to work correctly on this driver. On top of that, commit 8b6864e3e138 ("drm/v3d/v3d_drv: Remove unused static variable 'v3d_v3d_pm_ops'") hints that it most likely never did as the driver's PM ops were not hooked-up. So, in order to support regular operation with V3D on

Re: ANNOUNCE: pahole v1.20 (gcc11 DWARF5's default, lots of ELF sections, BTF)

2021-02-17 Thread Domenico Andreoli
On Mon, Feb 08, 2021 at 09:32:53AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Feb 08, 2021 at 03:44:54AM +0100, Sedat Dilek escreveu: > > On Thu, Feb 4, 2021 at 11:07 PM Arnaldo Carvalho de Melo > > wrote: > > > > > > Hi, > > > > > > The v1.20 release of pahole and its friends is

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