[PATCH AUTOSEL 5.4 02/43] dmaengine: acpi: Put the CSRT table after using it

2020-09-07 Thread Sasha Levin
From: Hanjun Guo [ Upstream commit 7eb48dd094de5fe0e216b550e73aa85257903973 ] The acpi_get_table() should be coupled with acpi_put_table() if the mapped table is not used at runtime to release the table mapping, put the CSRT table buf after using it. Signed-off-by: Hanjun Guo Link:

[PATCH AUTOSEL 5.8 40/53] HID: elan: Fix memleak in elan_input_configured

2020-09-07 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit b7429ea53d6c0936a0f10a5d64164f0aea440143 ] When input_mt_init_slots() fails, input should be freed to prevent memleak. When input_register_device() fails, we should call input_mt_destroy_slots() to free memory allocated by input_mt_init_slots().

[PATCH AUTOSEL 5.8 48/53] ALSA: hda: use consistent HDAudio spelling in comments/docs

2020-09-07 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit b79de57b4378a93115307be6962d05b099eb0f37 ] We use HDaudio and HDAudio, pick one to make searches easier. No functionality change Also fix timestamping typo in documentation. Reported-by: Guennadi Liakhovetski Signed-off-by: Pierre-Louis Bossart

[PATCH AUTOSEL 5.8 09/53] firestream: Fix memleak in fs_open

2020-09-07 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 15ac5cdafb9202424206dc5bd376437a358963f9 ] When make_rate() fails, vcc should be freed just like other error paths in fs_open(). Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/atm/firestream.c | 1 + 1

Re: [PATCH 01/16] wireless: ath5k: convert tasklets to use new tasklet_setup() API

2020-09-07 Thread Kalle Valo
Allen Pais writes: > Hi, >> >> Allen Pais wrote: >> >> > In preparation for unconditionally passing the >> > struct tasklet_struct pointer to all tasklet >> > callbacks, switch to using the new tasklet_setup() >> > and from_tasklet() to pass the tasklet pointer explicitly. >> > >> >

[PATCH 2/2] powerpc/32: Fix vmap stack - Properly set r1 before activating MMU

2020-09-07 Thread Christophe Leroy
We need r1 to be properly set before activating MMU, otherwise any new exception taken while saving registers into the stack in exception prologs will use the user stack, which is wrong and will even lockup or crash when KUAP is selected. Do that by switching the meaning of r11 and r1 until we

[PATCH 1/2] powerpc/32: Fix vmap stack - Do not activate MMU before reading task struct

2020-09-07 Thread Christophe Leroy
We need r1 to be properly set before activating MMU, so reading task_struct->stack must be done with MMU off. This means we need an additional register to play with MSR bits while r11 now points to the stack. For that, move r10 back to CR (As is already done for hash MMU) and use r10. We still

Re: [RFC PATCH] fork: Free per-cpu cached vmalloc'ed thread stacks with

2020-09-07 Thread Uladzislau Rezki
On Mon, Sep 07, 2020 at 10:45:38AM +0200, Christian Brauner wrote: > On Sat, Sep 05, 2020 at 12:12:29AM +, Isaac J. Manjarres wrote: > > The per-cpu cached vmalloc'ed stacks are currently freed in the > > CPU hotplug teardown path by the free_vm_stack_cache() callback, > > which invokes

Re: [PATCH v2][next] PCI: rcar-gen2: Use fallthrough pseudo-keyword

2020-09-07 Thread Lorenzo Pieralisi
On Tue, Jul 21, 2020 at 10:28:51PM -0500, Gustavo A. R. Silva wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] >

Re: [PATCH 01/10] USB: move snd_usb_pipe_sanity_check into the USB core

2020-09-07 Thread Alan Stern
On Mon, Sep 07, 2020 at 04:16:34PM +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 03, 2020 at 09:32:30AM +0200, Greg Kroah-Hartman wrote: > > On Wed, Sep 02, 2020 at 08:45:53PM -0400, Alan Stern wrote: > > > Since this routine is used in only one place in the entire kernel, you > > > might as

Re: [PATCH v2][next] PCI: imx6: Use fallthrough pseudo-keyword

2020-09-07 Thread Lorenzo Pieralisi
On Tue, Jul 21, 2020 at 10:19:03PM -0500, Gustavo A. R. Silva wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] >

Re: [PATCH 0/3] drm/msm/dsi: support SM8150 and SM8250

2020-09-07 Thread Dmitry Baryshkov
On 04/09/2020 20:28, Jonathan Marek wrote: Add support for SM8150 and SM8250 DSI. Note I haven't tested SM8150 recently, but DSI is almost identical to SM8250. On SM8250: Tested-by: Dmitry Baryshkov Jonathan Marek (3): drm/msm/dsi: remove unused clk_pre/clk_post in msm_dsi_dphy_timing

Re: [PATCH v2 0/7] SM8150 and SM8250 dispcc drivers

2020-09-07 Thread Dmitry Baryshkov
On 04/09/2020 01:26, Jonathan Marek wrote: Add display clock drivers required to get DSI and DP displays working on SM8150 and SM8250 SoCs. Derived from downstream drivers. Notable changes compared to downstream: - EDP clks removed (nothing uses these even in downstream it seems) - freq_tbl

Re: [PATCH v6 6/9] kernel: entry: Support Syscall User Dispatch for common syscall entry

2020-09-07 Thread Christian Brauner
On Mon, Sep 07, 2020 at 07:15:52AM -0700, Andy Lutomirski wrote: > > > > On Sep 7, 2020, at 3:15 AM, Christian Brauner > > wrote: > > > > On Fri, Sep 04, 2020 at 04:31:44PM -0400, Gabriel Krisman Bertazi wrote: > >> Syscall User Dispatch (SUD) must take precedence over seccomp, since the >

Re: [PATCH] soundwire: stream: fix an invalid free

2020-09-07 Thread Tom Rix
On 9/7/20 7:14 AM, Vinod Koul wrote: > Hello Tom, > > On 05-09-20, 12:26, t...@redhat.com wrote: >> From: Tom Rix >> >> clang static analyzer reports this problem >> >> stream.c:872:2: warning: Argument to kfree() is a constant >> address (18446744073709551092), which is not memory >>

Re: [PATCH 01/10] USB: move snd_usb_pipe_sanity_check into the USB core

2020-09-07 Thread Greg Kroah-Hartman
On Thu, Sep 03, 2020 at 09:32:30AM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 02, 2020 at 08:45:53PM -0400, Alan Stern wrote: > > On Wed, Sep 02, 2020 at 01:01:03PM +0200, Greg Kroah-Hartman wrote: > > > snd_usb_pipe_sanity_check() is a great function, so let's move it into > > > the USB core

[PATCH v8 2/2] fpga: dfl: add support for N3000 Nios private feature

2020-09-07 Thread Xu Yilun
This patch adds support for the Nios handshake private feature on Intel PAC (Programmable Acceleration Card) N3000. The Nios is the embedded processor on the FPGA card. This private feature provides a handshake interface to FPGA Nios firmware, which receives retimer configuration command from

Re: [PATCH v1 6/8] x86/tsc: Use seqcount_latch_t

2020-09-07 Thread Ahmed S. Darwish
Hi, On Fri, Sep 04, 2020 at 10:03:12AM +0200, pet...@infradead.org wrote: > On Fri, Sep 04, 2020 at 09:41:42AM +0200, pet...@infradead.org wrote: > > On Thu, Aug 27, 2020 at 01:40:42PM +0200, Ahmed S. Darwish wrote: > > > > > __always_inline void cyc2ns_read_begin(struct cyc2ns_data *data) > > >

Re: [PATCH v2 0/4] soundwire: qcom: add support for mmio soundwire master

2020-09-07 Thread Vinod Koul
On 05-09-20, 13:39, Jonathan Marek wrote: > This adds initial support for soundwire device on sm8250. > > Tested with the "wsa" sdw device, which is simpler than the others. > > v2 addresses some feedback, but I kept this series as simple as possible. > In particular, I didn't implement

Re: [PATCH v5 01/36] i2c: tegra: Make tegra_i2c_flush_fifos() usable in atomic transfer

2020-09-07 Thread Dmitry Osipenko
07.09.2020 10:56, Andy Shevchenko пишет: > On Sun, Sep 6, 2020 at 9:51 PM Dmitry Osipenko wrote: >> >> The tegra_i2c_flush_fifos() shouldn't sleep in atomic transfer and jiffies >> are not updating if interrupts are disabled. Let's switch to use iopoll >> API helpers for register-polling. The

[PATCH net-next v2 6/9] net: ethernet: ti: ale: make usage of ale dev_id mandatory

2020-09-07 Thread Grygorii Strashko
Hence all existing driver updated to use ALE dev_id the usage of ale dev_id can be made mandatory and cpsw_ale_create() can be updated to use "features" property from ALE static configuration. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 28

[PATCH net-next v2 5/9] net: ethernet: ti: am65-cpsw: use dev_id for ale configuration

2020-09-07 Thread Grygorii Strashko
The previous patch has introduced possibility to select CPSW ALE by using ALE dev_id identifier. Switch TI TI AM65x/J721E CPSW NUSS driver to use dev_id. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH net-next v2 2/9] net: ethernet: ti: ale: add static configuration

2020-09-07 Thread Grygorii Strashko
As existing, as newly introduced CPSW ALE versions have differences in supported features and ALE table formats. Especially it's actual for the recent AM65x/J721E/J7200 SoC and feature AM64x, which supports features like: auto-aging, classifiers, Link aggregation, additional hw filtering, etc.

Re: [PATCH v5 06/36] i2c: tegra: Runtime PM always available on Tegra

2020-09-07 Thread Dmitry Osipenko
07.09.2020 11:10, Andy Shevchenko пишет: > On Sun, Sep 6, 2020 at 9:51 PM Dmitry Osipenko wrote: >> >> The runtime PM is guaranteed to be always available on Tegra after commit >> 40b2bb1b132a ("ARM: tegra: enforce PM requirement"). Hence let's remove >> all the RPM-availability checking and

[PATCH net-next v2 9/9] net: ethernet: ti: ale: add support for multi port k3 cpsw versions

2020-09-07 Thread Grygorii Strashko
The TI J721E (CPSW9g) ALE version is similar, in general, to Sitara AM3/4/5 CPSW ALE, but has more extended functions and different ALE VLAN entry format. This patch adds support for for multi port TI J721E (CPSW9g) ALE variant. Signed-off-by: Grygorii Strashko ---

Re: [PATCH net-next RFC v1 3/4] devlink: Add hierarchy between traps in device level and port level

2020-09-07 Thread Aya Levin
On 9/6/2020 6:58 PM, Ido Schimmel wrote: On Wed, Sep 02, 2020 at 06:32:13PM +0300, Aya Levin wrote: Managing large scale port's traps may be complicated. This patch introduces a shortcut: when setting a trap on a device and this trap is not registered on this device, the action will take

[PATCH 2/3] ipmi: Add timeout waiting for device GUID

2020-09-07 Thread Markus Boehme
We have observed hosts with misbehaving BMCs that receive a Get Device GUID command but don't respond. This leads to an indefinite wait in the ipmi_msghandler's __get_guid function, showing up as hung task messages for modprobe. According to IPMI 2.0 specification chapter 20, the implementation

[PATCH 3/3] ipmi: Add timeout waiting for channel information

2020-09-07 Thread Markus Boehme
We have observed hosts with misbehaving BMCs that receive a Get Channel Info command but don't respond. This leads to an indefinite wait in the ipmi_msghandler's __scan_channels function, showing up as hung task messages for modprobe. Add a timeout waiting for the channel scan to complete. If the

[PATCH v3 2/2] ARM: dts: sun8i: v3s: Enable crypto engine

2020-09-07 Thread Martin Cerveny
V3s contains crypto engine that is compatible with A33. Add device tree node. Signed-off-by: Martin Cerveny --- arch/arm/boot/dts/sun8i-v3s.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index

[PATCH 1/3] ipmi: Reset response handler when failing to send the command

2020-09-07 Thread Markus Boehme
When failing to send a command we don't expect a response. Clear the `null_user_handler` like is done in the success path. Signed-off-by: Markus Boehme --- drivers/char/ipmi/ipmi_msghandler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v3 1/2] dt-bindings: crypto: Add compatible for V3s

2020-09-07 Thread Martin Cerveny
Allwinner V3s has crypto engine similar to that in A33. So add compatible. Signed-off-by: Martin Cerveny --- .../devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH net-next v2 4/9] net: netcp: ethss: use dev_id for ale configuration

2020-09-07 Thread Grygorii Strashko
The previous patch has introduced possibility to select CPSW ALE by using ALE dev_id identifier. Switch TI Keystone 2 NETCP driver to use dev_id and perform clean up by removing "ale_entries" configuration code. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/netcp_ethss.c | 18

[PATCH v3 0/2] ARM: dts: sun8i: v3s: Enable crypto engine

2020-09-07 Thread Martin Cerveny
Add support for crypto engine (sun4i-ss) for Allwinner V3s. Functionality like A33 so add only compatible and enable in device tree. Regards. Changes since v2: - reduced to device tree only with A33 compatibility Changes since v1: - splitting to patch series martin Cerveny (2): dt-bindings:

[PATCH net-next v2 8/9] net: ethernet: ti: ale: switch to use tables for vlan entry description

2020-09-07 Thread Grygorii Strashko
The ALE VLAN entries are too much differ between different TI CPSW ALE versions. So, handling them using flags, defines and get/set functions became over-complicated. This patch introduces tables to describe the ALE VLAN entries fields, which are different between TI CPSW ALE versions, and new

Re: [PATCH v3 0/7] set clang minimum version to 10.0.1

2020-09-07 Thread Arvind Sankar
On Wed, Sep 02, 2020 at 03:59:04PM -0700, Nick Desaulniers wrote: > Adds a compile time #error to compiler-clang.h setting the effective > minimum supported version to clang 10.0.1. A separate patch has already > been picked up into the Documentation/ tree also confirming the version. > Is

Re: [PATCH 5/6] x86/apic/msi: Use Real PCI DMA device when configuring IRTE

2020-09-07 Thread Lorenzo Pieralisi
On Tue, Jul 28, 2020 at 01:49:44PM -0600, Jon Derrick wrote: > VMD retransmits child device MSI/X with the VMD endpoint's requester-id. > In order to support direct interrupt remapping of VMD child devices, > ensure that the IRTE is programmed with the VMD endpoint's requester-id > using

[PATCH v8 0/2] Modularization of DFL private feature drivers

2020-09-07 Thread Xu Yilun
This patchset makes it possible to develop independent driver modules for DFL private features. It also helps to leverage existing kernel drivers to enable some IP blocks in DFL. Patch #1: Introduce the dfl bus, then dfl devices could be supported by independent dfl drivers. Patch #2:

[PATCH 04/25] ARM: dts: s5pv210: fix pinctrl property of "vibrator-en" regulator in Aries

2020-09-07 Thread Krzysztof Kozlowski
Fix typo in pinctrl property of "vibrator-en" fixed regulator in Aries family of boards. The error caused lack of pin configuration for the GPIO used in vibrator. Fixes: 04568cb58a43 ("ARM: dts: s5pv210: Disable pull for vibrator enable GPIO on Aries boards") Cc: Signed-off-by: Krzysztof

Re: [PATCH] wireless: ath10k: Return early in ath10k_qmi_event_server_exit() to avoid hard crash on reboot

2020-09-07 Thread Kalle Valo
Govind Singh writes: > On 2020-08-28 18:22, Kalle Valo wrote: >> Amit Pundir writes: >> >>> On Mon, 8 Jun 2020 at 17:07, Kalle Valo wrote: > I don't agree with this. If you read through the replies to the bug > report, > it is clear that NS migration uncovered a corner case or

[RFT 05/25] ARM: dts: s5pv210: remove DMA controller bus node name to fix dtschema warnings

2020-09-07 Thread Krzysztof Kozlowski
There is no need to keep DMA controller nodes under AMBA bus node. Remove the "amba" node to fix dtschema warnings like: amba: $nodename:0: 'amba' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Signed-off-by: Krzysztof Kozlowski ---

[PATCH 02/25] dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen

2020-09-07 Thread Krzysztof Kozlowski
The ADC in S3C/S5P/Exynos SoCs can be used also for handling touch screen. In such case the second interrupt is required. This second interrupt can be anyway provided, even without touch screens. This fixes dtbs_check warnings like: arch/arm/boot/dts/s5pv210-aquila.dt.yaml: adc@e170:

[RFT 07/25] ARM: dts: s5pv210: move PMU node out of clock controller

2020-09-07 Thread Krzysztof Kozlowski
The Power Management Unit (PMU) is a separate device which has little common with clock controller. Moving it to one level up (from clock controller child to SoC) allows to remove fake simple-bus compatible and dtbs_check warnings like: clock-controller@e010: $nodename:0:

[RFT 08/25] ARM: dts: s5pv210: remove dedicated 'audio-subsystem' node

2020-09-07 Thread Krzysztof Kozlowski
The 'audio-subsystem' node is an artificial creation, not representing real hardware. The hardware is described by its nodes - AUDSS clock controller and I2S0. Remove the 'audio-subsystem' node along with its undocumented compatible to fix dtbs_check warnings like: audio-subsystem:

[PATCH 10/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Aquilla

2020-09-07 Thread Krzysztof Kozlowski
The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However there is no such clock provider but rather a regulator driver which registers the clock as a regulator. This is an old driver which will not be updated so add a workaround - a fixed-clock to fill missing clock phandle

[RFT 09/25] ARM: dts: s5pv210: fix number of I2S DAI cells

2020-09-07 Thread Krzysztof Kozlowski
The bindings describe I2S DAI has 1 cells. This makes especially sense for i2s0 which registers two DAIs. Adjust the cells to fix dtbs_check warnings like: i2s@e210: #sound-dai-cells:0:0: 1 was expected Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-fascinate4g.dts |

Re: [BUG RT] dump-capture kernel not executed for panic in interrupt context

2020-09-07 Thread peterz
On Mon, Sep 07, 2020 at 02:03:09PM +0200, Joerg Vehlow wrote: > > > On 9/7/2020 1:46 PM, pet...@infradead.org wrote: > > I think it's too complicated for that is needed, did you see my > > suggestion from a year ago? Did i miss something obvious? > > > This one? >

[PATCH 12/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Goni

2020-09-07 Thread Krzysztof Kozlowski
The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However there is no such clock provider but rather a regulator driver which registers the clock as a regulator. This is an old driver which will not be updated so add a workaround - a fixed-clock to fill missing clock phandle

[PATCH] brcmsmac: fix potential memory leak in wlc_phy_attach_lcnphy

2020-09-07 Thread Keita Suzuki
When wlc_phy_txpwr_srom_read_lcnphy fails in wlc_phy_attach_lcnphy, the allocated pi->u.pi_lcnphy is leaked, since struct brcms_phy will be freed in the caller function. Fix this by calling wlc_phy_detach_lcnphy in the error handler of wlc_phy_txpwr_srom_read_lcnphy before returning.

Re: [PATCH] arm64: dts: marvell: espressobin: Add ethernet switch aliases

2020-09-07 Thread Pali Rohár
On Monday 07 September 2020 17:43:53 Andrew Lunn wrote: > > I would not say it is a "new feature". But rather that patch in this > > email fixes issue that Linux kernel did not set correct MAC address for > > DSA slave ports. I think it is something which could be backported also > > to stable

Re: [PATCH v5 00/80] drm/vc4: Support BCM2711 Display Pipeline

2020-09-07 Thread Maxime Ripard
Hi, On Thu, Sep 03, 2020 at 10:00:32AM +0200, Maxime Ripard wrote: > Hi everyone, > > Here's a (pretty long) series to introduce support in the VC4 DRM driver > for the display pipeline found in the BCM2711 (and thus the RaspberryPi 4). > > The main differences are that there's two HDMI

Re: [PATCH v5 75/80] drm/vc4: hdmi: Add pixel BVB clock control

2020-09-07 Thread Maxime Ripard
Hi, On Fri, Sep 04, 2020 at 10:46:26AM +0100, Dave Stevenson wrote: > On Thu, 3 Sep 2020 at 09:03, Maxime Ripard wrote: > > > > From: Hoegeun Kwon > > > > The BCM2711 has another clock that needs to be ramped up depending on the > > pixel rate: the pixel BVB clock. Add the code to adjust that

[PATCH 13/25] ARM: dts: s5pv210: add RTC 32 KHz clock in SMDKC110

2020-09-07 Thread Krzysztof Kozlowski
The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However the PMIC is not described in DTS at all so at least add a workaround to model its clock with a fixed-clock. This fixes dtbs_check warnings: rtc@e280: clocks: [[2, 145]] is too short rtc@e280: clock-names:

[PATCH 17/25] ARM: dts: s5pv210: use defines for GPIO flags in Goni

2020-09-07 Thread Krzysztof Kozlowski
Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-goni.dts

Re: [PATCH 1/2] locking/mutex: Don't hog RCU read lock while optimistically spinning

2020-09-07 Thread Will Deacon
On Fri, Aug 07, 2020 at 12:16:35PM -0700, Sultan Alsawaf wrote: > From: Sultan Alsawaf > > There's no reason to hold an RCU read lock the entire time while > optimistically spinning for a mutex lock. This can needlessly lengthen > RCU grace periods and slow down synchronize_rcu() when it doesn't

Re: [RFC PATCH 01/16] mm: add pagechain container for storing multiple pages.

2020-09-07 Thread Zi Yan
On 7 Sep 2020, at 8:22, Kirill A. Shutemov wrote: > On Wed, Sep 02, 2020 at 02:06:13PM -0400, Zi Yan wrote: >> From: Zi Yan >> >> When depositing page table pages for 1GB THPs, we need 512 PTE pages + >> 1 PMD page. Instead of counting and depositing 513 pages, we can use the >> PMD page as a

[PATCH v7 3/3] hv_netvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardening

2020-09-07 Thread Andrea Parri (Microsoft)
From: Andres Beltran Currently, pointers to guest memory are passed to Hyper-V as transaction IDs in netvsc. In the face of errors or malicious behavior in Hyper-V, netvsc should not expose or trust the transaction IDs returned by Hyper-V to be valid guest memory addresses. Instead, use small

[PATCH v7 2/3] scsi: storvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardening

2020-09-07 Thread Andrea Parri (Microsoft)
From: Andres Beltran Currently, pointers to guest memory are passed to Hyper-V as transaction IDs in storvsc. In the face of errors or malicious behavior in Hyper-V, storvsc should not expose or trust the transaction IDs returned by Hyper-V to be valid guest memory addresses. Instead, use small

[PATCH v7 1/3] Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening

2020-09-07 Thread Andrea Parri (Microsoft)
From: Andres Beltran Currently, VMbus drivers use pointers into guest memory as request IDs for interactions with Hyper-V. To be more robust in the face of errors or malicious behavior from a compromised Hyper-V, avoid exposing guest memory addresses to Hyper-V. Also avoid Hyper-V giving back a

[RFT 20/25] ARM: dts: s5pv210: move fixed regulators under root node in Aquila

2020-09-07 Thread Krzysztof Kozlowski
The fixed regulators are kept under dedicated "regulators" node but this causes multiple dtschema warnings: regulators: $nodename:0: 'regulators' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' regulators: #size-cells:0:0: 0 is not one of [1, 2] regulators:

[RFT 21/25] ARM: dts: s5pv210: move fixed regulators under root node in Goni

2020-09-07 Thread Krzysztof Kozlowski
The fixed regulators are kept under dedicated "regulators" node but this causes multiple dtschema warnings: regulators: $nodename:0: 'regulators' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' regulators: #size-cells:0:0: 0 is not one of [1, 2] regulators:

[PATCH 15/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Torbreck

2020-09-07 Thread Krzysztof Kozlowski
The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However the PMIC is not described in DTS at all so at least add a workaround to model its clock with a fixed-clock. This fixes dtbs_check warnings: rtc@e280: clocks: [[2, 145]] is too short rtc@e280: clock-names:

[PATCH v7 0/3] Drivers: hv: vmbus: vmbus_requestor data structure for VMBus hardening

2020-09-07 Thread Andrea Parri (Microsoft)
Currently, VMbus drivers use pointers into guest memory as request IDs for interactions with Hyper-V. To be more robust in the face of errors or malicious behavior from a compromised Hyper-V, avoid exposing guest memory addresses to Hyper-V. Also avoid Hyper-V giving back a bad request ID that is

[RFT 22/25] ARM: dts: s5pv210: replace deprecated "gpios" i2c-gpio property in Aquila

2020-09-07 Thread Krzysztof Kozlowski
"gpios" property is deprecated. Update the Aquila DTS to fix dtbs_checks warnings like: i2c-pmic: 'sda-gpios' is a required property i2c-pmic: 'scl-gpios' is a required property Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aquila.dts | 4 ++-- 1 file changed, 2

Re: [PATCH] ath10k: Use bdf calibration variant for snoc targets

2020-09-07 Thread Kalle Valo
"Rakesh Pillai" writes: >> > --- a/drivers/net/wireless/ath/ath10k/qmi.c >> > +++ b/drivers/net/wireless/ath/ath10k/qmi.c >> > @@ -576,6 +576,8 @@ static int ath10k_qmi_cap_send_sync_msg(struct >> ath10k_qmi *qmi) >> >if (resp->chip_info_valid) { >> >qmi->chip_info.chip_id =

Re: [PATCH] drm: mxsfb: check framebuffer pitch

2020-09-07 Thread Laurent Pinchart
Hi Stefan, Thank you for the patch. On Mon, Sep 07, 2020 at 06:03:43PM +0200, Stefan Agner wrote: > The lcdif IP does not support a framebuffer pitch (stride) other than > the CRTC width. Check for equality and reject the state otherwise. > > This prevents a distorted picture when using 640x800

[PATCH 18/25] ARM: dts: s5pv210: use defines for IRQ flags in SMDKV210

2020-09-07 Thread Krzysztof Kozlowski
Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-smdkv210.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/s5pv210-smdkv210.dts

[PATCH 14/25] ARM: dts: s5pv210: add RTC 32 KHz clock in SMDKV210

2020-09-07 Thread Krzysztof Kozlowski
The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However the PMIC is not described in DTS at all so at least add a workaround to model its clock with a fixed-clock. This fixes dtbs_check warnings: rtc@e280: clocks: [[2, 145]] is too short rtc@e280: clock-names:

[RFT 23/25] ARM: dts: s5pv210: replace deprecated "gpios" i2c-gpio property in Goni

2020-09-07 Thread Krzysztof Kozlowski
"gpios" property is deprecated. Update the Goni DTS to fix dtbs_checks warnings like: i2c-pmic: 'sda-gpios' is a required property i2c-pmic: 'scl-gpios' is a required property Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 4 ++-- 1 file changed, 2

tracer_init_tracefs really slow

2020-09-07 Thread Lucas Stach
Hi all, one of my colleagues has taken a look at device boot times and stumbled across a pretty big amount of kernel boot time being spent in tracer_init_tracefs(). On this particular i.MX6Q based device the kernel spends more than 1 second in this function, which is a significant amount of the

Re: [PATCH v5 00/80] drm/vc4: Support BCM2711 Display Pipeline

2020-09-07 Thread Maxime Ripard
Hi! On Fri, Sep 04, 2020 at 06:16:16PM +0800, Jian-Hong Pan wrote: > Thanks for version 5 patch series! > > I applied it based on linux-next tag next-20200828 and build it with > the config [1] to test on RPi 4 > However, It fails to get HDMI state machine clock and pixel bcb clock. > Then,

Re: [PATCH v3 1/2] PCI: iproc: Set affinity mask on MSI interrupts

2020-09-07 Thread Lorenzo Pieralisi
On Mon, Aug 03, 2020 at 03:52:40PM +1200, Mark Tomlinson wrote: > The core interrupt code expects the irq_set_affinity call to update the > effective affinity for the interrupt. This was not being done, so update > iproc_msi_irq_set_affinity() to do so. > > Fixes: 3bc2b2348835 ("PCI: iproc: Add

[RFT 24/25] ARM: dts: s5pv210: align SPI GPIO node name with dtschema in Aries

2020-09-07 Thread Krzysztof Kozlowski
The device tree schema expects SPI controller to be named "spi", otherwise dtbs_check complain with a warning like: spi-gpio-0: $nodename:0: 'spi-gpio-0' does not match '^spi(@.*|-[0-9a-f])*$' Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aries.dtsi | 2 +- 1 file changed,

Re: [PATCH v2] gpio: siox: explicitly support only threaded irqs

2020-09-07 Thread Uwe Kleine-König
Hello Ahmad, On Mon, Sep 07, 2020 at 05:31:35PM +0200, Ahmad Fatoum wrote: > The gpio-siox driver uses handle_nested_irq() to implement its > interrupt support. This is only capable of handling threaded irq > actions. For a hardirq action it triggers a NULL pointer oops. > (It calls

[PATCH 19/25] ARM: dts: s5pv210: use defines for IRQ flags in Goni

2020-09-07 Thread Krzysztof Kozlowski
Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/s5pv210-goni.dts b/arch/arm/boot/dts/s5pv210-goni.dts

[RFT 25/25] ARM: dts: s5pv210: align DMA channels with dtschema

2020-09-07 Thread Krzysztof Kozlowski
dtschema expects DMA channels in specific order (tx, rx and tx-sec). The order actually should not matter because dma-names is used however let's make it aligned with dtschema to suppress warnings like: i2s@eee3: dma-names: ['rx', 'tx', 'tx-sec'] is not valid under any of the given schemas

[PATCH 16/25] ARM: dts: s5pv210: use defines for GPIO flags in Aquila

2020-09-07 Thread Krzysztof Kozlowski
Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aquila.dts | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-aquila.dts

[RFT 06/25] ARM: dts: s5pv210: move fixed clocks under root node

2020-09-07 Thread Krzysztof Kozlowski
The fixed clocks are kept under dedicated 'external-clocks' node, thus a fake 'reg' was added. This is not correct with dtschema as fixed-clock binding does not have a 'reg' property. Moving fixed clocks out of 'soc' to root node fixes multiple dtbs_check warnings: external-clocks:

[PATCH 11/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Aries family

2020-09-07 Thread Krzysztof Kozlowski
The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However there is no such clock provider but rather a regulator driver which registers the clock as a regulator. This is an old driver which will not be updated so add a workaround - a fixed-clock to fill missing clock phandle

[PATCH 03/25] dt-bindings: iio: adc: exynos-adc: do not require syscon on S5Pv210

2020-09-07 Thread Krzysztof Kozlowski
The ADC in S5Pv210 does not have ADC phy registers in separate block for which syscon would be needed. Remove this requirement to fix dtbs_check warnings like: arch/arm/boot/dts/s5pv210-fascinate4g.dt.yaml: adc@e170: 'samsung,syscon-phandle' is a required property Signed-off-by:

[PATCH 01/25] dt-bindings: samsung: pmu: document S5Pv210

2020-09-07 Thread Krzysztof Kozlowski
Add compatible for the Samsung S5Pv210 SoC PMU. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/samsung/pmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/pmu.yaml

[PATCH 00/25] ARM: dts: s5pv210: Cleanup - dtschema warnings

2020-09-07 Thread Krzysztof Kozlowski
Hi The patchset tries to remove most of the dtschema warnings. Due to lack of hardware it was not tested. Best regards, Krzysztof Krzysztof Kozlowski (25): dt-bindings: samsung: pmu: document S5Pv210 dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen

Re: [PATCH 0/2] ath10k: Add chain-1 voltage regulator voting

2020-09-07 Thread Kalle Valo
Doug Anderson writes: > Hi, > > On Fri, Jun 26, 2020 at 11:02 AM Rakesh Pillai wrote: >> >> Add the support to vote for the chain-1 >> voltage regulator for WCN3990. This is >> added as an optional property. >> >> Rakesh Pillai (2): >> dt: bindings: Add new regulator as optional property for

Re: [PATCH v5 11/36] i2c: tegra: Use clk-bulk helpers

2020-09-07 Thread Dmitry Osipenko
07.09.2020 11:21, Andy Shevchenko пишет: > On Sun, Sep 6, 2020 at 9:51 PM Dmitry Osipenko wrote: >> >> Use clk-bulk helpers and factor out clocks initialization into separate >> function in order to make code cleaner. > > Suggested-by? (If you consider it appropriate) Sure! It turned out to be

Re: [PATCH v5 13/36] i2c: tegra: Clean up probe function

2020-09-07 Thread Dmitry Osipenko
07.09.2020 11:20, Andy Shevchenko пишет: > On Sun, Sep 6, 2020 at 9:51 PM Dmitry Osipenko wrote: >> >> The driver's probe function code is a bit difficult to read. This patch >> reorders code of the probe function, forming groups of code that are easy >> to work with. The reset_control_get() now

Re: [PATCH net-next 9/9] net: ethernet: ti: ale: add support for multi port k3 cpsw versions

2020-09-07 Thread Grygorii Strashko
Hi Jakub, On 05/09/2020 03:10, Jakub Kicinski wrote: On Sat, 5 Sep 2020 02:09:24 +0300 Grygorii Strashko wrote: The TI J721E (CPSW9g) ALE version is similar, in general, to Sitara AM3/4/5 CPSW ALE, but has more extended functions and different ALE VLAN entry format. This patch adds support

Re: [PATCH] i2c: amd_mp2: handle num is 0 input for i2c_amd_xfer

2020-09-07 Thread Wolfram Sang
On Fri, Sep 04, 2020 at 11:06:47AM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analyzer reports this problem > > i2c-amd-mp2-plat.c:174:9: warning: Branch condition evaluates > to a garbage value > return err ? err : num; >^~~ > > err is not

Re: [PATCH net-next v3 1/3] net: dp83869: Add ability to advertise Fiber connection

2020-09-07 Thread Andrew Lunn
On Sat, Sep 05, 2020 at 11:17:55AM -0700, Jakub Kicinski wrote: > On Thu, 3 Sep 2020 06:42:57 -0500 Dan Murphy wrote: > > Add the ability to advertise the Fiber connection if the strap or the > > op-mode is configured for 100Base-FX. > > > > Auto negotiation is not supported on this PHY when in

Re: [PATCH v6 6/6] PCI: uniphier: Add error message when failed to get phy

2020-09-07 Thread Kunihiko Hayashi
Hi Rob, On 2020/09/04 7:25, Rob Herring wrote: On Fri, Aug 21, 2020 at 1:05 AM Kunihiko Hayashi wrote: On 2020/08/18 1:39, Rob Herring wrote: On Fri, Aug 7, 2020 at 4:25 AM Kunihiko Hayashi wrote: Even if phy driver doesn't probe, the error message can't be distinguished from other

Re: [PATCH 23/23] Documentation: gpio: add documentation for gpio-mockup

2020-09-07 Thread Bartosz Golaszewski
On Mon, Sep 7, 2020 at 5:23 PM Geert Uytterhoeven wrote: > > Hi Andy, > > On Mon, Sep 7, 2020 at 4:14 PM Andy Shevchenko > wrote: > > On Mon, Sep 07, 2020 at 03:49:23PM +0200, Bartosz Golaszewski wrote: > > > On Mon, Sep 7, 2020 at 2:22 PM Greg Kroah-Hartman > > > wrote: > > > > On Mon, Sep 07,

Re: [PATCH v6 5/6] PCI: uniphier: Add iATU register support

2020-09-07 Thread Kunihiko Hayashi
Hi Rob, On 2020/09/04 7:12, Rob Herring wrote: On Fri, Aug 21, 2020 at 1:05 AM Kunihiko Hayashi wrote: On 2020/08/18 1:48, Rob Herring wrote: On Fri, Aug 7, 2020 at 4:25 AM Kunihiko Hayashi wrote: This gets iATU register area from reg property. In Synopsys DWC version 4.80 or later,

Re: [PATCH] arm64: fix some spelling mistakes in the comments by codespell

2020-09-07 Thread Will Deacon
On Fri, 28 Aug 2020 11:18:22 +0800, Xiaoming Ni wrote: > Applied to arm64 (for-next/tpyos), thanks! [1/1] arm64: fix some spelling mistakes in the comments by codespell https://git.kernel.org/arm64/c/ad14c19242b5 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev

Re: [PATCH v4 10/10] vfio/fsl-mc: Add support for device reset

2020-09-07 Thread Diana Craciun OSS
Hi Eric, On 9/4/2020 11:21 AM, Auger Eric wrote: Hi Diana, On 8/26/20 11:33 AM, Diana Craciun wrote: Currently only resetting the DPRC container is supported which will reset all the objects inside it. Resetting individual objects is possible from the userspace by issueing commands towards MC

Re: [PATCH v5 06/36] i2c: tegra: Runtime PM always available on Tegra

2020-09-07 Thread Dmitry Osipenko
07.09.2020 18:34, Andy Shevchenko пишет: > On Mon, Sep 7, 2020 at 6:25 PM Dmitry Osipenko wrote: >> 07.09.2020 18:05, Andy Shevchenko пишет: >>> On Mon, Sep 7, 2020 at 5:32 PM Dmitry Osipenko wrote: 07.09.2020 11:10, Andy Shevchenko пишет: > > ... > Would be great if anyone could put

Re: [PATCH] iommu/arm-smmu-v3: Fix l1 stream table size in the error message

2020-09-07 Thread Will Deacon
On Wed, 26 Aug 2020 22:17:58 +0800, Zenghui Yu wrote: > The actual size of level-1 stream table is l1size. This looks like an > oversight on commit d2e88e7c081ef ("iommu/arm-smmu: Fix LOG2SIZE setting > for 2-level stream tables") which forgot to update the @size in error > message as well. > >

Re: [PATCH] arm64: traps: Add str of description to panic() in die()

2020-09-07 Thread Will Deacon
On Tue, 4 Aug 2020 16:53:47 +0800, Yue Hu wrote: > Currently, there are different description strings in die() such as > die("Oops",,), die("Oops - BUG",,). And panic() called by die() will > always show "Fatal exception" or "Fatal exception in interrupt". > > Note that panic() will run any panic

Re: [PATCH v2 0/2] ACPI/IORT: Code cleanups

2020-09-07 Thread Will Deacon
On Tue, 18 Aug 2020 14:36:23 +0800, Zenghui Yu wrote: > * From v1 [1]: > - As pointed out by Hanjun, remove two now unused inline functions. > Compile tested with CONFIG_IOMMU_API is not selected. > > [1] https://lore.kernel.org/r/20200817105946.1511-1-yuzeng...@huawei.com > > Zenghui Yu

Re: [PATCH 1/2] dt-bindings: clock: mediatek: add bindings for MT8167 clocks

2020-09-07 Thread Fabien Parent
Hi Chun-Kuang, > Why don't you add compatible of "mediatek,mt8167-mmsys"? I forgot to remove 'mmsys' from the commit message. I decided to add the documentation as part of the series that add support for MT8167 to drivers/soc/mediatek/mtk-mmsys.c. If you think it would be better to document it

Re: [PATCH] arm64: perf: Add general hardware LLC events for PMUv3

2020-09-07 Thread Will Deacon
On Tue, 11 Aug 2020 13:35:05 +0800, Leo Yan wrote: > This patch is to add the general hardware last level cache (LLC) events > for PMUv3: one event is for LLC access and another is for LLC miss. > > With this change, perf tool can support last level cache profiling, > below is an example to

Re: [PATCH] arm64/numa: Fix a typo in comment of arm64_numa_init

2020-09-07 Thread Will Deacon
On Tue, 1 Sep 2020 17:11:54 +0800, yanfei...@windriver.com wrote: > Fix a typo in comment of arm64_numa_init. 'encomapssing' should > be 'encompassing'. Applied to arm64 (for-next/tpyos), thanks! [1/1] arm64/numa: Fix a typo in comment of arm64_numa_init

[PATCH 1/2] dt-bindings: media: renesas,vin: Add device tree support for r8a7742

2020-09-07 Thread Lad Prabhakar
Add compatible string for r8a7742. No driver change is needed as "renesas,rcar-gen2-vin" will activate the right code. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- Documentation/devicetree/bindings/media/renesas,vin.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

<    3   4   5   6   7   8   9   10   11   12   >