[PATCH 5/6] arm64: dts: qcom: sm8350-mtp: enable UFS nodes

2021-02-04 Thread Vinod Koul
Enabled the UFS node found in SM8350-MTP platform, also add the regulators associated with UFS HC and UFS phy to these nodes. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350-mtp.dts | 21 + 1 file changed, 21 insertions(+) diff --git

Re: [PATCH -next] PCI: endpoint: fix build error, EP NTB driver uses configfs

2021-02-04 Thread Lorenzo Pieralisi
On Thu, Feb 04, 2021 at 07:15:39PM +0530, Kishon Vijay Abraham I wrote: > Hi Lorenzo, > > On 04/02/21 3:28 pm, Lorenzo Pieralisi wrote: > > On Tue, Feb 02, 2021 at 12:12:55PM -0800, Randy Dunlap wrote: > >> The pci-epf-ntb driver uses configfs APIs, so it should depend on > >> CONFIGFS_FS to

Re: [PATCH v3 01/11] docs: ioctl-number.rst: reserve IIO subsystem ioctl() space

2021-02-04 Thread Jonathan Cameron
On Mon, 1 Feb 2021 16:50:55 +0200 Alexandru Ardelean wrote: > Currently, only the 'i' 0x90 ioctl() actually exists and is defined in > 'uapi/linux/iio/events.h'. > > It's the IIO_GET_EVENT_FD_IOCTL, which is used to retrieve and FD for > reading events from an IIO device. > We will want to add

[PATCH 2/2] PCI: Revoke mappings like devmem

2021-02-04 Thread Daniel Vetter
Since 3234ac664a87 ("/dev/mem: Revoke mappings when a driver claims the region") /dev/kmem zaps ptes when the kernel requests exclusive acccess to an iomem region. And with CONFIG_IO_STRICT_DEVMEM, this is the default for all driver uses. Except there's two more ways to access PCI BARs: sysfs and

[PATCH v5 0/3] Introduce SCMI System Power Control driver

2021-02-04 Thread Cristian Marussi
Hi This series, building on top of the recently introduced SCMI System Power Protocol support, adds a new SCMI driver which, registering for SystemPower notifications, acts accordingly to satisfy SCMI plaform system transitions requests like shutdown/reboot both of graceful and forceful kind.

[PATCH v5 2/3] firmware: arm_scmi: add System Power utility macro

2021-02-04 Thread Cristian Marussi
Add a trivial macro to check the kind of SCMI SystemPower request. Signed-off-by: Cristian Marussi --- include/linux/scmi_protocol.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index fb8c8f16a49b..ecc14251a547 100644 ---

[PATCH v5 1/3] firmware: arm_scmi: support only one single SystemPower device

2021-02-04 Thread Cristian Marussi
In order to minimize SCMI platform fw-side complexity, only one platform should be in charge of SCMI SystemPower protocol communications with the OSPM: enforce the existence of one single unique device associated with SystemPower protocol across any possible number of SCMI platforms, and warn if a

[PATCH v5 3/3] firmware: arm_scmi: add SCMI System Power Control driver

2021-02-04 Thread Cristian Marussi
Add an SCMI System Power control driver to handle platform's requests carried by SYSTEM_POWER_STATE_NOTIFIER notifications: such platform requested system-wide power state transitions are handled accordingly, gracefully or forcefully, depending on the notifications' message flags. Graceful

Re: [RFC PATCH v4 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2021-02-04 Thread Jonathan Cameron
On Mon, 1 Feb 2021 22:53:18 -0800 Jyoti Bhayana wrote: > Hi Jonathan, > > I wanted to clarify a few things before I upload the next version of > the patch. Can you please help provide some more details regarding the > following questions? > > 1) You mentioned that > > perhaps we just

Re: [PATCH v2 1/2] s390/kvm: extend kvm_s390_shadow_fault to return entry pointer

2021-02-04 Thread Janosch Frank
On 2/4/21 5:34 PM, Janosch Frank wrote: > On 2/2/21 7:00 PM, Claudio Imbrenda wrote: >> Extend kvm_s390_shadow_fault to return the pointer to the valid leaf >> DAT table entry, or to the invalid entry. >> >> Also return some flags in the lower bits of the address: >> DAT_PROT: indicates that DAT

[PATCH v3 0/3] watchdog: f71808e_wdt: migrate to new kernel API

2021-02-04 Thread Ahmad Fatoum
This series migrates the driver to the new kernel watchdog API and then to the driver model. Main feedback from Guenther on v2 was that I need to split it up to enable review. I have done so by removing the extra refactoring for now and focused on the functional changes described above. The diff

Re: [PATCH] sched: pull tasks when CPU is about to run SCHED_IDLE tasks

2021-02-04 Thread chin
At 2021-02-04 16:01:57, "Vincent Guittot" wrote: >On Tue, 2 Feb 2021 at 08:56, chin wrote: >> >> >> >> >> At 2021-01-13 16:30:14, "Vincent Guittot" wrote: >> >On Wed, 13 Jan 2021 at 04:14, chin wrote: >> >> >> >> >> >> >> >> >> >> At 2021-01-12 16:18:51, "Vincent Guittot" >> >> wrote: >> >>

[PATCH v3 2/3] watchdog: f71808e_wdt: migrate to new kernel watchdog API

2021-02-04 Thread Ahmad Fatoum
Migrating the driver lets us drop the watchdog misc device boilerplate and reduces size by 285 lines. It also brings us support for new functionality like CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED. This incurs a slight backwards-compatibility break, because the new kernel watchdog API doesn't support

[PATCH v3 1/3] watchdog: f71808e_wdt: rename variant-independent identifiers appropriately

2021-02-04 Thread Ahmad Fatoum
Code for the common parts of the driver either uses watchdog_ as prefix for the watchdog API or f71808e_ for everything else. The driver now supports 9 more variants besides the f71808e, so let's rename the common parts to start with fintek_wdt_ instead. This makes code browsing easier, because

[PATCH v3 3/3] watchdog: f71808e_wdt: refactor to platform device/driver pair

2021-02-04 Thread Ahmad Fatoum
Driver so far wasn't ported to the driver model and registered the watchdog device out of the init after probing the I/O ports for a watchdog with correct vendor and device revision. Keep the device detection part at init time, but move watchdog registration to a platform driver probe function.

Re: [GIT PULL] immutable branch for amba changes targeting v5.12-rc1

2021-02-04 Thread Russell King - ARM Linux admin
On Thu, Feb 04, 2021 at 05:56:50PM +0100, Greg Kroah-Hartman wrote: > On Thu, Feb 04, 2021 at 04:52:24PM +, Russell King - ARM Linux admin > wrote: > > On Tue, Feb 02, 2021 at 03:06:05PM +0100, Greg Kroah-Hartman wrote: > > > I'm glad to take this through my char/misc tree, as that's where

[PATCH 0/2] pci sysfs file iomem revoke support

2021-02-04 Thread Daniel Vetter
Hi all, This is a revised version of patch 12 from my series to lock down some follow_pfn vs VM_SPECIAL races: https://lore.kernel.org/dri-devel/cakwvodnsrsntgpeuqjyaotsktp2dr9208y66hqg_h1e2lkf...@mail.gmail.com/ Stephen reported an issue on HAVE_PCI_LEGACY platforms which this patch set tries

[PATCH v2 0/3] phy: Add Support for SM8350 UFS

2021-02-04 Thread Vinod Koul
This series adds support for UFS found in SM8350 SoC. We add binding for UFS phy and new regsiters for QMPv5 followed by UFS phy tables. Vinod Koul (3): dt-bindings: phy: qcom,qmp: Add SM8350 UFS PHY bindings phy: qcom-qmp: Add UFS V5 registers found in SM8350 phy: qcom-qmp: Add support

[PATCH v2 1/3] dt-bindings: phy: qcom,qmp: Add SM8350 UFS PHY bindings

2021-02-04 Thread Vinod Koul
Add the compatible strings for the UFS PHY found on SM8350 SoC. Reviewed-by: Bjorn Andersson Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml

Re: [PATCH 1/3] arm64/ptrace: don't clobber task registers on syscall entry/exit traps

2021-02-04 Thread Dave Martin
On Thu, Feb 04, 2021 at 03:23:34PM +, Will Deacon wrote: > On Mon, Feb 01, 2021 at 11:40:10AM -0800, Andrei Vagin wrote: > > ip/r12 for AArch32 and x7 for AArch64 is used to indicate whether or not > > the stop has been signalled from syscall entry or syscall exit. This > > means that: > > >

[PATCH v16 11/12] powerpc: Use OF alloc and free for FDT

2021-02-04 Thread Lakshmi Ramasubramanian
of_alloc_and_init_fdt() and of_free_fdt() have been defined in drivers/of/kexec.c to allocate and free memory for FDT. Use of_alloc_and_init_fdt() and of_free_fdt() to allocate and initialize the FDT, and to free the FDT respectively. powerpc sets the FDT address in image_loader_data field in

[PATCH v16 12/12] arm64: Enable passing IMA log to next kernel on kexec

2021-02-04 Thread Lakshmi Ramasubramanian
Update CONFIG_KEXEC_FILE to select CONFIG_HAVE_IMA_KEXEC, if CONFIG_IMA is enabled, to indicate that the IMA measurement log information is present in the device tree for ARM64. Co-developed-by: Prakhar Srivastava Signed-off-by: Prakhar Srivastava Signed-off-by: Lakshmi Ramasubramanian ---

Re: [GIT PULL] immutable branch for amba changes targeting v5.12-rc1

2021-02-04 Thread Greg Kroah-Hartman
On Thu, Feb 04, 2021 at 04:52:24PM +, Russell King - ARM Linux admin wrote: > On Tue, Feb 02, 2021 at 03:06:05PM +0100, Greg Kroah-Hartman wrote: > > I'm glad to take this through my char/misc tree, as that's where the > > other coresight changes flow through. So if no one else objects, I

RE: [PATCH v6 05/16] x86/hyperv: allocate output arg pages if required

2021-02-04 Thread Michael Kelley
From: Wei Liu Sent: Wednesday, February 3, 2021 7:04 AM > > When Linux runs as the root partition, it will need to make hypercalls > which return data from the hypervisor. > > Allocate pages for storing results when Linux runs as the root > partition. > > Signed-off-by: Lillian Grassin-Drake

RE: [PATCH v6 06/16] x86/hyperv: extract partition ID from Microsoft Hypervisor if necessary

2021-02-04 Thread Michael Kelley
From: Wei Liu Sent: Wednesday, February 3, 2021 7:04 AM > > We will need the partition ID for executing some hypercalls later. > > Signed-off-by: Lillian Grassin-Drake > Co-Developed-by: Sunil Muthuswamy > Signed-off-by: Wei Liu > --- > v6: > 1. Use u64 status. > > v3: > 1. Make

Re: [PATCH v3 06/15] rpmsg: update rpmsg_chrdev_register_device function

2021-02-04 Thread Mathieu Poirier
mat-patch] > > > > url: > > https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/introduce-a-generic-IOCTL-interface-for-RPMsg-channels-management/20210204-165337 > > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > 61556

Re: [GIT PULL] immutable branch for amba changes targeting v5.12-rc1

2021-02-04 Thread Russell King - ARM Linux admin
On Tue, Feb 02, 2021 at 03:06:05PM +0100, Greg Kroah-Hartman wrote: > I'm glad to take this through my char/misc tree, as that's where the > other coresight changes flow through. So if no one else objects, I will > do so... Greg, did you end up pulling this after all? If not, Uwe produced a v2.

[PATCH v2] scsi: dt-bindings: ufs: Add sm8250, sm8350 compatible strings

2021-02-04 Thread Vinod Koul
Document "qcom,sm8250-ufshc" and "qcom,sm8350-ufshc" compatible string. Use of "qcom,sm8250-ufshc" is already present upstream, so add misiing documentation. "qcom,sm8350-ufshc" is for UFS HC found in SM8350 SoC. Reviewed-by: Bjorn Andersson Signed-off-by: Vinod Koul --- - add Bjorn's ack -

Re: [for-next][PATCH 14/15] tracepoint: Do not fail unregistering a probe due to memory failure

2021-02-04 Thread Steven Rostedt
On Wed, 3 Feb 2021 12:57:24 -0500 (EST) Mathieu Desnoyers wrote: > > @@ -147,14 +154,34 @@ func_add(struct tracepoint_func **funcs, struct > > tracepoint_func *tp_func, > > if (old[nr_probes].func == tp_func->func && > > old[nr_probes].data ==

Re: Kernel version numbers after 4.9.255 and 4.4.255

2021-02-04 Thread Greg Kroah-Hartman
On Thu, Feb 04, 2021 at 04:28:19PM +, David Laight wrote: > From: Jiri Slaby > > Sent: 04 February 2021 11:01 > > > > On 04. 02. 21, 9:51, Greg Kroah-Hartman wrote: > > >> It might work somewhere, but there are a lot of (X * 65536 + Y * 256 + Z) > > >> assumptions all around the world. So

RE: [PATCH v6 02/16] x86/hyperv: detect if Linux is the root partition

2021-02-04 Thread Michael Kelley
From: Wei Liu Sent: Wednesday, February 3, 2021 7:04 AM > > For now we can use the privilege flag to check. Stash the value to be > used later. > > Put in a bunch of defines for future use when we want to have more > fine-grained detection. > > Signed-off-by: Wei Liu > Reviewed-by: Pavel

Re: [PATCH v4 0/5] MFD/ASoC: Add support for Intel Bay Trail boards with WM5102 codec

2021-02-04 Thread Mark Brown
On Thu, Feb 04, 2021 at 03:21:24PM +, Lee Jones wrote: > The default point-of-view is; if a patch was submitted as part of a > set, it's likely that it makes the most sense to merge it as a set. Blocking the whole series is itself not ideal since it means the whole large series keeps on

Re: [PATCH v5 16/16] iommu/hyperv: setup an IO-APIC IRQ remapping domain for root partition

2021-02-04 Thread Wei Liu
On Thu, Feb 04, 2021 at 04:41:47PM +, Michael Kelley wrote: > From: Wei Liu Sent: Wednesday, February 3, 2021 4:47 AM [...] > > > > + > > > > + if (level) > > > > + intr_desc->trigger_mode = > > > > HV_INTERRUPT_TRIGGER_MODE_LEVEL; > > > > + else > > > > +

[PATCH v16 06/12] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

2021-02-04 Thread Lakshmi Ramasubramanian
The functions defined in "arch/powerpc/kexec/ima.c" handle setting up and freeing the resources required to carry over the IMA measurement list from the current kernel to the next kernel across kexec system call. These functions do not have architecture specific code, but are currently limited to

[PATCH v16 08/12] powerpc: Delete unused function delete_fdt_mem_rsv()

2021-02-04 Thread Lakshmi Ramasubramanian
delete_fdt_mem_rsv() defined in "arch/powerpc/kexec/file_load.c" has been renamed to fdt_find_and_del_mem_rsv(), and moved to "drivers/of/kexec.c". Remove delete_fdt_mem_rsv() in "arch/powerpc/kexec/file_load.c". Co-developed-by: Prakhar Srivastava Signed-off-by: Prakhar Srivastava

[PATCH v16 09/12] of: Define functions to allocate and free FDT

2021-02-04 Thread Lakshmi Ramasubramanian
Kernel components that use Flattened Device Tree (FDT) allocate kernel memory and call fdt_open_into() to reorganize the tree into a form suitable for the read-write operations. These operations can be combined into a single function to allocate and initialize the FDT so the different

Re: [PATCH] block: recalculate segment count for multi-segment discard requests correctly

2021-02-04 Thread Laurence Oberman
On Thu, 2021-02-04 at 10:27 +0800, Ming Lei wrote: > On Mon, Feb 01, 2021 at 11:48:50AM -0500, David Jeffery wrote: > > When a stacked block device inserts a request into another block > > device > > using blk_insert_cloned_request, the request's nr_phys_segments > > field gets > > recalculated by

Re: [PATCH V3 1/6] x86_64: move cpu_current_top_of_stack out of TSS

2021-02-04 Thread Borislav Petkov
> Subject: Re: [PATCH V3 1/6] x86_64: move cpu_current_top_of_stack out of TSS The tip tree preferred format for patch subject prefixes is 'subsys/component:', e.g. 'x86/apic:', 'x86/mm/fault:', 'sched/fair:', 'genirq/core:'. Please do not use file names or complete file paths as prefix. 'git log

RE: [PATCH v5 13/16] asm-generic/hyperv: introduce hv_device_id and auxiliary structures

2021-02-04 Thread Michael Kelley
From: Wei Liu Sent: Wednesday, February 3, 2021 6:09 AM > > On Wed, Feb 03, 2021 at 02:49:53PM +0100, Arnd Bergmann wrote: > > On Wed, Feb 3, 2021 at 2:26 PM Wei Liu wrote: > > > On Tue, Feb 02, 2021 at 05:02:48PM +, Wei Liu wrote: > > > > On Tue, Jan 26, 2021 at 01:26:52AM +, Michael

Re: [PATCH 6/7] mm: memcontrol: switch to rstat

2021-02-04 Thread Michal Hocko
On Thu 04-02-21 11:15:06, Johannes Weiner wrote: > Hello Michal, > > On Thu, Feb 04, 2021 at 03:19:17PM +0100, Michal Hocko wrote: > > On Tue 02-02-21 13:47:45, Johannes Weiner wrote: > > > Replace the memory controller's custom hierarchical stats code with > > > the generic rstat infrastructure

Re: [PATCH 4/7] cgroup: rstat: support cgroup1

2021-02-04 Thread Michal Hocko
On Thu 04-02-21 11:01:30, Johannes Weiner wrote: > On Thu, Feb 04, 2021 at 02:39:25PM +0100, Michal Hocko wrote: > > On Tue 02-02-21 13:47:43, Johannes Weiner wrote: > > > Rstat currently only supports the default hierarchy in cgroup2. In > > > order to replace memcg's private stats infrastructure

[PATCH v16 07/12] kexec: Use fdt_appendprop_addrrange() to add ima buffer to FDT

2021-02-04 Thread Lakshmi Ramasubramanian
fdt_appendprop_addrrange() function adds a property, with the given name, to the device tree at the given node offset, and also sets the address and size of the property. This function should be used to add "linux,ima-kexec-buffer" property to the device tree and set the address and size of the

[PATCH v16 10/12] arm64: Use OF alloc and free functions for FDT

2021-02-04 Thread Lakshmi Ramasubramanian
of_alloc_and_init_fdt() and of_free_fdt() have been defined in drivers/of/kexec.c to allocate and free memory for FDT. Use of_alloc_and_init_fdt() and of_free_fdt() to allocate and initialize the FDT, and to free the FDT respectively. Signed-off-by: Lakshmi Ramasubramanian Suggested-by: Rob

Re: [PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-04 Thread Sean Christopherson
On Thu, Feb 04, 2021, Paolo Bonzini wrote: > On 03/02/21 22:46, Sean Christopherson wrote: > > > > diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c > > index dbca1687ae8e..0b6dab6915a3 100644 > > --- a/arch/x86/kvm/vmx/nested.c > > +++ b/arch/x86/kvm/vmx/nested.c > > @@ -2811,7

[PATCH v16 05/12] powerpc: Move ima buffer fields to struct kimage

2021-02-04 Thread Lakshmi Ramasubramanian
The fields ima_buffer_addr and ima_buffer_size in "struct kimage_arch" for powerpc are used to carry forward the IMA measurement list across kexec system call. These fields are not architecture specific, but are currently limited to powerpc. arch_ima_add_kexec_buffer() defined in

[PATCH v16 03/12] arm64: Use common of_kexec_setup_new_fdt()

2021-02-04 Thread Lakshmi Ramasubramanian
From: Rob Herring The code for setting up the /chosen node in the device tree and updating the memory reservation for the next kernel has been moved to of_kexec_setup_new_fdt() defined in "drivers/of/kexec.c". Use the common of_kexec_setup_new_fdt() to setup the device tree and update the

[PATCH v16 02/12] of: Add a common kexec FDT setup function

2021-02-04 Thread Lakshmi Ramasubramanian
From: Rob Herring Both arm64 and powerpc do essentially the same FDT /chosen setup for kexec. The differences are either omissions that arm64 should have or additional properties that will be ignored. The setup code can be combined and shared by both powerpc and arm64. The differences

[PATCH v16 00/12] Carry forward IMA measurement log on kexec on ARM64

2021-02-04 Thread Lakshmi Ramasubramanian
On kexec file load Integrity Measurement Architecture (IMA) subsystem may verify the IMA signature of the kernel and initramfs, and measure it. The command line parameters passed to the kernel in the kexec call may also be measured by IMA. A remote attestation service can verify a TPM quote

[PATCH v16 01/12] powerpc: Rename kexec elfcorehdr_addr to elf_headers_mem

2021-02-04 Thread Lakshmi Ramasubramanian
From: Rob Herring The architecture specific field, elfcorehdr_addr in struct kimage_arch, that holds the address of the buffer in memory for ELF core header for powerpc has a different name than the one used for arm64. This makes it hard to have a common code for setting up the device tree for

[PATCH v2 0/2] KVM: x86: cleanups for MOV from/to DR

2021-02-04 Thread Paolo Bonzini
This is the new version of the "KVM: x86: move kvm_inject_gp up from kvm_set_dr to callers" patch. Paolo Bonzini (2): KVM: x86: reading DR cannot fail KVM: x86: move kvm_inject_gp up from kvm_set_dr to callers arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/kvm_emulate.h | 2 +-

[PATCH v2 2/2] KVM: x86: move kvm_inject_gp up from kvm_set_dr to callers

2021-02-04 Thread Paolo Bonzini
Push the injection of #GP up to the callers, since they can just use kvm_complete_insn_gp and __kvm_set_dr pretty much returns what the callers can pass to kvm_complete_insn_gp. Therefore, rename __kvm_set_dr to kvm_set_dr and drop the kvm_set_dr wrapper. This also allows nested VMX code, which

Re: [PATCH v2 2/4] arm64: kasan: abstract _text and _end to KERNEL_START/END

2021-02-04 Thread Will Deacon
On Thu, Feb 04, 2021 at 10:51:27PM +0800, Lecopzer Chen wrote: > > On Sat, Jan 09, 2021 at 06:32:50PM +0800, Lecopzer Chen wrote: > > > Arm64 provide defined macro for KERNEL_START and KERNEL_END, > > > thus replace them by the abstration instead of using _text and _end. > > > > > >

Re: [RFC][PATCH 2/2] x86: add extra serialization for non-serializing MSRs

2021-02-04 Thread Dave Hansen
... > Reported-by: Jan Kiszka > Cc: x...@kernel.org > Cc: Peter Zijlstra Don't know how I managed to miss it in the first place, but: Signed-off-by: Dave Hansen

[PATCH] carl9170: fix struct alignment conflict

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann Multiple structures in the carl9170 driver have alignment impossible alignment constraints that gcc warns about when building with 'make W=1': drivers/net/wireless/ath/carl9170/fwcmd.h:243:2: warning: alignment 1 of 'union ' is less than 4 [-Wpacked-not-aligned]

[PATCH] scsi: pmcraid: fix 'ioarcb' alignment warning

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann Building with 'make W=1' enables -Wpacked-not-aligned, and this warns about pmcraid because of incompatible alignment constraints for pmcraid_passthrough_ioctl_buffer: drivers/scsi/pmcraid.h:1044:1: warning: alignment 1 of 'struct pmcraid_passthrough_ioctl_buffer' is less

Re: [PATCH v2 1/4] arm64: kasan: don't populate vmalloc area for CONFIG_KASAN_VMALLOC

2021-02-04 Thread Lecopzer Chen
> On Thu, Feb 04, 2021 at 10:46:12PM +0800, Lecopzer Chen wrote: > > > On Sat, Jan 09, 2021 at 06:32:49PM +0800, Lecopzer Chen wrote: > > > > Linux support KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 > > > > ("kasan: support backing vmalloc space with real shadow memory") > > > > > > > > Like

[FIXED] Re: 5:11: in-kernel BTF is malformed

2021-02-04 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 04, 2021 at 10:26:25AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Feb 03, 2021 at 07:10:52PM -0700, Chris Murphy escreveu: > > On Wed, Feb 3, 2021 at 7:05 PM Andrii Nakryiko > > wrote: > > > So it's a bitfield offset breakage that should be fixed in pahole 1.20. > >

Re: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-02-04 Thread Ashish Kalra
Hello Tom, On Thu, Feb 04, 2021 at 10:14:37AM -0600, Tom Lendacky wrote: > On 2/3/21 6:39 PM, Ashish Kalra wrote: > > From: Brijesh Singh > > > > The ioctl is used to retrieve a guest's shared pages list. > > > > ... > > > +int svm_get_shared_pages_list(struct kvm *kvm, > > +

Re: [PATCH v4 2/4] lib: vsprintf: Fix handling of number field widths in vsscanf

2021-02-04 Thread Petr Mladek
On Wed 2021-02-03 21:45:55, Andy Shevchenko wrote: > On Wed, Feb 03, 2021 at 04:50:07PM +, Richard Fitzgerald wrote: > > The existing code attempted to handle numbers by doing a strto[u]l(), > > ignoring the field width, and then repeatedly dividing to extract the > > field out of the full

Re: [PATCH v2 1/2] s390/kvm: extend kvm_s390_shadow_fault to return entry pointer

2021-02-04 Thread Janosch Frank
On 2/2/21 7:00 PM, Claudio Imbrenda wrote: > Extend kvm_s390_shadow_fault to return the pointer to the valid leaf > DAT table entry, or to the invalid entry. > > Also return some flags in the lower bits of the address: > DAT_PROT: indicates that DAT protection applies because of the >

[PATCH] media: platform: sti: make a const array static, makes object smaller

2021-02-04 Thread Colin King
From: Colin Ian King Don't populate the const array bws on the stack but instead it static. Makes the object code smaller by 8 bytes: Before: textdata bss dec hex filename 125044568 0 1707242b0 media/platform/sti/hva/hva-h264.o After: textdata

RE: [PATCH v5 07/16] x86/hyperv: extract partition ID from Microsoft Hypervisor if necessary

2021-02-04 Thread Michael Kelley
From: Wei Liu Sent: Tuesday, February 2, 2021 7:04 AM > > On Tue, Jan 26, 2021 at 12:48:37AM +, Michael Kelley wrote: > > From: Wei Liu Sent: Wednesday, January 20, 2021 4:01 AM > > > > > > We will need the partition ID for executing some hypercalls later. > > > > > > Signed-off-by: Lillian

[PATCH] checkpatch: Don't warn about colon termination in linker scripts

2021-02-04 Thread Chris Down
This check erroneously flags cases like the one in my recent printk enumeration patch[0], where the spaces are syntactic, and `section:' vs. `section :' is syntactically important: ERROR: space prohibited before that ':' (ctx:WxW) #258: FILE: include/asm-generic/vmlinux.lds.h:314: +

Possible deny of service with memfd_create()

2021-02-04 Thread Christian König
Hi Michal, as requested in the other mail thread the following sample code gets my test system down within seconds. The issue is that the memory allocated for the file descriptor is not accounted to the process allocating it, so the OOM killer pics whatever process it things is good but

[PATCH v2] mm: memcontrol: replace the loop with a list_for_each_entry()

2021-02-04 Thread Muchun Song
The rule of list walk has gone since: commit a9d5adeeb4b2 ("mm/memcontrol: allow to uncharge page without using page->lru field") So remove the strange comment and replace the loop with a list_for_each_entry(). There is only one caller of the uncharge_list(). So just fold it into

Re: [PATCH 08/10] clocksource/drivers/hyper-v: Handle sched_clock differences inline

2021-02-04 Thread Wei Liu
On Thu, Feb 04, 2021 at 04:28:38PM +, Michael Kelley wrote: > From: Wei Liu Sent: Monday, February 1, 2021 10:55 AM > > > > On Wed, Jan 27, 2021 at 12:23:43PM -0800, Michael Kelley wrote: > > [...] > > > +/* > > > + * Reference to pv_ops must be inline so objtool > > > + * detection of

[PATCH v2] drm/qxl: do not run release if qxl failed to init

2021-02-04 Thread Tong Zhang
if qxl_device_init() fail, drm device will not be registered, in this case, do not run qxl_drm_release() [5.258534] == [5.258931] BUG: KASAN: user-memory-access in qxl_destroy_monitors_object+0x42/0xa0 [qxl] [5.259388]

RE: [PATCH 10/10] clocksource/drivers/hyper-v: Move handling of STIMER0 interrupts

2021-02-04 Thread Michael Kelley
From: Wei Liu Sent: Monday, February 1, 2021 11:53 AM > > On Wed, Jan 27, 2021 at 12:23:45PM -0800, Michael Kelley wrote: > [...] > > +static int hv_setup_stimer0_irq(void) > > +{ > > + int ret; > > + > > + ret = acpi_register_gsi(NULL, HYPERV_STIMER0_VECTOR, > > +

Re: [PATCH 3/4] mm/gup: add a range variant of unpin_user_pages_dirty_lock()

2021-02-04 Thread Joao Martins
On 2/4/21 11:35 AM, Joao Martins wrote: > On 2/3/21 11:37 PM, John Hubbard wrote: >> On 2/3/21 2:00 PM, Joao Martins wrote: >>> -static inline unsigned int count_ntails(struct page **pages, unsigned long >>> npages) >>> +static inline unsigned int count_ntails(struct page **pages, >>> +

[PATCH] staging: rtl8723bs: remove unused structures

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann Building this with 'make W=1' produces a couple of warnings: rtl8723bs/include/ieee80211.h:730:1: warning: alignment 1 of 'struct ieee80211_assoc_request_frame' is less than 2 [-Wpacked-not-aligned] rtl8723bs/include/ieee80211.h:737:1: warning: alignment 1 of 'struct

[PATCH] brcm80211: fix alignment constraints

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann sturct d11txh contains a ieee80211_rts structure, which is required to have at least two byte alignment, and this conflicts with the __packed attribute: drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h:786:1: warning: alignment 1 of 'struct d11txh' is less than 2

RE: Kernel version numbers after 4.9.255 and 4.4.255

2021-02-04 Thread David Laight
From: Jiri Slaby > Sent: 04 February 2021 11:01 > > On 04. 02. 21, 9:51, Greg Kroah-Hartman wrote: > >> It might work somewhere, but there are a lot of (X * 65536 + Y * 256 + Z) > >> assumptions all around the world. So this doesn't look like a good idea. > > > > Ok, so what happens if we "wrap"?

Re: [PATCH v14 07/11] arm64: kdump: introduce some macroes for crash kernel reservation

2021-02-04 Thread Nicolas Saenz Julienne
On Thu, 2021-02-04 at 17:20 +0100, Nicolas Saenz Julienne wrote: > Hi Chen, > > On Sat, 2021-01-30 at 15:10 +0800, Chen Zhou wrote: > > Introduce macro CRASH_ALIGN for alignment, macro CRASH_ADDR_LOW_MAX > > for upper bound of low crash memory, macro CRASH_ADDR_HIGH_MAX for > > upper bound of

[PATCH] staging: vt665x: fix alignment constraints

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann multiple structures contains a ieee80211_rts structure, which is required to have at least two byte alignment, but are annotated with a __packed attribute to force single-byte alignment: staging/vt6656/rxtx.h:98:1: warning: alignment 1 of 'struct vnt_rts_g' is less than 2

RE: [PATCH 08/10] clocksource/drivers/hyper-v: Handle sched_clock differences inline

2021-02-04 Thread Michael Kelley
From: Wei Liu Sent: Monday, February 1, 2021 10:55 AM > > On Wed, Jan 27, 2021 at 12:23:43PM -0800, Michael Kelley wrote: > [...] > > +/* > > + * Reference to pv_ops must be inline so objtool > > + * detection of noinstr violations can work correctly. > > + */ > > +static __always_inline void

Re: [Ocfs2-devel] [PATCH] ocfs2: Remove unneeded return variable

2021-02-04 Thread Wengang Wang
Actually I think the macro of map_flag() is ugly. Yang may want to fix that first. Thanks, Wengang On 2/3/21 9:12 PM, Joseph Qi wrote: NAK. This was discussed before, please refer: https://oss.oracle.com/pipermail/ocfs2-devel/2020-April/014969.html Thanks, Joseph On 2/4/21 11:12 AM, Yang Li

[PATCH] cwmwl8k: fix alignment constraints

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann sturct mwl8k_dma_data contains a ieee80211_hdr structure, which is required to have at least two byte alignment, and this conflicts with the __packed attribute: vers/net/wireless/marvell/mwl8k.c:811:1: warning: alignment 1 of 'struct mwl8k_dma_data' is less than 2

Re: [PATCH 6/7] mm: memcontrol: switch to rstat

2021-02-04 Thread Johannes Weiner
On Tue, Feb 02, 2021 at 05:47:26PM -0800, Roman Gushchin wrote: > On Tue, Feb 02, 2021 at 01:47:45PM -0500, Johannes Weiner wrote: > > for_each_node(node) { > > struct mem_cgroup_per_node *pn = memcg->nodeinfo[node]; > > + unsigned long stat[NR_VM_NODE_STAT_ITEMS] = {0,

[PATCH] wl3501: fix alignment constraints

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann struct wl3501_80211_tx_hdr contains a ieee80211_hdr structure, which is required to have at least two byte alignment, and this conflicts with the __packed attribute: wireless/wl3501.h:553:1: warning: alignment 1 of 'struct wl3501_80211_tx_hdr' is less than 2

Re: [PATCH v2 1/4] arm64: kasan: don't populate vmalloc area for CONFIG_KASAN_VMALLOC

2021-02-04 Thread Will Deacon
On Thu, Feb 04, 2021 at 10:46:12PM +0800, Lecopzer Chen wrote: > > On Sat, Jan 09, 2021 at 06:32:49PM +0800, Lecopzer Chen wrote: > > > Linux support KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 > > > ("kasan: support backing vmalloc space with real shadow memory") > > > > > > Like how the

[PATCH] can: ucan: fix alignment constraints

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann struct ucan_message_in contains member with 4-byte alignment but is itself marked as unaligned, which triggers a warning: drivers/net/can/usb/ucan.c:249:1: warning: alignment 1 of 'struct ucan_message_in' is less than 4 [-Wpacked-not-aligned] Mark the outer structure to

Re: [PATCH v2 1/7] dt-bindings: usb: convert rockchip,dwc3.txt to yaml

2021-02-04 Thread Johan Jonker
Hi Robin, Thank you for your comments. The old binding txt is not so up to date. The question is now what do we add or not.. On 2/4/21 12:35 PM, Robin Murphy wrote: > On 2021-02-03 16:52, Johan Jonker wrote: >> In the past Rockchip dwc3 usb nodes were manually checked. >> With the conversion of

Re: [PATCH 5.4 103/142] Revert "block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT"

2021-02-04 Thread Greg Kroah-Hartman
On Thu, Feb 04, 2021 at 07:36:18AM -0700, Jens Axboe wrote: > On 2/3/21 4:59 PM, Andres Freund wrote: > > Hi, > > > > On 2021-02-03 15:58:33 -0700, Jens Axboe wrote: > >> On 2/3/21 3:06 PM, Greg Kroah-Hartman wrote: > >>> On Wed, Feb 03, 2021 at 01:28:26PM -0800, Andres Freund wrote: > On

Re: [PATCH v4 4/5] ASoC: Intel: Add DMI quirk table to soc_intel_is_byt_cr()

2021-02-04 Thread Lee Jones
On Thu, 04 Feb 2021, Mark Brown wrote: > On Thu, Feb 04, 2021 at 01:56:16PM +, Lee Jones wrote: > > > > Reviewed-by: Andy Shevchenko > > > Acked-by: Pierre-Louis Bossart > > > Signed-off-by: Hans de Goede > > > Applied, thanks. > > While we we were just having a discussion about what to

[PATCH] sparc32: Preserve clone syscall flags argument for restarts due to signals

2021-02-04 Thread Andreas Larsson
This fixes a bug where a clone syscall that is restarted due to a pending signal is restarted with garbage in the register %o0 that holds the clone flags. This keep the original %i0 of a syscall (as seen from the trap handler) in %l6 rather than %l5. This is done because for clone (and also

Re: [PATCH 1/8] sched/fair: Clean up active balance nr_balance_failed trickery

2021-02-04 Thread Qais Yousef
On 02/03/21 18:42, Valentin Schneider wrote: > >> @@ -9805,9 +9810,6 @@ static int load_balance(int this_cpu, struct rq > >> *this_rq, > >>active_load_balance_cpu_stop, busiest, > >>>active_balance_work); > >>

[PATCH] sparc32: Limit memblock allocation to low memory

2021-02-04 Thread Andreas Larsson
Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use memblocks instead of bootmem, but also made high memory available via memblock allocation which does work together with e.g. phys_to_virt and leads to crashes. This changes back to only low memory being allocatable in the

Re: linux-next: build warning after merge of the drivers-x86 tree

2021-02-04 Thread Andy Shevchenko
On Thu, Feb 04, 2021 at 08:38:40AM +0100, Hans de Goede wrote: > Hi Stephen, Andy, > > On 2/4/21 6:13 AM, Stephen Rothwell wrote: > > Hi all, > > > > After merging the drivers-x86 tree, today's linux-next build (x86_64 > > allmodconfig) produced this warning: > > > >

Re: drivers/platform/surface/surface3-wmi.c:60:14: warning: variable 'status' set but not used

2021-02-04 Thread Maximilian Luz
On 2/4/21 12:36 PM, Hans de Goede wrote: Hi, On 1/4/21 4:24 PM, Maximilian Luz wrote: On 1/4/21 3:52 PM, Hans de Goede wrote: Hi, On 12/29/20 4:58 AM, kernel test robot wrote: Hi Maximilian, FYI, the error/warning still remains. tree:  

Re: [PATCH 06/24] perf daemon: Add config file support

2021-02-04 Thread Jiri Olsa
On Thu, Feb 04, 2021 at 09:58:19AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Feb 04, 2021 at 09:42:35PM +0900, Namhyung Kim escreveu: > > Hi Jiri, > > > > On Sun, Jan 31, 2021 at 8:49 AM Jiri Olsa wrote: > > [SNIP] > > > +#define SESSION_OUTPUT "output" > > > + > > > +/* > > > + *

Re: [PATCH] platform/x86: ideapad-laptop/thinkpad_acpi: mark conflicting symbols static

2021-02-04 Thread Hans de Goede
Hi Arnd, On 2/4/21 4:38 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > Three of the newly added functions are accidently not marked 'static' which > causes a warning when building with W=1 > > drivers/platform/x86/thinkpad_acpi.c:10081:5: warning: no previous prototype > for function

AW: [PATCH v2] mfd: da9063: Support SMBus and I2C mode

2021-02-04 Thread Jonas Mark (BT-FIR/ENG1-Grb)
Hi Adam, > > + if (i2c_check_functionality(i2c->adapter, I2C_FUNC_I2C)) { > > + dev_info(da9063->dev, "I2C mode"); > > + busmode = 0; > > + } else { > > + dev_info(da9063->dev, "SMBus mode"); > > + busmode = 1; > > I think this should be

Re: [PATCH v14 07/11] arm64: kdump: introduce some macroes for crash kernel reservation

2021-02-04 Thread Nicolas Saenz Julienne
Hi Chen, On Sat, 2021-01-30 at 15:10 +0800, Chen Zhou wrote: > Introduce macro CRASH_ALIGN for alignment, macro CRASH_ADDR_LOW_MAX > for upper bound of low crash memory, macro CRASH_ADDR_HIGH_MAX for > upper bound of high crash memory, use macroes instead. > > Besides, keep consistent with x86,

[PATCH v2 2/3] serial: 8250: Add UART_CAP_NOTEMT on PORT_16550A_FSL64

2021-02-04 Thread Eric Tremblay
This port doesn't have an interrupt on TEMT available when using the FIFO mode. Signed-off-by: Eric Tremblay --- drivers/tty/serial/8250/8250_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c

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

2021-02-04 Thread Eric Tremblay
The patch introduce the UART_CAP_NOTEMT capability. The capability indicate that the UART doesn't have an interrupt available on TEMT. In the case where the device does not support it, we calculate the maximum time it could take for the transmitter to empty the shift register. When we get in the

Re: [PATCH v2 1/6] software node: Provide replacement for device_add_properties()

2021-02-04 Thread Greg Kroah-Hartman
On Thu, Feb 04, 2021 at 05:06:53PM +0100, Rafael J. Wysocki wrote: > On Thu, Feb 4, 2021 at 3:17 PM Heikki Krogerus > wrote: > > > > At the moment the function device_del() is calling > > device_remove_properties() unconditionally. That will result into the > > reference count of the software

Re: [PATCH v2] powerpc/uprobes: Validation for prefixed instruction

2021-02-04 Thread Naveen N. Rao
On 2021/02/04 06:38PM, Naveen N. Rao wrote: > On 2021/02/04 04:17PM, Ravi Bangoria wrote: > > Don't allow Uprobe on 2nd word of a prefixed instruction. As per > > ISA 3.1, prefixed instruction should not cross 64-byte boundary. > > So don't allow Uprobe on such prefixed instruction as well. > > >

[PATCH] media: uapi: Correct doc comment in H264 uAPI

2021-02-04 Thread Andrzej Pietrasiewicz
struct v4l2_ctrl_h264_pps members obviously match picture parameter syntax, not sequence parameter syntax. Signed-off-by: Andrzej Pietrasiewicz --- include/uapi/linux/v4l2-controls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/v4l2-controls.h

Re: [PATCH] remoteproc: qcom: fix glink dependencies

2021-02-04 Thread Alex Elder
On 2/4/21 9:40 AM, Arnd Bergmann wrote: From: Arnd Bergmann Building the remoteproc drivers into the kernel while the qcom_glink code is in a loadable module results in a link error: ld.lld: error: undefined symbol: qcom_glink_ssr_notify referenced by vmlinux.o:(glink_subdev_unprepare) Add

Re: [PATCH 6/7] mm: memcontrol: switch to rstat

2021-02-04 Thread Johannes Weiner
Hello Michal, On Thu, Feb 04, 2021 at 03:19:17PM +0100, Michal Hocko wrote: > On Tue 02-02-21 13:47:45, Johannes Weiner wrote: > > Replace the memory controller's custom hierarchical stats code with > > the generic rstat infrastructure provided by the cgroup core. > > > > The current

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