Re: [PATCH 3/3] scsi: sd: add support for expect_media_change_suspend flag

2021-01-11 Thread kernel test robot
Hi Martin, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on scsi/for-next v5.11-rc3 next-20210111] [cannot apply to target/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH v2 2/2] drm/sun4i: tcon: improve DCLK polarity handling

2021-01-11 Thread Giulio Benetti
On 1/11/21 6:20 PM, Maxime Ripard wrote: On Fri, Jan 08, 2021 at 03:34:52PM +0100, Giulio Benetti wrote: Hi, On 1/8/21 10:23 AM, Maxime Ripard wrote: Hi, Thanks for those patches On Thu, Jan 07, 2021 at 03:30:32AM +0100, Giulio Benetti wrote: From: Giulio Benetti It turned out(Maxime sugg

Re: [RFC PATCH 1/2] userfaultfd: add minor fault registration mode

2021-01-11 Thread Axel Rasmussen
On Mon, Jan 11, 2021 at 3:58 AM Dr. David Alan Gilbert wrote: > > * Axel Rasmussen (axelrasmus...@google.com) wrote: > > This feature allows userspace to intercept "minor" faults. By "minor" > > fault, I mean the following situation: > > > > Let there exist two mappings (i.e., VMAs) to the same pa

Re: [PATCH][next] ASoC: soc-pcm: Fix uninitialised return value in variable ret

2021-01-11 Thread Colin Ian King
On 11/01/2021 16:35, Mark Brown wrote: > On Fri, Jan 08, 2021 at 12:35:46PM +, Colin King wrote: >> From: Colin Ian King >> >> Currently when attempting to start the BE fails because the >> FE is not started the error return variable ret is not initialized >> and garbage is returned. Fix this

Re: [PATCH 5.10 018/145] net: dcb: Validate netlink message in DCB handler

2021-01-11 Thread Jakub Kicinski
On Mon, 11 Jan 2021 14:00:42 +0100 Greg Kroah-Hartman wrote: > From: Petr Machata > > [ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ] > > DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB > messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not hav

Re: [PATCH] rcu: Trace cbs accelerated without leaf rnp node lock held

2021-01-11 Thread Steven Rostedt
On Mon, 11 Jan 2021 17:15:43 +0530 Neeraj Upadhyay wrote: > Trace cbs which are accelerated without rnp lock help in > rcu_accelerate_cbs_unlocked(). The above sentence does not make sense. -- Steve > > Signed-off-by: Neeraj Upadhyay > ---

Re: [PATCH] char_dev: replace cdev_map with an xarray

2021-01-11 Thread Matthew Wilcox
On Mon, Jan 11, 2021 at 06:05:13PM +0100, Christoph Hellwig wrote: > None of the complicated overlapping regions bits of the kobj_map are > required for the character device lookup, so just a trivial xarray > instead. Thanks for doing this. We could make it more efficient for chardevs that occupy

Re: [v3 PATCH 03/11] mm: vmscan: use shrinker_rwsem to protect shrinker_maps allocation

2021-01-11 Thread Kirill Tkhai
On 11.01.2021 20:08, Yang Shi wrote: > On Wed, Jan 6, 2021 at 1:55 AM Kirill Tkhai wrote: >> >> On 06.01.2021 01:58, Yang Shi wrote: >>> Since memcg_shrinker_map_size just can be changd under holding >>> shrinker_rwsem >>> exclusively, the read side can be protected by holding read lock, so it >

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

2021-01-11 Thread Alan Maguire
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 bpf_snprintf_btf() helper which dumps a string representation of the pointer pas

Re: [PATCH] rcu: Only trace when cbs are accelerated

2021-01-11 Thread Steven Rostedt
On Mon, 11 Jan 2021 17:15:01 +0530 Neeraj Upadhyay wrote: > Fix rcu_accelerate_cbs() traces to only trace when cbs are > accelerated in current call. The body of the commit should explain "why" not "what". Why not trace the cbs when not accelerated in the current call? -- Steve > > Signed-of

[RFC PATCH bpf-next 2/2] selftests/bpf: test libbpf-based type display

2021-01-11 Thread Alan Maguire
Test btf__snprintf with various base/kernel types and ensure display is as expected; tests are identical to those in snprintf_btf test save for the fact these run in userspace rather than BPF program context. Signed-off-by: Alan Maguire --- .../selftests/bpf/prog_tests/snprintf_btf_user.c | 19

[RFC PATCH bpf-next 0/2] bpf, libbpf: share BTF data show functionality

2021-01-11 Thread Alan Maguire
The BPF Type Format (BTF) can be used in conjunction with the helper bpf_snprintf_btf() to display kernel data with type information. This series generalizes that support and shares it with libbpf so that libbpf can display typed data. BTF display functionality is factored out of kernel/bpf/btf.c

Re: [PATCH 0/2] Use static_call for kvm_x86_ops

2021-01-11 Thread Paolo Bonzini
On 11/01/21 17:57, Jason Baron wrote: Hi, Convert kvm_x86_ops to use static_call. Shows good performance gains for cpuid loop micro-benchmark (resulsts included in patch 2). Thanks, -Jason Jason Baron (2): KVM: x86: introduce definitions to support static calls for kvm_x86_ops KVM: x86:

[PATCH] scsi: libsas and users: Remove notifier indirection

2021-01-11 Thread John Garry
LLDDs report events to libsas with .notify_port_event and .notify_phy_event callbacks. These callbacks are fixed and so there is no reason why the functions cannot be called directly, so do that. This neatens the code slightly, makes it more obvious, and reduces function pointer usage, which is g

Re: [PATCH v3 3/6] regulator: dt-bindings: pf8x00: remove nxp,ilim-ma property

2021-01-11 Thread Mark Brown
On Mon, Jan 11, 2021 at 06:27:52PM +0100, Adrien Grassein wrote: > Hello, Please don't top post, reply in line with needed context. This allows readers to readily follow the flow of conversation and understand what you are talking about and also helps ensure that everything in the discussion is b

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

2021-01-11 Thread Yonghong Song
On 1/8/21 3:19 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 + .../selftests/bpf/progs/task_local_storage.c | 37 +++

[PATCH] seccomp: Add missing return in non-void function

2021-01-11 Thread Paul Cercueil
We don't actually care about the value, since the kernel will panic before that; but a value should nonetheless be returned, otherwise the compiler will complain. Fixes: 8112c4f140fa ("seccomp: remove 2-phase API") Cc: sta...@vger.kernel.org # 4.7+ Signed-off-by: Paul Cercueil --- kernel/seccomp

Re: [PATCH net-next 1/3] bus: mhi: core: Add helper API to return number of free TREs

2021-01-11 Thread Jakub Kicinski
On Mon, 11 Jan 2021 18:16:17 +0100 Loic Poulain wrote: > From: 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

Re: [PATCH] spi: spi-bcm-qspi: style: Simplify bool comparison

2021-01-11 Thread Mark Brown
On Mon, Jan 11, 2021 at 09:21:11AM -0800, Florian Fainelli wrote: > On 1/11/21 9:05 AM, Mark Brown wrote: > > Honestly for super trivial stuff like this I'm not sure it's a useful > > use of anyone's time to police this sort of stuff aggressively, it's > > after the prefixes that matter so I saw i

Re: [PATCH v3 3/6] regulator: dt-bindings: pf8x00: remove nxp,ilim-ma property

2021-01-11 Thread Adrien Grassein
Hello, Is there a way to declare it deprecated in the DTB ? I never saw a deprecated value. Thanks, Le lun. 11 janv. 2021 à 18:20, Mark Brown a écrit : > > On Fri, Jan 08, 2021 at 11:50:03PM +0100, Adrien Grassein wrote: > > This property seems useless because we can use the > > regulator-max-m

Re: [RFC 0/2] kbuild: Add support to build overlays (%.dtbo)

2021-01-11 Thread Masahiro Yamada
On Fri, Jan 8, 2021 at 4:02 AM Rob Herring wrote: > > On Wed, Jan 6, 2021 at 10:35 PM Masahiro Yamada wrote: > > > > On Wed, Jan 6, 2021 at 12:21 AM Rob Herring wrote: > > > > > > On Tue, Jan 5, 2021 at 4:24 AM Viresh Kumar > > > wrote: > > > > > > > > Hello, > > > > > > > > Here is an attempt

[PATCH 2/2] KVM: x86: use static calls to reduce kvm_x86_ops overhead

2021-01-11 Thread Jason Baron
Convert kvm_x86_ops to use static calls. Note that all kvm_x86_ops are covered here except for 'pmu_ops and 'nested ops'. Here are some numbers running cpuid in a loop and measured timing in the vm (lower is better). cpuid loop (1 million calls(avg. of 5 runs)): |default|mitigatio

Re: [PATCH 2/2] resource: Make it possible to reserve memory on 64bit platform

2021-01-11 Thread David Hildenbrand
On 11.01.21 17:33, Wesley Zhao wrote: > From: "Wesley.Zhao" > > For now "reserve=" is limitied to 32bit,not available on 64bit > platform,so we change the get_option() to get_option_ull(added in > patch: commit 4b6bfe96265e ("lib/cmdline: add new function > get_option_ull()")) Curious, what's th

Re: [PATCH 5/5] media: hantro: Add support for the Rockchip PX30

2021-01-11 Thread Paul Kocialkowski
Hi, On Fri 08 Jan 21, 10:13, Ezequiel Garcia wrote: > On Fri, 2021-01-08 at 10:05 +0100, Paul Kocialkowski wrote: > > Hi Ezequiel, > > > > On Thu 07 Jan 21, 16:08, Ezequiel Garcia wrote: > > > Happy to see this patch. It was on my TODO list, > > > but I hadn't had time to bringup my rk3326 device

Re: [PATCH 1/2] lib/cmdline: add new function get_option_ull()

2021-01-11 Thread Andy Shevchenko
On Mon, Jan 11, 2021 at 08:33:17AM -0800, Wesley Zhao wrote: > From: "Wesley.Zhao" > > In the future we would pass the unsigned long long parameter > like(0x123456781234) in cmdline on the 64bit platform, so add a new > option parse function get_option_ull() No negative numbers? No test cases? N

Re: [PATCH 3/7] soc: qcom: geni: Add support for gpi dma

2021-01-11 Thread Vinod Koul
On 11-01-21, 09:40, Bjorn Andersson wrote: > On Mon 11 Jan 09:16 CST 2021, Vinod Koul wrote: > > > GPI DMA is one of the DMA modes supported on geni, this adds support to > > enable that mode > > > > Signed-off-by: Vinod Koul > > --- > > drivers/soc/qcom/qcom-geni-se.c | 39

[PATCH 1/2] KVM: x86: introduce definitions to support static calls for kvm_x86_ops

2021-01-11 Thread Jason Baron
Use static calls to improve kvm_x86_ops performance. Introduce the definitions that will be used by a subsequent patch to actualize the savings. Note that all kvm_x86_ops are covered here except for 'pmu_ops' and 'nested ops'. I think they can be covered by static calls in a simlilar manner, but w

[PATCH] iov_iter: fix the uaccess area in copy_compat_iovec_from_user

2021-01-11 Thread Christoph Hellwig
sizeof needs to be called on the compat pointer, not the native one. Fixes: 89cd35c58bc2 ("iov_iter: transparently handle compat iovecs in import_iovec") Reported-by: David Laight Signed-off-by: Christoph Hellwig --- lib/iov_iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

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

2021-01-11 Thread Bjorn Andersson
On Mon 11 Jan 09:16 CST 2021, Vinod Koul wrote: > We can use GPI DMA for devices where it is enabled by firmware. Add > support for this mode > > Signed-off-by: Vinod Koul > --- > drivers/spi/spi-geni-qcom.c | 395 +++- > 1 file changed, 384 insertions(+), 11 del

Re: [PATCH v3 3/6] regulator: dt-bindings: pf8x00: remove nxp,ilim-ma property

2021-01-11 Thread Mark Brown
On Fri, Jan 08, 2021 at 11:50:03PM +0100, Adrien Grassein wrote: > This property seems useless because we can use the > regulator-max-microamp generic property to do the same > and using generic code. This made it into a kernel release so we should continue to honour it, it's fine to deprecate it

Re: [PATCH 3/5] dt-bindings: media: rockchip-vpu: Add PX30 compatible

2021-01-11 Thread Paul Kocialkowski
Hi Philipp, On Thu 07 Jan 21, 15:55, Philipp Zabel wrote: > Hi Paul, > > On Thu, 2021-01-07 at 14:40 +0100, Paul Kocialkowski wrote: > > The Rockchip PX30 SoC has a Hantro VPU that features a decoder (VDPU2) > > and an encoder (VEPU2). It is similar to the RK3399's VPU but takes an > > extra cloc

Re: [PATCH] spi: spi-bcm-qspi: style: Simplify bool comparison

2021-01-11 Thread Florian Fainelli
On 1/11/21 9:05 AM, Mark Brown wrote: > On Mon, Jan 11, 2021 at 08:41:19AM -0800, Florian Fainelli wrote: > >>> [1/1] spi: spi-bcm-qspi: style: Simplify bool comparison >>> commit: 6650ab2a44268af8d24995d28ae199b57b2ebff8 > >> I don't think that "style: " is a subject prefix that is used co

Re: 5.11-rc device reordering breaks ThinkPad rmi4 suspend

2021-01-11 Thread Hugh Dickins
On Mon, 11 Jan 2021, Rafael J. Wysocki wrote: > On Mon, Jan 11, 2021 at 5:44 AM Hugh Dickins wrote: > > > > Hi Rafael, > > > > Synaptics RMI4 SMBus touchpad on ThinkPad X1 Carbon (5th generation) > > fails to suspend when running 5.11-rc kernels: bisected to > > 5b6164d3465f ("driver core: Reorder

[PATCH 0/2] Use static_call for kvm_x86_ops

2021-01-11 Thread Jason Baron
Hi, Convert kvm_x86_ops to use static_call. Shows good performance gains for cpuid loop micro-benchmark (resulsts included in patch 2). Thanks, -Jason Jason Baron (2): KVM: x86: introduce definitions to support static calls for kvm_x86_ops KVM: x86: use static calls to reduce kvm_x86_ops ov

Re: [PATCH v2 2/2] drm/sun4i: tcon: improve DCLK polarity handling

2021-01-11 Thread Maxime Ripard
On Fri, Jan 08, 2021 at 03:34:52PM +0100, Giulio Benetti wrote: > Hi, > > On 1/8/21 10:23 AM, Maxime Ripard wrote: > > Hi, > > > > Thanks for those patches > > > > On Thu, Jan 07, 2021 at 03:30:32AM +0100, Giulio Benetti wrote: > > > From: Giulio Benetti > > > > > > It turned out(Maxime sugges

Re: [PATCH -tip V3 0/8] workqueue: break affinity initiatively

2021-01-11 Thread Peter Zijlstra
While thinking more about this, I'm thinking a big part of the problem is that we're not dinstinguishing between geniuine per-cpu kthreads and kthreads that just happen to be per-cpu. Geniuine per-cpu kthreads are kthread_bind() and have PF_NO_SETAFFINITY, but sadly a lot of non-per-cpu kthreads

Re: [PATCH bpf-next 1/4] bpf: enable task local storage for tracing programs

2021-01-11 Thread Yonghong Song
On 1/8/21 3:19 PM, Song Liu wrote: To access per-task data, BPF program typically creates a hash table with pid as the key. This is not ideal because: 1. The use need to estimate requires size of the hash table, with may be inaccurate; 2. Big hash tables are slow; 3. To clean up the

Re: [PATCH] KVM: update depracated jump label API

2021-01-11 Thread Vitaly Kuznetsov
Cun Li writes: > The use of 'struct static_key' and 'static_key_false' is > deprecated. Use the new API. > > Signed-off-by: Cun Li > --- > arch/x86/kvm/lapic.h | 6 +++--- > arch/x86/kvm/mmu/mmu_audit.c | 4 ++-- > arch/x86/kvm/x86.c | 2 +- > 3 files changed, 6 insertions(+),

Re: [PATCH] usb: cdnsp: fixes undefined reference to cdns_remove

2021-01-11 Thread Randy Dunlap
On 1/11/21 6:42 AM, Pawel Laszczak wrote: > Patch fixes the following errors: > ld: drivers/usb/cdns3/cdnsp-pci.o: in function `cdnsp_pci_remove': > cdnsp-pci.c:(.text+0x80): undefined reference to `cdns_remove' > ld: drivers/usb/cdns3/cdnsp-pci.o: in function `cdnsp_pci_probe': > cdnsp-pci.c:(.tex

Re: [PATCH v4 09/15] media: sunxi: Add support for the A31 MIPI CSI-2 controller

2021-01-11 Thread Paul Kocialkowski
Hi Samuel, On Sat 09 Jan 21, 16:24, Samuel Holland wrote: > On 12/31/20 8:29 AM, Paul Kocialkowski wrote: > > The A31 MIPI CSI-2 controller is a dedicated MIPI CSI-2 bridge > > found on Allwinner SoCs such as the A31 and V3/V3s. > > > > It is a standalone block, connected to the CSI controller on

Re: [PATCH v5 0/4] drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs

2021-01-11 Thread Gabriel L. Somlo
Ping :) On Sun, Dec 27, 2020 at 11:13:16AM -0500, Gabriel Somlo wrote: > This series expands on commit 22447a99c97e ("drivers/soc/litex: add LiteX > SoC Controller driver"), adding support for handling both 8- and 32-bit > LiteX CSR (MMIO) subregisters, on both 32- and 64-bit CPUs. > > Notes v5:

Re: [PATCH v2 01/15] ARM: bcm: Select BRCMSTB_L2_IRQ for bcm2835

2021-01-11 Thread Nicolas Saenz Julienne
@Maxime it seems you forgot to CC me on the series :) On Mon, 2021-01-11 at 08:54 -0800, Florian Fainelli wrote: > > On 1/11/2021 6:22 AM, Maxime Ripard wrote: > > The BCM2711 has a number of instances of interrupt controllers handled > > by the driver behind the BRCMSTB_L2_IRQ Kconfig option (ir

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

2021-01-11 Thread Richard Cochran
On Sun, Jan 10, 2021 at 09:49:03PM +0900, Vincent Mailhol wrote: > * The hardware rx timestamp of a local loopback message is the > hardware tx timestamp. This means that there are no needs to > implement SOF_TIMESTAMPING_TX_HARDWARE for CAN sockets. I can't agree with that statement. T

[PATCH 3/4] cpu/hotplug: Add cpuhp_invoke_callback_range()

2021-01-11 Thread vincent . donnefort
From: Vincent Donnefort Factorizing and unifying cpuhp callback range invocations, especially for the hotunplug path, where two different ways of decrementing were used. The first one, decrements before the callback is called: cpuhp_thread_fun() state = st->state; st->state--; cp

[PATCH 2/4] cpu/hotplug: CPUHP_BRINGUP_CPU exception in fail injection

2021-01-11 Thread vincent . donnefort
From: Vincent Donnefort The atomic states (between CPUHP_AP_IDLE_DEAD and CPUHP_AP_ONLINE) are triggered by the CPUHP_BRINGUP_CPU step. If the latter doesn't run, none of the atomic can. Hence, rollback is not possible after a hotunplug CPUHP_BRINGUP_CPU step failure and the "fail" interface shou

[PATCH 4/4] cpu/hotplug: Fix CPU down rollback

2021-01-11 Thread vincent . donnefort
From: Vincent Donnefort After the AP brought itself down to CPUHP_TEARDOWN_CPU, the BP will finish the job. The steps left are as followed: ++ | CPUHP_TEARDOWN_CPU | -> If fails state is CPUHP_TEARDOWN_CPU ++ | ATOMIC STATES| -> Cannot

[PATCH 0/4] cpu/hotplug: rollback and "fail" interface fixes

2021-01-11 Thread vincent . donnefort
From: Vincent Donnefort This patch-set intends mainly to fix HP rollback, which is currently broken, due to an inconsistent "state" usage and an issue with CPUHP_AP_ONLINE_IDLE. It also improves the "fail" interface, which can now be reset and will reject CPUHP_BRINGUP_CPU, a step that can't alw

[PATCH 1/4] cpu/hotplug: Allowing to reset fail injection

2021-01-11 Thread vincent . donnefort
From: Vincent Donnefort Currently, the only way of resetting this file is to actually try to run a hotplug, hotunplug or both. This is quite annoying for testing and, as the default value for this file is -1, it seems quite natural to let a user write it. Signed-off-by: Vincent Donnefort --- k

Re: [PATCH -next] fpga: dfl-pci: rectify ReST formatting

2021-01-11 Thread Lukas Bulwahn
523: WARNING: Unexpected indentation. > > 523: WARNING: Blank line required after table. > > 524: WARNING: Block quote ends without a blank line; unexpected > > unindent. > > > > Rectify ReST formatting in ./Documentation/fpga/dfl.rst. > > >

Re: [PATCH][next] ASoC: soc-pcm: Fix uninitialised return value in variable ret

2021-01-11 Thread Mark Brown
On Mon, Jan 11, 2021 at 05:07:46PM +, Colin Ian King wrote: > On 11/01/2021 16:35, Mark Brown wrote: > > This doesn't apply against current code, please check and resend. > Just to double-check, which tree should I be working against? The ASoC tree. signature.asc Description: PGP signature

Re: linux-next: Tree for Jan 11 (drivers/net/ipa/ipa_main.o)

2021-01-11 Thread Randy Dunlap
On 1/10/21 8:46 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20210108: > on x86_64: ld: drivers/net/ipa/ipa_main.o: in function `ipa_remove': ipa_main.c:(.text+0x20d): undefined reference to `rproc_put' ld: drivers/net/ipa/ipa_mem.o: in function `ipa_mem_init': ipa_mem.c:(.text+0x59f

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

2021-01-11 Thread Suren Baghdasaryan
On Mon, Jan 11, 2021 at 9:05 AM Suren Baghdasaryan wrote: > > On Mon, Jan 11, 2021 at 2:20 AM Florian Weimer wrote: > > > > * Suren Baghdasaryan: > > > > > diff --git a/mm/madvise.c b/mm/madvise.c > > > index 6a660858784b..c2d600386902 100644 > > > --- a/mm/madvise.c > > > +++ b/mm/madvise.c > >

[PATCH net-next 2/3] net: mhi: Get RX queue size from MHI core

2021-01-11 Thread Loic Poulain
The RX queue size can be determined at runtime by retrieving the number of available transfer descriptors. Signed-off-by: Loic Poulain --- drivers/net/mhi_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mhi_net.c b/drivers/net/mhi_net.c index b7f7f2e..

Re: [v3 PATCH 03/11] mm: vmscan: use shrinker_rwsem to protect shrinker_maps allocation

2021-01-11 Thread Yang Shi
On Wed, Jan 6, 2021 at 1:55 AM Kirill Tkhai wrote: > > On 06.01.2021 01:58, Yang Shi wrote: > > Since memcg_shrinker_map_size just can be changd under holding > > shrinker_rwsem > > exclusively, the read side can be protected by holding read lock, so it > > sounds > > superfluous to have a dedic

[PATCH net-next 3/3] net: mhi: Get rid of local rx queue count

2021-01-11 Thread Loic Poulain
Use the new mhi_get_free_desc_count helper to track queue usage instead of relying on the locally maintained rx_queued count. Signed-off-by: Loic Poulain --- drivers/net/mhi_net.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/net/mhi_net.c b/drivers/ne

[PATCH net-next 1/3] bus: mhi: core: Add helper API to return number of free TREs

2021-01-11 Thread Loic Poulain
From: 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 -

Re: [PATCH][next] ASoC: soc-pcm: Fix uninitialised return value in variable ret

2021-01-11 Thread Colin Ian King
On 11/01/2021 16:35, Mark Brown wrote: > On Fri, Jan 08, 2021 at 12:35:46PM +, Colin King wrote: >> From: Colin Ian King >> >> Currently when attempting to start the BE fails because the >> FE is not started the error return variable ret is not initialized >> and garbage is returned. Fix this

[PATCH 2/3] net: mhi: Get RX queue size from MHI core

2021-01-11 Thread Loic Poulain
The RX queue size can be determined at runtime by retrieving the number of available transfer descriptors. Signed-off-by: Loic Poulain --- drivers/net/mhi_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mhi_net.c b/drivers/net/mhi_net.c index b7f7f2e..

Re: [PATCH v2] USB:ehci:fix an interrupt calltrace error

2021-01-11 Thread Alan Stern
On Mon, Jan 11, 2021 at 07:29:37PM +0800, Longfang Liu wrote: > The system that use Synopsys USB host controllers goes to suspend > when using USB audio player. This causes the USB host controller > continuous send interrupt signal to system, When the number of > interrupts exceeds 10, the syst

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

2021-01-11 Thread Loic Poulain
From: 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 -

Re: [PATCH] spi: spi-bcm-qspi: style: Simplify bool comparison

2021-01-11 Thread Mark Brown
On Mon, Jan 11, 2021 at 08:41:19AM -0800, Florian Fainelli wrote: > > [1/1] spi: spi-bcm-qspi: style: Simplify bool comparison > > commit: 6650ab2a44268af8d24995d28ae199b57b2ebff8 > I don't think that "style: " is a subject prefix that is used commonly > and it certainly should not belong i

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

2021-01-11 Thread Suren Baghdasaryan
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 ptrace attach capability even to a system process is considere

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

2021-01-11 Thread Suren Baghdasaryan
On Mon, Jan 11, 2021 at 2:20 AM Florian Weimer wrote: > > * Suren Baghdasaryan: > > > diff --git a/mm/madvise.c b/mm/madvise.c > > index 6a660858784b..c2d600386902 100644 > > --- a/mm/madvise.c > > +++ b/mm/madvise.c > > @@ -1197,12 +1197,22 @@ SYSCALL_DEFINE5(process_madvise, int, pidfd, const >

[PATCH] char_dev: replace cdev_map with an xarray

2021-01-11 Thread Christoph Hellwig
None of the complicated overlapping regions bits of the kobj_map are required for the character device lookup, so just a trivial xarray instead. Signed-off-by: Christoph Hellwig --- drivers/base/Makefile| 5 +- drivers/base/map.c | 154 --- fs/char

Re: [RFC 0/2] kbuild: Add support to build overlays (%.dtbo)

2021-01-11 Thread Masahiro Yamada
On Tue, Jan 12, 2021 at 1:13 AM Rob Herring wrote: > > +David Gibson > > On Mon, Jan 11, 2021 at 9:40 AM Masahiro Yamada wrote: > > > > On Mon, Jan 11, 2021 at 8:17 PM Viresh Kumar > > wrote: > > > > > > On 07-01-21, 14:28, Masahiro Yamada wrote: > > > > Viresh's patch is not enough. > > > > >

Re: 5.11-rc device reordering breaks ThinkPad rmi4 suspend

2021-01-11 Thread Rafael J. Wysocki
On Mon, Jan 11, 2021 at 5:12 PM Thierry Reding wrote: > > On Mon, Jan 11, 2021 at 03:57:37PM +0100, Rafael J. Wysocki wrote: > > On Mon, Jan 11, 2021 at 2:43 PM Thierry Reding wrote: > > > > > > On Sun, Jan 10, 2021 at 08:44:13PM -0800, Hugh Dickins wrote: > > > > Hi Rafael, > > > > > > > > Synap

Re: [PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-11 Thread Vitaly Kuznetsov
Tom Lendacky writes: > On 1/11/21 4:42 AM, Vitaly Kuznetsov wrote: >> Sean Christopherson writes: >> >>> Unconditionally invoke sev_hardware_setup() when configuring SVM and >>> handle clearing the module params/variable 'sev' and 'sev_es' in >>> sev_hardware_setup(). This allows making said v

Re: [PATCH] perf tools: Update OpenCSD to v1.0.0

2021-01-11 Thread Mathieu Poirier
On Fri, Jan 08, 2021 at 04:27:52PM +0200, James Clark wrote: > Replace the OCSD_INSTR switch statement with an if to > fix compilation error about unhandled values and avoid > this issue again in the future. > > Add new OCSD_GEN_TRC_ELEM_SYNC_MARKER and > OCSD_GEN_TRC_ELEM_MEMTRANS enum values to

Re: [PATCH 4/5] powerpc/memhotplug: Enable MHP_MEMMAP_ON_MEMORY when supported

2021-01-11 Thread David Hildenbrand
On 17.12.20 14:07, Oscar Salvador wrote: > Let the caller check whether it can pass MHP_MEMMAP_ON_MEMORY by > checking mhp_supports_memmap_on_memory(). > MHP_MEMMAP_ON_MEMORY can only be set in case > ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE is enabled, the architecture supports > altmap, and the range to

Re: [PATCH 3/5] acpi,memhotplug: Enable MHP_MEMMAP_ON_MEMORY when supported

2021-01-11 Thread David Hildenbrand
On 17.12.20 14:07, Oscar Salvador wrote: > Let the caller check whether it can pass MHP_MEMMAP_ON_MEMORY by > checking mhp_supports_memmap_on_memory(). > MHP_MEMMAP_ON_MEMORY can only be set in case > ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE is enabled, the architecture supports > altmap, and the range to

Re: [PATCH v2 01/15] ARM: bcm: Select BRCMSTB_L2_IRQ for bcm2835

2021-01-11 Thread Florian Fainelli
On 1/11/2021 6:22 AM, Maxime Ripard wrote: > The BCM2711 has a number of instances of interrupt controllers handled > by the driver behind the BRCMSTB_L2_IRQ Kconfig option (irq-brcmstb-l2). > > Let's select that driver as part of the ARCH_BCM2835 Kconfig option. > > Signed-off-by: Maxime Ripa

[PATCH v2] powerpc/vdso: fix clock_gettime_fallback for vdso32

2021-01-11 Thread Christophe Leroy
From: Andreas Schwab The second argument of __kernel_clock_gettime64 points to a struct __kernel_timespec, with 64-bit time_t, so use the clock_gettime64 syscall in the fallback function for the 32-bit vdso. Similarily, clock_getres_fallback should use the clock_getres_time64 syscall, though it

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

2021-01-11 Thread David Hildenbrand
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 enable those > platforms with ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE. "In the fi

Re: [PATCH v4 1/2] drm/msm: Add speed-bin support to a618 gpu

2021-01-11 Thread Jordan Crouse
On Fri, Jan 08, 2021 at 11:45:30PM +0530, Akhil P Oommen wrote: > Some GPUs support different max frequencies depending on the platform. > To identify the correct variant, we should check the gpu speedbin > fuse value. Add support for this speedbin detection to a6xx family > along with the required

Re: [PATCH 7/7] arm64: dts: qcom: sdm845: enable dma for spi

2021-01-11 Thread Doug Anderson
Hi, On Mon, Jan 11, 2021 at 7:18 AM Vinod Koul wrote: > > @@ -2622,6 +2626,13 @@ pinmux { >"gpio2", "gpio3"; > function = "qup0"; > }; > + > + conf

Re: [PATCH 06/13] x86/sev: Rename global "sev_enabled" flag to "sev_guest"

2021-01-11 Thread Tom Lendacky
On 1/11/21 10:02 AM, Tom Lendacky wrote: On 1/8/21 6:47 PM, Sean Christopherson wrote: Use "guest" instead of "enabled" for the global "running as an SEV guest" flag to avoid confusion over whether "sev_enabled" refers to the guest or the host.  This will also allow KVM to usurp "sev_enabled" fo

Re: [PATCH v1 1/2] net: phy: Add 100 base-x mode

2021-01-11 Thread Russell King - ARM Linux admin
On Mon, Jan 11, 2021 at 02:06:56PM +0100, Bjarni Jonasson wrote: > Sparx-5 supports this mode and it is missing in the PHY core. > > Signed-off-by: Bjarni Jonasson Oh, I forgot - please can we have the new PHY mode documented in Documentation/networking/phy.rst under the "PHY interface modes" se

Re: [PATCH] mm/compaction: Remove duplicated VM_BUG_ON_PAGE !PageLocked

2021-01-11 Thread David Hildenbrand
On 09.01.21 09:14, Miaohe Lin wrote: > The VM_BUG_ON_PAGE(!PageLocked(page), page) is also done in PageMovable. > Remove this explicitly one. > > Signed-off-by: Miaohe Lin > --- > mm/compaction.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/mm/compaction.c b/mm/compaction.c > index 0

Re: [PATCH 0/8] FPGA DFL Changes for 5.12

2021-01-11 Thread Tom Rix
On 1/11/21 8:09 AM, Greg KH wrote: > On Mon, Jan 11, 2021 at 07:55:24AM -0800, Tom Rix wrote: >> On 1/11/21 6:54 AM, Greg KH wrote: >>> On Mon, Jan 11, 2021 at 06:40:24AM -0800, Tom Rix wrote: On 1/10/21 10:57 PM, Greg KH wrote: > On Sun, Jan 10, 2021 at 11:43:54AM -0800, Tom Rix wrote:

Re: [PATCH v2 1/2] thermal: int340x: Fix unexpected shutdown at critical temperature

2021-01-11 Thread Daniel Lezcano
On 11/01/2021 17:18, Kai-Heng Feng wrote: > On Tue, Dec 22, 2020 at 1:23 AM Kai-Heng Feng > wrote: >> >> We are seeing thermal shutdown on Intel based mobile workstations, the >> shutdown happens during the first trip handle in >> thermal_zone_device_register(): >> kernel: thermal thermal_zone15:

Re: drivers/soc/litex/litex_soc_ctrl.c:143:34: warning: unused variable 'litex_soc_ctrl_of_match'

2021-01-11 Thread Nathan Chancellor
On Mon, Jan 11, 2021 at 09:30:55PM +0900, Stafford Horne wrote: > On Thu, Jan 07, 2021 at 04:04:47AM +0800, kernel test robot wrote: > > Hi Pawel, > > > > FYI, the error/warning still remains. > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head:

Re: [PATCH] powerpc/vdso: fix clock_gettime_fallback for vdso32

2021-01-11 Thread Christophe Leroy
Le 11/01/2021 à 16:18, Andreas Schwab a écrit : The second argument of __kernel_clock_gettime64 points to a struct __kernel_timespec, with 64-bit time_t, so use the clock_gettime64 syscall in the fallback function for the 32-bit vdso. Similarily, clock_getres_fallback should use the clock_get

Re: [PATCH v7 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

2021-01-11 Thread Lee Jones
On Mon, 11 Jan 2021, Thierry Reding wrote: > On Sat, Jan 09, 2021 at 07:02:17PM +0100, Jonathan Neuschäfer wrote: > > The Netronix EC provides a PWM output which is used for the backlight > > on some ebook readers. This patches adds a driver for the PWM output. > > > > The .get_state callback is

[PATCH 2/2] resource: Make it possible to reserve memory on 64bit platform

2021-01-11 Thread Wesley Zhao
From: "Wesley.Zhao" For now "reserve=" is limitied to 32bit,not available on 64bit platform,so we change the get_option() to get_option_ull(added in patch: commit 4b6bfe96265e ("lib/cmdline: add new function get_option_ull()")) Signed-off-by: Wesley.Zhao --- kernel/resource.c | 6 +++--- 1 fil

[PATCH 1/2] lib/cmdline: add new function get_option_ull()

2021-01-11 Thread Wesley Zhao
From: "Wesley.Zhao" In the future we would pass the unsigned long long parameter like(0x123456781234) in cmdline on the 64bit platform, so add a new option parse function get_option_ull() Signed-off-by: Wesley.Zhao --- include/linux/kernel.h | 1 + lib/cmdline.c | 35

Re: [PATCH v2 1/3] regulator: mt6360: Add OF match table

2021-01-11 Thread Mark Brown
On Sat, Jan 09, 2021 at 12:26:09PM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > Binding documentation mentions that a compatible is required for the > MT6360 device node, but the driver doesn't provide a OF match table. The binding should be fixed to remove the requirement

Re: [PATCH] spi: spi-bcm-qspi: style: Simplify bool comparison

2021-01-11 Thread Florian Fainelli
On 1/11/2021 8:29 AM, Mark Brown wrote: > On Mon, 11 Jan 2021 17:26:29 +0800, YANG LI wrote: >> Fix the following coccicheck warning: >> ./drivers/spi/spi-bcm-qspi.c:884:5-34: WARNING: Comparison to bool > > Applied to > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-

[PATCH] drm/ttm: Fix address passed to dma_mapping_error() in ttm_pool_map()

2021-01-11 Thread Jeremy Cline
check_unmap() is producing a warning about a missing map error check. The return value from dma_map_page() should be checked for an error, not the caller-provided dma_addr. Fixes: d099fc8f540a ("drm/ttm: new TT backend allocation pool v3") Signed-off-by: Jeremy Cline --- drivers/gpu/drm/ttm/ttm_

Re: [PATCH 0/2] perf/x86/intel/uncore: Derive die id from NUMA info with more than 8 nodes

2021-01-11 Thread Liang, Kan
On 1/8/2021 10:35 AM, Steve Wahl wrote: For Intel uncore, the registers being used to identify the die don't contain enough bits to uniquely identify more than 8 dies. On systems with more than 8 dies, this results in error messages of the form "skx_uncore: probe of :XX:XX.X failed with e

Re: [RFC 2/2] clk: vc5: Add support for optional load capacitance

2021-01-11 Thread Adam Ford
On Sat, Jan 9, 2021 at 12:02 PM Luca Ceresoli wrote: > > Hi Adam, > > On 09/01/21 04:00, Adam Ford wrote: > > On Fri, Jan 8, 2021 at 4:49 PM Luca Ceresoli wrote: > >> > >> Hi Adam, > >> > >> On 06/01/21 18:39, Adam Ford wrote: > >>> There are two registers which can set the load capacitance for >

Re: [PATCH] xfs: Wake CIL push waiters more reliably

2021-01-11 Thread Brian Foster
On Fri, Jan 08, 2021 at 11:56:57AM -0500, Brian Foster wrote: > On Fri, Jan 08, 2021 at 08:54:44AM +1100, Dave Chinner wrote: > > On Mon, Jan 04, 2021 at 11:23:53AM -0500, Brian Foster wrote: > > > On Thu, Dec 31, 2020 at 09:16:11AM +1100, Dave Chinner wrote: > > > > On Wed, Dec 30, 2020 at 12:56:2

Re: [PATCH][next] ASoC: soc-pcm: Fix uninitialised return value in variable ret

2021-01-11 Thread Mark Brown
On Fri, Jan 08, 2021 at 12:35:46PM +, Colin King wrote: > From: Colin Ian King > > Currently when attempting to start the BE fails because the > FE is not started the error return variable ret is not initialized > and garbage is returned. Fix this by setting it to 0 so the This doesn't appl

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

2021-01-11 Thread Mark Brown
On Mon, Jan 11, 2021 at 08:46:48PM +0530, Vinod Koul wrote: > +static int get_xfer_mode(struct spi_master *spi) > +{ > + struct spi_geni_master *mas = spi_master_get_devdata(spi); > + struct geni_se *se = &mas->se; > + int mode = GENI_SE_FIFO; Why not use the core DMA mapping support?

Re: [PATCH v8 2/4] KEYS: trusted: Introduce TEE based Trusted Keys

2021-01-11 Thread Jarkko Sakkinen
On Tue, Nov 03, 2020 at 09:31:44PM +0530, Sumit Garg wrote: > Add support for TEE based trusted keys where TEE provides the functionality > to seal and unseal trusted keys using hardware unique key. > > Refer to Documentation/tee.txt for detailed information about TEE. > > Signed-off-by: Sumit Ga

Re: [PATCH -next] fpga: dfl-pci: rectify ReST formatting

2021-01-11 Thread Lukas Bulwahn
On Mon, Jan 11, 2021 at 4:52 PM Greg Kroah-Hartman wrote: > > On Mon, Jan 11, 2021 at 12:21:13PM +0100, Lukas Bulwahn wrote: > > Commit fa41d10589be ("fpga: dfl-pci: locate DFLs by PCIe vendor specific > > capability") provides documentation to the FPGA Device Feature List (DFL) > > Framework Over

Re: [f2fs-dev] [PATCH v2] f2fs: fix to keep isolation of atomic write

2021-01-11 Thread Jaegeuk Kim
On 01/06, Jaegeuk Kim wrote: > On 01/06, Jaegeuk Kim wrote: > > Hi Chao, > > > > With a quick test, this patch causes down_write failure resulting in > > blocking > > process. I didn't dig in the bug so, please check the code again. :P > > nvm. I can see it works now. Hmm, this gives a huge per

Re: [PATCH] amdgpu: Avoid sleeping during FPU critical sections

2021-01-11 Thread Daniel Vetter
On Mon, Jan 11, 2021 at 09:53:56AM +0100, Christian König wrote: > Am 08.01.21 um 22:58 schrieb Jeremy Cline: > > dcn20_resource_construct() includes a number of kzalloc(GFP_KERNEL) > > calls which can sleep, but kernel_fpu_begin() disables preemption and > > sleeping in this context is invalid. >

Re: [PATCH v13 02/15] s390/vfio-ap: No need to disable IRQ after queue reset

2021-01-11 Thread Halil Pasic
On Tue, 22 Dec 2020 20:15:53 -0500 Tony Krowiak wrote: > The queues assigned to a matrix mediated device are currently reset when: > > * The VFIO_DEVICE_RESET ioctl is invoked > * The mdev fd is closed by userspace (QEMU) > * The mdev is removed from sysfs. > > Immediately after the reset of a

Re: [PATCH] spi: cadence-quadspi: Fix build warning on 32-bit platforms

2021-01-11 Thread Mark Brown
On Fri, 8 Jan 2021 23:44:57 +0530, Pratyush Yadav wrote: > The kernel test robot reports the following warning. > > drivers/spi/spi-cadence-quadspi.c:966:24: warning: comparison of distinct > pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof (500UL) *' > (aka 'unsigned long *'))

Re: [PATCH] spi: spi-bcm-qspi: style: Simplify bool comparison

2021-01-11 Thread Mark Brown
On Mon, 11 Jan 2021 17:26:29 +0800, YANG LI wrote: > Fix the following coccicheck warning: > ./drivers/spi/spi-bcm-qspi.c:884:5-34: WARNING: Comparison to bool Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: spi-bcm-qspi: style: Simplify

<    4   5   6   7   8   9   10   11   12   13   >