R: [RFC PATCH v5 1/7] drivers: thermal: tsens: Add VER_0 tsens version

2020-08-11 Thread ansuelsmth
> -Messaggio originale- > Da: Amit Kucheria > Inviato: martedì 11 agosto 2020 14:58 > A: Ansuel Smith > Cc: Andy Gross ; Bjorn Andersson > ; Zhang Rui ; Daniel > Lezcano ; Rob Herring ; > Linux PM list ; linux-arm-msm m...@vger.kernel.org>; open list:OPEN FIRMWARE AND FLATTENED

Re: [PATCH v2 00/17] arm/arm64: Turning IPIs into normal interrupts

2020-08-11 Thread Sumit Garg
Hi Marc, On Thu, 25 Jun 2020 at 01:28, Marc Zyngier wrote: > > For as long as SMP ARM has existed, IPIs have been handled as > something special. The arch code and the interrupt controller exchange > a couple of hooks (one to generate an IPI, another to handle it). > > Although this is perfectly

Re: [PATCH v2] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE

2020-08-11 Thread Jens Axboe
On 8/11/20 12:49 AM, Martijn Coenen wrote: > On Mon, Aug 10, 2020 at 7:16 PM Lennart Poettering > wrote: >> >> When LOOP_CONFIGURE is used with LO_FLAGS_PARTSCAN we need to propagate >> this into the GENHD_FL_NO_PART_SCAN. LOOP_SETSTATUS does this, >> LOOP_CONFIGURE doesn't so far. Effect is

Re: [PATCH] mm, page_alloc: fix core hung in free_pcppages_bulk()

2020-08-11 Thread David Hildenbrand
On 11.08.20 15:11, Charan Teja Kalla wrote: > Thanks David for the comments. > > On 8/11/2020 1:59 PM, David Hildenbrand wrote: >> On 10.08.20 18:10, Charan Teja Reddy wrote: >>> The following race is observed with the repeated online, offline and a >>> delay between two successive online of

Re: [PATCH] mm, page_alloc: fix core hung in free_pcppages_bulk()

2020-08-11 Thread Charan Teja Kalla
Thanks David for the comments. On 8/11/2020 1:59 PM, David Hildenbrand wrote: > On 10.08.20 18:10, Charan Teja Reddy wrote: >> The following race is observed with the repeated online, offline and a >> delay between two successive online of memory blocks of movable zone. >> >> P1

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

2020-08-11 Thread Qi Zheng
On 2020/8/11 下午8:48, Valentin Schneider wrote: On 11/08/20 12:44, Qi Zheng wrote: On 2020/8/11 下午6:38, Valentin Schneider wrote: 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

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-11 Thread Pavel Machek
Hi! > >> Thanks for the lively discussion. I have tried to answer some of the > >> comments below. > > > >>> There are options today, e.g. > >>> > >>> a) If the restriction is only per-alias, you can have distinct aliases > >>>where one is writable and another is executable, and you can make

Re: [PATCH v2 2/2] platform/chrome: cros_ec_typec: Avoid setting usb role during disconnect

2020-08-11 Thread Heikki Krogerus
Hi, On Thu, Aug 06, 2020 at 11:39:08AM -0700, Prashant Malani wrote: > I would suggest: > - Merging Patch 1 (role set correction) and Patch 2 (moving the > usb_role_switch_set_role() inside cros_typec_configure_mux() > *but* keep it at the end to preserve existing ordering) into 1 patch. > - Add

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

2020-08-11 Thread Petr Mladek
On Tue 2020-08-11 14:05:12, Thomas Gleixner wrote: > Petr Mladek writes: > > At least "crash" tool would need an update anyway. AFAIK, it checks > > the size of struct printk_log and refuses to read it when it changes. > > > > It means that the hack with VMCOREINFO_FIELD_OFFSET probably is not >

Re: [PATCH] mm, page_alloc: fix core hung in free_pcppages_bulk()

2020-08-11 Thread Charan Teja Kalla
Thanks David. On 8/11/2020 1:06 AM, David Rientjes wrote: > On Mon, 10 Aug 2020, Charan Teja Reddy wrote: > >> diff --git a/mm/page_alloc.c b/mm/page_alloc.c >> index e4896e6..25e7e12 100644 >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -3106,6 +3106,7 @@ static void

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

2020-08-11 Thread Tomasz Figa
Hi Sylwester, 2020年8月11日(火) 13:25 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

[PATCH V2] mm, page_alloc: fix core hung in free_pcppages_bulk()

2020-08-11 Thread Charan Teja Reddy
The following race is observed with the repeated online, offline and a delay between two successive online of memory blocks of movable zone. P1 P2 Online the first memory block in the movable zone. The pcp struct values are initialized to default

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

2020-08-11 Thread Simon Horman
On Tue, Aug 11, 2020 at 01:29:04PM +0300, Julian Anastasov wrote: > > 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:

Re: [PATCH] HID: i2c-hid: Add 60ms delay after SET_POWER ON

2020-08-11 Thread Hans de Goede
Hi, On 8/11/20 8:00 AM, Kai-Heng Feng wrote: Hi Hans, On Aug 11, 2020, at 00:13, Hans de Goede wrote: Hi, On 10-08-2020 16:29, Kai-Heng Feng wrote: Goodix touchpad fails to operate in I2C mode after system suspend. According to the vendor, Windows is more forgiving and there's a 60ms

Re: [PATCH 19/20] media: platform: vpdma.c: fix comparison to bool

2020-08-11 Thread Benoit Parrot
Daniel W. S. Almeida wrote on Fri [2020-Aug-07 05:35:46 -0300]: > From: "Daniel W. S. Almeida" > > Fix the following coccinelle report: > > drivers/media/platform/ti-vpe/vpdma.c:946:5-26: WARNING: > Comparison to bool > > Found using - Coccinelle (http://coccinelle.lip6.fr) > >

Re: [RFC PATCH v5 2/7] drivers: thermal: tsens: Convert msm8960 to reg_field

2020-08-11 Thread Amit Kucheria
On Sat, Jul 25, 2020 at 11:44 PM Ansuel Smith wrote: > > Covert msm9860 driver to reg_filed to use the init_common typo: field > function. > > Signed-off-by: Ansuel Smith > --- > drivers/thermal/qcom/tsens-8960.c | 74 +++ > 1 file changed, 74 insertions(+) > >

Re: [RFC PATCH v5 1/7] drivers: thermal: tsens: Add VER_0 tsens version

2020-08-11 Thread Amit Kucheria
On Sat, Jul 25, 2020 at 11:44 PM Ansuel Smith wrote: > > VER_0 is used to describe device based on tsens version before v0.1. > These device are devices based on msm8960 for example apq8064 or > ipq806x. > > Signed-off-by: Ansuel Smith > --- > drivers/thermal/qcom/tsens.c | 160

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

2020-08-11 Thread Alex Shi
>From beeac61119ab39b1869c520c0f272fb8bab93765 Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Wed, 5 Aug 2020 21:02:30 +0800 Subject: [PATCH 2/6] memcg: bail out early from swap accounting when memcg is disabled If we disabled memcg by cgroup_disable=memory, the swap charges are still called.

drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: incorrect type in initializer (different address spaces)

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: ia64-randconfig-s032-20200811 (attached

Re: [PATCH 1/2] mm/slub: Introduce two counters for the partial objects

2020-08-11 Thread Christopher Lameter
On Fri, 7 Aug 2020, Pekka Enberg wrote: > Why do you consider this to be a fast path? This is all partial list > accounting when we allocate/deallocate a slab, no? Just like > ___slab_alloc() says, I assumed this to be the slow path... What am I > missing? I thought these were per object

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

2020-08-11 Thread Valentin Schneider
On 11/08/20 12:44, Qi Zheng wrote: > On 2020/8/11 下午6:38, Valentin Schneider wrote: >> >> 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 >

[git pull] IOMMU Updates for Linux v5.9

2020-08-11 Thread Joerg Roedel
Hi Linus, there is a tiny conflict with your tree because of the Kconfig changes this time. Please see my attached resolution. With that in mind: The following changes since commit 92ed301919932f13b9172e525674157e983d: Linux 5.8-rc7 (2020-07-26 14:14:06 -0700) are available in the Git

KASAN: use-after-free Read in corrupted (4)

2020-08-11 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d6efb3ac Merge tag 'tty-5.9-rc1' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=172b697690 kernel config: https://syzkaller.appspot.com/x/.config?x=ff87594cecb7e666

Re: [PATCH 4.19 47/48] i40e: Memory leak in i40e_config_iwarp_qvlist

2020-08-11 Thread Pavel Machek
Hi! > From: Martyna Szapar > > [ Upstream commit 0b63644602cfcbac849f7ea49272a39e90fa95eb ] > > Added freeing the old allocation of vf->qvlist_info in function > i40e_config_iwarp_qvlist before overwriting it with > the new allocation. Ok, but this also other error paths: > ---

Re: VDPA Debug/Statistics

2020-08-11 Thread Michael S. Tsirkin
On Tue, Aug 11, 2020 at 11:58:23AM +, Eli Cohen wrote: > On Tue, Aug 11, 2020 at 11:26:20AM +, Eli Cohen wrote: > > Hi All > > > > Currently, the only statistics we get for a VDPA instance comes from the > > virtio_net device instance. Since VDPA involves hardware acceleration, > >

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

2020-08-11 Thread Alex Shi
在 2020/8/11 下午7:30, Michal Hocko 写道: > subject line looks like a left over. It doesn't match the path. Did you > mean > memcg: bail out early from swap accounting when memcg is disabled? It's much better, Thanks for correction! > > Btw. if this patch was first in the series then you wouldn't

Re: [PATCH 06/13] MIPS: generic: Call the machine's .get_system_type callback if provided

2020-08-11 Thread Paul Cercueil
Le lun. 3 août 2020 à 19:01, Paul Cercueil a écrit : Call the machine's .get_system_type callback in the global get_system_type() function, if it was provided by the mips_machine implementation. The get_system_type() function had to be moved within init.c to be able to use the static

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-11 Thread Madhavan T. Venkataraman
On 8/8/20 5:17 PM, Pavel Machek wrote: > Hi! > >> Thanks for the lively discussion. I have tried to answer some of the >> comments below. > >>> There are options today, e.g. >>> >>> a) If the restriction is only per-alias, you can have distinct aliases >>>where one is writable and another

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:17:13PM +0100, Will Deacon wrote: > On Tue, Aug 11, 2020 at 12:38:41PM +0200, pet...@infradead.org wrote: > > diff --git a/drivers/tty/serial/amba-pl011.c > > b/drivers/tty/serial/amba-pl011.c > > index 8efd7c2a34fe..1717790ece2b 100644 > > ---

[PATCH v1] thermal/of: Introduce k-po, k-pu and k-i for a thermal zone

2020-08-11 Thread Finley Xiao
The default value for k_pu is: 2 * sustainable_power / (desired_temperature - switch_on_temp) The default value for k_po is: sustainable_power / (desired_temperature - switch_on_temp) The default value for k_i is 10. Even though these parameters of the PID controller can be changed by the

[PATCH] drivers: crypto: picoxcell_crypto: Fix potential race condition bug

2020-08-11 Thread madhuparnabhowmik10
From: Madhuparna Bhowmik engine->stat_irq_thresh was initialized after device_create_file() in the probe function, the initialization may race with call to spacc_stat_irq_thresh_store() which updates engine->stat_irq_thresh, therefore initialize it before creating the file in probe function.

Re: [PATCH] net: untag pointer in sockptr_is_kernel

2020-08-11 Thread kernel test robot
Hi Miles, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on linus/master] [cannot apply to net/master hch-configfs/for-next sparc-next/master v5.8 next-20200811] [If your patch is applied to the wrong git tree, kindly drop us

cc1: fatal error: opening output file arch/powerpc/boot/dts/fsl/.mpc8541cds.dtb.dts.tmp: No such file or directory

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: cc8a51ca6f05ade72f7dd2624bc5f9b948e216fc kbuild: always create directories of targets date: 2 days ago config: powerpc-randconfig-c004-20200811 (attached

Re: [PATCH] net: untag pointer in sockptr_is_kernel

2020-08-11 Thread kernel test robot
Hi Miles, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on linus/master] [cannot apply to net/master hch-configfs/for-next sparc-next/master v5.8 next-20200811] [If your patch is applied to the wrong git tree, kindly drop us

drivers/net/wireless/ti/wlcore/main.c:700:9: sparse: sparse: context imbalance in 'wlcore_irq' - different lock contexts for basic block

2020-08-11 Thread kernel test robot
-s032-20200811 (attached as .config) compiler: mips64-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 # sparse version: v0.6.2-168

Re: [RFC][PATCH v3 11/11] misc: hisi_hikey_usb: Driver to support usb functionality of Hikey960

2020-08-11 Thread Mauro Carvalho Chehab
Em Mon, 10 Aug 2020 21:36:58 -0700 John Stultz escreveu: > On Mon, Aug 10, 2020 at 9:35 AM Mauro Carvalho Chehab > wrote: > > Em Wed, 16 Oct 2019 03:33:40 + > > John Stultz escreveu: > > > > > From: Yu Chen > > > > > > The HiKey960 has a fairly complex USB configuration due to it > > >

RE: [PATCH 1/2] scsi: ufs: Fix interrupt error message for shared interrupts

2020-08-11 Thread Avri Altman
> The interrupt might be shared, in which case it is not an error for the > interrupt handler to be called when the interrupt status is zero, so > remove the message print and register dump. > > Signed-off-by: Adrian Hunter > Fixes: 9333d77573485 ("scsi: ufs: Fix irq return code") > --- >

Re: [PATCH 0/3] Modernize tasklet callback API

2020-08-11 Thread Allen
Kees, > > > > Here's the series re-based on top of 5.8 > https://github.com/allenpais/tasklets/tree/V3 > > Let me know how you would want these to be reviewed. > I see the first set of infrastructure patches for tasklets have landed in Linus's tree. Good time to send out the ~200 patches? -

drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:817 dpu_crtc_enable() error: uninitialized symbol 'request_bandwidth'.

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: 241b507c166fef3e461e5daf562d8e41aa41bf15 drm/msm/dpu: fix "frame done" timeouts date: 11 months ago config: arm64-randconfig-m031-20200811

Re: [PATCH] net: eliminate meaningless memcpy to data in pskb_carve_inside_nonlinear()

2020-08-11 Thread linmiaohe
Eric Dumazet wrote: > On 8/10/20 5:28 AM, Miaohe Lin wrote: >> The skb_shared_info part of the data is assigned in the following >> loop. It is meaningless to do a memcpy here. >> > >Reminder : net-next is CLOSED. > Thanks for your remind. I would wait for it open. >This is not correct. We

Re: [RFC PATCH v1] power: don't manage floating point regs when no FPU

2020-08-11 Thread Michael Ellerman
Christophe Leroy writes: > There is no point in copying floating point regs when there > is no FPU and MATH_EMULATION is not selected. Yeah I guess you're right. I've never touched a system with neither, but if such a thing exists then it does seem silly to copy regs around that can't be used.

Re: possible deadlock in dev_mc_unsync

2020-08-11 Thread syzbot
syzbot suspects this issue was fixed by commit: commit be74294ffa24f5fbc0d6643842e3e095447e17a2 Author: Cong Wang Date: Fri Jun 26 18:24:22 2020 + net: get rid of lockdep_set_class_and_subclass() bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=110b0fc290 start

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

2020-08-11 Thread Thomas Gleixner
Petr Mladek writes: > On Tue 2020-08-11 12:40:22, Orson Zhai wrote: >> This is an updated version which comes from patch [1] written by Thomas >> and suggestion [2] about VMCORE_INFO given by Linus. All of that want's to be properly distangled into seperate patches. >> This patch has been

[PATCH v2 2/2] ASoC: q6routing: add dummy register read/write 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

[PATCH v2 1/2] ASoC: q6afe-dai: mark all widgets registers as SND_SOC_NOPM

2020-08-11 Thread Srinivas Kandagatla
Looks like the q6afe-dai dapm widget registers are set as "0", which is a not correct. As this registers will be read by ASoC core during startup which will throw up errors, Fix this by making the registers as SND_SOC_NOPM as these should be never used. With recent changes to ASoC core, every

drivers/tty/cyclades.c:3084:41: sparse: sparse: incorrect type in argument 1 (different address spaces)

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-s031-20200811 (attached

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

2020-08-11 Thread Stephen Berman
On Sun, 19 Jul 2020 12:07:14 +0200 Stephen Berman wrote: > On Tue, 14 Jul 2020 16:11:35 +0200 Sebastian Andrzej Siewior > wrote: > [...] >> Stephen, the patch attached adds a WARN_ON() statement which will >> produce a stack trace (4 or so). Could please run 'dmesg' after a while >> and send

Re: [PATCH] memremap: Convert devmap static branch to {inc,dec}

2020-08-11 Thread William Kucharski
Looks good to me. Reviewed-by: William Kucharski > On Aug 10, 2020, at 5:53 PM, ira.we...@intel.com wrote: > > From: Ira Weiny > > While reviewing Protection Key Supervisor support it was pointed out > that using a counter to track static branch enable was an anti-pattern > which was better

RE: VDPA Debug/Statistics

2020-08-11 Thread Eli Cohen
On Tue, Aug 11, 2020 at 11:26:20AM +, Eli Cohen wrote: > 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

Re: [PATCH] serial: qcom_geni_serial: Fix recent kdb hang

2020-08-11 Thread Akash Asthana
On 8/11/2020 2:56 AM, Doug Anderson wrote: Hi, On Mon, Aug 10, 2020 at 5:32 AM Akash Asthana wrote: Hi Doug, On 8/7/2020 10:49 AM, Douglas Anderson wrote: The commit e42d6c3ec0c7 ("serial: qcom_geni_serial: Make kgdb work even if UART isn't console") worked pretty well and I've been doing

Re: [PATCH] net: eliminate meaningless memcpy to data in pskb_carve_inside_nonlinear()

2020-08-11 Thread linmiaohe
Florian Westphal wrote: >Miaohe Lin wrote: >> The skb_shared_info part of the data is assigned in the following loop. > >Where? > It's at the below for (i = 0; i < nfrags; i++) loop. But I missed something as Eric Dumazet pointed out. Sorry about it.

Re: [PATCH 0/5] Some clean-ups for bio merge

2020-08-11 Thread Baolin Wang
Hi, On Wed, Jul 29, 2020 at 11:28:32AM +0800, Baolin Wang wrote: > Hi, > > There are some duplicated code when trying to merge bio from pluged list > and software queue, thus this patch set did some clean-ups when merging > a bio. Any comments are welcome. Thanks. Any comments for this patch

RE: [PATCH] net: untag pointer in sockptr_is_kernel

2020-08-11 Thread David Laight
> 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

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

2020-08-11 Thread Qi Zheng
On 2020/8/11 下午6:38, Valentin Schneider wrote: 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

Re: [PATCH v2] media: rcar-vin: Add support to select data pins for YCbCr422-8bit input

2020-08-11 Thread Laurent Pinchart
Hi Prabhakar, On Fri, Aug 07, 2020 at 09:20:36PM +0100, Lad, Prabhakar wrote: > On Wed, Aug 5, 2020 at 1:35 PM Laurent Pinchart wrote: > > On Wed, Aug 05, 2020 at 10:43:25AM +0200, Geert Uytterhoeven wrote: > >> On Wed, Aug 5, 2020 at 10:01 AM Lad, Prabhakar wrote: > >>> On Tue, Aug 4, 2020 at

[RESEND PATCH v3 0/2] Add support for Tianma nt36672a video mode panel

2020-08-11 Thread Sumit Semwal
Some Poco F1 phones from Xiaomi have an nt36672a video mode panel; add support for the same. Most of the panel data is taken from downstream panel dts, and is converted to drm-panel based driver by me. It has been validated with v5.8-rc5 on Poco F1 phone; my tree with other dependent patches is

[RESEND PATCH v3 1/2] dt-bindings: display: panel: Add bindings for Tianma nt36672a panel

2020-08-11 Thread Sumit Semwal
The nt36672a panel from Tianma is a FHD+ panel with a resolution of 1080x2246 and 6.18 inches size. It is found in some of the Poco F1 phones. Signed-off-by: Sumit Semwal Reviewed-by: Rob Herring --- v2: remove ports node, making port@0 directly under panel@0 node. v3: updated to replace port@0

[RESEND PATCH v3 2/2] drm: panel: Add tianma nt36672a panel driver

2020-08-11 Thread Sumit Semwal
Some Poco F1 phones have an LCD panel from Tianma, model nt36672a, with a resolution of 1080x2246 that operates in DSI video mode. Add the drm panel driver for it. During testing, Benni Steini helped us fix the reset sequence timing (from 10ms to 20ms), to get the bootanimation to work on

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

2020-08-11 Thread Mark Brown
On Tue, Aug 11, 2020 at 01:04:09PM +0200, Stephan Gerhold wrote: > Actually q6afe-dai does not seem to make use of the register number. > The DAPM widgets all look like > SND_SOC_DAPM_AIF_IN("HDMI_RX", NULL, 0,0, 0, 0), > /* (wname,stname, wchan, wreg,

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

2020-08-11 Thread Mark Brown
On Tue, Aug 11, 2020 at 04:13:03PM +0530, Rohit Kumar wrote: > 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. Please

Re: VDPA Debug/Statistics

2020-08-11 Thread Michael S. Tsirkin
On Tue, Aug 11, 2020 at 11:26:20AM +, Eli Cohen wrote: > 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

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

2020-08-11 Thread Uladzislau Rezki
On Tue, Aug 11, 2020 at 12:26:49PM +0200, Michal Hocko wrote: > 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: > > >

[PATCH v3] sched/fair: simplfy the work when reweighting entity

2020-08-11 Thread Jiang Biao
From: Jiang Biao The code in reweight_entity() can be simplified. For a sched entity on the rq, the entity accounting can be replaced by cfs_rq instantaneous load updates currently called from within the entity accounting. Even though an entity on the rq can't represent a task in

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

2020-08-11 Thread Daeho Jeong
Plus, differently from your testbed, in my pixel device, there seems to be much more contention in vmap() operation. If it's not there, I agree that there might not be a big difference between vmap() and vm_map_ram(). 2020년 8월 11일 (화) 오후 8:29, Gao Xiang 님이 작성: > > On Tue, Aug 11, 2020 at

drivers/net/wireless/ti/wlcore/main.c:643:34: sparse: sparse: context imbalance in 'wlcore_irq_locked' - different lock contexts for basic block

2020-08-11 Thread kernel test robot
-s032-20200811 (attached as .config) compiler: mips64-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 # sparse version: v0.6.2-168

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

2020-08-11 Thread Michal Hocko
subject line looks like a left over. It doesn't match the path. Did you mean memcg: bail out early from swap accounting when memcg is disabled? Btw. if this patch was first in the series then you wouldn't need to mention the warnings that would trigger based on your previous patch. I am fine with

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

2020-08-11 Thread Gao Xiang
On Tue, Aug 11, 2020 at 08:21:23PM +0900, Daeho Jeong wrote: > 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. Yeah, anyway, it'd better to lock the freq and offline the little cores in your test as well

[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

[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 ---

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 > > --- >

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

[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

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

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()

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’: >

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

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, >> *

[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

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

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

[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

[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

[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 ---

[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

[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

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)

[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

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

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

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/ > > > >

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. > >

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

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

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

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

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

<    3   4   5   6   7   8   9   10   11   >