[for-linus][PATCH 01/17] recordmcount: support >64k sections

2020-06-18 Thread Steven Rostedt
From: Sami Tolvanen When compiling a kernel with Clang and LTO, we need to run recordmcount on vmlinux.o with a large number of sections, which currently fails as the program doesn't understand extended section indexes. This change adds support for processing binaries with >64k sections. Link:

[for-linus][PATCH 07/17] sample-trace-array: Fix sleeping function called from invalid context

2020-06-18 Thread Steven Rostedt
From: Kefeng Wang BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/5 1 lock held by swapper/5/0: #0: 80001002bd90 (samples/ftrace/sample-trace-array.c:38){+.-.}-{0:0}, at:

[for-linus][PATCH 02/17] kprobes: Suppress the suspicious RCU warning on kprobes

2020-06-18 Thread Steven Rostedt
From: Masami Hiramatsu Anders reported that the lockdep warns that suspicious RCU list usage in register_kprobe() (detected by CONFIG_PROVE_RCU_LIST.) This is because get_kprobe() access kprobe_table[] by hlist_for_each_entry_rcu() without rcu_read_lock. If we call get_kprobe() from the

[for-linus][PATCH 08/17] sample-trace-array: Remove trace_array sample-instance

2020-06-18 Thread Steven Rostedt
From: Kefeng Wang Remove trace_array 'sample-instance' if kthread_run fails in sample_trace_array_init(). Link: https://lkml.kernel.org/r/20200609135200.2206726-1-wangkefeng.w...@huawei.com Cc: sta...@vger.kernel.org Fixes: 89ed42495ef4a ("tracing: Sample module to demonstrate kernel access

[for-linus][PATCH 04/17] kprobes: Fix to protect kick_kprobe_optimizer() by kprobe_mutex

2020-06-18 Thread Steven Rostedt
From: Masami Hiramatsu In kprobe_optimizer() kick_kprobe_optimizer() is called without kprobe_mutex, but this can race with other caller which is protected by kprobe_mutex. To fix that, expand kprobe_mutex protected area to protect kick_kprobe_optimizer() call. Link:

Re: [PATCH 5/7] rcu/trace: Use rsp's gp_seq in acceleration's rcu_grace_period tracepoint

2020-06-18 Thread Joel Fernandes
On Thu, Jun 18, 2020 at 03:27:21PM -0700, Paul E. McKenney wrote: > On Thu, Jun 18, 2020 at 04:29:53PM -0400, Joel Fernandes (Google) wrote: > > During acceleration of CB, the rsp's gp_seq is rcu_seq_snap'd. This is > > the value used for acceleration - it is the value of gp_seq at which it > > is

Parallel compilation performance regression

2020-06-18 Thread Derrick, Jonathan
Hi David, I've been experiencing a performance regression when running a parallel compilation (eg, make -j72) on recent kernels. I bisected it to this commit: commit b667b867344301e24f21d4a4c844675ff61d89e1 Author: David Howells Date: Tue Sep 24 16:09:04 2019 +0100 pipe: Advance tail

Re: [PATCH 2/7] rcu/trace: Add tracing for how segcb list changes

2020-06-18 Thread Joel Fernandes
On Thu, Jun 18, 2020 at 03:16:39PM -0700, Paul E. McKenney wrote: > On Thu, Jun 18, 2020 at 04:29:50PM -0400, Joel Fernandes (Google) wrote: > > Track how the segcb list changes before/after acceleration, during > > queuing and during dequeuing. > > > > This has proved useful to discover an

Re: [PATCH] Ability to read the MKTME status from userspace

2020-06-18 Thread Dave Hansen
On 6/18/20 2:26 PM, Daniel Gutson wrote: > Red Hat and Eclypsium are working on a specification to assess > firmware platform security. One of the inputs that the specification > takes into consideration is whether MKTME is enabled or disabled. > Exposing this value is necessary for tools

Re: [PATCH 3/7] rcu/trace: Add name of the source for gp_seq

2020-06-18 Thread Joel Fernandes
On Thu, Jun 18, 2020 at 03:19:01PM -0700, Paul E. McKenney wrote: > On Thu, Jun 18, 2020 at 04:29:51PM -0400, Joel Fernandes (Google) wrote: > > The gp_seq value can come from either of rdp, rsp or rnp. > > > > Only the rsp is the global source of truth (most accurate GP info). The > > rnp can be

Re: [PATCH 18/25] mm/riscv: Use mm_fault_accounting()

2020-06-18 Thread Palmer Dabbelt
On Mon, 15 Jun 2020 15:16:00 PDT (-0700), pet...@redhat.com wrote: Use the new mm_fault_accounting() helper for page fault accounting. Avoid doing page fault accounting multiple times if the page fault is retried. CC: Paul Walmsley CC: Palmer Dabbelt CC: Albert Ou CC:

Re: [PATCH v4 1/5] regulator: Allow regulators to verify enabled during enable()

2020-06-18 Thread Bjorn Andersson
On Tue 02 Jun 03:09 PDT 2020, Sumit Semwal wrote: > Some regulators might need to verify that they have indeed been enabled > after the enable() call is made and enable_time delay has passed. > > This is implemented by repeatedly checking is_enabled() upto > poll_enabled_time, waiting for the

[PATCH v2] erofs: fix partially uninitialized misuse in z_erofs_onlinepage_fixup

2020-06-18 Thread Gao Xiang
From: Gao Xiang Hongyu reported "id != index" in z_erofs_onlinepage_fixup() with specific aarch64 environment easily, which wasn't shown before. After digging into that, I found that high 32 bits of page->private was set to 0x rather than 0 (due to z_erofs_onlinepage_init behavior with

Re: [PATCH net-next v8 2/5] net: phy: Add a helper to return the index for of the internal delay

2020-06-18 Thread Dan Murphy
Hello On 6/18/20 6:29 PM, kernel test robot wrote: Hi Dan, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Dan-Murphy/RGMII-Internal-delay-common-property/20200619-051238 base:

Re: [PATCH v6 32/36] rapidio: fix common struct sg_table related issues

2020-06-18 Thread kernel test robot
Hi Marek, I love your patch! Yet something to improve: [auto build test ERROR on next-20200618] [also build test ERROR on v5.8-rc1] [cannot apply to linuxtv-media/master staging/staging-testing drm-exynos/exynos-drm-next drm-intel/for-linux-next linus/master v5.8-rc1 v5.7 v5.7-rc7] [If your

[PATCH 1/1] iommu/vt-d: Fix misuse of iommu_domain_identity_map()

2020-06-18 Thread Lu Baolu
The iommu_domain_identity_map() helper takes start/end PFN as arguments. Fix a misuse case where the start and end addresses are passed. Fixes: e70b081c6f376 ("iommu/vt-d: Remove IOVA handling code from the non-dma_ops path") Cc: Tom Murphy Reported-by: Alex Williamson Signed-off-by: Lu Baolu

[PATCH 7/5] spi: spi-geni-qcom: Don't set {tx,rx}_rem_bytes unnecessarily

2020-06-18 Thread Stephen Boyd
We only need to test for these counters being non-zero when we see the end of a transfer. If we're doing a CS change then they will already be zero. This implies that we don't need to set these to 0 if we're cancelling an in flight transfer too, because we only care to test these counters when

[PATCH 6/5] spi: spi-geni-qcom: Simplify setup_fifo_xfer()

2020-06-18 Thread Stephen Boyd
The definition of SPI_FULL_DUPLEX (3) is really SPI_TX_ONLY (1) ORed with SPI_RX_ONLY (2). Let's drop the define and simplify the code here a bit by collapsing the setting of 'm_cmd' into conditions that are the same. This is a non-functional change, just cleanup to consolidate code. Cc: Douglas

Re: severe proc dentry lock contention

2020-06-18 Thread Matthew Wilcox
On Thu, Jun 18, 2020 at 03:17:33PM -0700, Junxiao Bi wrote: > When debugging some performance issue, i found that thousands of threads > exit around same time could cause a severe spin lock contention on proc > dentry "/proc/$parent_process_pid/task/", that's because threads needs to > clean up

[tip:ras/core] BUILD SUCCESS 5ba7821bcf7d82e35582fce8fe65cd160a6954b4

2020-06-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras/core branch HEAD: 5ba7821bcf7d82e35582fce8fe65cd160a6954b4 x86/mce/dev-mcelog: Use struct_size() helper in kzalloc() elapsed time: 723m configs tested: 80 configs skipped: 69 The following configs have been built

Re: [RESEND PATCH v27 11/15] leds: lp55xx: Add multicolor framework support to lp55xx

2020-06-18 Thread Dan Murphy
Jacek On 6/18/20 6:26 PM, Jacek Anaszewski wrote: On 6/19/20 12:09 AM, Jacek Anaszewski wrote: Dan, On 6/18/20 11:44 PM, Dan Murphy wrote: Jacek On 6/18/20 4:21 PM, Jacek Anaszewski wrote: Dan, On 6/18/20 12:33 AM, Dan Murphy wrote: Jacek On 6/17/20 4:41 PM, Jacek Anaszewski wrote:

Re: [PATCH v4 5/5] spi: spi-geni-qcom: Don't keep a local state variable

2020-06-18 Thread Stephen Boyd
Quoting Doug Anderson (2020-06-18 15:00:10) > On Thu, Jun 18, 2020 at 2:52 PM Stephen Boyd wrote: > > > > -8< > > diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c > > index d8f03ffb8594..670f83793aa4 100644 > > --- a/drivers/spi/spi-geni-qcom.c > > +++

Re: [PATCH 2/5] net: hns3: pointer type of buffer should be void

2020-06-18 Thread Jakub Kicinski
On Thu, 18 Jun 2020 13:02:08 +1200 Barry Song wrote: > Move the type of buffer address from unsigned char to void > > Signed-off-by: Barry Song > --- > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +- > drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 2 +- > 2 files changed, 2

Re: [PATCH v4 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-06-18 Thread Bjorn Andersson
On Thu 18 Jun 16:00 PDT 2020, Alex Elder wrote: > On 5/27/20 10:34 PM, Rishabh Bhatnagar wrote: > > Currently there is a single notification chain which is called whenever any > > remoteproc shuts down. This leads to all the listeners being notified, and > > is not an optimal design as kernel

Re: [PATCH v5 01/13] powerpc: Remove Xilinx PPC405/PPC440 support

2020-06-18 Thread Nick Desaulniers
On Wed, Jun 17, 2020 at 8:16 PM Nathan Chancellor wrote: > > Admittedly, we really do not have many PowerPC experts in our > organization Not with that attitude. :P /s https://www.youtube.com/watch?v=Kck_upSlx60 > so we are supporting it on a "best effort" basis, which > often involves using

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-18 Thread Damien Le Moal
On 2020/06/18 21:26, Simon Arlott wrote: > On 18/06/2020 09:36, Damien Le Moal wrote: >> On 2020/06/18 3:50, Simon Arlott wrote: >>> I need to use "reboot=p" on my desktop because one of the PCIe devices >>> does not appear after a warm boot. This results in a very cold boot >>> because the BIOS

Re: [PATCH net-next v8 2/5] net: phy: Add a helper to return the index for of the internal delay

2020-06-18 Thread kernel test robot
Hi Dan, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Dan-Murphy/RGMII-Internal-delay-common-property/20200619-051238 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git

Re: [PATCH 7/7] rcutorture: Add number of GP information to reports

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 04:29:55PM -0400, Joel Fernandes (Google) wrote: > Add 2 things to get visiblity around number of grace periods. > 1. Add number of GPs to End-state print. > 2. Just like End-state, add GP state to Start-state. > > This helps determine how many GPs elapsed during a run of

Re: [RESEND PATCH v27 11/15] leds: lp55xx: Add multicolor framework support to lp55xx

2020-06-18 Thread Jacek Anaszewski
On 6/19/20 12:09 AM, Jacek Anaszewski wrote: Dan, On 6/18/20 11:44 PM, Dan Murphy wrote: Jacek On 6/18/20 4:21 PM, Jacek Anaszewski wrote: Dan, On 6/18/20 12:33 AM, Dan Murphy wrote: Jacek On 6/17/20 4:41 PM, Jacek Anaszewski wrote: Dan, On 6/17/20 9:22 PM, Dan Murphy wrote:

[PATCH v2] arm64: dts: qcom: sc7180: Add Display Port dt node

2020-06-18 Thread Tanmay Shah
Enable DP driver for sc7180. This change depends-on following series: https://patchwork.freedesktop.org/series/78583/ and https://patchwork.freedesktop.org/patch/351990/ Changes in v2: - Add assigned-clocks and assigned-clock-parents - Remove cell-index and pixel_rcg - Change compatible to

Re: WARNING with LBR + precise_ip=2 + bpf_get_stackid()

2020-06-18 Thread Song Liu
> On Jun 18, 2020, at 3:35 PM, Andi Kleen wrote: > >> We noticed that this only happens with precise_ip >= 2. This is caused by >> setup_pebs_fixed_sample_data() using pens->real_ip: >> >> set_linear_ip(regs, pebs->real_ip); > > With precise_ip == 1 the IP will be one instruction

Re: [PATCH] PCI: qcom: Disable power management for uPD720201 USB3 controller

2020-06-18 Thread Bjorn Helgaas
On Tue, Jun 16, 2020 at 04:17:11PM -0500, Bjorn Helgaas wrote: > On Mon, Jun 15, 2020 at 09:24:13PM +0300, Georgi Djakov wrote: > > The uPD720201 USB3 host controller (connected to PCIe) on the Dragonboard > > 845c is often failing during suspend and resume. The following messages > > are seen

Re: kprobe: __blkdev_put probe is missed

2020-06-18 Thread Ming Lei
On Thu, Jun 18, 2020 at 10:56:02PM +0900, Masami Hiramatsu wrote: > Hi Ming, > > On Thu, 18 Jun 2020 20:54:38 +0800 > Ming Lei wrote: > > > On Wed, Jun 17, 2020 at 06:30:39PM +0800, Ming Lei wrote: > > > Hello Guys, > > > > > > I found probe on __blkdev_put is missed, which can be observed > >

Re: [PATCH 1/7] rcu/segcblist: Prevent useless GP start if no CBs to accelerate

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 03:11:19PM -0700, Paul E. McKenney wrote: > On Thu, Jun 18, 2020 at 04:29:49PM -0400, Joel Fernandes (Google) wrote: > > First, this looks like a very nice optimization, thank you! > > > rcu_segcblist_accelerate() returns true if a GP is to be > > started/requested and

Re: [PATCH v4] xfs: Fix false positive lockdep warning with sb_internal & fs_reclaim

2020-06-18 Thread Dave Chinner
On Fri, Jun 19, 2020 at 08:58:10AM +1000, Dave Chinner wrote: > On Thu, Jun 18, 2020 at 01:19:41PM -0400, Waiman Long wrote: > > diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c > > index 379cbff438bc..1b94b9bfa4d7 100644 > > --- a/fs/xfs/xfs_super.c > > +++ b/fs/xfs/xfs_super.c > > @@ -913,11

[PATCH] afs: Fix afs_do_lookup() to call correct fetch-status op variant

2020-06-18 Thread David Howells
Fix afs_do_lookup()'s fallback case for when FS.InlineBulkStatus isn't supported by the server. In the fallback, it calls FS.FetchStatus for the specific vnode it's meant to be looking up. Commit b6489a49f7b7 broke this by renaming one of the two identically-named afs_fetch_status_operation

Re: [PATCH v1 4/4] of: platform: Batch fwnode parsing when adding all top level devices

2020-06-18 Thread Saravana Kannan
On Thu, Jun 18, 2020 at 12:32 AM Geert Uytterhoeven wrote: > > Hi Saravana, > > On Wed, Jun 17, 2020 at 8:36 PM Saravana Kannan wrote: > > On Wed, Jun 17, 2020 at 5:20 AM Geert Uytterhoeven > > wrote: > > > On Fri, May 15, 2020 at 7:38 AM Saravana Kannan > > > wrote: > > > > The

Re: [PATCH v4 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-06-18 Thread Alex Elder
On 5/27/20 10:34 PM, Rishabh Bhatnagar wrote: Currently there is a single notification chain which is called whenever any remoteproc shuts down. This leads to all the listeners being notified, and is not an optimal design as kernel drivers might only be interested in listening to notifications

Re: [PATCH v4 2/2] remoteproc: qcom: Add notification types to SSR

2020-06-18 Thread Alex Elder
On 5/27/20 10:34 PM, Rishabh Bhatnagar wrote: From: Siddharth Gupta The SSR subdevice only adds callback for the unprepare event. Add callbacks for unprepare, start and prepare events. The client driver for a particular for prepare, start, and stop events remoteproc might be interested

Re: [PATCH 07/25] mm/csky: Use mm_fault_accounting()

2020-06-18 Thread Linus Torvalds
On Thu, Jun 18, 2020 at 3:28 PM Peter Xu wrote: > > > > if (regs) > > > perf_sw_event(event_type, 1, regs, address); > > Sadly, this line seems to fail the compilation: Yeah, I should have known that. We require a constant event ID, because it uses the magical static

Re: [PATCH v4] xfs: Fix false positive lockdep warning with sb_internal & fs_reclaim

2020-06-18 Thread Dave Chinner
On Thu, Jun 18, 2020 at 01:19:41PM -0400, Waiman Long wrote: > diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c > index 379cbff438bc..1b94b9bfa4d7 100644 > --- a/fs/xfs/xfs_super.c > +++ b/fs/xfs/xfs_super.c > @@ -913,11 +913,33 @@ xfs_fs_freeze( > struct super_block *sb) > { >

Re: general protection fault in __bfs (2)

2020-06-18 Thread syzbot
syzbot suspects this bug was fixed by commit: commit 46ca11177ed593f39d534f8d2c74ec5344e90c11 Author: Amit Cohen Date: Thu May 21 12:11:45 2020 + selftests: mlxsw: qos_mc_aware: Specify arping timeout as an integer bisection log:

Re: [PATCH net-next] of: mdio: preserve phy dev_flags in of_phy_connect()

2020-06-18 Thread Andrew Lunn
On Thu, Jun 18, 2020 at 03:04:44PM -0700, rentao.b...@gmail.com wrote: > From: Tao Ren > > Replace assignment "=" with OR "|=" for "phy->dev_flags" so "dev_flags" > configured in phy probe() function can be preserved. > > The idea is similar to commit e7312efbd5de ("net: phy: modify assignment

Re: [PATCH v3 20/21] dyndbg: add user-flag, negating-flags, and filtering on flags

2020-06-18 Thread jim . cromie
On Thu, Jun 18, 2020 at 4:34 PM Stanimir Varbanov wrote: > > Hi Jason, Jim, > > > I would be curious to see what Stanimir thinks of this proposal > > and whether it would work for his venus driver, which is what > > prompted this module group discussion. > > Hmm, we spin in a circle :) > >

[PATCH] dt-bindings: backlight: Convert common backlight bindings to DT schema

2020-06-18 Thread Rob Herring
Convert the common GPIO, LED, and PWM backlight bindings to DT schema format. Given there's only 2 common properties and the descriptions are slightly different, I opted to not create a common backlight schema. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Signed-off-by: Rob Herring ---

Re: [PATCH 6/7] rcutorture: Add support to get the number of wakeups of main GP kthread

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 04:29:54PM -0400, Joel Fernandes (Google) wrote: > This is useful to check for any improvements or degradation related to > number of GP kthread wakeups during testing. > > Signed-off-by: Joel Fernandes (Google) This was a good way to collect the data for your testing,

Re: WARNING with LBR + precise_ip=2 + bpf_get_stackid()

2020-06-18 Thread Andi Kleen
> We noticed that this only happens with precise_ip >= 2. This is caused by > setup_pebs_fixed_sample_data() using pens->real_ip: > > set_linear_ip(regs, pebs->real_ip); With precise_ip == 1 the IP will be one instruction behind. That's the only difference to 2 or 3. So something about

Re: [PATCH v3 20/21] dyndbg: add user-flag, negating-flags, and filtering on flags

2020-06-18 Thread Stanimir Varbanov
Hi Jason, Jim, On 6/18/20 10:40 PM, Jason Baron wrote: > > > On 6/18/20 3:11 PM, jim.cro...@gmail.com wrote: >> On Thu, Jun 18, 2020 at 12:17 PM Jason Baron wrote: >>> >>> >>> >>> On 6/18/20 1:40 PM, Petr Mladek wrote: On Thu 2020-06-18 18:19:12, Petr Mladek wrote: > On Wed 2020-06-17

Re: [PATCH 4/7] rcu/trace: Print negative GP numbers correctly

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 04:29:52PM -0400, Joel Fernandes (Google) wrote: > GP numbers start from -300 and gp_seq numbers start of -1200 (for a > shift of 2). These negative numbers are printed as unsigned long which > not only takes up more text space, but is rather confusing to the reader > as

Re: [PATCH v6 04/36] drm: amdgpu: fix common struct sg_table related issues

2020-06-18 Thread kernel test robot
Hi Marek, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20200618] [also build test WARNING on v5.8-rc1] [cannot apply to linuxtv-media/master staging/staging-testing drm-exynos/exynos-drm-next drm-intel/for-linux-next linus/master v5.8-rc1 v5.7 v5.7-rc7

Re: [PATCH 07/25] mm/csky: Use mm_fault_accounting()

2020-06-18 Thread Peter Xu
On Thu, Jun 18, 2020 at 05:24:30PM -0400, Peter Xu wrote: > > /* Major fault */ > > if ((ret & VM_FAULT_MAJOR) || (flags & FAULT_FLAG_TRIED)) { > > flt = >maj_flt; > > event_type = PERF_COUNT_SW_PAGE_FAULTS_MAJ; > > } else { > >

Re: [PATCH v6 21/36] drm: v3d: fix common struct sg_table related issues

2020-06-18 Thread kernel test robot
Hi Marek, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20200618] [also build test WARNING on v5.8-rc1] [cannot apply to linuxtv-media/master staging/staging-testing drm-exynos/exynos-drm-next drm-intel/for-linux-next linus/master v5.8-rc1 v5.7 v5.7-rc7

[PATCH v7 4/6] drm/msm/dp: add support for DP PLL driver

2020-06-18 Thread Tanmay Shah
From: Chandan Uddaraju Add the needed DP PLL specific files to support display port interface on msm targets. The DP driver calls the DP PLL driver registration. The DP driver sets the link and pixel clock sources. Changes in v2: -- Update copyright markings on all relevant files. -- Use

[PATCH v7 5/6] drm/msm/dpu: add display port support in DPU

2020-06-18 Thread Tanmay Shah
From: Jeykumar Sankaran Add display port support in DPU by creating hooks for DP encoder enumeration and encoder mode initialization. changes in v2: - rebase on [2] (Sean Paul) - remove unwanted error checks and switch cases (Jordan Crouse) [1]

[PATCH v7 6/6] drm/msm/dp: Add Display Port HPD feature

2020-06-18 Thread Tanmay Shah
Configure HPD registers in DP controller and enable HPD interrupt. Add interrupt to handle HPD connect and disconnect events. Signed-off-by: Tanmay Shah --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 18 drivers/gpu/drm/msm/dp/dp_catalog.c | 67 +--

[PATCH v7 1/6] dt-bindings: msm/dp: add bindings of DP/DP-PLL driver for Snapdragon

2020-06-18 Thread Tanmay Shah
From: Chandan Uddaraju Add bindings for Snapdragon DisplayPort controller driver. Changes in V2: Provide details about sel-gpio Changes in V4: Provide details about max dp lanes Change the commit text Changes in V5: moved dp.txt to yaml file Changes in v6: - Squash all AUX LUT properties

[PATCH v7 2/6] drm: add constant N value in helper file

2020-06-18 Thread Tanmay Shah
From: Chandan Uddaraju The constant N value (0x8000) is used by i915 DP driver. Define this value in dp helper header file to use in multiple Display Port drivers. Change i915 driver accordingly. Change in v6: Change commit message Signed-off-by: Chandan Uddaraju Signed-off-by: Vara Reddy

Re: [PATCH 5/7] rcu/trace: Use rsp's gp_seq in acceleration's rcu_grace_period tracepoint

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 04:29:53PM -0400, Joel Fernandes (Google) wrote: > During acceleration of CB, the rsp's gp_seq is rcu_seq_snap'd. This is > the value used for acceleration - it is the value of gp_seq at which it > is safe the execute all callbacks in the callback list. > > The rdp's

[PATCH v7 0/6] Add support for DisplayPort driver on SnapDragon

2020-06-18 Thread Tanmay Shah
These patches add Display-Port driver on SnapDragon/msm hardware. This series also contains device-tree bindings for msm DP driver. It also contains Makefile and Kconfig changes to compile msm DP driver. The block diagram of DP driver is shown below: +-+

[PATCH] sparse: use the _Generic() version of __unqual_scalar_typeof()

2020-06-18 Thread Luc Van Oostenryck
If the file is being checked with sparse, use the version of __unqual_scalar_typeof() using _Generic(), leaving the unoptimized version only for the oldest versions of GCC. This reverts commit b398ace5d2ea ("compiler_types.h: Use unoptimized __unqual_scalar_typeof for sparse") Note: a recent

Re: [PATCH v3 14/21] dyndbg: accept query terms like file=bar and module=foo

2020-06-18 Thread jim . cromie
oops. got 3 copies of 14/21, this is the good one. with module=foo AND file=bar On Wed, Jun 17, 2020 at 10:26 AM Jim Cromie wrote: > > Current code expects "keyword" "arg" as 2 space separated words. > Change to also accept "keyword=arg" form as well, and drop !(nwords%2) > requirement. > >

Re: [PATCH v3 2/6] dt-bindings: usb: Add Qualcomm PMIC type C controller dt-binding

2020-06-18 Thread Rob Herring
On Thu, Jun 18, 2020 at 2:09 PM Wesley Cheng wrote: > > > On 6/18/2020 11:33 AM, Rob Herring wrote: > > On Wed, Jun 17, 2020 at 12:02 PM Wesley Cheng wrote: > > > > You are duplicating everything in usb-connector.yaml. You should have > > a $ref to it. > > > > Hi Rob, > > Sure, I will add a

[RFC PATCH v3 0/1] Add rwsem "contended hook" API and mmap_lock histograms

2020-06-18 Thread Axel Rasmussen
The overall goal of this patch is to add tracepoints around mmap_lock acquisition. This will let us collect latency histograms, so we can see how long we block for in the contended case. Our goal is to collect this data across all of production at Google, so low overhead is critical. I'm sending

[RFC PATCH v3 1/1] mmap_lock: add tracepoints around mmap_lock acquisition

2020-06-18 Thread Axel Rasmussen
The goal is to be able to collect a latency histogram for contended mmap_lock acquisitions. This will be used to diagnose slowness observed in production workloads, as well as to measure the effect of upcoming mmap_lock optimizations like maple trees and range-based locks. The "start_locking" and

Re: [PATCH 3/7] rcu/trace: Add name of the source for gp_seq

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 04:29:51PM -0400, Joel Fernandes (Google) wrote: > The gp_seq value can come from either of rdp, rsp or rnp. > > Only the rsp is the global source of truth (most accurate GP info). The > rnp can be off by ~1 and the rdp can be off by way more. Add some more > context to

severe proc dentry lock contention

2020-06-18 Thread Junxiao Bi
Hi, When debugging some performance issue, i found that thousands of threads exit around same time could cause a severe spin lock contention on proc dentry "/proc/$parent_process_pid/task/", that's because threads needs to clean up their pid file from that dir when exit. Check the following

Re: [PATCH 2/7] rcu/trace: Add tracing for how segcb list changes

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 04:29:50PM -0400, Joel Fernandes (Google) wrote: > Track how the segcb list changes before/after acceleration, during > queuing and during dequeuing. > > This has proved useful to discover an optimization to avoid unwanted GP > requests when there are no callbacks

Re: [PATCH v4 00/11] Add seccomp notifier ioctl that enables adding fds

2020-06-18 Thread Sargun Dhillon
On Mon, Jun 15, 2020 at 08:25:13PM -0700, Kees Cook wrote: > Hello! > > This is a bit of thread-merge between [1] and [2]. tl;dr: add a way for > a seccomp user_notif process manager to inject files into the managed > process in order to handle emulation of various fd-returning syscalls > across

[PATCH 1/2] Add force-abs-timestamp trace option.

2020-06-18 Thread Korben Rusek
Normally a data event includes the delta time between itself and the previous data event. But if a write interrupts another write then the event cannot check the timestamp of the previous event and so it uses a delta of 0. Adds a new trace option: force-abs-timestamp. When this is on each event

[PATCH 0/2] force absolute timestamp trace option

2020-06-18 Thread Korben Rusek
Normally a data event includes the delta time between itself and the previous data event. But if a write interrupts another write then the event cannot check the timestamp of the previous event and so it uses a delta of 0. Adds a new trace option: force-abs-timestamp. When this is on each event

[PATCH 2/2] tests for absolute timestamp

2020-06-18 Thread Korben Rusek
Tested: kselftest output: Found regular timestamps when force-abs-timestamp flag is off - [PASS] Found absolute timestamps when force-abs-timestamp flag is on - [PASS] Reviewed-by: Peter Shier Signed-off-by: Korben Rusek --- tools/testing/selftests/Makefile | 1 +

Re: [PATCH net-next] of: mdio: preserve phy dev_flags in of_phy_connect()

2020-06-18 Thread Florian Fainelli
On 6/18/2020 3:04 PM, rentao.b...@gmail.com wrote: > From: Tao Ren > > Replace assignment "=" with OR "|=" for "phy->dev_flags" so "dev_flags" > configured in phy probe() function can be preserved. > > The idea is similar to commit e7312efbd5de ("net: phy: modify assignment > to OR for

Re: [PATCH 1/7] rcu/segcblist: Prevent useless GP start if no CBs to accelerate

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 04:29:49PM -0400, Joel Fernandes (Google) wrote: First, this looks like a very nice optimization, thank you! > rcu_segcblist_accelerate() returns true if a GP is to be > started/requested and false if not. During tracing, I found that it is > asking that GPs be requested

Re: [RESEND PATCH v27 11/15] leds: lp55xx: Add multicolor framework support to lp55xx

2020-06-18 Thread Jacek Anaszewski
Dan, On 6/18/20 11:44 PM, Dan Murphy wrote: Jacek On 6/18/20 4:21 PM, Jacek Anaszewski wrote: Dan, On 6/18/20 12:33 AM, Dan Murphy wrote: Jacek On 6/17/20 4:41 PM, Jacek Anaszewski wrote: Dan, On 6/17/20 9:22 PM, Dan Murphy wrote: Pavel/Jacek On 6/17/20 11:28 AM, kernel test robot

Re: [v3] drm/bridge: ti-sn65dsi86: ensure bridge suspend happens during PM sleep

2020-06-18 Thread Doug Anderson
Hi, On Tue, Jun 9, 2020 at 5:05 AM Harigovindan P wrote: > > ti-sn65dsi86 bridge is enumerated as a runtime device. When > suspend is triggered, PM core adds a refcount on all the > devices and calls device suspend, since usage count is > already incremented, runtime suspend will not be called >

[PATCH net-next] of: mdio: preserve phy dev_flags in of_phy_connect()

2020-06-18 Thread rentao . bupt
From: Tao Ren Replace assignment "=" with OR "|=" for "phy->dev_flags" so "dev_flags" configured in phy probe() function can be preserved. The idea is similar to commit e7312efbd5de ("net: phy: modify assignment to OR for dev_flags in phy_attach_direct"). Signed-off-by: Tao Ren ---

Re: [PATCH] Fix unwind_frame for clang-built kernels

2020-06-18 Thread Russell King - ARM Linux admin
On Wed, Jun 17, 2020 at 06:23:48AM +0200, Sedat Dilek wrote: > On Wed, Jun 17, 2020 at 12:36 AM 'Nathan Huckleberry' via Clang Built > Linux wrote: > > > > Since clang does not push pc and sp in function prologues, the current > > implementation of unwind_frame does not work. By using the

Re: [PATCH] Ability to read the MKTME status from userspace

2020-06-18 Thread Borislav Petkov
On Thu, Jun 18, 2020 at 06:26:25PM -0300, Daniel Gutson wrote: > Red Hat and Eclypsium are working on a specification to assess > firmware platform security. One of the inputs that the specification > takes into consideration is whether MKTME is enabled or disabled. > Exposing this value is

Re: [PATCH v4 5/5] spi: spi-geni-qcom: Don't keep a local state variable

2020-06-18 Thread Doug Anderson
Hi, On Thu, Jun 18, 2020 at 2:52 PM Stephen Boyd wrote: > > Quoting Doug Anderson (2020-06-18 13:09:47) > > On Thu, Jun 18, 2020 at 11:05 AM Stephen Boyd wrote: > > > > > > Quoting Douglas Anderson (2020-06-18 08:06:26) > > > > @@ -126,20 +120,23 @@ static void handle_fifo_timeout(struct

Re: [PATCH v2 0/8] Introduce sv48 support

2020-06-18 Thread Palmer Dabbelt
On Wed, 03 Jun 2020 01:10:56 PDT (-0700), a...@ghiti.fr wrote: This patchset implements sv48 support at runtime. The kernel will try to boot with 4-level page table and will fallback to 3-level if the HW does not support it. The biggest advantage is that we only have one kernel for 64bit, which

Re: [PATCH v2 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default

2020-06-18 Thread Palmer Dabbelt
On Thu, 04 Jun 2020 22:15:10 PDT (-0700), maoche...@eswin.com wrote: Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks. PS2: Add signed off info. Signed-off-by: Chenxi Mao --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig

Re: [PATCH] soc: qcom: rpmh-rsc: Don't use ktime for timeout in write_tcs_reg_sync()

2020-06-18 Thread Doug Anderson
Bjorn and Andy, On Thu, May 28, 2020 at 7:48 AM Douglas Anderson wrote: > > The write_tcs_reg_sync() may be called after timekeeping is suspended > so it's not OK to use ktime. The readl_poll_timeout_atomic() macro > implicitly uses ktime. This was causing a warning at suspend time. > > Change

Re: [PATCH v4 5/5] spi: spi-geni-qcom: Don't keep a local state variable

2020-06-18 Thread Stephen Boyd
Quoting Doug Anderson (2020-06-18 13:09:47) > On Thu, Jun 18, 2020 at 11:05 AM Stephen Boyd wrote: > > > > Quoting Douglas Anderson (2020-06-18 08:06:26) > > > @@ -126,20 +120,23 @@ static void handle_fifo_timeout(struct spi_master > > > *spi, > > > struct geni_se *se = >se; > > > > > >

[tip:x86/urgent] BUILD SUCCESS a13b9d0b97211579ea63b96c606de79b963c0f47

2020-06-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent branch HEAD: a13b9d0b97211579ea63b96c606de79b963c0f47 x86/cpu: Use pinning mask for CR4 bits needing to be 0 elapsed time: 726m configs tested: 77 configs skipped: 74 The following configs have been built

Re: [PATCH v2 1/3] docs: IOMMU user API

2020-06-18 Thread Alex Williamson
On Wed, 17 Jun 2020 08:28:24 + "Tian, Kevin" wrote: > > From: Liu, Yi L > > Sent: Wednesday, June 17, 2020 2:20 PM > > > > > From: Jacob Pan > > > Sent: Tuesday, June 16, 2020 11:22 PM > > > > > > On Thu, 11 Jun 2020 17:27:27 -0700 > > > Jacob Pan wrote: > > > > > > > > > > > > > But

Re: [PATCH] driver core:Export the symbol device_is_bound

2020-06-18 Thread Matthias Kaehlcke
On Thu, Jun 18, 2020 at 11:33:49AM -0600, Rob Herring wrote: > On Thu, Jun 18, 2020 at 10:51 AM Matthias Kaehlcke wrote: > > > > On Thu, Jun 18, 2020 at 05:58:20PM +0200, Greg Kroah-Hartman wrote: > > > On Thu, Jun 18, 2020 at 08:45:55AM -0700, Matthias Kaehlcke wrote: > > > > Hi Greg, > > > > >

Re: [RESEND PATCH v27 11/15] leds: lp55xx: Add multicolor framework support to lp55xx

2020-06-18 Thread Dan Murphy
Jacek On 6/18/20 4:21 PM, Jacek Anaszewski wrote: Dan, On 6/18/20 12:33 AM, Dan Murphy wrote: Jacek On 6/17/20 4:41 PM, Jacek Anaszewski wrote: Dan, On 6/17/20 9:22 PM, Dan Murphy wrote: Pavel/Jacek On 6/17/20 11:28 AM, kernel test robot wrote: Hi Dan, I love your patch! Yet something

Re: [PATCH] riscv/atomic: Fix sign extension for RV64I

2020-06-18 Thread Palmer Dabbelt
On Thu, 11 Jun 2020 11:32:35 PDT (-0700), nh...@google.com wrote: The argument passed to cmpxchg is not guaranteed to be sign extended, but lr.w sign extends on RV64I. This makes cmpxchg fail on clang built kernels when __old is negative. To fix this, we just cast __old to long which sign

[tip:timers/urgent] BUILD SUCCESS f097eb38f71391ff2cf078788bad5a00eb3bd96a

2020-06-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/urgent branch HEAD: f097eb38f71391ff2cf078788bad5a00eb3bd96a timekeeping: Fix kerneldoc system_device_crosststamp & al elapsed time: 723m configs tested: 80 configs skipped: 1 The following configs have been

Re: [PATCH] dt-bindings: display: Convert connectors to DT schema

2020-06-18 Thread Rob Herring
On Thu, Jun 18, 2020 at 2:59 PM Sam Ravnborg wrote: > > Hi Rob. > > On Thu, Jun 18, 2020 at 02:24:47PM -0600, Rob Herring wrote: > > Convert the analog TV, DVI, HDMI, and VGA connector bindings to DT schema > > format. > > > > Cc: Sam Ravnborg > > Cc: Laurent Pinchart > > Cc: Maxime Ripard > >

Re: [PATCH v2 09/16] rcu/tree: Maintain separate array for vmalloc ptrs

2020-06-18 Thread Paul E. McKenney
On Thu, Jun 18, 2020 at 11:17:09PM +0200, Uladzislau Rezki wrote: > > > > > > trace_rcu_invoke_kfree_bulk_callback( > > > rcu_state.name, bkvhead[i]->nr_records, > > > bkvhead[i]->records); > > > if (i == 0) > > > kfree_bulk(bkvhead[i]->nr_records, > > >

Re: [PATCH v3 20/21] dyndbg: add user-flag, negating-flags, and filtering on flags

2020-06-18 Thread jim . cromie
On Thu, Jun 18, 2020 at 1:40 PM Jason Baron wrote: > > > > On 6/18/20 3:11 PM, jim.cro...@gmail.com wrote: > > On Thu, Jun 18, 2020 at 12:17 PM Jason Baron wrote: > >> > > > >> The grouping stuff is already being used by lots of modules so > >> that seems useful. > > > > I now dont see the

Re: [PATCH] cros_ec_spi: Even though we're RT priority, don't bump cpu freq

2020-06-18 Thread Doug Anderson
Hi, On Fri, Jun 12, 2020 at 5:34 AM Qais Yousef wrote: > > On 06/12/20 10:24, Quentin Perret wrote: > > +CC Qais [FYI] > > Thanks for the CC. > > > > > On Thursday 11 Jun 2020 at 10:48:40 (-0700), Doug Anderson wrote: > > > Hrm. I guess my first instinct is to say that we still want this > > >

[PATCH v2] sched, mm: Optimize current_gfp_context()

2020-06-18 Thread Waiman Long
The current_gfp_context() converts a number of PF_MEMALLOC_* per-process flags into the corresponding GFP_* flags for memory allocation. In that function, current->flags is accessed 3 times. That may lead to duplicated access of the same memory location. This is not usually a problem with minimal

next-20200618: oops in eb_relocate_vma in Xorg process, making machine unusable

2020-06-18 Thread Pavel Machek
18 23:16:28 amd kernel: #PF: error_code(0x0002) - not-present page Jun 18 23:16:28 amd kernel: *pdpt = 319d7001 *pde = Jun 18 23:16:28 amd kernel: Oops: 0002 [#1] PREEMPT SMP PTI Jun 18 23:16:28 amd kernel: CPU: 0 PID: 2951 Comm: Xorg Not tainted 5.8.0-rc1-next-20200618

Re: [PATCH v3 2/2] spi: spi-fsl-dspi: Initialize completion before possible interrupt

2020-06-18 Thread Vladimir Oltean
Hi Krzysztof, On Tue, 16 Jun 2020 at 12:42, Krzysztof Kozlowski wrote: > > The interrupt handler calls completion and is IRQ requested before the > completion is initialized. Logically it should be the other way. > > Fixes: 4f5ee75ea171 ("spi: spi-fsl-dspi: Replace interruptible wait queue >

Re: [PATCH v3 1/2] spi: spi-fsl-dspi: Fix external abort on interrupt in resume or exit paths

2020-06-18 Thread Vladimir Oltean
Hi Krzysztof, On Tue, 16 Jun 2020 at 12:42, Krzysztof Kozlowski wrote: > > If shared interrupt comes late, during probe error path or device remove > (could be triggered with CONFIG_DEBUG_SHIRQ), the interrupt handler > dspi_interrupt() will access registers with the clock being disabled. > This

Re: [PATCH 07/25] mm/csky: Use mm_fault_accounting()

2020-06-18 Thread Peter Xu
On Thu, Jun 18, 2020 at 10:15:50AM -0700, Linus Torvalds wrote: > On Thu, Jun 18, 2020 at 7:38 AM Peter Xu wrote: > > > > GUP needs the per-task accounting, but not the perf events. We can do that > > by > > slightly changing the new approach into: > > > > bool major = (ret &

Re: [RESEND PATCH v27 11/15] leds: lp55xx: Add multicolor framework support to lp55xx

2020-06-18 Thread Jacek Anaszewski
Dan, On 6/18/20 12:33 AM, Dan Murphy wrote: Jacek On 6/17/20 4:41 PM, Jacek Anaszewski wrote: Dan, On 6/17/20 9:22 PM, Dan Murphy wrote: Pavel/Jacek On 6/17/20 11:28 AM, kernel test robot wrote: Hi Dan, I love your patch! Yet something to improve: [auto build test ERROR on

Re: [PATCH] cros_ec_spi: Even though we're RT priority, don't bump cpu freq

2020-06-18 Thread Doug Anderson
Hi, On Fri, Jun 12, 2020 at 5:52 AM Qais Yousef wrote: > > On 06/10/20 15:18, Douglas Anderson wrote: > > The cros_ec_spi driver is realtime priority so that it doesn't get > > preempted by other taks while it's talking to the EC but overall it > > really doesn't need lots of compute power.

<    1   2   3   4   5   6   7   8   9   10   >