[PATCH 2/2] clk: samsung: exynos5420: Avoid __clk_lookup() calls when enabling clocks

2020-08-11 Thread Sylwester Nawrocki
This patch adds a clk ID to the mout_sw_aclk_g3d clk definition so related clk pointer gets cached in the driver's private data and can be used later instead of a __clk_lookup() call. With that we have all clocks used in the clk_prepare_enable() calls in the clk provider init callback cached in cl

[PATCH 1/2] clk: samsung: exynos5420: Add definition of clock ID for mout_sw_aclk_g3d

2020-08-11 Thread Sylwester Nawrocki
This patch adds ID for the mout_sw_aclk_g3d (SW_CLKMUX_ACLK_G3D) clock, mostly for internal use in the CMU driver. It will allow to avoid the __clk_lookup() call when setting up the clock during the clock provider initialization. Signed-off-by: Sylwester Nawrocki --- include/dt-bindings/clock/ex

Re: [PATCH 7/7] ARM: dts: r8a7742-iwg21d-q7: Add LCD support

2020-08-11 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Fri, Aug 07, 2020 at 06:49:54PM +0100, Lad Prabhakar wrote: > The iwg21d comes with a 7" capacitive touch screen, therefore > add support for it. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > > --- > arch/arm/boot/dts/r8a7

VDPA Debug/Statistics

2020-08-11 Thread Eli Cohen
Hi All Currently, the only statistics we get for a VDPA instance comes from the virtio_net device instance. Since VDPA involves hardware acceleration, there can be quite a lot of information that can be fetched from the underlying device. Currently there is no generic method to fetch this infor

[PATCH v2] clk: samsung: Prevent potential endless loop in the PLL set_rate ops

2020-08-11 Thread Sylwester Nawrocki
In the .set_rate callback for some PLLs there is a loop polling state of the PLL lock bit and it may become an endless loop when something goes wrong with the PLL. For some PLLs there is already (a duplicated) code for polling with timeout. This patch replaces that code with the readl_relaxed_poll_

Re: [PATCH 1/1] x86/hyperv: Make hv_setup_sched_clock inline

2020-08-11 Thread Thomas Gleixner
Wei Liu writes: > On Mon, Aug 10, 2020 at 10:08:41PM +0200, Thomas Gleixner wrote: >> Michael Kelley writes: >> > Make hv_setup_sched_clock inline so the reference to pv_ops works >> > correctly with objtool updates to detect noinstr violations. >> > See https://lore.kernel.org/patchwork/patch/1

Re: [f2fs-dev] [PATCH] f2fs: change virtual mapping way for compression pages

2020-08-11 Thread Daeho Jeong
Sure, I'll update the test condition as you said in the commit message. FYI, the test is done with 16kb chunk and Pixel 3 (arm64) device. Thanks, 2020년 8월 11일 (화) 오후 7:18, Gao Xiang 님이 작성: > > On Tue, Aug 11, 2020 at 06:33:26PM +0900, Daeho Jeong wrote: > > Plus, when we use vmap(), vmap() normal

Re: [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup

2020-08-11 Thread Paolo Bonzini
On 11/08/20 11:31, Xingxing Su wrote: > Commit c34b26b98caca48ec9ee9 ("KVM: MIPS: clean up redundant 'kvm_run' > parameters") remove the 'kvm_run' parameter in kvm_vz_gpsi_lwc2. > > The following build error: > > arch/mips/kvm/vz.c: In function ‘kvm_trap_vz_handle_gpsi’: > arch/mips/

Re: btrfs crash in kobject_del while running xfstest

2020-08-11 Thread John Hubbard
Somehow the copy-paste of Chris Mason's name failed (user error on my end), sorry about that Chris! On 8/11/20 4:17 AM, John Hubbard wrote: Hi, Here's an early warning of a possible problem. I'm seeing a new btrfs crash when running xfstests, as of 00e4db51259a5f936fec1424b884f029479d3981 ("Me

Re: [PATCH RFC v2] sched/fair: simplify the work when reweighting entity(Internet mail)

2020-08-11 Thread 蒋彪
Hi, > On Aug 11, 2020, at 5:50 PM, Dietmar Eggemann > wrote: > > On 06/08/2020 18:14, Jiang Biao wrote: >> From: Jiang Biao >> >> If a se is on_rq when reweighting entity, all we need should be >> updating the load of cfs_rq, other dequeue/enqueue work could be >> redundant, such as, >> * nr_

[PATCH] locking/rwsem: remove redundant semicolon of down_write_nest_lock

2020-08-11 Thread Christian König
From: Guchun Chen Otherwise, braces are needed when using it. Signed-off-by: Guchun Chen Reviewed-by: Christian König --- include/linux/rwsem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h index 7e5b2a4eb560..7a5bf5d50489 10

Re: lockdep splat ("possible circular locking dependency detected") with PL011 on 5.8

2020-08-11 Thread Will Deacon
On Tue, Aug 11, 2020 at 12:38:41PM +0200, pet...@infradead.org wrote: > On Tue, Aug 11, 2020 at 11:13:13AM +0100, Will Deacon wrote: > > Using magic-sysrq via a keyboard interrupt over the serial console results > > in > > the following lockdep splat with the PL011 UART driver on v5.8. I can > >

Re: [PATCH 1/2] ASoC: q6afe-dai: add dummy register read function

2020-08-11 Thread Srinivas Kandagatla
On 11/08/2020 12:04, Stephan Gerhold wrote: On Tue, Aug 11, 2020 at 11:25:51AM +0100, Srinivas Kandagatla wrote: Most of the DAPM widgets for DSP ASoC components reuse reg field of the widgets for its internal calculations, however these are not real registers. So read/writes to these numbers

Re: [PATCH] net: untag pointer in sockptr_is_kernel

2020-08-11 Thread Christoph Hellwig
On Tue, Aug 11, 2020 at 06:27:04PM +0800, Miles Chen wrote: > From: Miles Chen > > sockptr_is_kernel() uses (sockptr.kernel >= TASK_SIZE) to tell > if the pointer is kernel space or user space. When user space uses > the "top byte ignored" feature such as HWAsan, we must untag > the pointer befor

[Resend PATCH 1/6] mm/memcg: warning on !memcg after readahead page charged

2020-08-11 Thread Alex Shi
Since readahead page is charged on memcg too, in theory we don't have to check this exception now. Before safely remove them all, add a warning for the unexpected !memcg. Signed-off-by: Alex Shi Acked-by: Michal Hocko Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Cc: Andrew Morton

[Resend PATCH 3/6] mm/thp: move lru_add_page_tail func to huge_memory.c

2020-08-11 Thread Alex Shi
The func is only used in huge_memory.c, defining it in other file with a CONFIG_TRANSPARENT_HUGEPAGE macro restrict just looks weird. Let's move it THP. And make it static as Hugh Dickin suggested. Signed-off-by: Alex Shi Reviewed-by: Kirill A. Shutemov Cc: Andrew Morton Cc: Johannes Weiner C

[Resend PATCH 4/6] mm/thp: clean up lru_add_page_tail

2020-08-11 Thread Alex Shi
Since the first parameter is only used by head page, it's better to make it explicit. Signed-off-by: Alex Shi Reviewed-by: Kirill A. Shutemov Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh Dickins Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/huge_memory.

[Resend PATCH 5/6] mm/thp: remove code path which never got into

2020-08-11 Thread Alex Shi
split_huge_page() will never call on a page which isn't on lru list, so this code never got a chance to run, and should not be run, to add tail pages on a lru list which head page isn't there. Although the bug was never triggered, it'better be removed for code correctness, and add a warn for unexp

[Resend PATCH 2/6] mm/memcg: remove useless check on page->mem_cgroup

2020-08-11 Thread Alex Shi
If we disabled memcg by cgroup_disable=memory, the swap charges are still called. Let's return from the funcs earlier and keep WARN_ON monitor. Signed-off-by: Alex Shi Reviewed-by: Roman Gushchin Acked-by: Michal Hocko Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Cc: Andrew Mort

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Uladzislau Rezki
On Tue, Aug 11, 2020 at 12:21:24PM +0200, Michal Hocko wrote: > On Tue 11-08-20 11:18:07, Uladzislau Rezki wrote: > > On Mon, Aug 10, 2020 at 09:25:25PM +0200, Michal Hocko wrote: > > > On Mon 10-08-20 18:07:39, Uladzislau Rezki wrote: > > > > > On Sun 09-08-20 22:43:53, Uladzislau Rezki (Sony) wro

[Resend PATCH 6/6] mm/thp: narrow lru locking

2020-08-11 Thread Alex Shi
lru_lock and page cache xa_lock have no reason with current sequence, put them together isn't necessary. let's narrow the lru locking, but left the local_irq_disable to block interrupt re-entry and statistic update. Hugh Dickins point: split_huge_page_to_list() was already silly,to be using the _i

Re: [PATCH 1/2] ASoC: q6afe-dai: add dummy register read function

2020-08-11 Thread Stephan Gerhold
On Tue, Aug 11, 2020 at 11:25:51AM +0100, Srinivas Kandagatla wrote: > Most of the DAPM widgets for DSP ASoC components reuse reg field > of the widgets for its internal calculations, however these are not > real registers. So read/writes to these numbers are not really > valid. However ASoC core w

Re: [RFC] libperf: Add support for user space counter access

2020-08-11 Thread peterz
On Tue, Aug 11, 2020 at 12:50:27PM +0200, Jiri Olsa wrote: > if it works for all events, which I'm not sure of That's what we have cap_user_rdpmc for.

Re: [RFC PATCH] sched/numa: fix bug in update_task_scan_period

2020-08-11 Thread Mel Gorman
On Tue, Aug 11, 2020 at 04:30:31PM +0800, ? wrote: > When p->numa_faults_locality[2] > 0, numa_scan_period is doubled, but > this array will never be cleared, which causes scanning period always > reaching its max value. This patch clears numa_faults_locality after > numa_scan_period being

[PATCH] ASoC: qcom: add a dedicated menuconfig

2020-08-11 Thread Srinivas Kandagatla
Currently list of Qualcomm drivers is growing, so put them in to a proper menu so that it does not mix up with other ASOC configs in menuconfig. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/Kconfig | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/soc/qco

Re: [PATCH 1/1] x86/hyperv: Make hv_setup_sched_clock inline

2020-08-11 Thread Wei Liu
On Mon, Aug 10, 2020 at 10:08:41PM +0200, Thomas Gleixner wrote: > Michael Kelley writes: > > Make hv_setup_sched_clock inline so the reference to pv_ops works > > correctly with objtool updates to detect noinstr violations. > > See https://lore.kernel.org/patchwork/patch/1283635/ > > > > Signed-o

Re: [PATCH 5.8 00/38] 5.8.1-rc1 review

2020-08-11 Thread Puranjay Mohan
On Mon, Aug 10, 2020 at 8:53 PM Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.8.1 release. > There are 38 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. > > Res

Re: [PATCH v32 2/6] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-08-11 Thread Pavel Machek
Hi! > +/* LP5009 and LP5012 registers */ > +#define LP5012_BNK_BRT 0x03 > +#define LP5012_BNKA_CLR 0x04 > +#define LP5012_BNKB_CLR 0x05 > +#define LP5012_BNKC_CLR 0x06 > +#define LP5012_LED0_BRT 0x07 > +#define LP5012_LED1_BRT

Re: [PATCH v2 2/2] init/Kconfig: Increase default log buffer size from 128 KB to 512 KB

2020-08-11 Thread Petr Mladek
On Tue 2020-08-11 11:29:24, Paul Menzel wrote: > Commit f17a32e97e (let LOG_BUF_SHIFT default to 17) from 2008 was the > last time, the the default log buffer size bump was increased. > > Machines have evolved, and on current hardware, enough memory is > present, and some devices have over 200 PCI

Re: [RFC] libperf: Add support for user space counter access

2020-08-11 Thread Jiri Olsa
On Mon, Aug 10, 2020 at 12:11:23PM -0600, Rob Herring wrote: > On Sat, Aug 8, 2020 at 4:22 AM Jiri Olsa wrote: > > > > On Fri, Aug 07, 2020 at 05:05:17PM -0600, Rob Herring wrote: > > > x86 and arm64 can both support direct access of event counters in > > > userspace. The access sequence is less t

Re: [PATCH V2] serial: qcom_geni_serial: To correct QUP Version detection logic

2020-08-11 Thread Felipe Balbi
Hi, Paras Sharma writes: > The current implementation reduces the sampling rate by half > if qup HW version greater is than 2.5 by checking if the geni ^^^ is greater than could, possibly, be fixed while applying. > SE major version is greate

Re: [PATCH net] drivers/net/wan/x25_asy: Added needed_headroom and a skb->len check

2020-08-11 Thread Willem de Bruijn
> > > 2) The code quality of this driver is actually very low, and I also > > > hope to improve it gradually. Actually this driver had been completely > > > broken for many years and no one had noticed this until I fixed it in > > > commit 8fdcabeac398 (drivers/net/wan/x25_asy: Fix to make it work)

Re: [PATCH 2/2] KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set

2020-08-11 Thread Suzuki K Poulose
On 08/11/2020 11:27 AM, Will Deacon wrote: When an MMU notifier call results in unmapping a range that spans multiple PGDs, we end up calling into cond_resched_lock() when crossing a PGD boundary, since this avoids running into RCU stalls during VM teardown. Unfortunately, if the VM is destroyed

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Uladzislau Rezki
On Tue, Aug 11, 2020 at 12:28:18PM +0200, Michal Hocko wrote: > On Tue 11-08-20 11:42:51, Uladzislau Rezki wrote: > > On Tue, Aug 11, 2020 at 11:37:13AM +0200, Uladzislau Rezki wrote: > > > On Tue, Aug 11, 2020 at 10:19:17AM +0200, Michal Hocko wrote: > [...] > > > > Anyway, if the zone->lock is no

Re: [PATCH v5 01/12] ASoC: qcom: Add common array to initialize soc based core clocks

2020-08-11 Thread Rohit Kumar
Hello Mark, Do you see any concern with patches (1-11). As of now, there is comment only in patch 12 from Rob which I am planning to update once other patches are merged. Can you please review and let me know if anything is missing. Thanks, Rohit On 8/4/2020 1:37 PM, Rohit kumar wrote: From: Aj

Re: lockdep splat ("possible circular locking dependency detected") with PL011 on 5.8

2020-08-11 Thread peterz
On Tue, Aug 11, 2020 at 11:13:13AM +0100, Will Deacon wrote: > Hi, > > Using magic-sysrq via a keyboard interrupt over the serial console results in > the following lockdep splat with the PL011 UART driver on v5.8. I can > reproduce > the issue under QEMU with arm64 defconfig + PROVE_LOCKING. >

Re: [PATCH] sched/fair: Remove the duplicate check from group_has_capacity()

2020-08-11 Thread Valentin Schneider
On 11/08/20 04:39, Qi Zheng wrote: > On 2020/8/11 上午2:33, Valentin Schneider wrote: >> >> On 10/08/20 02:00, Qi Zheng wrote: >>> 1. The group_has_capacity() function is only called in >>> group_classify(). >>> 2. The following inequality has already been checked in >>> group_is_overloaded

Re: [PATCH v2 4.19] tcp: fix TCP socks unreleased in BBR mode

2020-08-11 Thread Jason Xing
Hi everyone, Could anyone take a look at this issue? I believe it is of high-importance. Though Eric gave the proper patch a few months ago, the stable branch still hasn't applied or merged this fix. It seems this patch was forgotten :( Thanks, Jason On Thu, Jun 4, 2020 at 9:47 PM Jason Xing wr

ERROR: "riscv_time_val" undefined!

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: 6bd33e1ece528f67646db33bf97406b747dafda0 riscv: add nommu support date: 9 months ago config: riscv-randconfig-p001-20200811 (attached as .config) compiler

[PATCH] ASoC: msm8916-wcd-analog: fix register Interrupt offset

2020-08-11 Thread Srinivas Kandagatla
For some reason interrupt set and clear register offsets are not set correctly. This patch corrects them! Fixes: 585e881e5b9e ("ASoC: codecs: Add msm8916-wcd analog codec") Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/msm8916-wcd-analog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 d

Re: [PATCH v32 1/6] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2020-08-11 Thread Pavel Machek
On Fri 2020-08-07 08:42:32, Dan Murphy wrote: > Pavel > > On 8/4/20 2:55 PM, Dan Murphy wrote: > > Pavel > > > > On 7/28/20 8:39 AM, Dan Murphy wrote: > > > Pavel > > > > > > On 7/22/20 10:31 AM, Dan Murphy wrote: > > > > Introduce the bindings for the Texas Instruments LP5036, LP5030, > > > > L

Re: [PATCH v32 2/6] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-08-11 Thread Pavel Machek
Hi! > Introduce the LP5036/30/24/18/12/9 RGB LED driver. > The difference in these parts are the number of > LED outputs where the: > > LP5036 can control 36 LEDs > LP5030 can control 30 LEDs > LP5024 can control 24 LEDs > LP5018 can control 18 LEDs > LP5012 can control 12 LEDs > LP5009 can contr

[PATCH] sections.h: dereference_function_descriptor() returns void pointer

2020-08-11 Thread Helge Deller
The function dereference_function_descriptor() takes on hppa64, ppc64 and ia64 a pointer to a function descriptor and returns a (void) pointer to the dereferenced function. To make cross-arch coding easier, on all other architectures the dereference_function_descriptor() macro should return a void

Re: [PATCH v32 2/6] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-08-11 Thread Pavel Machek
Hi! > Introduce the LP5036/30/24/18/12/9 RGB LED driver. > The difference in these parts are the number of > LED outputs where the: > > LP5036 can control 36 LEDs > LP5030 can control 30 LEDs > LP5024 can control 24 LEDs > LP5018 can control 18 LEDs > LP5012 can control 12 LEDs > LP5009 can contr

Re: [Linux-kernel-mentees] [PATCH net-next v2] ipvs: Fix uninit-value in do_ip_vs_set_ctl()

2020-08-11 Thread Julian Anastasov
Hello, On Tue, 11 Aug 2020, Peilin Ye wrote: > do_ip_vs_set_ctl() is referencing uninitialized stack value when `len` is > zero. Fix it. > > Reported-by: syzbot+23b5f9e7caf61d9a3...@syzkaller.appspotmail.com > Link: > https://syzkaller.appspot.com/bug?id=46ebfb92a8a812621a001ef04d90df

Re: [PATCH] btrfs: fix error value in btrfs_get_extent

2020-08-11 Thread David Sterba
On Mon, Aug 03, 2020 at 12:50:31PM +0300, Nikolay Borisov wrote: > On 3.08.20 г. 12:39 ч., Nikolay Borisov wrote: > > On 3.08.20 г. 12:35 ч., Pavel Machek wrote: > >> btrfs_get_extent() sets variable ret, but out: error path expect error > >> to be in variable err. Fix that. > >> > >> Signed-off-by

ERROR: "min_low_pfn" undefined!

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: 652b4afb240e5dc196995597942309e89e89c767 staging: wfx: load firmware date: 10 months ago config: microblaze-randconfig-r006-20200811 (attached as .config

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Michal Hocko
On Tue 11-08-20 11:42:51, Uladzislau Rezki wrote: > On Tue, Aug 11, 2020 at 11:37:13AM +0200, Uladzislau Rezki wrote: > > On Tue, Aug 11, 2020 at 10:19:17AM +0200, Michal Hocko wrote: [...] > > > Anyway, if the zone->lock is not a good fit for raw_spin_lock then the > > > only way I can see forward

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-08-11 Thread Sebastian Andrzej Siewior
On 2020-07-14 17:53:15 [+0200], Rafael J. Wysocki wrote: > acpi_evaluate_integer() doesn't show up in the trace, though, AFAICS. > > > I assumed acpi_ex_opcode_2A_0T_0R() since the other > > candidate was acpi_ev_asynch_execute_gpe_method(). > > Which probably is the case. Specifically > > acpi

[PATCH 2/2] KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set

2020-08-11 Thread Will Deacon
When an MMU notifier call results in unmapping a range that spans multiple PGDs, we end up calling into cond_resched_lock() when crossing a PGD boundary, since this avoids running into RCU stalls during VM teardown. Unfortunately, if the VM is destroyed as a result of OOM, then blocking is not perm

[PATCH 1/2] KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()

2020-08-11 Thread Will Deacon
The 'flags' field of 'struct mmu_notifier_range' is used to indicate whether invalidate_range_{start,end}() are permitted to block. In the case of kvm_mmu_notifier_invalidate_range_start(), this field is not forwarded on to the architecture-specific implementation of kvm_unmap_hva_range() and there

[PATCH] net: untag pointer in sockptr_is_kernel

2020-08-11 Thread Miles Chen
From: Miles Chen sockptr_is_kernel() uses (sockptr.kernel >= TASK_SIZE) to tell if the pointer is kernel space or user space. When user space uses the "top byte ignored" feature such as HWAsan, we must untag the pointer before checking against TASK_SIZE. sockptr_is_kernel() will view a tagged us

[PATCH 0/2] KVM: arm64: Fix sleeping while atomic BUG() on OOM

2020-08-11 Thread Will Deacon
Hi all, While stress-testing my arm64 stage-2 page-table rewrite [1], I ran into a sleeping while atomic BUG() during OOM that I can reproduce with mainline. The problem is that the arm64 page-table code periodically calls cond_resched_lock() when unmapping the stage-2 page-tables, but in the cas

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Michal Hocko
On Tue 11-08-20 11:37:13, Uladzislau Rezki wrote: > On Tue, Aug 11, 2020 at 10:19:17AM +0200, Michal Hocko wrote: > > On Mon 10-08-20 21:25:26, Michal Hocko wrote: > > > On Mon 10-08-20 18:07:39, Uladzislau Rezki wrote: > > [...] > > > > The problem that i see is we can not use the page allocator f

Re: [PATCH] btrfs: fix error value in btrfs_get_extent

2020-08-11 Thread David Sterba
On Mon, Aug 03, 2020 at 11:35:06AM +0200, Pavel Machek wrote: > btrfs_get_extent() sets variable ret, but out: error path expect error > to be in variable err. Fix that. > > Signed-off-by: Pavel Machek (CIP) Thanks, patch queued for 5.9. > > --- > > Notice that patch introducing this problem i

[PATCH 1/2] ASoC: q6afe-dai: add dummy register read function

2020-08-11 Thread Srinivas Kandagatla
Most of the DAPM widgets for DSP ASoC components reuse reg field of the widgets for its internal calculations, however these are not real registers. So read/writes to these numbers are not really valid. However ASoC core will read these registers to get default state during startup. With recent ch

[PATCH 2/2] ASoC: q6routing: add dummy register read function

2020-08-11 Thread Srinivas Kandagatla
Most of the DAPM widgets for DSP ASoC components reuse reg field of the widgets for its internal calculations, however these are not real registers. So read/writes to these numbers are not really valid. However ASoC core will read these registers to get default state during startup. With recent ch

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-08-11 Thread Kirill Tkhai
On 10.08.2020 20:34, Andrei Vagin wrote: > On Fri, Aug 07, 2020 at 11:47:57AM +0300, Kirill Tkhai wrote: >> On 06.08.2020 11:05, Andrei Vagin wrote: >>> On Mon, Aug 03, 2020 at 01:03:17PM +0300, Kirill Tkhai wrote: On 31.07.2020 01:13, Eric W. Biederman wrote: > Kirill Tkhai writes: >

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Michal Hocko
On Tue 11-08-20 11:18:07, Uladzislau Rezki wrote: > On Mon, Aug 10, 2020 at 09:25:25PM +0200, Michal Hocko wrote: > > On Mon 10-08-20 18:07:39, Uladzislau Rezki wrote: > > > > On Sun 09-08-20 22:43:53, Uladzislau Rezki (Sony) wrote: [...] > > > As i described before, calling the __get_free_page(0)

Re: [PATCH v32 1/6] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2020-08-11 Thread Pavel Machek
Hi! On Wed 2020-07-22 10:31:41, Dan Murphy wrote: > Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024, > LP5018, LP5012 and LP5009 RGB LED device driver. The LP5036/30/24/18/12/9 > can control RGB LEDs individually or as part of a control bank group. > These devices have the

Re: [PATCH] staging: ks7010: Do not use GFP_KERNEL in atomic context

2020-08-11 Thread Dan Carpenter
On Sun, Aug 09, 2020 at 01:18:46PM +0200, Christophe JAILLET wrote: > A possible call chain is as follow: > ks_wlan_start_xmit(ks_wlan_net.c) > --> hostif_data_request (ks_hostif.c) > --> michael_mic (ks_hostif.c) > > 'ks_wlan_start_xmi

Re: [PATCH] vhost: vdpa: remove per device feature whitelist

2020-08-11 Thread Michael S. Tsirkin
On Mon, Jul 20, 2020 at 04:50:43PM +0800, Jason Wang wrote: > We used to have a per device feature whitelist to filter out the > unsupported virtio features. But this seems unnecessary since: > > - the main idea behind feature whitelist is to block control vq > feature until we finalize the cont

Re: [PATCH v8 2/2] display/drm/bridge: TC358775 DSI/LVDS driver

2020-08-11 Thread Laurent Pinchart
Hi Sam, On Mon, Aug 10, 2020 at 07:54:40PM +0200, Sam Ravnborg wrote: > Hi Vinay. > > Vinay - thanks for following carefully up on the review feedback. > I know it can be frustrating to wait for feedback. > > On Sun, Aug 09, 2020 at 12:30:22AM +0300, Laurent Pinchart wrote: > > Hi Vinay, > > >

Re: [PATCH v6 10/18] nitro_enclaves: Add logic for getting the enclave image load info

2020-08-11 Thread Paraschiv, Andra-Irina
On 10/08/2020 12:57, Alexander Graf wrote: On 05.08.20 11:10, Andra Paraschiv wrote: Before setting the memory regions for the enclave, the enclave image needs to be placed in memory. After the memory regions are set, this memory cannot be used anymore by the VM, being carved out. Add ioct

Re: [f2fs-dev] [PATCH] f2fs: change virtual mapping way for compression pages

2020-08-11 Thread Gao Xiang
On Tue, Aug 11, 2020 at 06:33:26PM +0900, Daeho Jeong wrote: > Plus, when we use vmap(), vmap() normally executes in a short time > like vm_map_ram(). > But, sometimes, it has a very long delay. > > 2020??? 8??? 11??? (???) ?? 6:28, Daeho Jeong ?? > ??: > > > > Actually, as you can se

[PATCH] memory: samsung: exynos5422-dmc: Additional locking for 'curr_rate'

2020-08-11 Thread Lukasz Luba
The 'curr_rate' is protected by local 'dmc->lock' in various places, but not in a function exynos5_dmc_get_status(). The lock protects frequency (and voltage) change process and the corresponding value stored in 'curr_rate'. Add the locking mechanism to protect the 'curr_rate' reading also in the e

[PATCH] memory: samsung: exynos5422-dmc: Additional locking for 'curr_rate'

2020-08-11 Thread Lukasz Luba
The 'curr_rate' is protected by local 'dmc->lock' in various places, but not in a function exynos5_dmc_get_status(). The lock protects frequency (and voltage) change process and the corresponding value stored in 'curr_rate'. Add the locking mechanism to protect the 'curr_rate' reading also in the e

lockdep splat ("possible circular locking dependency detected") with PL011 on 5.8

2020-08-11 Thread Will Deacon
Hi, Using magic-sysrq via a keyboard interrupt over the serial console results in the following lockdep splat with the PL011 UART driver on v5.8. I can reproduce the issue under QEMU with arm64 defconfig + PROVE_LOCKING. Any chance somebody could take a look, please? It's a little annoying, becau

arch/mips/sgi-ip22/ip22-mc.c:80:18: sparse: sparse: cast removes address space '__iomem' of expression

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 8 weeks ago config: mips-randconfig-s032-20200811 (attached

Re: [PATCH v4 08/24] seqlock: lockdep assert non-preemptibility on seqcount_t write

2020-08-11 Thread Greg KH
On Mon, Aug 10, 2020 at 09:55:20PM +0200, Thomas Gleixner wrote: > Greg KH writes: > > On Sun, Aug 09, 2020 at 08:42:51PM +0200, Ahmed S. Darwish wrote: > >> On Sat, Aug 08, 2020 at 04:21:22PM -0700, Guenter Roeck wrote: > >> > Reverting it fixes the problem. Is this being addressed ? > >> > > >>

[PATCHv7 08/12] PCI: layerscape: Modify the MSIX to the doorbell mode

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao dw_pcie_ep_raise_msix_irq was never called in the exisitng driver before, because the ls1046a platform don't support the MSIX feature and msix_capable was always set to false. Now that add the ls1088a platform with MSIX support, use the doorbell method to support the MSIX featur

[PATCHv7 10/12] arm64: dts: layerscape: Add PCIe EP node for ls1088a

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Add PCIe EP node for ls1088a to support EP mode. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray Signed-off-by: Hou Zhiqiang --- V7: - Rebase the patch without functionality change. .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 31 +++ 1 file chang

[PATCHv7 07/12] PCI: layerscape: Modify the way of getting capability with different PEX

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao The different PCIe controller in one board may be have different capability of MSI or MSIX, so change the way of getting the MSI capability, make it more flexible. Signed-off-by: Xiaowei Bao Reviewed-by: Rob Herring Signed-off-by: Hou Zhiqiang --- V7: - Rebase the patch wit

[PATCHv7 04/12] PCI: designware-ep: Modify MSI and MSIX CAP way of finding

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Each PF of EP device should have its own MSI or MSIX capabitily struct, so create a dw_pcie_ep_func struct and move the msi_cap and msix_cap to this struct from dw_pcie_ep, and manage the PFs via a list. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V7: - Rebase

[PATCHv7 09/12] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Add PCIe EP mode support for ls1088a and ls2088a, there are some difference between LS1 and LS2 platform, so refactor the code of the EP driver. Signed-off-by: Xiaowei Bao Reviewed-by: Rob Herring Signed-off-by: Hou Zhiqiang --- V7: - Rebase the patch without functionality

[PATCHv7 05/12] dt-bindings: pci: layerscape-pci: Add compatible strings for ls1088a and ls2088a

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Add compatible strings for ls1088a and ls2088a. Signed-off-by: Xiaowei Bao Acked-by: Rob Herring Signed-off-by: Hou Zhiqiang --- V7: - Rebase the patch without functionality change. Documentation/devicetree/bindings/pci/layerscape-pci.txt | 2 ++ 1 file changed, 2 inserti

[PATCHv7 11/12] misc: pci_endpoint_test: Add LS1088a in pci_device_id table

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Add LS1088a in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in LS1088a. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray Signed-off-by: Hou Zhiqiang --- V7: - Rebase the patch without functionality change. drivers/misc/pci_endpoint_test.c

[PATCHv7 03/12] PCI: designware-ep: Move the function of getting MSI capability forward

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Move the function of getting MSI capability to the front of init function, because the init function of the EP platform driver will use the return value by the function of getting MSI capability. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray Signed-off-by: Hou Zhiqian

[PATCHv7 12/12] misc: pci_endpoint_test: Add driver data for Layerscape PCIe controllers

2020-08-11 Thread Zhiqiang Hou
From: Hou Zhiqiang The commit 0a121f9bc3f5 ("misc: pci_endpoint_test: Use streaming DMA APIs for buffer allocation") changed to use streaming DMA APIs, however, dma_map_single() might not return a 4KB aligned address, so add the default_data as driver data for Layerscape PCIe controllers to make

[PATCHv7 06/12] PCI: layerscape: Fix some format issue of the code

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Fix some format issue of the code in EP driver. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray Signed-off-by: Hou Zhiqiang --- V7: - Rebase the patch without functionality change. drivers/pci/controller/dwc/pci-layerscape-ep.c | 4 ++-- 1 file changed, 2 insertions

[PATCHv7 01/12] PCI: designware-ep: Add multiple PFs support for DWC

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Add multiple PFs support for DWC, due to different PF have different config space, we use func_conf_select callback function to access the different PF's config space, the different chip company need to implement this callback function when use the DWC IP core and intend to supp

[PATCHv7 02/12] PCI: designware-ep: Add the doorbell mode of MSI-X in EP mode

2020-08-11 Thread Zhiqiang Hou
From: Xiaowei Bao Add the doorbell mode of MSI-X in DWC EP driver. Signed-off-by: Xiaowei Bao Reviewed-by: Andrew Murray Signed-off-by: Hou Zhiqiang --- V7: - Rebase the patch without functionality change. drivers/pci/controller/dwc/pcie-designware-ep.c | 14 ++ drivers/pci/con

[PATCHv7 00/12]PCI: dwc: Add the multiple PF support for DWC and Layerscape

2020-08-11 Thread Zhiqiang Hou
From: Hou Zhiqiang Add the PCIe EP multiple PF support for DWC and Layerscape, and use a list to manage the PFs of each PCIe controller; add the doorbell MSIX function for DWC; and refactor the Layerscape EP driver due to some difference in Layercape platforms PCIe integration. Hou Zhiqiang (1):

[PATCH net 2/2] vsock: small cleanup in vsock_poll()

2020-08-11 Thread Stefano Garzarella
This patch combines nested if statements in a single one to reduce the indentation in vsock_poll(). It also combines an if nested in the else branch. The behavior isn't changed. Signed-off-by: Stefano Garzarella --- net/vmw_vsock/af_vsock.c | 27 --- 1 file changed, 12 i

[PATCH net 1/2] vsock: fix potential null pointer dereference in vsock_poll()

2020-08-11 Thread Stefano Garzarella
syzbot reported this issue where in the vsock_poll() we find the socket state at TCP_ESTABLISHED, but 'transport' is null: general protection fault, probably for non-canonical address 0xdc12: [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0090-0x0

[PATCH net 0/2] vsock: fix null pointer dereference and cleanup in vsock_poll()

2020-08-11 Thread Stefano Garzarella
The first patch fixes a potential null pointer dereference in vsock_poll() reported by syzbot. The second patch is a simple cleanup in the same block code. I put this later, to make it easier to backport the first patch in the stable branches. Thanks, Stefano Stefano Garzarella (2): vsock: fix

drivers/gpio/gpio-mxs.c:362:21: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-11 Thread kernel test robot
months ago config: openrisc-randconfig-s031-20200811 (attached as .config) compiler: or1k-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse

[PATCH] ALSA: hda/hdmi: Use force connectivity quirk on another HP desktop

2020-08-11 Thread Kai-Heng Feng
There's another HP desktop has buggy BIOS which flags the Port Connectivity bit as no connection. Apply force connectivity quirk to enable DP/HDMI audio. Signed-off-by: Kai-Heng Feng --- sound/pci/hda/patch_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_hdmi.c b/

Re: [PATCH RFC v2 02/18] irq/dev-msi: Add support for a new DEV_MSI irq domain

2020-08-11 Thread Thomas Gleixner
Thomas Gleixner writes: CC+: XEN folks > Thomas Gleixner writes: >> The infrastructure itself is not more than a thin wrapper around the >> existing msi domain infrastructure and might even share code with >> platform-msi. > > And the annoying fact that you need XEN support which opens another

Re: [PATCH RFC v2] sched/fair: simplify the work when reweighting entity

2020-08-11 Thread Dietmar Eggemann
On 06/08/2020 18:14, Jiang Biao wrote: > From: Jiang Biao > > If a se is on_rq when reweighting entity, all we need should be > updating the load of cfs_rq, other dequeue/enqueue work could be > redundant, such as, > * nr_running--/nr_running++ > > Even though the following dequeue/enqueue path

Re: [PATCH 1/2] perf: Add closing sibling events' file descriptors

2020-08-11 Thread Alexander Shishkin
Andi Kleen writes: >> It didn't. I can't figure out what to charge on the locked memory, as >> all that memory is in kernel-side objects. It also needs to make sense > > I don't see how that makes a difference for the count. It just account > bytes. Can you elaborate? Right, but which bytes? One

drivers/dma/fsl_raid.c:115:17: sparse: sparse: incorrect type in argument 1 (different base types)

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 8 weeks ago config: powerpc-randconfig-s031-20200811

Re: [PATCH] x86/paravirt: Add missing noinstr to arch_local*() helpers

2020-08-11 Thread peterz
On Tue, Aug 11, 2020 at 11:20:54AM +0200, pet...@infradead.org wrote: > On Tue, Aug 11, 2020 at 10:38:50AM +0200, Jürgen Groß wrote: > > In case you don't want to do it I can send the patch for the Xen > > variants. > > I might've opened a whole new can of worms here. I'm not sure we > can/want to

[PATCH v4 1/2] memremap: rename MEMORY_DEVICE_DEVDAX to MEMORY_DEVICE_GENERIC

2020-08-11 Thread Roger Pau Monne
This is in preparation for the logic behind MEMORY_DEVICE_DEVDAX also being used by non DAX devices. No functional change intended. Signed-off-by: Roger Pau Monné --- Cc: Dan Williams Cc: Vishal Verma Cc: Dave Jiang Cc: Andrew Morton Cc: Jason Gunthorpe Cc: Ira Weiny Cc: "Aneesh Kumar K.V"

[PATCH v4 2/2] xen: add helpers to allocate unpopulated memory

2020-08-11 Thread Roger Pau Monne
To be used in order to create foreign mappings. This is based on the ZONE_DEVICE facility which is used by persistent memory devices in order to create struct pages and kernel virtual mappings for the IOMEM areas of such devices. Note that on kernels without support for ZONE_DEVICE Xen will fallbac

[PATCH v4 0/2] xen/balloon: fixes for memory hotplug

2020-08-11 Thread Roger Pau Monne
Hello, The following series contain some fixes in order to split Xen unpopulated memory handling from the ballooning driver if ZONE_DEVICE is available, so that physical memory regions used to map foreign pages are not tied to memory hotplug. The main difference in this version is that MEMORY_DEV

Re: [RFC PATCH] printk: Change timestamp to triplet as mono, boot and real

2020-08-11 Thread Petr Mladek
On Tue 2020-08-11 12:40:22, Orson Zhai wrote: > From: Thomas Gleixner > > Timestamps printed in kernel log are retrieved by local_clock which reads > jiffies as a referrence clock source. > But it is diffcult to be synchronized with logs generated out of kernel, > say some remote processors (Mode

Re: [PATCH] driver core: Let dev_err_probe() use the symbolic error code

2020-08-11 Thread Mark Brown
On Tue, Aug 11, 2020 at 09:20:36AM +0200, Uwe Kleine-König wrote: > This makes the error message: > > error -EIO: ... > > instead of > > error -5: ... Reviewed-by: Mark Brown Having the plain text is very much nicer when reading the logs! signature.asc Description: PGP signature

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Uladzislau Rezki
On Tue, Aug 11, 2020 at 11:37:13AM +0200, Uladzislau Rezki wrote: > On Tue, Aug 11, 2020 at 10:19:17AM +0200, Michal Hocko wrote: > > On Mon 10-08-20 21:25:26, Michal Hocko wrote: > > > On Mon 10-08-20 18:07:39, Uladzislau Rezki wrote: > > [...] > > > > The problem that i see is we can not use the

Re: [RFT PATCH v5] serial: samsung: Removes the IRQ not found warning

2020-08-11 Thread Marek Szyprowski
Hi On 10.08.2020 05:00, Tamseel Shams wrote: > In few older Samsung SoCs like s3c2410, s3c2412 > and s3c2440, UART IP is having 2 interrupt lines. > However, in other SoCs like s3c6400, s5pv210, > exynos5433, and exynos4210 UART is having only 1 > interrupt line. Due to this, "platform_get_irq(pla

<    4   5   6   7   8   9   10   11   >