Re: [PATCH v2 1/2] irqchip: irq-mst: Add MStar interrupt controller support

2020-09-01 Thread Mark-PK Tsai
From: Marc Zyngier >On 2020-08-20 13:36, Daniel Palmer wrote: >> Hi Mark-PK, Marc >> >> I'm not sure this will be the final version but I'm going to try to >> integrate this with my current MStar/SigmaStar tree over the weekend >> and then I guess I can give this a tested-by? > >That'd be good.

Re: [PATCH] Revert "usb: dwc3: meson-g12a: fix shared reset control use"

2020-09-01 Thread Neil Armstrong
Hi Felipe, Greg, Is it possible to apply this ? USB is broken on 5.8 stable and 5.9-rc on multiple GXL/GXM boards. Thanks, Neil On 27/08/2020 16:48, Amjad Ouled-Ameur wrote: > This reverts commit 7a410953d1fb4dbe91ffcfdee9cbbf889d19b0d7. > > This commit breaks USB on meson-gxl-s905x-libretech-

general protection fault in snd_ctl_release

2020-09-01 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:b51594df Merge tag 'docs-5.9-3' of git://git.lwn.net/linux git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=172fea1590 kernel config: https://syzkaller.appspot.com/x/.config?x=3c5f6ce8d5b68299 dashb

KASAN: use-after-free Write in xp_put_pool

2020-09-01 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:dc1a9bf2 octeontx2-pf: Add UDP segmentation offload support git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=16ff67de90 kernel config: https://syzkaller.appspot.com/x/.config?x=b6856d16f78d8fa9 dash

[PATCH v1 0/6] clk: rockchip: Support module build

2020-09-01 Thread Elaine Zhang
Export some APIs for module drivers. Fix the clock config to support module build. Fix the clk driver init, add module author, description and license to support building RK3399 SoC clock driver as module. Elaine Zhang (6): clk: rockchip: Use clk_hw_register_composite instead of clk_register

Re: [PATCH 4.19 000/125] 4.19.143-rc1 review

2020-09-01 Thread Naresh Kamboju
On Tue, 1 Sep 2020 at 20:53, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.143 release. > There are 125 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

RE: [PATCH v5 1/2] phy: Add new PHY attribute max_link_rate and APIs to get/set PHY attributes

2020-09-01 Thread Swapnil Kashinath Jakhade
Hi Laurent, Thank you for your review comments. > -Original Message- > From: Laurent Pinchart > Sent: Wednesday, September 2, 2020 5:56 AM > To: Swapnil Kashinath Jakhade > Cc: vk...@kernel.org; kis...@ti.com; linux-kernel@vger.kernel.org; > max...@cerno.tech; Milind Parab ; Yuti Suresh

Re: [PATCH 2/2] dt-bindings: interrupt-controller: Add MStar interrupt controller

2020-09-01 Thread Mark-PK Tsai
Hi, I've updated the yaml and post it in the patch series v3[1]. But I still keep the vendor specific property mstar,irqs-map-range as I mentioned in the last reply. Please review it. [1] https://lore.kernel.org/lkml/20200902063344.1852-3-mark-pk.t...@mediatek.com/

Re: [PATCH v5 2/3] dt-bindings: media: imx274: Add optional input clock and supplies

2020-09-01 Thread Luca Ceresoli
Hi again... On 02/09/20 08:46, Luca Ceresoli wrote: > Hi Sowjanya, > > On 02/09/20 04:04, Sowjanya Komatineni wrote: >> This patch adds IMX274 optional external clock input and voltage >> supplies to device tree bindings. >> >> Reviewed-by: Luca Ceresoli >> Signed-off-by: Sowjanya Komatineni >>

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

2020-09-01 Thread Julia Lawall
On Wed, 2 Sep 2020, Denis Efremov wrote: > Extend the list of free functions with kvfree(), kvfree_sensitive(), > vfree(). > > Signed-off-by: Denis Efremov Applied, thanks. julia > --- > scripts/coccinelle/free/ifnullfree.cocci | 11 +-- > 1 file changed, 9 insertions(+), 2 deletio

[PATCH v1 5/6] clk: rockchip: fix the clk config to support module build

2020-09-01 Thread Elaine Zhang
use CONFIG_COMMON_CLK_ROCKCHIP for Rk common clk drivers. use CONFIG_CLK_RKXX for Rk soc clk driver. Mark configuration to "tristate", to support building Rk SoCs clock driver as module. Signed-off-by: Elaine Zhang --- drivers/clk/Kconfig | 1 + drivers/clk/rockchip/Kconfig | 78

Re: WARNING: suspicious RCU usage - sdhci-pltfm: SDHCI platform and OF driver helper

2020-09-01 Thread Ulf Hansson
On Tue, 1 Sep 2020 at 17:00, Paul E. McKenney wrote: > > On Tue, Sep 01, 2020 at 08:46:54AM +0200, Ulf Hansson wrote: > > + Saravanna, Rafael, Lina > > > > On Mon, 31 Aug 2020 at 21:44, Paul E. McKenney wrote: > > > > > > On Mon, Aug 31, 2020 at 12:02:31PM +0530, Naresh Kamboju wrote: > > > > Whi

[PATCH v1 6/6] clk: rockchip: rk3399: Support module build

2020-09-01 Thread Elaine Zhang
support CLK_OF_DECLARE and builtin_platform_driver_probe double clk init method. add module author, description and license to support building Soc Rk3399 clock driver as module. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rk3399.c | 40 +++ 1 file change

[PATCH v1 2/6] clk: rockchip: Export rockchip_clk_register_ddrclk()

2020-09-01 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-ddr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-ddr.c b/drivers/clk/rockchip/clk-ddr.c index 9273bce4d7

[PATCH v1 3/6] clk: rockchip: Export rockchip_register_softrst()

2020-09-01 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/softrst.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/softrst.c b/drivers/clk/rockchip/sof

[PATCH v1 1/6] clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls

2020-09-01 Thread Elaine Zhang
clk_hw_register_composite it's already exported. Preparation for compilation of rK common clock drivers into modules. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-half-divider.c | 12 + drivers/clk/rockchip/clk.c | 35 ++--- 2 files changed, 2

[PATCH v1 4/6] clk: rockchip: Export some clock common APIs for module drivers

2020-09-01 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk.c | 52 ++ 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/drivers/clk/rockchip/clk.c b

Re: [PATCH 2/2] powerpc/vdso32: link vdso64 with linker

2020-09-01 Thread Christophe Leroy
On 09/01/2020 10:25 PM, Nick Desaulniers wrote: Rather than invoke the compiler as the driver, use the linker. That way we can check --orphan-handling=warn support correctly, as cc-ldoption was removed in commit 055efab3120b ("kbuild: drop support for cc-ldoption"). Requires dropping the .got

[PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Qu Wenruo
When kernel module loading failed, user space only get one of the following error messages: - ENOEXEC This is the most confusing one. From corrupted ELF header to bad WRITE|EXEC flags check introduced by in module_enforce_rwx_sections() all returns this error number. - EPERM This is for b

Re: [PATCH v5 2/3] dt-bindings: media: imx274: Add optional input clock and supplies

2020-09-01 Thread Luca Ceresoli
Hi Sowjanya, On 02/09/20 04:04, Sowjanya Komatineni wrote: > This patch adds IMX274 optional external clock input and voltage > supplies to device tree bindings. > > Reviewed-by: Luca Ceresoli > Signed-off-by: Sowjanya Komatineni > --- > .../devicetree/bindings/media/i2c/sony,imx274.yaml | 21

[PATCH v7 2/2] drm: panel: Add novatek nt36672a panel driver

2020-09-01 Thread Sumit Semwal
Novatek NT36672a is a generic DSI IC that drives command and video mode panels. Add the driver for it. Right now adding support for some Poco F1 phones that have an LCD panel from Tianma connected with this IC, with a resolution of 1080x2246 that operates in DSI video mode. During testing, Benni

[PATCH v7 1/2] dt-bindings: display: panel: Add bindings for Novatek nt36672a

2020-09-01 Thread Sumit Semwal
Novatek nt36672a is a display driver IC that can drive DSI panel. It is also present in the Tianma video mode panel, which is a FHD+ panel with a resolution of 1080x2246 and 6.18 inches size. It is found in some of the Poco F1 phones. This patch adds the display driver for the IC, with support add

[PATCH v7 0/2]dd support for Tianma nt36672a video mode panel

2020-09-01 Thread Sumit Semwal
Some Poco F1 phones from Xiaomi have a FHD+ video mode panel based on the Novatek NT36672A display controller; 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.9-rc1 based drm-misc-

Re: [PATCH v7] Add MediaTek MT6779 devapc driver

2020-09-01 Thread Neal Liu
Hi Rob, Matthias, Chun-Kuang, Gentle ping for this patch set. Thanks -Neal On Thu, 2020-08-27 at 11:06 +0800, Neal Liu wrote: > These patch series introduce a MediaTek MT6779 devapc driver. > > MediaTek bus fabric provides TrustZone security support and data protection > to prevent slaves from

[PATCH v3 1/2] irqchip: irq-mst: Add MStar interrupt controller support

2020-09-01 Thread Mark-PK Tsai
Add MStar interrupt controller support using hierarchy irq domain. Signed-off-by: Mark-PK Tsai Tested-by: Daniel Palmer --- MAINTAINERS| 7 ++ drivers/irqchip/Kconfig| 8 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-mst-intc.c | 199

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

2020-09-01 Thread Yunsheng Lin
On 2020/9/2 12:41, Cong Wang wrote: > 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

[PATCH v3 0/2] Add MStar interrupt controller support

2020-09-01 Thread Mark-PK Tsai
MStar contain a legacy interrupt controller that routes interrupts to the GIC. SigmaStar and Mediatek TV SoCs also have this interrupt controller IP. Mark-PK Tsai (2): irqchip: irq-mst: Add MStar interrupt controller support dt-bindings: interrupt-controller: Add MStar interrupt controller .

[PATCH v3 2/2] dt-bindings: interrupt-controller: Add MStar interrupt controller

2020-09-01 Thread Mark-PK Tsai
Add binding for MStar interrupt controller. Signed-off-by: Mark-PK Tsai --- .../interrupt-controller/mstar,mst-intc.yaml | 64 +++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mstar,mst-intc.yaml diff --git a/Docu

[PATCH] f2fs: change i_compr_blocks of inode to atomic value

2020-09-01 Thread Daeho Jeong
From: Daeho Jeong writepages() can be concurrently invoked for the same file by different threads such as a thread fsyncing the file and a kworker kernel thread. So, changing i_compr_blocks without protection is racy and we need to protect it by changing it with atomic type value. Signed-off-by:

Re: [PATCH v2 1/3] dt-bindings: crypto: add new compatible for V3s

2020-09-01 Thread Corentin Labbe
On Tue, Sep 01, 2020 at 01:40:15PM +0200, Maxime Ripard wrote: > On Tue, Sep 01, 2020 at 12:57:19PM +0200, Corentin Labbe wrote: > > On Tue, Sep 01, 2020 at 11:32:49AM +0200, Maxime Ripard wrote: > > > On Mon, Aug 31, 2020 at 09:30:59AM +0200, Martin Cerveny wrote: > > > > Like A33 "sun4i-ss" has a

Re: [PATCH 3/3] media: imx258: Get clock from device properties and enable it

2020-09-01 Thread Krzysztof Kozlowski
On Mon, 31 Aug 2020 at 11:09, Sakari Ailus wrote: > > Hi Krzysztof, > > Thanks for the patchset. > > On Fri, Aug 28, 2020 at 06:00:53PM +0200, Krzysztof Kozlowski wrote: > > The IMX258 sensor driver checked in device properties for a > > clock-frequency property which actually does not mean that t

Re: [PATCH] staging: gdm724x: gdm_tty: replaced macro with a function

2020-09-01 Thread Greg KH
On Tue, Sep 01, 2020 at 10:16:26PM +0200, Antoni Przybylik wrote: > This approach is more elegant and prevents some problems related to > macros such as operator precedence in expanded expression. > > Signed-off-by: Antoni Przybylik > --- > drivers/staging/gdm724x/gdm_tty.c | 15 +--

Re: [PATCH v2 00/28] The new cgroup slab memory controller

2020-09-01 Thread Bharata B Rao
On Tue, Sep 01, 2020 at 08:52:05AM -0400, Pavel Tatashin wrote: > On Tue, Sep 1, 2020 at 1:28 AM Bharata B Rao wrote: > > > > On Fri, Aug 28, 2020 at 12:47:03PM -0400, Pavel Tatashin wrote: > > > There appears to be another problem that is related to the > > > cgroup_mutex -> mem_hotplug_lock dead

Re: [PATCH 10/10] powerpc: remove address space overrides using set_fs()

2020-09-01 Thread Christophe Leroy
Le 27/08/2020 à 17:00, Christoph Hellwig a écrit : Stop providing the possibility to override the address space using set_fs() now that there is no need for that any more. Signed-off-by: Christoph Hellwig --- arch/powerpc/Kconfig | 1 - arch/powerpc/include/asm/processo

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

2020-09-01 Thread Marco Elver
On Wed, Sep 02, 2020 at 11:30AM +0800, Boqun Feng wrote: > 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 > > > >

Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-09-01 Thread Alexandru Ardelean
On Sat, Aug 29, 2020 at 6:46 PM Jonathan Cameron wrote: > > On Thu, 27 Aug 2020 13:00:36 +0300 > Alexandru Ardelean wrote: > > > On Thu, Aug 27, 2020 at 12:03 PM Fabrice Gasnier > > wrote: > > > > > > On 8/27/20 10:55 AM, Alexandru Ardelean wrote: > > > > On Wed, Aug 26, 2020 at 3:03 PM Alexand

Re: [PATCH v1 09/10] powerpc/pseries/iommu: Make use of DDW even if it does not map the partition

2020-09-01 Thread Leonardo Bras
On Mon, 2020-08-31 at 14:35 +1000, Alexey Kardashevskiy wrote: > > On 29/08/2020 04:36, Leonardo Bras wrote: > > On Mon, 2020-08-24 at 15:17 +1000, Alexey Kardashevskiy wrote: > > > On 18/08/2020 09:40, Leonardo Bras wrote: > > > > As of today, if the biggest DDW that can be created can't map the

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

2020-09-01 Thread Greg Kroah-Hartman
On Tue, Sep 01, 2020 at 01:21:43PM -0700, Matthias Kaehlcke wrote: > diff --git a/drivers/usb/misc/Makefile b/drivers/usb/misc/Makefile > index da39bddb0604..2bd02388ca62 100644 > --- a/drivers/usb/misc/Makefile > +++ b/drivers/usb/misc/Makefile > @@ -31,3 +31,4 @@ obj-$(CONFIG_USB_CHAOSKEY)

Re: [PATCH 4/9] block: add a new revalidate_disk_size helper

2020-09-01 Thread Song Liu
On Tue, Sep 1, 2020 at 9:00 AM Christoph Hellwig wrote: > [...] > drivers/md/md-cluster.c | 6 ++--- > drivers/md/md-linear.c| 2 +- > drivers/md/md.c | 10 - For md bits: Acked-by: Song Liu [...] > > +/** > + * revalidate_disk_size - checks for disk size

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

2020-09-01 Thread Greg Kroah-Hartman
On Wed, Sep 02, 2020 at 11:26:51AM +0530, Paras Sharma wrote: > 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 implementati

Re: [PATCH] arm64/module: set trampoline section flags regardless of CONFIG_DYNAMIC_FTRACE

2020-09-01 Thread Ard Biesheuvel
On Tue, 1 Sep 2020 at 19:00, Jessica Yu wrote: > > In the arm64 module linker script, the section .text.ftrace_trampoline > is specified unconditionally regardless of whether CONFIG_DYNAMIC_FTRACE > is enabled (this is simply due to the limitation that module linker > scripts are not preprocessed

Re: [PATCH 9/9] block: remove revalidate_disk()

2020-09-01 Thread Song Liu
On Tue, Sep 1, 2020 at 9:00 AM Christoph Hellwig wrote: > > Remove the now unused helper. > > Signed-off-by: Christoph Hellwig Acked-by: Song Liu

Re: [PATCH] sched/deadline: Fix stale throttling on de-/boosted tasks

2020-09-01 Thread Juri Lelli
Hi, On 31/08/20 13:07, Lucas Stach wrote: > When a boosted task gets throttled, what normally happens is that it's > immediately enqueued again with ENQUEUE_REPLENISH, which replenishes the > runtime and clears the dl_throttled flag. There is a special case however: > if the throttling happened on

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

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

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 som

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 kernel/locking/lockdep.c:332

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

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 swit

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 i

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 v

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 droppe

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 cy

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 the

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 uninitiali

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 the

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 fo

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 H_SET_MODE_RESOURCE

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 dawr

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 H_SET_MODE

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 no

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 ufshcd_auto_hibern8

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

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 IO_P

[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 b/drivers/

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

[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 b/scripts/coccinelle/f

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

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; > devicet...@vg

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): comm

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

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 CONFIG_HAVE_HW_BREAKPOINT

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

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

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

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

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

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

[tip:master] BUILD SUCCESS 43b00b155cc21855de77ec14c31fdfc2a43c9c0d

2020-09-01 Thread kernel test robot
fig x86_64 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 randc

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

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: > > # m

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

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

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 > Signed-off-by:

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

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 th

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

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

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

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 wh

  1   2   3   4   5   6   7   8   9   10   >