Re: [PATCH v14 09/13] KVM: x86: Report CET MSRs as to-be-saved if CET is supported

2021-01-29 Thread Yang Weijiang
On Thu, Jan 28, 2021 at 06:46:37PM +0100, Paolo Bonzini wrote: > On 06/11/20 02:16, Yang Weijiang wrote: > > Report all CET MSRs, including the synthetic GUEST_SSP MSR, as > > to-be-saved, e.g. for migration, if CET is supported by KVM. > > > > Co-developed-by: Sean Christopherson > > Signed-off-

[PATCH v2] perf/core: Wake up tasks for failing pinned events

2021-01-29 Thread Namhyung Kim
As of now we don't get any notice for pinned events when it's failed to be scheduled and make it in an error state not try to schedule it again. That means we won't get any samples for the event. It's possible we can detect it by reading the file, but usually we only monitor it via mmap-ed ring b

Re: [PATCH] drm/tilcdc: send vblank event when disabling crtc

2021-01-29 Thread Tomi Valkeinen
Dropped the @ti.com addresses and added the new ones. Tomi On 29/01/2021 07:58, quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > When run xrandr to change resolution on Beaglebone Black board, it will > print the error information: > > root@beaglebone:~# xrandr -display :0 --outpu

Re: [PATCH 2/3] arm64/ptrace: introduce NT_ARM_PRSTATUS to get a full set of registers

2021-01-29 Thread Andrei Vagin
On Wed, Jan 27, 2021 at 02:53:07PM +, Dave Martin wrote: > On Tue, Jan 19, 2021 at 02:06:36PM -0800, Andrei Vagin wrote: > > This is an alternative to NT_PRSTATUS that clobbers ip/r12 on AArch32, > > x7 on AArch64 when a tracee is stopped in syscall entry or syscall exit > > traps. > > > > Sig

Re: [PATCH v12 6/8] drm/mediatek: enable dither function

2021-01-29 Thread Hsin-Yi Wang
On Fri, Jan 29, 2021 at 3:42 PM Yongqiang Niu wrote: > > On Fri, 2021-01-29 at 14:46 +0800, Hsin-Yi Wang wrote: > > On Fri, Jan 29, 2021 at 2:30 PM Yongqiang Niu > > wrote: > > > > > > On Fri, 2021-01-29 at 14:24 +0800, Hsin-Yi Wang wrote: > > > > On Fri, Jan 29, 2021 at 9:33 AM CK Hu wrote: > >

[PATCH] power: supply: Simplify bool conversion

2021-01-29 Thread Yang Li
Fix the following coccicheck warning: ./drivers/power/supply/cpcap-charger.c:416:31-36: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/power/supply/cpcap-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

Re: [PATCH] PCI: endpoint: Select configfs dependency

2021-01-29 Thread Kishon Vijay Abraham I
Hi Arnd, Lorenzo, On 25/01/21 5:04 pm, Arnd Bergmann wrote: > From: Arnd Bergmann > > The newly added pci-epf-ntb driver uses configfs, which > causes a link failure when that is disabled at compile-time: > > arm-linux-gnueabi-ld: drivers/pci/endpoint/functions/pci-epf-ntb.o: in > function `ep

Re: [PATCH 04/13] module: use RCU to synchronize find_module

2021-01-29 Thread Petr Mladek
On Thu 2021-01-28 19:14:12, Christoph Hellwig wrote: > Allow for a RCU-sched critical section around find_module, following > the lower level find_module_all helper, and switch the two callers > outside of module.c to use such a RCU-sched critical section instead > of module_mutex. > > Signed-off-

Re: [RFC PATCH v3 00/13] virtio/vsock: introduce SOCK_SEQPACKET support

2021-01-29 Thread Stefano Garzarella
On Fri, Jan 29, 2021 at 09:41:50AM +0300, Arseny Krasnov wrote: On 28.01.2021 20:19, Stefano Garzarella wrote: Hi Arseny, I reviewed a part, tomorrow I hope to finish the other patches. Just a couple of comments in the TODOs below. On Mon, Jan 25, 2021 at 02:09:00PM +0300, Arseny Krasnov wrot

Re: [PATCH v4 2/8] drm/mediatek: add component POSTMASK

2021-01-29 Thread CK Hu
Hi, Hsin-Yi: On Fri, 2021-01-29 at 15:34 +0800, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > This patch add component POSTMASK, > > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang > --- > drivers/gpu/drm/mediatek/Makefile| 1 + > drivers/gpu/drm/mediatek/mtk_disp_dr

[PATCH RESEND v5 6/8] regulator: mt6359: Add support for MT6359 regulator

2021-01-29 Thread Hsin-Hsiung Wang
From: Wen Su The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add enable ti

[PATCH RESEND v5 8/8] arm64: dts: mt6359: add PMIC MT6359 related nodes

2021-01-29 Thread Hsin-Hsiung Wang
From: Wen Su add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add pmic MT6359 support in the MT8192 evb dts. --- arch/arm64/boot/dts/mediatek/mt6359.dtsi| 298 arch/arm64/boot/dts/

Re: [PATCH v4 7/8] soc: mediatek: add mtk mutex support for MT8192

2021-01-29 Thread CK Hu
Hi, Hsin-Yi: On Fri, 2021-01-29 at 15:34 +0800, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > Add mtk mutex support for MT8192 SoC. Reviewed-by: CK Hu > > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang > --- > drivers/soc/mediatek/mtk-mutex.c | 35 +

Re: [PATCH v16 07/11] secretmem: use PMD-size pages to amortize direct map fragmentation

2021-01-29 Thread Michal Hocko
On Thu 28-01-21 13:05:02, James Bottomley wrote: > Obviously the API choice could be revisited > but do you have anything to add over the previous discussion, or is > this just to get your access control? Well, access control is certainly one thing which I still believe is missing. But if there is

Re: [RFC PATCH] io_uring: add support for IORING_OP_GETDENTS64

2021-01-29 Thread Lennert Buytenhek
On Fri, Jan 29, 2021 at 07:37:03AM +0200, Lennert Buytenhek wrote: > > > > One open question is whether IORING_OP_GETDENTS64 should be more like > > > > pread(2) and allow passing in a starting offset to read from the > > > > directory from. (This would require some more surgery in fs/readdir.c.)

[PATCH v2] KVM: x86: Allow guests to see MSR_IA32_TSX_CTRL even if tsx=off

2021-01-29 Thread Paolo Bonzini
Userspace that does not know about KVM_GET_MSR_FEATURE_INDEX_LIST will generally use the default value for MSR_IA32_ARCH_CAPABILITIES. When this happens and the host has tsx=on, it is possible to end up with virtual machines that have HLE and RTM disabled, but TSX_CTRL available. If the fleet is t

[PATCH] gpiolib: free device name on error path to fix kmemleak

2021-01-29 Thread quanyang . wang
From: Quanyang Wang In gpiochip_add_data_with_key, we should check the return value of dev_set_name to ensure that device name is allocated successfully and then add a label on the error path to free device name to fix kmemleak as below: unreferenced object 0xc2d6fc40 (size 64): comm "kworker/

[PATCH 4.14 10/50] xen: Fix event channel callback via INTX/GSI

2021-01-29 Thread Greg Kroah-Hartman
From: David Woodhouse [ Upstream commit 3499ba8198cad47b731792e5e56b9ec2a78a83a2 ] For a while, event channel notification via the PCI platform device has been broken, because we attempt to communicate with xenstore before we even have notifications working, with the xs_reset_watches() call in x

[PATCH v2 1/2] EDAC/ghes: Add EDAC device for reporting the CPU cache errors

2021-01-29 Thread Shiju Jose
CPU L2 cache corrected errors are detected occasionally on few of our ARM64 hardware boards. Though it is rare, the probability of the CPU cache errors frequently occurring can't be avoided. The earlier failure detection by monitoring the cache corrected errors for the frequent occurrences and taki

Re: [PATCH] x86: Disable CET instrumentation in the kernel

2021-01-29 Thread Borislav Petkov
On Thu, Jan 28, 2021 at 03:52:19PM -0600, Josh Poimboeuf wrote: > > With retpolines disabled, some configurations of GCC will add Intel CET > instrumentation to the kernel by default. That breaks certain tracing > scenarios by adding a superfluous ENDBR64 instruction before the fentry > call, for

[PATCH 4.9 00/30] 4.9.254-rc1 review

2021-01-29 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.254 release. There are 30 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun, 31 Jan 2021 10:59:01 +. Anything rec

Re: [PATCH v6] close_range.2: new page documenting close_range(2)

2021-01-29 Thread Christian Brauner
On Thu, Jan 28, 2021 at 09:50:23PM +0100, Michael Kerrisk (man-pages) wrote: > Hello Stephen, (and CHristian, please!) Ah, I think this was mostly done which is why I kept quiet. Christian

[PATCH RESEND v5 3/8] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2021-01-29 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - remove unused compatible name. --- Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/D

Re: [PATCH v2 04/16] rpmsg: ctrl: implement the ioctl function to create device

2021-01-29 Thread Arnaud POULIQUEN
On 1/29/21 1:13 AM, Mathieu Poirier wrote: > [...] > >>> It seems to me that the main point to step forward is to clarify the global >>> design and features of the rpmsg-ctrl. >>> Depending on the decision taken, this series could be trashed and rewritten >>> from >>> a blank page...To not los

[v6,0/3] mt8183: Add Mediatek thermal driver and dtsi

2021-01-29 Thread Michael Kao
This patchset supports for MT8183 chip to mtk_thermal.c. Add thermal zone of all the thermal sensor in SoC for another get temperatrue. They don't need to thermal throttle. And we bind coolers for thermal zone nodes of cpu_thermal. Changes in v6: - Rebase to kernel-5.11-rc1. - [1/3]

Re: [PATCH v5 4/4] ARM: Add support for Hisilicon Kunpeng L3 cache controller

2021-01-29 Thread Russell King - ARM Linux admin
On Fri, Jan 29, 2021 at 11:26:38AM +0100, Arnd Bergmann wrote: > Another clarification, as there are actually two independent > points here: > > * if you can completely remove the readl() above and just write a > hardcoded value into the register, or perhaps read the original > value once at b

Re: [PATCH v4 4/8] drm/mediatek: enable OVL_LAYER_SMI_ID_EN for multi-layer usecase

2021-01-29 Thread CK Hu
Hi, Hsin-Yi: On Fri, 2021-01-29 at 15:34 +0800, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > enable OVL_LAYER_SMI_ID_EN for multi-layer usecase, without this patch, > ovl will hang up when more than 1 layer enabled. Reviewed-by: CK Hu > > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-

[PATCH 4.9 19/30] bpf: Fix buggy rsh min/max bounds tracking

2021-01-29 Thread Greg Kroah-Hartman
From: Daniel Borkmann [ no upstream commit ] Fix incorrect bounds tracking for RSH opcode. Commit f23cc643f9ba ("bpf: fix range arithmetic for bpf map access") had a wrong assumption about min/max bounds. The new dst_reg->min_value needs to be derived by right shifting the max_val bounds, not mi

Re: [PATCH v3] mm/page_alloc: count CMA pages per zone and print them in /proc/zoneinfo

2021-01-29 Thread Oscar Salvador
On Fri, Jan 29, 2021 at 12:34:51PM +0100, David Hildenbrand wrote: > Let's count the number of CMA pages per zone and print them in > /proc/zoneinfo. > > Having access to the total number of CMA pages per zone is helpful for > debugging purposes to know where exactly the CMA pages ended up, and to

Re: [PATCH v2] kretprobe: avoid re-registration of the same kretprobe earlier

2021-01-29 Thread Steven Rostedt
On Fri, 29 Jan 2021 22:29:47 +0900 Masami Hiramatsu wrote: > I'll send a patch over this to replace those check with WARN_ON() since > it's a software bug and should be fixed. Please use WARN_ON_ONCE() Thanks! -- Steve

Re: [PATCH v2] kretprobe: avoid re-registration of the same kretprobe earlier

2021-01-29 Thread Steven Rostedt
On Fri, 29 Jan 2021 15:23:47 +0530 "Naveen N. Rao" wrote: > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index f7fb5d135930fa..63a36f33565354 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -1530,6 +1530,7 @@ static inline int check_kprobe_rereg(struct kprobe *p) >

[GIT PULL] Power management fixes for v5.11-rc6

2021-01-29 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-5.11-rc6 with top-most commit fef9c8d28e28a808274a18fbd8cc2685817fd62a PM: hibernate: flush swap writer after marking on top of commit 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04 Linux 5

Re: [PATCH v2] x86/debug: Fix DR6 handling

2021-01-29 Thread Borislav Petkov
On Fri, Jan 29, 2021 at 04:41:09PM +0100, Oleg Nesterov wrote: > This seems to fix the problem reported by Jan, see his test-case below. Should it be part of tools/testing/selftests/breakpoints/ ? tglx has one destined for there already, wouldn't hurt to have a second one: https://lkml.kernel.

Re: [PATCH] bus: mvebu-mbus: make iounmap() symmetric with ioremap()

2021-01-29 Thread Thomas Petazzoni
On Fri, 29 Jan 2021 17:01:35 +0100 Gregory CLEMENT wrote: > Could you sent me the patch I don't have it in my emails boxes. https://lore.kernel.org/lkml/20201112032149.21906-1-chris.pack...@alliedtelesis.co.nz/raw Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering h

Re: [PATCH] x86: Disable CET instrumentation in the kernel

2021-01-29 Thread Borislav Petkov
On Fri, Jan 29, 2021 at 09:10:34AM -0600, Josh Poimboeuf wrote: > Maybe eventually. But the enablement (actually enabling CET/CFI/etc) > happens in the arch code anyway, right? So it could be a per-arch > decision. Right. Ok, for this one, what about Cc: ? What are "some configurations of G

Re: [PATCH iproute-next v2] devlink: add support for port params get/set

2021-01-29 Thread David Ahern
On 1/25/21 6:48 AM, Oleksandr Mazur wrote: > Add implementation for the port parameters getting/setting. > Add bash completion for port param. > Add man description for port param. > Add example commands here - both set and show. Include a json version of the show. > Signed-off-by: Oleksandr Maz

Re: dax alignment problem on arm64 (and other achitectures)

2021-01-29 Thread Pavel Tatashin
On Fri, Jan 29, 2021 at 8:19 AM David Hildenbrand wrote: > > On 29.01.21 03:06, Pavel Tatashin wrote: > >>> Might be related to the broken custom pfn_valid() implementation for > >>> ZONE_DEVICE. > >>> > >>> https://lkml.kernel.org/r/1608621144-4001-1-git-send-email-anshuman.khand...@arm.com > >>>

YOU HAVE WON

2021-01-29 Thread lottonlxxx
LOTTO.NL, 2391 Beds 152 Koningin Julianaplein 21, Den Haag-Netherlands. (Lotto affiliate with Subscriber Agents). From: Susan Console (Lottery Coordinator) Website: www.lotto.nl Sir/Madam, CONGRATULATIONS!!! We are pleased to inform you of the result of the Lotto NL Winners International progr

Re: [PATCH v2] btrfs: Avoid calling btrfs_get_chunk_map() twice

2021-01-29 Thread Josef Bacik
On 1/27/21 8:57 AM, Michal Rostecki wrote: From: Michal Rostecki Before this change, the btrfs_get_io_geometry() function was calling btrfs_get_chunk_map() to get the extent mapping, necessary for calculating the I/O geometry. It was using that extent mapping only internally and freeing the poi

Re: kprobes broken since 0d00449c7a28 ("x86: Replace ist_enter() with nmi_enter()")

2021-01-29 Thread Peter Zijlstra
On Fri, Jan 29, 2021 at 10:59:52AM -0500, Steven Rostedt wrote: > On Fri, 29 Jan 2021 22:40:11 +0900 > Masami Hiramatsu wrote: > > > > So what, they can all happen with random locks held. Marking them as NMI > > > enables a whole bunch of sanity checks that are entirely appropriate. > > > > Ho

Re: [REGRESSION] "ALSA: HDA: Early Forbid of runtime PM" broke my laptop's internal audio

2021-01-29 Thread Takashi Iwai
On Fri, 29 Jan 2021 17:12:08 +0100, Michael Catanzaro wrote: > > On Fri, Jan 29, 2021 at 9:30 am, Michael Catanzaro > wrote: > > OK, I found "ALSA: hda/via: Apply the workaround generically for > > Clevo machines" which was just merged yesterday. So I will test > > again to find out. > > Hi Taka

Re: [PATCH v5 2/7] pwm: pca9685: Support hardware readout

2021-01-29 Thread Clemens Gruber
Hi Sven, On Fri, Jan 29, 2021 at 08:42:13AM -0500, Sven Van Asbroeck wrote: > On Mon, Jan 11, 2021 at 3:35 PM Uwe Kleine-König > wrote: > > > > My position here is: A consumer should disable a PWM before calling > > pwm_put. The driver should however not enforce this and so should not > > modify

Re: dax alignment problem on arm64 (and other achitectures)

2021-01-29 Thread Pavel Tatashin
On Fri, Jan 29, 2021 at 9:51 AM Joao Martins wrote: > > Hey Pavel, > > On 1/29/21 1:50 PM, Pavel Tatashin wrote: > >> Since we last talked about this the enabling for EFI "Special Purpose" > >> / Soft Reserved Memory has gone upstream and instantiates device-dax > >> instances for address ranges m

Re: [PATCH 1/3] kvfree_rcu: Allocate a page for a single argument

2021-01-29 Thread Uladzislau Rezki
On Fri, Jan 29, 2021 at 09:56:29AM +0100, Michal Hocko wrote: > On Thu 28-01-21 19:02:37, Uladzislau Rezki wrote: > [...] > > >From 0bdb8ca1ae62088790e0a452c4acec3821e06989 Mon Sep 17 00:00:00 2001 > > From: "Uladzislau Rezki (Sony)" > > Date: Wed, 20 Jan 2021 17:21:46 +0100 > > Subject: [PATCH v2

Re: [net-next PATCH v4 01/15] Documentation: ACPI: DSD: Document MDIO PHY

2021-01-29 Thread Rafael J. Wysocki
On Fri, Jan 29, 2021 at 7:48 AM Calvin Johnson wrote: > > On Thu, Jan 28, 2021 at 02:27:00PM +0100, Rafael J. Wysocki wrote: > > On Thu, Jan 28, 2021 at 2:12 PM Calvin Johnson > > wrote: > > > > > > On Thu, Jan 28, 2021 at 01:00:40PM +0100, Rafael J. Wysocki wrote: > > > > On Thu, Jan 28, 2021 at

Re: Quick review of RCU-related patches in v5.10.8-rt23

2021-01-29 Thread Paul E. McKenney
On Fri, Jan 29, 2021 at 05:11:37PM +0100, Sebastian Andrzej Siewior wrote: > On 2021-01-28 11:50:37 [-0800], Paul E. McKenney wrote: > > Hello, Sebastian, > > Hi Paul, > > > Just doing my periodic (but decidedly non-real-time) scan of RCU-related > > patches in -rt, in this case v5.10.8-rt23: > >

[PATCH] lib: crc8: Pointer to data block should be const

2021-01-29 Thread Richard Fitzgerald
crc8() does not change the data passed to it, so the pointer argument should be declared const. This avoids callers that receive const data having to cast it to a non-const pointer to call crc8(). Signed-off-by: Richard Fitzgerald --- include/linux/crc8.h | 2 +- lib/crc8.c | 2 +- 2 f

[git pull] IOMMU Fixes for Linux v5.11-rc5

2021-01-29 Thread Joerg Roedel
Hi Linus, The following changes since commit 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04: Linux 5.11-rc5 (2021-01-24 16:47:14 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v5.11-rc5 for you to fetch changes up to

Re: [PATCH V3 0/6] x86: don't abuse tss.sp1

2021-01-29 Thread Borislav Petkov
On Fri, Jan 29, 2021 at 11:35:46PM +0800, Lai Jiangshan wrote: > Any feedback? Yes: be patient please. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

Re: [net-next PATCH v4 01/15] Documentation: ACPI: DSD: Document MDIO PHY

2021-01-29 Thread Rafael J. Wysocki
On Fri, Jan 29, 2021 at 5:37 PM Rafael J. Wysocki wrote: > > On Fri, Jan 29, 2021 at 7:48 AM Calvin Johnson > wrote: > > > > On Thu, Jan 28, 2021 at 02:27:00PM +0100, Rafael J. Wysocki wrote: > > > On Thu, Jan 28, 2021 at 2:12 PM Calvin Johnson > > > wrote: > > > > > > > > On Thu, Jan 28, 2021 a

[PATCH net] rxrpc: Fix deadlock around release of dst cached on udp tunnel

2021-01-29 Thread David Howells
AF_RXRPC sockets use UDP ports in encap mode. This causes socket and dst from an incoming packet to get stolen and attached to the UDP socket from whence it is leaked when that socket is closed. When a network namespace is removed, the wait for dst records to be cleaned up happens before the clea

Re: [PATCH 1/3] serial: 8250: Handle UART without interrupt on TEMT using em485

2021-01-29 Thread Eric Tremblay
On 2021-01-29 6:22 a.m., Andy Shevchenko wrote: > On Thu, Jan 28, 2021 at 06:36:27PM -0500, Eric Tremblay wrote: >> The patch introduce the UART_CAP_TEMT capability which is by default >> assigned to all 8250 UART since the code assume that device has the >> interrupt on TEMT > You have missed peri

Re: [PATCH v9 1/7] ACPI: scan: Obtain device's desired enumeration power state

2021-01-29 Thread Sakari Ailus
Hi Rafael, Thanks for the comments. On Fri, Jan 29, 2021 at 03:07:57PM +0100, Rafael J. Wysocki wrote: > On Fri, Jan 29, 2021 at 12:27 AM Sakari Ailus > wrote: > > > > Store a device's desired enumeration power state in struct > > acpi_device_power_flags during acpi_device object's initialisatio

linux-next-20210129: drivers/media/platform/mtk-vcodec/

2021-01-29 Thread Randy Dunlap
on i386: ld: drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.o: in function `mtk_vcodec_dec_clock_on': mtk_vcodec_dec_pm.c:(.text+0xff): undefined reference to `mtk_smi_larb_get' ld: drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.o: in function `mtk_vcodec_dec_clock_off': mtk_vcodec_dec

Re: [PATCH] x86: Disable CET instrumentation in the kernel

2021-01-29 Thread Josh Poimboeuf
On Fri, Jan 29, 2021 at 05:30:48PM +0100, Borislav Petkov wrote: > On Fri, Jan 29, 2021 at 09:10:34AM -0600, Josh Poimboeuf wrote: > > Maybe eventually. But the enablement (actually enabling CET/CFI/etc) > > happens in the arch code anyway, right? So it could be a per-arch > > decision. > > Righ

[PATCH v2] selinux: measure state and policy capabilities

2021-01-29 Thread Lakshmi Ramasubramanian
SELinux stores the configuration state and the policy capabilities in kernel memory. Changes to this data at runtime would have an impact on the security guarantees provided by SELinux. Measuring this data through IMA subsystem provides a tamper-resistant way for an attestation service to remotel

Re: [PATCH] pwm: fix semicolon.cocci warnings

2021-01-29 Thread Vladimir Zapolskiy
On 1/28/21 10:57 PM, Uwe Kleine-König wrote: Hello, On Thu, Jan 28, 2021 at 09:45:37PM +0800, kernel test robot wrote: From: kernel test robot drivers/pwm/pwm-lpc18xx-sct.c:292:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes

Re: [PATCH] x86: Disable CET instrumentation in the kernel

2021-01-29 Thread Nikolay Borisov
On 29.01.21 г. 18:49 ч., Josh Poimboeuf wrote: > Agreed, stable is a good idea. I think Nikolay saw it with GCC 9. Yes I did, with the default Ubuntu compiler as well as the default gcc-10 compiler: # gcc -v -Q -O2 --help=target | grep protection gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1

Re: [PATCH v9 1/7] ACPI: scan: Obtain device's desired enumeration power state

2021-01-29 Thread Rafael J. Wysocki
On Fri, Jan 29, 2021 at 5:45 PM Sakari Ailus wrote: > > Hi Rafael, > > Thanks for the comments. > > On Fri, Jan 29, 2021 at 03:07:57PM +0100, Rafael J. Wysocki wrote: > > On Fri, Jan 29, 2021 at 12:27 AM Sakari Ailus > > wrote: > > > > > > Store a device's desired enumeration power state in struc

Re: [PATCH v2] KVM: x86: Allow guests to see MSR_IA32_TSX_CTRL even if tsx=off

2021-01-29 Thread Sean Christopherson
On Fri, Jan 29, 2021, Paolo Bonzini wrote: > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 76bce832cade..15733013b266 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -1401,7 +1401,7 @@ static u64 kvm_get_arch_capabilities(void) >*This lets the guest

Re: [PATCH] bus: mvebu-mbus: make iounmap() symmetric with ioremap()

2021-01-29 Thread Gregory CLEMENT
Hi, > On Fri, 29 Jan 2021 17:01:35 +0100 > Gregory CLEMENT wrote: > >> Could you sent me the patch I don't have it in my emails boxes. > > https://lore.kernel.org/lkml/20201112032149.21906-1-chris.pack...@alliedtelesis.co.nz/raw Applied on mvebu/arm Thanks, Gregory > > Thomas > -- > Thomas

Re: [PATCH v2] x86/debug: Fix DR6 handling

2021-01-29 Thread Tom de Vries
On 1/29/21 3:48 PM, Borislav Petkov wrote: > On Thu, Jan 28, 2021 at 10:16:27PM +0100, Peter Zijlstra wrote: >> >> Tom reported that one of the GDB test-cases failed, and Boris bisected >> it to commit: >> >> d53d9bc0cf78 ("x86/debug: Change thread.debugreg6 to thread.virtual_dr6") >> >> The debu

linux-next-20210129: drivers/iommu/intel/dmar.c

2021-01-29 Thread Randy Dunlap
on x86_64: ../drivers/iommu/intel/dmar.c: In function 'qi_submit_sync': ../drivers/iommu/intel/dmar.c:1311:3: error: implicit declaration of function 'trace_qi_submit'; did you mean 'ftrace_nmi_exit'? [-Werror=implicit-function-declaration] trace_qi_submit(iommu, desc[i].qw0, desc[i].qw1,

Re: [PATCH v3 2/3] perf/smmuv3: Add a MODULE_SOFTDEP() to indicate dependency on SMMU

2021-01-29 Thread Robin Murphy
On 2021-01-29 15:34, John Garry wrote: On 29/01/2021 15:12, Robin Murphy wrote: On 2021-01-27 11:32, Zhen Lei wrote: The MODULE_SOFTDEP() gives user space a hint of the loading sequence. And when command "modprobe arm_smmuv3_pmu" is executed, the arm_smmu_v3.ko is automatically loaded in adva

Re: [PATCH] x86: Disable CET instrumentation in the kernel

2021-01-29 Thread Josh Poimboeuf
On Fri, Jan 29, 2021 at 06:54:08PM +0200, Nikolay Borisov wrote: > > > On 29.01.21 г. 18:49 ч., Josh Poimboeuf wrote: > > Agreed, stable is a good idea. I think Nikolay saw it with GCC 9. > > > Yes I did, with the default Ubuntu compiler as well as the default gcc-10 > compiler: > > # gcc

Re: [v5 PATCH 04/11] mm: vmscan: remove memcg_shrinker_map_size

2021-01-29 Thread Yang Shi
On Fri, Jan 29, 2021 at 3:22 AM Vlastimil Babka wrote: > > On 1/28/21 10:22 PM, Yang Shi wrote: > >> > @@ -266,12 +265,13 @@ int alloc_shrinker_maps(struct mem_cgroup *memcg) > >> > static int expand_shrinker_maps(int new_id) > >> > { > >> > int size, old_size, ret = 0; > >> > + int ne

Re: [PATCH v18 24/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2021-01-29 Thread Dave Hansen
On 1/27/21 1:25 PM, Yu-cheng Yu wrote: > arch_prctl(ARCH_X86_CET_STATUS, u64 *args) > Get CET feature status. > > The parameter 'args' is a pointer to a user buffer. The kernel returns > the following information: > > *args = shadow stack/IBT status > *(args + 1) = shadow sta

Re: [PATCH] x86: Disable CET instrumentation in the kernel

2021-01-29 Thread Borislav Petkov
On Fri, Jan 29, 2021 at 11:03:31AM -0600, Josh Poimboeuf wrote: > On Fri, Jan 29, 2021 at 06:54:08PM +0200, Nikolay Borisov wrote: > > > > > > On 29.01.21 г. 18:49 ч., Josh Poimboeuf wrote: > > > Agreed, stable is a good idea. I think Nikolay saw it with GCC 9. > > > > > > Yes I did, with the

[PATCH] dmaengine: xilinx_dma: Alloc tx descriptors GFP_NOWAIT

2021-01-29 Thread Richard Fitzgerald
Use GFP_NOWAIT allocation in xilinx_dma_alloc_tx_descriptor(). This is necessary for compatibility with ALSA, which calls dmaengine_prep_dma_cyclic() from an atomic context. Signed-off-by: Richard Fitzgerald --- drivers/dma/xilinx/xilinx_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: general protection fault in tomoyo_socket_sendmsg_permission

2021-01-29 Thread Tetsuo Handa
On 2021/01/30 1:05, Shuah Khan wrote: >> Since "general protection fault in tomoyo_socket_sendmsg_permission" is >> caused by >> unexpectedly resetting ud->tcp_socket to NULL without waiting for tx thread >> to >> terminate, tracing the ordering of events is worth knowing. Even adding >> schedule

IMPORTANT INVESTMENT INFORMATION..6

2021-01-29 Thread Robert Nelson
ATTENTION; IMPORTANT INVESTMENT INFORMATION We have a good investment program going on now. We have $95m USD for Investment in your Country. We use this opportunity to invest you to join the investment program and you will never regret it. Please kindly invest with us and you will be receiving mon

[PATCH 1/3] dt-bindings: remoteproc: qcom: Add Q6V5 Modem PIL binding for IPQ6018

2021-01-29 Thread Gokul Sriram Palanisamy
Add a new modem compatible string for IPQ6018 SoCs Signed-off-by: Gokul Sriram Palanisamy --- Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt b/Documentation/devicetree/

[PATCH 3/3] arm64: dts: ipq6018: Update WCSS PIL driver compatible

2021-01-29 Thread Gokul Sriram Palanisamy
Updated WCSS PIL driver node with IPQ6018 specific compatible to enable SoC specific driver data. Signed-off-by: Gokul Sriram Palanisamy --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm

[PATCH 2/3] remoteproc: qcom: wcss: populate driver data for IPQ6018

2021-01-29 Thread Gokul Sriram Palanisamy
Populate hardcoded param using driver data for IPQ6018 SoCs. Signed-off-by: Gokul Sriram Palanisamy --- drivers/remoteproc/qcom_q6v5_wcss.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c b/drivers/remoteproc/qcom_q6v5

[PATCH 0/3] remoteproc: qcom: q6v5-wcss: Add driver data for IPQ6018

2021-01-29 Thread Gokul Sriram Palanisamy
Q6 based WiFi fw loading is supported across different targets, ex: IPQ8074/QCS404. In order to support different fw name for IPQ6018, populate hardcoded param using compatible and driver data. Gokul Sriram Palanisamy (3): dt-bindings: remoteproc: qcom: Add Q6V5 Modem PIL binding for IPQ6018

Re: [v5 PATCH 02/11] mm: vmscan: consolidate shrinker_maps handling code

2021-01-29 Thread Yang Shi
On Fri, Jan 29, 2021 at 6:34 AM Kirill Tkhai wrote: > > On 28.01.2021 02:33, Yang Shi wrote: > > The shrinker map management is not purely memcg specific, it is at the > > intersection > > between memory cgroup and shrinkers. It's allocation and assignment of a > > structure, > > and the only m

[PATCH 2/3] remoteproc: qcom: wcss: populate driver data for IPQ6018

2021-01-29 Thread Gokul Sriram Palanisamy
Populate hardcoded param using driver data for IPQ6018 SoCs. Signed-off-by: Gokul Sriram Palanisamy --- drivers/remoteproc/qcom_q6v5_wcss.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c b/drivers/remoteproc/qcom_q6v5

[PATCH 0/3] remoteproc: qcom: q6v5-wcss: Add driver data for IPQ6018

2021-01-29 Thread Gokul Sriram Palanisamy
Q6 based WiFi fw loading is supported across different targets, ex: IPQ8074/QCS404. In order to support different fw name for IPQ6018, populate hardcoded param using compatible and driver data. This series depends on [PATCH v8] remoteproc: qcom: q6v5-wcss: Add support for secure pil Gokul Sriram

[PATCH 1/3] dt-bindings: remoteproc: qcom: Add Q6V5 Modem PIL binding for IPQ6018

2021-01-29 Thread Gokul Sriram Palanisamy
Add a new modem compatible string for IPQ6018 SoCs Signed-off-by: Gokul Sriram Palanisamy --- Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt b/Documentation/devicetree/

Re: [PATCH] dt-bindings: Cleanup standard unit properties

2021-01-29 Thread Alexandre Torgue
On 1/28/21 8:45 PM, Rob Herring wrote: Properties with standard unit suffixes already have a type and don't need type definitions. They also default to a single entry, so 'maxItems: 1' can be dropped. adi,ad5758 is an oddball which defined an enum of arrays. While a valid schema, it is simple

[PATCH 3/3] arm64: dts: ipq6018: Update WCSS PIL driver compatible

2021-01-29 Thread Gokul Sriram Palanisamy
Updated WCSS PIL driver node with IPQ6018 specific compatible to enable SoC specific driver data. Signed-off-by: Gokul Sriram Palanisamy --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm

[PATCH 3/5] dt-bindings: nvmem: Add bindings for rmem driver

2021-01-29 Thread Srinivas Kandagatla
From: Nicolas Saenz Julienne Firmware/co-processors might use reserved memory areas in order to pass data stemming from an nvmem device otherwise non accessible to Linux. For example an EEPROM memory only physically accessible to firmware, or data only accessible early at boot time. Introduce th

[PATCH 2/5] nvmem: imx-iim: Use of_device_get_match_data()

2021-01-29 Thread Srinivas Kandagatla
From: Fabio Estevam The retrieval of driver data via of_device_get_match_data() can make the code simpler. Use of_device_get_match_data() to simplify the code. Signed-off-by: Fabio Estevam Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-iim.c | 7 +-- 1 file changed, 1 insertion

[PATCH 1/5] nvmem: core: Fix a resource leak on error in nvmem_add_cells_from_of()

2021-01-29 Thread Srinivas Kandagatla
From: Dan Carpenter This doesn't call of_node_put() on the error path so it leads to a memory leak. Fixes: 0749aa25af82 ("nvmem: core: fix regression in of_nvmem_cell_get()") Signed-off-by: Dan Carpenter Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 1 + 1 file changed, 1 inse

[PATCH 4/5] nvmem: Add driver to expose reserved memory as nvmem

2021-01-29 Thread Srinivas Kandagatla
From: Nicolas Saenz Julienne Firmware/co-processors might use reserved memory areas in order to pass data stemming from an nvmem device otherwise non accessible to Linux. For example an EEPROM memory only physically accessible to firmware, or data only accessible early at boot time. In order to

[PATCH 5/5] nvmem: core: skip child nodes not matching binding

2021-01-29 Thread Srinivas Kandagatla
From: Ahmad Fatoum The nvmem cell binding applies to all eeprom child nodes matching "^.*@[0-9a-f]+$" without taking a compatible into account. Linux drivers, like at24, are even more extensive and assume _all_ at24 eeprom child nodes to be nvmem cells since e888d445ac33 ("nvmem: resolve cells f

Re: [PATCH v2] btrfs: Avoid calling btrfs_get_chunk_map() twice

2021-01-29 Thread Michal Rostecki
On Fri, Jan 29, 2021 at 11:22:48AM -0500, Josef Bacik wrote: > On 1/27/21 8:57 AM, Michal Rostecki wrote: > > From: Michal Rostecki > > > > Before this change, the btrfs_get_io_geometry() function was calling > > btrfs_get_chunk_map() to get the extent mapping, necessary for > > calculating the I

[PATCH 0/5] nvmem: patches (set 1) for 5.12

2021-01-29 Thread Srinivas Kandagatla
Hi Greg, Here are some nvmem patches for 5.12 which includes - adding support to new rmem nvmem provider - a improvement in core to skip invalid node and a fix a leak - patch in imx driver to use of_device_get_match_data Can you please queue them up for 5.12. thanks for you help, srini Ahmad Fa

Re: [v5 PATCH 08/11] mm: vmscan: use per memcg nr_deferred of shrinker

2021-01-29 Thread Yang Shi
On Fri, Jan 29, 2021 at 6:59 AM Kirill Tkhai wrote: > > On 29.01.2021 17:55, Kirill Tkhai wrote: > > On 28.01.2021 02:33, Yang Shi wrote: > >> Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's > >> nr_deferred > >> will be used in the following cases: > >> 1. Non memcg aw

Re: [v5 PATCH 07/11] mm: vmscan: add per memcg shrinker nr_deferred

2021-01-29 Thread Yang Shi
On Fri, Jan 29, 2021 at 5:00 AM Vlastimil Babka wrote: > > On 1/28/21 12:33 AM, Yang Shi wrote: > > Currently the number of deferred objects are per shrinker, but some slabs, > > for example, > > vfs inode/dentry cache are per memcg, this would result in poor isolation > > among memcgs. > > > >

Re: [net-next PATCH v4 01/15] Documentation: ACPI: DSD: Document MDIO PHY

2021-01-29 Thread Andy Shevchenko
On Fri, Jan 29, 2021 at 6:44 PM Rafael J. Wysocki wrote: > On Fri, Jan 29, 2021 at 5:37 PM Rafael J. Wysocki wrote: > > On Fri, Jan 29, 2021 at 7:48 AM Calvin Johnson > > wrote: ... > > It would work, but I would introduce a wrapper around the _ADR > > evaluation, something like: > > > > int a

[RFC v4 1/3] vfio/platform: add support for msi

2021-01-29 Thread Vikas Gupta
MSI support for platform devices. MSI is added as a single 'index' with 'count' as the number of MSI(s) supported by the devices. Signed-off-by: Vikas Gupta --- drivers/vfio/platform/Kconfig | 1 + drivers/vfio/platform/vfio_platform_common.c | 95 ++- drivers/vfio/platfo

[RFC v4 0/3] msi support for platform devices

2021-01-29 Thread Vikas Gupta
This RFC adds support for MSI for platform devices. MSI block is added as an ext irq along with the existing wired interrupt implementation. The patchset exports two caps for MSI and related data to configure MSI source device. Changes from: - v3 to v4: 1) Removed the 'cap' fo

[RFC v4 2/3] vfio/platform: change cleanup order

2021-01-29 Thread Vikas Gupta
In the case of msi, vendor specific msi module may require region access to handle msi cleanup so we need to cleanup region after irq cleanup only. Signed-off-by: Vikas Gupta --- drivers/vfio/platform/vfio_platform_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

Re: [REGRESSION] "ALSA: HDA: Early Forbid of runtime PM" broke my laptop's internal audio

2021-01-29 Thread Michael Catanzaro
On Fri, Jan 29, 2021 at 5:17 pm, Takashi Iwai wrote: --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2217,8 +2217,6 @@ static const struct snd_pci_quirk power_save_denylist[] = { /* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ SND_PCI_QUIRK(0x1043,

Re: dax alignment problem on arm64 (and other achitectures)

2021-01-29 Thread Joao Martins
On 1/29/21 4:32 PM, Pavel Tatashin wrote: > On Fri, Jan 29, 2021 at 9:51 AM Joao Martins > wrote: >> >> Hey Pavel, >> >> On 1/29/21 1:50 PM, Pavel Tatashin wrote: Since we last talked about this the enabling for EFI "Special Purpose" / Soft Reserved Memory has gone upstream and insta

[RFC v4 3/3] vfio: platform: reset: add msi support

2021-01-29 Thread Vikas Gupta
Add msi support for Broadcom FlexRm device. Signed-off-by: Vikas Gupta --- .../platform/reset/vfio_platform_bcmflexrm.c | 72 ++- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c b/drivers/vfio/platform/reset/v

[PATCH] platform/x86: dell-wmi-sysman: fix a NULL pointer dereference

2021-01-29 Thread Mario Limonciello
An upcoming Dell platform is causing a NULL pointer dereference in dell-wmi-sysman initialization. Validate that the input from BIOS matches correct ACPI types and abort module initialization if it fails. This leads to a memory leak that needs to be cleaned up properly. Signed-off-by: Mario Limo

Re: [PATCH V3 1/5] perf/core: Add PERF_SAMPLE_WEIGHT_STRUCT

2021-01-29 Thread Liang, Kan
On 1/28/2021 5:40 PM, kan.li...@linux.intel.com wrote: From: Kan Liang Current PERF_SAMPLE_WEIGHT sample type is very useful to expresses the cost of an action represented by the sample. This allows the profiler to scale the samples to be more informative to the programmer. It could also hel

Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-01-29 Thread Vincent Guittot
Le vendredi 29 janv. 2021 à 11:33:00 (+0100), Vincent Guittot a écrit : > On Thu, 28 Jan 2021 at 16:09, Joel Fernandes wrote: > > > > Hi Vincent, > > > > On Thu, Jan 28, 2021 at 8:57 AM Vincent Guittot > > wrote: > > > > On Mon, Jan 25, 2021 at 03:42:41PM +0100, Vincent Guittot wrote: > > > > > O

  1   2   3   4   5   6   >