[PATCH v2] AMD_SFH: Fix for incorrect Sensor index

2020-10-23 Thread Sandeep Singh
From: Sandeep Singh Add fix for incorrect sensor index and minor code clean-up. Reported-by: Mandoli Reported-by: Richard Neumann Signed-off-by: Sandeep Singh Fixes: SFH: PCIe driver to add support of AMD sensor fusion hub (4f567b9f8141) --- Changes since v1:(https://lkml.org/lkml/2020/10/23/

Re: [PATCH] docs: driver-api: remove a duplicated index entry

2020-10-23 Thread Mauro Carvalho Chehab
Em Wed, 21 Oct 2020 15:13:44 -0600 Jonathan Corbet escreveu: > On Thu, 15 Oct 2020 11:12:06 +0200 > Mauro Carvalho Chehab wrote: > > > The ipmb file was added twice at index.rst. That > > sounds to be because the same patch was applied twice, > > via different git trees: > > > > commit f6a

Re: [PATCH v3 01/56] scripts: kernel-doc: fix typedef parsing

2020-10-23 Thread Mauro Carvalho Chehab
Em Fri, 23 Oct 2020 11:22:26 -0600 Jonathan Corbet escreveu: > On Fri, 23 Oct 2020 18:32:48 +0200 > Mauro Carvalho Chehab wrote: > > > The include/linux/genalloc.h file defined this typedef: > > > > typedef unsigned long (*genpool_algo_t)(unsigned long *map,unsigned > > long size,unsigned

Re: [PATCH] KVM: x86/mmu: Avoid modulo operator on 64-bit value to fix i386 build

2020-10-23 Thread Paolo Bonzini
On 24/10/20 05:11, Sean Christopherson wrote: > Replace a modulo operator with the more common pattern for computing the > gfn "offset" of a huge page to fix an i386 build error. > > arch/x86/kvm/mmu/tdp_mmu.c:212: undefined reference to `__umoddi3' > > Fixes: 2f2fad0897cb ("kvm: x86/mmu: Add f

Re: [PATCH v3 49/56] refcount.h: fix a kernel-doc markup

2020-10-23 Thread Mauro Carvalho Chehab
Em Fri, 23 Oct 2020 13:47:57 -0600 Jonathan Corbet escreveu: > On Fri, 23 Oct 2020 21:39:07 +0200 > Peter Zijlstra wrote: > > > > > /** > > > > - * struct refcount_t - variant of atomic_t specialized for reference > > > > counts > > > > + * struct refcount_struct - variant of atomic_t special

[PATCH] pinctrl: amd: print debounce filter info in debugfs

2020-10-23 Thread Coiby Xu
Print out the status of debounce filter as follows, $ cat /sys/kernel/debug/gpio|grep pin130 pin130 interrupt is disabled| interrupt is masked| disable wakeup in S0i3 state| disable wakeup in S3 state| disable wakeup in S4/S5 state| input is high| pull-up is disabled| Pull-down is dis

security/integrity/platform_certs/keyring_handler.c:62:30: warning: no previous prototype for function 'get_handler_for_db'

2020-10-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f11901ed723d1351843771c3a84b03a253bbf8b2 commit: ad723674d6758478829ee766e3f1a2a24d56236f x86/efi: move common keyring handler functions to new file date: 12 months ago config: x86_64-randconfig-a005-20201

[PATCH v6] fat: Add KUnit tests for checksums and timestamps

2020-10-23 Thread David Gow
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspored by -- and serve a similar purpose to -- the timestam

[PATCH v5] fat: Add KUnit tests for checksums and timestamps

2020-10-23 Thread David Gow
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspored by -- and serve a similar purpose to -- the timestam

Re: [PATCH v4] fat: Add KUnit tests for checksums and timestamps

2020-10-23 Thread kernel test robot
Hi David, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.9 next-20201023] [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 documented in h

Re: [PATCH] ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead of selecting it

2020-10-23 Thread David Gow
On Fri, Oct 23, 2020 at 10:07 PM Theodore Y. Ts'o wrote: > > On Thu, Oct 22, 2020 at 04:52:52PM -0700, Brendan Higgins wrote: > > So you, me, Luis, David, and a whole bunch of other people have been > > thinking about this problem for a while. What if we just put > > kunitconfig fragments in direc

Re: [PATCH v4 0/2] Control over userfaultfd kernel-fault handling

2020-10-23 Thread Andrea Arcangeli
Hello, On Thu, Oct 08, 2020 at 04:22:36PM -0700, Nick Kralevich wrote: > I haven't tried to verify this myself. I wonder if the usermode > hardening changes also impacted this exploit? See > https://lkml.org/lkml/2017/1/16/468 My plan was to: 1) reproduce with the old buggy kernel 2) forward po

Re: kvm+nouveau induced lockdep gripe

2020-10-23 Thread Mike Galbraith
On Sat, 2020-10-24 at 13:00 +0800, Hillf Danton wrote: > On Sat, 24 Oct 2020 05:38:23 +0200 Mike Galbraith wrote: > > On Sat, 2020-10-24 at 10:22 +0800, Hillf Danton wrote: > > > > > > Looks like we can break the lock chain by moving ttm bo's release > > > method out of mmap_lock, see diff below. >

Re: [PATCH v2 1/2] kunit: Support for Parameterized Testing

2020-10-23 Thread Arpitha Raghunandan
On 24/10/20 12:18 am, Marco Elver wrote: > On Fri, Oct 23, 2020 at 08:35PM +0530, Arpitha Raghunandan wrote: >> Implementation of support for parameterized testing in KUnit. > > Already looks much cleaner, thanks for using this approach! > > I think the commit message needs a brief summary of the

[PATCH v4] fat: Add KUnit tests for checksums and timestamps

2020-10-23 Thread David Gow
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspored by -- and serve a similar purpose to -- the timestam

[GIT PULL] RISC-V Patches for the 5.10 Merge Window, Part 2

2020-10-23 Thread Palmer Dabbelt
The following changes since commit de22d2107ced3cc5355cc9dbbd85e44183546bd5: RISC-V: Add page table dump support for uefi (2020-10-02 14:31:33 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv-for-linus-5.10-mw1 for you

Re: [PATCH v2] lib: Convert test_printf.c to KUnit

2020-10-23 Thread Arpitha Raghunandan
On 23/10/20 11:31 pm, Petr Mladek wrote: > On Fri 2020-10-23 19:13:00, Arpitha Raghunandan wrote: >> On 23/10/20 4:36 pm, Rasmus Villemoes wrote: >>> On 22/10/2020 21.16, Andy Shevchenko wrote: On Thu, Oct 22, 2020 at 08:43:49PM +0530, Arpitha Raghunandan wrote: > Converted test failure: >

[PATCH v3] ASoC: Intel: boards: Add CML_RT1015 m/c driver

2020-10-23 Thread Keith Tzneg
From: Keith Tzeng Machine driver to enable RT5682 on SSP0, DMIC, HDMI and RT1015 AMP on SSP1: Enabled 4 CH TDM playback with 24 bit data. Signed-off-by: Keith Tzeng --- sound/soc/intel/boards/Kconfig| 15 + sound/soc/intel/boards/Makefile | 2 + sound/s

Re: [PATCH 1/2] mm: reorganize internal_get_user_pages_fast()

2020-10-23 Thread John Hubbard
On 10/23/20 5:19 PM, Jason Gunthorpe wrote: The next patch in this series makes the lockless flow a little more complex, so move the entire block into a new function and remove a level of indention. Tidy a bit of cruft: - addr is always the same as start, so use start - Use the modern check_

Re: [PATCH v5 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-10-23 Thread Lokesh Gidra
On Fri, Oct 23, 2020 at 7:48 PM Andrea Arcangeli wrote: > > Hello everyone, > > On Sat, Oct 10, 2020 at 11:24:56PM -0700, Lokesh Gidra wrote: > > With this change, when the knob is set to 0, it allows unprivileged > > users to call userfaultfd, like when it is set to 1, but with the > > restrictio

Re: [PATCH 0/3] Add support to handle prefetchable memory

2020-10-23 Thread Jingoo Han
On 10/23/20, 3:57 PM, Vidya Sagar wrote: > > This patch series adds support for configuring the DesignWare IP's ATU > region for prefetchable memory translations. > It first starts by flagging a warning if the size of non-prefetchable > aperture goes beyond 32-bit as PCIe spec doesn't allow it. >

ld.lld: warning: fs/built-in.a(cifs/smb2pdu.o):(.data..L__unnamed_18) is being placed in '.data..L__unnamed_18'

2020-10-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b76f733c3ff83089cf1e3f9ae233533649f999b3 commit: 29e279230413cdd5e00fb5d269cae1099184ab85 smb3.1.1: add new module load parm enable_gcm_256 date: 8 days ago config: powerpc64-randconfig-r004-20201022 (atta

[PATCH] drm/rockchip: dw_hdmi: fix incorrect clock in vpll clock error message

2020-10-23 Thread Jonathan Liu
Error message incorrectly refers to grf clock instead of vpll clock. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-roc

Re: [PATCH v4 23/23] drm/msm: Don't implicit-sync if only a single ring

2020-10-23 Thread Rob Clark
On Fri, Oct 23, 2020 at 11:20 AM Lucas Stach wrote: > > On Fr, 2020-10-23 at 09:51 -0700, Rob Clark wrote: > > From: Rob Clark > > > > If there is only a single ring (no-preemption), everything is FIFO order > > and there is no need to implicit-sync. > > > > Mesa should probably just always use M

Re: kvm+nouveau induced lockdep gripe

2020-10-23 Thread Mike Galbraith
On Sat, 2020-10-24 at 10:22 +0800, Hillf Danton wrote: > > Looks like we can break the lock chain by moving ttm bo's release > method out of mmap_lock, see diff below. Ah, the perfect compliment to morning java, a patchlet to wedge in and see what happens. wedge/build/boot Mmm, box says no bana

Re: [PATCH 2/3] irqchip/irq-sifive-plic: Fixup couldn't broadcast to multi CPUs

2020-10-23 Thread Guo Ren
On Fri, Oct 23, 2020 at 8:17 PM Anup Patel wrote: > > On Fri, Oct 23, 2020 at 3:48 PM wrote: > > > > From: Guo Ren > > > > If "echo 3 > /proc/irq/1/smp_affinity", we want irq 1 could be > > broadcast to CPU0 & CPU1 and one of them would pick up the irq > > handler. > > > > But current implementa

[PATCH] KVM: x86/mmu: Avoid modulo operator on 64-bit value to fix i386 build

2020-10-23 Thread Sean Christopherson
Replace a modulo operator with the more common pattern for computing the gfn "offset" of a huge page to fix an i386 build error. arch/x86/kvm/mmu/tdp_mmu.c:212: undefined reference to `__umoddi3' Fixes: 2f2fad0897cb ("kvm: x86/mmu: Add functions to handle changed TDP SPTEs") Reported-by: Daniel

Re: [PATCH v2 5/6] pci: dwc: pci-exynos: rework the driver to support Exynos5433 variant

2020-10-23 Thread Jingoo Han
On 10/23/20, 3:58 AM, Marek Szyprowski wrote: > > From: Jaehoon Chung > > Exynos5440 SoC support has been dropped since commit 8c83315da1cf ("ARM: > dts: exynos: Remove Exynos5440"). Rework this driver to support DWC PCIe > variant found in the Exynos5433 SoCs. > > The main difference in Exynos54

Re: [PATCH 1/3] irqchip/irq-sifive-plic: Fixup wrong size of xxx_PER_HART and reg base

2020-10-23 Thread Guo Ren
On Fri, Oct 23, 2020 at 8:31 PM Anup Patel wrote: > > On Fri, Oct 23, 2020 at 3:48 PM wrote: > > > > From: Guo Ren > > > > ENABLE and CONTEXT registers contain M & S status for per-hart, so > > ref to the specification the correct definition is double to the > > current value. > > > > The value

Re: WARNING in dma_map_page_attrs

2020-10-23 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:3cb12d27 Merge tag 'net-5.10-rc1' of git://git.kernel.org/.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1312539050 kernel config: https://syzkaller.appspot.com/x/.config?x=46c6fea3eb82

Re: kvm: x86-32 fails to link with tdp_mmu

2020-10-23 Thread Sean Christopherson
On Fri, Oct 23, 2020 at 07:17:54PM -0700, Sean Christopherson wrote: > On Fri, Oct 23, 2020 at 09:13:21PM -0500, Daniel Díaz wrote: > > Hello! > > > > We found the following problem building torvalds/master, which > > recently merged the for-linus tag from the KVM tree, when building > > with gcc

Re: [PATCH v2 4/6] phy: samsung: phy-exynos-pcie: rework driver to support Exynos5433 PCIe PHY

2020-10-23 Thread Jingoo Han
On 10/23/20, 3:59 AM, Marek Szyprowski wrote: > > From: Jaehoon Chung > > Exynos5440 SoC support has been dropped since commit 8c83315da1cf ("ARM: > dts: exynos: Remove Exynos5440"). Rework this driver to support PCIe PHY > variant found in the Exynos5433 SoCs. > > Signed-off-by: Jaehoon Chung >

Re: [PATCH v2 1/6] dt-bindings: pci: drop samsung,exynos5440-pcie binding

2020-10-23 Thread Jingoo Han
On 10/23/20, 3:58 AM, Marek Szyprowski wrote: > > Exynos5440 SoC support has been dropped since commit 8c83315da1cf ("ARM: > dts: exynos: Remove Exynos5440"). Drop the obsolete bindings for > exynos5440-pcie. > > Signed-off-by: Marek Szyprowski > Reviewed-by: Rob Herring > Reviewed-by: Krzysztof

[PATCH 1/2] perf test: Use generic event for expand_libpfm_events()

2020-10-23 Thread Namhyung Kim
I found that the UNHALTED_CORE_CYCLES event is only available in the Intel machines and it makes other vendors/archs fail on the test. As libpfm4 can parse the generic events like cycles, let's use them. Fixes: 40b74c30ffb9 ("perf test: Add expand cgroup event test") Signed-off-by: Namhyung Kim

[PATCH v2 2/2] perf stat: Support regex pattern in --for-each-cgroup

2020-10-23 Thread Namhyung Kim
To make the command line even more compact with cgroups, support regex pattern matching in cgroup names. $ perf stat -a -e cpu-clock,cycles --for-each-cgroup ^foo sleep 1 3,000.73 msec cpu-clock foo #2.998 CPUs utilized 12,530,992,699 cycles

Re: [PATCH v4 seccomp 5/5] seccomp/cache: Report cache data through /proc/pid/seccomp_cache

2020-10-23 Thread Kees Cook
On Thu, Oct 22, 2020 at 06:40:08PM -0500, YiFei Zhu wrote: > On Thu, Oct 22, 2020 at 5:32 PM Kees Cook wrote: > > I've been going back and forth on this, and I think what I've settled > > on is I'd like to avoid new CONFIG dependencies just for this feature. > > Instead, how about we just fill in

Re: [PATCH v5 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-10-23 Thread Andrea Arcangeli
Hello everyone, On Sat, Oct 10, 2020 at 11:24:56PM -0700, Lokesh Gidra wrote: > With this change, when the knob is set to 0, it allows unprivileged > users to call userfaultfd, like when it is set to 1, but with the > restriction that page faults from only user-mode can be handled. > In this mode,

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-23 Thread Li, Aubrey
On 2020/10/24 5:47, Joel Fernandes wrote: > On Fri, Oct 23, 2020 at 01:25:38PM +0800, Li, Aubrey wrote: > @@ -2517,6 +2528,7 @@ const struct sched_class dl_sched_class > > #ifdef CONFIG_SMP > .balance= balance_dl, > + .pick_task = pick_tas

Re: [PATCH] perf stat: Support regex pattern in --for-each-cgroup

2020-10-23 Thread Namhyung Kim
Hi Andi, On Sat, Oct 24, 2020 at 2:04 AM Andi Kleen wrote: > > On Fri, Oct 23, 2020 at 04:42:34PM +0900, Namhyung Kim wrote: > > To make the command line even more compact with cgroups, support regex > > pattern matching in cgroup names. > > > > $ perf stat -a -e cpu-clock,cycles --for-each-cgr

Re: kvm: x86-32 fails to link with tdp_mmu

2020-10-23 Thread Sean Christopherson
On Fri, Oct 23, 2020 at 09:13:21PM -0500, Daniel Díaz wrote: > Hello! > > We found the following problem building torvalds/master, which > recently merged the for-linus tag from the KVM tree, when building > with gcc 7.3.0 and glibc 2.27 for x86 32-bits under OpenEmbedded: > > | LD vmlinux

kvm: x86-32 fails to link with tdp_mmu

2020-10-23 Thread Daniel Díaz
Hello! We found the following problem building torvalds/master, which recently merged the for-linus tag from the KVM tree, when building with gcc 7.3.0 and glibc 2.27 for x86 32-bits under OpenEmbedded: | LD vmlinux.o | MODPOST vmlinux.symvers | MODINFO modules.builtin.modinfo | GEN

Re: [PATCH] sunrpc: raise kernel RPC channel buffer size

2020-10-23 Thread J. Bruce Fields
On Sat, Oct 24, 2020 at 03:29:25AM +0200, Roberto Bergantinos Corpas wrote: > Good point Geert ! > > > How about making it a kvmalloc? > > I can post a new patch using kvmalloc, Bruce looks we can also > prescind of queue_io_mutex, what do you think ? And revert da77005f0d64, I think. Maybe th

Re: [PATCH v4] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-23 Thread Matthew Wilcox
On Fri, Oct 23, 2020 at 08:48:04PM -0400, Rik van Riel wrote: > The allocation flags of anonymous transparent huge pages can be controlled > through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can > help the system from getting bogged down in the page reclaim and compaction > cod

Re: [PATCH v5 1/2] Add UFFD_USER_MODE_ONLY

2020-10-23 Thread Andrea Arcangeli
On Sat, Oct 10, 2020 at 11:24:55PM -0700, Lokesh Gidra wrote: > userfaultfd handles page faults from both user and kernel code. > Add a new UFFD_USER_MODE_ONLY flag for userfaultfd(2) that makes > the resulting userfaultfd object refuse to handle faults from kernel > mode, treating these faults as

[PATCH v1 1/2] bus: mhi: core: Count number of HW channels supported by controller

2020-10-23 Thread Hemant Kumar
Device provides the total number of HW channels it supports using MHI configuration register. Host supported HW channels shall not exceed that value. In order to make this check, a counter is needed to store total number of HW channels required by host. Signed-off-by: Hemant Kumar --- drivers/bu

[PATCH v1 2/2] bus: mhi: core: Check for device supported event rings and channels

2020-10-23 Thread Hemant Kumar
It is possible that the device does not support the number of event rings and channels that the controller would like to use. Read the MHICFG to determine device-side support and if the controller requests more than the device supports, bailout without configuring device MMIO registers. Signed-off

[PATCH v1 0/2] Check for device supported event rings and channels

2020-10-23 Thread Hemant Kumar
This change is introduced to make sure device supported hardware event ring, hardware channels, total number of event rings and total number of channels match with MHI host controller. In case of a mismatch, driver bails out and does not move MHI device to M0 from Ready state. Hemant Kumar (2):

Re: [PATCH] net: ucc_geth: Drop extraneous parentheses in comparison

2020-10-23 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Fri, 23 Oct 2020 14:32:36 +1100 you wrote: > Clang warns about the extra parentheses in this comparison: > > drivers/net/ethernet/freescale/ucc_geth.c:1361:28: > warning: equality comparison with extraneous parentheses >

Re: [PATCH] net: ucc_geth: Drop extraneous parentheses in comparison

2020-10-23 Thread Jakub Kicinski
On Fri, 23 Oct 2020 14:32:36 +1100 Michael Ellerman wrote: > Clang warns about the extra parentheses in this comparison: > > drivers/net/ethernet/freescale/ucc_geth.c:1361:28: > warning: equality comparison with extraneous parentheses > if ((ugeth->phy_interface == PHY_INTERFACE_MODE_SGMII

Re: [PATCH v4] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-23 Thread Joe Perches
On Sat, 2020-10-24 at 05:38 +0530, Aditya Srivastava wrote: > Presence of hexadecimal address or symbol results in false warning > message by checkpatch.pl. > > For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix > memory leak in mptcp_subflow_create_socket()") results in warning:

Re: [PATCH] selftests/ftrace: remove _do_fork() leftovers

2020-10-23 Thread Masami Hiramatsu
On Fri, 23 Oct 2020 09:35:23 -0400 Steven Rostedt wrote: > On Fri, 23 Oct 2020 10:52:03 +0200 > Alexander Gordeev wrote: > > > diff --git > > a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc > > b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc

Re: [PATCH net] net: ipa: command payloads already mapped

2020-10-23 Thread Jakub Kicinski
On Wed, 21 Oct 2020 20:00:29 -0500 Alex Elder wrote: > IPA transactions describe actions to be performed by the IPA > hardware. Three cases use IPA transactions: transmitting a socket > buffer; providing a page to receive packet data; and issuing an IPA > immediate command. An IPA transaction co

Re: [PATCH] sunrpc: raise kernel RPC channel buffer size

2020-10-23 Thread Roberto Bergantinos Corpas
Good point Geert ! > How about making it a kvmalloc? I can post a new patch using kvmalloc, Bruce looks we can also prescind of queue_io_mutex, what do you think ? > > --b. >

Re: [RFC PATCH v3 9/9] ipu3-cio2: Add functionality allowing software_node connections to sensors on platforms designed for Windows

2020-10-23 Thread Laurent Pinchart
Hi Daniel, Thank you for the patch. On Mon, Oct 19, 2020 at 11:59:03PM +0100, Daniel Scally wrote: > Currently on platforms designed for Windows, connections between CIO2 and > sensors are not properly defined in DSDT. This patch extends the ipu3-cio2 > driver to compensate by building software_n

drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c:16:5: warning: no previous prototype for function 'vfio_fsl_mc_irqs_allocate'

2020-10-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b76f733c3ff83089cf1e3f9ae233533649f999b3 commit: cc0ee20bd96971c10eba9a83ecf1c0733078a083 vfio/fsl-mc: trigger an interrupt via eventfd date: 11 days ago config: arm64-randconfig-r001-20201024 (attached as

[PATCH] kernel/sys.c: fix prototype of prctl_get_tid_address()

2020-10-23 Thread Rasmus Villemoes
tid_addr is not a "pointer to (pointer to int in userspace)"; it is in fact a "pointer to (pointer to int in userspace) in userspace". So sparse rightfully complains about passing a kernel pointer to put_user(). Reported-by: kernel test robot Signed-off-by: Rasmus Villemoes --- kernel/sys.c | 6

[PATCH v4] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-23 Thread Rik van Riel
The allocation flags of anonymous transparent huge pages can be controlled through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can help the system from getting bogged down in the page reclaim and compaction code when many THPs are getting allocated simultaneously. However, the g

[PATCH] drm/ttm: add __user annotation in radeon_ttm_vram_read

2020-10-23 Thread Rasmus Villemoes
Keep sparse happy by preserving the __user annotation when casting. Reported-by: kernel test robot Signed-off-by: Rasmus Villemoes --- kernel test robot has already started spamming me due to 9c5743dff. If I don't fix those warnings I'll keep getting those emails for months, so let me do the ea

Re: [RFC PATCH v3 7/9] ipu3-cio2: Check if pci_dev->dev's fwnode is a software_node in cio2_parse_firmware() and set FWNODE_GRAPH_DEVICE_DISABLED if so

2020-10-23 Thread Laurent Pinchart
Hi Sakari On Wed, Oct 21, 2020 at 01:49:10AM +0300, Sakari Ailus wrote: > On Tue, Oct 20, 2020 at 08:56:07PM +0100, Dan Scally wrote: > > On 20/10/2020 13:06, Sakari Ailus wrote: > > > On Tue, Oct 20, 2020 at 12:19:58PM +0300, Andy Shevchenko wrote: > > >> On Mon, Oct 19, 2020 at 11:59:01PM +0100,

Re: [RFC PATCH v3 6/9] ipu3-cio2: Rename ipu3-cio2.c to allow module to be built from multiple sources files retaining ipu3-cio2 name

2020-10-23 Thread Laurent Pinchart
Hi Daniel, Thank you for the patch. On Mon, Oct 19, 2020 at 11:59:00PM +0100, Daniel Scally wrote: > ipu3-cio2 driver needs extending with multiple files; rename the main > source file and specify the renamed file in Makefile to accommodate that. > > Signed-off-by: Daniel Scally > --- > Changes

Re: [PATCH v3 13/20] perf arm-spe: Add new function arm_spe_pkt_desc_event()

2020-10-23 Thread André Przywara
On 22/10/2020 15:58, Leo Yan wrote: Hi, > This patch moves out the event packet parsing from arm_spe_pkt_desc() > to the new function arm_spe_pkt_desc_event(). > > Signed-off-by: Leo Yan diff -w says this is correct, so: Reviewed-by: Andre Przywara Thanks! Andre > --- > .../arm-spe-decode

Re: [PATCH v3 19/20] perf arm_spe: Decode memory tagging properties

2020-10-23 Thread André Przywara
On 22/10/2020 15:58, Leo Yan wrote: Hi, > From: Andre Przywara > > When SPE records a physical address, it can additionally tag the event > with information from the Memory Tagging architecture extension. > > Decode the two additional fields in the SPE event payload. > > [leoy: Refined patch

Re: [PATCH v3 18/20] perf arm-spe: Add more sub classes for operation packet

2020-10-23 Thread André Przywara
On 22/10/2020 15:58, Leo Yan wrote: Hi, > For the operation type packet payload with load/store class, it misses > to support these sub classes: > > - A load/store targeting the general-purpose registers; > - A load/store targeting unspecified registers; > - The ARMv8.4 nested virtualisati

Re: [PATCH v3 14/20] perf arm-spe: Refactor event type handling

2020-10-23 Thread André Przywara
On 22/10/2020 15:58, Leo Yan wrote: Hi, > Move the enums of event types to arm-spe-pkt-decoder.h, thus function > arm_spe_pkt_desc() can them for bitmasks. > > Suggested-by: Andre Przywara > Signed-off-by: Leo Yan The move is fine, and I checked the bitmasks as well. Reviewed-by: Andre Przyw

Re: [PATCH v3 12/20] perf arm-spe: Refactor counter packet handling

2020-10-23 Thread André Przywara
On 22/10/2020 15:58, Leo Yan wrote: Hi, > This patch defines macros for counter packet header, and uses macros to > replace hard code values in functions arm_spe_get_counter() and > arm_spe_pkt_desc(). > > In the function arm_spe_get_counter(), adds a new line for more > readable. > > Signed-of

Re: [PATCH v2] ASoC: cs42l51: manage mclk shutdown delay

2020-10-23 Thread Mark Brown
On Tue, 20 Oct 2020 17:01:09 +0200, Olivier Moysan wrote: > A delay must be introduced before the shutdown down of the mclk, > as stated in CS42L51 datasheet. Otherwise the codec may > produce some noise after the end of DAPM power down sequence. > The delay between DAC and CLOCK_SUPPLY widgets is

Re: [PATCH] ASoC: qcom: sdm845: set driver name correctly

2020-10-23 Thread Mark Brown
On Fri, 23 Oct 2020 10:58:49 +0100, Srinivas Kandagatla wrote: > With the current state of code, we would endup with something like > below in /proc/asound/cards for 2 machines based on this driver. > > Machine 1: > 0 [DB845c]: DB845c - DB845c >DB845c > Machine

Re: [PATCH] ASoC: codecs: wsa881x: add missing stream rates and format

2020-10-23 Thread Mark Brown
On Thu, 22 Oct 2020 14:05:18 +0100, Srinivas Kandagatla wrote: > Add missing supported rates and formats for the stream, without > which attempt to do playback will fail to find any matching rates/format. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Th

Re: [RFC PATCH v3 5/9] ipu3-cio2: Add T: entry to MAINTAINERS

2020-10-23 Thread Laurent Pinchart
Hi Daniel, Thank you for the patch. On Mon, Oct 19, 2020 at 11:58:59PM +0100, Daniel Scally wrote: > Development for the ipu3-cio2 driver is taking place in media_tree, but > there's no T: entry in MAINTAINERS to denote that - rectify that oversight > > Signed-off-by: Daniel Scally Reviewed-by

Re: [PATCH] MAINTAINERS: Add entry for Qualcomm IPQ4019 VQMMC regulator

2020-10-23 Thread Mark Brown
On Fri, 16 Oct 2020 22:44:04 +0200, Robert Marko wrote: > Add maintainers entry for the Qualcomm IPQ4019 VQMMC regulator driver. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] MAINTAINERS: Add entry for Qualcomm IPQ4019 VQMMC regulato

Re: [PATCH v4] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-23 Thread Aditya
On 24/10/20 5:38 am, Aditya Srivastava wrote: > Presence of hexadecimal address or symbol results in false warning > message by checkpatch.pl. > > For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix > memory leak in mptcp_subflow_create_socket()") results in warning: > > WARNING:R

Re: [GIT PULL] ring-buffer: Updates for 5.10

2020-10-23 Thread pr-tracker-bot
The pull request you sent on Fri, 23 Oct 2020 12:07:50 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > trace-v5.10-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a5e5c274c920f693d9c1ab65440d8e53a4530aca Thank you! -- Deet-doot-dot

Re: [GIT PULL] Documentation fixes for 5.10

2020-10-23 Thread pr-tracker-bot
The pull request you sent on Fri, 23 Oct 2020 13:17:19 -0600: > git://git.lwn.net/linux.git tags/docs-5.10-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c80e42a4963b3f593d53fb8f565e5bbca61a6531 Thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org

Re: [GIT PULL] xfs: fixes for 5.10-rc1

2020-10-23 Thread pr-tracker-bot
The pull request you sent on Fri, 23 Oct 2020 14:55:46 -0700: > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-5.10-merge-7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f11901ed723d1351843771c3a84b03a253bbf8b2 Thank you! -- Deet-doot-dot, I am a bot. h

[PATCH 1/2] mm: reorganize internal_get_user_pages_fast()

2020-10-23 Thread Jason Gunthorpe
The next patch in this series makes the lockless flow a little more complex, so move the entire block into a new function and remove a level of indention. Tidy a bit of cruft: - addr is always the same as start, so use start - Use the modern check_add_overflow() for computing end = start + len

Re: [RFC] Have insn decoder functions return success/failure

2020-10-23 Thread Andy Lutomirski
On Fri, Oct 23, 2020 at 4:27 PM Borislav Petkov wrote: > > On Fri, Oct 23, 2020 at 07:47:04PM +0900, Masami Hiramatsu wrote: > > Thanks! I look forward to it. > > Ok, here's a first stab, it is a single big diff and totally untested > but it should show what I mean. I've made some notes while conv

[PATCH v4] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-23 Thread Aditya Srivastava
Presence of hexadecimal address or symbol results in false warning message by checkpatch.pl. For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix memory leak in mptcp_subflow_create_socket()") results in warning: WARNING:REPEATED_WORD: Possible repeated word: 'ff' 00 00 00 00 0

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-10-23 Thread Jason Gunthorpe
On Sun, Oct 18, 2020 at 11:26:59AM -0700, Joe Perches wrote: > I'll post it again as a reply to this email with a > with a sign-off and a better commit description and > Linus/Andrew can decide if it's better to revert > f5f613259f3f or apply it separately. Gentle reminder on this, it is the last

Re: [PATCH] sunrpc: raise kernel RPC channel buffer size

2020-10-23 Thread J. Bruce Fields
On Fri, Oct 23, 2020 at 11:44:38AM +0200, Geert Uytterhoeven wrote: > Hi Bruce, Roberto, > > On Mon, 19 Oct 2020, J. Bruce Fields wrote: > >On Mon, Oct 19, 2020 at 11:33:56AM +0200, Roberto Bergantinos Corpas wrote: > >>Its possible that using AUTH_SYS and mountd manage-gids option a > >>use

include/linux/irq.h:744: undefined reference to `extcon_find_edev_by_node'

2020-10-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 40a03b750bb3ded71a0f21a0b7dfbf3b24068dcb commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections date: 8 weeks ago config: riscv-randconfig-r001-20201023

[PATCH] fix scheduler regression from "sched/fair: Rework load_balance()"

2020-10-23 Thread Chris Mason
Hi everyone, We’re validating a new kernel in the fleet, and compared with v5.2, performance is ~2-3% lower for some of our workloads. After some digging, Johannes found that our involuntary context switch rate was ~2x higher, and we were leaving a CPU idle a higher percentage of the time, e

Re: [GIT PULL] More power management updates for v5.10-rc1

2020-10-23 Thread pr-tracker-bot
The pull request you sent on Fri, 23 Oct 2020 19:29:43 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > pm-5.10-rc1-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/41f762a15a6324f67c3f084ece694c26f196cece Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] final round of SCSI updates for the 5.9+ merge window

2020-10-23 Thread pr-tracker-bot
The pull request you sent on Fri, 23 Oct 2020 11:46:21 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-misc has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/af995383eb653f875c4e4e2349d5b0b4ba839eaa Thank you! -- Deet-doot-dot, I am a bot. htt

Re: [git pull] Input updates for v5.10-rc0

2020-10-23 Thread pr-tracker-bot
The pull request you sent on Thu, 22 Oct 2020 21:54:21 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bd7e8c996f5aba542f416ee6d19e91fd3668674f Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [GIT PULL] More ACPI updates for v5.10-rc1

2020-10-23 Thread pr-tracker-bot
The pull request you sent on Fri, 23 Oct 2020 19:31:24 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > acpi-5.10-rc1-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b76f733c3ff83089cf1e3f9ae233533649f999b3 Thank you! -- Deet-doot-dot,

RE: [PATCH] x86/uaccess: fix code generation in put_user()

2020-10-23 Thread hpa
On October 23, 2020 2:52:16 PM PDT, David Laight wrote: >From: Linus Torvalds >> Sent: 23 October 2020 22:11 >> >> On Fri, Oct 23, 2020 at 2:00 PM wrote: >> > >> > There is no same reason to mess around with hacks when we are >talking about dx:ax, though. >> >> Sure there is. >> >> "A" doesn'

Re: [PATCH v2 2/3] dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-10-23 Thread Doug Anderson
Hi, On Fri, Oct 23, 2020 at 4:23 PM Douglas Anderson wrote: > > +examples: > + - | > +#include > +#include > +#include > + > +i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ap_ts: touchscreen@5d { > +compatible = "hid-over-i2c"; You alwa

Re: [RFC] Have insn decoder functions return success/failure

2020-10-23 Thread Borislav Petkov
On Fri, Oct 23, 2020 at 07:47:04PM +0900, Masami Hiramatsu wrote: > Thanks! I look forward to it. Ok, here's a first stab, it is a single big diff and totally untested but it should show what I mean. I've made some notes while converting, as I went along. Have a look at insn_decode() and its call

[PATCH] mm: remove kzfree() compatibility definition

2020-10-23 Thread Eric Biggers
From: Eric Biggers Commit 453431a54934 ("mm, treewide: rename kzfree() to kfree_sensitive()") renamed kzfree() to kfree_sensitive(), but it left a compatibility definition of kzfree() to avoid being too disruptive. Since then a few more instances of kzfree() have slipped in. Just get rid of them

[PATCH v2 1/3] dt-bindings: HID: i2c-hid: Label this binding as deprecated

2020-10-23 Thread Douglas Anderson
As pointed out by Rob Herring [1], we should have a device-specific compatible string. This means people shouldn't be using the "i2c-over-hid" compatible string anymore, or at least not without a more specific compatible string before it. Specifically: 1. For newly added devices we should just h

[PATCH v2 2/3] dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-10-23 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen works with generic "i2c-over-hid", the current advice is to give it its own compatible string. The cleanest way to do this is to give it its own bindings. Among other things, this has the advantage that we can list

[PATCH v2 3/3] HID: i2c-hid: Support the Goodix GT7375P touchscreen

2020-10-23 Thread Douglas Anderson
The Goodix GT7375P touchscreen uses i2c-hid so we can support it with just a few changes to the i2c-hid driver. Specifically this touchscreen needs to control a reset GPIO during its power sequencing. The Goodix timing diagram shows this: +-- | A

[PATCH 4.9-stable] scripts/setlocalversion: make git describe output more reliable

2020-10-23 Thread Rasmus Villemoes
commit 548b8b5168c90c42e88f70fcf041b4ce0b8e7aa8 upstream. When building for an embedded target using Yocto, we're sometimes observing that the version string that gets built into vmlinux (and thus what uname -a reports) differs from the path under /lib/modules/ where modules get installed in the r

[PATCH 4.4-stable] scripts/setlocalversion: make git describe output more reliable

2020-10-23 Thread Rasmus Villemoes
commit 548b8b5168c90c42e88f70fcf041b4ce0b8e7aa8 upstream. When building for an embedded target using Yocto, we're sometimes observing that the version string that gets built into vmlinux (and thus what uname -a reports) differs from the path under /lib/modules/ where modules get installed in the r

[PATCH v9 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-10-23 Thread Hemant Kumar
Introduce mhi_get_free_desc_count() API to return number of TREs available to queue buffer. MHI clients can use this API to know before hand if ring is full without calling queue API. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/c

[PATCH v9 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file

2020-10-23 Thread Hemant Kumar
Currently this macro is defined in internal MHI header as a TRE length mask. Moving it to external header allows MHI client drivers to set this upper bound for the transmit buffer size. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi

[PATCH v9 4/4] bus: mhi: Add userspace client interface driver

2020-10-23 Thread Hemant Kumar
This MHI client driver allows userspace clients to transfer raw data between MHI device and host using standard file operations. Driver instantiates UCI device object which is associated to device file node. UCI device object instantiates UCI channel object when device file node is opened. UCI chan

[PATCH v9 3/4] docs: Add documentation for userspace client interface

2020-10-23 Thread Hemant Kumar
MHI userspace client driver is creating device file node for user application to perform file operations. File operations are handled by MHI core driver. Currently Loopback MHI channel is supported by this driver. Signed-off-by: Hemant Kumar --- Documentation/mhi/index.rst | 1 + Documentation/

[PATCH v9 0/4] userspace MHI client interface driver

2020-10-23 Thread Hemant Kumar
This patch series adds support for UCI driver. UCI driver enables userspace clients to communicate to external MHI devices like modem and WLAN. UCI driver probe creates standard character device file nodes for userspace clients to perform open, read, write, poll and release file operations. These f

Re: [PATCH 0/3] drm/amd/display: Fix kernel panic by breakpoint

2020-10-23 Thread Luben Tuikov
On 2020-10-23 03:46, Takashi Iwai wrote: > Hi, > > the amdgpu driver's ASSERT_CRITICAL() macro calls the > kgdb_breakpoing() even if no debug option is set, and this leads to a > kernel panic on distro kernels. The first two patches are the > oneliner fixes for those, while the last one is the cl

  1   2   3   4   5   6   7   8   9   10   >