[PATCH v3 4/9] platform/surface: aggregator: Add trace points

2020-12-21 Thread Maximilian Luz
Add trace points to the Surface Aggregator subsystem core. These trace points can be used to track packets, requests, and allocations. They are further intended for debugging and testing/validation, specifically in combination with the error injection capabilities introduced in the subsequent

Re: [PATCH RFC v3 1/1] scsi: ufs: Fix ufs power down/on specs violation

2020-12-21 Thread Bjorn Andersson
On Mon 21 Dec 01:51 CST 2020, Ziqi Chen wrote: > As per specs, e.g, JESD220E chapter 7.2, while powering > off/on the ufs device, RST_N signal and REF_CLK signal > should be between VSS(Ground) and VCCQ/VCCQ2. > > To flexibly control device reset line, re-name the function >

[PATCH v3 9/9] platform/surface: Add Surface ACPI Notify driver

2020-12-21 Thread Maximilian Luz
The Surface ACPI Notify (SAN) device provides an ACPI interface to the Surface Aggregator EC, specifically the Surface Serial Hub interface. This interface allows EC requests to be made from ACPI code and can convert a subset of EC events back to ACPI notifications. Specifically, this interface

Re: [PATCH v1] Bluetooth: Set missing suspend task bits

2020-12-21 Thread Dmitry Osipenko
04.12.2020 06:14, Howard Chung пишет: > From: Abhishek Pandit-Subedi > > When suspending, mark SUSPEND_SCAN_ENABLE and SUSPEND_SCAN_DISABLE tasks > correctly when either classic or le scanning is modified. > > Signed-off-by: Abhishek Pandit-Subedi > Signed-off-by: Howard Chung > Reviewed-by:

Re: [PATCH] Kernel: Fixed two bracket problems in fork.c

2020-12-21 Thread Christian Brauner
On Mon, Dec 21, 2020 at 04:05:02PM +0100, Alexander Guril wrote: > This fixes two bracket problems in kernel/fork.c > > Signed-off-by: Alexander Guril > --- Thanks for the patch. Unfortunately, there's no real rationale for the change in the commit message. You probably want to mention that our

Re: [PATCH v2 2/6] dt-bindings: arm: fsl: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

2020-12-21 Thread Jagan Teki
On Mon, Dec 21, 2020 at 7:35 PM Krzysztof Kozlowski wrote: > > On Mon, Dec 21, 2020 at 07:29:22PM +0530, Jagan Teki wrote: > > On Mon, Dec 21, 2020 at 7:16 PM Krzysztof Kozlowski wrote: > > > > > > On Mon, Dec 21, 2020 at 05:01:47PM +0530, Jagan Teki wrote: > > > > i.Core MX8M Mini is an EDIMM

[PATCH v5 01/12] media: uvcvideo: Fix race condition handling events

2020-12-21 Thread Ricardo Ribalda
The control and its data needs to be copied to the workqueue at the same time to avoid half-updates of the events. This is, events reported to userspace were the control id does not match its value. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 2 +-

[PATCH v5 09/12] media: uvcvideo: Implement UVC_QUIRK_PRIVACY_DURING_STREAM

2020-12-21 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 | 57 --

Re: [PATCH v5 2/3] spi: Add SPI_NO_TX/RX support

2020-12-21 Thread Andy Shevchenko
On Mon, Dec 21, 2020 at 4:15 PM Alexandru Ardelean wrote: > > From: Dragos Bogdan > > Transmit/receive only is a valid SPI mode. For example, the MOSI/TX line > might be missing from an ADC while for a DAC the MISO/RX line may be > optional. This patch adds these two new modes: SPI_NO_TX and >

Re: [PATCH v4 1/3] dt-bindings: iio: dac: AD5766 yaml documentation

2020-12-21 Thread Rob Herring
On Fri, Dec 18, 2020 at 07:12:29PM +0200, Cristian Pop wrote: > This adds device tree bindings for the AD5766 DAC. > > Signed-off-by: Cristian Pop > --- > Changelog v4: > - Add range selection > - Reset is GPIO_ACTIVE_LOW > > .../bindings/iio/dac/adi,ad5766.yaml |

[PATCH v5 10/12] media: uvcvideo: Use dev_ printk aliases

2020-12-21 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

Re: [GIT PULL] clk changes for the merge window

2020-12-21 Thread Linus Torvalds
On Sun, Dec 20, 2020 at 5:52 PM Stephen Boyd wrote: > > https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git > tags/clk-for-linus Of 134 non-merge commits, 22 were committed in the last 48 hours. I took this, but I'm somewhat pissed off about this. And the next person who does this

Re: [PATCH 1/2] hwmon: (pmbus) Add a NO_PEC flag to probe chips with faulty CAPABILITY

2020-12-21 Thread Guenter Roeck
On 12/21/20 8:30 AM, Eddie James wrote: > Some PMBus chips don't respond with valid data when reading the > CAPABILITY register. For instance the register may report that the > chip supports PEC when in reality it does not. For such chips, PEC > must not be enabled while probing the chip, so add a

[PATCH v5 08/12] media: uvcvideo: Add Privacy control based on EXT_GPIO

2020-12-21 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

Re: [RFC 13/18] mfd: max77686: Do not enforce (incorrect) interrupt trigger type

2020-12-21 Thread Rob Herring
On Thu, 10 Dec 2020 22:25:29 +0100, Krzysztof Kozlowski wrote: > Interrupt line can be configured on different hardware in different way, > even inverted. Therefore driver should not enforce specific trigger > type - edge falling - but instead rely on Devicetree to configure it. > > The Maxim

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

2020-12-21 Thread Uladzislau Rezki
On Mon, Dec 21, 2020 at 09:18:05AM -0800, Paul E. McKenney wrote: > On Mon, Dec 21, 2020 at 04:38:09PM +0100, Uladzislau Rezki wrote: > > On Wed, Dec 16, 2020 at 03:29:55PM -0800, Paul E. McKenney wrote: > > > On Wed, Dec 16, 2020 at 04:49:59PM +0100, Uladzislau Rezki wrote: > > [ . . . ] > > >

Re: [RFC 15/18] mfd: max77693: Do not enforce (incorrect) interrupt trigger type

2020-12-21 Thread Rob Herring
On Thu, 10 Dec 2020 22:25:31 +0100, Krzysztof Kozlowski wrote: > Interrupt line can be configured on different hardware in different way, > even inverted. Therefore driver should not enforce specific trigger > type - edge falling - but instead rely on Devicetree to configure it. > > The Maxim

drivers/scsi/fnic/vnic_dev.c:332:32: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-12-21 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e37b12e4bb21e7c81732370b0a2b34bd196f380b commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation) date: 4 months ago config:

Re: [GIT PULL] 9p update for 5.11-rc1

2020-12-21 Thread pr-tracker-bot
The pull request you sent on Mon, 21 Dec 2020 10:48:28 +0100: > https://github.com/martinetd/linux tags/9p-for-5.11-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/70990afa34fbac03ade78e2ad0ccd418acecfc04 Thank you! -- Deet-doot-dot, I am a bot.

Re: [git pull] m68knommu changes for v5.11

2020-12-21 Thread pr-tracker-bot
The pull request you sent on Mon, 21 Dec 2020 09:34:22 +1000: > git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu.git > tags/m68knommu-for-v5.11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8552d28e140110fc935b39a6bfaf33c8ce3a1ad5 Thank you! --

Re: [RFC 17/18] mfd: max14577: Do not enforce (incorrect) interrupt trigger type

2020-12-21 Thread Rob Herring
On Thu, 10 Dec 2020 22:25:33 +0100, Krzysztof Kozlowski wrote: > Interrupt line can be configured on different hardware in different way, > even inverted. Therefore driver should not enforce specific trigger > type - edge falling - but instead rely on Devicetree to configure it. > > The Maxim

Re: [RFC PATCH v2 2/2] blk-mq: Lockout tagset iter when freeing rqs

2020-12-21 Thread John Garry
On 21/12/2020 18:09, Bart Van Assche wrote: On 12/21/20 4:06 AM, John Garry wrote: On 18/12/2020 22:43, Bart Van Assche wrote: Does this mean that we do not yet have a full explanation about why the above call stack can be triggered? We understand it, and I'll describe my experiment in

Re: [GIT PULL] clk changes for the merge window

2020-12-21 Thread pr-tracker-bot
The pull request you sent on Sun, 20 Dec 2020 17:52:14 -0800: > https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git > tags/clk-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8653b778e454a7708847aeafe689bce07aeeb94e Thank you! -- Deet-doot-dot,

Re: [resend/standalone PATCH v4] Add auxiliary bus support

2020-12-21 Thread Mark Brown
On Fri, Dec 18, 2020 at 04:58:56PM -0400, Jason Gunthorpe wrote: > On Fri, Dec 18, 2020 at 08:32:11PM +, Mark Brown wrote: > > > Historically people did try to create custom bus types, as I have > > pointed out before there was then pushback that these were duplicating > > the platform bus so

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

2020-12-21 Thread Uladzislau Rezki
On Wed, Dec 16, 2020 at 03:29:55PM -0800, Paul E. McKenney wrote: > On Wed, Dec 16, 2020 at 04:49:59PM +0100, Uladzislau Rezki wrote: > > > Add self tests for checking of RCU-tasks API functionality. > > > It covers: > > > - wait API functions; > > > - invoking/completion

Re: [PATCH 1/2] hwmon: (pmbus) Add a NO_PEC flag to probe chips with faulty CAPABILITY

2020-12-21 Thread Guenter Roeck
On 12/21/20 10:32 AM, Eddie James wrote: > On Mon, 2020-12-21 at 08:54 -0800, Guenter Roeck wrote: >> On 12/21/20 8:30 AM, Eddie James wrote: >>> Some PMBus chips don't respond with valid data when reading the >>> CAPABILITY register. For instance the register may report that the >>> chip supports

Re: [PATCH v7 1/4] dt-bindings: Document the hi3559a clock bindings

2020-12-21 Thread Rob Herring
On Tue, 15 Dec 2020 11:09:44 +, Dongjiu Geng wrote: > Add DT bindings documentation for hi3559a SoC clock. > > Signed-off-by: Dongjiu Geng > --- > .../clock/hisilicon,hi3559av100-clock.yaml| 59 +++ > include/dt-bindings/clock/hi3559av100-clock.h | 165 ++ > 2 files

Re: [PATCH v7 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-12-21 Thread Rob Herring
On Tue, 15 Dec 2020 11:09:46 +, Dongjiu Geng wrote: > The Hiedma Controller v310 Provides eight DMA channels, each > channel can be configured for one-way transfer. The data can > be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This > documentation describes DT bindings of this

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

2020-12-21 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

Re: [PATCH v2] KVM/x86: Move definition of __ex to x86.h

2020-12-21 Thread Uros Bizjak
On Mon, Dec 21, 2020 at 7:19 PM Sean Christopherson wrote: > > On Sun, Dec 20, 2020, Uros Bizjak wrote: > > Merge __kvm_handle_fault_on_reboot with its sole user > > There's also a comment in vmx.c above kvm_cpu_vmxoff() that should be updated. > Alternatively, and probably preferably for me,

[PATCH] genirq: Fix [devm_]irq_alloc_desc returning irq 0

2020-12-21 Thread Hans de Goede
Since commit a85a6c86c25b ("driver core: platform: Clarify that IRQ 0 is invalid"), having a linux-irq with number 0 will trigger a WARN when calling platform_get_irq*() to retrieve that linux-irq. Since [devm_]irq_alloc_desc allocs 1 single irq and since irq 0 is normally not used, it would

Re: [PATCH] driver: staging: count ashmem_range into SLAB_RECLAIMBLE

2020-12-21 Thread Todd Kjos
+Hridya Valsaraju +Suren Baghdasaryan On Thu, Dec 17, 2020 at 11:48 PM Huangzhaoyang wrote: > > From: Zhaoyang Huang > > Add SLAB_RECLAIM_ACCOUNT to ashmem_range cache since it has registered > shrinker, which make memAvailable more presiced. > > Signed-off-by: Zhaoyang Huang Acked-by: Todd

Re: [PATCH v6 2/5] dt-bindings: media: max9286: Document 'maxim,reverse-channel-microvolt'

2020-12-21 Thread Rob Herring
On Wed, Dec 16, 2020 at 07:17:05PM +0200, Laurent Pinchart wrote: > On Wed, Dec 16, 2020 at 07:05:34PM +0200, Laurent Pinchart wrote: > > Hi Jacopo, > > > > Thank you for the patch. > > > > On Tue, Dec 15, 2020 at 06:09:54PM +0100, Jacopo Mondi wrote: > > > Document the

Re: [PATCH v1 1/2] dt-bindings: clock: Add SC7280 GCC clock binding

2020-12-21 Thread Rob Herring
On Wed, Dec 16, 2020 at 12:18:33AM +0530, Taniya Das wrote: > Add device tree bindings for global clock subsystem clock > controller for Qualcomm Technology Inc's SC7280 SoCs. > > Signed-off-by: Taniya Das > --- > .../devicetree/bindings/clock/qcom,gcc-sc7280.yaml | 85 >

Re: [PATCH] block: aoe: Use seq_putc() if possible

2020-12-21 Thread Amey Narkhede
--- Begin Message --- On 20/12/21 04:04PM, Markus Elfring wrote: > > This is a single character that is printed out. Use seq_putc() for > > it to simplify the code. > > How do you think about to reconsider the integration of a previous update > suggestion once more? > > [PATCH 1/3] block-aoe: Use

Re: [PATCH v7 01/16] dt-bindings: dma: Add YAML schemas for dw-axi-dmac

2020-12-21 Thread Rob Herring
On Wed, 16 Dec 2020 10:09:48 +0800, Sia Jee Heng wrote: > YAML schemas Device Tree (DT) binding is the new format for DT to replace > the old format. Introduce YAML schemas DT binding for dw-axi-dmac and > remove the old version. > > Signed-off-by: Sia Jee Heng > --- >

Re: [RFC PATCH 01/13] fs/userfaultfd: fix wrong error code on WP & !VM_MAYWRITE

2020-12-21 Thread Peter Xu
On Tue, Dec 01, 2020 at 01:22:32PM -0800, Mike Kravetz wrote: > On 11/28/20 4:45 PM, Nadav Amit wrote: > > From: Nadav Amit > > > > It is possible to get an EINVAL error instead of EPERM if the following > > test vm_flags have VM_UFFD_WP but do not have VM_MAYWRITE, as "ret" is > > overwritten

Re: [PATCH] dt-bindings: phy: Rename Intel Keem Bay USB PHY bindings

2020-12-21 Thread Rob Herring
On Wed, 16 Dec 2020 09:47:29 +0100, Geert Uytterhoeven wrote: > This is the only file not using the "intel,keembay-*" pattern. > Fortunately the actual compatible value is already following the > standard scheme. > > Fixes: 4086afa2a1627939 ("dt-bindings: phy: Add Intel Keem Bay USB PHY >

Re: [EXT] Re: [PATCH net-next] net: mvpp2: prs: improve ipv4 parse flow

2020-12-21 Thread Jakub Kicinski
On Sun, 20 Dec 2020 11:11:35 + Stefan Chulski wrote: > > RFC patches sent for review only are obviously welcome at any time. > > If I post RFC patches for review only, should I add some prefix or tag for > this? Include RFC in the tag: [RFC net-next] or [PATCH RFC net-next], this way

Re: How can a userspace program tell if the system supports the ACPI S4 state (Suspend-to-Disk)?

2020-12-21 Thread Pavel Machek
On Sat 2020-12-12 01:20:30, Dexuan Cui wrote: > Hi all, > It looks like Linux can hibernate even if the system does not support the ACPI > S4 state, as long as the system can shut down, so "cat /sys/power/state" > always contains "disk", unless we specify the kernel parameter "nohibernate" > or we

Re: [PATCH v2] KVM/x86: Move definition of __ex to x86.h

2020-12-21 Thread Uros Bizjak
On Mon, Dec 21, 2020 at 7:57 PM Uros Bizjak wrote: > > On Mon, Dec 21, 2020 at 7:19 PM Sean Christopherson wrote: > > > > On Sun, Dec 20, 2020, Uros Bizjak wrote: > > > Merge __kvm_handle_fault_on_reboot with its sole user > > > > There's also a comment in vmx.c above kvm_cpu_vmxoff() that

Re: [PATCH AUTOSEL 5.4 08/10] selftests/bpf: Fix array access with signed variable test

2020-12-21 Thread Sasha Levin
On Sun, Dec 20, 2020 at 01:05:19PM +0100, Jean-Philippe Brucker wrote: Hi, On Sat, Dec 19, 2020 at 10:34:55PM -0500, Sasha Levin wrote: From: Jean-Philippe Brucker [ Upstream commit 77ce220c0549dcc3db8226c61c60e83fc59dfafc ] The test fails because of a recent fix to the verifier, even

Re: [PATCH v4 01/11] dt-bindings: usb: convert usb-device.txt to YAML schema

2020-12-21 Thread Rob Herring
On Wed, Dec 16, 2020 at 05:30:02PM +0800, Chunfeng Yun wrote: > Convert usb-device.txt to YAML schema usb-device.yaml > > Signed-off-by: Chunfeng Yun > --- > v4: no changes, update dependent series: > https://patchwork.kernel.org/project/linux-usb/list/?series=399561 > [v6,00/19]

Re: [PATCH v4 02/11] dt-bindings: net: btusb: change reference file name

2020-12-21 Thread Rob Herring
On Wed, 16 Dec 2020 17:30:03 +0800, Chunfeng Yun wrote: > Due to usb-device.txt is converted into usb-device.yaml, > so modify reference file names at the same time. > > Signed-off-by: Chunfeng Yun > --- > v2~v4: no changes > --- > Documentation/devicetree/bindings/net/btusb.txt | 2 +- > 1

Re: [PATCH v4 07/11] dt-bindings: phy: convert MIPI DSI PHY binding to YAML schema

2020-12-21 Thread Rob Herring
On Wed, 16 Dec 2020 17:30:08 +0800, Chunfeng Yun wrote: > Convert MIPI DSI PHY binding to YAML schema mediatek,dsi-phy.yaml > > Cc: Chun-Kuang Hu > Cc: Philipp Zabel > Signed-off-by: Chunfeng Yun > --- > v4: > 1. add maintainer Philipp add support mt8183 suggested by Chun-Kuang > 2. use

Re: [PATCH] x86/cmdline: Disable jump tables for cmdline.c

2020-12-21 Thread Nick Desaulniers
On Wed, Sep 2, 2020 at 7:31 PM Arvind Sankar wrote: > > When CONFIG_RETPOLINE is disabled, Clang uses a jump table for the > switch statement in cmdline_find_option (jump tables are disabled when > CONFIG_RETPOLINE is enabled). This function is called very early in boot > from sme_enable() if

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

2020-12-21 Thread Yu Zhao
On Mon, Dec 21, 2020 at 10:31:57AM -0800, Nadav Amit wrote: > > On Dec 21, 2020, at 9:27 AM, Peter Xu wrote: > > > > Hi, Nadav, > > > > On Sun, Dec 20, 2020 at 12:06:38AM -0800, Nadav Amit wrote: > > > > [...] > > > >> So to correct myself, I think that what I really encountered was actually

Re: [PATCH v3] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-12-21 Thread Alexander Potapenko
On Mon, Dec 21, 2020 at 12:15 PM Vijayanand Jitta wrote: > > > > On 12/18/2020 2:10 PM, Vijayanand Jitta wrote: > > > > > > On 12/17/2020 4:24 PM, Alexander Potapenko wrote: > Can you provide an example of a use case in which the user wants to > use the stack depot of a smaller size

Re: [PATCH v2] KVM/x86: Move definition of __ex to x86.h

2020-12-21 Thread Sean Christopherson
On Mon, Dec 21, 2020, Uros Bizjak wrote: > On Mon, Dec 21, 2020 at 7:19 PM Sean Christopherson wrote: > > > > On Sun, Dec 20, 2020, Uros Bizjak wrote: > > > Merge __kvm_handle_fault_on_reboot with its sole user > > > > There's also a comment in vmx.c above kvm_cpu_vmxoff() that should be > >

Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-21 Thread Vitaly Wool
On Mon, Dec 21, 2020 at 6:24 PM Minchan Kim wrote: > > On Sun, Dec 20, 2020 at 02:22:28AM +0200, Vitaly Wool wrote: > > zsmalloc takes bit spinlock in its _map() callback and releases it > > only in unmap() which is unsafe and leads to zswap complaining > > about scheduling in atomic context. > >

Re: [PATCH] apparmor: fix error check

2020-12-21 Thread Nick Desaulniers
On Sun, Oct 4, 2020 at 7:24 AM wrote: > > From: Tom Rix > > clang static analysis reports this representative problem: > > label.c:1463:16: warning: Assigned value is garbage or undefined > label->hname = name; > ^ Right, so if aa_label_acntsxprint() fails, it

Re: [PATCH v4 09/11] dt-bindings: usb: convert mediatek,mtk-xhci.txt to YAML schema

2020-12-21 Thread Rob Herring
On Wed, Dec 16, 2020 at 05:30:10PM +0800, Chunfeng Yun wrote: > Convert mediatek,mtk-xhci.txt to YAML schema mediatek,mtk-xhci.yaml > > Signed-off-by: Chunfeng Yun > --- > v4: update it according to Rob's suggestion > 1. modify dictionary of phys > 2. fix endentation in

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

2020-12-21 Thread Stephen Kitt
Hi Alex, On Sat, 19 Dec 2020 15:00:00 +0100, "Alejandro Colomar (man-pages)" wrote: > On 12/18/20 5:58 PM, Stephen Kitt wrote: [...] > > +This program executes the command given on its command-line after > > +opening the files listed after the command, > > +and then using > > s/using/uses/

Re: [PATCH v4 10/11] dt-bindings: usb: convert mediatek,mtu3.txt to YAML schema

2020-12-21 Thread Rob Herring
On Wed, Dec 16, 2020 at 05:30:11PM +0800, Chunfeng Yun wrote: > Convert mediatek,mtu3.txt to YAML schema mediatek,mtu3.yaml > > Signed-off-by: Chunfeng Yun > --- > v4: > 1. refer to usb-drd.yaml insstead of usb/generic.txt > the following ones suggested by Rob: > 2. add the number of phys

[PATCH 1/2] mm/hugetlb: change hugetlb_reserve_pages() to type bool

2020-12-21 Thread Mike Kravetz
While reviewing a bug in hugetlb_reserve_pages, it was noticed that all callers ignore the return value. Any failure is considered an ENOMEM error by the callers. Change the function to be of type bool. The function will return true if the reservation was successful, false otherwise. Callers

[PATCH 2/2] hugetlbfs: remove special hugetlbfs_set_page_dirty()

2020-12-21 Thread Mike Kravetz
Matthew Wilcox noticed that hugetlbfs_set_page_dirty always returns 0. Instead, it should return 1 or 0 depending on the previous state of the dirty bit. In addition, the call to compound_head is redundant as it is also performed in calling routine set_page_dirty. Replace the hugetlbfs specific

Re: [PATCH] crypto: x86/crc32c-intel - Don't match some Zhaoxin CPUs

2020-12-21 Thread hpa
On December 20, 2020 6:46:25 PM PST, tonywwang...@zhaoxin.com wrote: >On December 16, 2020 1:56:45 AM GMT+08:00, Eric Biggers > wrote: >>On Tue, Dec 15, 2020 at 10:15:29AM +0800, Tony W Wang-oc wrote: >>> >>> On 15/12/2020 04:41, Eric Biggers wrote: >>> > On Mon, Dec 14, 2020 at 10:28:19AM +0800,

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

2020-12-21 Thread Paul E. McKenney
On Mon, Dec 21, 2020 at 07:45:39PM +0100, Uladzislau Rezki wrote: > On Mon, Dec 21, 2020 at 09:18:05AM -0800, Paul E. McKenney wrote: > > On Mon, Dec 21, 2020 at 04:38:09PM +0100, Uladzislau Rezki wrote: > > > On Wed, Dec 16, 2020 at 03:29:55PM -0800, Paul E. McKenney wrote: > > > > On Wed, Dec

Re: [PATCH 1/3] dt-bindings: usb: mtk-xhci: add a new property for broken streams

2020-12-21 Thread Rob Herring
On Wed, Dec 16, 2020 at 07:51:23PM +0800, Chunfeng Yun wrote: > The 0.96 xHCI controller on some platforms does not support > bulk stream even HCCPARAMS says supporting, due to MaxPSASize > is set a non-zero default value by mistake, so add a new > property "mediatek,broken_streams_quirk" to fix

Re: [RFC PATCH 03/13] selftests/vm/userfaultfd: wake after copy failure

2020-12-21 Thread Peter Xu
On Sat, Nov 28, 2020 at 04:45:38PM -0800, Nadav Amit wrote: > From: Nadav Amit > > When userfaultfd copy-ioctl fails since the PTE already exists, an > -EEXIST error is returned and the faulting thread is not woken. The > current userfaultfd test does not wake the faulting thread in such case. >

Re: [PATCH v3] Compiler Attributes: remove CONFIG_ENABLE_MUST_CHECK

2020-12-21 Thread Miguel Ojeda
On Mon, Dec 21, 2020 at 11:02 AM Guenter Roeck wrote: > > On 12/20/20 10:18 PM, Masahiro Yamada wrote: > With a change like this, I'd have expected that there is a coccinelle > script or similar to ensure that claims made in the commit message > are true. It is only a warning -- the compiler

Re: [PATCH v2] net: neighbor: fix a crash caused by mod zero

2020-12-21 Thread Jakub Kicinski
On Mon, 21 Dec 2020 21:07:44 +0800 weichenchen wrote: > pneigh_enqueue() tries to obtain a random delay by mod > NEIGH_VAR(p, PROXY_DELAY). However, NEIGH_VAR(p, PROXY_DELAY) > migth be zero at that point because someone could write zero > to /proc/sys/net/ipv4/neigh/[device]/proxy_delay after the

Re: [PATCH v2 2/6] dt-bindings: arm: fsl: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

2020-12-21 Thread Jagan Teki
On Mon, Dec 21, 2020 at 7:16 PM Krzysztof Kozlowski wrote: > > On Mon, Dec 21, 2020 at 05:01:47PM +0530, Jagan Teki wrote: > > i.Core MX8M Mini is an EDIMM SoM based on NXP i.MX8M Mini from Engicam. > > > > C.TOUCH 2.0 is a general purpose carrier board with capacitive > > touch interface

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

2020-12-21 Thread Alejandro Colomar (man-pages)
Hi Stephen, On 12/21/20 8:24 PM, Stephen Kitt wrote: > Hi Alex, > > On Sat, 19 Dec 2020 15:00:00 +0100, "Alejandro Colomar (man-pages)" > wrote: >> On 12/18/20 5:58 PM, Stephen Kitt wrote: > [...] >>> +This program executes the command given on its command-line after >>> +opening the files

Re: [PATCH v2 6/6] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini EDIMM2.2 Starter Kit

2020-12-21 Thread Jagan Teki
On Mon, Dec 21, 2020 at 7:36 PM Krzysztof Kozlowski wrote: > > On Mon, Dec 21, 2020 at 05:01:51PM +0530, Jagan Teki wrote: > > Engicam EDIMM2.2 Starter Kit is an EDIMM 2.2 Form Factor Capacitive > > Evaluation Board. > > > > Genaral features: > > - LCD 7" C.Touch > > - microSD slot > > - Ethernet

Re: [PATCH 2/3] usb: xhci-mtk: fix UAS issue by XHCI_BROKEN_STREAMS quirk

2020-12-21 Thread Rob Herring
On Thu, Dec 17, 2020 at 02:23:50PM +0800, Chunfeng Yun wrote: > On Thu, 2020-12-17 at 11:32 +0800, Nicolas Boichat wrote: > > On Thu, Dec 17, 2020 at 10:19 AM Chunfeng Yun > > wrote: > > > > > > On Wed, 2020-12-16 at 20:28 +0800, Nicolas Boichat wrote: > > > > On Wed, Dec 16, 2020 at 7:53 PM

Re: [PATCH] mm/filemap: Fix warning: no previous prototype

2020-12-21 Thread Souptick Joarder
On Fri, Dec 18, 2020 at 11:27 PM Andrew Morton wrote: > > On Fri, 18 Dec 2020 09:39:30 +0530 Souptick Joarder > wrote: > > > On Thu, Dec 17, 2020 at 7:53 AM Matthew Wilcox wrote: > > > > > > On Thu, Dec 17, 2020 at 10:03:11AM +0800, Xiangyang Yu wrote: > > > > Fixed the warning when building

Re: [PATCH] scsi: ufs: fix livelock of ufshcd_clear_ua_wluns

2020-12-21 Thread Jaegeuk Kim
On 12/21, Avri Altman wrote: > > > > > > On 12/21, Avri Altman wrote: > > > > > > When gate_work/ungate_work gets an error during hibern8_enter or > > > > exit, > > > > > > ufshcd_err_handler() > > > > > >ufshcd_scsi_block_requests() > > > > > >ufshcd_reset_and_restore() > > > > > >

Re: [PATCH 2/3] dt-bindings: atmel-sysreg: add microchip,sama7g5-shdwc

2020-12-21 Thread Rob Herring
On Wed, Dec 16, 2020 at 02:41:00PM +0100, Alexandre Belloni wrote: > On 16/12/2020 14:57:32+0200, Claudiu Beznea wrote: > > Add compatible for Microchip SAMA7G5's shutdown controller. > > > > Signed-off-by: Claudiu Beznea > > --- > > Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 5

Re: [PATCH 2/3] dt-bindings: atmel-sysreg: add microchip,sama7g5-shdwc

2020-12-21 Thread Rob Herring
On Wed, 16 Dec 2020 14:57:32 +0200, Claudiu Beznea wrote: > Add compatible for Microchip SAMA7G5's shutdown controller. > > Signed-off-by: Claudiu Beznea > --- > Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > Acked-by:

Re: [PATCH 1/2] mm/hugetlb: change hugetlb_reserve_pages() to type bool

2020-12-21 Thread Matthew Wilcox
On Mon, Dec 21, 2020 at 11:25:41AM -0800, Mike Kravetz wrote: > While reviewing a bug in hugetlb_reserve_pages, it was noticed that all > callers ignore the return value. Any failure is considered an ENOMEM > error by the callers. > > Change the function to be of type bool. The function will

Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: add Webasto SE

2020-12-21 Thread Rob Herring
On Wed, 16 Dec 2020 17:25:34 +0100, Rouven Czerwinski wrote: > Add "webasto" entry for Webasto SE: https://www.webasto.com > > Signed-off-by: Rouven Czerwinski > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Rob Herring

Re: [PATCH v2 3/3] dt-bindings: arm: fsl: add Webasto ccbv2

2020-12-21 Thread Rob Herring
On Wed, 16 Dec 2020 17:25:51 +0100, Rouven Czerwinski wrote: > Add Webasto ccbv2 i.MX6UL based board. > > Signed-off-by: Rouven Czerwinski > --- > Documentation/devicetree/bindings/arm/fsl.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring

[Aspeed,ncsi-rx, v2 0/1] net: ftgmac100: Fix AST2600EVB NCSI RX issue

2020-12-21 Thread Hongwei Zhang
Dear Reviewer, When FTGMAC100 driver is used on other NCSI Ethernet controllers, few controllers have compatible issue. One example is Intel I210 Ethernet controller on AST2600 BMC, with FTGMAC100 driver, it always trigger RXDES0_RX_ERR error, cause NCSI initialization failure, removing

[Aspeed,ncsi-rx, v2 1/1] net: ftgmac100: Fix AST2600 EVB NCSI RX issue

2020-12-21 Thread Hongwei Zhang
When FTGMAC100 driver is used on other NCSI Ethernet controllers, few controllers have compatible issue, removing FTGMAC100_RXDES0_RX_ERR bit from RXDES0_ANY_ERROR can fix the issue. Fixes: 7ee2d5b4d4340353 ("ARM: dts: nuvoton: Add Fii Kudo system") Signed-off-by: Hongwei Zhang ---

Re: [PATCH 2/4] mfd: qca639x: add support for QCA639x powerup sequence

2020-12-21 Thread Dmitry Baryshkov
Hello, On Mon, 21 Dec 2020 at 12:02, Lee Jones wrote: > > On Sun, 20 Dec 2020, Dmitry Baryshkov wrote: > > > Qualcomm QCA639x is a family of WiFi + Bluetooth SoCs, with BT part > > being controlled through the UART and WiFi being present on PCIe > > bus. Both blocks share common power sources.

[PATCH v3] KVM/x86: Move definition of __ex to x86.h

2020-12-21 Thread Uros Bizjak
Merge __kvm_handle_fault_on_reboot with its sole user and move the definition of __ex to a common include to be shared between VMX and SVM. v2: Rebase to the latest kvm/queue. v3: Incorporate changes from review comments. Cc: Paolo Bonzini Cc: Sean Christopherson Signed-off-by: Uros Bizjak

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

2020-12-21 Thread Uladzislau Rezki
On Mon, Dec 21, 2020 at 11:29:06AM -0800, Paul E. McKenney wrote: > On Mon, Dec 21, 2020 at 07:45:39PM +0100, Uladzislau Rezki wrote: > > On Mon, Dec 21, 2020 at 09:18:05AM -0800, Paul E. McKenney wrote: > > > On Mon, Dec 21, 2020 at 04:38:09PM +0100, Uladzislau Rezki wrote: > > > > On Wed, Dec

Re: [PATCH] net: stmmac: dwmac-meson8b: ignore the second clock input

2020-12-21 Thread Thomas Graichen
On Sat, Dec 19, 2020 at 2:52 PM Martin Blumenstingl wrote: > > The dwmac glue registers on Amlogic Meson8b and newer SoCs has two clock > inputs: > - Meson8b and Meson8m2: MPLL2 and MPLL2 (the same parent is wired to > both inputs) > - GXBB, GXL, GXM, AXG, G12A, G12B, SM1: FCLK_DIV2 and MPLL2 >

Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-21 Thread Shakeel Butt
On Mon, Dec 21, 2020 at 11:20 AM Vitaly Wool wrote: > > On Mon, Dec 21, 2020 at 6:24 PM Minchan Kim wrote: > > > > On Sun, Dec 20, 2020 at 02:22:28AM +0200, Vitaly Wool wrote: > > > zsmalloc takes bit spinlock in its _map() callback and releases it > > > only in unmap() which is unsafe and leads

[PATCH 3/3] overlayfs: Report writeback errors on upper

2020-12-21 Thread Vivek Goyal
Currently syncfs() and fsync() seem to be two interfaces which check and return writeback errors on superblock to user space. fsync() should work fine with overlayfs as it relies on underlying filesystem to do the check and return error. For example, if ext4 is on upper filesystem, then

Re: [RFC PATCH 03/13] selftests/vm/userfaultfd: wake after copy failure

2020-12-21 Thread Nadav Amit
> On Dec 21, 2020, at 11:28 AM, Peter Xu wrote: > > On Sat, Nov 28, 2020 at 04:45:38PM -0800, Nadav Amit wrote: >> From: Nadav Amit >> >> When userfaultfd copy-ioctl fails since the PTE already exists, an >> -EEXIST error is returned and the faulting thread is not woken. The >> current

[RFC PATCH 0/3][v3] vfs, overlayfs: Fix syncfs() to return correct errors

2020-12-21 Thread Vivek Goyal
Hi, This is v3 of patches which try to fix syncfs() error handling issues w.r.t overlayfs and other filesystems. Previous version of patches are here. v2: https://lore.kernel.org/linux-fsdevel/20201216233149.39025-1-vgo...@redhat.com/ v1:

[PATCH 1/3] vfs: Do not ignore return code from s_op->sync_fs

2020-12-21 Thread Vivek Goyal
Current implementation of __sync_filesystem() ignores the return code from ->sync_fs(). I am not sure why that's the case. Ignoring ->sync_fs() return code is problematic for overlayfs where it can return error if sync_filesystem() on upper super block failed. That error will simply be lost and

[PATCH 2/3] vfs: Add a super block operation to check for writeback errors

2020-12-21 Thread Vivek Goyal
Right now we check for errors on super block in syncfs(). ret2 = errseq_check_and_advance(>s_wb_err, >f_sb_err); overlayfs does not update sb->s_wb_err and it is tracked on upper filesystem. So provide a superblock operation to check errors so that filesystem can provide override generic method

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

2020-12-21 Thread Peter Xu
On Mon, Dec 21, 2020 at 10:31:57AM -0800, Nadav Amit wrote: > > On Dec 21, 2020, at 9:27 AM, Peter Xu wrote: > > > > Hi, Nadav, > > > > On Sun, Dec 20, 2020 at 12:06:38AM -0800, Nadav Amit wrote: > > > > [...] > > > >> So to correct myself, I think that what I really encountered was actually

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

2020-12-21 Thread Linus Torvalds
On Mon, Dec 21, 2020 at 11:16 AM Yu Zhao wrote: > > Nadav Amit found memory corruptions when running userfaultfd test above. > It seems to me the problem is related to commit 09854ba94c6a ("mm: > do_wp_page() simplification"). Can you please take a look? Thanks. > > TL;DR: it may not safe to make

Re: [PATCH] Smack: Handle io_uring kernel thread privileges.

2020-12-21 Thread Eric W. Biederman
Casey Schaufler writes: > Smack assumes that kernel threads are privileged for smackfs > operations. This was necessary because the credential of the > kernel thread was not related to a user operation. With io_uring > the credential does reflect a user's rights and can be used. Acked-by: "Eric

Re: INFO: task can't die in shrink_inactive_list (2)

2020-12-21 Thread Hugh Dickins
On Mon, 23 Nov 2020, Andrew Morton wrote: > On Fri, 20 Nov 2020 17:55:22 -0800 syzbot > wrote: > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:03430750 Add linux-next specific files for 20201116 > > git tree: linux-next > > console output:

RE: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-21 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Shakeel Butt [mailto:shake...@google.com] > Sent: Tuesday, December 22, 2020 8:50 AM > To: Vitaly Wool > Cc: Minchan Kim ; Mike Galbraith ; LKML > ; linux-mm ; Song Bao Hua > (Barry Song) ; Sebastian Andrzej Siewior > ; NitinGupta ; Sergey Senozhatsky > ;

[PATCH] input: ariel-pwrbutton.c: Remove unused variable ariel_pwrbutton_id_table[]

2020-12-21 Thread Souptick Joarder
Kernel test robot throws below warning -> >> drivers/input/misc/ariel-pwrbutton.c:152:35: warning: unused variable >> 'ariel_pwrbutton_id_table' [-Wunused-const-variable] static const struct spi_device_id ariel_pwrbutton_id_table[] = { ^ 1 warning

Re: [RFC PATCH] ptrace: make ptrace() fail if the tracee changed its pid unexpectedly

2020-12-21 Thread Eric W. Biederman
Oleg Nesterov writes: > On 12/17, Eric W. Biederman wrote: >> >> Oleg Nesterov writes: >> >> > Suppose we have 2 threads, the group-leader L and a sub-theread T, >> > both parked in ptrace_stop(). Debugger tries to resume both threads >> > and does >> > >> >ptrace(PTRACE_CONT, T); >> >

[ANNOUNCE] 5.4.82-rt46

2020-12-21 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 5.4.82-rt46 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v5.4-rt Head SHA1: 2cb0daa9d528e36f026b0c60e7eb881d2282462a Or to build 5.4.82-rt46

[PATCH v5] Add power/gpu_frequency tracepoint.

2020-12-21 Thread Peiyong Lin
Historically there is no common trace event for GPU frequency, in downstream Android each different hardware vendor implements their own way to expose GPU frequency, for example as a debugfs node. This patch standardize it as a common trace event in upstream linux kernel to help the ecosystem

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

2020-12-21 Thread Stephen Kitt
This documents close_range(2) based on information in 278a5fbaed89dacd04e9d052f4594ffd0e0585de, 60997c3d45d9a67daf01c56d805ae4fec37e0bd8, and 582f1fb6b721facf04848d2ca57f34468da1813e. Signed-off-by: Stephen Kitt --- V5: clarification of the open/close_range/execve sequence V4: sort flags

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

2020-12-21 Thread Stephen Kitt
This documents close_range(2) based on information in 278a5fbaed89dacd04e9d052f4594ffd0e0585de, 60997c3d45d9a67daf01c56d805ae4fec37e0bd8, and 582f1fb6b721facf04848d2ca57f34468da1813e. Signed-off-by: Stephen Kitt --- V4: sort flags alphabetically move commit references inside the

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

2020-12-21 Thread Stephen Kitt
Hi Alex, On Mon, 21 Dec 2020 20:33:06 +0100, "Alejandro Colomar (man-pages)" wrote: > On 12/21/20 8:24 PM, Stephen Kitt wrote: > > On Sat, 19 Dec 2020 15:00:00 +0100, "Alejandro Colomar (man-pages)" > > wrote: > >> On 12/18/20 5:58 PM, Stephen Kitt wrote: > > [...] > >>> +This program

RE: [PATCH] scsi: ufs: fix livelock of ufshcd_clear_ua_wluns

2020-12-21 Thread Avri Altman
> > > > > > > In order to avoid it, ufshcd_clear_ua_wluns() can be called per > > > recovery > > > > > > > flows > > > > > > > such as suspend/resume, link_recovery, and error_handler. > > > > > > Not sure that suspend/resume are UAC events? > > > > > > > > > > Could you elaborate a bit? The goal

Re: [PATCH v3 1/2] dt-bindings: arm: Add optional interrupt to smc/hvc SCMI transport

2020-12-21 Thread Rob Herring
On Wed, Dec 16, 2020 at 03:58:01PM -0500, Jim Quinlan wrote: > In normal use of smc/hvc transport in SCMI the message completion is > indicated by the return of the SMC call. This commit provides for an > optional interrupt named "message-serviced" which is used instead to

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

2020-12-21 Thread Yu Zhao
On Mon, Dec 21, 2020 at 11:55:02AM -0800, Linus Torvalds wrote: > On Mon, Dec 21, 2020 at 11:16 AM Yu Zhao wrote: > > > > Nadav Amit found memory corruptions when running userfaultfd test above. > > It seems to me the problem is related to commit 09854ba94c6a ("mm: > > do_wp_page()

  1   2   3   4   5   6   7   8   >