Re: [RFC PATCH v3 5/6] dt-bindings: of: Add restricted DMA pool

2021-01-11 Thread Claire Chang
On Fri, Jan 8, 2021 at 2:15 AM Florian Fainelli wrote: > > On 1/7/21 10:00 AM, Konrad Rzeszutek Wilk wrote: > >>> > >>> > >>> - Nothing stops the physical device from bypassing the SWIOTLB buffer. > >>>That is if an errant device screwed up the length or DMA address, the > >>>SWIOTLB

Re: [PATCH 03/11] kasan: clean up comments in tests

2021-01-11 Thread Alexander Potapenko
On Tue, Jan 5, 2021 at 7:28 PM Andrey Konovalov wrote: > > Clarify and update comments and info messages in KASAN tests. > > Signed-off-by: Andrey Konovalov > Link: > https://linux-review.googlesource.com/id/I6c816c51fa1e0eb7aa3dead6bda1f339d2af46c8 > void *kasan_ptr_result; > int

Re: [PATCH v3] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call

2021-01-11 Thread Greg KH
On Tue, Jan 12, 2021 at 01:36:29PM +0800, Cindy Lu wrote: > In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. > this cb.private will finally use in vhost_vdpa_config_cb as > vhost_vdpa. Fix this issue. > > Fixes: 776f395004d82 ("vhost_vdpa: Support config interrupt in vdpa") >

Re: [PATCH v2] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call

2021-01-11 Thread Greg KH
On Tue, Jan 12, 2021 at 01:32:27PM +0800, Cindy Lu wrote: > In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. > this cb.private will finally use in vhost_vdpa_config_cb as > vhost_vdpa. Fix this issue. > > Signed-off-by: Cindy Lu > --- > drivers/vhost/vdpa.c | 2 +- > 1 file

Re: [RFC PATCH v3 0/6] Restricted DMA

2021-01-11 Thread Claire Chang
On Fri, Jan 8, 2021 at 1:59 AM Florian Fainelli wrote: > > On 1/7/21 9:42 AM, Claire Chang wrote: > > >> Can you explain how ATF gets involved and to what extent it does help, > >> besides enforcing a secure region from the ARM CPU's perpsective? Does > >> the PCIe root complex not have an IOMMU

Re: [PATCH v2 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-01-11 Thread Michal Hocko
On Mon 11-01-21 09:06:22, Suren Baghdasaryan wrote: > process_madvise currently requires ptrace attach capability. > PTRACE_MODE_ATTACH gives one process complete control over another > process. It effectively removes the security boundary between the > two processes (in one direction). Granting

Re: [RFC PATCH bpf-next 1/2] bpf: share BTF "show" implementation between kernel and libbpf

2021-01-11 Thread Andrii Nakryiko
On Mon, Jan 11, 2021 at 9:34 AM Alan Maguire wrote: > > libbpf already supports a "dumper" API for dumping type information, > but there is currently no support for dumping typed _data_ via libbpf. > However this functionality does exist in the kernel, in part to > facilitate the

[PATCH] pci: avoid unsync of LTR mechanism configuration

2021-01-11 Thread mingchuang.qiao
From: Mingchuang Qiao In pci bus scan flow, the LTR mechanism enable bit of DEVCTL2 register is configured in pci_configure_ltr(). If device and it's bridge both support LTR mechanism, LTR mechanism of device and it's bridge will be enabled in DEVCTL2 register. And the flag pci_dev->ltr_path

Re: [PATCH 02/11] kasan: clarify HW_TAGS impact on TBI

2021-01-11 Thread Alexander Potapenko
On Tue, Jan 5, 2021 at 7:28 PM Andrey Konovalov wrote: > > Mention in the documentation that enabling CONFIG_KASAN_HW_TAGS > always results in in-kernel TBI (Top Byte Ignore) being enabled. > > Also do a few minor documentation cleanups. > > Signed-off-by: Andrey Konovalov > Link: >

Re: [PATCH 01/11] kasan: prefix exported functions with kasan_

2021-01-11 Thread Alexander Potapenko
On Tue, Jan 5, 2021 at 7:28 PM Andrey Konovalov wrote: > > There's a number of internal KASAN functions that are used across multiple > source code files and therefore aren't marked as static inline. To avoid > littering the kernel function names list with generic functions, prefix > all such

Re: [PATCH 4.14 00/57] 4.14.215-rc1 review

2021-01-11 Thread Naresh Kamboju
On Mon, 11 Jan 2021 at 18:36, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.215 release. > There are 57 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH v7 3/3] perf-stat: enable counting events for BPF programs

2021-01-11 Thread Namhyung Kim
Hi, On Wed, Dec 30, 2020 at 6:42 AM Song Liu wrote: > > Introduce perf-stat -b option, which counts events for BPF programs, like: > > [root@localhost ~]# ~/perf stat -e ref-cycles,cycles -b 254 -I 1000 > 1.487903822115,200 ref-cycles > 1.487903822 86,012

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-11 Thread Leon Romanovsky
On Tue, Jan 12, 2021 at 06:59:35AM +, Tian, Kevin wrote: > > From: Leon Romanovsky > > Sent: Tuesday, January 12, 2021 1:53 PM > > > > On Tue, Jan 12, 2021 at 01:17:11PM +0800, Lu Baolu wrote: > > > Hi, > > > > > > On 1/7/21 3:16 PM, Leon Romanovsky wrote: > > > > On Thu, Jan 07, 2021 at

Re: [PATCH bpf-next 4/4] bpf: runqslower: use task local storage

2021-01-11 Thread Yonghong Song
On 1/11/21 11:14 PM, Andrii Nakryiko wrote: On Mon, Jan 11, 2021 at 7:24 PM Yonghong Song wrote: On 1/11/21 2:54 PM, Song Liu wrote: On Jan 11, 2021, at 9:49 AM, Yonghong Song wrote: On 1/8/21 3:19 PM, Song Liu wrote: Replace hashtab with task local storage in runqslower. This

Re: [PATCH 4/7] spi: spi-geni-qcom: Add support for GPI dma

2021-01-11 Thread Lukas Wunner
On Mon, Jan 11, 2021 at 08:46:48PM +0530, Vinod Koul wrote: > @@ -328,8 +609,34 @@ static int spi_geni_init(struct spi_geni_master *mas) > spi_tx_cfg &= ~CS_TOGGLE; > writel(spi_tx_cfg, se->base + SE_SPI_TRANS_CFG); > > + mas->tx = dma_request_slave_channel(mas->dev, "tx"); > +

Re: [PATCH 4.19 00/77] 4.19.167-rc1 review

2021-01-11 Thread Naresh Kamboju
On Mon, 11 Jan 2021 at 18:38, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.167 release. > There are 77 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH V8 1/1] i2c: i2c-qcom-geni: Add shutdown callback for i2c

2021-01-11 Thread Akash Asthana
On 1/8/2021 8:35 PM, Roja Rani Yarubandi wrote: If the hardware is still accessing memory after SMMU translation is disabled (as part of smmu shutdown callback), then the IOVAs (I/O virtual address) which it was using will go on the bus as the physical addresses which will result in unknown

Re: [PATCH 1/5] mm: Introduce ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE

2021-01-11 Thread Oscar Salvador
On Mon, Jan 11, 2021 at 05:52:19PM +0100, David Hildenbrand wrote: > On 17.12.20 14:07, Oscar Salvador wrote: > > In order to use self-hosted memmap array, the platform needs to have > > support for CONFIG_SPARSEMEM_VMEMMAP and altmap. > > Currently, only arm64, PPC and x86_64 have the support, so

Re: [PATCH bpf-next 2/2] selftests: bpf: Add a new test for bare tracepoints

2021-01-11 Thread Andrii Nakryiko
On Mon, Jan 11, 2021 at 10:20 AM Qais Yousef wrote: > > Reuse module_attach infrastructure to add a new bare tracepoint to check > we can attach to it as a raw tracepoint. > > Signed-off-by: Qais Yousef > --- > > Andrii > > I was getting the error below when I was trying to run the test. > I had

Re: [PATCH v3] proc_sysctl: fix oops caused by incorrect command parameters.

2021-01-11 Thread Michal Hocko
On Mon 11-01-21 22:28:45, Andrew Morton wrote: > On Tue, 12 Jan 2021 14:24:05 +0800 Xiaoming Ni wrote: > > > On 2021/1/12 12:33, Andrew Morton wrote: > > > On Tue, 12 Jan 2021 11:31:55 +0800 Xiaoming Ni > > > wrote: > > > > > >> The process_sysctl_arg() does not check whether val is empty

Re: [PATCH v1 0/7] coresight: etm-perf: Fix pid tracing with VHE

2021-01-11 Thread Leo Yan
On Mon, Jan 11, 2021 at 11:16:46AM -0700, Mathieu Poirier wrote: > Hi Leo, > > Suzuki and Mike have pointed out a few things to modify and there was a couple > of kernel bot warnings to address as well. As such I will wait for your next > revision before looking at this set. Yeah, this is fine

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-11 Thread Leo Yan
On Mon, Jan 11, 2021 at 04:22:39PM +, Mike Leach wrote: > Hi Leo, > > On Sat, 9 Jan 2021 at 07:44, Leo Yan wrote: > > > > From: Suzuki K Poulose > > > > When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. > > So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the

Re: [PATCH 1/2] misc: eeprom_93xx46: Fix module alias to enable module autoprobe

2021-01-11 Thread Vignesh Raghavendra
On 1/7/21 10:09 PM, Aswath Govindraju wrote: > Fix module autoprobe by correcting module alias to match the string from > /sys/class/.../spi1.0/modalias content. > > Fixes: 06b4501e88ad ("misc/eeprom: add driver for microwire 93xx46 EEPROMs") > Signed-off-by: Aswath Govindraju > --- >

Re: [PATCH -next] f2fs: docs: rectify the table header in sysfs-fs-f2fs

2021-01-11 Thread Chao Yu
On 2021/1/12 14:39, Lukas Bulwahn wrote: Commit 969945899a35 ("f2fs: introduce sb_status sysfs node") documents the sb_status values in a table in ./Documentation/ABI/testing/sysfs-fs-f2fs, but the table header of the first column has a wrong length. Thanks for fixing this, however original

[tip:x86/urgent] BUILD SUCCESS 7024f60d655272bd2ca1d3a4c9e0a63319b1eea1

2021-01-11 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20210111 x86_64 randconfig-a006-20210111 x86_64 randconfig-a001-20210111 x86_64

Re: [PATCH v7 0/2] PCI: cadence: Retrain Link to work around Gen2

2021-01-11 Thread Kishon Vijay Abraham I
On 30/12/20 5:35 pm, Nadeem Athani wrote: > Cadence controller will not initiate autonomous speed change if strapped > as Gen2. The Retrain Link bit is set as quirk to enable this speed change. > Adding a quirk flag for defective IP. In future IP revisions this will not > be applicable. > >

Re: [PATCH v2 29/34] Intel tsens i2c slave driver.

2021-01-11 Thread Randy Dunlap
On 1/8/21 1:25 PM, mgr...@linux.intel.com wrote: > diff --git a/drivers/misc/intel_tsens/Kconfig > b/drivers/misc/intel_tsens/Kconfig > index 8b263fdd80c3..c2138339bd89 100644 > --- a/drivers/misc/intel_tsens/Kconfig > +++ b/drivers/misc/intel_tsens/Kconfig > @@ -14,6 +14,20 @@ config

Re: [PATCH bpf-next 4/4] bpf: runqslower: use task local storage

2021-01-11 Thread Andrii Nakryiko
On Mon, Jan 11, 2021 at 7:24 PM Yonghong Song wrote: > > > > On 1/11/21 2:54 PM, Song Liu wrote: > > > > > >> On Jan 11, 2021, at 9:49 AM, Yonghong Song wrote: > >> > >> > >> > >> On 1/8/21 3:19 PM, Song Liu wrote: > >>> Replace hashtab with task local storage in runqslower. This improves the >

Re: [PATCH 5/6] compat: add set_maybe_compat_user_sigmask helper

2021-01-11 Thread kernel test robot
Hi Willem, Thank you for the patch! Yet something to improve: [auto build test ERROR on kselftest/next] [also build test ERROR on linus/master v5.11-rc3 next-20210111] [cannot apply to linux/master hnaz-linux-mm/master] [If your patch is applied to the wrong git tree, kindly drop us a note

Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default

2021-01-11 Thread Marek Szyprowski
ers so that the driver core is aware of the devices and their >>>> status. See [1] for an example of such a case. >>>> >>>> [1] - >>>> https://lore.kernel.org/lkml/CAGETcx9PiX==mlxb9po8myyk6u2vhpvwtmsa5nkd-ywh5xh...@mail.gmail.com/ >>>>

Re: [RFC PATCH v3 02/16] cxl/acpi: Add an acpi_cxl module for the CXL interconnect

2021-01-11 Thread Randy Dunlap
On 1/11/21 2:51 PM, Ben Widawsky wrote: > diff --git a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig > new file mode 100644 > index ..68da926ba5b1 > --- /dev/null > +++ b/drivers/cxl/Kconfig > @@ -0,0 +1,36 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +menuconfig CXL_BUS > +

Re: [RFC PATCH v3 04/16] cxl/mem: Introduce a driver for CXL-2.0-Type-3 endpoints

2021-01-11 Thread Randy Dunlap
On 1/11/21 2:51 PM, Ben Widawsky wrote: > diff --git a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig > index 68da926ba5b1..0ac5080cd6e0 100644 > --- a/drivers/cxl/Kconfig > +++ b/drivers/cxl/Kconfig > @@ -33,4 +33,26 @@ config CXL_ACPI > specification. > > If unsure say 'm' > + >

Re: [PATCH bpf-next 2/4] selftests/bpf: add non-BPF_LSM test for task local storage

2021-01-11 Thread Andrii Nakryiko
On Fri, Jan 8, 2021 at 3:30 PM Song Liu wrote: > > Task local storage is enabled for tracing programs. Add a test for it > without CONFIG_BPF_LSM. > > Signed-off-by: Song Liu > --- > .../bpf/prog_tests/test_task_local_storage.c | 34 + >

Re: [PATCH] mm: vmscan: support equal reclaim for anon and file pages

2021-01-11 Thread Michal Hocko
On Mon 11-01-21 12:58:43, Sudarshan Rajagopalan wrote: > When performing memory reclaim support treating anonymous and > file backed pages equally. > Swapping anonymous pages out to memory can be efficient enough > to justify treating anonymous and file backed pages equally. This changelog

RE: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-11 Thread Tian, Kevin
> From: Leon Romanovsky > Sent: Tuesday, January 12, 2021 1:53 PM > > On Tue, Jan 12, 2021 at 01:17:11PM +0800, Lu Baolu wrote: > > Hi, > > > > On 1/7/21 3:16 PM, Leon Romanovsky wrote: > > > On Thu, Jan 07, 2021 at 06:55:16AM +, Tian, Kevin wrote: > > > > > From: Leon Romanovsky > > > > >

Re: [PATCH v8 0/3] Introduce Embedded Controller driver for Acer A500

2021-01-11 Thread Dmitry Osipenko
28.12.2020 19:05, Dmitry Osipenko пишет: > This series adds support for the Embedded Controller which is found on > Acer Iconia Tab A500 (Android tablet device). > > The Embedded Controller is ENE KB930 and it's running firmware customized > for the A500. The firmware interface may be reused by

Re: [PATCH v3 0/9] Support Runtime PM and host mode by Tegra ChipIdea USB driver

2021-01-11 Thread Dmitry Osipenko
29.12.2020 17:26, Dmitry Osipenko пишет: > 29.12.2020 08:16, Peter Chen пишет: >> On 20-12-18 15:02:37, Dmitry Osipenko wrote: >>> This series implements Runtime PM support for the Tegra ChipIdea USB driver. >>> It also squashes the older ehci-tegra driver into the ChipIdea driver, hence >>> the

Re: [PATCH 5.4 00/92] 5.4.89-rc1 review

2021-01-11 Thread Naresh Kamboju
On Mon, 11 Jan 2021 at 18:41, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.89 release. > There are 92 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH V2] arch: x86: kernel: cpu: Takes a letter away and put a semicolon too, to match below stuc member

2021-01-11 Thread Randy Dunlap
On 1/11/21 9:27 PM, Bhaskar Chowdhury wrote: > s/kernlfs/kernfs/ > > A semicolon at the end of member name > > Signed-off-by: Bhaskar Chowdhury > --- > As pointed out by Gustavo and Randy in version one of this patch > > arch/x86/kernel/cpu/resctrl/internal.h | 2 +- > 1 file changed, 1

Re: [PATCH 1/2] scsi: ufs: Fix a possible NULL pointer issue

2021-01-11 Thread Can Guo
On 2021-01-12 14:35, Stanley Chu wrote: Hi Can, On Sat, 2021-01-02 at 05:59 -0800, Can Guo wrote: During system resume/suspend, hba could be NULL. In this case, do not touch eh_sem. Fixes: 88a92d6ae4fe ("scsi: ufs: Serialize eh_work with system PM events and async scan") Signed-off-by:

Re: [PATCH 5.10 000/144] 5.10.7-rc2 review

2021-01-11 Thread Naresh Kamboju
On Mon, 11 Jan 2021 at 21:44, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.7 release. > There are 144 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH] PCI: Add a quirk to enable SVA for HiSilicon chip

2021-01-11 Thread Zhangfei Gao
HiSilicon KunPeng920 and KunPeng930 have devices appear as PCI but are actually on the AMBA bus. These fake PCI devices can not support tlp and have to enable SMMU stall mode to use the SVA feature. Add a quirk to set dma-can-stall property and enable tlp for these devices. Signed-off-by:

Re: [PATCH] docs: ALSA: Fix reference to mixart.rst

2021-01-11 Thread Takashi Iwai
On Mon, 11 Jan 2021 21:01:10 +0100, Jonathan Corbet wrote: > > On Fri, 1 Jan 2021 23:19:42 +0100 > Jonathan Neuschäfer wrote: > > > MIXART.txt has been converted to ReST and renamed. Fix the reference > > in alsa-configuration.rst. > > > > Fixes: 3d8e81862ce4 ("ALSA: doc: ReSTize MIXART.txt")

[PATCH v4 2/2] arm64: dts: mt8192: Add node for the Mali GPU

2021-01-11 Thread Nick Fan
Add a basic GPU node for mt8192. Signed-off-by: Nick Fan --- This patch depends on Mediatek power and regulator support. Listed as following. [1]https://lore.kernel.org/patchwork/patch/1336293/ [2]https://patchwork.kernel.org/project/linux-mediatek/list/?series=374013

[PATCH v4 1/2] dt-bindings: Add DT schema for Arm Mali Valhall GPU

2021-01-11 Thread Nick Fan
Add devicetree schema for Arm Mali Valhall GPU Define a compatible string for the Mali Valhall GPU for Mediatek's SoC platform. Signed-off-by: Nick Fan --- .../bindings/gpu/arm,mali-valhall.yaml| 252 ++ 1 file changed, 252 insertions(+) create mode 100644

Re: [Freedreno] [PATCH] drm/msm: Only enable A6xx LLCC code on A6xx

2021-01-11 Thread Sai Prakash Ranjan
Hi Jordan, On 2021-01-11 21:41, Jordan Crouse wrote: On Mon, Jan 11, 2021 at 09:54:12AM +0530, Sai Prakash Ranjan wrote: Hi Rob, On 2021-01-08 22:16, Rob Clark wrote: >On Fri, Jan 8, 2021 at 6:05 AM Sai Prakash Ranjan > wrote: >> >>On 2021-01-08 19:09, Konrad Dybcio wrote: Konrad, can

Re: [PATCH v2] i2c: tegra: Wait for config load atomically while in ISR

2021-01-11 Thread Dmitry Osipenko
11.01.2021 22:31, Dmitry Osipenko пишет: > 11.01.2021 19:08, Mikko Perttunen пишет: >> Upon a communication error, the interrupt handler can call >> tegra_i2c_disable_packet_mode. This causes a sleeping poll to happen >> unless the current transaction was marked atomic. Fix this by >> making the

[PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr

2021-01-11 Thread jason_wang
From: Jason_wang if CONFIG_COMPAT is enabled. dvr ioctl can not be invoked by user. need .compat_ioctl to identify the ioctl function. Signed-off-by: jason_wang ---  drivers/media/dvb-core/dmxdev.c | 1 +  1 file changed, 1 insertion(+) diff --git a/drivers/media/dvb-core/dmxdev.c

Re: [PATCH v2] can: mcba_usb: Fix memory leak when cancelling urb

2021-01-11 Thread Minh Bùi Quang
On Mon, Jan 11, 2021 at 9:31 PM Bui Quang Minh wrote: > > On Mon, Jan 11, 2021 at 01:00:31PM +0100, Oliver Neukum wrote: > > Am Montag, den 11.01.2021, 10:49 + schrieb Bui Quang Minh: > > > In mcba_usb_read_bulk_callback(), when we don't resubmit or fails to > > > resubmit the urb, we need to

[PATCH -next] f2fs: docs: rectify the table header in sysfs-fs-f2fs

2021-01-11 Thread Lukas Bulwahn
Commit 969945899a35 ("f2fs: introduce sb_status sysfs node") documents the sb_status values in a table in ./Documentation/ABI/testing/sysfs-fs-f2fs, but the table header of the first column has a wrong length. Hence, make htmldocs warns: Documentation/ABI/testing/sysfs-fs-f2fs:382: WARNING:

Re: [PATCH v3 1/1] can: dev: add software tx timestamps

2021-01-11 Thread Vincent MAILHOL
On Tue. 12 Jan 2021 at 11:14, Richard Cochran wrote: > > On Tue, Jan 12, 2021 at 09:00:33AM +0900, Vincent MAILHOL wrote: > > Out of curiosity, which programs do you use? I guess wireshark > > but please let me know if you use any other programs (I just use > > to write a small C program to do

[PATCH 2/2] KVM: SVM: Add support for VMCB address check change

2021-01-11 Thread Wei Huang
New AMD CPUs have a change that checks VMEXIT intercept on special SVM instructions before checking their EAX against reserved memory region. This change is indicated by CPUID_0x800A_EDX[28]. If it is 1, KVM doesn't need to intercept and emulate #GP faults for such instructions because #GP

[PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-11 Thread Wei Huang
From: Bandan Das While running VM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD CPUs check EAX against reserved memory regions (e.g. SMM memory on host) before checking VMCB's instruction intercept. If EAX falls into such memory areas, #GP is triggered before VMEXIT. This causes problem

Re: [PATCH 1/2] scsi: ufs: Fix a possible NULL pointer issue

2021-01-11 Thread Stanley Chu
Hi Can, On Sat, 2021-01-02 at 05:59 -0800, Can Guo wrote: > During system resume/suspend, hba could be NULL. In this case, do not touch > eh_sem. > > Fixes: 88a92d6ae4fe ("scsi: ufs: Serialize eh_work with system PM events and > async scan") > > Signed-off-by: Can Guo > > diff --git

Re: [PATCH v3] proc_sysctl: fix oops caused by incorrect command parameters.

2021-01-11 Thread Andrew Morton
On Tue, 12 Jan 2021 14:24:05 +0800 Xiaoming Ni wrote: > On 2021/1/12 12:33, Andrew Morton wrote: > > On Tue, 12 Jan 2021 11:31:55 +0800 Xiaoming Ni > > wrote: > > > >> The process_sysctl_arg() does not check whether val is empty before > >> invoking strlen(val). If the command line

[PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr

2021-01-11 Thread 王杰清 [jason_wang]
From: Jason_wang if CONFIG_COMPAT is enabled. dvr ioctl can not be invoked by user. need .compat_ioctl to identify the ioctl function. Signed-off-by: jason_wang ---  drivers/media/dvb-core/dmxdev.c | 1 +  1 file changed, 1 insertion(+) diff --git

Re: [PATCH v3] proc_sysctl: fix oops caused by incorrect command parameters.

2021-01-11 Thread Xiaoming Ni
On 2021/1/12 12:33, Andrew Morton wrote: On Tue, 12 Jan 2021 11:31:55 +0800 Xiaoming Ni wrote: The process_sysctl_arg() does not check whether val is empty before invoking strlen(val). If the command line parameter () is incorrectly configured and val is empty, oops is triggered. ---

Re: [PATCH] arm/kasan:fix the arry size of kasan_early_shadow_pte

2021-01-11 Thread Andrew Morton
On Sun, 10 Jan 2021 13:03:49 +0100 Linus Walleij wrote: > On Sun, Jan 10, 2021 at 11:21 AM hailong wrote: > > > >> +#ifndef PTE_HWTABLE_PTRS > > >> +#define PTE_HWTABLE_PTRS 0 > > >> +#endif > > > > > >Can this even happen? We have either pgtable-2level.h or > > >pgtable-3level.h, both of

Re: gdbserver + fsgsbase kaputt

2021-01-11 Thread Bae, Chang Seok
> On Jan 11, 2021, at 13:06, Andy Lutomirski wrote: > >> On Jan 11, 2021, at 12:00 PM, Borislav Petkov wrote: >> >> Or do you mean I should add "unsafe_fsgsbase" to grub cmdline and bisect >> with fsgsbase enabled in all test kernels? > > Yes. But I can also look myself in a bit. I was

[PATCH v2 2/2] perf stat: Take cgroups into account for shadow stats

2021-01-11 Thread Namhyung Kim
As of now it doesn't consider cgroups when collecting shadow stats and metrics so counter values from different cgroups will be saved in a same slot. This resulted in an incorrect numbers when those cgroups have different workloads. For example, let's look at the below - the cgroup A and C runs

Re: [PATCH 05/15] dt_bindings: mfd: Add ROHM BD71815 PMIC

2021-01-11 Thread Vaittinen, Matti
On Mon, 2021-01-11 at 13:06 -0600, Rob Herring wrote: > On Fri, Jan 08, 2021 at 03:34:52PM +0200, Matti Vaittinen wrote: > > Document DT bindings for ROHM BD71815. > > > > BD71815 is a single-chip power management IC mainly for battery- > > powered > > portable devices. The IC integrates 5

[PATCH v2 1/2] perf stat: Introduce struct runtime_stat_data

2021-01-11 Thread Namhyung Kim
To pass more info to the saved_value in the runtime_stat, add a new struct runtime_stat_data. Currently it only has 'ctx' field but later patch will add more. Suggested-by: Andi Kleen Signed-off-by: Namhyung Kim --- tools/perf/util/stat-shadow.c | 346 +- 1

Re: [PATCH -V8 1/3] numa balancing: Migrate on fault among multiple bound nodes

2021-01-11 Thread Huang, Ying
Hi, Peter, Huang Ying writes: > Now, NUMA balancing can only optimize the page placement among the > NUMA nodes if the default memory policy is used. Because the memory > policy specified explicitly should take precedence. But this seems > too strict in some situations. For example, on a

Re: [PATCH 06/15] dt_bindings: regulator: Add ROHM BD71815 PMIC regulators

2021-01-11 Thread Matti Vaittinen
On Mon, 2021-01-11 at 13:09 -0600, Rob Herring wrote: > On Fri, Jan 08, 2021 at 03:36:38PM +0200, Matti Vaittinen wrote: > > Add binding documentation for regulators on ROHM BD71815 PMIC. > > 5 bucks, 7 LDOs and a boost for LED. > > > > Signed-off-by: Matti Vaittinen > > --- > >

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

2021-01-11 Thread Chao Yu
Hi Stephen, On 2021/1/12 13:09, Stephen Rothwell wrote: Hi Chao, On Mon, 11 Jan 2021 15:54:19 +0800 Chao Yu wrote: On 2021/1/11 7:35, Jonathan Corbet wrote: On Mon, 11 Jan 2021 07:33:54 +1100 Stephen Rothwell wrote: On Thu, 7 Jan 2021 19:28:19 +0800 Chao Yu wrote: On 2021/1/7

Re: [PATCH v7 09/18] virt: acrn: Introduce I/O request management

2021-01-11 Thread Shuo A Liu
On Mon 11.Jan'21 at 13:52:19 -0800, Davidlohr Bueso wrote: On Wed, 06 Jan 2021, shuo.a@intel.com wrote: The processing flow of I/O requests are listed as following: a) The I/O handler of the hypervisor will fill an I/O request with PENDING state when a trapped I/O access happens in a User

Re: [PATCH] xen/privcmd: allow fetching resource sizes

2021-01-11 Thread Jürgen Groß
On 12.01.21 06:50, Jürgen Groß wrote: On 11.01.21 23:39, Andrew Cooper wrote: On 11/01/2021 22:09, boris.ostrov...@oracle.com wrote: On 1/11/21 10:29 AM, Roger Pau Monne wrote: +    xdata.domid = kdata.dom; +    xdata.type = kdata.type; +    xdata.id = kdata.id; + +    if (!kdata.addr &&

[PATCH v4 10/10] arm64: dts: allwinner: Move wakeup-capable IRQs to r_intc

2021-01-11 Thread Samuel Holland
All IRQs that can be used to wake up the system must be routed through r_intc, so they are visible to firmware while the system is suspended. In addition to the external NMI input, which is already routed through r_intc, these include PIO and R_PIO (gpio-keys), the LRADC, and the RTC.

[PATCH v4 05/10] ARM: dts: sunxi: Rename nmi_intc to r_intc

2021-01-11 Thread Samuel Holland
The R_INTC block controls more than just the NMI, and it is a different hardware block than the NMI INTC found in some other Allwinner SoCs, so the label "nmi_intc" is inaccurate. Name it "r_intc" to match the compatible and to match the few references in the vendor documentation. Signed-off-by:

[PATCH v4 07/10] ARM: dts: sunxi: h3/h5: Add r_intc node

2021-01-11 Thread Samuel Holland
The H3 and H5 SoCs have an additional interrupt controller in the RTC power domain that can be used to enable wakeup for certain IRQs. Add a node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v4 04/10] irqchip/sun6i-r: Add wakeup support

2021-01-11 Thread Samuel Holland
Maintain bitmaps of wake-enabled IRQs and mux inputs, and program them to the hardware during the syscore phase of suspend and shutdown. Then restore the original set of enabled IRQs (only the NMI) during resume. This serves two purposes. First, it lets power management firmware running on the

[PATCH v4 08/10] ARM: dts: sunxi: Move wakeup-capable IRQs to r_intc

2021-01-11 Thread Samuel Holland
All IRQs that can be used to wake up the system must be routed through r_intc, so they are visible to firmware while the system is suspended. In addition to the external NMI input, which is already routed through r_intc, these include PIO and R_PIO (gpio-keys), the LRADC, and the RTC.

[PATCH v4 09/10] arm64: dts: allwinner: Use the new r_intc binding

2021-01-11 Thread Samuel Holland
The binding of R_INTC was updated to allow specifying interrupts other than the external NMI, since routing those interrupts through the R_INTC driver allows using them for wakeup. Update the device trees to use the new binding. Signed-off-by: Samuel Holland ---

[PATCH v4 06/10] ARM: dts: sunxi: Use the new r_intc binding

2021-01-11 Thread Samuel Holland
The binding of R_INTC was updated to allow specifying interrupts other than the external NMI, since routing those interrupts through the R_INTC driver allows using them for wakeup. Update the device trees to use the new binding. Signed-off-by: Samuel Holland ---

[PATCH v4 00/10] sunxi: Support IRQ wakeup from deep sleep

2021-01-11 Thread Samuel Holland
Allwinner sun6i/sun8i/sun50i SoCs (A31 and newer) have two interrupt controllers: GIC and R_INTC. GIC does not support wakeup. R_INTC handles the external NMI pin, and provides 32+ IRQs to the ARISC. The first 16 of these correspond 1:1 to a block of GIC IRQs starting with the NMI. The last 13-16

[PATCH v4 01/10] dt-bindings: irq: sun6i-r: Split the binding from sun7i-nmi

2021-01-11 Thread Samuel Holland
The R_INTC in the A31 and newer sun8i/sun50i SoCs has additional functionality compared to the sun7i/sun9i NMI controller. Among other things, it multiplexes access to up to 128 interrupts corresponding to (and in parallel to) the first 128 GIC SPIs. This means the NMI is no longer the

[PATCH v4 02/10] dt-bindings: irq: sun6i-r: Add a compatible for the H3

2021-01-11 Thread Samuel Holland
The Allwinner H3 SoC contains an R_INTC that is, as far as we know, compatible with the R_INTC present in other sun8i SoCs starting with the A31. Since the R_INTC hardware is undocumented, introduce a new compatible for the R_INTC variant in this SoC, in case there turns out to be some difference.

[PATCH v4 03/10] irqchip/sun6i-r: Use a stacked irqchip driver

2021-01-11 Thread Samuel Holland
The R_INTC in the A31 and newer sun8i/sun50i SoCs is more similar to the original sun4i interrupt controller than the sun7i/sun9i NMI controller. It is used for two distinct purposes: - To control the trigger, latch, and mask for the NMI input pin - To provide the interrupt input for the ARISC

Re: [PATCH] xen/privcmd: allow fetching resource sizes

2021-01-11 Thread Jürgen Groß
On 11.01.21 16:29, Roger Pau Monne wrote: Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and addr = 0 in order to fetch the size of a specific resource. Add a shortcut to the default map resource path, since fetching the size requires no address to be passed in, and thus no VMA

Re: [PATCH v2] i2c: tegra: Create i2c_writesl_vi() to use with VI I2C for filling TX FIFO

2021-01-11 Thread Dmitry Osipenko
12.01.2021 07:06, Sowjanya Komatineni пишет: > VI I2C don't have DMA support and uses PIO mode all the time. > > Current driver uses writesl() to fill TX FIFO based on available > empty slots and with this seeing strange silent hang during any I2C > register access after filling TX FIFO with 8

[PATCH] udf: fix the problem that the disc content is not displayed

2021-01-11 Thread lianzhi chang
When the capacity of the disc is too large (assuming the 4.7G specification), the disc (UDF file system) will be burned multiple times in the windows (Multisession Usage). When the remaining capacity of the CD is less than 300M (estimated value, for reference only), open the CD in the Linux

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-11 Thread Leon Romanovsky
On Tue, Jan 12, 2021 at 01:17:11PM +0800, Lu Baolu wrote: > Hi, > > On 1/7/21 3:16 PM, Leon Romanovsky wrote: > > On Thu, Jan 07, 2021 at 06:55:16AM +, Tian, Kevin wrote: > > > > From: Leon Romanovsky > > > > Sent: Thursday, January 7, 2021 2:09 PM > > > > > > > > On Thu, Jan 07, 2021 at

Re: [PATCH 5/7] i2c: qcom-geni: Add support for GPI DMA

2021-01-11 Thread Vinod Koul
On 11-01-21, 12:14, Bjorn Andersson wrote: > On Mon 11 Jan 09:16 CST 2021, Vinod Koul wrote: > > > This adds capability to use GSI DMA for I2C transfers > > > > Signed-off-by: Vinod Koul > > --- > > drivers/i2c/busses/i2c-qcom-geni.c | 246 - > > 1 file changed, 244

Re: [PATCH] xen/privcmd: allow fetching resource sizes

2021-01-11 Thread Jürgen Groß
On 11.01.21 23:39, Andrew Cooper wrote: On 11/01/2021 22:09, boris.ostrov...@oracle.com wrote: On 1/11/21 10:29 AM, Roger Pau Monne wrote: + xdata.domid = kdata.dom; + xdata.type = kdata.type; + xdata.id = kdata.id; + + if (!kdata.addr && !kdata.num) { I think we should

Re: [PATCH v5] usb: xhci-mtk: fix unreleased bandwidth data

2021-01-11 Thread Ikjoon Jang
On Fri, Jan 8, 2021 at 10:44 PM Mathias Nyman wrote: > > On 8.1.2021 8.11, Chunfeng Yun wrote: > > On Thu, 2021-01-07 at 13:09 +0200, Mathias Nyman wrote: > >> On 29.12.2020 8.24, Ikjoon Jang wrote: > >>> xhci-mtk has hooks on add_endpoint() and drop_endpoint() from xhci > >>> to handle its own

[PATCH v3] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call

2021-01-11 Thread Cindy Lu
In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. this cb.private will finally use in vhost_vdpa_config_cb as vhost_vdpa. Fix this issue. Fixes: 776f395004d82 ("vhost_vdpa: Support config interrupt in vdpa") Acked-by: Jason Wang Signed-off-by: Cindy Lu ---

linux-next: Tree for Jan 12

2021-01-11 Thread Stephen Rothwell
Hi all, Changes since 20210111: The drm tree still had its build failure so I used the version from next-20210107. The drm-intel tree gained a build failure from merging the drm tree, so I have used the version from next-20210108. The drm-misc tree still had its build failure from merging

[PATCH v2] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call

2021-01-11 Thread Cindy Lu
In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. this cb.private will finally use in vhost_vdpa_config_cb as vhost_vdpa. Fix this issue. Signed-off-by: Cindy Lu --- drivers/vhost/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vdpa.c

[PATCH v3] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-11 Thread Bill Wendling
From: Sami Tolvanen Enable the use of clang's Profile-Guided Optimization[1]. To generate a profile, the kernel is instrumented with PGO counters, a representative workload is run, and the raw profile data is collected from /sys/kernel/debug/pgo/profraw. The raw profile data must be processed

RE: [PATCH v2 2/2] ASoC: rt715:add Mic Mute LED control support

2021-01-11 Thread Yuan, Perry
Hi > -Original Message- > From: Pierre-Louis Bossart > Sent: 2021年1月12日 2:07 > To: Yuan, Perry; oder_ch...@realtek.com; pe...@perex.cz; ti...@suse.com > Cc: alsa-de...@alsa-project.org; Limonciello, Mario; lgirdw...@gmail.com; > linux-kernel@vger.kernel.org; broo...@kernel.org > Subject:

[PATCH V2] arch: x86: kernel: cpu: Takes a letter away and put a semicolon too, to match below stuc member

2021-01-11 Thread Bhaskar Chowdhury
s/kernlfs/kernfs/ A semicolon at the end of member name Signed-off-by: Bhaskar Chowdhury --- As pointed out by Gustavo and Randy in version one of this patch arch/x86/kernel/cpu/resctrl/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH V4 0/6] Add the page size in the perf record (user tools)

2021-01-11 Thread Athira Rajeev
> On 06-Jan-2021, at 1:27 AM, kan.li...@linux.intel.com wrote: > > From: Kan Liang > > Changes since V3: > - Rebase on top of acme's perf/core branch > commit c07b45a355ee ("perf record: Tweak "Lowering..." warning in > record_opts__config_freq") > > Changes since V2: > - Rebase on top of

[PATCH] mm, compaction: make sure we isolate a valid freepage when high_pfn is used

2021-01-11 Thread Rokudo Yan
In fast_isolate_freepages, high_pfn will be used if a prefered one(PFN >= low_fn) not found. But the high_pfn is not reset before searching an free area, so when it was used as freepage, it may from another free area searched before. And move_freelist_head(freelist, freepage) will have

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-11 Thread Lu Baolu
Hi, On 1/7/21 3:16 PM, Leon Romanovsky wrote: On Thu, Jan 07, 2021 at 06:55:16AM +, Tian, Kevin wrote: From: Leon Romanovsky Sent: Thursday, January 7, 2021 2:09 PM On Thu, Jan 07, 2021 at 02:04:29AM +, Tian, Kevin wrote: From: Leon Romanovsky Sent: Thursday, January 7, 2021 12:02

Re: [PATCH v3 0/2] mm: fix initialization of struct page for holes in memory layout

2021-01-11 Thread Mike Rapoport
On Mon, Jan 11, 2021 at 04:58:01PM -0800, Andrew Morton wrote: > On Mon, 11 Jan 2021 21:40:15 +0200 Mike Rapoport wrote: > > > Commit 73a6e474cb37 ("mm: memmap_init: iterate over > > memblock regions rather that check each PFN") exposed several issues with > > the memory map initialization and

Re: [PATCH] arm64: Kconfig: Increase NR_CPUS default to 512

2021-01-11 Thread Vanshidhar Konda
On Mon, Jan 11, 2021 at 06:25:27PM +, Catalin Marinas wrote: On Mon, Jan 11, 2021 at 10:03:18AM -0800, Randy Dunlap wrote: On 1/11/21 9:57 AM, Vanshidhar Konda wrote: > On Mon, Jan 11, 2021 at 10:56:36AM +, Will Deacon wrote: >> On Sat, Jan 09, 2021 at 09:36:15PM -0800,

[PATCH][v3] cpufreq: intel_pstate: Get percpu max freq via HWP MSR register if available

2021-01-11 Thread Chen Yu
Currently when turbo is disabled(either by BIOS or by the user), the intel_pstate driver reads the max non-turbo frequency from the package-wide MSR_PLATFORM_INFO(0xce) register. However on asymmetric platforms it is possible in theory that small and big core with HWP enabled might have different

Re: [PATCH v2] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-11 Thread Sedat Dilek
On Tue, Jan 12, 2021 at 6:14 AM 'Bill Wendling' via Clang Built Linux wrote: > > From: Sami Tolvanen > > Enable the use of clang's Profile-Guided Optimization[1]. To generate a > profile, the kernel is instrumented with PGO counters, a representative > workload is run, and the raw profile data

[rcu:dev.2021.01.10b] BUILD SUCCESS 9de99ba4b278472b32c437ceb28423e62093faff

2021-01-11 Thread kernel test robot
allnoconfig x86_64 randconfig-a004-20210111 x86_64 randconfig-a006-20210111 x86_64 randconfig-a001-20210111 x86_64 randconfig-a003-20210111 x86_64 randconfig-a005-20210111 x86_64 randconfig-a002-20210111 i386

[PATCH v2] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-11 Thread Bill Wendling
From: Sami Tolvanen Enable the use of clang's Profile-Guided Optimization[1]. To generate a profile, the kernel is instrumented with PGO counters, a representative workload is run, and the raw profile data is collected from /sys/kernel/debug/pgo/profraw. The raw profile data must be processed

  1   2   3   4   5   6   7   8   9   10   >