[PATCH v2] arm64: Add __init section marker to some functions

2021-03-29 Thread Jisheng Zhang
They are not needed after booting, so mark them as __init to move them to the .init section. Signed-off-by: Jisheng Zhang --- Since v1: - add __init section mark to __vdso_init() and __aarch32_alloc_vdso_pages() arch/arm64/include/asm/ptdump.h | 2 +- arch/arm64/kernel/vdso.c| 4 ++--

Re: [PATCH] ftrace: Fix spelling mistake "disabed" -> "disabled"

2021-03-29 Thread Palmer Dabbelt
On Wed, 17 Mar 2021 06:42:23 PDT (-0700), rost...@goodmis.org wrote: On Tue, 16 Mar 2021 21:21:08 -0700 (PDT) Palmer Dabbelt wrote: Thanks, this is on fixes. What does this mean? Is there a tree that spelling fixes go through now? I had already pulled this patch into my queue for the next

Re: [PATCH] riscv,entry: fix misaligned base for excp_vect_table

2021-03-29 Thread Palmer Dabbelt
On Wed, 17 Mar 2021 01:17:25 PDT (-0700), yuzi...@ict.ac.cn wrote: * In RV64, the size of each entry in excp_vect_table is 8 bytes. If the base of the table is not 8-byte aligned, loading an entry in the table will raise a misaligned exception. Although such exception will be handled by

Re: [PATCH v4 3/4] locking/qspinlock: Add ARCH_USE_QUEUED_SPINLOCKS_XCHG32

2021-03-29 Thread Anup Patel
On Tue, Mar 30, 2021 at 7:56 AM Guo Ren wrote: > > On Mon, Mar 29, 2021 at 9:56 PM Arnd Bergmann wrote: > > > > On Mon, Mar 29, 2021 at 2:52 PM Guo Ren wrote: > > > > > > On Mon, Mar 29, 2021 at 7:31 PM Peter Zijlstra > > > wrote: > > > > > > > > On Mon, Mar 29, 2021 at 01:16:53PM +0200,

Re: [PATCH 5.4 000/111] 5.4.109-rc1 review

2021-03-29 Thread Naresh Kamboju
On Mon, 29 Mar 2021 at 13:44, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.109 release. > There are 111 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: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-03-29 Thread Noah Goldstein
Forgive if this is silly but would it be possible to do something simliar to rseq where the user can register a set of features for a program counter region and then on interrupt check that to determine what needs to be saved? For example if a user doesn't use any AMX but loads a library that

Re: [PATCH v16 00/17] KVM RISC-V Support

2021-03-29 Thread Anup Patel
On Sat, Jan 23, 2021 at 9:10 AM Palmer Dabbelt wrote: > > On Fri, 15 Jan 2021 04:18:29 PST (-0800), Anup Patel wrote: > > This series adds initial KVM RISC-V support. Currently, we are able to boot > > Linux on RV64/RV32 Guest with multiple VCPUs. > > Thanks. IIUC the spec is still in limbo at

Re: [PATCH v5 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-03-29 Thread Eric Biggers
On Mon, Mar 29, 2021 at 10:16:57PM -0400, Gabriel Krisman Bertazi wrote: > Eric Biggers writes: > > > On Tue, Mar 30, 2021 at 02:12:40AM +0530, Shreeya Patel wrote: > >> diff --git a/fs/unicode/Kconfig b/fs/unicode/Kconfig > >> index 2c27b9a5cd6c..ad4b837f2eb2 100644 > >> ---

Re: [Question] Is there a race window between swapoff vs synchronous swap_readpage

2021-03-29 Thread Yu Zhao
On Mon, Mar 29, 2021 at 9:44 PM Huang, Ying wrote: > > Miaohe Lin writes: > > > On 2021/3/30 9:57, Huang, Ying wrote: > >> Hi, Miaohe, > >> > >> Miaohe Lin writes: > >> > >>> Hi all, > >>> I am investigating the swap code, and I found the below possible race > >>> window: > >>> > >>> CPU 1

[PATCH V2 3/4] remoteproc: imx: move memory parsing to rproc_ops

2021-03-29 Thread peng . fan
From: Peng Fan Use the rproc_ops::prepare() hook for doing memory resources reallocation when reattach an remote procesor. Suggested-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH V2 4/4] remoteproc: imx_rproc: support remote cores booted before Linux Kernel

2021-03-29 Thread peng . fan
From: Peng Fan - Add rsc_table to hold the resource table published by remote cores. - Add attach hook. - Add imx_rproc_get_loaded_rsc_table to get resource table published by remote processors. - Add imx_rproc_detect_mode to detect remote cores' working mode. Signed-off-by: Peng Fan

[PATCH V2 1/4] remoteproc: imx: add missing of_node_put

2021-03-29 Thread peng . fan
From: Peng Fan After of_parse_phandle, we need of_node_put to decrease the refcount of the device_node. Reported-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c

[PATCH V2 2/4] remoteproc: imx_rproc: enlarge IMX7D_RPROC_MEM_MAX

2021-03-29 Thread peng . fan
From: Peng Fan 8 is not enough when we need more, such as resource table for remote cores that booted before Linux Kernel, so enlarge IMX7D_RPROC_MEM_MAX to 32. And also rename it to IMX_RPROC_MEM_MAX which make more sense. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier ---

[PATCH V2 0/4] remoteproc: imx: support remote cores booted early

2021-03-29 Thread peng . fan
From: Peng Fan V2: Patch [1,3]/4 is new Patch 4/4: Update commit message, drop unneeded code that already implemented by core This patchset is to support booted remote cores could be attached to linux. - Add missing of_node_put to decrease device node refcount - Enlarge IMX7D_RPROC_MEM_MAX

Re: [PATCH] hwmon: (nzxt-kraken2) mark and order concurrent accesses

2021-03-29 Thread Guenter Roeck
On 3/29/21 8:16 PM, Jonas Malaco wrote: > On Mon, Mar 29, 2021 at 06:01:00PM -0700, Guenter Roeck wrote: >> On 3/29/21 5:21 PM, Jonas Malaco wrote: >>> On Mon, Mar 29, 2021 at 02:53:39PM -0700, Guenter Roeck wrote: On Mon, Mar 29, 2021 at 05:22:01AM -0300, Jonas Malaco wrote: > To avoid a

Re: [PATCH 5.10 000/219] 5.10.27-rc2 review

2021-03-29 Thread Naresh Kamboju
On Mon, 29 Mar 2021 at 15:44, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.27 release. > There are 219 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] hwmon: Add driver for fsp-3y PSUs and PDUs

2021-03-29 Thread Guenter Roeck
On 3/29/21 8:31 PM, Václav Kubernát wrote: > Hi Guenter, > > Thank you for the review. > > po 29. 3. 2021 v 19:47 odesílatel Guenter Roeck napsal: >> >> On 3/29/21 7:38 AM, Václav Kubernát wrote: >>> After some testing, I have found out there is a timing issue with this >>> device. After

Re: [PATCH] ARM: Qualify enabling of swiotlb_init()

2021-03-29 Thread Christoph Hellwig
On Mon, Mar 29, 2021 at 12:30:42PM -0700, Florian Fainelli wrote: > Should I toss this in Russell's patch tracker or do you need me to make > some changes to the patch? Due to all the other changes in this area I don't think anything but the swiotlb tree makes much sense here.

Re: [PATCH v2] Documentation: crypto: add info about "fips=" boot option

2021-03-29 Thread Eric Biggers
skipped". > > Documentation/admin-guide/kernel-parameters.txt | 14 ++ > 1 file changed, 14 insertions(+) > > --- linux-next-20210329.orig/Documentation/admin-guide/kernel-parameters.txt > +++ linux-next-20210329/Documentation/admin-guide/kernel-parameters.txt

[PATCH] sched/fair: use signed long when compute energy delta in eas

2021-03-29 Thread Xuewen Yan
From: Xuewen Yan now the energy delta compute as follow: base_energy_pd = compute_energy(p, -1, pd); --->Traverse all CPUs in pd --->em_pd_energy() - \ search for the max_sapre_cap_cpu \

[PATCH v1 3/4] arm64: dts: add DRAMC node for MT6779

2021-03-29 Thread Po-Kai Chi
Add the DRAMC node for the DRAMC kernel driver. Properties are divided into three categories: - Platform DTS: MediaTek DRAMC platform common part. - Project DTS: Runtime filled in by bootloader according to the board hardware configuration. - Driver level:

[PATCH v1 4/4] arm64: defconfig: Enable MediaTek DRAMC common driver

2021-03-29 Thread Po-Kai Chi
This commit enables MediaTek DRAMC common driver to be built as a module by default for the ARM64 builds. Signed-off-by: Po-Kai Chi --- arch/arm64/configs/defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH v1 2/4] memory: mediatek: add DRAM controller driver

2021-03-29 Thread Po-Kai Chi
MediaTek DRAM controller (DRAMC) driver provides cross-platform features as below: - API provided to other kernel modules for querying DRAM type, rank count, rank size, channel count and mode register settings. - Sysfs interface used to pass DRAM mode register settings and current DRAM

[PATCH v1 1/4] dt-bindings: memory: Add binding for MediaTek Common DRAM Controller

2021-03-29 Thread Po-Kai Chi
This patch adds the documentation of the device-tree binding for MediaTek Common DRAM Controller. Signed-off-by: Po-Kai Chi --- .../memory-controllers/mediatek,dramc.yaml | 155 1 file changed, 155 insertions(+) create mode 100644

[PATCH v1] memory: mediatek: add DRAM controller driver

2021-03-29 Thread Po-Kai Chi
These patch series introduces the MediaTek DRAM controller driver (DRAMC) on MT6779 SoC, and enables to be built as a module by default for the ARM64 builds. MediaTek DRAMC driver provides cross-platform features as below: - API provided to other kernel modules for querying DRAM type, rank

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

2021-03-29 Thread John Hubbard
On 3/29/21 9:59 PM, Alistair Popple wrote: ... res->desc = IORES_DESC_DEVICE_PRIVATE_MEMORY; + if (dev) { + dr->parent = _resource; + dr->start = addr; + dr->n = size; +

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-03-29 Thread Andy Lutomirski
On Mon, Mar 29, 2021 at 3:38 PM Len Brown wrote: > > On Mon, Mar 29, 2021 at 2:16 PM Andy Lutomirski wrote: > > > Hi Andy, > > Can you provide a concise definition of the exact problemI(s) this thread > is attempting to address? The AVX-512 state, all by itself, is more than 2048 bytes.

Re: [PATCH] riscv: Bump COMMAND_LINE_SIZE value to 1024

2021-03-29 Thread Palmer Dabbelt
On Tue, 16 Mar 2021 12:34:20 PDT (-0700), a...@ghiti.fr wrote: Increase COMMAND_LINE_SIZE as the current default value is too low for syzbot kernel command line. Reported-by: Dmitry Vyukov Signed-off-by: Alexandre Ghiti --- arch/riscv/include/uapi/asm/setup.h | 8 1 file changed, 8

[PATCH v2] Documentation: crypto: add info about "fips=" boot option

2021-03-29 Thread Randy Dunlap
Jonathan Corbet Cc: linux-...@vger.kernel.org --- Updates/corrections welcome. v2: drop comment that "fips_enabled can cause some tests to be skipped". Documentation/admin-guide/kernel-parameters.txt | 14 ++ 1 file changed, 14 insertions(+) --- linux-next-20210329.

Re: [PATCH v3 2/2] riscv: Cleanup KASAN_VMALLOC support

2021-03-29 Thread Palmer Dabbelt
On Sat, 13 Mar 2021 00:45:05 PST (-0800), a...@ghiti.fr wrote: When KASAN vmalloc region is populated, there is no userspace process and the page table in use is swapper_pg_dir, so there is no need to read SATP. Then we can use the same scheme used by kasan_populate_p*d functions to go through

Re: [PATCH] kbuild: buildtar: add riscv support

2021-03-29 Thread Palmer Dabbelt
On Tue, 16 Mar 2021 09:02:43 PDT (-0700), m...@carlosedp.com wrote: Make 'make tar-pkg' and 'tarbz2-pkg' work on riscv. Signed-off-by: Carlos de Paula --- scripts/package/buildtar | 8 1 file changed, 8 insertions(+) diff --git a/scripts/package/buildtar b/scripts/package/buildtar

Re: [PATCH] Documentation: crypto: add info about "fips=" boot option

2021-03-29 Thread Herbert Xu
On Mon, Mar 29, 2021 at 10:00:45PM -0700, Randy Dunlap wrote: > On 3/29/21 9:37 PM, Herbert Xu wrote: > > On Mon, Mar 29, 2021 at 09:00:01PM -0700, Randy Dunlap wrote: > >> > >> + If fips_enabled = 1, some crypto tests are skipped. > > > > I don't think any tests are skipped. It

Re: [PATCH] Documentation: crypto: add info about "fips=" boot option

2021-03-29 Thread Randy Dunlap
On 3/29/21 9:37 PM, Herbert Xu wrote: > On Mon, Mar 29, 2021 at 09:00:01PM -0700, Randy Dunlap wrote: >> >> +If fips_enabled = 1, some crypto tests are skipped. > > I don't think any tests are skipped. It does however disable > many algorithms by essentially failing them at

Re: [PATCH v3] mm: fix race by making init_zero_pfn() early_initcall

2021-03-29 Thread Zhou Yanjie
Hi Ilya, On 2021/3/30 下午12:42, Ilya Lipnitskiy wrote: There are code paths that rely on zero_pfn to be fully initialized before core_initcall. For example, wq_sysfs_init() is a core_initcall function that eventually results in a call to kernel_execve, which causes a page fault with a subsequent

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

2021-03-29 Thread Alistair Popple
On Tuesday, 30 March 2021 2:42:34 PM AEDT John Hubbard wrote: > On 3/29/21 5:38 PM, 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

Re: [PATCH -tip v4 10/12] x86/kprobes: Push a fake return address at kretprobe_trampoline

2021-03-29 Thread Josh Poimboeuf
On Fri, Mar 26, 2021 at 10:20:09AM -0400, Steven Rostedt wrote: > On Fri, 26 Mar 2021 21:03:49 +0900 > Masami Hiramatsu wrote: > > > I confirmed this is not related to this series, but occurs when I build > > kernels with different > > configs without cleanup. > > > > Once I build kernel with

Re: [PATCH] nvmem: Change to unified property interface

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

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

2021-03-29 Thread Xiaoyao Li
On 3/27/2021 8:18 AM, Kuppuswamy Sathyanarayanan wrote: In non-root TDX guest mode, MWAIT, MONITOR and WBINVD instructions are not supported. So handle #VE due to these instructions as no ops. Signed-off-by: Kuppuswamy Sathyanarayanan Reviewed-by: Andi Kleen --- Changes since previous

Re: exec error: BUG: Bad rss-counter

2021-03-29 Thread Zhou Yanjie
Hi Ilya, On 2021/3/29 上午10:48, Ilya Lipnitskiy wrote: On Sat, Mar 20, 2021 at 8:59 AM Zhou Yanjie wrote: Hi Ilya, On 2021/3/3 下午11:55, Ilya Lipnitskiy wrote: On Wed, Mar 3, 2021 at 7:50 AM Eric W. Biederman wrote: Ilya Lipnitskiy writes: On Tue, Mar 2, 2021 at 11:37 AM Eric W.

RE: [PATCH v4 3/4] locking/qspinlock: Add ARCH_USE_QUEUED_SPINLOCKS_XCHG32

2021-03-29 Thread Anup Patel
> -Original Message- > From: Guo Ren > Sent: 30 March 2021 08:44 > To: Peter Zijlstra > Cc: linux-riscv ; Linux Kernel Mailing List > ; linux-c...@vger.kernel.org; linux-arch > ; Guo Ren ; Will > Deacon ; Ingo Molnar ; Waiman > Long ; Arnd Bergmann ; Anup > Patel > Subject: Re: [PATCH

Re: [PATCH 2/4] cxl/mem: Fix cdev_device_add() error handling

2021-03-29 Thread Dan Williams
On Mon, Mar 29, 2021 at 3:44 PM Jason Gunthorpe wrote: > > On Mon, Mar 29, 2021 at 02:03:37PM -0700, Dan Williams wrote: > > > Ugh, exactly why I was motivated to attempt to preclude this with new > > core infrastructure that attempted to fix this centrally [1]. Remove > > the possibility of

[PATCH v4 3/3] svm/sev: Register SEV and SEV-ES ASIDs to the misc controller

2021-03-29 Thread Vipin Sharma
Secure Encrypted Virtualization (SEV) and Secure Encrypted Virtualization - Encrypted State (SEV-ES) ASIDs are used to encrypt KVMs on AMD platform. These ASIDs are available in the limited quantities on a host. Register their capacity and usage to the misc controller for tracking via cgroups.

[PATCH v4 1/3] cgroup: Add misc cgroup controller

2021-03-29 Thread Vipin Sharma
The Miscellaneous cgroup provides the resource limiting and tracking mechanism for the scalar resources which cannot be abstracted like the other cgroup resources. Controller is enabled by the CONFIG_CGROUP_MISC config option. A resource can be added to the controller via enum misc_res_type{} in

[PATCH v4 2/3] cgroup: Miscellaneous cgroup documentation.

2021-03-29 Thread Vipin Sharma
Documentation of miscellaneous cgroup controller. This new controller is used to track and limit the usage of scalar resources. Signed-off-by: Vipin Sharma Reviewed-by: David Rientjes --- Documentation/admin-guide/cgroup-v1/index.rst | 1 + Documentation/admin-guide/cgroup-v1/misc.rst | 4 +

[PATCH v3] mm: fix race by making init_zero_pfn() early_initcall

2021-03-29 Thread Ilya Lipnitskiy
There are code paths that rely on zero_pfn to be fully initialized before core_initcall. For example, wq_sysfs_init() is a core_initcall function that eventually results in a call to kernel_execve, which causes a page fault with a subsequent mmput. If zero_pfn is not initialized by then it may not

[PATCH v4 0/3] cgroup: New misc cgroup controller

2021-03-29 Thread Vipin Sharma
Hello, This patch series is creating a new misc cgroup controller for limiting and tracking of resources which are not abstract like other cgroup controllers. This controller was initially proposed as encryption_id but after the feedbacks and use cases for other resources, it is now changed to

Re: [PATCH] Documentation: crypto: add info about "fips=" boot option

2021-03-29 Thread Herbert Xu
On Mon, Mar 29, 2021 at 09:00:01PM -0700, Randy Dunlap wrote: > > + If fips_enabled = 1, some crypto tests are skipped. I don't think any tests are skipped. It does however disable many algorithms by essentially failing them at the testing stage. Cheers, -- Email: Herbert

Re: [PATCH V8 2/8] cpufreq: mediatek: Enable clock and regulator

2021-03-29 Thread Viresh Kumar
On 23-03-21, 19:33, Andrew-sh.Cheng wrote: > From: "Andrew-sh.Cheng" > > Need to enable regulator, > so that the max/min requested value will be recorded > even it is not applied right away. > > Intermediate clock is not always enabled by ccf in different projects, > so cpufreq should enable it

[PATCH v2] nvmem: Change to unified property interface

2021-03-29 Thread Kevin Paul Herbert
Change from using device tree (Open Firmware) APIs to the unified 'fwnode' interface. Change of_nvmem_cell_get() to fwnode_nvmem_cell_get(), and add a wrapper for of_nvmem_cell_get(). Change of_nvmem_device_get() to fwnode_nvmem_device_get(). There are no known accessors to the OF interface, so

Re: [PATCH 2/2] gpiolib: Allow drivers to return EOPNOTSUPP from config

2021-03-29 Thread Matti Vaittinen
Morning Folks, On Mon, 2021-03-29 at 16:30 +0300, Andy Shevchenko wrote: > On Mon, Mar 29, 2021 at 03:20:07PM +0300, Matti Vaittinen wrote: > > On Mon, 2021-03-29 at 14:59 +0300, Andy Shevchenko wrote: > > > On Mon, Mar 29, 2021 at 2:43 PM Matti Vaittinen > > > wrote: > > > > The checkpacth

[PATCH v2] nvmem: Change to unified property interface

2021-03-29 Thread Kevin Paul Herbert
The original version of this patch correctly stated that the only wrapper needed was for of_nvmem_cell_get(), but included only a wrapper for of_nvmem_device_get(). Replace with the proper wrapper.

[PATCH v2] nvmem: Change to unified property interface

2021-03-29 Thread Kevin Paul Herbert
THis first version of this patch erroneously had an unnecessary wrapper for of_nvmem_device_get() even though the commentary properly stated that the only wrapper needed was of_nvmem_cell_get(). Fix the code to match the intent.

RE: [PATCH] usb: cdnsp: Fixes issue with Configure Endpoint command

2021-03-29 Thread Pawel Laszczak
Hi Peter, > >On 21-03-22 07:09:02, Pawel Laszczak wrote: >> From: Pawel Laszczak >> >> Patch adds flag EP_UNCONFIGURED to detect whether endpoint was >> unconfigured. This flag is set in cdnsp_reset_device after Reset Device >> command. Among others this command disables all non control

Re: [PATCH v4 0/5] Add Microchip PolarFire Soc Support

2021-03-29 Thread Palmer Dabbelt
On Wed, 03 Mar 2021 12:02:48 PST (-0800), Atish Patra wrote: This series adds minimal support for Microchip Polar Fire Soc Icicle kit. It is rebased on v5.12-rc1 and depends on clock support. Only MMC and ethernet drivers are enabled via this series. The idea here is to add the foundational

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

2021-03-29 Thread Tian, Kevin
> From: Tian, Kevin > Sent: Tuesday, March 30, 2021 10:24 AM > > > From: Jason Gunthorpe > > Sent: Tuesday, March 30, 2021 12:32 AM > > > In terms of usage for guest SVA, an ioasid_set is mostly tied to a host > > > mm, > > > the use case is as the following: > > > > From that doc: > > > > It

crypto: possible NULL reference

2021-03-29 Thread Randy Dunlap
As I was trying to document "fips= here is not checked for NULL or not NULL before it is used. Nor is the use of in most other functions in ecc.c. Is there something else protecting the improper use of in these cases? or is a patch warranted? thanks. -- ~Randy

[PATCH] Documentation: crypto: add info about "fips=" boot option

2021-03-29 Thread Randy Dunlap
Jonathan Corbet Cc: linux-...@vger.kernel.org --- Updates/corrections welcome. Documentation/admin-guide/kernel-parameters.txt | 15 ++ 1 file changed, 15 insertions(+) --- linux-next-20210329.orig/Documentation/admin-guide/kernel-parameters.txt +++ linux-next-20210329/Documentatio

Re: [PATCH 1/2] iommu/arm-smmu-qcom: Skip the TTBR1 quirk for db820c.

2021-03-29 Thread Rob Clark
On Mon, Mar 29, 2021 at 7:47 AM Will Deacon wrote: > > On Fri, Mar 26, 2021 at 04:13:02PM -0700, Eric Anholt wrote: > > db820c wants to use the qcom smmu path to get HUPCF set (which keeps > > the GPU from wedging and then sometimes wedging the kernel after a > > page fault), but it doesn't have

Re: [PATCH v2] media: venus : hfi: add venus image info into smem

2021-03-29 Thread Bjorn Andersson
On Fri 26 Mar 01:33 CDT 2021, Dikshita Agarwal wrote: > Fill fw version info into smem to be printed as part of > soc info. > > Signed-off-by: Dikshita Agarwal > > Changes since v1: > adressed comments from stephen. > removed unwanted code. > --- >

Re: [PATCH] scsi: ibmvscsi: delete the useless casting value returned

2021-03-29 Thread Martin K. Petersen
On Fri, 12 Mar 2021 10:18:53 +0800, Wang Qing wrote: > Fix the following coccicheck warning: > WARNING: casting value returned by memory allocation function is useless. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: ibmvscsi: delete the useless casting value returned

Re: [PATCH 2/2] blktrace: limit allowed total trace buffer size

2021-03-29 Thread Ming Lei
On Tue, Mar 30, 2021 at 10:57:04AM +0800, Su Yue wrote: > > On Tue 23 Mar 2021 at 16:14, Ming Lei wrote: > > > On some ARCHs, such as aarch64, page size may be 64K, meantime there may > > be lots of CPU cores. relay_open() needs to allocate pages on each CPU > > blktrace, so easily too many

Re: [PATCH RESEND] scsi: ufs: Remove unnecessary null checks in ufshcd_find_max_sup_active_icc_level()

2021-03-29 Thread Martin K. Petersen
On Fri, 19 Mar 2021 15:09:16 +0800, Yue Hu wrote: > Since vcc/vccq/vccq2 have already been null checked before using. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: ufs: Remove unnecessary null checks in ufshcd_find_max_sup_active_icc_level()

Re: [PATCH] scsi: scsi_dh: Fix a typo

2021-03-29 Thread Martin K. Petersen
On Mon, 22 Mar 2021 12:17:24 +0530, Bhaskar Chowdhury wrote: > s/infrastruture/infrastructure/ Applied to 5.13/scsi-queue, thanks! [1/1] scsi: scsi_dh: Fix a typo https://git.kernel.org/mkp/scsi/c/ae98ddf05fdb -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: bfa: Fix a typo in two places

2021-03-29 Thread Martin K. Petersen
On Tue, 23 Mar 2021 02:28:21 +0530, Bhaskar Chowdhury wrote: > s/defintions/definitions/ two different places. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: bfa: Fix a typo in two places https://git.kernel.org/mkp/scsi/c/9991ca001b9c -- Martin K. Petersen Oracle Linux

Re: [PATCH] scsi: mpt3sas: Fix a typo

2021-03-29 Thread Martin K. Petersen
On Mon, 22 Mar 2021 08:51:45 +0530, Bhaskar Chowdhury wrote: > s/encloure/enclosure/ Applied to 5.13/scsi-queue, thanks! [1/1] scsi: mpt3sas: Fix a typo https://git.kernel.org/mkp/scsi/c/206a3afa9482 -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: dc395x: Use bitwise instead of arithmetic operator for flags

2021-03-29 Thread Martin K. Petersen
On Tue, 9 Mar 2021 11:39:13 +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/scsi/dc395x.c:2921:28-29: WARNING: sum of probable bitmasks, > consider |. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: dc395x: Use bitwise instead of arithmetic operator for flags

Re: [PATCH] scsi: fnic: delete the useless casting value returned

2021-03-29 Thread Martin K. Petersen
On Fri, 12 Mar 2021 10:18:19 +0800, Wang Qing wrote: > Fix the following coccicheck warning: > WARNING: casting value returned by memory allocation function is useless. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: fnic: delete the useless casting value returned

Re: [PATCH] message: fusion: delete the useless casting value returned

2021-03-29 Thread Martin K. Petersen
On Fri, 12 Mar 2021 10:18:03 +0800, Wang Qing wrote: > Fix the following coccicheck warning: > WARNING: casting value returned by memory allocation function is useless. Applied to 5.13/scsi-queue, thanks! [1/1] message: fusion: delete the useless casting value returned

Re: [PATCH] scsi: bnx2fc: Fix a typo

2021-03-29 Thread Martin K. Petersen
On Mon, 22 Mar 2021 12:05:30 +0530, Bhaskar Chowdhury wrote: > s/struture/structure/ Applied to 5.13/scsi-queue, thanks! [1/1] scsi: bnx2fc: Fix a typo https://git.kernel.org/mkp/scsi/c/5fae809faec6 -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: esp_scsi: Trivial typo fixes

2021-03-29 Thread Martin K. Petersen
On Wed, 24 Mar 2021 11:43:18 +0530, Bhaskar Chowdhury wrote: > s/conditon/condition/ > s/pecularity/peculiarity/ Applied to 5.13/scsi-queue, thanks! [1/1] scsi: esp_scsi: Trivial typo fixes https://git.kernel.org/mkp/scsi/c/835b8c16a0e3 -- Martin K. Petersen Oracle Linux

Re: [PATCH] scsi: csiostor: Fix a typo

2021-03-29 Thread Martin K. Petersen
On Fri, 19 Mar 2021 14:53:11 +0530, Bhaskar Chowdhury wrote: > s/boudaries/boundaries/ Applied to 5.13/scsi-queue, thanks! [1/1] scsi: csiostor: Fix a typo https://git.kernel.org/mkp/scsi/c/a89562e31f01 -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: lpfc: A mundane typo fix

2021-03-29 Thread Martin K. Petersen
On Wed, 24 Mar 2021 12:18:29 +0530, Bhaskar Chowdhury wrote: > s/conditons/conditions/ Applied to 5.13/scsi-queue, thanks! [1/1] scsi: lpfc: A mundane typo fix https://git.kernel.org/mkp/scsi/c/f1891f9bbc46 -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: lpfc: Fix some typo error

2021-03-29 Thread Martin K. Petersen
On Mon, 22 Mar 2021 15:56:45 +0800, samirweng1979 wrote: > change 'lenth' to 'length'. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: lpfc: Fix some typo error https://git.kernel.org/mkp/scsi/c/89bbf550eafc -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: pm8001: avoid -Wrestrict warning

2021-03-29 Thread Martin K. Petersen
On Tue, 23 Mar 2021 13:54:23 +0100, Arnd Bergmann wrote: > On some configurations, gcc warns about overlapping source and > destination arguments to snprintf: > > drivers/scsi/pm8001/pm8001_init.c: In function 'pm8001_request_msix': > drivers/scsi/pm8001/pm8001_init.c:977:3: error: 'snprintf'

Re: [PATCH] scsi: qla1280: fix warning comparing pointer to 0

2021-03-29 Thread Martin K. Petersen
On Mon, 15 Mar 2021 11:49:19 +0800, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./drivers/scsi/qla1280.c:3057:37-38: WARNING comparing pointer to 0. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: qla1280: fix warning comparing pointer to 0

Re: [PATCH] scsi: mac53c94: fix warning comparing pointer to 0

2021-03-29 Thread Martin K. Petersen
On Wed, 10 Mar 2021 12:16:11 +0800, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./drivers/scsi/mac53c94.c:470:29-30: WARNING comparing pointer to 0. > ./drivers/scsi/mac53c94.c:349:12-13: WARNING comparing pointer to 0. Applied to 5.13/scsi-queue, thanks! [1/1] scsi:

Re: [PATCH] scsi: bnx2i: make bnx2i_process_iscsi_error simpler and more robust

2021-03-29 Thread Martin K. Petersen
On Wed, 10 Mar 2021 23:16:02 +0100, Rasmus Villemoes wrote: > Instead of strcpy'ing into a stack buffer, just let additional_notice > point to a string literal living in .rodata. This is better in a few > ways: > > - Smaller .text - instead of gcc compiling the strcpys as a bunch of >

Re: [PATCH] scsi: bfa: fix warning comparing pointer to 0

2021-03-29 Thread Martin K. Petersen
On Tue, 16 Mar 2021 15:48:50 +0800, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./drivers/scsi/bfa/bfad_bsg.c:3412:29-30: WARNING comparing pointer to > 0. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: bfa: fix warning comparing pointer to 0

Re: [PATCH v3 1/2] dt-bindings: thermal: qcom-tsens: Add compatible for sm8350

2021-03-29 Thread Bjorn Andersson
On Wed 24 Mar 07:43 CDT 2021, Robert Foss wrote: > Add tsens bindings for sm8350. > > Signed-off-by: Robert Foss > Reviewed-by: Vinod Koul Reviewed-by: Bjorn Andersson @Daniel, I presume it's better that you take this patch (1/2) through your tree. I've picked patch 2. Regards, Bjorn >

Re: [Question] Is there a race window between swapoff vs synchronous swap_readpage

2021-03-29 Thread Huang, Ying
Miaohe Lin writes: > On 2021/3/30 9:57, Huang, Ying wrote: >> Hi, Miaohe, >> >> Miaohe Lin writes: >> >>> Hi all, >>> I am investigating the swap code, and I found the below possible race >>> window: >>> >>> CPU 1 CPU 2 >>> -

Re:Re: [PATCH] linux/trace_events.h: Remove duplicate struct declaration

2021-03-29 Thread 万家兵
>On Tue, 30 Mar 2021 09:55:17 +0800>Wan Jiabing wrote: > >> struct trace_array is declared twice. One has been declared >> at forward struct declaration. Remove the duplicate. >> And sort these forward declarations alphabetically. > >Um, no that's not how we sort things. > >> >> Signed-off-by:

Re: [PATCH v2 1/5] hwmon: (max31790) Rework to use regmap

2021-03-29 Thread Václav Kubernát
Hi Guenter, Thank you for the comments. I will fix the issues in a V3 patch. About the mutex: I was looking at regmap and saw it did locking by itself. But I suppose writing still has to be locked, because the write function writes more than once. I will add the mutex back. Václav út 30. 3.

RE: [PATCH] usb: cdns3: delete repeated clear operations

2021-03-29 Thread Pawel Laszczak
> >On 21-03-22 07:19:46, Pawel Laszczak wrote: >> Hi Peter, >> >> Can you add this patch to for-usb-next branch. >> > >Feel free add your ACK base on this patch. > >Peter >> Thanks. >> >> > >> > >> >dma_alloc_coherent already zeroes out memory, so memset is not needed. >> > >> >Signed-off-by: Wang

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

2021-03-29 Thread John Hubbard
On 3/29/21 5:38 PM, 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. region_intersects()

[PATCH] [v2] linux/trace_events.h: Remove duplicate struct declaration

2021-03-29 Thread Wan Jiabing
struct trace_array is declared twice. One has been declared at forward declaration. Remove the duplicate. Signed-off-by: Wan Jiabing --- Changelog: v2: - Undo sorting forward declarations alphabetically. --- include/linux/trace_events.h | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH 3/5] arm: dts: qcom: Add support for MSM8226 SoC

2021-03-29 Thread Bjorn Andersson
On Fri 26 Mar 09:58 CDT 2021, Bartosz Dudziak wrote: > This patch adds basic device tree support for MSM8226 SoC which belongs > to the Snapdragon 400 family. For now, this file adds the basic nodes > like gcc, pinctrl and other required configuration for booting up to > the serial console. > >

RE: [PATCH] usb: cdnsp: remove redundant initialization of variable ret

2021-03-29 Thread Pawel Laszczak
Hi Colin, Thanks for this fix. > >From: Colin Ian King > >The variable ret is being initialized with a value that is >never read and it is being updated later with a new value. The >initialization is redundant and can be removed. > >Addresses-Coverity: ("Unused value") >Signed-off-by: Colin

Re: [PATCH] drm/msm: Fix removal of valid error case when checking speed_bin

2021-03-29 Thread Akhil P Oommen
On 3/30/2021 7:04 AM, John Stultz wrote: Commit 7bf168c8fe8c ("drm/msm: Fix speed-bin support not to access outside valid memory"), reworked the nvmem reading of "speed_bin", but in doing so dropped handling of the -ENOENT case which was previously documented as "fine". That change resulted in

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

2021-03-29 Thread Greentime Hu
Stephen Boyd 於 2021年3月30日 週二 上午3:14寫道: > > Quoting Greentime Hu (2021-03-17 23:08:09) > > diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig > > index 71ab75a46491..f094df93d911 100644 > > --- a/drivers/reset/Kconfig > > +++ b/drivers/reset/Kconfig > > @@ -173,7 +173,7 @@ config

Re: [PATCH v5 7/7] arm64: dts: qcom: use dp_phy to provide clocks to dispcc

2021-03-29 Thread Bjorn Andersson
On Sun 28 Mar 15:52 CDT 2021, Dmitry Baryshkov wrote: > Plug dp_phy-provided clocks to display clock controller. > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Dmitry Baryshkov > --- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 8 > 1 file changed, 4 insertions(+), 4

Re: [PATCH v5 6/7] arm64: dts: qcom: sm8250: switch usb1 qmp phy to USB3+DP mode

2021-03-29 Thread Bjorn Andersson
On Sun 28 Mar 15:52 CDT 2021, Dmitry Baryshkov wrote: > USB1 QMP PHY is not just a USB3 PHY, but USB3+DP PHY. Change device tree > nodes accordingly. > > Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson @Vinod, will you let me know when you've picked the driver changes so I can

Re: [PATCH] hwmon: Add driver for fsp-3y PSUs and PDUs

2021-03-29 Thread Václav Kubernát
Hi Guenter, Thank you for the review. po 29. 3. 2021 v 19:47 odesílatel Guenter Roeck napsal: > > On 3/29/21 7:38 AM, Václav Kubernát wrote: > > After some testing, I have found out there is a timing issue with this > > device. After setting page, the device doesn't immediately react and > >

Re: [PATCH v5 5/7] phy: qcom-qmp: add support for sm8250-usb3-dp phy

2021-03-29 Thread Bjorn Andersson
On Sun 28 Mar 15:52 CDT 2021, Dmitry Baryshkov wrote: > Add support for QMP V4 Combo USB3+DP PHY (for SM8250 platform). > > Signed-off-by: Dmitry Baryshkov Acked-by: Bjorn Andersson Regards, Bjorn > --- > drivers/phy/qualcomm/phy-qcom-qmp.c | 388 ++-- >

Re: [PATCH v5 4/7] phy: qcom-qmp: rename common registers

2021-03-29 Thread Bjorn Andersson
On Sun 28 Mar 15:52 CDT 2021, Dmitry Baryshkov wrote: > A plenty of DP PHY registers are common between V3 and V4. To simplify > V4 code, rename all common registers. > > Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/phy/qualcomm/phy-qcom-qmp.c

Re: [PATCH] linux/trace_events.h: Remove duplicate struct declaration

2021-03-29 Thread Steven Rostedt
On Tue, 30 Mar 2021 09:55:17 +0800 Wan Jiabing wrote: > struct trace_array is declared twice. One has been declared > at forward struct declaration. Remove the duplicate. > And sort these forward declarations alphabetically. Um, no that's not how we sort things. > > Signed-off-by: Wan Jiabing

Re: [PATCH bpf-next 5/5] libbpf: add selftests for TC-BPF API

2021-03-29 Thread Alexei Starovoitov
On Sun, Mar 28, 2021 at 07:38:42PM -0700, Andrii Nakryiko wrote: > > See above. I don't know which hassle is libbpf for users today. You > were implying code size used for functionality users might not use > (e.g., linker). Libbpf is a very small library, <300KB. There are > users building tools

Re: [PATCH v5 3/7] phy: qcom-qmp: move DP functions to callbacks

2021-03-29 Thread Bjorn Andersson
On Sun 28 Mar 15:52 CDT 2021, Dmitry Baryshkov wrote: > In preparation to adding support for V4 DP PHY move DP functions to > callbacks at struct qmp_phy_cfg. > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Dmitry Baryshkov > --- > drivers/phy/qualcomm/phy-qcom-qmp.c | 438

Re: [PATCH v5 2/7] dt-bindings: phy: qcom,qmp-usb3-dp: Add support for SM8250

2021-03-29 Thread Bjorn Andersson
On Sun 28 Mar 15:52 CDT 2021, Dmitry Baryshkov wrote: > Add compatible for SM8250 in QMP USB3 DP PHY bindings. > > Signed-off-by: Dmitry Baryshkov > Acked-by: Rob Herring Reviewed-by: Bjorn Andersson > --- > Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 1 + > 1 file

Re: [PATCH v5 1/7] dt-bindings: phy: qcom,qmp-usb3-dp-phy: move usb3 compatibles back to qcom,qmp-phy.yaml

2021-03-29 Thread Bjorn Andersson
On Sun 28 Mar 15:52 CDT 2021, Dmitry Baryshkov wrote: > The commit 724fabf5df13 ("dt-bindings: phy: qcom,qmp-usb3-dp: Add DP phy > information") has support for DP part of USB3+DP combo PHYs. However > this change is not backwards compatible, placing additional requirements > onto

Re: [PATCH v2 04/13] spidev: Add Pensando CPLD compatible

2021-03-29 Thread Brad Larson
On Mon, Mar 29, 2021 at 3:45 AM Andy Shevchenko wrote: > > On Mon, Mar 29, 2021 at 5:01 AM Brad Larson wrote: > > > > Pensando Elba SoC platforms have a SPI connected CPLD > > for platform management. > > And? It's not a good justification to spread the (debugging only) > spidev interface. > >

  1   2   3   4   5   6   7   8   9   10   >