Re: [PATCH for-5.8 v2] usb: dwc2: Add missing cleanups when usb_add_gadget_udc() fails

2020-07-04 Thread Minas Harutyunyan
On 7/4/2020 2:50 AM, Martin Blumenstingl wrote: > Call dwc2_debugfs_exit() and dwc2_hcd_remove() (if the HCD was enabled > earlier) when usb_add_gadget_udc() has failed. This ensures that the > debugfs entries created by dwc2_debugfs_init() as well as the HCD are > cleaned up in the error path.

Re: [PATCH v2] i2c: algo-pca: Add 0x78 as SCL stuck low status

2020-07-04 Thread Wolfram Sang
On Thu, Jul 02, 2020 at 10:39:11AM +1200, Chris Packham wrote: > The PCA9665 datasheet says that I2CSTA = 78h indicates that SCL is stuck > low, this differs to the PCA9564 which uses 90h for this indication. > Treat either 0x78 or 0x90 as an indication that the SCL line is stuck. > > Based on

Re: [PATCH 11/30] usb: dwc2: gadget: Avoid pointless read of EP control register

2020-07-04 Thread Greg KH
On Fri, Jul 03, 2020 at 06:16:26PM +0100, Lee Jones wrote: > On Fri, 03 Jul 2020, Minas Harutyunyan wrote: > > > Hi, > > > > On 7/3/2020 11:29 AM, Greg KH wrote: > > > On Thu, Jul 02, 2020 at 03:46:06PM +0100, Lee Jones wrote: > > >> Commit ec1f9d9f01384 ("usb: dwc2: gadget: parity fix in

Re: [PATCH 3/4] Documentation: PCI: pci-error-recovery: drop doubled words

2020-07-04 Thread Linas Vepstas
Acked-by: Linas Vepstas for this and the other patches in the series. On Fri, Jul 3, 2020 at 4:22 PM Randy Dunlap wrote: > > Drop the doubled word "the". > > Signed-off-by: Randy Dunlap > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: Bjorn Helgaas > Cc: Linas Vepstas > Cc:

Re: [PATCH v6] i2c: designware: platdrv: Set class based on DMI

2020-07-04 Thread Wolfram Sang
On Thu, Jul 02, 2020 at 12:33:21PM +0200, Ricardo Ribalda wrote: > Current AMD's zen-based APUs use this core for some of its i2c-buses. > > With this patch we re-enable autodetection of hwmon-alike devices, so > lm-sensors will be able to work automatically. > > It does not affect the boot-time

Re: [PATCH] i2c: jz4780: remove redundant assignment to variable i

2020-07-04 Thread Wolfram Sang
On Wed, Jun 10, 2020 at 01:59:01PM +0100, Colin King wrote: > From: Colin Ian King > > The variable i is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused

arch/sparc/include/asm/floppy_32.h:319:17: sparse: sparse: incorrect type in assignment (different address spaces)

2020-07-04 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6f216714a6906d6d5d0654313d9f9a47613bb473 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 2 weeks ago config: sparc-randconfig-s032-20200703

Re: [PATCH v2 2/2] i2c: fsi: Prevent adding adapters for ports without dts nodes

2020-07-04 Thread Wolfram Sang
On Tue, Jun 09, 2020 at 03:15:55PM -0500, Eddie James wrote: > Ports should be defined in the devicetree if they are to be enabled on > the system. The patch description does not really fit anymore, does it? There is no change in behaviour, we just remove a redundant check. > > Signed-off-by:

Re: [PATCH V1 0/5] riscv: Add k/uprobe supported

2020-07-04 Thread Pekka Enberg
On Sat, Jul 4, 2020 at 6:34 AM wrote: > The patchset includes kprobe/uprobe support and some related fixups. Nice! On Sat, Jul 4, 2020 at 6:34 AM wrote: > There is no single step exception in riscv ISA, so utilize ebreak to > simulate. Some pc related instructions couldn't be executed out of

WARNING in __cfg80211_connect_result

2020-07-04 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:23212a70 Merge branch 'mptcp-add-receive-buffer-auto-tuning' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=155842d510 kernel config: https://syzkaller.appspot.com/x/.config?x=829871134ca5e230

BUG: Bad page state (7)

2020-07-04 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:36e3135d Add linux-next specific files for 20200626 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=14ae892310 kernel config: https://syzkaller.appspot.com/x/.config?x=da5d3b3f1820f562 dashboard

Re: [PATCH] i2c: rk3x: support master_xfer_atomic

2020-07-04 Thread Wolfram Sang
On Tue, Jun 23, 2020 at 01:06:46PM +0100, John Keeping wrote: > Enable i2c transactions in irq disabled contexts like poweroff where the > PMIC is connected via i2c. > > Signed-off-by: John Keeping Applied to for-next, thanks! signature.asc Description: PGP signature

[no subject]

2020-07-04 Thread George
Did you receive my last mail

[GIT PULL] xen: branch for v5.8-rc4

2020-07-04 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.8b-rc4-tag xen: branch for v5.8-rc4 It contains only 1 small cleanup patch for ARM and two patches for the xenbus driver fixinf latent problems (large stack allocations and bad

Re: [PATCH v2 00/15] Make the user mode driver code a better citizen

2020-07-04 Thread Tetsuo Handa
On 2020/07/04 7:25, Eric W. Biederman wrote: > Tetsuo Handa writes: > >> On 2020/07/02 22:08, Eric W. Biederman wrote: By the way, commit 4a9d4b024a3102fc ("switch fput to task_work_add") says that use of flush_delayed_fput() has to be careful. Al, is it safe to call

Re: [GIT PULL] CIFS/SMB3 Fixes

2020-07-04 Thread pr-tracker-bot
The pull request you sent on Fri, 3 Jul 2020 22:44:08 -0500: > git://git.samba.org/sfrench/cifs-2.6.git tags/5.8-rc3-smb3-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b8e516b36748fd87943e54596a8a6f04ec05f1a5 Thank you! -- Deet-doot-dot, I am a bot.

Re: [git pull] sysctl fix

2020-07-04 Thread pr-tracker-bot
The pull request you sent on Sat, 4 Jul 2020 06:07:01 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8b082a41dae7d420db649bffe86cf5af62121f11 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] xen: branch for v5.8-rc4

2020-07-04 Thread pr-tracker-bot
The pull request you sent on Sat, 4 Jul 2020 08:57:02 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git > for-linus-5.8b-rc4-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/35e884f89df4c48566d745dc5a97a0d058d04263 Thank you! -- Deet-doot-dot,

[PATCH] blk-mq: Remove unnecessary local variable

2020-07-04 Thread Baolin Wang
Remove unnecessary local variable 'ret' in blk_mq_dispatch_hctx_list(). Signed-off-by: Baolin Wang --- block/blk-mq-sched.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c index 1c52e56a19b1..b8db72cf1043 100644 ---

[PATCH] blk-mq: Remove unnecessary validation before calling blk_mq_sched_completed_request()

2020-07-04 Thread Baolin Wang
We've already validated the 'q->elevator' before calling ->ops.completed_request() in blk_mq_sched_completed_request(), thus no need to validate rq->internal_tag again, and remove it. Signed-off-by: Baolin Wang --- block/blk-mq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH net] hinic: fix sending mailbox timeout in aeq event work

2020-07-04 Thread Luo bin
When sending mailbox in the work of aeq event, another aeq event will be triggered. because the last aeq work is not exited and only one work can be excuted simultaneously in the same workqueue, mailbox sending function will return failure of timeout. We create and use another workqueue to fix

Re: [PATCH 3/7] Documentation: networking: can_ucan_protocol: drop doubled words

2020-07-04 Thread Marc Kleine-Budde
On 7/4/20 12:41 AM, Randy Dunlap wrote: > Drop the doubled words "the" and "of". > > Signed-off-by: Randy Dunlap > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: "David S. Miller" > Cc: Jakub Kicinski > Cc: net...@vger.kernel.org > Cc: Wolfgang Grandegger > Cc: Marc Kleine-Budde

[tip: irq/core] sparc64: Deselect IRQ_PREFLOW_FASTEOI

2020-07-04 Thread tip-bot2 for Valentin Schneider
The following commit has been merged into the irq/core branch of tip: Commit-ID: 959f53bd90c3ac70e5481199c6159f6314f9f910 Gitweb: https://git.kernel.org/tip/959f53bd90c3ac70e5481199c6159f6314f9f910 Author:Valentin Schneider AuthorDate:Fri, 03 Jul 2020 16:56:44 +01:00

[tip: irq/core] genirq: Remove preflow handler support

2020-07-04 Thread tip-bot2 for Valentin Schneider
The following commit has been merged into the irq/core branch of tip: Commit-ID: 8fa88a88d573093868565a1afba43b5ae5b3a316 Gitweb: https://git.kernel.org/tip/8fa88a88d573093868565a1afba43b5ae5b3a316 Author:Valentin Schneider AuthorDate:Fri, 03 Jul 2020 16:56:45 +01:00

Re: [PATCH v4 01/18] nitro_enclaves: Add ioctl interface definition

2020-07-04 Thread Paraschiv, Andra-Irina
On 02/07/2020 18:24, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves driver handles the enclave lifetime management. This includes enclave creation, termination and setting up its resources such as memory and CPU. An enclave runs alongside the VM that

Re: [PATCH v4 02/18] nitro_enclaves: Define the PCI device interface

2020-07-04 Thread Paraschiv, Andra-Irina
On 02/07/2020 18:24, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves (NE) driver communicates with a new PCI device, that is exposed to a virtual machine (VM) and handles commands meant for handling enclaves lifetime e.g. creation, termination, setting

Re: [PATCH v4 03/18] nitro_enclaves: Define enclave info for internal bookkeeping

2020-07-04 Thread Paraschiv, Andra-Irina
On 02/07/2020 18:24, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves driver keeps an internal info per each enclave. This is needed to be able to manage enclave resources state, enclave notifications and have a reference of the PCI device that handles

[PATCH v2 1/3] um/kconfig: introduce CC_CAN_LINK_STATIC_NO_RUNTIME_DEPS

2020-07-04 Thread Ignat Korchagin
For statically linked UML build it is important to take into account the standard C-library implementation. Some implementations, notably glibc have caveats: even when linked statically, the final program might require some runtime dependencies, if certain functions are used within the code.

[PATCH v2 3/3] um: allow static linking for non-glibc implementations

2020-07-04 Thread Ignat Korchagin
It is possible to produce a statically linked UML binary with UML_NET_VECTOR, UML_NET_VDE and UML_NET_PCAP options enabled using alternative libc implementations, which do not rely on NSS, such as musl. Allow static linking in this case. Signed-off-by: Ignat Korchagin --- arch/um/Kconfig

[PATCH v2 2/3] um: some fixes to build UML with musl

2020-07-04 Thread Ignat Korchagin
musl toolchain and headers are a bit more strict. These fixes enable building UML with musl as well as seem not to break on glibc. Signed-off-by: Ignat Korchagin --- arch/um/drivers/daemon_user.c | 1 + arch/um/drivers/pcap_user.c | 12 ++-- arch/um/drivers/slip_user.c | 2 +-

[PATCH v2 0/3] um: allow static linking for non-glibc libc implementations

2020-07-04 Thread Ignat Korchagin
This is a continuation of [1]. Since I was able to produce a working UML binary with UML_NET_VECTOR linked with musl with the changes included in the patches here. I was compiling on Arch Linux, so hopefully all the latest versions of the compiler, libraries and binutils. I also tested

Re: [PATCH v2] clk: rockchip: use separate compatibles for rk3288w-cru

2020-07-04 Thread Jagan Teki
On Fri, Jul 3, 2020 at 9:19 PM Heiko Stuebner wrote: > > From: Heiko Stuebner > > Commit 1627f683636d ("clk: rockchip: Handle clock tree for rk3288w variant") > added the check for rk3288w-specific clock-tree changes but in turn would > require a double-compatible due to re-using the main

[PATCH v7 1/2] dt-binding: Add DSI/LVDS TC358775 bridge bindings

2020-07-04 Thread Vinay Simha BN
- converted from .txt to .yaml - dual-link lvds port added and implemented - dsi data-lanes property removed, it will be picked from dsi0 ports - VESA/JEIDA formats picked from panel-lvds dts - proper indentation - single-link and dual-link lvds description and examples are added - license

[PATCH v7 2/2] display/drm/bridge: TC358775 DSI/LVDS driver

2020-07-04 Thread Vinay Simha BN
This driver is tested with two panels individually with Apq8016-IFC6309 board https://www.inforcecomputing.com/products/single-board-computers-sbc/qualcomm-snapdragon-410-inforce-6309-micro-sbc 1. 1366x768@60 auo,b101xtn01 data-mapping = "jeida-24" 2. 800x480@60 innolux,at070tn92 data-mapping =

Re: [PATCH v3 1/3] crash: add VMCOREINFO macro to define offset in a struct declared by typedef

2020-07-04 Thread Baoquan He
On 06/18/20 at 04:55pm, John Ogness wrote: > The existing macro VMCOREINFO_OFFSET() can't be used for structures > declared via typedef because "struct" is not part of type definition. > > Create another macro for this purpose. > > Signed-off-by: John Ogness > --- > include/linux/crash_core.h

Re: [PATCHv3 2/6] irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts

2020-07-04 Thread Marc Zyngier
On 2020-07-03 15:28, Grzegorz Jaszczyk wrote: On Thu, 2 Jul 2020 at 19:24, Marc Zyngier wrote: On 2020-07-02 15:17, Grzegorz Jaszczyk wrote: > From: Suman Anna > > The Programmable Real-Time Unit Subsystem (PRUSS) contains a local > interrupt controller (INTC) that can handle various system

Re: [PATCH 0/2] genirq: Kill preflow handlers

2020-07-04 Thread Marc Zyngier
Hi Valentin, On 2020-07-03 16:56, Valentin Schneider wrote: Hi, while strolling around the different flow handlers, I tried to make sense of what preflow_handler() was about. Turns out no one uses those anymore, but the genirq support has remained in place. If we needed to reintroduce

[PATCH v2] ARM: dts: rockchip: Add usb host0 ohci node for rk3288

2020-07-04 Thread Jagan Teki
rk3288 and rk3288w have a usb host0 ohci controller. Although rk3288 ohci doesn't actually work on hardware, but rk3288w ohci can work well. So add usb host0 ohci node in rk3288 dtsi and the quirk in ohci platform driver will disable ohci on rk3288. Cc: William Wu Signed-off-by: Jagan Teki

Re: [PATCH v4 04/18] nitro_enclaves: Init PCI device driver

2020-07-04 Thread Paraschiv, Andra-Irina
On 02/07/2020 18:09, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves PCI device is used by the kernel driver as a means of communication with the hypervisor on the host where the primary VM and the enclaves run. It handles requests with regard to enclave

Re: [PATCH RESEND net-next v3 0/3] net: enetc: remove bootloader dependency

2020-07-04 Thread Russell King - ARM Linux admin
On Thu, Jul 02, 2020 at 12:41:39PM +0300, Vladimir Oltean wrote: > On Thu, 2 Jul 2020 at 11:41, Russell King - ARM Linux admin > wrote: > > > > On Thu, Jul 02, 2020 at 01:04:02AM +0300, Vladimir Oltean wrote: > > > On Thu, 2 Jul 2020 at 00:53, Russell King - ARM Linux admin > > > wrote: > > > >

Re: [PATCH v4 1/2] gpio: add GPO driver for PCA9570

2020-07-04 Thread Andy Shevchenko
On Fri, Jul 3, 2020 at 3:13 AM Sungbo Eo wrote: > On 2020-07-02 21:36, Andy Shevchenko wrote: > >> + gpio->chip.ngpio = i2c_match_id(pca9570_id_table, > >> client)->driver_data; > > > > Oh, avoid direct access to the table like this. And you may simply use > > device_get_match_data(). > >

Re: [PATCH] arm64: dts: exynos: Add minimal bootargs

2020-07-04 Thread Krzysztof Kozlowski
On Sat, Jul 04, 2020 at 12:19:40AM +0530, Alim Akhtar wrote: > Adding Krzysztof's correct email address. > Sorry about noise. > > > -Original Message- > > From: Alim Akhtar > > Sent: 03 July 2020 23:56 > > To: r...@kernel.org > > Cc: devicet...@vger.kernel.org;

[PATCH v2 00/14] Add regulator devfreq support to Panfrost

2020-07-04 Thread Clément Péron
Hi, This serie cleans and adds regulator support to Panfrost devfreq. This is mostly based on comment for the freshly introduced lima devfreq. We need to add regulator support because on Allwinner the GPU OPP table defines both frequencies and voltages. First patches [01-07] should not change

[PATCH v2 03/14] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-07-04 Thread Clément Péron
This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_job.c | 4 1

[PATCH v2 09/14] drm/panfrost: dynamically alloc regulators

2020-07-04 Thread Clément Péron
We will later introduce regulators managed by OPP. Only alloc regulators when it's needed. This also help use to release the regulators only when they are allocated. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_device.c | 14 +-

[PATCH v2 11/14] arm64: defconfig: Enable devfreq cooling device

2020-07-04 Thread Clément Péron
Devfreq cooling device framework is used in Panfrost to throttle GPU in order to regulate its temperature. Enable this driver for ARM64 SoC. Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig

[PATCH v2 14/14] [DO NOT MERGE] arm64: dts: allwinner: force GPU regulator to be always

2020-07-04 Thread Clément Péron
Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts index 3f7ceeb1a767..14257f7476b8 100644

[PATCH v2 01/14] drm/panfrost: avoid static declaration

2020-07-04 Thread Clément Péron
This declaration can be avoided so change it. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 38 ++--- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c

[PATCH v2 10/14] drm/panfrost: add regulators to devfreq

2020-07-04 Thread Clément Péron
Some OPP tables specify voltage for each frequency. Devfreq can handle these regulators but they should be get only 1 time to avoid issue and know who is in charge. If OPP table is probe don't init regulator. Signed-off-by: Clément Péron Reviewed-by: Steven Price ---

[PATCH v2 06/14] drm/panfrost: properly handle error in probe

2020-07-04 Thread Clément Péron
Introduce a boolean to know if opp table has been added. With this, we can call panfrost_devfreq_fini() in case of error and release what has been initialised. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 25 -

[PATCH v2 07/14] drm/panfrost: rename error labels in device_init

2020-07-04 Thread Clément Péron
Rename goto labels in device_init it will be easier to maintain. Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_device.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c

[PATCH v2 02/14] drm/panfrost: clean headers in devfreq

2020-07-04 Thread Clément Péron
Don't include not required headers and sort them. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c

[PATCH v2 05/14] drm/panfrost: use spinlock instead of atomic

2020-07-04 Thread Clément Péron
Convert busy_count to a simple int protected by spinlock. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 43 +++-- drivers/gpu/drm/panfrost/panfrost_devfreq.h | 9 - 2 files changed, 40 insertions(+), 12

[PATCH v2 04/14] drm/panfrost: introduce panfrost_devfreq struct

2020-07-04 Thread Clément Péron
Introduce a proper panfrost_devfreq to deal with devfreq variables. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 76 - drivers/gpu/drm/panfrost/panfrost_devfreq.h | 20 +-

[PATCH v2 13/14] [DO NOT MERGE] arm64: dts: allwinner: h6: Add GPU OPP table

2020-07-04 Thread Clément Péron
Add an Operating Performance Points table for the GPU to enable Dynamic Voltage & Frequency Scaling on the H6. The voltage range is set with minival voltage set to the target and the maximal voltage set to 1.2V. This allow DVFS framework to work properly on board with fixed regulator.

[PATCH v2 08/14] drm/panfrost: move devfreq_init()/fini() in device

2020-07-04 Thread Clément Péron
Later we will introduce devfreq probing regulator if they are present. As regulator should be probe only one time we need to get this logic in the device_init(). panfrost_device is already taking care of devfreq_resume() and devfreq_suspend(), so it's not totally illogic to move the

[PATCH v2 12/14] arm64: dts: allwinner: h6: Add cooling map for GPU

2020-07-04 Thread Clément Péron
Add a simple cooling map for the GPU. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 22 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index

Re: [PATCH v2 00/14] Add regulator devfreq support to Panfrost

2020-07-04 Thread Clément Péron
Hi, On Sat, 4 Jul 2020 at 12:25, Clément Péron wrote: > > Hi, > > This serie cleans and adds regulator support to Panfrost devfreq. > This is mostly based on comment for the freshly introduced lima > devfreq. > > We need to add regulator support because on Allwinner the GPU OPP > table defines

Re: [PATCH v2 14/14] [DO NOT MERGE] arm64: dts: allwinner: force GPU regulator to be always

2020-07-04 Thread Clément Péron
Hi, On Sat, 4 Jul 2020 at 12:25, Clément Péron wrote: > > Signed-off-by: Clément Péron > --- > arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts >

Re: [PATCH v2] usb: gadget: epautoconf: claim smallest endpoints first

2020-07-04 Thread Peter Chen
On 20-07-03 13:46:27, Ruslan Bilovol wrote: > On Tue, Jun 30, 2020 at 4:58 AM Peter Chen wrote: > > > > On 20-06-29 23:18:45, Ruslan Bilovol wrote: > > > UDC hardware may have endpoints with different maxpacket > > > size. Current endpoint matching code takes first matching > > > endpoint from

[rcu:dev.2020.06.29b] BUILD SUCCESS 1cd0309d69031e82ed876acbc696a5a71be65c7e

2020-07-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.06.29b branch HEAD: 1cd0309d69031e82ed876acbc696a5a71be65c7e fixup! torture: Add scftorture to the rcutorture scripting i386-tinyconfig vmlinux size:

[PATCH v4 14/15] vfio: Document dual stage control

2020-07-04 Thread Liu Yi L
From: Eric Auger The VFIO API was enhanced to support nested stage control: a bunch of new iotcls and usage guideline. Let's document the process to follow to set up nested mode. Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger Cc: Jean-Philippe Brucker Cc: Joerg Roedel

[PATCH v4 15/15] iommu/vt-d: Support reporting nesting capability info

2020-07-04 Thread Liu Yi L
Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger Cc: Jean-Philippe Brucker Cc: Joerg Roedel Cc: Lu Baolu Signed-off-by: Liu Yi L Signed-off-by: Jacob Pan --- v2 -> v3: *) remove cap/ecap_mask in iommu_nesting_info. --- drivers/iommu/intel/iommu.c | 81

[PATCH v4 00/15] vfio: expose virtual Shared Virtual Addressing to VMs

2020-07-04 Thread Liu Yi L
Shared Virtual Addressing (SVA), a.k.a, Shared Virtual Memory (SVM) on Intel platforms allows address space sharing between device DMA and applications. SVA can reduce programming complexity and enhance security. This VFIO series is intended to expose SVA usage to VMs. i.e. Sharing guest

[PATCH v4 04/15] vfio/type1: Report iommu nesting info to userspace

2020-07-04 Thread Liu Yi L
This patch exports iommu nesting capability info to user space through VFIO. User space is expected to check this info for supported uAPIs (e.g. PASID alloc/free, bind page table, and cache invalidation) and the vendor specific format information for first level/stage page table that will be bound

[PATCH v4 12/15] vfio/type1: Add vSVA support for IOMMU-backed mdevs

2020-07-04 Thread Liu Yi L
Recent years, mediated device pass-through framework (e.g. vfio-mdev) is used to achieve flexible device sharing across domains (e.g. VMs). Also there are hardware assisted mediated pass-through solutions from platform vendors. e.g. Intel VT-d scalable mode which supports Intel Scalable I/O

[PATCH v4 01/15] vfio/type1: Refactor vfio_iommu_type1_ioctl()

2020-07-04 Thread Liu Yi L
This patch refactors the vfio_iommu_type1_ioctl() to use switch instead of if-else, and each cmd got a helper function. Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger Cc: Jean-Philippe Brucker Cc: Joerg Roedel Cc: Lu Baolu Suggested-by: Christoph Hellwig Signed-off-by:

[PATCH v4 06/15] iommu/vt-d: Support setting ioasid set to domain

2020-07-04 Thread Liu Yi L
>From IOMMU p.o.v., PASIDs allocated and managed by external components (e.g. VFIO) will be passed in for gpasid_bind/unbind operation. IOMMU needs some knowledge to check the PASID ownership, hence add an interface for those components to tell the PASID owner. In latest kernel design, PASID

[PATCH v4 10/15] vfio/type1: Support binding guest page tables to PASID

2020-07-04 Thread Liu Yi L
Nesting translation allows two-levels/stages page tables, with 1st level for guest translations (e.g. GVA->GPA), 2nd level for host translations (e.g. GPA->HPA). This patch adds interface for binding guest page tables to a PASID. This PASID must have been allocated to user space before the binding

[PATCH v4 13/15] vfio/pci: Expose PCIe PASID capability to guest

2020-07-04 Thread Liu Yi L
This patch exposes PCIe PASID capability to guest for assigned devices. Existing vfio_pci driver hides it from guest by setting the capability length as 0 in pci_ext_cap_length[]. And this patch only exposes PASID capability for devices which has PCIe PASID extended struture in its configuration

[PATCH v4 07/15] vfio/type1: Add VFIO_IOMMU_PASID_REQUEST (alloc/free)

2020-07-04 Thread Liu Yi L
This patch allows user space to request PASID allocation/free, e.g. when serving the request from the guest. PASIDs that are not freed by userspace are automatically freed when the IOASID set is destroyed when process exits. Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger Cc:

[PATCH v4 08/15] iommu: Pass domain to sva_unbind_gpasid()

2020-07-04 Thread Liu Yi L
From: Yi Sun Current interface is good enough for SVA virtualization on an assigned physical PCI device, but when it comes to mediated devices, a physical device may attached with multiple aux-domains. Also, for guest unbind, the PASID to be unbind should be allocated to the VM. This check

[PATCH v4 11/15] vfio/type1: Allow invalidating first-level/stage IOMMU cache

2020-07-04 Thread Liu Yi L
This patch provides an interface allowing the userspace to invalidate IOMMU cache for first-level page table. It is required when the first level IOMMU page table is not managed by the host kernel in the nested translation setup. Cc: Kevin Tian CC: Jacob Pan Cc: Alex Williamson Cc: Eric Auger

[PATCH v4 05/15] vfio: Add PASID allocation/free support

2020-07-04 Thread Liu Yi L
Shared Virtual Addressing (a.k.a Shared Virtual Memory) allows sharing multiple process virtual address spaces with the device for simplified programming model. PASID is used to tag an virtual address space in DMA requests and to identify the related translation structure in IOMMU. When a

[PATCH v4 09/15] iommu/vt-d: Check ownership for PASIDs from user-space

2020-07-04 Thread Liu Yi L
When an IOMMU domain with nesting attribute is used for guest SVA, a system-wide PASID is allocated for binding with the device and the domain. For security reason, we need to check the PASID passsed from user-space. e.g. page table bind/unbind and PASID related cache invalidation. Cc: Kevin Tian

[PATCH v4 03/15] iommu/smmu: Report empty domain nesting info

2020-07-04 Thread Liu Yi L
Cc: Will Deacon Cc: Robin Murphy Cc: Eric Auger Cc: Jean-Philippe Brucker Suggested-by: Jean-Philippe Brucker Signed-off-by: Liu Yi L Signed-off-by: Jacob Pan --- drivers/iommu/arm-smmu-v3.c | 29 +++-- drivers/iommu/arm-smmu.c| 29 +++--

[PATCH v4 02/15] iommu: Report domain nesting info

2020-07-04 Thread Liu Yi L
IOMMUs that support nesting translation needs report the capability info to userspace, e.g. the format of first level/stage paging structures. This patch reports nesting info by DOMAIN_ATTR_NESTING. Caller can get nesting info after setting DOMAIN_ATTR_NESTING. Cc: Kevin Tian CC: Jacob Pan Cc:

Re: [PATCH v6] gpio: pca953x: Add Maxim MAX7313 PWM support

2020-07-04 Thread Andy Shevchenko
On Fri, Jul 3, 2020 at 5:53 PM Uwe Kleine-König wrote: > On Sun, May 03, 2020 at 12:54:53PM +0200, Miquel Raynal wrote: ... > > + ret = regmap_read(pca_chip->regmap, reg, ); > > + mutex_unlock(_chip->i2c_lock); > > + if (ret < 0) { > > + dev_err(dev, "Cannot retrieve PWM

Re: [RFC] riscv: Add jump-label implementation

2020-07-04 Thread Björn Töpel
On Fri, 3 Jul 2020 at 17:43, Emil Renner Berthing wrote: > > On Thu, 2 Jul 2020 at 22:07, Emil Renner Berthing wrote: > > > > Add basic jump-label implementation heavily based > > on the ARM64 version. > > > > Tested on the HiFive Unleashed. > > > > Signed-off-by: Emil Renner Berthing > > --- >

Re: [PATCH v2] ASoC: cros_ec_codec: Log results when EC commands fail

2020-07-04 Thread Yu-Hsuan Hsu
Guenter Roeck 於 2020年7月4日 週六 上午3:28寫道: > > On Fri, Jul 3, 2020 at 12:11 PM Yu-Hsuan Hsu wrote: > > > > Guenter Roeck 於 2020年7月3日 週五 下午11:58寫道: > > > > > > On Fri, Jul 3, 2020 at 3:56 AM Enric Balletbo i Serra > > > wrote: > > > > > > > > Hi Yu-Hsuan, > > > > > > > > On 3/7/20 11:40, Yu-Hsuan

Re: [RFC] riscv: Add jump-label implementation

2020-07-04 Thread Emil Renner Berthing
On Sat, 4 Jul 2020 at 13:23, Björn Töpel wrote: > On Fri, 3 Jul 2020 at 17:43, Emil Renner Berthing wrote: > > On Thu, 2 Jul 2020 at 22:07, Emil Renner Berthing wrote: > > > > > > Add basic jump-label implementation heavily based > > > on the ARM64 version. > > > > > > Tested on the HiFive

Re: [PATCH v14 15/20] mm/swap: serialize memcg changes during pagevec_lru_move_fn

2020-07-04 Thread Alex Shi
在 2020/7/3 下午5:13, Konstantin Khlebnikov 写道: >> @@ -976,7 +983,7 @@ static void __pagevec_lru_add_fn(struct page *page, >> struct lruvec *lruvec) >> */ >> void __pagevec_lru_add(struct pagevec *pvec) >> { >> - pagevec_lru_move_fn(pvec, __pagevec_lru_add_fn); >> +

Re: UART/TTY console deadlock

2020-07-04 Thread Andy Shevchenko
On Fri, Jul 3, 2020 at 1:32 PM Sergey Senozhatsky wrote: > > On (20/07/02 09:05), Tony Lindgren wrote: > > * Sergey Senozhatsky [200702 05:13]: > > > On (20/06/30 11:02), Tony Lindgren wrote: > > > > This conditional disable for irq_shared does not look nice to me > > > > from the other device

Re: UART/TTY console deadlock

2020-07-04 Thread Andy Shevchenko
On Fri, Jul 3, 2020 at 1:53 PM Sergey Senozhatsky wrote: > > On (20/07/02 11:20), Andy Shevchenko wrote: > > > > I didn't look into this deeply, but my understanding that this is something > > for > > special case when you have several UART ports sharing the IRQ (multi-port > > card) > > and

[PATCH 14/16] arm: sun8i: h3: Add HDMI audio to Orange Pi 2

2020-07-04 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on the Orange Pi 2. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts

[PATCH 10/16] arm: dts: sunxi: h3/h5: Add DAI node for HDMI

2020-07-04 Thread Clément Péron
From: Marcus Cooper Add the new DAI block for I2S2 which is used for HDMI audio. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi

[PATCH 16/16] arm64: dts: allwinner: a64: Add HDMI audio to Pine64

2020-07-04 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on Pine64. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts

[PATCH 15/16] arm: sun8i: h3: Add HDMI audio to Beelink X2

2020-07-04 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on the Beelink X2. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts

[PATCH 00/16] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-07-04 Thread Clément Péron
Hi, This a merge of serie: - Add Add H6 I2S support https://patchwork.kernel.org/cover/11497007/ - Add Allwinner H3/H5/A64 HDMI audio https://patchwork.kernel.org/cover/11510511/ I merge both serie because there is a similar issue regarding the I2S polarity. This need to be investigated under a

[PATCH 01/16] ASoC: sun4i-i2s: Add support for H6 I2S

2020-07-04 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to that in H3, except it supports up to 16 channels. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 227 1 file changed, 227

[PATCH 04/16] ASoC: sun4i-i2s: Set sign extend sample

2020-07-04 Thread Clément Péron
From: Marcus Cooper On the newer SoCs such as the H3 and A64 this is set by default to transfer a 0 after each sample in each slot. However the A10 and A20 SoCs that this driver was developed on had a default setting where it padded the audio gain with zeros. This isn't a problem while we have

[PATCH 13/16] arm64: dts: allwinner: a64: Add HDMI audio

2020-07-04 Thread Clément Péron
From: Marcus Cooper Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 21 +++ 1 file changed, 21 insertions(+) diff --git

[PATCH 06/16] ASoC: sun4i-i2s: Adjust regmap settings

2020-07-04 Thread Clément Péron
From: Marcus Cooper Bypass the regmap cache when flushing or reading the i2s FIFOs. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index

[PATCH 09/16] arm64: dts: allwinner: h6: Enable HDMI sound for Beelink GS1

2020-07-04 Thread Clément Péron
Now that HDMI sound node is available in the SoC dtsi. Enable it for this board. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts

[PATCH 08/16] arm64: dts: allwinner: h6: Add HDMI audio node

2020-07-04 Thread Clément Péron
From: Jernej Skrabec Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 33 1 file changed, 33 insertions(+) diff --git

[PATCH 05/16] ASoc: sun4i-i2s: Add 20 and 24 bit support

2020-07-04 Thread Clément Péron
From: Marcus Cooper Extend the functionality of the driver to include support of 20 and 24 bits per sample. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

[PATCH 12/16] arm64: dts: allwinner: a64: Add DAI node for HDMI

2020-07-04 Thread Clément Péron
From: Marcus Cooper Add the new DAI block for I2S2 which is used for HDMI audio. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 11/16] arm: dts: sunxi: h3/h5: Add HDMI audio

2020-07-04 Thread Clément Péron
From: Marcus Cooper Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 20 1 file changed, 20 insertions(+) diff --git

[PATCH 02/16] ASoC: sun4i-i2s: Adjust LRCLK width

2020-07-04 Thread Clément Péron
From: Marcus Cooper Some codecs such as i2s based HDMI audio and the Pine64 DAC require a different amount of bit clocks per frame than what is calculated by the sample width. Use the values obtained by the tdm slot bindings to adjust the LRCLK width accordingly. Signed-off-by: Marcus Cooper

[PATCH 03/16] dt-bindings: ASoC: sun4i-i2s: Add H6 compatible

2020-07-04 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to H3, except that it supports up to 16 channels and thus few registers have fields on different position. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron Acked-by: Maxime Ripard Acked-by: Rob Herring ---

  1   2   3   4   >