[PATCH] fs/buffer.c: Delete redundant uptodate check for buffer

2021-03-31 Thread Shaokun Zhang
From: Yang Guo The buffer uptodate state has been checked in function set_buffer_uptodate, there is no need use buffer_uptodate before calling set_buffer_uptodate and delete it. Cc: Alexander Viro Signed-off-by: Yang Guo Signed-off-by: Shaokun Zhang --- fs/buffer.c | 6 ++ 1 file change

Re: [PATCH] fix NULL pointer deference crash

2021-03-31 Thread Greg KH
On Thu, Apr 01, 2021 at 09:21:54AM +0300, Hassan Shahbazi wrote: > On Wed, Mar 31, 2021 at 07:32:06PM +0200, Greg KH wrote: > > On Wed, Mar 31, 2021 at 07:34:29PM +0300, Hassan Shahbazi wrote: > > > The patch has fixed a NULL pointer deference crash in hiding the cursor. > > > It > > > is verifie

[PATCH v4 5/6] usb: Iterator for ports

2021-03-31 Thread Heikki Krogerus
Introducing usb_for_each_port(). It works the same way as usb_for_each_dev(), but instead of going through every USB device in the system, it walks through the USB ports in the system. Signed-off-by: Heikki Krogerus Acked-by: Alan Stern --- drivers/usb/core/usb.c | 46 ++

[PATCH v4 3/6] usb: typec: Port mapping utility

2021-03-31 Thread Heikki Krogerus
Adding functions that can be used to link/unlink ports - USB ports, TBT3/USB4 ports, DisplayPorts and so on - to the USB Type-C connectors they are attached to inside a system. The symlink that is created for the port device is named "connector". Initially only ACPI is supported. ACPI port object

[PATCH v4 6/6] usb: typec: Link all ports during connector registration

2021-03-31 Thread Heikki Krogerus
The connectors may be registered after the ports, so the "connector" links need to be created for the ports also when ever a new connector gets registered. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/class.c | 9 +++-- drivers/usb/typec/class.h | 4 +-- drivers/usb/typec/p

[PATCH v4 4/6] usb: Link the ports to the connectors they are attached to

2021-03-31 Thread Heikki Krogerus
Creating link to the USB Type-C connector for every new port that is added when possible. Signed-off-by: Heikki Krogerus --- Documentation/ABI/testing/sysfs-bus-usb | 9 + drivers/usb/core/port.c | 3 +++ 2 files changed, 12 insertions(+) diff --git a/Documentation/ABI/t

[PATCH v4 2/6] usb: typec: Declare the typec_class static

2021-03-31 Thread Heikki Krogerus
This is only to make the handling of the class consistent with the two other susbsystems - the alt mode bus and the mux class. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/class.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/usb/t

[PATCH 2/2] Bluetooth: Coding style fix

2021-03-31 Thread Meng Yu
1. Add space when needed; 2. Block comments style fix; 3. Move open brace '{' following function definitions to the next line; 4. Remove unnecessary braces '{}' for single statement blocks. Signed-off-by: Meng Yu --- net/bluetooth/6lowpan.c | 3 +-- net/bluetooth/hci_debugfs.c | 8

[PATCH v4 1/6] usb: typec: Organize the private headers properly

2021-03-31 Thread Heikki Krogerus
Adding a header file for each subsystem - the connector class, alt mode bus and the class for the muxes. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/bus.c | 2 ++ drivers/usb/typec/bus.h | 19 +- drivers/usb/typec/class.c | 69 +++ drivers/us

[PATCH v4 0/6] usb: Linking ports to their Type-C connectors

2021-03-31 Thread Heikki Krogerus
Hi, One more version. I used #ifdef when I should have used #if IS_DEFINED(). Thanks Guenter for pointing that out. I'm sending this version right away because of the holidays. I'm not changing anything else except that one fix. v3: cover letter: Third version: ifdefs now in the header files a

[PATCH 0/2] net/Blutooth - Coding style fix

2021-03-31 Thread Meng Yu
Remove 'return' in void function and fix some coding style Meng Yu (2): Bluetooth: Remove 'return' in void function Bluetooth: Coding style fix net/bluetooth/6lowpan.c | 5 + net/bluetooth/hci_debugfs.c | 8 net/bluetooth/hci_event.c | 2 +- net/bluetooth/hci_request.c | 6

[PATCH 1/2] Bluetooth: Remove 'return' in void function

2021-03-31 Thread Meng Yu
void function return statements are not generally useful. Signed-off-by: Meng Yu --- net/bluetooth/6lowpan.c| 2 -- net/bluetooth/l2cap_core.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index cff4944..19f7e42 100644 --- a/net/bluet

Re: [PATCH] linux/bpf-cgroup.h: Delete repeated struct declaration

2021-03-31 Thread Song Liu
> On Mar 31, 2021, at 11:46 PM, Wan Jiabing wrote: > > struct bpf_prog is declared twice. There is one declaration > which is independent on the MACRO at 18th line. > So the below one is not needed though. Remove the duplicate. > > Signed-off-by: Wan Jiabing Acked-by: Song Liu > --- > inc

Re: [PATCH] misc: vmw_vmci: initialize payload passed to vmci_send_datagram()

2021-03-31 Thread Tetsuo Handa
On 2021/04/01 15:18, Greg Kroah-Hartman wrote: > On Thu, Apr 01, 2021 at 02:57:47PM +0900, Tetsuo Handa wrote: >> KMSAN complains that the vmci_use_ppn64() == false path in >> vmci_dbell_register_notification_bitmap() left upper 32bits of >> bitmap_set_msg.bitmap_ppn64 member uninitialized. >> >> K

Re: [PATCH v3] sysfs: Unconditionally use vmalloc for buffer

2021-03-31 Thread Kees Cook
On Thu, Apr 01, 2021 at 07:16:56AM +0200, Greg Kroah-Hartman wrote: > On Wed, Mar 31, 2021 at 07:21:45PM -0700, Kees Cook wrote: > > The sysfs interface to seq_file continues to be rather fragile > > (seq_get_buf() should not be used outside of seq_file), as seen with > > some recent exploits[1]. M

Re: [PATCH] psi: allow unprivileged users with CAP_SYS_RESOURCE to write psi files

2021-03-31 Thread Peter Zijlstra
On Wed, Mar 31, 2021 at 11:31:56PM -0400, Josh Hunt wrote: > Currently only root can write files under /proc/pressure. Relax this to > allow tasks running as unprivileged users with CAP_SYS_RESOURCE to be > able to write to these files. > > Signed-off-by: Josh Hunt I suppose that's ok, but lets

[PATCH] linux/bpf-cgroup.h: Delete repeated struct declaration

2021-03-31 Thread Wan Jiabing
struct bpf_prog is declared twice. There is one declaration which is independent on the MACRO at 18th line. So the below one is not needed though. Remove the duplicate. Signed-off-by: Wan Jiabing --- include/linux/bpf-cgroup.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/bpf-

Re: [PATCH v2] fs: Improve eventpoll logging to stop indicting timerfd

2021-03-31 Thread kernel test robot
Hi Manish, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.12-rc5 next-20210331] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as doc

Re: [PATCH v3 06/10] fsdax: Add dax_iomap_cow_copy() for dax_iomap_zero

2021-03-31 Thread Ritesh Harjani
On 21/03/19 09:52AM, Shiyang Ruan wrote: > Punch hole on a reflinked file needs dax_copy_edge() too. Otherwise, > data in not aligned area will be not correct. So, add the srcmap to > dax_iomap_zero() and replace memset() as dax_copy_edge(). > > Signed-off-by: Shiyang Ruan > --- > fs/dax.c

[PATCH V2 4/6] mm: Drop redundant ARCH_ENABLE_[HUGEPAGE|THP]_MIGRATION

2021-03-31 Thread Anshuman Khandual
ARCH_ENABLE_[HUGEPAGE|THP]_MIGRATION configs have duplicate definitions on platforms that subscribe them. Drop these reduntant definitions and instead just select them appropriately. Cc: Catalin Marinas Cc: Will Deacon Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Tho

[PATCH V2 3/6] mm: Generalize ARCH_ENABLE_MEMORY_[HOTPLUG|HOTREMOVE]

2021-03-31 Thread Anshuman Khandual
ARCH_ENABLE_MEMORY_[HOTPLUG|HOTREMOVE] configs have duplicate definitions on platforms that subscribe them. Instead, just make them generic options which can be selected on applicable platforms. Cc: Catalin Marinas Cc: Will Deacon Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Macker

[PATCH V2 0/6] mm: some config cleanups

2021-03-31 Thread Anshuman Khandual
This series contains config cleanup patches which reduces code duplication across platforms and also improves maintainability. There is no functional change intended with this series. This has been boot tested on arm64 but only build tested on some other platforms. This applies on 5.12-rc5 Change

[PATCH v2 6/6] soc: mediatek: devapc: support mt8192

2021-03-31 Thread Nina Wu
From: Nina Wu Add compatible to support mt8192. Signed-off-by: Nina Wu --- drivers/soc/mediatek/mtk-devapc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/soc/mediatek/mtk-devapc.c b/drivers/soc/mediatek/mtk-devapc.c index af55c01..a5c15b5 100644 --- a/drivers/s

[PATCH v2 4/6] soc: mediatek: devapc: rename variable for new IC support

2021-03-31 Thread Nina Wu
From: Nina Wu For new ICs, there are multiple devapc HWs for different subsys. For example, there is devapc respectively for infra, peri, peri2, etc. So we rename the variable 'infra_base' to 'base' for code readability. Signed-off-by: Nina Wu --- drivers/soc/mediatek/mtk-devapc.c | 24 +++

[PATCH v2 5/6] soc: mediatek: devapc: add debug register for new IC support

2021-03-31 Thread Nina Wu
From: Nina Wu There are 3 debug info registers in new ICs while in legacy ones, we have only 2. When dumping the debug info, we need to check first if the 3rd debug register exists and then we can konw how to decipher the debug info. Signed-off-by: Nina Wu --- drivers/soc/mediatek/mtk-devapc.c

[PATCH v2 3/6] soc: mediatek: devapc: add shared flag to IRQ

2021-03-31 Thread Nina Wu
From: Nina Wu For new ICs, there are multiple devapc HWs for different subsys. They all share the same IRQ number. Signed-off-by: Nina Wu --- drivers/soc/mediatek/mtk-devapc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-devapc.c b/drivers/soc/m

[PATCH v2 2/6] soc: mediatek: devapc: move 'vio_idx_num' info to DT

2021-03-31 Thread Nina Wu
From: Nina Wu For new ICs, there are multiple devapc HWs for different subsys. The number of devices controlled by each devapc (i.e. 'vio_idx_num' in the code) varies. We move this info from compatible data to DT so that we do not need to add n compatible for a certain IC which has n devapc HWs w

[PATCH v2 1/6] dt-bindings: devapc: Update bindings

2021-03-31 Thread Nina Wu
From: Nina Wu To support newer hardware architecture of devapc, update device tree bindings. Signed-off-by: Nina Wu --- Documentation/devicetree/bindings/soc/mediatek/devapc.yaml | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/devapc.y

Re: [PATCH v3 05/10] fsdax: Replace mmap entry in case of CoW

2021-03-31 Thread Ritesh Harjani
On 21/03/19 09:52AM, Shiyang Ruan wrote: > We replace the existing entry to the newly allocated one in case of CoW. > Also, we mark the entry as PAGECACHE_TAG_TOWRITE so writeback marks this > entry as writeprotected. This helps us snapshots so new write > pagefaults after snapshots trigger a CoW.

Re: [PATCH 3/3] i2c: i2c-qcom-geni: Add support for 'assigned-performance-states'

2021-03-31 Thread rojay
On 2021-02-12 14:51, ro...@codeaurora.org wrote: On 2021-01-20 19:01, Ulf Hansson wrote: On Tue, 19 Jan 2021 at 12:05, Viresh Kumar wrote: On 19-01-21, 12:02, Ulf Hansson wrote: > As a matter of fact this was quite recently discussed [1], which also > pointed out some issues when using the "r

Re: [PATCH v3 5/6] usb: Iterator for ports

2021-03-31 Thread Heikki Krogerus
On Wed, Mar 31, 2021 at 09:41:22AM -0700, Guenter Roeck wrote: > > diff --git a/include/linux/usb.h b/include/linux/usb.h > > index ddd2f5b2a2827..ebcd03d835d04 100644 > > --- a/include/linux/usb.h > > +++ b/include/linux/usb.h > > @@ -882,6 +882,15 @@ extern struct usb_host_interface *usb_find_alt

Re: [PATCH] implement flush_cache_vmap and flush_cache_vunmap for RISC-V

2021-03-31 Thread Christoph Hellwig
On Mon, Mar 29, 2021 at 01:55:09AM +, Jiuyang Liu wrote: > +/* > + * flush_cache_vmap and flush_cache_vunmap might modify PTE, needs > SFENCE.VMA. > + * - flush_cache_vmap is invoked after map_kernel_range() has installed the > page table entries. > + * - flush_cache_vunmap is invoked before

[PATCH] scsi: bfa: Remove unnecessary struct declaration

2021-03-31 Thread Wan Jiabing
struct bfa_fcs_s is declared twice. One is declared at 50th line. Remove the duplicate. struct bfa_fcs_fabric_s is defined at 175th line. Remove unnecessary declaration. Signed-off-by: Wan Jiabing --- drivers/scsi/bfa/bfa_fcs.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/b

Re: [PATCH v4 5/6] PCI: fu740: Add SiFive FU740 PCIe host controller driver

2021-03-31 Thread Krzysztof Wilczyński
Hi Greentime, [...] > + /* Wait for wait_idle */ > + ret = readl_poll_timeout(phy_cr_para_ack, val, val, 10, 5000); > + if (ret) > + dev_err(dev, "Wait for wait_ilde state failed!\n"); > + > + /* Clear */ > + writel_relaxed(0, phy_cr_para_wr_en); > + > + /* Wait

Re: [PATCH v8 3/6] stack: Optionally randomize kernel stack offset each syscall

2021-03-31 Thread Kees Cook
On Thu, Apr 01, 2021 at 12:38:31AM +0200, Thomas Gleixner wrote: > On Wed, Mar 31 2021 at 14:54, Kees Cook wrote: > > On Wed, Mar 31, 2021 at 09:53:26AM +0200, Thomas Gleixner wrote: > >> On Tue, Mar 30 2021 at 13:57, Kees Cook wrote: > >> > +/* > >> > + * Do not use this anywhere else in the kerne

Re: [PATCH v2 3/4] MIPS: uaccess: Remove get_fs/set_fs call sites

2021-03-31 Thread Christoph Hellwig
On Wed, Mar 31, 2021 at 01:56:00PM +0200, Thomas Bogendoerfer wrote: > +#define __get_user_nofault(dst, src, type, err_label) > \ > +do { \ > + int __gu_err;

Re: [PATCH 3/4] arm64: dts: ti: k3-am64-main: Fix ospi compatible

2021-03-31 Thread Vignesh Raghavendra
On 3/26/21 6:30 PM, Pratyush Yadav wrote: > The TI specific compatible should be followed by the generic > "cdns,qspi-nor" compatible. > > Signed-off-by: Pratyush Yadav > --- Reviewed-by: Vignesh Raghavendra > arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 2 +- > 1 file changed, 1 insertion(+

Re: [PATCH 1/4] arm64: dts: ti: k3-j721e-mcu: Fix ospi compatible

2021-03-31 Thread Vignesh Raghavendra
On 3/26/21 6:30 PM, Pratyush Yadav wrote: > The TI specific compatible should be followed by the generic > "cdns,qspi-nor" compatible. > > Signed-off-by: Pratyush Yadav > --- Reviewed-by: Vignesh Raghavendra > arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 4 ++-- > 1 file changed, 2 in

Re: [PATCH 2/4] arm64: dts: ti: k3-j7200-mcu: Fix ospi compatible

2021-03-31 Thread Vignesh Raghavendra
On 3/26/21 6:30 PM, Pratyush Yadav wrote: > The TI specific compatible should be followed by the generic > "cdns,qspi-nor" compatible. > > Signed-off-by: Pratyush Yadav > --- Reviewed-by: Vignesh Raghavendra > arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 2 +- > 1 file changed, 1 inse

Re: [PATCH] ia64: fix user_stack_pointer() for ptrace()

2021-03-31 Thread Sergei Trofimovich
On Wed, 31 Mar 2021 17:49:08 -0700 Andrew Morton wrote: > On Wed, 31 Mar 2021 09:44:47 +0100 Sergei Trofimovich > wrote: > > > ia64 has two stacks: > > - memory stack (or stack), pointed at by by r12 > > - register backing store (register stack), pointed at > > ar.bsp/ar.bspstore with compli

Re: [PATCH v2 2/4] MIPS: uaccess: Added __get/__put_kernel_nofault

2021-03-31 Thread Christoph Hellwig
On Wed, Mar 31, 2021 at 01:55:59PM +0200, Thomas Bogendoerfer wrote: > Added __get/__put_kernel_nofault as preparation for removing > get/set_fs. > > Signed-off-by: Thomas Bogendoerfer Looks good, Reviewed-by: Christoph Hellwig

[PATCH] iio: adc: bcm_iproc_adc: Use %s and __func__

2021-03-31 Thread Mugilraj Dhavachelvan
Change function's name to %s and __func__ to fix checkpatch.pl errors. Signed-off-by: Mugilraj Dhavachelvan --- drivers/iio/adc/bcm_iproc_adc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/adc/bcm_iproc_adc.c b/drivers/iio/adc/bcm_iproc_adc.c index 5e396104ac

[PATCH] tools: perf: util: Remove duplicate struct declaration

2021-03-31 Thread Wan Jiabing
struct target is declared twice. One has been declared at 21st line. Remove the duplicate. Signed-off-by: Wan Jiabing --- tools/perf/util/evsel.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 6026487353dd..998e5b806696 100644 --- a/too

Re: [PATCH v2 1/4] MIPS: kernel: Remove not needed set_fs calls

2021-03-31 Thread Christoph Hellwig
On Wed, Mar 31, 2021 at 01:55:58PM +0200, Thomas Bogendoerfer wrote: > flush_icache_range always does flush kernel address ranges, so no > need to do the set_fs dance. > > Signed-off-by: Thomas Bogendoerfer Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH] fix NULL pointer deference crash

2021-03-31 Thread Hassan Shahbazi
On Wed, Mar 31, 2021 at 07:32:06PM +0200, Greg KH wrote: > On Wed, Mar 31, 2021 at 07:34:29PM +0300, Hassan Shahbazi wrote: > > The patch has fixed a NULL pointer deference crash in hiding the cursor. It > > is verified by syzbot patch tester. > > > > Reported by: syzbot > > https://syzkaller.app

Re: [PATCH v2] nvme-tcp: Check if request has started before processing it

2021-03-31 Thread Christoph Hellwig
On Wed, Mar 31, 2021 at 03:24:49PM -0700, Sagi Grimberg wrote: > >>> What we can do, though, is checking the 'state' field in the tcp >>> request, and only allow completions for commands which are in a state >>> allowing for completions. >>> >>> Let's see if I can whip up a patch. >> >> That would

Re: [PATCH 1/2] perf/core: Share an event with multiple cgroups

2021-03-31 Thread Song Liu
> On Mar 30, 2021, at 8:11 AM, Namhyung Kim wrote: > > On Tue, Mar 30, 2021 at 3:33 PM Song Liu wrote: >>> On Mar 29, 2021, at 4:33 AM, Namhyung Kim wrote: >>> >>> On Mon, Mar 29, 2021 at 2:17 AM Song Liu wrote: > On Mar 23, 2021, at 9:21 AM, Namhyung Kim wrote: > > As we can

Re: [PATCH] misc: vmw_vmci: initialize payload passed to vmci_send_datagram()

2021-03-31 Thread Greg Kroah-Hartman
On Thu, Apr 01, 2021 at 02:57:47PM +0900, Tetsuo Handa wrote: > KMSAN complains that the vmci_use_ppn64() == false path in > vmci_dbell_register_notification_bitmap() left upper 32bits of > bitmap_set_msg.bitmap_ppn64 member uninitialized. > > KMSAN also complains that vmci_check_host_caps() left

Re: [PATCH] misc: vmw_vmci: initialize payload passed to vmci_send_datagram()

2021-03-31 Thread Greg Kroah-Hartman
On Thu, Apr 01, 2021 at 02:57:47PM +0900, Tetsuo Handa wrote: > KMSAN complains that the vmci_use_ppn64() == false path in > vmci_dbell_register_notification_bitmap() left upper 32bits of > bitmap_set_msg.bitmap_ppn64 member uninitialized. > > KMSAN also complains that vmci_check_host_caps() left

Re: [PATCH v2 0/6] Add SiFive FU740 PCIe host controller driver support

2021-03-31 Thread Greentime Hu
Stephen Boyd 於 2021年3月30日 週二 上午3:12寫道: > > Quoting Greentime Hu (2021-03-17 23:08:07) > > This patchset includes SiFive FU740 PCIe host controller driver. We also > > add pcie_aux clock and pcie_power_on_reset controller to prci driver for > > PCIe driver to use it. > > > > This is tested with e10

[PATCH 2/2] scsi: ufs: Add support for hba performance monitor

2021-03-31 Thread Can Guo
Add a new sysfs group which has nodes to monitor data/request transfer performance. This sysfs group has nodes showing total sectors/requests transferred, total busy time spent and max/min/avg/sum latencies. Signed-off-by: Can Guo diff --git a/Documentation/ABI/testing/sysfs-driver-ufs b/Docume

[PATCH 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes

2021-03-31 Thread Can Guo
Add a new sysfs group which has nodes to monitor data/request transfer performance. This sysfs group has nodes showing total sectors/requests transferred, total busy time spent and max/min/avg/sum latencies. This group can be enhanced later to show more UFS driver layer performance statistics data

Re: [PATCH v4 2/2] Adding i2c-cp2615: i2c support for Silicon Labs' CP2615 Digital Audio Bridge

2021-03-31 Thread kernel test robot
Hi "Bence, I love your patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on linux/master linus/master v5.12-rc5 next-20210331] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest t

Re: [PATCH v14 07/13] iommu/smmuv3: Implement cache_invalidate

2021-03-31 Thread Zenghui Yu
Hi Eric, On 2021/2/24 4:56, Eric Auger wrote: +static int +arm_smmu_cache_invalidate(struct iommu_domain *domain, struct device *dev, + struct iommu_cache_invalidate_info *inv_info) +{ + struct arm_smmu_cmdq_ent cmd = {.opcode = CMDQ_OP_TLBI_NSNH_ALL}; + struc

[PATCH 2/2] scsi: ufs: Add support for hba performance monitor

2021-03-31 Thread Can Guo
Add a new sysfs group which has nodes to monitor data/request transfer performance. This sysfs group has nodes showing total sectors/requests transferred, total busy time spent and max/min/avg/sum latencies. Signed-off-by: Can Guo diff --git a/Documentation/ABI/testing/sysfs-driver-ufs b/Docume

[PATCH 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes

2021-03-31 Thread Can Guo
Add a new sysfs group which has nodes to monitor data/request transfer performance. This sysfs group has nodes showing total sectors/requests transferred, total busy time spent and max/min/avg/sum latencies. This group can be enhanced later to show more UFS driver layer performance statistics data

Re: [PATCH v1 3/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

2021-03-31 Thread Eric Biggers
On Thu, Apr 01, 2021 at 08:50:05AM +0300, Jarkko Sakkinen wrote: > On Thu, Apr 01, 2021 at 12:11:32PM +1100, Herbert Xu wrote: > > On Wed, Mar 31, 2021 at 04:34:29PM -0700, Eric Biggers wrote: > > > On Thu, Apr 01, 2021 at 02:31:46AM +0300, Jarkko Sakkinen wrote: > > > > > > > > It's a bummer but

Re: [PATCH v5 2/5] powercap/drivers/dtpm: Create a registering system

2021-03-31 Thread Greg KH
On Wed, Mar 31, 2021 at 10:46:48PM +0200, Daniel Lezcano wrote: > > Hi Greg, > > On 31/03/2021 20:06, Greg KH wrote: > > On Wed, Mar 31, 2021 at 01:00:45PM +0200, Daniel Lezcano wrote: > >> +struct dtpm *dtpm_lookup(const char *name); > >> + > >> +int dtpm_add(const char *name, struct dtpm *dtpm)

[PATCH net-next 1/1] net: stmmac: remove unnecessary pci_enable_msi() call

2021-03-31 Thread Wong Vee Khee
The commit d2a029bde37b ("stmmac: pci: add MSI support for Intel Quark X1000") introduced a pci_enable_msi() call in stmmac_pci.c. With the commit 58da0cfa6cf1 ("net: stmmac: create dwmac-intel.c to contain all Intel platform"), Intel Quark platform related codes have been moved to the newly creat

[PATCH v4 6/6] riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC

2021-03-31 Thread Greentime Hu
Signed-off-by: Greentime Hu Acked-by: Palmer Dabbelt --- arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 33 ++ 1 file changed, 33 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi index d1bb22b11920..b2317c8e3a8

[PATCH v4 5/6] PCI: fu740: Add SiFive FU740 PCIe host controller driver

2021-03-31 Thread Greentime Hu
From: Paul Walmsley Add driver for the SiFive FU740 PCIe host controller. This controller is based on the DesignWare PCIe core. Signed-off-by: Paul Walmsley Co-developed-by: Henry Styles Signed-off-by: Henry Styles Co-developed-by: Erik Danie Signed-off-by: Erik Danie Co-developed-by: Green

[PATCH v4 4/6] dt-bindings: PCI: Add SiFive FU740 PCIe host controller

2021-03-31 Thread Greentime Hu
Add PCIe host controller DT bindings of SiFive FU740. Signed-off-by: Greentime Hu --- .../bindings/pci/sifive,fu740-pcie.yaml | 109 ++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml diff --git a/Documenta

[PATCH v4 2/6] clk: sifive: Use reset-simple in prci driver for PCIe driver

2021-03-31 Thread Greentime Hu
We use reset-simple in this patch so that pcie driver can use devm_reset_control_get() to get this reset data structure and use reset_control_deassert() to deassert pcie_power_up_rst_n. Signed-off-by: Greentime Hu Reviewed-by: Philipp Zabel Acked-by: Stephen Boyd --- drivers/clk/sifive/Kconfig

[PATCH v4 3/6] MAINTAINERS: Add maintainers for SiFive FU740 PCIe driver

2021-03-31 Thread Greentime Hu
Here add maintainer information for SiFive FU740 PCIe driver. Signed-off-by: Greentime Hu --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index bfc1b86e3e73..4da888be6e80 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13592,6 +13592,14 @@ S:

[PATCH v4 1/6] clk: sifive: Add pcie_aux clock in prci driver for PCIe driver

2021-03-31 Thread Greentime Hu
We add pcie_aux clock in this patch so that pcie driver can use clk_prepare_enable() and clk_disable_unprepare() to enable and disable pcie_aux clock. Signed-off-by: Greentime Hu Acked-by: Stephen Boyd --- drivers/clk/sifive/fu740-prci.c | 11 + drivers/clk/sifive/fu740-prci.h

[PATCH v4 0/6] Add SiFive FU740 PCIe host controller driver support

2021-03-31 Thread Greentime Hu
This patchset includes SiFive FU740 PCIe host controller driver. We also add pcie_aux clock and pcie_power_on_reset controller to prci driver for PCIe driver to use it. This is tested with e1000e: Intel(R) PRO/1000 Network Card, AMD Radeon R5 230 graphics card and SP M.2 PCIe Gen 3 SSD in SiFive U

Re: [PATCH 1/2] perf/core: Share an event with multiple cgroups

2021-03-31 Thread Stephane Eranian
Hi, I would like to re-emphasize why this patch is important. As Namhyung outlined in his cover message, cgroup monitoring build on top of per-cpu monitoring and offers maximum flexibility by allowing each event to be attached to a single cgroup. Although this is fine when the machines were much s

[PATCH] kernel: initialize cpumask before parsing

2021-03-31 Thread Tetsuo Handa
KMSAN complains that new_value at cpumask_parse_user() from write_irq_affinity() from irq_affinity_proc_write() is uninitialized. [ 148.133411][ T5509] = [ 148.135383][ T5509] BUG: KMSAN: uninit-value in find_next_bit+0x325/0x340 [ 148.1

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-03-31 Thread Greg KH
On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: > Use memdup_user_nul() helper instead of open-coding to > simplify the code. > > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang > --- > drivers/staging/greybus/camera.c | 13 +++-- > 1 file changed, 3 insertions(+

[PATCH net-next 1/1] stmmac: intel: use managed PCI function on probe and resume

2021-03-31 Thread Wong Vee Khee
Update dwmac-intel to use managed function, i.e. pcim_enable_device(). This will allow devres framework to call resource free function for us. Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff

[PATCH] misc: vmw_vmci: initialize payload passed to vmci_send_datagram()

2021-03-31 Thread Tetsuo Handa
KMSAN complains that the vmci_use_ppn64() == false path in vmci_dbell_register_notification_bitmap() left upper 32bits of bitmap_set_msg.bitmap_ppn64 member uninitialized. KMSAN also complains that vmci_check_host_caps() left the payload part of check_msg uninitialized. [ 21.458023][T1] v

Re: [PATCH 0/3] Fix block comment warnings

2021-03-31 Thread Greg KH
On Wed, Mar 31, 2021 at 01:05:34PM -0700, Deborah Brouwer wrote: > This patchset fixes checkpatch warnings arising > from the block comments Note, your 0/X email subject should also have the subsystem/driver prefix in there so that we know what this series is for. Much like your individual patche

Re: [PATCH v1 3/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

2021-03-31 Thread Jarkko Sakkinen
On Thu, Apr 01, 2021 at 12:11:32PM +1100, Herbert Xu wrote: > On Wed, Mar 31, 2021 at 04:34:29PM -0700, Eric Biggers wrote: > > On Thu, Apr 01, 2021 at 02:31:46AM +0300, Jarkko Sakkinen wrote: > > > > > > It's a bummer but uapi is the god in the end. Since TPM does not do it > > > today, that beha

Re: [PATCH v1 3/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

2021-03-31 Thread Jarkko Sakkinen
On Wed, Mar 31, 2021 at 04:34:29PM -0700, Eric Biggers wrote: > On Thu, Apr 01, 2021 at 02:31:46AM +0300, Jarkko Sakkinen wrote: > > > > It's a bummer but uapi is the god in the end. Since TPM does not do it > > today, that behaviour must be supported forever. That's why a boot option > > AND a wa

Re: [PATCH 1/1] arm: dts: owl-s500-roseapplepi: Add ATC2603C PMIC

2021-03-31 Thread Manivannan Sadhasivam
On Fri, Mar 12, 2021 at 11:49:27AM +0200, Cristian Ciocaltea wrote: > Add device tree node for ATC2603C PMIC and remove the 'fixed-3.1V' > dummy regulator used for the uSD supply. > > Additionally, add 'SYSPWR' fixed regulator and provide cpu0 supply. > > Signed-off-by: Cristian Ciocaltea Appli

[PATCH] PCI: merge slot and bus reset implementations

2021-03-31 Thread Raphael Norwitz
Slot resets are bus resets with additional logic to prevent a device from being removed during the reset. Currently slot and bus resets have separate implementations in pci.c, complicating higher level logic. As discussed on the mailing list, they should be combined into a generic function which pe

Re: [PATCH v2 2/3] drivers/tty/serial/8250: add DT property for aspeed vuart sirq polarity

2021-03-31 Thread Andrew Jeffery
On Thu, 1 Apr 2021, at 15:48, Zev Weiss wrote: > On Wed, Mar 31, 2021 at 11:15:44PM CDT, Joel Stanley wrote: > >On Thu, 1 Apr 2021 at 00:57, Zev Weiss wrote: > >> > >> This provides a simple boolean to use instead of the deprecated > >> aspeed,sirq-polarity-sense property. > >> > >> Signed-off-

[RESEND PATCH v4 1/2] dt-bindings: drm/bridge: anx7625: Add power supplies

2021-03-31 Thread Hsin-Yi Wang
anx7625 requires 3 power supply regulators. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring Reviewed-by: Robert Foss --- v3->v4: rebase to drm-misc/for-linux-next --- .../bindings/display/bridge/analogix,anx7625.yaml | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Do

[RESEND PATCH v4 2/2] drm/bridge: anx7625: disable regulators when power off

2021-03-31 Thread Hsin-Yi Wang
When suspending the driver, anx7625_power_standby() will be called to turn off reset-gpios and enable-gpios. However, power supplies are not disabled. To save power, the driver can get the power supply regulators and turn off them in anx7625_power_standby(). Signed-off-by: Hsin-Yi Wang Reviewed-b

Re: [PATCH 1/1] arm: dts: owl-s500-roseapplepi: Add ATC2603C PMIC

2021-03-31 Thread Manivannan Sadhasivam
On Fri, Mar 12, 2021 at 11:49:27AM +0200, Cristian Ciocaltea wrote: > Add device tree node for ATC2603C PMIC and remove the 'fixed-3.1V' > dummy regulator used for the uSD supply. > > Additionally, add 'SYSPWR' fixed regulator and provide cpu0 supply. > > Signed-off-by: Cristian Ciocaltea Revie

Re: [PATCH v2 0/6] Add support for Actions Semi Owl socinfo

2021-03-31 Thread Manivannan Sadhasivam
On Tue, Mar 30, 2021 at 04:48:15PM +0300, Cristian Ciocaltea wrote: > This patchset adds a socinfo driver which provides information about > Actions Semi Owl SoCs to user space via sysfs: machine, family, soc_id, > serial_number. > > Please note the serial number is currently available only for th

[PATCH 1/2] x86/sgx: Do not update sgx_nr_free_pages in sgx_setup_epc_section()

2021-03-31 Thread Jarkko Sakkinen
Now that the sanitization process will make pages available by calling sgx_free_epc_page(), sgx_setup_epc_section() should not touch to sgx_nr_free_pages. This will result sgx_nr_free_pages to contain 2x the number of actual free pages. Simply, remove the statement. Fixes: 51ab30eb2ad4 ("x86/sgx:

[PATCH 2/2] x86/sgx: Add sgx_nr_{all, free}_pages to the debugfs

2021-03-31 Thread Jarkko Sakkinen
Add two debugs attributes: * /sys/kernel/debug/x86/sgx_nr_all_pages * /sys/kernel/debug/x86/sgx_nr_free_pages These provide useful statistics for testing purposes. E.g. on a NUC7CJYH2, when no enclaves are running, and EPC set to 32 MB: $ sudo cat /sys/kernel/debug/x86/sgx_nr_all_pages 5632 $

Re: [PATCH v2 2/3] drivers/tty/serial/8250: add DT property for aspeed vuart sirq polarity

2021-03-31 Thread Zev Weiss
On Wed, Mar 31, 2021 at 11:15:44PM CDT, Joel Stanley wrote: On Thu, 1 Apr 2021 at 00:57, Zev Weiss wrote: This provides a simple boolean to use instead of the deprecated aspeed,sirq-polarity-sense property. Signed-off-by: Zev Weiss --- drivers/tty/serial/8250/8250_aspeed_vuart.c | 3 +++ 1

Re: [PATCH v3] sysfs: Unconditionally use vmalloc for buffer

2021-03-31 Thread Greg Kroah-Hartman
On Wed, Mar 31, 2021 at 07:21:45PM -0700, Kees Cook wrote: > The sysfs interface to seq_file continues to be rather fragile > (seq_get_buf() should not be used outside of seq_file), as seen with > some recent exploits[1]. Move the seq_file buffer to the vmap area > (while retaining the accounting f

Re: [PATCH v5 00/27] Memory Folios

2021-03-31 Thread Al Viro
On Tue, Mar 30, 2021 at 10:09:29PM +0100, Matthew Wilcox wrote: > That's a very Intel-centric way of looking at it. Other architectures > support a multitude of page sizes, from the insane ia64 (4k, 8k, 16k, then > every power of four up to 4GB) to more reasonable options like (4k, 32k, > 256k, 2

Re: [PATCH v2] kernel/resource: Fix locking in request_free_mem_region

2021-03-31 Thread Alistair Popple
On Thursday, 1 April 2021 3:56:05 PM AEDT Muchun Song wrote: > External email: Use caution opening links or attachments > > > On Fri, Mar 26, 2021 at 9:22 AM Alistair Popple wrote: > > > > request_free_mem_region() is used to find an empty range of physical > > addresses for hotplugging ZONE_DEV

Re: [PATCH v1 1/4] docs: make reporting-issues.rst official and delete reporting-bugs.rst

2021-03-31 Thread Alex Shi
On 2021/3/31 下午4:33, Wu X.C. wrote: > Cc Alex Shi's new email > > On Tue, Mar 30, 2021 at 04:13:04PM +0200, Thorsten Leemhuis wrote: >> Removing Documentation/admin-guide/reporting-bugs.rst will break links >> in some of the translations. I was unsure if simply changing them to >> Documentatio

Re: [PATCH v2 3/3] dt-bindings: serial: 8250: add aspeed,sirq-active-high

2021-03-31 Thread Zev Weiss
On Wed, Mar 31, 2021 at 11:04:44PM CDT, Andrew Jeffery wrote: On Thu, 1 Apr 2021, at 11:27, Zev Weiss wrote: This provides a simpler, more direct alternative to the deprecated aspeed,sirq-polarity-sense property for indicating the polarity of the Aspeed VUART's SIRQ line. Signed-off-by: Zev W

Re: [PATCH v2] kernel/resource: Fix locking in request_free_mem_region

2021-03-31 Thread Muchun Song
On Fri, Mar 26, 2021 at 9:22 AM Alistair Popple wrote: > > request_free_mem_region() is used to find an empty range of physical > addresses for hotplugging ZONE_DEVICE memory. It does this by iterating > over the range of possible addresses using region_intersects() to see if > the range is free.

[PATCH v5 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-31 Thread Kuppuswamy Sathyanarayanan
When running as a TDX guest, there are a number of existing, privileged instructions that do not work. If the guest kernel uses these instructions, the hardware generates a #VE. You can find the list of unsupported instructions in Intel Trust Domain Extensions (Intel® TDX) Module specification, se

[PATCH] drivers: net: fix memory leak in atusb_probe

2021-03-31 Thread Pavel Skripkin
syzbot reported memory leak in atusb_probe()[1]. The problem was in atusb_alloc_urbs(). Since urb is anchored, we need to release the reference to correctly free the urb backtrace: [] kmalloc include/linux/slab.h:559 [inline] [] usb_alloc_urb+0x66/0xe0 drivers/usb/core/urb.c:74 [] atus

[PATCH v3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-03-31 Thread Zev Weiss
This is a relatively low-cost AST2500-based Xeon E-2100/E-2200 series mini-ITX board that we hope can provide a decent platform for OpenBMC development. This initial device-tree provides the necessary configuration for basic BMC functionality such as host power control, serial console and KVM supp

RE: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-03-31 Thread Liu, Yi L
> From: Jason Gunthorpe > Sent: Wednesday, March 31, 2021 8:41 PM > > On Wed, Mar 31, 2021 at 07:38:36AM +, Liu, Yi L wrote: > > > The reason is /dev/ioasid FD is per-VM since the ioasid allocated to > > the VM should be able to be shared by all assigned device for the VM. > > But the SVA op

Re: [PATCH v7 3/8] mm/rmap: Split try_to_munlock from try_to_unmap

2021-03-31 Thread Alistair Popple
On Wednesday, 31 March 2021 10:57:46 PM AEDT Jason Gunthorpe wrote: > On Wed, Mar 31, 2021 at 03:15:47PM +1100, Alistair Popple wrote: > > On Wednesday, 31 March 2021 2:56:38 PM AEDT John Hubbard wrote: > > > On 3/30/21 3:56 PM, Alistair Popple wrote: > > > ... > > > >> +1 for renaming "munlock*" i

Re: [PATCH] psi: allow unprivileged users with CAP_SYS_RESOURCE to write psi files

2021-03-31 Thread Eric W. Biederman
Josh Hunt writes: > Currently only root can write files under /proc/pressure. Relax this to > allow tasks running as unprivileged users with CAP_SYS_RESOURCE to be > able to write to these files. The test for CAP_SYS_RESOURCE really needs to be in open rather than in write. Otherwise a suid roo

Re: [PATCH] powerpc/8xx: Load modules closer to kernel text

2021-03-31 Thread Michael Ellerman
Christophe Leroy writes: > Le 31/03/2021 à 15:39, Michael Ellerman a écrit : >> Christophe Leroy writes: >>> On the 8xx, TASK_SIZE is 0x8000. The space between TASK_SIZE and >>> PAGE_OFFSET is not used. >>> >>> Use it to load modules in order to minimise the distance between >>> kernel text a

mmotm 2021-03-31-21-27 uploaded

2021-03-31 Thread akpm
The mm-of-the-moment snapshot 2021-03-31-21-27 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH v4 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-31 Thread Andi Kleen
On Wed, Mar 31, 2021 at 08:46:18PM -0700, Dave Hansen wrote: > On 3/31/21 8:28 PM, Andi Kleen wrote: > >> The hardware (and VMMs and SEAM) have ways of telling the guest kernel > >> what is supported: CPUID. If it screws up, and the guest gets an > >> unexpected #VE, so be it. > > The main reason

[PATCH] psi: allow unprivileged users with CAP_SYS_RESOURCE to write psi files

2021-03-31 Thread Josh Hunt
Currently only root can write files under /proc/pressure. Relax this to allow tasks running as unprivileged users with CAP_SYS_RESOURCE to be able to write to these files. Signed-off-by: Josh Hunt --- kernel/sched/psi.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a

  1   2   3   4   5   6   7   8   9   10   >