Re: [PATCH] mm: add prototype for __add_to_page_cache_locked()

2020-12-22 Thread Matthew Wilcox
On Tue, Dec 22, 2020 at 03:53:45PM -0800, Andrew Morton wrote: > : A previous attempt to make this function static led to compilation > : errors for a few architectures, because __add_to_page_cache_locked() is > : referred to by BPF code. Yes, but it's wrong, because it's not architecture dependen

Re: [PATCH v2, 02/17] dt-bindings: mediatek: add CLK_MM_DISP_CONFIG control description for mt8192 display

2020-12-22 Thread Yongqiang Niu
On Wed, 2020-12-16 at 23:17 +0800, Chun-Kuang Hu wrote: > Hi, Yongqiang: > > Yongqiang Niu 於 2020年12月12日 週六 下午12:12寫道: > > > > add CLK_MM_DISP_CONFIG control description for mt8192 displa > > display > > > > > Signed-off-by: Yongqiang Niu > > --- > > Documentation/devicetree/bindings/display/

[PATCH v13 01/15] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-22 Thread Tony Krowiak
The vfio_ap device driver registers a group notifier with VFIO when the file descriptor for a VFIO mediated device for a KVM guest is opened to receive notification that the KVM pointer is set (VFIO_GROUP_NOTIFY_SET_KVM event). When the KVM pointer is set, the vfio_ap driver takes the following act

Re: [PATCH v13 6/6] arm64: Add IMA log information in kimage used for kexec

2020-12-22 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > Address and size of the buffer containing the IMA measurement log need > to be passed from the current kernel to the next kernel on kexec. > > Any existing "linux,ima-kexec-buffer" property in the device tree > needs to be removed and its corresponding memory r

SDHCI: problem of RV_BOOT.bin run on pynq

2020-12-22 Thread 徐天宇
When I run the RV_BOOT.bin, which is generated by riscv-pk with linux-5.9.4 as payload, on xilinx pynq-z2, I met the problem below: mmc0: Timeout waiting for hardware cmd interrupt. mmc0: sdhci: SDHCI REGISTER DUMP === mmc0: sdhci: Sys addr: 0x | Version: 0x8901

[PATCH v13 04/15] s390/vfio-ap: use new AP bus interface to search for queue devices

2020-12-22 Thread Tony Krowiak
This patch refactors the vfio_ap device driver to use the AP bus's ap_get_qdev() function to retrieve the vfio_ap_queue struct containing information about a queue that is bound to the vfio_ap device driver. The bus's ap_get_qdev() function retrieves the queue device from a hashtable keyed by APQN.

[PATCH v13 05/15] s390/vfio-ap: manage link between queue struct and matrix mdev

2020-12-22 Thread Tony Krowiak
Let's create links between each queue device bound to the vfio_ap device driver and the matrix mdev to which the queue's APQN is assigned. The idea is to facilitate efficient retrieval of the objects representing the queue devices and matrix mdevs as well as to verify that a queue assigned to a mat

[PATCH v13 08/15] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-12-22 Thread Tony Krowiak
The matrix of adapters and domains configured in a guest's APCB may differ from the matrix of adapters and domains assigned to the matrix mdev, so this patch introduces a sysfs attribute to display the matrix of adapters and domains that are or will be assigned to the APCB of a guest that is or wil

[PATCH v13 06/15] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device

2020-12-22 Thread Tony Krowiak
The current implementation does not allow assignment of an AP adapter or domain to an mdev device if each APQN resulting from the assignment does not reference an AP queue device that is bound to the vfio_ap device driver. This patch allows assignment of AP resources to the matrix mdev as long as t

[PATCH v13 10/15] s390/zcrypt: driver callback to indicate resource in use

2020-12-22 Thread Tony Krowiak
Introduces a new driver callback to prevent a root user from unbinding an AP queue from its device driver if the queue is in use. The callback will be invoked whenever a change to the AP bus's sysfs apmask or aqmask attributes would result in one or more AP queues being removed from its driver. If

[PATCH v13 07/15] s390/vfio-ap: introduce shadow APCB

2020-12-22 Thread Tony Krowiak
The APCB is a field within the CRYCB that provides the AP configuration to a KVM guest. Let's introduce a shadow copy of the KVM guest's APCB and maintain it for the lifespan of the guest. Signed-off-by: Tony Krowiak Reviewed-by: Halil Pasic --- drivers/s390/crypto/vfio_ap_ops.c | 15 ++

[PATCH v13 14/15] s390/vfio-ap: handle AP bus scan completed notification

2020-12-22 Thread Tony Krowiak
Implements the driver callback invoked by the AP bus when the AP bus scan has completed. Since this callback is invoked after binding the newly added devices to their respective device drivers, the vfio_ap driver will attempt to hot plug the adapters, domains and control domains into each guest usi

[PATCH v13 09/15] s390/vfio-ap: allow hot plug/unplug of AP resources using mdev device

2020-12-22 Thread Tony Krowiak
Let's allow adapters, domains and control domains to be hot plugged into and hot unplugged from a KVM guest using a matrix mdev when: * The adapter, domain or control domain is assigned to or unassigned from the matrix mdev * A queue device with an APQN assigned to the matrix mdev is bound to o

[PATCH v13 15/15] s390/vfio-ap: update docs to include dynamic config support

2020-12-22 Thread Tony Krowiak
Update the documentation in vfio-ap.rst to include information about the AP dynamic configuration support (i.e., hot plug of adapters, domains and control domains via the matrix mediated device's sysfs assignment attributes). Signed-off-by: Tony Krowiak --- Documentation/s390/vfio-ap.rst | 383 +

[PATCH v13 13/15] s390/vfio-ap: handle host AP config change notification

2020-12-22 Thread Tony Krowiak
The motivation for config change notification is to enable the vfio_ap device driver to handle hot plug/unplug of AP queues for a KVM guest as a bulk operation. For example, if a new APID is dynamically assigned to the host configuration, then a queue device will be created for each APQN that can b

[PATCH v13 11/15] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-12-22 Thread Tony Krowiak
Let's implement the callback to indicate when an APQN is in use by the vfio_ap device driver. The callback is invoked whenever a change to the apmask or aqmask would result in one or more queue devices being removed from the driver. The vfio_ap device driver will indicate a resource is in use if th

[PATCH v13 12/15] s390/zcrypt: Notify driver on config changed and scan complete callbacks

2020-12-22 Thread Tony Krowiak
This patch intruduces an extension to the ap bus to notify device drivers when the host AP configuration changes - i.e., adapters, domains or control domains are added or removed. To that end, two new callbacks are introduced for AP device drivers: void (*on_config_changed)(struct ap_config_info

[PATCH v13 03/15] s390/vfio-ap: move probe and remove callbacks to vfio_ap_ops.c

2020-12-22 Thread Tony Krowiak
Let's move the probe and remove callbacks into the vfio_ap_ops.c file to keep all code related to managing queues in a single file. This way, all functions related to queue management can be removed from the vfio_ap_private.h header file defining the public interfaces for the vfio_ap device driver.

[PATCH v13 02/15] s390/vfio-ap: No need to disable IRQ after queue reset

2020-12-22 Thread Tony Krowiak
The queues assigned to a matrix mediated device are currently reset when: * The VFIO_DEVICE_RESET ioctl is invoked * The mdev fd is closed by userspace (QEMU) * The mdev is removed from sysfs. Immediately after the reset of a queue, a call is made to disable interrupts for the queue. This is enti

[PATCH v13 00/15] s390/vfio-ap: dynamic configuration support

2020-12-22 Thread Tony Krowiak
Note: Patch 1, s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated does not belong to this series. It has been posted as a separate patch to fix a known problem. It is included here because it will likely pre-req for this series. The current design for AP pass-t

Re: [PATCH v2, 01/17] dt-bindings: mediatek: add description for postmask

2020-12-22 Thread Yongqiang Niu
On Tue, 2020-12-15 at 22:49 +0800, Chun-Kuang Hu wrote: > Hi, Yongqiang: > > Yongqiang Niu 於 2020年12月12日 週六 下午12:12寫道: > > > > add description for postmask > > What is postmask? I google it and find a postmask ECO. So it is postmask ECO? > > Regards, > Chun-Kuang. > it is used control round c

UBSAN: shift-out-of-bounds in sfq_init

2020-12-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a409ed15 Merge tag 'gpio-v5.11-1' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=164f512350 kernel config: https://syzkaller.appspot.com/x/.config?x=f7c39e7211134bc0 das

Re: [PATCH v13 5/6] arm64: Free DTB buffer if fdt_open_into() fails

2020-12-22 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > create_dtb() function allocates memory for the device tree blob (DTB) > and calls fdt_open_into(). If this call fails the memory allocated > for the DTB is not freed before returning from create_dtb() thereby > leaking memory. > > Call vfree() to free the memor

Re: [PATCH v13 4/6] powerpc: Delete unused function delete_fdt_mem_rsv()

2020-12-22 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > 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

Re: [PATCH 2/3] aspeed-video: clear spurious interrupt bits unconditionally

2020-12-22 Thread Joel Stanley
On Tue, 22 Dec 2020 at 19:14, Zev Weiss wrote: > > On Mon, Dec 21, 2020 at 10:47:37PM CST, Joel Stanley wrote: > >On Tue, 15 Dec 2020 at 02:46, Zev Weiss wrote: > >> > >> Instead of testing and conditionally clearing them one by one, we can > >> instead just unconditionally clear them all at once

Re: [PATCH] usb: host: xhci-plat: fix support for XHCI_SKIP_PHY_INIT quirk

2020-12-22 Thread Pali Rohár
On Wednesday 23 December 2020 01:02:43 Peter Chen wrote: > On 20-12-22 14:30:51, Pali Rohár wrote: > > On Tuesday 22 December 2020 10:23:27 Pali Rohár wrote: > > > On Tuesday 22 December 2020 02:14:45 Peter Chen wrote: > > > > On 20-12-21 16:09:03, Pali Rohár wrote: > > > > > Currently init_quirk c

Re: [PATCH] usb: host: xhci-plat: fix support for XHCI_SKIP_PHY_INIT quirk

2020-12-22 Thread Peter Chen
On 20-12-22 14:30:51, Pali Rohár wrote: > On Tuesday 22 December 2020 10:23:27 Pali Rohár wrote: > > On Tuesday 22 December 2020 02:14:45 Peter Chen wrote: > > > On 20-12-21 16:09:03, Pali Rohár wrote: > > > > Currently init_quirk callbacks for xhci platform drivers are called > > > > xhci_plat_set

Re: [PATCH v13 3/6] kexec: Use fdt_appendprop_addrrange() to add ima buffer to FDT

2020-12-22 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > 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

Re: [PATCH] perf stat: Create '--add-default' option to append default list

2020-12-22 Thread Jin, Yao
Hi Arnaldo, On 12/23/2020 12:15 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Dec 22, 2020 at 09:11:31AM +0800, Jin Yao escreveu: The event default list includes the most common events which are widely used by users. But with -e option, the current perf only counts the events assigned by -e optio

Re: [PATCH 2/4] dt-bindings: net: Add bindings for Qualcomm QCA807x

2020-12-22 Thread Andrew Lunn
> + gpio-controller: true > + "#gpio-cells": > +const: 2 > + > + qcom,single-led-1000: > +description: | > + If present, then dedicated 1000 Mbit will light up for 1000Base-T. > + This is a workround for boards with a single LED instead of two. > +type: boolean > + > + qco

[PATCH] hwmon: k10temp: Zen3 Ryzen Desktop CPUs support

2020-12-22 Thread Gabriel Craciunescu
The module has only support for Zen3 server CPUs right now. Add support for Family 0x19, model 0x21 which are Zen3 Ryzen Desktop CPUs. Tested on 5800x, 5900x and 5950x CPUs. Signed-off-by: Gabriel Craciunescu --- drivers/hwmon/k10temp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[PATCH v3 3/3] iommu/vt-d: Disable SVM in the platform when IOMMUs have inconsistencies

2020-12-22 Thread Kyung Min Park
Some IOMMU Capabilities must be consistent for Shared Virtual Memory (SVM). Audit IOMMU Capability/Extended Capabilities and check if IOMMUs have the consistent value for features as below. When the features are not matched among IOMMUs, disable SVMs in the platform during DMAR initialization. Audi

[PATCH v3 1/3] iommu/vt-d: Audit IOMMU Capabilities and add helper functions

2020-12-22 Thread Kyung Min Park
Audit IOMMU Capability/Extended Capability and check if the IOMMUs have the consistent value for features. Report out or scale to the lowest supported when IOMMU features have incompatibility among IOMMUs. Report out features when below features are mismatched: - First Level 5 Level Paging Suppo

[PATCH v3 2/3] iommu/vt-d: Move capability check code to cap_audit files

2020-12-22 Thread Kyung Min Park
Move IOMMU capability check and sanity check code to cap_audit files. Also implement some helper functions for sanity checks. Signed-off-by: Kyung Min Park --- drivers/iommu/intel/cap_audit.c | 20 + drivers/iommu/intel/cap_audit.h | 20 + drivers/iommu/intel/iommu.c | 76 +--

[PATCH v3 0/3] Audit Capability and Extended Capability among IOMMUs

2020-12-22 Thread Kyung Min Park
Modern platforms have more than one IOMMU. Each IOMMU has its own feature set. Some of these features must be consistent among IOMMUs. Otherwise, these differences can lead to improper behavior in the system. On the other hand, for some features, each IOMMU can have different capacity values. So, d

Re: [PATCH v13 2/6] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

2020-12-22 Thread Thiago Jung Bauermann
Actually, I have one more comment on this patch: Lakshmi Ramasubramanian writes: > diff --git a/arch/powerpc/kexec/file_load.c b/arch/powerpc/kexec/file_load.c > index 956bcb2d1ec2..9f3ec0b239ef 100644 > --- a/arch/powerpc/kexec/file_load.c > +++ b/arch/powerpc/kexec/file_load.c > @@ -20,7 +20

[GIT PULL] Smack additional patch for v5.11

2020-12-22 Thread Casey Schaufler
Hello Linus Sorry for the 2nd pull request, but this is a fairly important fix for the privilege handling of smackfs in the face of io_uring. The novel use of kernel threads in io_uring invalidated an long standing assumption regarding the privilege of kernel threads. The fix is simple and safe. I

Re: [PATCH v13 2/6] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

2020-12-22 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > On 12/22/20 11:45 AM, Mimi Zohar wrote: >> On Tue, 2020-12-22 at 10:53 -0800, Lakshmi Ramasubramanian wrote: >>> On 12/22/20 6:26 AM, Mimi Zohar wrote: >>> >>> Hi Mimi, >>> On Sat, 2020-12-19 at 09:57 -0800, Lakshmi Ramasubramanian wrote: > >

Re: [PATCH v2, 2/2] soc: mediatek: mmsys: Use function call for setting the routing registers

2020-12-22 Thread Yongqiang Niu
On Thu, 2020-12-17 at 14:04 +0800, Hsin-Yi Wang wrote: > On Wed, Dec 9, 2020 at 9:32 AM Yongqiang Niu > wrote: > > > > Actually, setting the registers for routing, use multiple 'if-else' for > > different > > routes, but this code would be more and more complicated while we > > support more and

Re: [PATCH v2] power: supply: bq27xxx: Supporrt CHARGE_NOW for bq27z561/bq28z610/bq34z100

2020-12-22 Thread Hermes Zhang
On 12/22/20 7:53 PM, Pali Rohár wrote: > On Tuesday 22 December 2020 19:07:20 Hermes Zhang wrote: >> From: Hermes Zhang >> >> The CHARGE_NOW is map to REG_NAC for all the gauge chips beofre. But for >> some chips (e.g. bq27z561) which doesn't have the REG_NAC, we use REG_RC >> (remaining capacity)

Re: [PATCH v1, 4/5] soc: mediatek: cmdq: add address shift in jump

2020-12-22 Thread Yongqiang Niu
On Wed, 2020-12-09 at 23:16 +0800, Chun-Kuang Hu wrote: > Hi, Yongqiang: > > Nicolas Boichat 於 2020年12月5日 週六 下午3:30寫道: > > > > On Sat, Dec 5, 2020 at 12:16 PM Yongqiang Niu > > wrote: > > > > > > Add address shift when compose jump instruction > > > to compatible with 35bit format. > > > > This

Re: [PATCH v1, 3/5] mailbox: mediatek: add control_by_sw private data

2020-12-22 Thread Yongqiang Niu
On Sat, 2020-12-05 at 15:35 +0800, Nicolas Boichat wrote: > On Sat, Dec 5, 2020 at 12:18 PM Yongqiang Niu > wrote: > > > > add control_by_sw private data > > Can you describe in a bit more details what this means? gce works well without this patch, and it will be removed in next version > > > >

[GIT PULL] chrome-platform changes for v5.11

2020-12-22 Thread Benson Leung
Hi Linus, The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git tags/tag-chrome-platform-for-v5.11 for you to f

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Linus Torvalds
On Tue, Dec 22, 2020 at 3:50 PM Linus Torvalds wrote: > > The rule is that the TLB flush has to be done before the page table > lock is released. I take that back. I guess it's ok as long as the mmap_sem is held for writing. Then the TLB flush can be delayed until just before releasing the mmap_s

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Yu Zhao
On Tue, Dec 22, 2020 at 04:01:45PM -0800, Linus Torvalds wrote: > On Tue, Dec 22, 2020 at 3:50 PM Linus Torvalds > wrote: > > > > See zap_pte_range() for an example of doing it right, even in the > > presence of complexities (ie that has an example of both flushing the > > TLB, and doing the actua

Re: [PATCH v13 2/6] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

2020-12-22 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > 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 s

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

2020-12-22 Thread Jens Axboe
On 12/22/20 4:47 PM, Stephen Rothwell wrote: > Hi all, > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > fs/io_uring.c: In function 'io_uring_get_file': > fs/io_uring.c:9408:6: warning: unused variable 'ret' [-Wunused-variable] > 9408 |

[PATCH] Drivers: hv: vmbus: Add /sys/bus/vmbus/supported_features

2020-12-22 Thread Dexuan Cui
When a Linux VM runs on Hyper-V, if the host toolstack doesn't support hibernation for the VM (this happens on old Hyper-V hosts like Windows Server 2016, or new Hyper-V hosts if the admin or user doesn't declare the hibernation intent for the VM), the VM is discouraged from trying hibernation (bec

Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-22 Thread Vitaly Wool
On Tue, 22 Dec 2020, 22:06 Song Bao Hua (Barry Song), wrote: > > > > > -Original Message- > > From: Vitaly Wool [mailto:vitaly.w...@konsulko.com] > > Sent: Tuesday, December 22, 2020 10:44 PM > > To: Song Bao Hua (Barry Song) > > Cc: Shakeel Butt ; Minchan Kim ; > > Mike > > Galbraith ;

drivers/clocksource/timer-clint.c:72:24: sparse: sparse: cast removes address space '__iomem' of expression

2020-12-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8653b778e454a7708847aeafe689bce07aeeb94e commit: 2ac6795fcc085e8d03649f1bbd0d70aaff612cad clocksource/drivers: Add CLINT timer driver date: 4 months ago config: riscv-randconfig-s031-20201221 (attached as

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Linus Torvalds
On Tue, Dec 22, 2020 at 3:50 PM Linus Torvalds wrote: > > See zap_pte_range() for an example of doing it right, even in the > presence of complexities (ie that has an example of both flushing the > TLB, and doing the actual "free the pages after flush", and it does > the two cases separately). Th

[GIT pull] irq/core for v5.11-rc1

2020-12-22 Thread Thomas Gleixner
Linus, please pull the latest irq/core branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-core-2020-12-23 up to: 64a1b95bb9fe: genirq: Restrict export of irq_to_desc() This is the second attempt after the first one failed miserably and got zapped to unblock the rest

Re: [PATCH] mm: add prototype for __add_to_page_cache_locked()

2020-12-22 Thread Andrew Morton
On Tue, 22 Dec 2020 20:40:00 + Matthew Wilcox wrote: > On Tue, Dec 22, 2020 at 07:49:52PM +0530, Souptick Joarder wrote: > > Otherwise it cause gcc warning: > > ^~~ > > That line is just confusing. I cleaned up the changelog. It is presently : Subject: include/linux/

Re: sparc32: Init process fails to load with generic kmap atomic

2020-12-22 Thread Thomas Gleixner
On Tue, Dec 22 2020 at 18:58, Andreas Larsson wrote: > From as far as I have gotten into hunting down the problem, I get a > failure from load_elf_binary here: > > /* First of all, some simple consistency checks */ > if (memcmp(elf_ex->e_ident, ELFMAG, SELFMAG) != 0) > go

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Linus Torvalds
On Tue, Dec 22, 2020 at 3:39 PM Yu Zhao wrote: > > 2) is the false positive because of what we do, and it's causing the > memory corruption because do_wp_page() tries to make copies of pages > that seem to be RO but may have stale RW tlb entries pending flush. Yeah, that's definitely a different

linux-next: build warning after merge of the block tree

2020-12-22 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (x86_64 allmodconfig) produced this warning: fs/io_uring.c: In function 'io_uring_get_file': fs/io_uring.c:9408:6: warning: unused variable 'ret' [-Wunused-variable] 9408 | int ret; | ^~~ Introduced by commit efc2519f

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Yu Zhao
On Tue, Dec 22, 2020 at 05:02:37PM -0500, Andrea Arcangeli wrote: > On Tue, Dec 22, 2020 at 02:14:41PM -0700, Yu Zhao wrote: > > This works but I don't prefer this option because 1) this is new > > way of making pte_wrprotect safe and 2) it's specific to ufd and > > can't be applied to clear_soft_d

Re: [RFC PATCH 4/4] powerpc: Use common of_kexec_setup_new_fdt()

2020-12-22 Thread Lakshmi Ramasubramanian
On 12/22/20 1:55 PM, Thiago Jung Bauermann wrote: Rob Herring writes: Signed-off-by: Rob Herring --- After the IMA changes, delete_fdt_mem_rsv() can also be removed. arch/powerpc/kexec/file_load.c | 125 ++--- 1 file changed, 6 insertions(+), 119 deletions(-)

Re: [PATCH v4] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-22 Thread Tony Krowiak
On 12/22/20 2:43 PM, Halil Pasic wrote: On Tue, 22 Dec 2020 16:57:06 +0100 Cornelia Huck wrote: On Tue, 22 Dec 2020 10:37:01 -0500 Tony Krowiak wrote: On 12/21/20 11:05 PM, Halil Pasic wrote: On Mon, 21 Dec 2020 13:56:25 -0500 Tony Krowiak wrote: static int vfio_ap_mdev_group_notif

[PATCH v6 10/11] media: uvcvideo: New macro uvc_trace_cont

2020-12-22 Thread Ricardo Ribalda
Remove all the duplicated code around printk(KERN_CONT, with a new macro. Reviewed-by: Laurent Pinchart Suggested-by: Joe Perches Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_driver.c | 57 +++--- drivers/media/usb/uvc/uvcvideo.h | 6 2 files cha

[PATCH v6 09/11] media: uvcvideo: Use dev_ printk aliases

2020-12-22 Thread Ricardo Ribalda
Replace all the uses of printk() and uvc_printk() with its equivalent dev_ alias macros. Modify uvc_warn_once() macro to use dev_info instead printk(). They are more standard across the kernel tree and provide more context about the error. Reviewed-by: Laurent Pinchart Suggested-by: Joe Perches

[PATCH v6 07/11] media: uvcvideo: Add Privacy control based on EXT_GPIO

2020-12-22 Thread Ricardo Ribalda
Add a new control and mapping for Privacy controls connected to UVC_GUID_EXT_GPIO_CONTROLLERs. Reviewed-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_ctrl

[PATCH v6 08/11] media: uvcvideo: Implement UVC_QUIRK_PRIVACY_DURING_STREAM

2020-12-22 Thread Ricardo Ribalda
Some devices can only read the privacy_pin if the device is streaming. This patch implement a quirk for such devices, in order to avoid invalid reads and/or spurious events. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_driver.c | 37 -- drivers/media/

[PATCH v6 11/11] media: uvcvideo: use dev_printk() for uvc_trace()

2020-12-22 Thread Ricardo Ribalda
Instead of calling prink() inside uvc_trace, use dev_printk(), which adds context to the output. Now that we are at it, regroup the strings so the messages can be easily "grepable". Reviewed-by: Laurent Pinchart Suggested-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/u

[PATCH v6 04/11] media: uvcvideo: Add uvc_ctrl_status_event_direct

2020-12-22 Thread Ricardo Ribalda
Provide a code path for events that can be sent without a work-queue, this is, that do not belong to an URB and are not handled in the top half on an irq-handled. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 35 +++- drivers/media/usb/uvc/uvcv

[PATCH v6 05/11] media: uvcvideo: Allow entity-defined get_info and get_cur

2020-12-22 Thread Ricardo Ribalda
Allows controls to get their properties and current value from an entity-defined function instead of via a query to the USB device. Reviewed-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 22 ++ drivers/media/usb/uvc/uvcvideo.h |

[PATCH v6 02/11] media: uvcvideo: Allow extra entities

2020-12-22 Thread Ricardo Ribalda
Increase the size of the id, to avoid collisions with entities implemented by the driver that are not part of the UVC device. Entities exposed by the UVC device use IDs 0-255, extra entities implemented by the driver (such as the GPIO entity) use IDs 256 and up. Reviewed-by: Laurent Pinchart Sig

[PATCH v6 00/11] Show privacy_gpio as a v4l2_ctrl

2020-12-22 Thread Ricardo Ribalda
Some devices can implement a physical switch to disable the input of the camera on demand. Think of it like an elegant privacy sticker. The system can read the status of the privacy switch via a GPIO. The ACPI table maps this GPIO to the USB device via _CRS and _DSD descriptors, so the kernel can

[PATCH v6 03/11] media: uvcvideo: Allow entities with no pads

2020-12-22 Thread Ricardo Ribalda
Avoid an underflow while calculating the number of inputs for entities with zero pads. Reviewed-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_driver.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_driver.

[PATCH v6 06/11] media: uvcvideo: Implement UVC_EXT_GPIO_UNIT

2020-12-22 Thread Ricardo Ribalda
Some devices can implement a physical switch to disable the input of the camera on demand. Think of it like an elegant privacy sticker. The system can read the status of the privacy switch via a GPIO. It is important to know the status of the switch, e.g. to notify the user when the camera will p

[PATCH v6 01/11] media: uvcvideo: Move guid to entity

2020-12-22 Thread Ricardo Ribalda
Instead of having multiple copies of the entity guid on the code, move it to the entity structure. Reviewed-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 30 -- drivers/media/usb/uvc/uvc_driver.c | 25 +++

Re: [PATCHSET] saner elf compat

2020-12-22 Thread Al Viro
On Tue, Dec 22, 2020 at 09:38:35PM +, Al Viro wrote: > On Tue, Dec 22, 2020 at 08:04:31PM +, Al Viro wrote: > > > FWIW, on debian/mips64el (both stretch and buster) the test fails with the > > distro kernels (4.9- and 4.19-based) as well as with 5.10-rc1 and > > 5.10-rc1+that series, all i

[PATCH] locking/lockdep: Use local_irq_save() with call_rcu()

2020-12-22 Thread Waiman Long
The following lockdep splat was hit: [ 560.638354] WARNING: CPU: 79 PID: 27458 at kernel/rcu/tree_plugin.h:1749 call_rcu+0x6dc/0xf00 : [ 560.647761] RIP: 0010:call_rcu+0x6dc/0xf00 [ 560.647763] Code: 0f 8f 29 04 00 00 e8 93 da 1c 00 48 8b 3c 24 57 9d 0f 1f 44 00 00 e9 19 fa ff ff 65 8b

Re: [PATCH v13 1/6] ima: Move arch_ima_add_kexec_buffer() to ima

2020-12-22 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > arch_ima_add_kexec_buffer() defined in "arch/powerpc/kexec/ima.c" > sets up the address and size of the IMA measurement list in > the architecture specific fields in kimage struct. This function does not > have architecture specific code, but is currently limit

Re: [RFC PATCH 1/3] mm: support hugetlb free page reporting

2020-12-22 Thread Mike Kravetz
On 12/22/20 11:59 AM, Alexander Duyck wrote: > On Mon, Dec 21, 2020 at 11:47 PM Liang Li > wrote: >> + >> + if (huge_page_order(h) > MAX_ORDER) >> + budget = HUGEPAGE_REPORTING_CAPACITY; >> + else >> + budget = HUGEPAGE_REPORTING_CAPACITY * 32; > > Wouldn'

Re: [PATCH] KVM: x86: fix shift out of bounds reported by UBSAN

2020-12-22 Thread Paolo Bonzini
On 22/12/20 19:31, David Laight wrote: /* * Use 2ULL to incorporate the necessary +1 in the shift; adding +1 in * the shift count will overflow SHL's max shift of 63 if s=0 and e=63. */ A comment of the desired output value would be more use. I think it is:

[GIT PULL] ext4 updates for v5.11-rc1

2020-12-22 Thread Theodore Y. Ts'o
The following changes since commit 418baf2c28f3473039f2f7377760bd8f6897ae18: Linux 5.10-rc5 (2020-11-22 15:36:08 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus for you to fetch changes up to be993933d2e997fdb7

UBSAN: shift-out-of-bounds in snd_usbmidi_get_ms_info

2020-12-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:8653b778 Merge tag 'clk-for-linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=109531a350 kernel config: https://syzkaller.appspot.com/x/.config?x=98408202fed1f636 das

Re: [PATCH 3/3] ath10k: Set wiphy flag to trigger sta disconnect on hardware restart

2020-12-22 Thread Abhishek Kumar
On Tue, Dec 15, 2020 at 9:24 AM Youghandhar Chintala wrote: > > From: Rakesh Pillai > > Currently after the hardware restart triggered from the driver, > the station interface connection remains intact, since a disconnect > trigger is not sent to userspace. This can lead to a problem in > hardwar

[PATCH v2 2/2] KVM: SVM: Add support for Virtual SPEC_CTRL

2020-12-22 Thread Babu Moger
Newer AMD processors have a feature to virtualize the use of the SPEC_CTRL MSR. A hypervisor may wish to impose speculation controls on guest execution or a guest may want to impose its own speculation controls. Therefore, the processor implements both host and guest versions of SPEC_CTRL. Presence

[PATCH v2 1/2] x86/cpufeatures: Add the Virtual SPEC_CTRL feature

2020-12-22 Thread Babu Moger
Newer AMD processors have a feature to virtualize the use of the SPEC_CTRL MSR. Presence of this feature is indicated via CPUID function 0x800A_EDX[20]: GuestSpecCtrl. When preset, the SPEC_CTRL MSR is automatically virtualized. Signed-off-by: Babu Moger --- arch/x86/include/asm/cpufeatures.

[PATCH v2 0/2] x86: Add the feature Virtual SPEC_CTRL

2020-12-22 Thread Babu Moger
Newer AMD processors have a feature to virtualize the use of the SPEC_CTRL MSR on the guest. The series adds the feature support and enables the feature on SVM. --- v2: NOTE: This is not final yet. Sending out the patches to make sure I captured all the comments correctly. 1. Most of the cha

Re: [RFC PATCH 1/3] mm: support hugetlb free page reporting

2020-12-22 Thread Mike Kravetz
On 12/21/20 11:46 PM, Liang Li wrote: > Free page reporting only supports buddy pages, it can't report the > free pages reserved for hugetlbfs case. On the other hand, hugetlbfs > is a good choice for a system with a huge amount of RAM, because it > can help to reduce the memory management overhead

[PATCH 0/6] wlan-ng: checkpatch.pl cleanup series

2020-12-22 Thread Johannes Czekay
Hi, This patch series cleans up all the checkpatch.pl related warnings in the wlan-ng module. I tried to resolve those issues in a sensible manner. Johannes Czekay (6): wlan-ng: clean up line ending wlan-ng: clean up spinlock_t definition wlan-ng: rename macros wlan-ng: clean up line leng

[PATCH 2/6] wlan-ng: clean up spinlock_t definition

2020-12-22 Thread Johannes Czekay
This patch cleans up a "spinlock_t definition without comment" warning in hfa384x.h. Signed-off-by: Johannes Czekay Co-developed-by: Nicolai Fischer Signed-off-by: Nicolai Fischer --- drivers/staging/wlan-ng/hfa384x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 4/6] wlan-ng: clean up line length

2020-12-22 Thread Johannes Czekay
This patch cleans up all remaining line length related warnings. Signed-off-by: Johannes Czekay Co-developed-by: Nicolai Fischer Signed-off-by: Nicolai Fischer --- drivers/staging/wlan-ng/cfg80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/c

[PATCH 3/6] wlan-ng: rename macros

2020-12-22 Thread Johannes Czekay
This patch renames some of the macros defined in "p80211metadef.h" in order to fix some of the line length related warnings from checkpatch. Since these macros are very long, fitting them within the given line length would be really hard otherwise. Signed-off-by: Johannes Czekay Co-developed-by:

[PATCH 1/6] wlan-ng: clean up line ending

2020-12-22 Thread Johannes Czekay
This patch cleans up all the "Lines should not end with a '('" warnings. Signed-off-by: Johannes Czekay Co-developed-by: Nicolai Fischer Signed-off-by: Nicolai Fischer --- drivers/staging/wlan-ng/cfg80211.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/stagi

[PATCH 5/6] wlan-ng: clean up alignment

2020-12-22 Thread Johannes Czekay
This patch cleans up all the alignment related warnings from checkpatch. Signed-off-by: Johannes Czekay Co-developed-by: Nicolai Fischer Signed-off-by: Nicolai Fischer --- drivers/staging/wlan-ng/cfg80211.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/sta

[PATCH 6/6] wlan-ng: clean up reused macros

2020-12-22 Thread Johannes Czekay
This patch cleans up two "macro argument reuse" warnings by checkpatch. This should also make the code much more readable. Signed-off-by: Johannes Czekay Co-developed-by: Nicolai Fischer Signed-off-by: Nicolai Fischer --- drivers/staging/wlan-ng/p80211metastruct.h | 18 +--- drivers/stagin

[PATCH 4/4] MAINTAINERS: Add entry for Qualcomm QCA807x PHY driver

2020-12-22 Thread Robert Marko
Add maintainers entry for the Qualcomm QCA807x PHY driver. Signed-off-by: Robert Marko Cc: Luka Perkov --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 281de213ef47..a86731f86292 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14546,6 +

[PATCH 3/4] net: phy: Add Qualcomm QCA807x driver

2020-12-22 Thread Robert Marko
This adds driver for the Qualcomm QCA8072 and QCA8075 PHY-s. They are 2 or 5 port IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and 1000BASE-T PHY-s. They feature 2 SerDes, one for PSGMII or QSGMII connection with MAC, while second one is SGMII for connection to MAC or fiber. Both models

[PATCH 2/4] dt-bindings: net: Add bindings for Qualcomm QCA807x

2020-12-22 Thread Robert Marko
Add DT bindings for Qualcomm QCA807x PHYs. Signed-off-by: Robert Marko Cc: Luka Perkov --- .../devicetree/bindings/net/qcom,qca807x.yaml | 88 +++ 1 file changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qcom,qca807x.yaml diff --git a/Documenta

[PATCH 1/4] dt-bindings: net: Add QCA807x PHY

2020-12-22 Thread Robert Marko
Add DT bindings for Qualcomm QCA807x PHY series. Signed-off-by: Robert Marko Cc: Luka Perkov --- include/dt-bindings/net/qcom-qca807x.h | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 include/dt-bindings/net/qcom-qca807x.h diff --git a/include/dt-bindings/

[PATCH 0/4] Add support for Qualcomm QCA807x PHYs

2020-12-22 Thread Robert Marko
This patch series adds support for Qualcomm QCA807x PHYs. These are really common companion PHYs on boards featuring Qualcomm IPQ40xx, IPQ60xx and IPQ807x SoCs. They are 2 or 5 port IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and 1000BASE-T PHY-s. They feature 2 SerDes, one for PSGMII o

Re: [PATCH -next] i2c: busses: use DIV_ROUND_UP macro to do calculation

2020-12-22 Thread Uwe Kleine-König
On Tue, Dec 22, 2020 at 09:31:31PM +0800, Zheng Yongjun wrote: > Don't open-code DIV_ROUND_UP() kernel macro. > > Signed-off-by: Zheng Yongjun LGTM, Acked-by: Uwe Kleine-König Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Sol

Re: [GIT PULL] exfat update for 5.11-rc1

2020-12-22 Thread pr-tracker-bot
The pull request you sent on Tue, 22 Dec 2020 15:58:04 +0900: > git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat.git > tags/exfat-for-5.11-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e9e541ecfee39745da042ff5194b0813bb4c3f9c Thank you! -- Deet-d

Re: [GIT PULL] configfs updates for 5.11

2020-12-22 Thread pr-tracker-bot
The pull request you sent on Tue, 22 Dec 2020 17:03:41 +0100: > git://git.infradead.org/users/hch/configfs.git tags/configfs-5.11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4f06f210673e6841439a0f91fcde64960cdbeb5c Thank you! -- Deet-doot-dot, I am a bot. https:/

Re: [GIT PULL] dma-mapping updates for 5.11

2020-12-22 Thread pr-tracker-bot
The pull request you sent on Tue, 22 Dec 2020 17:01:12 +0100: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/347d81b68b8f7044c9ce3fefa130a736ca916176 Thank you! -- Deet-doot-dot, I am a bot. h

Re: [GIT PULL 2/2] Kconfig updates for v5.11-rc1

2020-12-22 Thread pr-tracker-bot
The pull request you sent on Wed, 23 Dec 2020 01:47:55 +0900: > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > tags/kconfig-v5.11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2762db756f422861c70868bc2d4b9b5d1ce6a59d Thank you! -- Deet-

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