Re: [PATCH v2 5/7] usb: bdc: driver runs out of buffer descriptors on large ADB transfers

2020-07-21 Thread Florian Fainelli
On 7/21/20 7:43 AM, Al Cooper wrote: > Version v1.0.40 of the Android host ADB software increased maximum > transfer sizes from 256K to 1M. Since the STB ADB gadget driver > requests only 16K at a time, the BDC driver ran out of buffer > descriptors (BDs) if the queuing happens faster than the

Re: [PATCH v2 4/7] usb: bdc: Adb shows offline after resuming from S2

2020-07-21 Thread Florian Fainelli
On 7/21/20 7:43 AM, Al Cooper wrote: > On Android systems, After temporarily putting device to S2 by > short pressing the power button on the remote, the display turns > off. Then press the power button to turn the display back up. Adb > devices would show the devices is offline. It needs a

Re: [PATCH v2 1/7] dt-bindings: usb: bdc: Update compatible strings

2020-07-21 Thread Florian Fainelli
On 7/21/20 7:43 AM, Al Cooper wrote: > Remove "brcm,bdc-v0.16" because it was never used on any system. > Add "brcm,bdc-udc-v2" which exists for any STB system with BDC. > > Signed-off-by: Al Cooper Acked-by: Florian Fainelli -- Florian

Re: [PATCH v2 3/7] bdc: Fix bug causing crash after multiple disconnects

2020-07-21 Thread Florian Fainelli
On 7/21/20 7:43 AM, Al Cooper wrote: > From: Sasi Kumar > > Multiple connects/disconnects can cause a crash on the second > disconnect. The driver had a problem where it would try to send > endpoint commands after it was disconnected which is not allowed > by the hardware. The fix is to only

Re: [PATCH 1/2] tty: serial: fsl_lpuart.c: prevent a bad shift operation

2020-07-21 Thread Greg Kroah-Hartman
On Tue, Jul 21, 2020 at 10:43:11PM +0530, B K Karthik wrote: > prevent a bad shift operation by verifying that > sport->rx_dma_rng_buf_len is non zero. > > Signed-off-by: B K Karthik > --- > drivers/tty/serial/fsl_lpuart.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) What about

[PATCH v3] Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation

2020-07-21 Thread Fangrui Song
When CROSS_COMPILE is set (e.g. aarch64-linux-gnu-), if $(CROSS_COMPILE)elfedit is found at /usr/bin/aarch64-linux-gnu-elfedit, GCC_TOOLCHAIN_DIR will be set to /usr/bin/. --prefix= will be set to /usr/bin/ and Clang as of 11 will search for both $(prefix)aarch64-linux-gnu-$needle and

Re: [PATCH -next] fork: silence a false postive warning in __mmdrop

2020-07-21 Thread Qian Cai
bahci libphy libata dm_mirror dm_region_hash dm_log dm_mod [14933.435176][T1176230] CPU: 25 PID: 1176230 Comm: trinity-c25 Not tainted 5.8.0-rc6-next-20200721 #5 [14933.435200][T1176230] NIP: c00c4560 LR: c00d4fb4 CTR: [14933.435223][T1176230] REGS: c0001520f910 TRAP

Re: strace of io_uring events?

2020-07-21 Thread Jens Axboe
On 7/21/20 11:23 AM, Andy Lutomirski wrote: > On Tue, Jul 21, 2020 at 8:31 AM Jens Axboe wrote: >> >> On 7/21/20 9:27 AM, Andy Lutomirski wrote: >>> On Fri, Jul 17, 2020 at 1:02 AM Stefano Garzarella >>> wrote: On Thu, Jul 16, 2020 at 08:12:35AM -0700, Kees Cook wrote: > On Thu,

Re: [PATCH v8 0/2] phy: bcm63xx-usbh: Add BCM63xx USBH driver

2020-07-21 Thread Vinod Koul
On 20-07-20, 15:12, Álvaro Fernández Rojas wrote: > Add BCM63xx USBH PHY driver for BMIPS. > > v8: readd Simon as author and remove his email address from the source code. > v7: remove Simon from authors and introduce changes suggested by Rob: > - Move clock conditions to the main section. >

[RFC v3] kunit: Allows to install and load modules in root filesystem

2020-07-21 Thread Vitor Massaru Iha
This makes possible to install and load KUnit tests as modules in a root filesystem and boot UML with this filesystem. The filesystem was created using debootstrap: sudo debootstrap buster .uml_rootfs And change the owner of the root filesystem files for your user: sudo chown -R

Re: [PATCH v4 2/4] dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7180

2020-07-21 Thread Taniya Das
Hi Stephen, Thanks for the review. On 7/21/2020 1:21 PM, Stephen Boyd wrote: +... diff --git a/include/dt-bindings/clock/qcom,gcc-sc7180.h b/include/dt-bindings/clock/qcom,gcc-sc7180.h index 992b67b..bdf43adc 100644 --- a/include/dt-bindings/clock/qcom,gcc-sc7180.h +++

Re: [PATCH v6] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-07-21 Thread Mimi Zohar
On Mon, 2020-07-20 at 12:38 -0300, Bruno Meneguele wrote: > On Mon, Jul 20, 2020 at 10:56:55AM -0400, Mimi Zohar wrote: > > On Mon, 2020-07-20 at 10:40 -0400, Nayna wrote: > > > On 7/13/20 12:48 PM, Bruno Meneguele wrote: > > > > The IMA_APPRAISE_BOOTPARAM config allows enabling different > > > >

Re: [RFC PATCH] net: dsa: qca8k: Add 802.1q VLAN support

2020-07-21 Thread Florian Fainelli
On 7/21/20 10:16 AM, Jonathan McDowell wrote: > This adds full 802.1q VLAN support to the qca8k, allowing the use of > vlan_filtering and more complicated bridging setups than allowed by > basic port VLAN support. > > Tested with a number of untagged ports with separate VLANs and then a > trunk

Re: io_uring vs in_compat_syscall()

2020-07-21 Thread Andy Lutomirski
On Tue, Jul 21, 2020 at 7:34 AM Christoph Hellwig wrote: > > On Tue, Jul 21, 2020 at 07:31:02AM -0700, Andy Lutomirski wrote: > > > What do you mean with "properly wired up". Do you really want to spread > > > ->compat_foo methods everywhere, including read and write? I found > > >

Re: [RFC 0/7] Add support to process rx packets in thread

2020-07-21 Thread Andrew Lunn
On Tue, Jul 21, 2020 at 10:44:19PM +0530, Rakesh Pillai wrote: > NAPI gets scheduled on the CPU core which got the > interrupt. The linux scheduler cannot move it to a > different core, even if the CPU on which NAPI is running > is heavily loaded. This can lead to degraded wifi > performance when

Re: strace of io_uring events?

2020-07-21 Thread Andy Lutomirski
On Tue, Jul 21, 2020 at 8:31 AM Jens Axboe wrote: > > On 7/21/20 9:27 AM, Andy Lutomirski wrote: > > On Fri, Jul 17, 2020 at 1:02 AM Stefano Garzarella > > wrote: > >> > >> On Thu, Jul 16, 2020 at 08:12:35AM -0700, Kees Cook wrote: > >>> On Thu, Jul 16, 2020 at 03:14:04PM +0200, Stefano

[PATCH net-next v2 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts

[PATCH net-next v2 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH net-next v2 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none; arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

[PATCH net-next v2 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++-- arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 17 ++---

[PATCH net-next v2 3/7] net: macb: parse PHY nodes found under an MDIO node

2020-07-21 Thread Codrin Ciubotariu
The MACB embeds an MDIO bus controller. For this reason, the PHY nodes were represented as sub-nodes in the MACB node. Generally, the Ethernet controller is different than the MDIO controller, so the PHYs are probed by a separate MDIO driver. Since adding the PHY nodes directly under the ETH node

Re: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-07-21 Thread Dave Jiang
On 7/21/2020 9:28 AM, Greg KH wrote: On Tue, Jul 21, 2020 at 09:02:15AM -0700, Dave Jiang wrote: v2: "RFC" to me means "I don't really think this is mergable, so I'm throwing it out there." Which implies you know it needs more work before others should review it as you are not comfortable

[PATCH net-next v2 2/7] dt-bindings: net: macb: use an MDIO node as a container for PHY nodes

2020-07-21 Thread Codrin Ciubotariu
The MACB driver embeds an MDIO bus controller and for this reason there was no need for an MDIO sub-node present to contain the PHY nodes. Adding MDIO devies directly under an Ethernet node is deprecated, so an MDIO node is included to contain of the PHY nodes (and other MDIO devices' nodes).

Re: [PATCH 05/24] devtmpfs: open code ksys_chdir and ksys_chroot

2020-07-21 Thread Al Viro
On Tue, Jul 21, 2020 at 09:49:17AM -0700, Linus Torvalds wrote: > On Tue, Jul 21, 2020 at 9:28 AM Christoph Hellwig wrote: > > > > + > > + /* traverse into overmounted root and then chroot to it */ > > + if (!kern_path("/..", LOOKUP_FOLLOW | LOOKUP_DIRECTORY, ) && > > +

[RFC PATCH] net: dsa: qca8k: Add 802.1q VLAN support

2020-07-21 Thread Jonathan McDowell
This adds full 802.1q VLAN support to the qca8k, allowing the use of vlan_filtering and more complicated bridging setups than allowed by basic port VLAN support. Tested with a number of untagged ports with separate VLANs and then a trunk port with all the VLANs tagged on it. Signed-off-by:

[RFC 2/7] ath10k: Add support to process rx packet in thread

2020-07-21 Thread Rakesh Pillai
NAPI instance gets scheduled on a CPU core on which the IRQ was triggered. The processing of rx packets can be CPU intensive and since NAPI cannot be moved to a different CPU core, to get better performance, its better to move the gist of rx packet processing in a high priority thread. Add the

[RFC 7/7] ath10k: Handle rx thread suspend and resume

2020-07-21 Thread Rakesh Pillai
During the system suspend or resume, the rx thread also needs to be suspended or resume respectively. Handle the rx thread as well during the system suspend and resume. Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1 Signed-off-by: Rakesh Pillai ---

[PATCH net-next v2 1/7] net: macb: use device-managed devm_mdiobus_alloc()

2020-07-21 Thread Codrin Ciubotariu
Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none drivers/net/ethernet/cadence/macb_main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-)

Re: [PATCH v1] crypto: ccp: sp-pci: use generic power management

2020-07-21 Thread Tom Lendacky
On 7/21/20 11:30 AM, Vaibhav Gupta wrote: > On Tue, Jul 21, 2020 at 10:19:33AM -0500, Tom Lendacky wrote: >> On 7/21/20 7:31 AM, Vaibhav Gupta wrote: >>> Drivers using legacy power management .suspen()/.resume() callbacks >>> have to manage PCI states and device's PM states themselves. They also

[RFC 5/7] ath10k: Handle the rx packet processing in thread

2020-07-21 Thread Rakesh Pillai
Add the support to handle the receive packet and the tx completion processing in a thread context if the feature has been enabled via module parameter. Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1 Signed-off-by: Rakesh Pillai --- drivers/net/wireless/ath/ath10k/core.c | 8

[RFC 6/7] ath10k: Add deliver to stack from thread context

2020-07-21 Thread Rakesh Pillai
When the receive packets are submitted to the stack from a thread context, the NAPI handle should be passed as NULL to the function ieee80211_rx_napi. This will make sure that the packets are submitted to stack via non-napi method Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1

[RFC 3/7] ath10k: Add module param to enable rx thread

2020-07-21 Thread Rakesh Pillai
Add a module parameter to enable or disable the processing of received packets in rx thread. To enable rx packet processing in a thread context, use the belo command to load driver: insmod ath10k_snoc.ko rx_thread_enable=1 Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1

[PATCH net-next v2 0/7] Add an MDIO sub-node under MACB

2020-07-21 Thread Codrin Ciubotariu
Adding the PHY nodes directly under the Ethernet node became deprecated, so the aim of this patch series is to make MACB use an MDIO node as container for MDIO devices. This patch series starts with a small patch to use the device-managed devm_mdiobus_alloc(). In the next two patches we update the

[RFC 4/7] ath10k: Do not exhaust budget on process tx completion

2020-07-21 Thread Rakesh Pillai
Currently the entire NAPI budget is marked as exhausted if any tx completion is processed. In scenarios of bi-directional traffic, this leads to a situation where the irqs are never enabled and the NAPI is rescheuled again and again. Increase the work done quota by the number of tx completions

[RFC 1/7] mac80211: Add check for napi handle before WARN_ON

2020-07-21 Thread Rakesh Pillai
The function ieee80211_rx_napi can be now called from a thread context as well, with napi context being NULL. Hence add the napi context check before giving out a warning for softirq count being 0. Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1 Signed-off-by: Rakesh Pillai ---

[RFC 0/7] Add support to process rx packets in thread

2020-07-21 Thread Rakesh Pillai
NAPI gets scheduled on the CPU core which got the interrupt. The linux scheduler cannot move it to a different core, even if the CPU on which NAPI is running is heavily loaded. This can lead to degraded wifi performance when running traffic at peak data rates. A thread on the other hand can be

[PATCH 2/2] tty: serial: fsl_lpuart.c: fix a parentheses coding style issue

2020-07-21 Thread B K Karthik
add parentheses to expression to improve code readability. Signed-off-by: B K Karthik --- drivers/tty/serial/fsl_lpuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 0cc64279cd2d..3108f5ab57fa 100644

Re: [PATCH v2] Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation

2020-07-21 Thread Nathan Chancellor
On Tue, Jul 21, 2020 at 04:52:56PM +0200, Sedat Dilek wrote: > On Tue, Jul 21, 2020 at 12:40 PM Greg KH wrote: > > > > On Mon, Jul 20, 2020 at 09:19:38PM -0700, Fangrui Song wrote: > > > When CROSS_COMPILE is set (e.g. aarch64-linux-gnu-), if > > > $(CROSS_COMPILE)elfedit is found at

[PATCH 1/2] tty: serial: fsl_lpuart.c: prevent a bad shift operation

2020-07-21 Thread B K Karthik
prevent a bad shift operation by verifying that sport->rx_dma_rng_buf_len is non zero. Signed-off-by: B K Karthik --- drivers/tty/serial/fsl_lpuart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index

Re: [PATCH] drm/amd/powerplay: fix a crash when overclocking Vega M

2020-07-21 Thread Alex Deucher
Applied. Thanks! Alex On Fri, Jul 17, 2020 at 8:23 AM Qiu Wenbo wrote: > > Avoid kernel crash when vddci_control is SMU7_VOLTAGE_CONTROL_NONE and > vddci_voltage_table is empty. It has been tested on Intel Hades Canyon > (i7-8809G). > > Bug: https://bugzilla.kernel.org/show_bug.cgi?id=208489 >

Re: [PATCH 13/24] init: add an init_unlink helper

2020-07-21 Thread Al Viro
On Tue, Jul 21, 2020 at 06:28:07PM +0200, Christoph Hellwig wrote: > diff --git a/init/fs.c b/init/fs.c > index 73423f5461f934..1bdb5dc5ec12ba 100644 > --- a/init/fs.c > +++ b/init/fs.c > @@ -3,6 +3,7 @@ > #include > #include > #include > +#include <../fs/internal.h> ... and that is why the

Re: [PATCH RFC v2 2/3] io_uring: add IOURING_REGISTER_RESTRICTIONS opcode

2020-07-21 Thread Jens Axboe
On 7/21/20 4:40 AM, Stefano Garzarella wrote: > On Thu, Jul 16, 2020 at 03:26:51PM -0600, Jens Axboe wrote: >> On 7/16/20 6:48 AM, Stefano Garzarella wrote: >>> diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h >>> index efc50bd0af34..0774d5382c65 100644 >>> ---

Re: [PATCH 16/24] init: add an init_chroot helper

2020-07-21 Thread Al Viro
On Tue, Jul 21, 2020 at 06:28:10PM +0200, Christoph Hellwig wrote: > +int __init init_chroot(const char *filename) > +{ > + struct path path; > + int error; > + > + error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, ); > + if (error) > + return error; > +

Re: linux-next: build failure after merge of the akpm-current tree

2020-07-21 Thread Mike Kravetz
On 7/21/20 3:57 AM, Stephen Rothwell wrote: > Hi all, > > After merging the akpm-current tree, today's linux-next build > (sparc64 defconfig) failed like this: > > mm/hugetlb.c: In function 'free_gigantic_page': > mm/hugetlb.c:1233:18: error: 'hugetlb_cma' undeclared (first use in this >

Re: SDX -Optimal sellingpoints for a Nix mahcine.

2020-07-21 Thread Ywe Cærlyn
So what we are looking at, at salepoints for an optimal nix machine is: - 48bit Graphics - LCPU - Library Accelerated CPU, for low latency and jitter. - 4K / 8K subpixels resolution. - name sdX, as supply and demand is a monotheistic principle of a perfected nix name. With realtime audio

[RFC PATCH v2 0/6] ALSA: compress: add support to change codec profile in gapless playback

2020-07-21 Thread Srinivas Kandagatla
For gapless playback it is possible that each track can have different codec profile with same decoder, for example we have WMA album, we may have different tracks as WMA v9, WMA v10 and so on Or if DSP's like QDSP have abililty to switch decoders on single stream for each track, then this call

[RFC PATCH v2 1/6] ALSA: compress: move codec parameter check to a function

2020-07-21 Thread Srinivas Kandagatla
Move codec parameter checking to dedicated function so that other callers do not duplicate it. This is in preparedness for adding snd_compr_set_codec_params() support. Signed-off-by: Srinivas Kandagatla --- sound/core/compress_offload.c | 20 +--- 1 file changed, 13

[RFC PATCH v2 2/6] ALSA: compress: add new ioctl for setting codec parameters

2020-07-21 Thread Srinivas Kandagatla
For gapless playback it is possible that each track can have different codec profile with same decoder, for example we have WMA album, we may have different tracks as WMA v9, WMA v10 and so on Or if DSP's like QDSP have abililty to switch decoders on single stream for each track, then this call

[PATCH v2 7/9] ASoC: q6asm-dai: add next track metadata support

2020-07-21 Thread Srinivas Kandagatla
This patch adds support to metadata required to do a gapless playback. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm-dai.c | 25 + 1 file changed, 25 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c index

Re: [PATCH 12/24] init: add an init_mount helper

2020-07-21 Thread Al Viro
On Tue, Jul 21, 2020 at 06:28:06PM +0200, Christoph Hellwig wrote: > Like do_mount, but takes a kernel pointer for the destination path. > Switch over the mounts in the init code and devtmpfs to it, which > just happen to work due to the implicit set_fs(KERNEL_DS) during early > init right now. >

Re: [PATCH 21/24] init: add an init_symlink helper

2020-07-21 Thread Al Viro
On Tue, Jul 21, 2020 at 06:28:15PM +0200, Christoph Hellwig wrote: > Add a simple helper to symlink with a kernel space file name and switch > the early init code over to it. Remove the now unused ksys_symlink. > +int __init init_symlink(const char *oldname, const char *newname) > +{ > +

[RFC PATCH v2 3/6] ALSA: compress: add flags to snd_compr_caps to expose dsp caps

2020-07-21 Thread Srinivas Kandagatla
Some of the DSPs like Qualcomm QDSP has ablity to change decoders dynamically on a single stream, This could be used for features like Cross Fade or gapless with different codec profile tracks. Exposing such features in flags variable of compress caps descriptor would provide userspace more

Re: [PATCH 06/24] md: open code vfs_stat in md_setup_drive

2020-07-21 Thread Al Viro
On Tue, Jul 21, 2020 at 06:28:00PM +0200, Christoph Hellwig wrote: > Instead of passing a kernel pointer to vfs_stat by relying on the > implicit set_fs(KERNEL_DS) in md_setup_drive, just open code the > trivial getattr, and use the opportunity to move a little bit more > code from the caller into

[PATCH v2 8/9] ASoC: qdsp6-dai: add gapless support

2020-07-21 Thread Srinivas Kandagatla
Add support to gapless playback by implementing metadata, next_track, drain and partial drain support. Gapless on Q6ASM is implemented by opening 2 streams in a single q6asm stream and toggling them on next track. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm-dai.c | 253

Re: [PATCH 23/24] init: add an init_mknod helper

2020-07-21 Thread Al Viro
On Tue, Jul 21, 2020 at 06:28:17PM +0200, Christoph Hellwig wrote: > +int __init init_mknod(const char *filename, umode_t mode, unsigned int dev) > +{ > + struct dentry *dentry; > + struct path path; > + int error; > + > + if (S_ISFIFO(mode) || S_ISSOCK(mode)) > + dev

[RFC PATCH v2 5/6] ALSA: compress: bump the version

2020-07-21 Thread Srinivas Kandagatla
Now that we have added support for new IOCTL and flags to struct snd_compr_caps, bump up the version to 0,2,1 to help users find it. Signed-off-by: Srinivas Kandagatla --- include/uapi/sound/compress_offload.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[RFC PATCH v2 6/6] ASoC: q6asm-dai: add support to set_codec_params

2020-07-21 Thread Srinivas Kandagatla
Make use of new set_codec_params callback to allow decoder switching during gapless playback. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm-dai.c | 33 1 file changed, 33 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c

[RFC PATCH v2 4/6] ASoC: compress: add snd_soc_dai_compr_set_codec_params()

2020-07-21 Thread Srinivas Kandagatla
Add corresponding ASoC changes to support gapless playback of tracks which have different codec profile with or without same decoder. Signed-off-by: Srinivas Kandagatla --- include/sound/soc-component.h | 3 +++ include/sound/soc-dai.h | 5 + sound/soc/soc-compress.c | 30

[PATCH v2 6/9] ASoC: q6asm: add support to gapless flag in q6asm open

2020-07-21 Thread Srinivas Kandagatla
This patch adds support to gapless flag to q6asm_open_write(). Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm-dai.c | 4 ++-- sound/soc/qcom/qdsp6/q6asm.c | 4 +++- sound/soc/qcom/qdsp6/q6asm.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH v2 9/9] ASoC: q6asm-dai: add support to copy callback

2020-07-21 Thread Srinivas Kandagatla
During gapless playback, its possible for previous track to end at unaligned boundary, starting next track on the same boundary can lead to unaligned address exception in dsp. So implement copy callback for finer control on the buffer offsets. Signed-off-by: Srinivas Kandagatla ---

[PATCH v2 5/9] ASoC: q6asm: add support to remove intial and trailing silence

2020-07-21 Thread Srinivas Kandagatla
This patch adds support to ASM_DATA_CMD_REMOVE_INITIAL_SILENCE and ASM_DATA_CMD_REMOVE_TRAILING_SILENCE q6asm command to support compressed metadata for gapless playback. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 53

[PATCH v2 4/9] ASoC: q6asm: add length to write command token

2020-07-21 Thread Srinivas Kandagatla
Add length to write command packet token so that we can track exactly how many bytes are consumed by DSP in the command reply. This is useful in some use-cases where the end of the file/stream is not aligned with period size. Signed-off-by: Srinivas Kandagatla ---

[PATCH v2 3/9] ASoC: q6asm: use flags directly from q6asm-dai

2020-07-21 Thread Srinivas Kandagatla
use flags set by q6asm-dais directly! This will be useful gapless case where write needs a special flag to indicate that last buffer. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH v2 2/9] ASoC: q6asm: make commands specific to streams

2020-07-21 Thread Srinivas Kandagatla
Each ASM session can have multiple streams attached to it, current design was to allow only one static stream id 1 per each session. However for use-case like gapless, we would need 2 streams to open per session. This patch converts all the q6asm apis to take stream id as argument to allow

[PATCH v2 1/9] ASoC: q6asm: rename misleading session id variable

2020-07-21 Thread Srinivas Kandagatla
Each q6asm session can have multiple streams, mixing usage of these names in variable are bit misleading to reader, so rename them accordingly. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v2 0/9] ASoC: qdsp6: add gapless compressed audio support

2020-07-21 Thread Srinivas Kandagatla
This patchset adds gapless compressed audio support on q6asm. Gapless on q6asm is implemented using 2 streams in a single q6asm session. First few patches such as stream id per each command, gapless flags and silence meta data are for preparedness for adding gapless support. Last patch implements

Re: [PATCH 05/24] devtmpfs: open code ksys_chdir and ksys_chroot

2020-07-21 Thread Linus Torvalds
On Tue, Jul 21, 2020 at 9:28 AM Christoph Hellwig wrote: > > + > + /* traverse into overmounted root and then chroot to it */ > + if (!kern_path("/..", LOOKUP_FOLLOW | LOOKUP_DIRECTORY, ) && > + !inode_permission(path.dentry->d_inode, MAY_EXEC | MAY_CHDIR) && > +

Re: [PATCH v4 00/75] x86: SEV-ES Guest Support

2020-07-21 Thread Erdem Aktas
Yes, I am using OVMF with SEV-ES (sev-es-v12 patches applied). I am running Ubuntu 18.04 distro. My grub target is x86_64-efi. I also tried installing the grub-efi-amd64 package. In all cases, the grub is running in 64bit but enters the startup_32 in 32 bit mode. I think there should be a 32bit

[PATCH v3 4/4] dt-bindings: clk: versaclock5: convert to yaml

2020-07-21 Thread Luca Ceresoli
Convert to yaml the VersaClock bindings document. The mapping between clock specifier and physical pins cannot be described formally in yaml schema, then keep it verbatim in the description field. Signed-off-by: Luca Ceresoli --- Changes in v3: - schema syntax fixes: use enum to constrain

[PATCH v3 2/4] MAINTAINERS: take over IDT VersaClock 5 clock driver

2020-07-21 Thread Luca Ceresoli
Marek has been the primary developer of this driver (thanks!). Now as he is not working on it anymore he suggested I take over maintainership. Cc: Marek Vasut Signed-off-by: Luca Ceresoli --- Changes in v3: none --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v3 1/4] dt-bindings: clk: versaclock5: fix 'idt' prefix typos

2020-07-21 Thread Luca Ceresoli
'idt' is misspelled 'itd' in a few places, fix it. Fixes: 34662f6e3084 ("dt: Add additional option bindings for IDT VersaClock") Signed-off-by: Luca Ceresoli Reviewed-by: Rob Herring --- Changes in v3: add Reviewed-by: Rob Herring ---

[PATCH v3 3/4] clk: vc5: use a dedicated struct to describe the output drivers

2020-07-21 Thread Luca Ceresoli
Reusing the generic struct vc5_hw_data for all blocks is handy. However it implies we allocate space the div_int and div_frc fields even for the output drivers where they are unused, and the clk_output_cfg0 and clk_output_cfg0_mask fields that are used only for the output drivers. Use a dedicated

Re: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-07-21 Thread Jason Gunthorpe
On Tue, Jul 21, 2020 at 09:02:15AM -0700, Dave Jiang wrote: > v2: > IMS (now dev-msi): > With recommendations from Jason/Thomas/Dan on making IMS more generic: > Pass a non-pci generic device(struct device) for IMS management instead of > mdev > Remove all references to mdev and symbol_get/put >

Re: [RFC PATCH bpf-next 2/2] selftests/bpf: Test __ksym externs with BTF

2020-07-21 Thread Hao Luo
Ack. Will have that in v2. Hao On Mon, Jul 20, 2020 at 7:37 PM Andrii Nakryiko wrote: > > On Mon, Jul 20, 2020 at 1:28 PM Hao Luo wrote: > > > > > > > > This should ideally look like a real global variable extern: > > > > > > extern const struct rq runqueues __ksym; > > > > > > > > > But

[PATCH 02/40] scsi: aic7xxx: aic79xx_core: Remove a bunch of unused variables

2020-07-21 Thread Lee Jones
Question: Can 'ahd_inb(ahd, LQISTAT2);' also be safely removed? Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic79xx_core.c: In function ‘ahd_dump_sglist’: drivers/scsi/aic7xxx/aic79xx_core.c:1738:14: warning: variable ‘len’ set but not used

[PATCH 14/40] scsi: qla4xxx: ql4_83xx: Move 'qla4_83xx_reg_tbl' from shared header

2020-07-21 Thread Lee Jones
'qla4_83xx_reg_tbl' is only used in 'drivers/scsi/qla4xxx/ql4_os.c', move it there. Fixes the following W=1 kernel build warning(s): In file included from drivers/scsi/qla4xxx/ql4_def.h:46, from drivers/scsi/qla4xxx/ql4_init.c:9: At top level: drivers/scsi/qla4xxx/ql4_83xx.h:90:23: warning:

[PATCH 09/40] scsi: pm8001: pm8001_sas: Fix strncpy() warning

2020-07-21 Thread Lee Jones
We're assuming that the string should be NUL terminated here. If not, then memcpy() might be more appropriate. Fixes the following W=1 kernel build warning(s): from drivers/scsi/pm8001/pm8001_sas.c:41: In function ‘strncpy’, inlined from ‘pm8001_issue_ssp_tmf’ at

[PATCH 15/40] scsi: aic7xxx: aic79xx_core: Remove set but unused variables 'targ_info' and 'value'

2020-07-21 Thread Lee Jones
Also remove 'tstate' which became unused after this patch. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic79xx_core.c: In function ‘ahd_handle_seqint’: drivers/scsi/aic7xxx/aic79xx_core.c:1907:32: warning: variable ‘targ_info’ set but not used

[PATCH 19/40] scsi: qla4xxx: ql4_nx: Move 'qla4_82xx_reg_tbl' to the only place its used

2020-07-21 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): In file included from drivers/scsi/qla4xxx/ql4_def.h:43, from drivers/scsi/qla4xxx/ql4_mbx.c:9: drivers/scsi/qla4xxx/ql4_nx.h:602:23: warning: ‘qla4_82xx_reg_tbl’ defined but not used [-Wunused-const-variable=] 602 | static const uint32_t

[PATCH 03/40] scsi: aacraid: sa: Add descriptions for missing parameters

2020-07-21 Thread Lee Jones
Also clean-up some white space issues while we're here. Fixes the following W=1 kernel build warning(s): drivers/scsi/aacraid/sa.c:147: warning: Function parameter or member 'p2' not described in 'sa_sync_cmd' drivers/scsi/aacraid/sa.c:147: warning: Function parameter or member 'p3' not

[PATCH 06/40] scsi: aic94xx: aic94xx_dev: Fix a couple of kerneldoc formatting issues

2020-07-21 Thread Lee Jones
Kerneldoc expects attributes/parameters to be in '@*.: ' format. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic94xx/aic94xx_dev.c:246: warning: Function parameter or member 'dev' not described in 'asd_init_sata_pm_port_ddb' drivers/scsi/aic94xx/aic94xx_dev.c:290: warning:

[PATCH 22/40] scsi: qla4xxx: ql4_iocb: Fix incorrectly named function parameter

2020-07-21 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): from drivers/scsi/qla4xxx/ql4_iocb.c:8: drivers/scsi/qla4xxx/ql4_iocb.c:87: warning: Function parameter or member 'mrkr_mod' not described in 'qla4xxx_send_marker_iocb' drivers/scsi/qla4xxx/ql4_iocb.c:87: warning: Excess function parameter

Re: [PATCH v4 4/7] iommu/vt-d: Handle non-page aligned address

2020-07-21 Thread Jacob Pan
Hi Baolu, Not sure what state is this patch in, there is a bug in this patch (see below), shall I send out an updated version of this one only? or another incremental patch. Thanks, Jacob On Mon, 6 Jul 2020 17:12:51 -0700 Jacob Pan wrote: > From: Liu Yi L > > Address information for

[PATCH 24/40] scsi: pm8001: pm8001_hwi: Remove unused variable 'value'

2020-07-21 Thread Lee Jones
Hasn't been used since 2009. Fixes the following W=1 kernel build warning(s): drivers/scsi/pm8001/pm8001_hwi.c: In function ‘mpi_set_phys_g3_with_ssc’: drivers/scsi/pm8001/pm8001_hwi.c:415:6: warning: variable ‘value’ set but not used [-Wunused-but-set-variable] Cc: Jack Wang Signed-off-by:

[PATCH 30/40] scsi: lpfc: lpfc_ct: Fix-up formatting/docrot where appropriate

2020-07-21 Thread Lee Jones
Other headers have been demoted as they are too far out of sync and ideally require effort from the authors. Fixes the following W=1 kernel build warning(s): drivers/scsi/lpfc/lpfc_ct.c:321: warning: Function parameter or member 'usr_flg' not described in 'lpfc_gen_req'

[PATCH 21/40] scsi: qla4xxx: ql4_mbx: Fix-up incorrectly documented parameter

2020-07-21 Thread Lee Jones
Also demote incomplete header from kerneldoc. Fixes the following W=1 kernel build warning(s): from drivers/scsi/qla4xxx/ql4_mbx.c:9: drivers/scsi/qla4xxx/ql4_mbx.c:53: warning: Excess function parameter 'ret' description in 'qla4xxx_is_intr_poll_mode' drivers/scsi/qla4xxx/ql4_mbx.c:832:

[PATCH 23/40] scsi: lpfc: lpfc_sli: Fix-up around 120 documentation issues

2020-07-21 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/scsi/lpfc/lpfc_sli.c:257: warning: Function parameter or member 'mqe' not described in 'lpfc_sli4_mq_put' drivers/scsi/lpfc/lpfc_sli.c:257: warning: Excess function parameter 'wqe' description in 'lpfc_sli4_mq_put'

[PATCH 27/40] scsi: qla4xxx: ql4_isr: Repair function documentation headers

2020-07-21 Thread Lee Jones
Fix one formatting issue, one misspelling and three missing descriptions. Fixes the following W=1 kernel build warning(s): drivers/scsi/qla4xxx/ql4_isr.c:588: warning: Excess function parameter 'ret' description in 'qla4_83xx_loopback_in_progress' drivers/scsi/qla4xxx/ql4_isr.c:661: warning:

[PATCH 20/40] scsi: lpfc: lpfc_sli: Remove unused variable 'pg_addr'

2020-07-21 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/scsi/lpfc/lpfc_sli.c: In function ‘lpfc_wq_create’: drivers/scsi/lpfc/lpfc_sli.c:15810:16: warning: variable ‘pg_addr’ set but not used [-Wunused-but-set-variable] 15810 | unsigned long pg_addr; | ^~~ Cc: James Smart Cc: Dick

[PATCH 37/40] scsi: sym53c8xx_2: sym_glue: Add missing description for 'pdev'

2020-07-21 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/scsi/sym53c8xx_2/sym_glue.c:1784: warning: Function parameter or member 'pdev' not described in 'sym2_reset_workarounds' Cc: Matthew Wilcox Cc: Gerard Roudier Cc: Wolfgang Stanglmeier Cc: Stefan Esser Cc: Richard Waltham

[PATCH 34/40] scsi: csiostor: csio_lnode: Demote kerneldoc that fails to meet the criteria

2020-07-21 Thread Lee Jones
This matches some of the other headers in the file. Fixes the following W=1 kernel build warning(s): drivers/scsi/csiostor/csio_lnode.c:2079: warning: Function parameter or member 'hw' not described in 'csio_lnode_init' drivers/scsi/csiostor/csio_lnode.c:2079: warning: Function parameter or

[PATCH 36/40] scsi: lpfc: lpfc_sli: Ensure variable has the same stipulations as code using it

2020-07-21 Thread Lee Jones
'pg_addr' is only used when CONFIG_X86 is defined. So only declare it if CONFIG_X86 is defined. Fixes the following W=1 kernel build warning(s): drivers/scsi/lpfc/lpfc_sli.c: In function ‘lpfc_wq_create’: drivers/scsi/lpfc/lpfc_sli.c:15813:16: warning: unused variable ‘pg_addr’

[PATCH 38/40] scsi: sym53c8xx_2: sym_hipd: Ensure variable has the same stipulations as code using it

2020-07-21 Thread Lee Jones
Only declare 'tp' and 'lp' if they are going to be used. Fixes the following W=1 kernel build warning(s): drivers/scsi/sym53c8xx_2/sym_hipd.c: In function ‘sym_complete_error’: drivers/scsi/sym53c8xx_2/sym_hipd.c:5356:18: warning: variable ‘lp’ set but not used [-Wunused-but-set-variable]

[PATCH 28/40] scsi: lpfc: lpfc_mem: Provide description for lpfc_mem_alloc()'s 'align' param

2020-07-21 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/scsi/lpfc/lpfc_mem.c:85: warning: Function parameter or member 'align' not described in 'lpfc_mem_alloc' Cc: James Smart Cc: Dick Kennedy Cc: Sumit Semwal Cc: "Christian König" Cc: linux-me...@vger.kernel.org Cc:

Re: [PATCH 2/4] tracing: add trace_export support for event trace

2020-07-21 Thread Steven Rostedt
On Tue, 21 Jul 2020 12:37:33 -0400 Steven Rostedt wrote: > On Mon, 20 Jul 2020 10:21:15 +0800 > Tingwei Zhang wrote: > > > Only function traces can be exported to other destinations currently. > > This patch exports event trace as well. > > > > Signed-off-by: Tingwei Zhang > > --- > >

[PATCH 33/40] scsi: qla4xxx: ql4_nx: Supply description for 'code'

2020-07-21 Thread Lee Jones
Demote other headers which are clearly not kerneldoc. Fixes the following W=1 kernel build warning(s): drivers/scsi/qla4xxx/ql4_nx.c:983: warning: Function parameter or member 'ha' not described in 'qla4_82xx_pinit_from_rom' drivers/scsi/qla4xxx/ql4_nx.c:983: warning: Function parameter or

[PATCH 32/40] scsi: qla4xxx: ql4_nx: Remove three set but unused variables

2020-07-21 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/scsi/qla4xxx/ql4_nx.c: In function ‘qla4_84xx_minidump_process_rddfe’: drivers/scsi/qla4xxx/ql4_nx.c:2648:23: warning: variable ‘data_size’ set but not used [-Wunused-but-set-variable] 2648 | uint32_t poll, mask, data_size, modify_mask;

[PATCH 39/40] scsi: mvsas: mv_init: Move 'core_nr' inside #ifdef and remove unused variable 'res_flag'

2020-07-21 Thread Lee Jones
Only declare 'core_nr' if its conditions for use are met. Fixes the following W=1 kernel build warning(s): drivers/scsi/mvsas/mv_init.c: In function ‘mvs_interrupt’: drivers/scsi/mvsas/mv_init.c:180:6: warning: variable ‘core_nr’ set but not used [-Wunused-but-set-variable]

[PATCH 40/40] scsi: cxgbi: cxgb3i: cxgb3i: Remove bad documentation and demote kerneldoc header

2020-07-21 Thread Lee Jones
Also move the header block above the correct function. Fixes the following W=1 kernel build warning(s): drivers/scsi/cxgbi/cxgb3i/cxgb3i.c:390: warning: Function parameter or member 'dev' not described in 'arp_failure_skb_discard' drivers/scsi/cxgbi/cxgb3i/cxgb3i.c:390: warning: Function

[PATCH 13/40] scsi: qla4xxx: ql4_init: Check return value of pci_set_mwi()

2020-07-21 Thread Lee Jones
pci_set_mwi() has 'warn_unused_result' so the result should be checked. Fixes the following W=1 kernel build warning(s): drivers/scsi/qla4xxx/ql4_init.c: In function ‘qla4xxx_pci_config’: drivers/scsi/qla4xxx/ql4_init.c:664:6: warning: variable ‘status’ set but not used

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