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

2020-09-01 Thread Paras Sharma
The current implementation reduces the sampling rate by half if qup HW version is greater is than 2.5 by checking if the geni SE major version is greater than 2 and geni SE minor version is greater than 5. This implementation fails when the version is 3 or greater. Hence new implementation

RE: [PATCH] MAINTAINERS: Remove bouncing email of Beniamin Bia

2020-09-01 Thread Ardelean, Alexandru
[yes, I know, bad-email format, but I wanted this to come from my work email] Apologies also for the delay here. Things pile-up on my side and I defer things a bit. Talked to Michael Hennerich about this [since he's the more senior contact at Analog]. We can replace the email from Beniamin Bia

Re: [PATCH v3 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary

2020-09-01 Thread Michal Hocko
On Tue 01-09-20 18:25:58, Suren Baghdasaryan wrote: > Currently __set_oom_adj loops through all processes in the system to > keep oom_score_adj and oom_score_adj_min in sync between processes > sharing their mm. This is done for any task with more that one mm_users, > which includes processes with

Re: [PATCH 5.8 000/255] 5.8.6-rc1 review

2020-09-01 Thread Naresh Kamboju
On Tue, 1 Sep 2020 at 21:06, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.8.6 release. > There are 255 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] arm64: dts: qcom: sc7180: Add 'sustainable_power' for CPU thermal zones

2020-09-01 Thread Rajendra Nayak
I'm not massively familiar with this area of the code, but I guess I shouldn't let that stop me from having an opinion! :-P * I would agree that it seems highly unlikely that someone would put one of these chips in a device that could only dissipate the heat from the lowest OPP, so having

v4.9.234, WARNING: CPU: 1 PID: 166 at kernel/locking/lockdep.c:3326

2020-09-01 Thread Chris Ruehl
Hi, have a reproachable kernel crash oops after update to 4.9.234 IMX6DL boot process. Regards Chris [ OK ] Started Various fixups to make systemd work better on Debian. [3.635568] [ cut here ] [3.640597] WARNING: CPU: 1 PID: 166 at

Re: [PATCH] arm64: dts: qcom: sc7180: Add 'sustainable_power' for CPU thermal zones

2020-09-01 Thread Rajendra Nayak
* In terms of the numbers here, I believe that you're claiming that we can dissipate 768 mW * 6 + 1202 mW * 2 = ~7 Watts of power. My memory of how much power we could dissipate in previous laptops I worked on is a little fuzzy, but that doesn't seem insane for a passively-cooled laptop.

Re: [RFC PATCH] USB: misc: Add usb_hub_pwr driver

2020-09-01 Thread Peter Chen
On 20-09-01 13:21:43, Matthias Kaehlcke wrote: > The driver combo usb_hub_pwr/usb_hub_psupply allows to control > the power supply of an onboard USB hub. > > The drivers address two issues: > - a USB hub needs to be powered before it can be discovered > - battery powered devices may want to

Re: [PATCH v1 08/10] powerpc/pseries/iommu: Add ddw_property_create() and refactor enable_ddw()

2020-09-01 Thread Leonardo Bras
On Mon, 2020-08-31 at 14:34 +1000, Alexey Kardashevskiy wrote: > > On 29/08/2020 01:25, Leonardo Bras wrote: > > On Mon, 2020-08-24 at 15:07 +1000, Alexey Kardashevskiy wrote: > > > On 18/08/2020 09:40, Leonardo Bras wrote: > > > > Code used to create a ddw property that was previously scattered

Re: [PATCH] drm/i915/lspcon: Limits to 8 bpc for RGB/YCbCr444

2020-09-01 Thread Kai-Heng Feng
> On Sep 1, 2020, at 03:48, Ville Syrjälä wrote: > > On Thu, Aug 27, 2020 at 01:04:54PM +0800, Kai Heng Feng wrote: >> Hi Ville, >> >>> On Aug 27, 2020, at 12:24 AM, Ville Syrjälä >>> wrote: >>> >>> On Wed, Aug 26, 2020 at 01:21:15PM +0800, Kai-Heng Feng wrote: LSPCON only supports 8

Re: [PATCH 3/3] ARM: tegra: Pass multiple versions in opp-supported-hw property

2020-09-01 Thread Viresh Kumar
On 01-09-20, 16:21, Dmitry Osipenko wrote: > IIUC, there is no fixed formula for Tegra, at least I don't see it. For > example, if you'll take a look at the 1300MHz OPP of Tegra30, then you > could see that this freq has a lot of voltages each depending on > specific combination of SPEEDO+PROCESS

Re: [PATCH] block: Fix potential NULL pointer dereference in __bio_crypt_clone()

2020-09-01 Thread Eric Biggers
On Wed, Sep 02, 2020 at 01:56:53AM +, linmiaohe wrote: > Eric Biggers wrote: > >On Tue, Sep 01, 2020 at 07:59:21AM -0400, Miaohe Lin wrote: > >> mempool_alloc() may return NULL if __GFP_DIRECT_RECLAIM is not set in > >> gfp_mask under memory pressure. So we should check the return value of >

Re: [PATCH 0/2] link vdso with linker

2020-09-01 Thread Nathan Chancellor
On Tue, Sep 01, 2020 at 03:25:21PM -0700, Nick Desaulniers wrote: > Kees Cook is working on series that adds --orphan-section=warn to arm, > arm64, and x86. I noticed that ppc vdso were still using cc-ldoption > for these which I removed. It seems this results in that flag being > silently

Re: [RFC v2 2/2] KVM: VMX: Enable bus lock VM exit

2020-09-01 Thread Chenyi Qiang
On 9/1/2020 4:43 PM, Vitaly Kuznetsov wrote: Chenyi Qiang writes: Virtual Machine can exploit bus locks to degrade the performance of system. Bus lock can be caused by split locked access to writeback(WB) memory or by using locks on uncacheable(UC) memory. The bus lock is typically >1000

Re: [PATCH 5.4 000/214] 5.4.62-rc1 review

2020-09-01 Thread Naresh Kamboju
On Wed, 2 Sep 2020 at 00:39, Guenter Roeck wrote: > > On 9/1/20 8:08 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.62 release. > > There are 214 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with

Re: checkpatch? (was: Re: [PATCH v3] coccinelle: misc: add uninitialized_var.cocci script)

2020-09-01 Thread Denis Efremov
On 9/1/20 5:37 PM, Joe Perches wrote: > On Tue, 2020-09-01 at 12:48 +0300, Denis Efremov wrote: >> uninitialized_var() macro was removed from the sources [1] and >> other warning-silencing tricks were deprecated [2]. The purpose of this >> cocci script is to prevent new occurrences of

linux-next: manual merge of the scsi-mkp tree with Linus' tree

2020-09-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the scsi-mkp tree got a conflict in: drivers/scsi/aacraid/aachba.c between commit: df561f6688fe ("treewide: Use fallthrough pseudo-keyword") from Linus' tree and commit: cfd3d2225aa5 ("scsi: aacraid: Remove erroneous fallthrough annotation") from

linux-next: manual merge of the scsi-mkp tree with Linus' tree

2020-09-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the scsi-mkp tree got a conflict in: drivers/scsi/ufs/ufshcd.h between commit: 8da76f71fef7 ("scsi: ufs-pci: Add quirk for broken auto-hibernate for Intel EHL") from Linus' tree and commit: 5df6f2def50c ("scsi: ufs: Introduce skipping manual flush

Re: [PATCH 0/7] powerpc/watchpoint: 2nd DAWR kvm enablement + selftests

2020-09-01 Thread Ravi Bangoria
Hi Paul, On 9/2/20 8:02 AM, Paul Mackerras wrote: On Thu, Jul 23, 2020 at 03:50:51PM +0530, Ravi Bangoria wrote: Patch #1, #2 and #3 enables p10 2nd DAWR feature for Book3S kvm guest. DAWR is a hypervisor resource and thus H_SET_MODE hcall is used to set/unset it. A new case

Re: [PATCH 2/7] powerpc/watchpoint/kvm: Add infrastructure to support 2nd DAWR

2020-09-01 Thread Ravi Bangoria
Hi Paul, diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h index 33793444144c..03f401d7be41 100644 --- a/arch/powerpc/include/asm/hvcall.h +++ b/arch/powerpc/include/asm/hvcall.h @@ -538,6 +538,8 @@ struct hv_guest_state { s64 tb_offset; u64

Re: [PATCH 2/7] powerpc/watchpoint/kvm: Add infrastructure to support 2nd DAWR

2020-09-01 Thread Ravi Bangoria
Hi Paul, On 9/2/20 7:31 AM, Paul Mackerras wrote: On Thu, Jul 23, 2020 at 03:50:53PM +0530, Ravi Bangoria wrote: kvm code assumes single DAWR everywhere. Add code to support 2nd DAWR. DAWR is a hypervisor resource and thus H_SET_MODE hcall is used to set/ unset it. Introduce new case

Re: [PATCH 1/7] powerpc/watchpoint/kvm: Rename current DAWR macros and variables

2020-09-01 Thread Ravi Bangoria
Hi Paul, On 9/2/20 7:19 AM, Paul Mackerras wrote: On Thu, Jul 23, 2020 at 03:50:52PM +0530, Ravi Bangoria wrote: Power10 is introducing second DAWR. Use real register names (with suffix 0) from ISA for current macros and variables used by kvm. Most of this looks fine, but I think we should

RE: [PATCH v1 1/1] scsi: ufshcd: Allow zero value setting to Auto-Hibernate Timer

2020-09-01 Thread Avri Altman
> > On 2020-08-29 00:32, Avri Altman wrote: > >> > >> The zero value Auto-Hibernate Timer is a valid setting, and it > >> indicates the Auto-Hibernate feature being disabled. Correctly > > Right. So " ufshcd_auto_hibern8_enable" is no longer an appropriate > > name. > > Maybe

[PATCH v2] i2c: i801: Register lis3lv02d I2C device on Dell Latitude 5480

2020-09-01 Thread Jeffrey Lin
Value of /sys/devices/platform/lis3lv02d/position when Horizontal: (36,-108,-1152) Left elevated: (-432,-126,-1062) Front elevated: (36,594,-936) Upside down:(-126,-252,1098) Signed-off-by: Jeffrey Lin Reviewed-by: Jean Delvare --- Changes in v2: - Added Jean's

Re: [RESEND PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-01 Thread Kishon Vijay Abraham I
Hi Nishanth, On 01/09/20 8:22 pm, Nishanth Menon wrote: On 19:36-20200901, Kishon Vijay Abraham I wrote: Add PCIe device tree node (both RC and EP) for the four PCIe instances here. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 218

Re: [PATCH -next] powerpc: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-01 Thread Paul Mackerras
On Thu, Jul 16, 2020 at 05:07:12PM +0800, Qinglang Miao wrote: > From: Chen Huang > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Chen Huang For the arch/powerpc/kvm part: Acked-by: Paul Mackerras I expect Michael Ellerman will take the patch through his tree.

[PATCH 2/2] iommu: amd: Use cmpxchg_double() when updating 128-bit IRTE

2020-09-01 Thread Suravee Suthikulpanit
When using 128-bit interrupt-remapping table entry (IRTE) (a.k.a GA mode), current driver disables interrupt remapping when it updates the IRTE so that the upper and lower 64-bit values can be updated safely. However, this creates a small window, where the interrupt could arrive and result in

[PATCH 1/2] iommu: amd: Restore IRTE.RemapEn bit after programming IRTE

2020-09-01 Thread Suravee Suthikulpanit
Currently, the RemapEn (valid) bit is accidentally cleared when programming IRTE w/ guestMode=0. It should be restored to the prior state. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd/iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/amd/iommu.c

[PATCH 0/2] iommu: amd: Fix intremap IO_PAGE_FAULT for VMs

2020-09-01 Thread Suravee Suthikulpanit
Interrupt remapping IO_PAGE_FAULT has been observed under system w/ large number of VMs w/ pass-through devices. This can be reproduced with 64 VMs + 64 pass-through VFs of Mellanox MT28800 Family [ConnectX-5 Ex], where each VM runs small-packet netperf test via the pass-through device to the

[PATCH] coccinelle: ifnullfree: add vfree(), kvfree*() functions

2020-09-01 Thread Denis Efremov
Extend the list of free functions with kvfree(), kvfree_sensitive(), vfree(). Signed-off-by: Denis Efremov --- scripts/coccinelle/free/ifnullfree.cocci | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/coccinelle/free/ifnullfree.cocci

Re: [PATCH net-next] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc

2020-09-01 Thread Cong Wang
On Tue, Sep 1, 2020 at 6:42 PM Yunsheng Lin wrote: > > On 2020/9/2 2:24, Cong Wang wrote: > > On Mon, Aug 31, 2020 at 5:59 PM Yunsheng Lin wrote: > >> > >> Currently there is concurrent reset and enqueue operation for the > >> same lockless qdisc when there is no lock to synchronize the > >>

RE: [PATCH 3/3] edac: sifive: Add EDAC support for Memory Controller in SiFive SoCs

2020-09-01 Thread Yash Shah
> -Original Message- > From: Borislav Petkov > Sent: 31 August 2020 14:22 > To: Yash Shah > Cc: robh...@kernel.org; pal...@dabbelt.com; Paul Walmsley ( Sifive) > ; mche...@kernel.org; tony.l...@intel.com; > a...@eecs.berkeley.edu; james.mo...@arm.com; rrich...@marvell.com; >

Re: [LKP] Re: [rcuperf] 4e88ec4a9e: UBSAN:division-overflow_in_arch/x86/include/asm/div64.h

2020-09-01 Thread Chen, Rong A
On 9/2/2020 12:27 AM, Paul E. McKenney wrote: On Tue, Sep 01, 2020 at 03:03:28PM +0800, Rong Chen wrote: On 8/31/20 11:50 PM, Paul E. McKenney wrote: On Mon, Aug 31, 2020 at 08:01:22PM +0800, kernel test robot wrote: Greeting, FYI, we noticed the following commit (built with gcc-9):

[PATCH v6 1/8] powerpc/watchpoint: Fix quarword instruction handling on p10 predecessors

2020-09-01 Thread Ravi Bangoria
On p10 predecessors, watchpoint with quarword access is compared at quardword length. If the watch range is doubleword or less than that in a first half of quarword aligned 16 bytes, and if there is any unaligned quadword access which will access only the 2nd half, the handler should consider it

linux-next: manual merge of the rcu tree with the jc_docs tree

2020-09-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rcu tree got a conflict in: Documentation/memory-barriers.txt between commit: 537f3a7cf48e ("docs/memory-barriers.txt: Fix references for DMA*.txt files") from the jc_docs tree and commit: 6f6705147bab ("docs: fix references for DMA*.txt files")

[PATCH v6 8/8] powerpc/watchpoint/selftests: Tests for kernel accessing user memory

2020-09-01 Thread Ravi Bangoria
Introduce tests to cover simple scenarios where user is watching memory which can be accessed by kernel as well. We also support _MODE_EXACT with _SETHWDEBUG interface. Move those testcases out- side of _BP_RANGE condition. This will help to test _MODE_EXACT scenarios when

[PATCH v6 2/8] powerpc/watchpoint: Fix handling of vector instructions

2020-09-01 Thread Ravi Bangoria
Vector load/store instructions are special because they are always aligned. Thus unaligned EA needs to be aligned down before comparing it with watch ranges. Otherwise we might consider valid event as invalid. Fixes: 74c6881019b7 ("powerpc/watchpoint: Prepare handler to handle more than one

[PATCH v6 5/8] powerpc/watchpoint: Fix exception handling for CONFIG_HAVE_HW_BREAKPOINT=N

2020-09-01 Thread Ravi Bangoria
On powerpc, ptrace watchpoint works in one-shot mode. i.e. kernel disables event every time it fires and user has to re-enable it. Also, in case of ptrace watchpoint, kernel notifies ptrace user before executing instruction. With CONFIG_HAVE_HW_BREAKPOINT=N, kernel is missing to disable ptrace

[PATCH v6 7/8] powerpc/watchpoint/ptrace: Introduce PPC_DEBUG_FEATURE_DATA_BP_ARCH_31

2020-09-01 Thread Ravi Bangoria
PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 can be used to determine whether we are running on an ISA 3.1 compliant machine. Which is needed to determine DAR behaviour, 512 byte boundary limit etc. This was requested by Pedro Miraglia Franco de Carvalho for extending watchpoint features in gdb. Note that

[PATCH v6 3/8] powerpc/watchpoint/ptrace: Fix SETHWDEBUG when CONFIG_HAVE_HW_BREAKPOINT=N

2020-09-01 Thread Ravi Bangoria
When kernel is compiled with CONFIG_HAVE_HW_BREAKPOINT=N, user can still create watchpoint using PPC_PTRACE_SETHWDEBUG, with limited functionalities. But, such watchpoints are never firing because of the missing privilege settings. Fix that. It's safe to set HW_BRK_TYPE_PRIV_ALL because we don't

[PATCH v6 0/8] powerpc/watchpoint: Bug fixes plus new feature flag

2020-09-01 Thread Ravi Bangoria
Patch #1 fixes issue for quardword instruction on p10 predecessors. Patch #2 fixes issue for vector instructions. Patch #3 fixes a bug about watchpoint not firing when created with ptrace PPC_PTRACE_SETHWDEBUG and CONFIG_HAVE_HW_BREAKPOINT=N. The fix uses HW_BRK_TYPE_PRIV_ALL for

[PATCH v6 4/8] powerpc/watchpoint: Move DAWR detection logic outside of hw_breakpoint.c

2020-09-01 Thread Ravi Bangoria
Power10 hw has multiple DAWRs but hw doesn't tell which DAWR caused the exception. So we have a sw logic to detect that in hw_breakpoint.c. But hw_breakpoint.c gets compiled only with CONFIG_HAVE_HW_BREAKPOINT=Y. Move DAWR detection logic outside of hw_breakpoint.c so that it can be reused when

[PATCH v6 6/8] powerpc/watchpoint: Add hw_len wherever missing

2020-09-01 Thread Ravi Bangoria
There are couple of places where we set len but not hw_len. For ptrace/perf watchpoints, when CONFIG_HAVE_HW_BREAKPOINT=Y, hw_len will be calculated and set internally while parsing watchpoint. But when CONFIG_HAVE_HW_BREAKPOINT=N, we need to manually set 'hw_len'. Similarly for xmon as well,

[tip:master] BUILD SUCCESS 43b00b155cc21855de77ec14c31fdfc2a43c9c0d

2020-09-01 Thread kernel test robot
randconfig-a004-20200901 x86_64 randconfig-a003-20200901 x86_64 randconfig-a001-20200901 x86_64 randconfig-a002-20200901 x86_64 randconfig-a006-20200901 x86_64 randconfig-a005-20200901 i386 randconfig-a004

Re: [PATCH v2 10/11] lockdep: Only trace IRQ edges

2020-09-01 Thread Guenter Roeck
On Fri, Aug 21, 2020 at 10:47:48AM +0200, Peter Zijlstra wrote: > From: Nicholas Piggin > > Problem: > > raw_local_irq_save(); > local_irq_save(); > ... > local_irq_restore(); > raw_local_irq_restore(); > > existing instances: > > - lock_acquire() >

Re: [PATCH] tmpfs: Restore functionality of nr_inodes=0

2020-09-01 Thread Hugh Dickins
On Tue, 1 Sep 2020, Byron Stanoszek wrote: > Commit e809d5f0b5c9 ("tmpfs: per-superblock i_ino support") made changes to > shmem_reserve_inode() in mm/shmem.c, however the original test for > (sbinfo->max_inodes) got dropped. This causes mounting tmpfs with option > nr_inodes=0 to fail: > > #

[PATCH] tmpfs: Restore functionality of nr_inodes=0

2020-09-01 Thread Byron Stanoszek
Commit e809d5f0b5c9 ("tmpfs: per-superblock i_ino support") made changes to shmem_reserve_inode() in mm/shmem.c, however the original test for (sbinfo->max_inodes) got dropped. This causes mounting tmpfs with option nr_inodes=0 to fail: # mount -ttmpfs -onr_inodes=0 none /ext0 mount: /ext0:

Re: [PATCH 4/7] arm64: dts: ti: k3-am65-base-board Use generic camera for node name instead of ov5640

2020-09-01 Thread Suman Anna
On 9/1/20 5:30 PM, Nishanth Menon wrote: > Use camera@ naming for nodes following standard conventions of device > tree (section 2.2.2 Generic Names recommendation in [1]). > > [1] https://github.com/devicetree-org/devicetree-specification/tree/v0.3 > > Suggested-by: Suman Anna > Signed-off-by:

Re: [PATCH 1/7] arm64: dts: ti: k3-am65*: Use generic gpio for node names

2020-09-01 Thread Suman Anna
On 9/1/20 5:30 PM, Nishanth Menon wrote: > Use gpio@ naming for nodes following standard conventions of device > tree (section 2.2.2 Generic Names recommendation in [1]). > > [1] https://github.com/devicetree-org/devicetree-specification/tree/v0.3 > > Suggested-by: Suman Anna > Signed-off-by:

Re: [PATCH 3/7] arm64: dts: ti: k3-*: Use generic pinctrl for node names

2020-09-01 Thread Suman Anna
On 9/1/20 5:30 PM, Nishanth Menon wrote: > Use pinctrl@ naming for nodes following standard conventions of device > tree (section 2.2.2 Generic Names recommendation in [1]). > > [1] https://github.com/devicetree-org/devicetree-specification/tree/v0.3 > > Suggested-by: Suman Anna >

[PATCH] mmc: sdhci-of-esdhc: Don't walk device-tree on every interrupt

2020-09-01 Thread Chris Packham
Commit b214fe592ab7 ("mmc: sdhci-of-esdhc: add erratum eSDHC7 support") added code to check for a specific compatible string in the device-tree on every esdhc interrupt. We know that if it's present the compatible string will be found on the sdhc host. Instead of walking the device-tree, go

Re: [PATCH v5 00/14] irqchip: Fix potential resource leaks

2020-09-01 Thread Tiezhu Yang
On 07/06/2020 03:30 PM, Marc Zyngier wrote: On 2020-07-06 02:19, Tiezhu Yang wrote: When I test the irqchip code of Loongson, I read the related code of other chips in drivers/irqchip and I find some potential resource leaks in the error path, I think it is better to fix them. v2: - Split

[PATCH v2] arm64: dts: qcom: sc7180: Add lpass cpu node for I2S driver

2020-09-01 Thread Srinivasa Rao Mandadapu
From: Ajit Pandey Add the I2S controller node to sc7180 dtsi. Add pinmux for primary and secondary I2S. Signed-off-by: Ajit Pandey Signed-off-by: Cheng-Yi Chiang Signed-off-by: Srinivasa Rao Mandadapu --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 69 1

Re: [PATCH kcsan 6/9] tools/memory-model: Expand the cheatsheet.txt notion of relaxed

2020-09-01 Thread Boqun Feng
On Mon, Aug 31, 2020 at 11:20:34AM -0700, paul...@kernel.org wrote: > From: "Paul E. McKenney" > > This commit adds a key entry enumerating the various types of relaxed > operations. > > Signed-off-by: Paul E. McKenney > --- > tools/memory-model/Documentation/cheatsheet.txt | 27 >

Re: [PATCH v2 11/11] lockdep,trace: Expose tracepoints

2020-09-01 Thread Guenter Roeck
On Fri, Aug 21, 2020 at 10:47:49AM +0200, Peter Zijlstra wrote: > The lockdep tracepoints are under the lockdep recursion counter, this > has a bunch of nasty side effects: > > - TRACE_IRQFLAGS doesn't work across the entire tracepoint > > - RCU-lockdep doesn't see the tracepoints either,

Uli Behringer is a racist and a sexist. Worked at Music Tribe for 30 years (it's name has changed repeatedly).

2020-09-01 Thread formermusictribemember
Uli Behringer is a racist and a sexist. Worked at Music Tribe for 30 years (it's name has changed repeatedly) Cons of working at Music Tribe: Uli Behringer, the CEO, is a racist and a sexist. You can tell by the way he presents himself: plastic surgery to uphold his boyish youthful looks;

Re: [PATCH 0/7] arm64: dts: ti: k3-*: Squash up node_name_chars_strict warnings

2020-09-01 Thread Lokesh Vutla
On 02/09/20 4:00 am, Nishanth Menon wrote: > Hi, > > This is one part of cleanups meant for make W=2 dtbs for 5.10 on TI > dtbs. Hopefully we dont see node_name_chars_strict warnings anymore. > > As part of this cleanup, I ran a cross check of nodes that are > part of K3 as of right now, Vs

drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c:570:21: sparse: sparse: cast to restricted __be32

2020-09-01 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b765a32a2e9170702467747e290614be072c4f76 commit: 088c5f0d1a7c7f01e668d9d2d75e7d93b43b7690 hinic: add generating mailbox random index support date: 4 weeks ago config: i386-randconfig-s001-20200902

[PATCH v11 4/4] scsi: ufs: Prepare HPB read for cached sub-region

2020-09-01 Thread Daejun Park
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the

Re: [PATCH kcsan 18/19] bitops, kcsan: Partially revert instrumentation for non-atomic bitops

2020-09-01 Thread Boqun Feng
Hi Paul and Marco, The whole update patchset looks good to me, just one question out of curiosity fo this one, please see below: On Mon, Aug 31, 2020 at 11:18:04AM -0700, paul...@kernel.org wrote: > From: Marco Elver > > Previous to the change to distinguish read-write accesses, when >

RE: [PATCH] arm64: topology: Stop using MPIDR for topology information

2020-09-01 Thread Zengtao (B)
Hi Valentin: > -Original Message- > From: Valentin Schneider [mailto:valentin.schnei...@arm.com] > Sent: Saturday, August 29, 2020 9:00 PM > To: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org > Cc: Catalin Marinas; Will Deacon; Sudeep Holla; Robin Murphy; Jeremy >

Re: [PATCH] powerpc: Fix random segfault when freeing hugetlb range

2020-09-01 Thread Aneesh Kumar K.V
Christophe Leroy writes: > The following random segfault is observed from time to time with > map_hugetlb selftest: > > root@localhost:~# ./map_hugetlb 1 19 > 524288 kB hugepages > Mapping 1 Mbytes > Segmentation fault > > [ 31.219972] map_hugetlb[365]: segfault (11) at 117 nip 77974f8c lr >

[PATCH net-next 0/2] Allow more than 255 IPv4 multicast interfaces

2020-09-01 Thread Paul Davey
Currently it is not possible to use more than 255 multicast interfaces for IPv4 due to the format of the igmpmsg header which only has 8 bits available for the VIF ID. There is enough space for the full VIF ID in the Netlink cache notifications, however the value is currently taken directly from

[PATCH v11 1/4] scsi: ufs: Add HPB feature related parameters

2020-09-01 Thread Daejun Park
This is a patch for parameters to be used for HPB feature. Reviewed-by: Bart Van Assche Reviewed-by: Can Guo Acked-by: Avri Altman Tested-by: Bean Huo Signed-off-by: Daejun Park --- drivers/scsi/ufs/ufs.h | 13 + 1 file changed, 13 insertions(+) diff --git

[PATCH v11 2/4] scsi: ufs: Introduce HPB feature

2020-09-01 Thread Daejun Park
This is a patch for the HPB feature. This patch adds HPB function calls to UFS core driver. Reviewed-by: Bart Van Assche Acked-by: Avri Altman Tested-by: Bean Huo Signed-off-by: Daejun Park --- drivers/scsi/ufs/Kconfig | 10 + drivers/scsi/ufs/Makefile | 1 + drivers/scsi/ufs/ufshcd.c |

[PATCH v11 3/4] scsi: ufs: L2P map management for HPB read

2020-09-01 Thread Daejun Park
This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each sub-region. The loaded sub-region is called

[PATCH net-next 1/2] ipmr: Add route table ID to netlink cache reports

2020-09-01 Thread Paul Davey
Insert the multicast route table ID as a Netlink attribute to Netlink cache report notifications. When multiple route tables are in use it is necessary to have a way to determine which route table a given cache report belongs to when receiving the cache report. Signed-off-by: Paul Davey ---

[PATCH net-next 2/2] ipmr: Use full VIF ID in netlink cache reports

2020-09-01 Thread Paul Davey
Insert the full 16 bit VIF ID into ipmr Netlink cache reports. If using more than 255 multicast interfaces it is necessary to have access to a VIF ID for cache reports that is wider than 8 bits, the VIF ID present in the igmpmsg reports sent to mroute_sk are only 8 bits wide in the igmpmsg

[PATCH v11 0/4] scsi: ufs: Add Host Performance Booster Support

2020-09-01 Thread Daejun Park
Changelog: v10 -> v11 Add a newline at end the last line on Kconfig file. v9 -> v10 1. Fix 64-bit division error 2. Fix problems commentted in Bart's review. v8 -> v9 1. Change sysfs initialization. 2. Change reading descriptor during HPB initialization 3. Fix problems commentted in Bart's

Re: [External] Re: [PATCH v2] kprobes: Fix kill kprobe which has been marked as gone

2020-09-01 Thread Muchun Song
Hi Masami, On Wed, Sep 2, 2020 at 11:05 AM Masami Hiramatsu wrote: > > Hi Ingo, > > Could you merge this fix to -tip? This patch has been merged into Andrew's mm tree. > > I can resend it with other kprobes fixes. > > Hi Muchun, > > We also need; > > Cc: sta...@vger.kernel.org > > for bugfix

[PATCH 0/5] SM8150 and SM8250 videocc drivers

2020-09-01 Thread Jonathan Marek
Add videocc drivers for SM8150/SM8250 required to boot and use venus. Jonathan Marek (5): dt-bindings: clock: combine qcom,sdm845-videocc and qcom,sc7180-videocc dt-bindings: clock: add SM8150 QCOM video clock bindings dt-bindings: clock: add SM8250 QCOM video clock bindings clk:

[PATCH 5/5] clk: qcom: add video clock controller driver for SM8250

2020-09-01 Thread Jonathan Marek
Add support for the video clock controller found on SM8250 based devices. Derived from the downstream driver. Signed-off-by: Jonathan Marek --- drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/videocc-sm8250.c | 516

[PATCH 2/5] dt-bindings: clock: add SM8150 QCOM video clock bindings

2020-09-01 Thread Jonathan Marek
Add device tree bindings for video clock controller for SM8150 SoCs. Signed-off-by: Jonathan Marek --- .../bindings/clock/qcom,videocc.yaml | 4 ++- .../dt-bindings/clock/qcom,videocc-sm8150.h | 25 +++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode

[PATCH 1/5] dt-bindings: clock: combine qcom,sdm845-videocc and qcom,sc7180-videocc

2020-09-01 Thread Jonathan Marek
These two bindings are almost identical, so combine them into one. This will make it easier to add the sm8150 and sm8250 videocc bindings. Signed-off-by: Jonathan Marek --- .../bindings/clock/qcom,sc7180-videocc.yaml | 65 --- ...,sdm845-videocc.yaml => qcom,videocc.yaml} | 14

[PATCH 3/5] dt-bindings: clock: add SM8250 QCOM video clock bindings

2020-09-01 Thread Jonathan Marek
Add device tree bindings for video clock controller for SM8250 SoCs. Signed-off-by: Jonathan Marek --- .../bindings/clock/qcom,videocc.yaml | 6 ++- .../dt-bindings/clock/qcom,videocc-sm8250.h | 42 +++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode

[PATCH 4/5] clk: qcom: add video clock controller driver for SM8150

2020-09-01 Thread Jonathan Marek
Add support for the video clock controller found on SM8150 based devices. Derived from the downstream driver. Signed-off-by: Jonathan Marek --- drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/videocc-sm8150.c | 276

Re: [PATCH v2 2/4] drm/vc4: hdmi: Add pixel bvb clock control

2020-09-01 Thread Hoegeun Kwon
Hi Chanwoo, On 9/1/20 1:27 PM, Chanwoo Choi wrote: > Hi Hoegeun, > > It looks good to me. But, just one comment. > > On 9/1/20 1:07 PM, Hoegeun Kwon wrote: >> There is a problem that the output does not work at a resolution >> exceeding FHD. To solve this, we need to adjust the bvb clock at a >>

Re: linux-next: manual merge of the drm-misc tree with Linus' tree

2020-09-01 Thread Stephen Rothwell
Hi all, On Wed, 26 Aug 2020 10:01:13 +1000 Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the drm-misc tree got conflicts in: > > drivers/video/fbdev/arcfb.c > drivers/video/fbdev/atmel_lcdfb.c > drivers/video/fbdev/savage/savagefb_driver.c > > between commit: > >

[PATCH] scsi: ufs: Fix NOP OUT timeout value

2020-09-01 Thread Daejun Park
In some Samsung UFS devices, there is some booting fail issue with low-power UFS device. The reason of this issue is the UFS device has a little bit longer latency for NOP OUT response. It causes booting fail because NOP OUT command is issued during initialization to check whether the device

Re: [PATCH v33 11/21] x86/sgx: Linux Enclave Driver

2020-09-01 Thread Haitao Huang
On Fri, 03 Jul 2020 22:31:10 -0500, Jarkko Sakkinen wrote: On Wed, Jul 01, 2020 at 08:59:02PM -0700, Sean Christopherson wrote: On Thu, Jun 18, 2020 at 01:08:33AM +0300, Jarkko Sakkinen wrote: > +static int sgx_validate_secs(const struct sgx_secs *secs, > + unsigned

Re: linux-next: build failure after merge of the drm-misc tree

2020-09-01 Thread Stephen Rothwell
Hi all, On Wed, 26 Aug 2020 10:55:47 +1000 Stephen Rothwell wrote: > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/qxl/qxl_display.c: In function > 'qxl_display_read_client_monitors_config': >

Re: [PATCH v2] kprobes: Fix kill kprobe which has been marked as gone

2020-09-01 Thread Masami Hiramatsu
Hi Ingo, Could you merge this fix to -tip? I can resend it with other kprobes fixes. Hi Muchun, We also need; Cc: sta...@vger.kernel.org for bugfix so that the patch can be backported correctly after merged to upstream. Thank you, On Mon, 31 Aug 2020 10:59:19 +0800 Muchun Song wrote: >

Re: [v4,0/4] introduce TI reset controller for MT8192 SoC

2020-09-01 Thread Crystal Guo
Hi Rob, Philipp, Matthias and all Gentle ping for this patch set. Thanks Crystal > > -Original Message- > From: Crystal Guo [mailto:crystal@mediatek.com] > Sent: Monday, August 17, 2020 11:03 AM > To: p.za...@pengutronix.de; robh...@kernel.org; matthias@gmail.com > Cc:

[RFC v2 00/11] Hyper-V: Support PAGE_SIZE larger than 4K

2020-09-01 Thread Boqun Feng
This patchset add the necessary changes to support guests whose page size is larger than 4K. Previous version: v1: https://lore.kernel.org/lkml/20200721014135.84140-1-boqun.f...@gmail.com/ Changes since v1: * Introduce a hv_ring_gpadl_send_offset() to improve the readability as

[RFC v2 04/11] Drivers: hv: Use HV_HYP_PAGE in hv_synic_enable_regs()

2020-09-01 Thread Boqun Feng
Both the base_*_gpa should use the guest page number in Hyper-V page, so use HV_HYP_PAGE instead of PAGE. Signed-off-by: Boqun Feng --- drivers/hv/hv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 7499079f4077..8ac8bbf5b5aa

[RFC v2 02/11] Drivers: hv: vmbus: Move __vmbus_open()

2020-09-01 Thread Boqun Feng
Pure function movement, no functional changes. The move is made, because in a later change, __vmbus_open() will rely on some static functions afterwards, so we sperate the move and the modification of __vmbus_open() in two patches to make it easy to review. Signed-off-by: Boqun Feng Reviewed-by:

[RFC v2 03/11] Drivers: hv: vmbus: Introduce types of GPADL

2020-09-01 Thread Boqun Feng
This patch introduces two types of GPADL: HV_GPADL_{BUFFER, RING}. The types of GPADL are purely the concept in the guest, IOW the hypervisor treat them as the same. The reason of introducing the types of GPADL is to support guests whose page size is not 4k (the page size of Hyper-V hypervisor).

[RFC v2 09/11] HID: hyperv: Make ringbuffer at least take two pages

2020-09-01 Thread Boqun Feng
When PAGE_SIZE > HV_HYP_PAGE_SIZE, we need the ringbuffer size to be at least 2 * PAGE_SIZE: one page for the header and at least one page of the data part (because of the alignment requirement for double mapping). So make sure the ringbuffer sizes to be at least 2 * PAGE_SIZE when using

[RFC v2 08/11] Input: hyperv-keyboard: Make ringbuffer at least take two pages

2020-09-01 Thread Boqun Feng
When PAGE_SIZE > HV_HYP_PAGE_SIZE, we need the ringbuffer size to be at least 2 * PAGE_SIZE: one page for the header and at least one page of the data part (because of the alignment requirement for double mapping). So make sure the ringbuffer sizes to be at least 2 * PAGE_SIZE when using

[RFC v2 10/11] Driver: hv: util: Make ringbuffer at least take two pages

2020-09-01 Thread Boqun Feng
When PAGE_SIZE > HV_HYP_PAGE_SIZE, we need the ringbuffer size to be at least 2 * PAGE_SIZE: one page for the header and at least one page of the data part (because of the alignment requirement for double mapping). So make sure the ringbuffer sizes to be at least 2 * PAGE_SIZE when using

[RFC v2 06/11] hv: hyperv.h: Introduce some hvpfn helper functions

2020-09-01 Thread Boqun Feng
When a guest communicate with the hypervisor, it must use HV_HYP_PAGE to calculate PFN, so introduce a few hvpfn helper functions as the counterpart of the page helper functions. This is the preparation for supporting guest whose PAGE_SIZE is not 4k. Signed-off-by: Boqun Feng ---

[RFC v2 11/11] scsi: storvsc: Support PAGE_SIZE larger than 4K

2020-09-01 Thread Boqun Feng
Hyper-V always use 4k page size (HV_HYP_PAGE_SIZE), so when communicating with Hyper-V, a guest should always use HV_HYP_PAGE_SIZE as the unit for page related data. For storvsc, the data is vmbus_packet_mpb_array. And since in scsi_cmnd, sglist of pages (in unit of PAGE_SIZE) is used, we need

[RFC v2 05/11] Drivers: hv: vmbus: Move virt_to_hvpfn() to hyperv header

2020-09-01 Thread Boqun Feng
There will be more places other than vmbus where we need to calculate the Hyper-V page PFN from a virtual address, so move virt_to_hvpfn() to hyperv generic header. Signed-off-by: Boqun Feng --- drivers/hv/channel.c | 13 - include/linux/hyperv.h | 15 +++ 2 files

[RFC v2 07/11] hv_netvsc: Use HV_HYP_PAGE_SIZE for Hyper-V communication

2020-09-01 Thread Boqun Feng
When communicating with Hyper-V, HV_HYP_PAGE_SIZE should be used since that's the page size used by Hyper-V and Hyper-V expects all page-related data using the unit of HY_HYP_PAGE_SIZE, for example, the "pfn" in hv_page_buffer is actually the HV_HYP_PAGE (i.e. the Hyper-V page) number. In order

[RFC v2 01/11] Drivers: hv: vmbus: Always use HV_HYP_PAGE_SIZE for gpadl

2020-09-01 Thread Boqun Feng
Since the hypervisor always uses 4K as its page size, the size of PFNs used for gpadl should be HV_HYP_PAGE_SIZE rather than PAGE_SIZE, so adjust this accordingly as the preparation for supporting 16K/64K page size guests. No functional changes on x86, since PAGE_SIZE is always 4k (equals to

[PATCH v2 08/10] soundwire: intel: add error log for clock-stop invalid configs

2020-09-01 Thread Bard Liao
From: Pierre-Louis Bossart Detect cases where the clock is assumed to be stopped but the IP is not in the relevant state. There is no real way to recover here, but adding an error log can help detect bad programming sequences or race conditions. Signed-off-by: Pierre-Louis Bossart

[PATCH v2 10/10] soundwire: intel: don't manage link power individually

2020-09-01 Thread Bard Liao
From: Pierre-Louis Bossart Each link has separate power controls, but experimental results show we need to use an all-or-none approach to the link power management. This change has marginal power impacts, the DSP needs to be powered anyways before SoundWire links can be powered, and even when

[PATCH v2 05/10] soundwire: bus: update multi-link definition with hw sync details

2020-09-01 Thread Bard Liao
From: Pierre-Louis Bossart Hardware-based synchronization is typically required when the bus->multi_link flag is set. On Intel platforms, when the Cadence IP is configured in 'Multi Master Mode', the hardware synchronization is required even when a stream only uses a single segment. The

[PATCH v2 01/10] soundwire: intel: disable shim wake on suspend

2020-09-01 Thread Bard Liao
From: Pierre-Louis Bossart If we enabled the clock stop mode and suspend, we need to disable the shim wake. We do so only if the parent is pm_runtime active due to power rail dependencies. GitHub issue: https://github.com/thesofproject/linux/issues/1678 Signed-off-by: Pierre-Louis Bossart

[PATCH v2 02/10] soundwire: intel: ignore software command retries

2020-09-01 Thread Bard Liao
From: Pierre-Louis Bossart with multiple links synchronized in hardware, retrying commands in software is not recommended. Signed-off-by: Pierre-Louis Bossart Signed-off-by: Bard Liao --- drivers/soundwire/intel.c | 5 + 1 file changed, 5 insertions(+) diff --git

  1   2   3   4   5   6   7   8   9   10   >