[RFC PATCH v5 6/6] drm: exynos: mixer: Add interconnect support

2020-05-29 Thread Sylwester Nawrocki
From: Marek Szyprowski This patch adds interconnect support to exynos-mixer. The mixer works the same as before when CONFIG_INTERCONNECT is 'n'. For proper operation of the video mixer block we need to ensure the interconnect busses like DMC or LEFTBUS provide enough bandwidth so as to avoid DMA

[RFC PATCH v5 2/6] interconnect: Add generic interconnect driver for Exynos SoCs

2020-05-29 Thread Sylwester Nawrocki
This patch adds a generic interconnect driver for Exynos SoCs in order to provide interconnect functionality for each "samsung,exynos-bus" compatible device. The SoC topology is a graph (or more specifically, a tree) and its edges are specified using the 'samsung,interconnect-parent' in the DT. Du

[RFC PATCH v5 4/6] ARM: dts: exynos: Add interconnect properties to Exynos4412 bus nodes

2020-05-29 Thread Sylwester Nawrocki
This patch adds the following properties for Exynos4412 interconnect bus nodes: - samsung,interconnect-parent: to declare connections between nodes in order to guarantee PM QoS requirements between nodes; - #interconnect-cells: required by the interconnect framework. Note that #interconnect-c

[RFC PATCH v5 3/6] PM / devfreq: exynos-bus: Add registration of interconnect child device

2020-05-29 Thread Sylwester Nawrocki
This patch adds registration of a child platform device for the exynos interconnect driver. It is assumed that the interconnect provider will only be needed when #interconnect-cells property is present in the bus DT node, hence the child device will be created only when such a property is present.

[RFC PATCH v5 1/6] dt-bindings: exynos-bus: Add documentation for interconnect properties

2020-05-29 Thread Sylwester Nawrocki
Add documentation for new optional properties in the exynos bus nodes: samsung,interconnect-parent, #interconnect-cells. These properties allow to specify the SoC interconnect structure which then allows the interconnect consumer devices to request specific bandwidth requirements. Signed-off-by: A

[RFC PATCH v5 5/6] ARM: dts: exynos: Add interconnects to Exynos4412 mixer

2020-05-29 Thread Sylwester Nawrocki
From: Artur Świgoń This patch adds an 'interconnects' property to Exynos4412 DTS in order to declare the interconnect path used by the mixer. Please note that the 'interconnect-names' property is not needed when there is only one path in 'interconnects', in which case calling of_icc_get() with a

[RFC PATCH v5 0/6] Exynos: Simple QoS for exynos-bus using interconnect

2020-05-29 Thread Sylwester Nawrocki
This patchset adds interconnect API support for the Exynos SoC "samsung, exynos-bus" compatible devices, which already have their corresponding exynos-bus driver in the devfreq subsystem. Complementing the devfreq driver with an interconnect functionality allows to ensure the QoS requirements o

Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports

2020-05-29 Thread Andrew Lunn
> > By propagated, you mean if the external link is down, the link between > > the switch and node 1 will also be forced down, at the SERDES level? > > yes > > > And if external ports are down, the nodes cannot talk to each other? > > correct > > > External link down causes the whole in box net

Re: [PATCH v2] virtio_vsock: Fix race condition in virtio_transport_recv_pkt

2020-05-29 Thread Stefano Garzarella
On Fri, May 29, 2020 at 11:21:02PM +0800, Jia He wrote: > When client tries to connect(SOCK_STREAM) the server in the guest with > NONBLOCK mode, there will be a panic on a ThunderX2 (armv8a server): > [ 463.718844][ T5040] Unable to handle kernel NULL pointer dereference at > virtual address 000

Re: Kernel crash due to memory corruption with v5.4.26-rt17 and PowerPC e500

2020-05-29 Thread Sebastian Andrzej Siewior
On 2020-05-29 18:15:18 [+0200], To Mark Marshall wrote: > In order to get it back into the RT queue I need to understand why it is > required. What exactly is it fixing. Let me stare at for a little… it used to be local_irq_disable() which then became preempt_disable() local_irq_disable() due to A

[PATCH v4 3/4] scsi: ufs: cleanup ufs initialization path

2020-05-29 Thread Bean Huo
From: Bean Huo At UFS initialization stage, to get the length of the descriptor, ufshcd_read_desc_length() being called 6 times. Instead, we will capture the descriptor size the first time we'll read it. Delete unnecessary redundant code, remove ufshcd_read_desc_length(), ufshcd_init_desc_sizes

[PATCH v4 2/4] scsi: ufs: delete ufshcd_read_desc()

2020-05-29 Thread Bean Huo
From: Bean Huo Delete ufshcd_read_desc(). Instead, let caller directly call ufshcd_read_desc_param(). Signed-off-by: Bean Huo Reviewed-by: Avri Altman Reviewed-by: Bart van Assche Reviewed-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 27 --- 1 file changed, 8 inse

[PATCH v4 1/4] scsi: ufs: remove max_t in ufs_get_device_desc

2020-05-29 Thread Bean Huo
From: Bean Huo For the UFS device, the maximum descriptor size is 255, max_t called in ufs_get_device_desc() is useless. Signed-off-by: Bart van Assche Signed-off-by: Bean Huo Acked-by: Avri Altman --- drivers/scsi/ufs/ufshcd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff

[PATCH v4 0/4] scsi: ufs: cleanup ufs initialization

2020-05-29 Thread Bean Huo
From: Bean Huo Cleanup UFS descriptor length initialization, and delete unnecessary code. Changelog: v2 - v3: 1. Fix typo in the commit message (Avri Altman & Bart van Assche) 2. Delete ufshcd_init_desc_sizes() in patch 3/4 (Stanley Chu) 3. Remove max_t() and buff_len in patch 1/4 (

[PATCH v4 4/4] scsi: ufs: add compatibility with 3.1 UFS unit descriptor length

2020-05-29 Thread Bean Huo
From: Bean Huo For UFS 3.1, the normal unit descriptor is 10 bytes larger than the RPMB unit, however, both descriptors share the same desc_idn, to cover both unit descriptors with one length, we choose the normal unit descriptor length by desc_index. Signed-off-by: Bean Huo --- drivers/scsi/u

arch/powerpc/kernel/entry_32.S:450: Error: unsupported relocation against thread

2020-05-29 Thread kbuild test robot
date: 3 weeks ago config: powerpc-randconfig-r035-20200529 (attached as .config) compiler: powerpc-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

Re: [Patch 1/2] dt-binbings: media: ti-vpe: Document the VIP driver

2020-05-29 Thread Benoit Parrot
Hi Rob, Thanks for the review. Rob Herring wrote on Thu [2020-May-28 17:39:33 -0600]: > On Fri, May 22, 2020 at 05:54:11PM -0500, Benoit Parrot wrote: > > Device Tree bindings for the Video Input Port (VIP) driver. > > Bindings document h/w, not drivers. I'll fix that. > > > > > Signed-off-

[PATCH 0/2] exec: Remove the computation of bprm->cred

2020-05-29 Thread Eric W. Biederman
My last chunk of cleanups was clearly too a bit too big, with too many issues going on so let's try this again with just the most important cleanup. Recomputing the uids, gids, capabilities, and related flags each time a new bprm->file is set is error prone, and as it turns out unnecessary. Bui

Re: mmotm 2020-05-13-20-30 uploaded (objtool warnings)

2020-05-29 Thread Josh Poimboeuf
On Fri, May 29, 2020 at 06:12:53PM +0200, Peter Zijlstra wrote: > On Fri, May 29, 2020 at 11:05:14AM -0500, Josh Poimboeuf wrote: > > > It looks to me like GCC is doing the right thing. That likely() > > translates to: > > > > # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))

[PATCH 1/2] exec: Add a per bprm->file version of per_clear

2020-05-29 Thread Eric W. Biederman
There is a small bug in the code that recomputes parts of bprm->cred for every bprm->file. The code never recomputes the part of clear_dangerous_personality_flags it is responsible for. Which means that in practice if someone creates a sgid script the interpreter will not be able to use any of:

Re: [PATCH] ASoC: fsl_asrc_dma: Fix dma_chan leak when config DMA channel failed

2020-05-29 Thread Mark Brown
On Mon, 25 May 2020 22:12:46 +0800, Xiyu Yang wrote: > fsl_asrc_dma_hw_params() invokes dma_request_channel() or > fsl_asrc_get_dma_channel(), which returns a reference of the specified > dma_chan object to "pair->dma_chan[dir]" with increased refcnt. > > The reference counting issue happens in on

Re: [PATCH] dt-bindings: sound: tlv320adcx140: Fix dt-binding-check issue

2020-05-29 Thread Mark Brown
On Thu, 28 May 2020 09:47:11 -0500, Dan Murphy wrote: > Fix dt-binding-check issue > > ti,gpi-config:0:0: 4 is greater than the maximum of 1 > ti,gpi-config:0:1: 5 is greater than the maximum of 1 > ti,gpi-config:0:2: 6 is greater than the maximum of 1 > ti,gpi-config:0:3: 7 is greater than the ma

Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs"

2020-05-29 Thread Rafael J. Wysocki
On 5/28/2020 10:46 PM, Florian Fainelli wrote: Hi, Commit c8377adfa78103be5380200eb9dab764d7ca890e ("PM / wakeup: Show wakeup sources stats in sysfs") is causing some of our tests to fail because /sys/class/net/*/device/power/wakeup_count is now 0, despite /sys/kernel/debug/wakeup_sources clearl

Re: [PATCH 3/4] exfat: add boot region verification

2020-05-29 Thread kbuild test robot
onfig: c6x-randconfig-s032-20200529 (attached as .config) compiler: c6x-elf-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-243-gc100a7ab-dirty # save the attached .config to linux build tree make W=1 C=1 ARCH=c6x CF='-fdi

[PATCH 2/2] exec: Compute file based creds only once

2020-05-29 Thread Eric W. Biederman
Move the computation of creds from prepare_binfmt into begin_new_exec so that the creds need only be computed once. This is just code reorganization no semantic changes of any kind are made. Moving the computation is safe. I have looked through the kernel and verified none of the binfmts look

Re: [PATCH] ASoC: img-i2s-out: Fix runtime PM imbalance on error

2020-05-29 Thread Mark Brown
On Fri, 29 May 2020 09:22:28 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter balanced. Applied to https://git.kernel.org/pub/scm/

Re: [PATCH v3 0/2] regmap: provide simple bitops and use them in a driver

2020-05-29 Thread Mark Brown
On Thu, 28 May 2020 17:45:01 +0200, Bartosz Golaszewski wrote: > I noticed that oftentimes I use regmap_update_bits() for simple bit > setting or clearing. In this case the fourth argument is superfluous as > it's always 0 or equal to the mask argument. > > This series proposes to add simple bit o

Re: [PATCH] watchdog: sunxi_wdt: fix improper error exit code

2020-05-29 Thread Guenter Roeck
On Fri, May 29, 2020 at 05:45:14PM +0800, Frank Lee wrote: > From: Martin Wu > > sunxi_wdt_probe() should return -ENOMEM when devm_kzalloc() fails. > > Signed-off-by: Martin Wu > Signed-off-by: Frank Lee Reviewed-by: Guenter Roeck > --- > drivers/watchdog/sunxi_wdt.c | 2 +- > 1 file chang

Re: [PATCH] watchdog: test_bit() => watchdog_active()

2020-05-29 Thread Guenter Roeck
On Fri, May 29, 2020 at 10:24:28AM +0900, Bumsik Kim wrote: > Use the dedicated function watchdog_active() > instead of the generic test_bit() function. > > It is done using the following Coccinelle script: > > @@ > identifier wdd; > @@ > - test_bit(WDOG_ACTIVE, &wdd->status) > + watchdog_active(

Re: [PATCH 0/2] Fix regulators coupling for Exynos5800

2020-05-29 Thread Mark Brown
On Fri, 29 May 2020 14:49:38 +0200, Marek Szyprowski wrote: > This patchset is another attempt to fix the regulator coupling on > Exynos5800/5422 SoCs. Here are links to the previous attempts: > > https://lore.kernel.org/linux-samsung-soc/20191008101709.qVNy8eijBi0LynOteWFMnTg4GUwKG599n6OyYoX1Abs@

Re: [PATCH] regulator: core: Add regulator bypass trace points

2020-05-29 Thread Mark Brown
On Fri, 29 May 2020 16:22:16 +0100, Charles Keepax wrote: > Add new trace points for the start and end of enabling bypass on a > regulator, to allow monitoring of when regulators are moved into bypass > and how long that takes. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie

Re: mmotm 2020-05-13-20-30 uploaded (objtool warnings)

2020-05-29 Thread Peter Zijlstra
On Fri, May 29, 2020 at 11:50:11AM -0500, Josh Poimboeuf wrote: > The nested likelys seem like overkill anyway -- user_access_begin() is > __always_inline and it already has unlikely(), which should be > propagated. > > So just remove the outer likelys? That fixes it. Ack! > diff --git a/arch/x8

Re: [PATCH v3 0/2] regmap: provide simple bitops and use them in a driver

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 05:52:00PM +0100, Mark Brown wrote: > [1/1] regmap: provide helpers for simple bit operations > commit: aa2ff9dbaeddabb5ad166db5f9f1a0580a8bbba8 Let me know if you need a pull request for this, given the merge window is likely to open over the weekend I figured it's

Re: [PATCH 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-05-29 Thread Mel Gorman
t; still lying around to share? > I didn't preserve the vmlinux files. I can recreate them if you have problems reproducing this locally. The "perf archive" files and profile data can be downloaded at http://www.skynet.ie/~mel/postings/netperf-20200529/profile.tar.gz which should b

Re: [PATCH 0/2] Fix regulators coupling for Exynos5800

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 05:52:15PM +0100, Mark Brown wrote: > [1/1] regulator: extract voltage balancing code to the separate function > commit: 752db83a5dfd4fd3a0624b9ab440ed947fa003ca Let me know if you need a pull request for this - I figured it was too late to apply the second patch bef

Re: [PATCH] efi: Fix reference count leak in efivar_create_sysfs_entry.

2020-05-29 Thread Ard Biesheuvel
On Thu, 28 May 2020 at 20:59, wrote: > > From: Qiushi Wu > > kobject_init_and_add() should be handled when it return an error, > because kobject_init_and_add() takes reference even when it fails. > If this function returns an error, kobject_put() must be called to > properly clean up the memory a

Re: [PATCH] efi/esrt: Fix reference count leak in esre_create_sysfs_entry.

2020-05-29 Thread Ard Biesheuvel
On Thu, 28 May 2020 at 20:38, wrote: > > From: Qiushi Wu > > kobject_init_and_add() takes reference even when it fails. > If this function returns an error, kobject_put() must be called to > properly clean up the memory associated with the object. Previous > commit "b8eb718348b8" fixed a similar

Re: [PATCH] soc: qcom: rpmh-rsc: Don't use ktime for timeout in write_tcs_reg_sync()

2020-05-29 Thread Doug Anderson
Hi, On Thu, May 28, 2020 at 3:44 PM Stephen Boyd wrote: > > Quoting Douglas Anderson (2020-05-28 07:48:34) > > The write_tcs_reg_sync() may be called after timekeeping is suspended > > so it's not OK to use ktime. The readl_poll_timeout_atomic() macro > > implicitly uses ktime. This was causing

Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports

2020-05-29 Thread Russell King - ARM Linux admin
On Fri, May 29, 2020 at 06:25:04PM +0200, Andrew Lunn wrote: > > I wonder how much risk there is to changing that, so we force the link > > down if phylink says the link should be down, otherwise we force the > > speed/duplex, disable AN, and allow the link to come up depending on > > the serdes st

Re: [PATCH v14 1/1] perf tools: add support for libpfm4

2020-05-29 Thread Ian Rogers
On Tue, May 5, 2020 at 11:29 AM Ian Rogers wrote: > > From: Stephane Eranian > > This patch links perf with the libpfm4 library if it is available > and LIBPFM4 is passed to the build. The libpfm4 library > contains hardware event tables for all processors supported by > perf_events. It is a help

Re: [PATCH] dt-bindings: input: touchscreen: edt-ft5x06: change reg property

2020-05-29 Thread Rob Herring
On Wed, 20 May 2020 09:33:27 +0200, Johan Jonker wrote: > A test with the command below gives this error: > > arch/arm/boot/dts/rk3188-bqedison2qc.dt.yaml: > touchscreen@3e: reg:0:0: 56 was expected > > The touchscreen chip on 'rk3188-bqedison2qc' and other BQ models > was shipped with different

Re: [PATCH v4 1/5] dt-bindings: iio: imu: bmi160: convert format to yaml, add maintainer

2020-05-29 Thread Rob Herring
On Mon, 25 May 2020 18:46:00 +0200, Jonathan Albrieux wrote: > Converts documentation from txt format to yaml. > > Signed-off-by: Jonathan Albrieux > --- > .../devicetree/bindings/iio/imu/bmi160.txt| 37 - > .../bindings/iio/imu/bosch,bmi160.yaml| 75 +++ > 2

Re: [PATCH -tip v3 05/11] kcsan: Remove 'noinline' from __no_kcsan_or_inline

2020-05-29 Thread Peter Zijlstra
On Thu, May 21, 2020 at 04:20:41PM +0200, Marco Elver wrote: > Some compilers incorrectly inline small __no_kcsan functions, which then > results in instrumenting the accesses. For this reason, the 'noinline' > attribute was added to __no_kcsan_or_inline. All known versions of GCC > are affected by

Re: [PATCH v4 2/5] dt-bindings: iio: imu: bmi160: add regulators and mount-matrix

2020-05-29 Thread Rob Herring
On Mon, May 25, 2020 at 06:46:01PM +0200, Jonathan Albrieux wrote: > Add vdd-supply and vddio-supply support. > Add mount-matrix support. > > Signed-off-by: Jonathan Albrieux > --- > .../bindings/iio/imu/bosch,bmi160.yaml | 16 > 1 file changed, 16 insertions(+) > > d

Re: [PATCH 1/1] tty: serial: owl: Add support for kernel debugger

2020-05-29 Thread Cristian Ciocaltea
On Fri, May 29, 2020 at 05:56:47PM +0200, Andreas Färber wrote: > Hi, > > Am 29.05.20 um 17:50 schrieb Cristian Ciocaltea: > > Implement poll_put_char and poll_get_char callbacks in struct uart_ops > > that enables OWL UART to be used for KGDB debugging over serial line. > > > > Signed-off-by: Cr

Re: [BOOTLOADER SPECIFICATION RFC] The bootloader log format for TrenchBoot and others

2020-05-29 Thread Andy Lutomirski
> On May 29, 2020, at 4:30 AM, Daniel Kiper wrote: > > Hey, > > Below you can find my rough idea of the bootloader log format which is > generic thing but initially will be used for TrenchBoot work. I discussed > this proposal with Ross and Daniel S. So, the idea went through initial > sanit

Re: PANIC: double fault in fixup_bad_iret

2020-05-29 Thread Peter Zijlstra
On Fri, May 29, 2020 at 06:07:11PM +0200, Peter Zijlstra wrote: > Like with KCSAN, we should blanket kill KASAN/UBSAN and friends (at the > very least in arch/x86/) until they get that function attribute stuff > sorted. Something like so. --- diff --git a/arch/x86/Makefile b/arch/x86/Makefile in

Re: [PATCH 3/3] hwrng: ba431-rng: add support for BA431 hwrng

2020-05-29 Thread Rob Herring
On Mon, May 25, 2020 at 10:28:46PM +0200, Arnd Bergmann wrote: > On Mon, May 25, 2020 at 10:07 PM Olivier Sobrie > wrote: > > > > Silex insight BA431 is an IP designed to generate random numbers that > > can be integrated in various FPGA. > > This driver adds support for it through the hwrng inter

Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Silex Insight vendor prefix

2020-05-29 Thread Rob Herring
On Mon, 25 May 2020 21:56:04 +0200, Olivier Sobrie wrote: > Silex Insight is a microelectronic company whose headquarter is located > in Belgium. > Web site of the company: https://www.silexinsight.com/ > > Signed-off-by: Olivier Sobrie > --- > Documentation/devicetree/bindings/vendor-prefixes.y

Re: [PATCH 2/3] dt-bindings: rng: document Silex Insight BA431 hwrng

2020-05-29 Thread Rob Herring
On Mon, 25 May 2020 21:56:05 +0200, Olivier Sobrie wrote: > This patch documents the device tree bindings of the BA431 hardware > random number generator. > > This IP is for instance present in the Viper OEM boards sold by Silex > Insight. > > Signed-off-by: Olivier Sobrie > --- > .../bindings/

Re: [PATCH v2 1/2] dt-bindings: phy: intel: Add Keem Bay eMMC PHY bindings

2020-05-29 Thread Rob Herring
On Tue, May 26, 2020 at 01:04:51PM +0800, Wan Ahmad Zainie wrote: > Binding description for Intel Keem Bay eMMC PHY. > > Signed-off-by: Wan Ahmad Zainie > --- > .../bindings/phy/intel,keembay-emmc-phy.yaml | 45 +++ > 1 file changed, 45 insertions(+) > create mode 100644 > Doc

Re: [PATCH] cw1200: Remove local sdio VENDOR and DEVICE id definitions

2020-05-29 Thread Kalle Valo
Pali Rohár wrote: > They are already present in linux/mmc/sdio_ids.h. > > Signed-off-by: Pali Rohár Patch applied to wireless-drivers-next.git, thanks. 83cee4e625f8 cw1200: Remove local sdio VENDOR and DEVICE id definitions -- https://patchwork.kernel.org/patch/11560329/ https://wireless.w

Re: [PATCH] atmel: Use shared constant for rfc1042 header

2020-05-29 Thread Kalle Valo
Pascal Terjan wrote: > This is one of the 9 drivers redefining rfc1042_header. > > Signed-off-by: Pascal Terjan Patch applied to wireless-drivers-next.git, thanks. e78e5d18c653 atmel: Use shared constant for rfc1042 header -- https://patchwork.kernel.org/patch/11567013/ https://wireless.wi

Re: [PATCH] libertas: Use shared constant for rfc1042 header

2020-05-29 Thread Kalle Valo
Pascal Terjan wrote: > This is one of the 9 drivers redefining rfc1042_header. > > Signed-off-by: Pascal Terjan Patch applied to wireless-drivers-next.git, thanks. 729ef6b614a1 libertas: Use shared constant for rfc1042 header -- https://patchwork.kernel.org/patch/11567011/ https://wireless

Re: [PATCH] spi: bcm2835: Implement shutdown callback

2020-05-29 Thread Mark Brown
On Thu, 28 May 2020 12:06:05 -0700, Florian Fainelli wrote: > Make sure we clear the FIFOs, stop the block, disable the clock and > release the DMA channel. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: bcm2835: Implement shutdown call

Re: [PATCH v6 00/16] spi: dw: Add generic DW DMA controller support

2020-05-29 Thread Mark Brown
On Fri, 29 May 2020 16:11:49 +0300, Serge Semin wrote: > Baikal-T1 SoC provides a DW DMA controller to perform low-speed peripherals > Mem-to-Dev and Dev-to-Mem transaction. This is also applicable to the DW > APB SSI devices embedded into the SoC. Currently the DMA-based transfers > are supported

Re: [PATCH] spi: bcm2835: Enable shared interrupt support

2020-05-29 Thread Mark Brown
On Thu, 28 May 2020 20:58:04 +0200, Nicolas Saenz Julienne wrote: > bcm2711, Rasberry Pi 4's SoC, shares one interrupt for multiple > instances of the bcm2835 SPI controller. So this enables shared > interrupt support for them. > > The early bail out in the interrupt routine avoids messing with bu

Re: [PATCHv4 1/2] spi: dw: add reset control

2020-05-29 Thread Mark Brown
On Fri, 29 May 2020 10:58:05 -0500, Dinh Nguyen wrote: > Add mechanism to get the reset control and deassert it in order to bring > the IP out of reset. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/2] spi: dw: add reset control commit:

Re: [PATCH] mwifiex: Add support for NL80211_ATTR_MAX_AP_ASSOC_STA

2020-05-29 Thread Pali Rohár
On Thursday 21 May 2020 14:35:59 Pali Rohár wrote: > SD8997 firmware sends TLV_TYPE_MAX_CONN with struct hw_spec_max_conn to > inform kernel about maximum number of p2p connections and stations in AP > mode. > > During initialization of SD8997 wifi chip kernel prints warning: > > mwifiex_sdio m

Re: [PATCHv3 1/2] spi: dw: add reset control

2020-05-29 Thread Mark Brown
On Wed, 27 May 2020 15:41:09 -0500, Dinh Nguyen wrote: > Add mechanism to get the reset control and deassert it in order to bring > the IP out of reset. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/2] spi: dw: add reset control commit:

[PATCH v3 1/2] drivers/irqchip: Add new macro ACPI_DECLARE_SUBTABLE_PROBE_ENTRY

2020-05-29 Thread Oscar Carter
In an effort to enable -Wcast-function-type in the top-level Makefile to support Control Flow Integrity builds, there are the need to remove all the function callback casts. To do this, create a new macro called ACPI_DECLARE_SUBTABLE_PROBE_ENTRY to initialize the acpi_probe_entry struct using the

[PATCH v3 0/2] drivers/irqchip: Remove function callback casts

2020-05-29 Thread Oscar Carter
In an effort to enable -Wcast-function-type in the top-level Makefile to support Control Flow Integrity builds, there are the need to remove all the function callback casts. The first patch creates a macro called ACPI_DECLARE_SUBTABLE_PROBE_ENTRY to initialize the acpi_probe_entry struct using the

[PATCH v3 2/2] drivers/irqchip: Use new macro ACPI_DECLARE_SUBTABLE_PROBE_ENTRY

2020-05-29 Thread Oscar Carter
In an effort to enable -Wcast-function-type in the top-level Makefile to support Control Flow Integrity builds, there are the need to remove all the function callback casts. To do this, modify the IRQCHIP_ACPI_DECLARE macro to use the new defined macro ACPI_DECLARE_SUBTABLE_PROBE_ENTRY instead of

[GIT PULL] arm64 fix for 5.7-rc8/final

2020-05-29 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fix below. Thanks. The following changes since commit 8cfb347ad0cffdbfc69c82506fb3be9429563211: arm64: Add get_user() type annotation on the !access_ok() path (2020-05-22 16:59:49 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/l

Re: [PATCH v2] arm: dts: am335x-boneblack: add gpio-line-names

2020-05-29 Thread Tony Lindgren
* Drew Fustini [200528 13:17]: > FYI - Linus W. provided an Acked-by in related thread [0]. > > Anyone else have any review comments? Looks good to me thanks. But as the merge window is about to open, let's do fixes only at this point and leave this for v5.9. Regards, Tony > > [0] > https:

Re: Some -serious- BPF-related litmus tests

2020-05-29 Thread Joel Fernandes
On Thu, May 28, 2020 at 09:38:35PM -0700, Andrii Nakryiko wrote: > On Thu, May 28, 2020 at 2:48 PM Joel Fernandes wrote: > > > > On Mon, May 25, 2020 at 11:38:23AM -0700, Andrii Nakryiko wrote: > > > On Mon, May 25, 2020 at 7:53 AM Boqun Feng wrote: > > > > > > > > Hi Andrii, > > > > > > > > On F

Re: [PATCH v14 1/1] perf tools: add support for libpfm4

2020-05-29 Thread Arnaldo Carvalho de Melo
Em Fri, May 29, 2020 at 10:03:51AM -0700, Ian Rogers escreveu: > On Tue, May 5, 2020 at 11:29 AM Ian Rogers wrote: > > > > From: Stephane Eranian > > > > This patch links perf with the libpfm4 library if it is available > > and LIBPFM4 is passed to the build. The libpfm4 library > > contains hard

Re: [PATCH v2] hwmon:(adm1275) Enable adm1278 ADM1278_TEMP1_EN

2020-05-29 Thread Guenter Roeck
On 5/29/20 5:46 AM, Manikandan Elumalai wrote: > The adm1278 temperature sysfs attribute need it for one of the openbmc > platform . > This functionality is not enabled by default, so PMON_CONFIG needs to be > modified in order to enable it. > > Signed-off-by : Manikandan Elumalai This is n

Re: [PATCH] wlcore: fix runtime pm imbalance in wl1271_tx_work

2020-05-29 Thread Kalle Valo
Dinghao Liu wrote: > There are two error handling paths in this functon. When > wlcore_tx_work_locked() returns an error code, we should > decrease the runtime PM usage counter the same way as the > error handling path beginning from pm_runtime_get_sync(). > > Signed-off-by: Dinghao Liu > Acked

Re: [sched/fair] 0b0695f2b3: phoronix-test-suite.compress-gzip.0.seconds 19.8% regression

2020-05-29 Thread Vincent Guittot
On Mon, 25 May 2020 at 10:02, Vincent Guittot wrote: > > On Thu, 21 May 2020 at 10:28, Oliver Sang wrote: > > > > On Wed, May 20, 2020 at 03:04:48PM +0200, Vincent Guittot wrote: > > > On Thu, 14 May 2020 at 19:09, Vincent Guittot > > > wrote: > > > > > > > > Hi Oliver, > > > > > > > > On Thu, 1

Re: [PATCH] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-05-29 Thread Tzung-Bi Shih
On Fri, May 29, 2020 at 9:05 PM Mark Brown wrote: > > On Fri, May 29, 2020 at 07:22:43PM +0800, Tzung-Bi Shih wrote: > > On Fri, May 29, 2020 at 7:09 PM Mark Brown wrote: > > > > What is DMIC one wire mode? This doesn't sound like something I'd > > > expect to vary at runtime. > > > It means: 1

Re: general protection fault in inet_unhash

2020-05-29 Thread Eric Dumazet
On 5/28/20 11:32 PM, Andrii Nakryiko wrote: > On 5/28/20 11:23 PM, Dmitry Vyukov wrote: >> On Thu, May 28, 2020 at 11:01 PM 'Andrii Nakryiko' via syzkaller-bugs >> wrote: >>> >>> On 5/28/20 9:44 AM, syzbot wrote: Hello, syzbot found the following crash on: HEAD commit: 

Re: [PATCH] efi: Replace zero-length array and use struct_size() helper

2020-05-29 Thread Gustavo A. R. Silva
On Fri, May 29, 2020 at 01:31:54AM -0700, Kees Cook wrote: > On Wed, May 27, 2020 at 12:14:25PM -0500, Gustavo A. R. Silva wrote: > > The current codebase makes use of the zero-length array language > > extension to the C90 standard, but the preferred mechanism to declare > > variable-length types

Re: [PATCH 0/2] Fix regulators coupling for Exynos5800

2020-05-29 Thread Krzysztof Kozlowski
On Fri, May 29, 2020 at 05:58:27PM +0100, Mark Brown wrote: > On Fri, May 29, 2020 at 05:52:15PM +0100, Mark Brown wrote: > > > [1/1] regulator: extract voltage balancing code to the separate function > > commit: 752db83a5dfd4fd3a0624b9ab440ed947fa003ca > > Let me know if you need a pull re

Re: [PATCH v6 00/16] spi: dw: Add generic DW DMA controller support

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 08:26:42PM +0300, Serge Semin wrote: > You must have missed the patch 16: > 0e8332aaf059 dt-bindings: spi: Convert DW SPI binding to DT schema > As you can see it has been acked by Rob. So you can also merge it into your > repo. Though It has to be rebased first due to the

[PATCH] x86/uaccess: Remove redundant likely/unlikely annotations

2020-05-29 Thread Josh Poimboeuf
On Fri, May 29, 2020 at 06:54:19PM +0200, Peter Zijlstra wrote: > On Fri, May 29, 2020 at 11:50:11AM -0500, Josh Poimboeuf wrote: > > The nested likelys seem like overkill anyway -- user_access_begin() is > > __always_inline and it already has unlikely(), which should be > > propagated. > > > > So

Re: [PATCH] wlcore: fix runtime pm imbalance in wl1271_op_suspend

2020-05-29 Thread Kalle Valo
Dinghao Liu wrote: > When wlcore_hw_interrupt_notify() returns an error code, > a pairing runtime PM usage counter decrement is needed to > keep the counter balanced. > > Signed-off-by: Dinghao Liu > Acked-by: Tony Lindgren Patch applied to wireless-drivers-next.git, thanks. 3e69ed2b52fd wlc

Re: [PATCH 4/6] x86/entry: Optimize local_db_save() for virt

2020-05-29 Thread Sean Christopherson
On Thu, May 28, 2020 at 10:19:41PM +0200, Peter Zijlstra wrote: > static int arch_bp_generic_len(int x86_len) > --- a/arch/x86/kvm/vmx/nested.c > +++ b/arch/x86/kvm/vmx/nested.c > @@ -3027,6 +3027,8 @@ static int nested_vmx_check_vmentry_hw(s > > /* >* VMExit clears RFLAGS.IF and D

Re: [PATCH] wlcore: fix runtime pm imbalance in wlcore_regdomain_config

2020-05-29 Thread Kalle Valo
Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter balanced. > > Signed-off-by: Dinghao Liu > Acked-by: Tony Lindgren Patch applied to wir

Re: [PATCH linux-rcu] docs/litmus-tests: add BPF ringbuf MPSC litmus tests

2020-05-29 Thread Joel Fernandes
Hi Andrii, On Thu, May 28, 2020 at 10:50:30PM -0700, Andrii Nakryiko wrote: > > [...] > > > diff --git a/Documentation/litmus-tests/bpf-rb/bpf-rb+1p1c+bounded.litmus > > > b/Documentation/litmus-tests/bpf-rb/bpf-rb+1p1c+bounded.litmus > > > new file mode 100644 > > > index ..558f054fb

Re: [PATCH] wlcore: fix runtime pm imbalance in __wl1271_op_remove_interface

2020-05-29 Thread Kalle Valo
Dinghao Liu wrote: > When wl12xx_cmd_role_disable() returns an error code, > a pairing runtime PM usage counter decrement is needed to > keep the counter balanced. > > Signed-off-by: Dinghao Liu > Acked-by: Tony Lindgren Patch applied to wireless-drivers-next.git, thanks. 53df5271f239 wlcore

Re: [PATCH v2 09/14] device core: Add ability to handle multiple dma offsets

2020-05-29 Thread Rob Herring
On Wed, May 27, 2020 at 9:43 AM Jim Quinlan wrote: > > Hi Nicolas, > > On Wed, May 27, 2020 at 11:00 AM Nicolas Saenz Julienne > wrote: > > > > Hi Jim, > > one thing comes to mind, there is a small test suite in > > drivers/of/unittest.c > > (specifically of_unittest_pci_dma_ranges()) you could

Re: [PATCH v6 00/16] spi: dw: Add generic DW DMA controller support

2020-05-29 Thread Serge Semin
On Fri, May 29, 2020 at 06:33:25PM +0100, Mark Brown wrote: > On Fri, May 29, 2020 at 08:26:42PM +0300, Serge Semin wrote: > > > You must have missed the patch 16: > > 0e8332aaf059 dt-bindings: spi: Convert DW SPI binding to DT schema > > As you can see it has been acked by Rob. So you can also me

Re: [PATCH v14 1/1] perf tools: add support for libpfm4

2020-05-29 Thread Ian Rogers
On Fri, May 29, 2020 at 10:23 AM Arnaldo Carvalho de Melo wrote: > > Em Fri, May 29, 2020 at 10:03:51AM -0700, Ian Rogers escreveu: > > On Tue, May 5, 2020 at 11:29 AM Ian Rogers wrote: > > > > > > From: Stephane Eranian > > > > > > This patch links perf with the libpfm4 library if it is availab

Re: [PATCH v14 1/1] perf tools: add support for libpfm4

2020-05-29 Thread Arnaldo Carvalho de Melo
Em Fri, May 29, 2020 at 02:23:10PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, May 29, 2020 at 10:03:51AM -0700, Ian Rogers escreveu: > > On Tue, May 5, 2020 at 11:29 AM Ian Rogers wrote: > > > > > > From: Stephane Eranian > > > > > > This patch links perf with the libpfm4 library if it i

Re: [PATCH] dt-bindings: leds: fix macro names for pca955x

2020-05-29 Thread Rob Herring
On Tue, 26 May 2020 11:20:52 +0200, Flavio Suligoi wrote: > The documentation reports the wrong macro names > related to the pca9532 instead of the pca955x > > Signed-off-by: Flavio Suligoi > --- > Documentation/devicetree/bindings/leds/leds-pca955x.txt | 6 +++--- > 1 file changed, 3 insertions

Re: [PATCH 1/6] x86/entry: Introduce local_db_{save,restore}()

2020-05-29 Thread Andy Lutomirski
> On May 28, 2020, at 2:34 PM, Peter Zijlstra wrote: > > On Thu, May 28, 2020 at 11:15:50PM +0200, Peter Zijlstra wrote: >>> On Thu, May 28, 2020 at 09:52:30PM +0100, Andrew Cooper wrote: >>> On 28/05/2020 21:19, Peter Zijlstra wrote: --- a/arch/x86/include/asm/debugreg.h +++ b/arch

Re: [PATCH v4 1/4] scsi: ufs: remove max_t in ufs_get_device_desc

2020-05-29 Thread Stanley Chu
On Fri, 2020-05-29 at 18:40 +0200, Bean Huo wrote: > From: Bean Huo > > For the UFS device, the maximum descriptor size is 255, max_t called > in ufs_get_device_desc() is useless. > > Signed-off-by: Bart van Assche > Signed-off-by: Bean Huo > Acked-by: Avri Altman Reviewed-by: Stanley Chu

Re: [PATCH] wlcore: fix runtime pm imbalance in wlcore_irq_locked

2020-05-29 Thread Kalle Valo
Dinghao Liu wrote: > When wlcore_fw_status() returns an error code, a pairing > runtime PM usage counter decrement is needed to keep the > counter balanced. It's the same for all error paths after > wlcore_fw_status(). > > Signed-off-by: Dinghao Liu > Acked-by: Tony Lindgren Patch applied to

[PATCH for-next 1/1] null_blk: force complete for timeout request

2020-05-29 Thread Dongli Zhang
The commit 7b11eab041da ("blk-mq: blk-mq: provide forced completion method") exports new API to force a request to complete without error injection. There should be no error injection when completing a request by timeout handler. Otherwise, the below would hang because timeout handler is failed.

Re: [PATCH 1/1] dt-bindings: MIPS: Document Ingenic SoCs binding.

2020-05-29 Thread Rob Herring
On Tue, May 26, 2020 at 09:10:29PM +0200, Paul Cercueil wrote: > Hi Zhou, > > Le mer. 27 mai 2020 à 1:07, 周琰杰 (Zhou Yanjie) > a écrit : > > Document the available properties for the SoC root node and the > > CPU nodes of the devicetree for the Ingenic XBurst SoCs. > > > > Tested-by: H. Nikolaus

Re: [PATCH v6 00/16] spi: dw: Add generic DW DMA controller support

2020-05-29 Thread Serge Semin
Mark On Fri, May 29, 2020 at 06:18:32PM +0100, Mark Brown wrote: > On Fri, 29 May 2020 16:11:49 +0300, Serge Semin wrote: > > Baikal-T1 SoC provides a DW DMA controller to perform low-speed peripherals > > Mem-to-Dev and Dev-to-Mem transaction. This is also applicable to the DW > > APB SSI devices

Re: [PATCH v2 1/3] seccomp: Add find_notification helper

2020-05-29 Thread Sargun Dhillon
> > While the comment is good, let's actually enforce this with: > > if (WARN_ON(!mutex_is_locked(&filter->notif_lock))) > return NULL; > I don't see much use of lockdep in seccomp (well, any), but wouldn't a stronger statement be to use lockdep, and just have: lockdep_assert_held(&filter

Re: [PATCH] mwifiex: Add support for NL80211_ATTR_MAX_AP_ASSOC_STA

2020-05-29 Thread Kalle Valo
Pali Rohár writes: > On Thursday 21 May 2020 14:35:59 Pali Rohár wrote: >> SD8997 firmware sends TLV_TYPE_MAX_CONN with struct hw_spec_max_conn to >> inform kernel about maximum number of p2p connections and stations in AP >> mode. >> >> During initialization of SD8997 wifi chip kernel prints wa

[PATCH v8 0/2] ACPI / APEI: Add support to notify the vendor specific HW errors

2020-05-29 Thread Shiju Jose
Presently the vendor drivers are unable to do the recovery for the vendor specific recoverable HW errors because APEI driver does not support reporting the error to the vendor drivers. patch set 1. add new interface to the APEI driver for reporting the vendor specific non-fatal HW errors to th

[PATCH v8 1/2] ACPI / APEI: Add support to notify the vendor specific HW errors

2020-05-29 Thread Shiju Jose
Add support to report the vendor specific non-fatal HW errors to the drivers for the error recovery. Signed-off-by: Shiju Jose --- drivers/acpi/apei/ghes.c | 126 ++- include/acpi/ghes.h | 28 + 2 files changed, 153 insertions(+), 1 deletion(-)

Re: [PATCH] mwifiex: Parse all API_VER_ID properties

2020-05-29 Thread Kalle Valo
Pali Rohár wrote: > During initialization of SD8997 wifi chip kernel prints warnings: > > mwifiex_sdio mmc0:0001:1: Unknown api_id: 3 > mwifiex_sdio mmc0:0001:1: Unknown api_id: 4 > > This patch adds support for parsing all api ids provided by SD8997 > firmware. > > Signed-off-by: Pali Roh

[PATCH v8 2/2] PCI: hip: Add handling of HiSilicon HIP PCIe controller errors

2020-05-29 Thread Shiju Jose
From: Yicong Yang The HiSilicon HIP PCIe controller is capable of handling errors on root port and perform port reset separately at each root port. This patch add error handling driver for HIP PCIe controller to log and report recoverable errors. Perform root port reset and restore link status a

[no subject]

2020-05-29 Thread John Paul Adrian Glaubitz
Hi! This is my attempt of implementing a 64-bit get_user() for SH to address the build problem when CONFIG_INFINIBAND_USER_ACCESS is enabled. I have carefully looked at the existing implementations of __get_user_asm(), __put_user_asm() and the 64-bit __put_user_u64() to come up with the 64-bit

[PATCH] sh: Implement __get_user_u64() required for 64-bit get_user()

2020-05-29 Thread John Paul Adrian Glaubitz
Trying to build the kernel with CONFIG_INFINIBAND_USER_ACCESS enabled fails ERROR: "__get_user_unknown" [drivers/infiniband/core/ib_uverbs.ko] undefined! with on SH since the kernel misses a 64-bit implementation of get_user(). Implement the missing 64-bit get_user() as __get_user_u64(), m

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