[PATCH v6 01/17] Documentation: PCI: Add specification for the *PCI NTB* function device

2020-09-24 Thread Kishon Vijay Abraham I
Add specification for the *PCI NTB* function device. The endpoint function driver and the host PCI driver should be created based on this specification. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/endpoint/index.rst | 1 + .../PCI/endpoint/pci-ntb-function.rst

Re: arm-smmu 5000000.iommu: Cannot accommodate DMA offset for IOMMU page tables

2020-09-24 Thread Joerg Roedel
Hi Robin, On Thu, Sep 24, 2020 at 10:08:46AM +0100, Robin Murphy wrote: > This should be fixed by > https://lore.kernel.org/linux-iommu/daedc9364a19dc07487e4d07b8768b1e5934abd4.1600700881.git.robin.mur...@arm.com/T/#u > (already in linux-next). Thanks! The question remains why this goes through

[PATCH v6 05/17] PCI: endpoint: Remove unused pci_epf_match_device()

2020-09-24 Thread Kishon Vijay Abraham I
Remove unused pci_epf_match_device() function added in pci-epf-core.c Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 16 include/linux/pci-epf.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/pci/endpoint/pci-epf-core

Re: [PATCH V2 1/4] cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()

2020-09-24 Thread Lukasz Luba
Hi Rafael, On 9/23/20 2:48 PM, Rafael J. Wysocki wrote: On Wed, Sep 16, 2020 at 8:45 AM Viresh Kumar wrote: In order to prepare for lock-less stats update, add support to defer any updates to it until cpufreq_stats_record_transition() is called. This is a bit devoid of details. I guess you

[PATCH v6 06/17] PCI: endpoint: Add support to associate secondary EPC with EPF

2020-09-24 Thread Kishon Vijay Abraham I
In the case of standard endpoint functions, only one endpoint controller (EPC) will be associated with an endpoint function (EPF). However for providing NTB (non transparent bridge) functionality, two EPCs should be associated with a single EPF. Add support to associate secondary EPC with EPF. This

[PATCH v6 03/17] PCI: endpoint: Add helper API to get the 'next' unreserved BAR

2020-09-24 Thread Kishon Vijay Abraham I
Add an API to get the next unreserved BAR starting from a given BAR number that can be used by the endpoint function. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 26 ++ include/linux/pci-epc.h | 2 ++ 2 files changed, 24 in

[PATCH v6 04/17] PCI: endpoint: Make *_free_bar() to return error codes on failure

2020-09-24 Thread Kishon Vijay Abraham I
Modify pci_epc_get_next_free_bar() and pci_epc_get_first_free_bar() to return error values if there are no free BARs available. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/pci-epf-test.c | 2 ++ drivers/pci/endpoint/pci-epc-core.c | 12 ++-- includ

[PATCH v6 08/17] PCI: endpoint: Add pci_epc_ops to map MSI irq

2020-09-24 Thread Kishon Vijay Abraham I
Add pci_epc_ops to map physical address to MSI address and return MSI data. The physical address is an address in the outbound region. This is required to implement doorbell functionality of NTB (non transparent bridge) wherein EPC on either side of the interface (primary and secondary) can directl

[PATCH v6 07/17] PCI: endpoint: Add support in configfs to associate two EPCs with EPF

2020-09-24 Thread Kishon Vijay Abraham I
Now that PCI endpoint core supports to add secondary endpoint controller (EPC) with endpoint function (EPF), Add support in configfs to associate two EPCs with EPF. This creates "primary" and "secondary" directory inside the directory created by users for EPF device. Users have to add a symlink of

[PATCH v6 17/17] Documentation: PCI: Add userguide for PCI endpoint NTB function

2020-09-24 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-ntb function driver and existing host side NTB infrastructure for NTB functionality. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Randy Dunlap --- Documentation/PCI/endpoint/index.rst | 1 + Documentation/PCI/endpoint/pci-ntb-howto.rst

memory leak in ieee80211_check_fast_xmit

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c9c9e6a4 Merge tag 'trace-v5.9-rc5-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1373520990 kernel config: https://syzkaller.appspot.com/x/.config?x=23de0cdbdd5f681b das

[PATCH v6 11/17] PCI: cadence: Implement ->msi_map_irq() ops

2020-09-24 Thread Kishon Vijay Abraham I
Implement ->msi_map_irq() ops in order to map physical address to MSI address and return MSI data. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-ep.c | 50 +++ drivers/pci/endpoint/pci-epc-core.c | 7 ++- include/linux/pci-epc.h

[PATCH v6 12/17] PCI: endpoint: Add EP function driver to provide NTB functionality

2020-09-24 Thread Kishon Vijay Abraham I
Add a new endpoint function driver to provide NTB functionality using multiple PCIe endpoint instances. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/Kconfig | 12 + drivers/pci/endpoint/functions/Makefile |1 + drivers/pci/endpoint/functions/pci-epf-n

Re: [PATCH v9 10/20] gpiolib: cdev: support GPIO_V2_LINE_SET_CONFIG_IOCTL

2020-09-24 Thread Kent Gibson
On Thu, Sep 24, 2020 at 11:26:49AM +0300, Andy Shevchenko wrote: > On Thu, Sep 24, 2020 at 6:24 AM Kent Gibson wrote: > > On Wed, Sep 23, 2020 at 07:15:46PM +0300, Andy Shevchenko wrote: > > > On Wed, Sep 23, 2020 at 7:14 PM Andy Shevchenko > > > wrote: > > > > On Tue, Sep 22, 2020 at 5:35 AM Ken

INFO: rcu detected stall in sys_newlstat

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:eff48dde Merge tag 'trace-v5.9-rc5' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=104fa8ad90 kernel config: https://syzkaller.appspot.com/x/.config?x=af502ec9a451c9fc das

[PATCH v6 13/17] PCI: Add TI J721E device to pci ids

2020-09-24 Thread Kishon Vijay Abraham I
Add TI J721E device to the pci id database. Since this device has a configurable PCIe endpoint, it could be used with different drivers. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 1 - include/linux/pci_ids.h | 1 + 2 files changed, 1 insertion(+), 1 de

[PATCH v6 10/17] PCI: endpoint: Allow user to create sub-directory of 'EPF Device' directory

2020-09-24 Thread Kishon Vijay Abraham I
Documentation/PCI/endpoint/pci-endpoint-cfs.rst explains how a user has to create a directory in-order to create a 'EPF Device' that can be configured/probed by 'EPF Driver'. Allow user to create a sub-directory of 'EPF Device' directory for any function specific attributes that has to be exposed

general protection fault in strncasecmp

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:98477740 Merge branch 'rcu/urgent' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15b4d88790 kernel config: https://syzkaller.appspot.com/x/.config?x=5f4c828c9e3cef97 das

[PATCH v6 15/17] NTB: tool: Enable the NTB/PCIe link on the local or remote side of bridge

2020-09-24 Thread Kishon Vijay Abraham I
Invoke ntb_link_enable() to enable the NTB/PCIe link on the local or remote side of the bridge. Signed-off-by: Kishon Vijay Abraham I --- drivers/ntb/test/ntb_tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/test/ntb_tool.c b/drivers/ntb/test/ntb_tool.c index b7bf3f863d79..

WARNING in ieee80211_rx_list

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:12450081 libbpf: Fix native endian assumption when parsing.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=1236e99b90 kernel config: https://syzkaller.appspot.com/x/.config?x=5ac0d21536db480b dashboar

KMSAN: uninit-value in udf_get_pblock_spar15

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=12152c8190 kernel config: https://syzkaller.appspot.com/x/.config?x=20f149ad694ba

WARNING in __cfg80211_ibss_joined (2)

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:eff48dde Merge tag 'trace-v5.9-rc5' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1665b19b90 kernel config: https://syzkaller.appspot.com/x/.config?x=5f4c828c9e3cef97 das

[PATCH v6 14/17] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-09-24 Thread Kishon Vijay Abraham I
Add support for EPF PCI-Express Non-Transparent Bridge (NTB) device. This driver is platform independent and could be used by any platform which have multiple PCIe endpoint instances configured using the pci-epf-ntb driver. The driver connnects to the standard NTB sub-system interface. The EPF NTB

KASAN: vmalloc-out-of-bounds Read in bpf_trace_run5

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:b10b8ad8 Add linux-next specific files for 20200921 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1371eb1d90 kernel config: https://syzkaller.appspot.com/x/.config?x=3cf0782933432b43 dashboard

WARNING in reiserfs_put_super

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:98477740 Merge branch 'rcu/urgent' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=154f348d90 kernel config: https://syzkaller.appspot.com/x/.config?x=5f4c828c9e3cef97 das

general protection fault in cdev_del (2)

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:98477740 Merge branch 'rcu/urgent' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12641dab90 kernel config: https://syzkaller.appspot.com/x/.config?x=5f4c828c9e3cef97 das

WARNING in sta_info_insert_rcu

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:eff48dde Merge tag 'trace-v5.9-rc5' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17b4e8e390 kernel config: https://syzkaller.appspot.com/x/.config?x=5f4c828c9e3cef97 das

KMSAN: uninit-value in hwsim_cloned_frame_received_nl

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=12a19c0390 kernel config: https://syzkaller.appspot.com/x/.config?x=20f149ad694ba

UBSAN: array-index-out-of-bounds in ieee80211_del_key

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:98477740 Merge branch 'rcu/urgent' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1713087590 kernel config: https://syzkaller.appspot.com/x/.config?x=5f4c828c9e3cef97 das

[PATCH v6 16/17] Documentation: PCI: Add configfs binding documentation for pci-ntb endpoint function

2020-09-24 Thread Kishon Vijay Abraham I
Add binding documentation for pci-ntb endpoint function that helps in adding and configuring pci-ntb endpoint function. Signed-off-by: Kishon Vijay Abraham I --- .../PCI/endpoint/function/binding/pci-ntb.rst | 38 +++ Documentation/PCI/endpoint/index.rst | 1 + 2 files

[PATCH v6 09/17] PCI: endpoint: Add pci_epf_ops for epf drivers to expose function specific attrs

2020-09-24 Thread Kishon Vijay Abraham I
In addition to the attributes that are generic across function drivers documented in Documentation/PCI/endpoint/pci-endpoint-cfs.rst, there could be function specific attributes that has to be exposed by the function driver to be configured by the user. Add ->add_cfs() in pci_epf_ops to be populate

INFO: rcu detected stall in sys_exit_group (6)

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:805c6d3c Merge branch 'fixes' of git://git.kernel.org/pub/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11fef4e390 kernel config: https://syzkaller.appspot.com/x/.config?x=af502ec9a451c9fc das

KMSAN: uninit-value in ieee80211_skb_resize

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=1366df5390 kernel config: https://syzkaller.appspot.com/x/.config?x=20f149ad694ba

Re: [PATCH v3 16/16] ARM: Remove custom IRQ stat accounting

2020-09-24 Thread Marc Zyngier
Hi Guillaume, On Thu, 24 Sep 2020 10:00:09 +0100, Guillaume Tucker wrote: > > Hi Marc, > > On 01/09/2020 15:43, Marc Zyngier wrote: > > Let's switch the arm code to the core accounting, which already > > does everything we need. > > > > Reviewed-by: Valentin Schneider > > Signed-off-by: Marc

Re: [PATCH v3 -next] vdpa: mlx5: change Kconfig depends to fix build errors

2020-09-24 Thread Michael S. Tsirkin
On Fri, Sep 18, 2020 at 11:22:45AM +0300, Leon Romanovsky wrote: > On Thu, Sep 17, 2020 at 07:35:03PM -0700, Randy Dunlap wrote: > > From: Randy Dunlap > > > > drivers/vdpa/mlx5/ uses vhost_iotlb*() interfaces, so add a dependency > > on VHOST to eliminate build errors. > > > > ld: drivers/vdpa/ml

Re: [PATCH v2 0/2] J7200: Add I2C support

2020-09-24 Thread Sekhar Nori
On 23/09/20 9:23 PM, Vignesh Raghavendra wrote: > Add I2C and I2C IO expanders nodes for J7200 > > v2: > Align reg address format with that of file's (s/0x0/0x00) Reviewed-by: Sekhar Nori

Re: [RFC PATCH 02/24] vhost-vdpa: fix vqs leak in vhost_vdpa_open()

2020-09-24 Thread Michael S. Tsirkin
On Thu, Sep 24, 2020 at 11:21:03AM +0800, Jason Wang wrote: > We need to free vqs during the err path after it has been allocated > since vhost won't do that for us. > > Signed-off-by: Jason Wang This is a bugfix too right? I don't see it posted separately ... > --- > drivers/vhost/vdpa.c | 11

Re: [RFC PATCH V3 12/21] mmc: sdhci: UHS-II support, add hooks for additional operations

2020-09-24 Thread AKASHI Takahiro
Adrian, This is, hopefully, my last reply to your comments on this patch#12. Regarding _request() and _send_command() (and more), On Fri, Aug 21, 2020 at 05:08:32PM +0300, Adrian Hunter wrote: > On 10/07/20 2:10 pm, Ben Chuang wrote: > > From: Ben Chuang > > > > In this commit, UHS-II related

Re: [PATCH 12/24] getgrent_r.3: Use sizeof() to get buffer size (instead of hardcoding macro name)

2020-09-24 Thread Alejandro Colomar
Hi, On 2020-09-23 22:35, Michael Kerrisk (man-pages) wrote: On 9/15/20 12:03 PM, Stefan Puiu wrote: Hi, On Fri, Sep 11, 2020 at 6:28 PM Alejandro Colomar wrote: Hi Stefan, On 2020-09-11 16:35, Stefan Puiu wrote: > Hi, > > On Fri, Sep 11, 2020 at 12:15 AM Alejandro Colomar > wrote:

Re: arm-smmu 5000000.iommu: Cannot accommodate DMA offset for IOMMU page tables

2020-09-24 Thread Robin Murphy
On 2020-09-24 10:25, Joerg Roedel wrote: Hi Robin, On Thu, Sep 24, 2020 at 10:08:46AM +0100, Robin Murphy wrote: This should be fixed by https://lore.kernel.org/linux-iommu/daedc9364a19dc07487e4d07b8768b1e5934abd4.1600700881.git.robin.mur...@arm.com/T/#u (already in linux-next). Thanks! The

Re: [PATCH] mmc: rtsx: Add SD Express mode support for RTS5261

2020-09-24 Thread kernel test robot
to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/rui_feng-realsil-com-cn/mmc-rtsx-Add-SD-Express-mode-support-for-RTS5261/20200924-154122 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/cha

WARNING: filesystem loop3 was created with 512 inodes, the real maximum is 511, mounting anyway

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:98477740 Merge branch 'rcu/urgent' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15964ec390 kernel config: https://syzkaller.appspot.com/x/.config?x=6f192552d75898a1 das

KASAN: use-after-free Write in afs_deactivate_cell

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e6499702 Add linux-next specific files for 20200922 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=129f3cc390 kernel config: https://syzkaller.appspot.com/x/.config?x=fe45fda2f2c0a56a dashboard

Re: [PATCH RFC 0/4] mm: place pages to the freelist tail when onling and undoing isolation

2020-09-24 Thread Mel Gorman
On Wed, Sep 23, 2020 at 05:26:06PM +0200, David Hildenbrand wrote: > >>> ???On 2020-09-16 20:34, David Hildenbrand wrote: > When adding separate memory blocks via add_memory*() and onlining them > immediately, the metadata (especially the memmap) of the next block will > be > p

KASAN: user-memory-access Read in vdso_fault

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:eb5f95f1 Merge tag 's390-5.9-6' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1077ecc390 kernel config: https://syzkaller.appspot.com/x/.config?x=cd992d74d6c7e62 dash

Re: [PATCH 1/7] efi: pstore: disentangle from deprecated efivars module

2020-09-24 Thread Ard Biesheuvel
On Wed, 23 Sep 2020 at 23:02, Kees Cook wrote: > > On Wed, Sep 23, 2020 at 08:43:21PM +0200, Ard Biesheuvel wrote: > > On Wed, 23 Sep 2020 at 20:41, Kees Cook wrote: > > > > > > On Wed, Sep 23, 2020 at 06:13:58PM +0200, Ard Biesheuvel wrote: > > > > The EFI pstore implementation relies on the 'ef

Re: [RFC PATCH V3 12/21] mmc: sdhci: UHS-II support, add hooks for additional operations

2020-09-24 Thread AKASHI Takahiro
Ben, On Fri, Sep 18, 2020 at 06:27:01PM +0800, Ben Chuang wrote: > On Fri, Sep 18, 2020 at 9:15 AM AKASHI Takahiro > wrote: > > > > Ben, > > > > On Thu, Sep 17, 2020 at 06:12:27PM +0800, Ben Chuang wrote: > > > Hi Takahiro, > > > > > > On Thu, Sep 17, 2020 at 1:12 PM AKASHI Takahiro > > > wrote:

Re: [PATCH v2 0/2] arm64: dts: ti: k3-j7200: Add HyperFlash related nodes

2020-09-24 Thread Sekhar Nori
On 23/09/20 10:01 PM, Vignesh Raghavendra wrote: > This series adds HyperBus and HyperFlash nodes for TI's J7200 SoC Reviewed-by: Sekhar Nori

答复: [PATCH] mmc: rtsx: Add SD Express mode support for RTS5261

2020-09-24 Thread 冯锐
/git-scm.com/docs/git-format-patch] > > url: > https://github.com/0day-ci/linux/commits/rui_feng-realsil-com-cn/mmc-rtsx-A > dd-SD-Express-mode-support-for-RTS5261/20200924-154122 > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git > 26ed5146bd17cbcd0f

Re: [PATCH v9 08/20] gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL

2020-09-24 Thread Kent Gibson
On Thu, Sep 24, 2020 at 11:39:03AM +0300, Andy Shevchenko wrote: > On Thu, Sep 24, 2020 at 5:39 AM Kent Gibson wrote: > > On Wed, Sep 23, 2020 at 06:41:45PM +0300, Andy Shevchenko wrote: > > > On Tue, Sep 22, 2020 at 5:35 AM Kent Gibson wrote: > > ... > [snip] > > > > > +static int lineinfo_e

[PATCH 2/3] HID: rmi - rename f30_data to gpio_data

2020-09-24 Thread Vincent Huang
f30_data in rmi_device_platform_data could be also referenced by RMI function 3A, so rename it and the structure name to avoid confusion. Signed-off-by: Vincent Huang --- drivers/hid/hid-rmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-rmi.c b/drivers/hid

[PATCH 0/3] Add support for F3A

2020-09-24 Thread Vincent Huang
RMI4 F3A supports the touchpad GPIO function, it's designed to support more GPIOs and used on newer touchpads. The patches add support of touchpad buttons and rename f30_data to avoid confusion. Vincent Huang (3): Input: synaptics-rmi4 - rename f30_data to gpio_data HID: rmi - rename f30_data

[PATCH 3/3] Input: synaptics-rmi4 - add support for F3A

2020-09-24 Thread Vincent Huang
RMI4 F3A supports the touchpad GPIO function, it's designed to support more GPIOs and used on newer touchpads. This patch adds support of the touchpad buttons. Signed-off-by: Vincent Huang --- drivers/input/rmi4/Kconfig | 8 ++ drivers/input/rmi4/Makefile | 1 + drivers/input/rmi4/r

[PATCH 1/3] Input: synaptics-rmi4 - rename f30_data to gpio_data

2020-09-24 Thread Vincent Huang
f30_data in rmi_device_platform_data could be also referenced by RMI function 3A, so rename it and the structure name to avoid confusion. Signed-off-by: Vincent Huang --- drivers/input/mouse/synaptics.c | 2 +- drivers/input/rmi4/rmi_f30.c| 14 +++--- include/linux/rmi.h

Re: [PATCH printk 3/5] printk: use buffer pool for sprint buffers

2020-09-24 Thread Rasmus Villemoes
On 24/09/2020 10.53, Sergey Senozhatsky wrote: > On (20/09/24 10:45), Petr Mladek wrote: >> On Thu 2020-09-24 14:40:58, Sergey Senozhatsky wrote: >>> On (20/09/23 17:11), Petr Mladek wrote: AFAIK, there is one catch. We need to use va_copy() around the 1st call because va_format can

Re: [PATCH] efi/efivars: Create efivars mount point in the registration of efivars abstraction

2020-09-24 Thread Greg Kroah-Hartman
On Thu, Sep 24, 2020 at 04:28:33PM +0800, Lee, Chun-Yi wrote: > This patch moved the logic of creating efivars mount point to the > registration of efivars abstraction. It's useful for userland to > determine the availability of efivars filesystem by checking the > existence of mount point. Why no

Re: [PATCH v3 2/3] dt-bindings: usb: cdns,usb3: Add cdns,phyrst-a-enable property

2020-09-24 Thread Roger Quadros
Hi Sergei, On 15/09/2020 19:15, Sergei Shtylyov wrote: Hello! On 9/15/20 2:45 PM, Roger Quadros wrote: Controller version 0x0002450D has USB2 PHY RX sensitivity issues that needs to be worked around by enabling phyrst-a-enable bit in PHYRST_CFG register. There is no way to know controller ve

Re: [PATCH RFC v2 4/4] 9p: fix race issue in fid contention.

2020-09-24 Thread Dominique Martinet
Jianyong Wu wrote on Thu, Sep 24, 2020: > > Jianyong Wu wrote on Wed, Sep 23, 2020: > > > open-unlink-f*syscall test: > > > I have tested for f*syscall include: ftruncate fstat fchown fchmod > > > faccessat. > > > > Given the other thread, what did you test this with? > > Er, I just use Greg's qem

[PATCH v2 0/2] CPUFreq: Add support for cpu performance dependencies

2020-09-24 Thread Nicola Mazzucato
Hi Rob, Rafael, Viresh, Daniel and Sudeep, I am proposing the addition of performance dependencies in cpufreq core and one if its drivers (the implementation/approach is RFC). This is to support systems where exposed cpu performance controls are more fine-grained that the platform's ability to sca

[PATCH v2 2/2] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-09-24 Thread Nicola Mazzucato
I am seeking some feedback/comments on the following approach. Intro: Info of performance depency for cpus will be beneficial for systems where f/w description of the CPU performance control domain is different from the clock domain, e.g. per-CPU control with multiple CPUs sharing clock, and kerne

[PATCH v2 1/2] dt-bindings: arm: Add devicetree binding for cpu-performance-dependencies

2020-09-24 Thread Nicola Mazzucato
Currently, there is an assumption that the performance domains as provided by the SCMI protocol should be mirroring the exact implementation in hardware, for example, the clock domains, which are a typical type of performance domains. By design, an SCMI performance domain defines the granularity o

Re: [PATCH printk 3/5] printk: use buffer pool for sprint buffers

2020-09-24 Thread Rasmus Villemoes
On 23/09/2020 17.11, Petr Mladek wrote: > On Tue 2020-09-22 17:44:14, John Ogness wrote: >> vprintk_store() is using a single static buffer as a temporary >> sprint buffer for the message text. This will not work once >> @logbuf_lock is removed. Replace the single static buffer with a >> pool of bu

Re: [PATCH v5 0/5] iommu aux-domain APIs extensions

2020-09-24 Thread Joerg Roedel
On Tue, Sep 22, 2020 at 02:10:37PM +0800, Lu Baolu wrote: > Hi Jorge and Alex, > > A description of this patch series could be found here. > > https://lore.kernel.org/linux-iommu/20200901033422.22249-1-baolu...@linux.intel.com/ Hmm, I am wondering if we can avoid all this hassle and special APIs

Re: [PATCH RFC 0/4] mm: place pages to the freelist tail when onling and undoing isolation

2020-09-24 Thread David Hildenbrand
On 24.09.20 11:40, Mel Gorman wrote: > On Wed, Sep 23, 2020 at 05:26:06PM +0200, David Hildenbrand wrote: > ???On 2020-09-16 20:34, David Hildenbrand wrote: >> When adding separate memory blocks via add_memory*() and onlining them >> immediately, the metadata (especially the memmap) of

Re: arm-smmu 5000000.iommu: Cannot accommodate DMA offset for IOMMU page tables

2020-09-24 Thread Joerg Roedel
On Thu, Sep 24, 2020 at 10:36:47AM +0100, Robin Murphy wrote: > Yes, the issue was introduced by one of the changes in "dma-mapping: > introduce DMA range map, supplanting dma_pfn_offset", so it only existed in > the dma-mapping/for-next branch anyway. Okay, alright then.

Re: [RFC PATCH V3 12/21] mmc: sdhci: UHS-II support, add hooks for additional operations

2020-09-24 Thread AKASHI Takahiro
Ben, On Fri, Sep 18, 2020 at 06:50:24PM +0800, Ben Chuang wrote: > On Fri, Sep 18, 2020 at 2:38 PM AKASHI Takahiro > wrote: > > > > Adrian, Ben, > > > > Regarding _set_ios() function, > > > > On Fri, Aug 21, 2020 at 05:08:32PM +0300, Adrian Hunter wrote: > > > On 10/07/20 2:10 pm, Ben Chuang wrot

linux-next: Tree for Sep 24

2020-09-24 Thread Stephen Rothwell
Hi all, Changes since 20200923: The vfs tree gained a build failure for which I reverted a commit. The pci tree gained a conflict against the imx-mxs tree. The vfio tree gained a conflict against the s390 tree. The nvdimm tree gained conflicts against the vfs tree. Non-merge commits (relative

Re: [PATCH] mmc: rtsx: Add SD Express mode support for RTS5261

2020-09-24 Thread Ulf Hansson
x27; as documented in > > https://git-scm.com/docs/git-format-patch] > > > > url: > > https://github.com/0day-ci/linux/commits/rui_feng-realsil-com-cn/mmc-rtsx-A > > dd-SD-Express-mode-support-for-RTS5261/20200924-154122 > > base: https://git.kernel.org/

Re: [PATCH 12/24] getgrent_r.3: Use sizeof() to get buffer size (instead of hardcoding macro name)

2020-09-24 Thread Michael Kerrisk (man-pages)
Hi Alex, [..] > I was reverting the 3 patches I introduced (they changed from solution 1 > to solution 2), and also was grepping for already existing solution 2 in > the pages (it seems that solution 2 was a bit more extended than > solution 1). Just so I can refresh my cache, which commits were

Re: [PATCH 12/24] getgrent_r.3: Use sizeof() to get buffer size (instead of hardcoding macro name)

2020-09-24 Thread Alejandro Colomar
Hi Michael On 2020-09-24 12:04, Michael Kerrisk (man-pages) wrote: Hi Alex, [..] I was reverting the 3 patches I introduced (they changed from solution 1 to solution 2), and also was grepping for already existing solution 2 in the pages (it seems that solution 2 was a bit more extended than s

Re: [PATCH v6 2/3] media: i2c: imx274: Remove stop stream i2c writes during remove

2020-09-24 Thread Luca Ceresoli
On 22/09/20 10:47, Sakari Ailus wrote: > Hi Luca, > > On Tue, Sep 22, 2020 at 10:09:33AM +0200, Luca Ceresoli wrote: >> Hi, >> >> On 21/09/20 23:39, Sowjanya Komatineni wrote: >>> Sensor should already be in standby during remove and there is no >>> need to configure sensor registers for stream st

Re: [PATCH v8 05/11] dt-bindings: connector: Add property to set initial current cap for FRS

2020-09-24 Thread Badhri Jagan Sridharan
Hi Jun, Thanks for the feedback ! The sink PDO from current source reflects the current source's(i.e. transmitter of the FRS signal) power requirement during fr swap. The current sink (i.e. receiver of the FRS signal) should check if it will be able to satisfy the current source's requirement duri

[GIT PULL] devfreq fixes for v5.9-rc7

2020-09-24 Thread Chanwoo Choi
Dear Rafael, This is devfreq-next pull request for v5.9-rc7. I add detailed description of this pull request on the following tag. Please pull devfreq with following updates. - tag name : devfreq-fixes-for-5.9-rc7 Best Regards, Chanwoo Choi The following changes since commit ba4f184e126b751d1bf

Re: [PATCH v4 00/10] Independent per-CPU data section for nVHE

2020-09-24 Thread Christopher Lameter
On Tue, 22 Sep 2020, David Brazdil wrote: > Introduce '.hyp.data..percpu' as part of ongoing effort to make nVHE > hyp code self-contained and independent of the rest of the kernel. The percpu subsystems point is to enable the use of special hardware instructions that can perform address calculat

Re: [PATCH] xen-blkback: add a parameter for disabling of persistent grants

2020-09-24 Thread Roger Pau Monné
On Wed, Sep 23, 2020 at 04:09:30PM -0400, Konrad Rzeszutek Wilk wrote: > On Tue, Sep 22, 2020 at 09:01:25AM +0200, SeongJae Park wrote: > > From: SeongJae Park > > > > Persistent grants feature provides high scalability. On some small > > systems, however, it could incur data copy overhead[1] an

Re: [PATCH v5 1/5] x86/asm: Carve out a generic movdir64b() helper for general usage

2020-09-24 Thread Borislav Petkov
On Thu, Sep 24, 2020 at 08:24:46AM +, David Laight wrote: > static inline void movdir64b(void *dst, const void *src) > { > /* >* 64 bytes from dst are marked as modified for completeness. >* Since the writes bypass the cache later reads may return >* old data anywa

Re: [RFC PATCH 00/24] Control VQ support in vDPA

2020-09-24 Thread Stefan Hajnoczi
On Thu, Sep 24, 2020 at 11:21:01AM +0800, Jason Wang wrote: > This series tries to add the support for control virtqueue in vDPA. Please include documentation for both driver authors and vhost-vdpa ioctl users. vhost-vdpa ioctls are only documented with a single sentence. Please add full informati

Re: [PATCH RFC 1/4] mm/page_alloc: convert "report" flag of __free_one_page() to a proper flag

2020-09-24 Thread Vlastimil Babka
On 9/16/20 8:34 PM, David Hildenbrand wrote: > Let's prepare for additional flags and avoid long parameter lists of bools. > Follow-up patches will also make use of the flags in __free_pages_ok(), > however, I wasn't able to come up with a better name for the type - should > be good enough for inte

Re: [PATCH v2] ovl: introduce new "index=nouuid" option for inodes index feature

2020-09-24 Thread Amir Goldstein
On Thu, Sep 24, 2020 at 11:40 AM Pavel Tikhomirov wrote: > > > > On 9/23/20 7:09 PM, Amir Goldstein wrote: > > On Wed, Sep 23, 2020 at 6:23 PM Pavel Tikhomirov > > wrote: > >> > >> This relaxes uuid checks for overlay index feature. It is only possible > >> in case there is only one filesystem fo

[PATCH 2/3] staging: greybus: codecs: use SNDRV_PCM_FMTBIT_S16_LE for format bitmask

2020-09-24 Thread Coiby Xu
snd_soc_pcm_stream.formats should use the bitmask SNDRV_PCM_FMTBIT_* instead of the sequential integers SNDRV_PCM_FORMAT_* as explained by commit e712bfca1ac1f63f622f87c2f33b57608f2a4d19 ("ASoC: codecs: use SNDRV_PCM_FMTBIT_* for format bitmask"). Found by sparse, $ make C=2 drivers/staging/greyb

[PATCH 1/3] [PATCH] staging: greybus: fix warnings about endianness detected by sparse

2020-09-24 Thread Coiby Xu
This patch fix the following warnings from sparse, $ make C=2 drivers/staging/greybus/ drivers/staging/greybus/audio_module.c:222:25: warning: incorrect type in assignment (different base types) drivers/staging/greybus/audio_module.c:222:25:expected restricted __le16 [usertype] data_cport dr

[PATCH 3/3] [PATCH] staging: greybus: __u8 is sufficient for snd_ctl_elem_type_t and snd_ctl_elem_iface_t

2020-09-24 Thread Coiby Xu
Use __8 to replace int and remove the unnecessary __bitwise type attribute. Found by sparse, $ make C=2 drivers/staging/greybus/ drivers/staging/greybus/audio_topology.c:185:24: warning: cast to restricted snd_ctl_elem_type_t drivers/staging/greybus/audio_topology.c:679:14: warning: restricted

Re: [PATCH] MAINTAINERS: drop myself from PM AVS drivers

2020-09-24 Thread Rafael J. Wysocki
On Thu, Sep 24, 2020 at 11:07 AM Ulf Hansson wrote: > > On Tue, 22 Sep 2020 at 20:10, Rafael J. Wysocki wrote: > > > > On Fri, Sep 18, 2020 at 10:16 PM Kevin Hilman wrote: > > > > > > I haven't had the time or the expertise to adequately review and > > > maintain these drivers for awhile, so mak

Re: [PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-24 Thread Thierry Reding
On Thu, Sep 24, 2020 at 10:26:15AM +0300, Felipe Balbi wrote: > Tang Bin writes: > > > Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to > > simplify code, avoid redundant judgements. > > > > Signed-off-by: Zhang Shengju > > Signed-off-by: Tang Bin > > Applied for next merge window. M

Re: [PATCH 1/3] iommu/tegra-smmu: Do not use PAGE_SHIFT and PAGE_MASK

2020-09-24 Thread Thierry Reding
On Fri, Sep 11, 2020 at 12:16:41AM -0700, Nicolin Chen wrote: > PAGE_SHIFT and PAGE_MASK are defined corresponding to the page size > for CPU virtual addresses, which means PAGE_SHIFT could be a number > other than 12, but tegra-smmu maintains fixed 4KB IOVA pages and has > fixed [21:12] bit range

Re: [PATCH 2/3] iommu/tegra-smmu: Fix iova->phys translation

2020-09-24 Thread Thierry Reding
On Fri, Sep 11, 2020 at 12:16:42AM -0700, Nicolin Chen wrote: > IOVA might not be always 4KB aligned. So tegra_smmu_iova_to_phys > function needs to add on the lower 12-bit offset from input iova. > > Signed-off-by: Nicolin Chen > --- > drivers/iommu/tegra-smmu.c | 2 +- > 1 file changed, 1 inse

Re: [PATCH v3 -next] vdpa: mlx5: change Kconfig depends to fix build errors

2020-09-24 Thread Eli Cohen
On Thu, Sep 24, 2020 at 05:30:55AM -0400, Michael S. Tsirkin wrote: > > > --- linux-next-20200917.orig/drivers/vdpa/Kconfig > > > +++ linux-next-20200917/drivers/vdpa/Kconfig > > > @@ -31,7 +31,7 @@ config IFCVF > > > > > > config MLX5_VDPA > > > bool "MLX5 VDPA support library for ConnectX devi

Re: [PATCH V2 1/4] cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()

2020-09-24 Thread Rafael J. Wysocki
On Thu, Sep 24, 2020 at 11:25 AM Lukasz Luba wrote: > > Hi Rafael, > > On 9/23/20 2:48 PM, Rafael J. Wysocki wrote: > > On Wed, Sep 16, 2020 at 8:45 AM Viresh Kumar > > wrote: > >> > >> In order to prepare for lock-less stats update, add support to defer any > >> updates to it until cpufreq_stat

[PATCH v2 net] net: mscc: ocelot: fix fields offset in SG_CONFIG_REG_3

2020-09-24 Thread Xiaoliang Yang
INIT_IPS and GATE_STATE fields have a wrong offset in SG_CONFIG_REG_3. This register is used by stream gate control of PSFP, and it has not been used before, because PSFP is not implemented in ocelot driver. Signed-off-by: Xiaoliang Yang --- include/soc/mscc/ocelot_ana.h | 8 1 file cha

Re: [PATCH 3/3] iommu/tegra-smmu: Allow to group clients in same swgroup

2020-09-24 Thread Thierry Reding
On Fri, Sep 11, 2020 at 12:16:43AM -0700, Nicolin Chen wrote: > There can be clients using the same swgroup in DT, for example i2c0 > and i2c1. The current driver will add them to separate IOMMU groups, > though it has implemented device_group() callback which is to group > devices using different

Re: [PATCH] xen-blkback: add a parameter for disabling of persistent grants

2020-09-24 Thread SeongJae Park
On Thu, 24 Sep 2020 12:13:44 +0200 "Roger Pau Monné" wrote: > On Wed, Sep 23, 2020 at 04:09:30PM -0400, Konrad Rzeszutek Wilk wrote: > > On Tue, Sep 22, 2020 at 09:01:25AM +0200, SeongJae Park wrote: > > > From: SeongJae Park > > > > > > Persistent grants feature provides high scalability. On

[PATCH] iio: adc: at91-sama5d2_adc: merge buffer & trigger init into a function

2020-09-24 Thread Alexandru Ardelean
This change is mostly cosmetic, but it's also a pre-cursor to the the change for 'iio_buffer_set_attrs()', where the helper gets updated to better support multiple IIO buffers for 1 IIO device. The only functional change is that the error message for the trigger alloc failure is bound to the paren

Re: [PATCH] x86/irq: Use printk_deferred() on raw_spin_lock() protected sections

2020-09-24 Thread Peter Zijlstra
On Mon, Sep 21, 2020 at 06:22:12PM +0200, Daniel Bristot de Oliveira wrote: > While testing hotplug I got this BUG: > > It was caused by printk() inside a code section protected by a > raw_spin_lock() that ended up calling a serial console that > uses a regular spin_lock(). > > Use the printk_de

Re: [PATCH 1/7] efi: pstore: disentangle from deprecated efivars module

2020-09-24 Thread Ard Biesheuvel
On Thu, 24 Sep 2020 at 11:45, Ard Biesheuvel wrote: > > On Wed, 23 Sep 2020 at 23:02, Kees Cook wrote: > > > > On Wed, Sep 23, 2020 at 08:43:21PM +0200, Ard Biesheuvel wrote: > > > On Wed, 23 Sep 2020 at 20:41, Kees Cook wrote: > > > > > > > > On Wed, Sep 23, 2020 at 06:13:58PM +0200, Ard Bieshe

Re: [PATCH v2] powerpc/pci: unmap legacy INTx interrupts when a PHB is removed

2020-09-24 Thread Cédric Le Goater
On 9/24/20 7:11 AM, Alexey Kardashevskiy wrote: > > > On 23/09/2020 17:06, Cédric Le Goater wrote: >> On 9/23/20 2:33 AM, Qian Cai wrote: >>> On Fri, 2020-08-07 at 12:18 +0200, Cédric Le Goater wrote: When a passthrough IO adapter is removed from a pseries machine using hash MMU and the

Re: [PATCH 0/3] iommu/tegra-smmu: Some small fixes

2020-09-24 Thread Joerg Roedel
On Fri, Sep 11, 2020 at 12:16:40AM -0700, Nicolin Chen wrote: > These are a series of small fixes for tegra-smmu driver. > They might not be critial bugs as current mainline does > not enable a lot of clients, but be nicer to have since > we are going to enable the DMA domain for other clients > in

Re: [PATCH 00/13] iommu: amd: Add Generic IO Page Table Framework Support

2020-09-24 Thread Joerg Roedel
Hi Suravee, On Wed, Sep 23, 2020 at 10:14:29AM +, Suravee Suthikulpanit wrote: > The framework allows callable implementation of IO page table. > This allows AMD IOMMU driver to switch between different types > of AMD IOMMU page tables (e.g. v1 vs. v2). Is there a reason you created your own

[PATCH] [Cocci] coccinelle: iterators: Add for_each_child.cocci script

2020-09-24 Thread Sumera Priyadarsini
While iterating over child nodes with the for_each functions, if control is transferred from the middle of the loop, as in the case of a break or return or goto, there is no decrement in the reference counter thus ultimately resulting in a memory leak. Add this script to detect potential memory le

Re: [PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-24 Thread Felipe Balbi
Thierry Reding writes: > On Thu, Sep 24, 2020 at 10:26:15AM +0300, Felipe Balbi wrote: >> Tang Bin writes: >> >> > Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to >> > simplify code, avoid redundant judgements. >> > >> > Signed-off-by: Zhang Shengju >> > Signed-off-by: Tang Bin >>

Re: [PATCH 1/2] printk: Store all three timestamps

2020-09-24 Thread Petr Mladek
On Thu 2020-09-24 02:06:12, John Ogness wrote: > On 2020-09-23, Petr Mladek wrote: > > diff --git a/kernel/printk/printk_ringbuffer.h > > b/kernel/printk/printk_ringbuffer.h > > index 0adaa685d1ca..09082c8472d3 100644 > > --- a/kernel/printk/printk_ringbuffer.h > > +++ b/kernel/printk/printk_ring

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