Re: [PATCH 7/8] riscv: Use pgtable_l4_enabled to output mmu type in cpuinfo

2020-05-26 Thread Alex Ghiti
Hi Anup, Le 5/25/20 à 2:21 AM, Anup Patel a écrit : On Sun, May 24, 2020 at 2:47 PM Alexandre Ghiti wrote: Now that the mmu type is determined at runtime using SATP characteristic, use the global variable pgtable_l4_enabled to output mmu type of the processor through /proc/cpuinfo instead of r

Re: x86/entry vs kgdb

2020-05-26 Thread Peter Zijlstra
On Tue, May 26, 2020 at 05:16:21PM +0100, Daniel Thompson wrote: > On Mon, May 25, 2020 at 11:18:32AM +0200, Peter Zijlstra wrote: > > On Mon, May 25, 2020 at 10:36:05AM +0200, Peter Zijlstra wrote: > > > Hi! > > > > > > Since you seem to care about kgdb, I figured you might want to fix this > > >

Re: [rcu:dev.2020.05.25a 51/63] kernel/rcu/refperf.c:298:6: warning: no previous prototype for function 'reset_readers'

2020-05-26 Thread Joel Fernandes
On Tue, May 26, 2020 at 09:11:17AM -0700, Paul E. McKenney wrote: > On Tue, May 26, 2020 at 08:07:35PM +0800, kbuild test robot wrote: > > tree: > > https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > > dev.2020.05.25a > > head: 1e9451642683146552713c5ce6d269ae378eacd5 > >

Re: [PATCH 01/10] rcu: Directly lock rdp->nocb_lock on nocb code entrypoints

2020-05-26 Thread Paul E. McKenney
On Tue, May 26, 2020 at 11:21:37AM -0400, Joel Fernandes wrote: > Hi Paul, > > On Fri, May 22, 2020 at 10:57:39AM -0700, Paul E. McKenney wrote: > > On Wed, May 20, 2020 at 08:29:49AM -0400, Joel Fernandes wrote: > > > On Wed, May 13, 2020 at 06:47:05PM +0200, Frederic Weisbecker wrote: > > > > Pu

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-26 Thread Mike Rapoport
e a differernt problem, but this could be related: > >>> > >>> INIT: version 2.86 booting > >>> rcu: INFO: rcu_sched detected stalls on CPUs/tasks: > >>> (detected by 0, t=5252 jiffies, g=-935, q=3) > >>> rcu: All QSes seen, last rcu_sch

Re: (dt review needed) Re: [PATCH v25 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-05-26 Thread Rob Herring
On Tue, May 26, 2020 at 6:29 AM Pavel Machek wrote: > > Hi! > > > Rob > > > Can you re-review this series for dt-bindings? > > > > https://lore.kernel.org/patchwork/project/lkml/list/?series=441958 > > > > I know you may reviewed them before and may have acked them but they have > > changed enough

Re: [PATCH 5/8] riscv: Implement sv48 support

2020-05-26 Thread Alex Ghiti
Le 5/25/20 à 2:45 AM, Anup Patel a écrit : On Sun, May 24, 2020 at 2:45 PM Alexandre Ghiti wrote: By adding a new 4th level of page table, give the possibility to 64bit kernel to address 2^48 bytes of virtual address: in practice, that roughly offers ~160TB of virtual address space to userspace

Re: [PATCH] srcu: Avoid local_irq_save() before acquiring spinlock_t

2020-05-26 Thread Sebastian Andrzej Siewior
On 2020-05-26 09:16:09 [-0700], Paul E. McKenney wrote: > Queued, thank you!!! thank you. > Thanx, Paul Sebastian

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 08:48:35AM -0700, Andi Kleen wrote: > On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > > On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > > > From: Andi Kleen > > > > > > Since there seem to be kernel modules floating around that set > > > FSGSBASE i

[PATCH bpf-next 2/4] bpf: Implement bpf_local_storage for inodes

2020-05-26 Thread KP Singh
From: KP Singh Similar to bpf_local_storage for sockets, add local storage for inodes. The life-cycle of storage is managed with the life-cycle of the inode. i.e. the storage is destroyed along with the owning inode. Since, the intention is to use this in LSM programs, the destruction is done af

[PATCH bpf-next 0/4] Generalizing bpf_local_storage

2020-05-26 Thread KP Singh
From: KP Singh bpf_sk_storage can already be used by some BPF program types to annotate socket objects. These annotations are managed with the life-cycle of the object (i.e. freed when the object is freed) which makes BPF programs much simpler and less prone to errors and leaks. This patch serie

[PATCH bpf-next 1/4] bpf: Generalize bpf_sk_storage

2020-05-26 Thread KP Singh
From: KP Singh Refactor the functionality in bpf_sk_storage.c so that concept of storage linked to kernel objects can be extended to other objects like inode, task_struct etc. bpf_sk_storage is updated to be bpf_local_storage with a union that contains a pointer to the owner object. The type of

[PATCH bpf-next 4/4] bpf: Add selftests for local_storage

2020-05-26 Thread KP Singh
From: KP Singh inode_local_storage: * Hook to the file_open and inode_unlink LSM hooks. * Create and unlink a temporary file. * Store some information in the inode's bpf_local_storage during file_open. * Verify that this information exists when the file is unlinked. sk_local_storage: * Hook

[PATCH bpf-next 3/4] bpf: Allow local storage to be used from LSM programs

2020-05-26 Thread KP Singh
From: KP Singh Adds support for both bpf_{sk, inode}_storage_{get, delete} to be used in LSM programs. These helpers are not used for tracing programs (currently) as their usage is tied to the life-cycle of the object and should only be used where the owning object won't be freed. Thus, they are

[tip: sched/urgent] sched/fair: Don't NUMA balance for kthreads

2020-05-26 Thread tip-bot2 for Jens Axboe
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 18f855e574d9799a0e7489f8ae6fd8447d0dd74a Gitweb: https://git.kernel.org/tip/18f855e574d9799a0e7489f8ae6fd8447d0dd74a Author:Jens Axboe AuthorDate:Tue, 26 May 2020 09:38:31 -06:00 Committer

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Kees Cook
On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Since there seem to be kernel modules floating around that set > FSGSBASE incorrectly, prevent this in the CR4 pinning. Currently > CR4 pinning just checks that bits are set, this also checks > that the FSGSBASE bi

Re: linux-next: Tree for May 21 (objtool warnings)

2020-05-26 Thread Miroslav Benes
On Tue, 26 May 2020, Josh Poimboeuf wrote: > On Mon, May 25, 2020 at 01:07:27PM +0200, Miroslav Benes wrote: > > > I'll try to find out which optimization does this, because it is a > > > slightly different scenario than hiding __noreturn from the callees. > > > Probably -fno-ipa-pure-const agai

Re: [PATCH] sched/fair: don't NUMA balance for kthreads

2020-05-26 Thread Valentin Schneider
On 26/05/20 16:38, Jens Axboe wrote: > Stefano reported a crash with using SQPOLL with io_uring: > > BUG: kernel NULL pointer dereference, address: 03b0 > #PF: supervisor read access in kernel mode > #PF: error_code(0x) - not-present page > PGD 80046c042067 P4D 80046c04206

Re: [PATCH] drm/msm/a6xx: set ubwc config for A640 and A650

2020-05-26 Thread Jordan Crouse
On Mon, May 25, 2020 at 11:25:13PM -0400, Jonathan Marek wrote: > This is required for A640 and A650 to be able to share UBWC-compressed > images with other HW such as display, which expect this configuration. > Signed-off-by: Jonathan Marek > --- > drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 38 +++

Re: [RT PATCH] Fixed: line break of pr_cont not take effect

2020-05-26 Thread Sebastian Andrzej Siewior
On 2020-05-23 12:41:27 [+0200], John Ogness wrote: > > Signed-off-by: 汪勇10269566 > > Acked-by: John Ogness > > @Sebastian: The original patch submission is here[0]. I reworded it and applied it. Thanks everyone. 汪勇, I suggest to mail patches as root in future. > Thanks, > John Ogness Sebasti

Re: [PATCH] spi: spi-fsl-lpspi: Fix runtime PM imbalance on error

2020-05-26 Thread Mark Brown
On Sat, 23 May 2020 21:38:59 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it 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/l

Re: [PATCH] ASoC: fix semicolon.cocci warnings

2020-05-26 Thread Mark Brown
On Tue, 26 May 2020 02:43:51 +0800, kbuild test robot wrote: > sound/soc/codecs/zl38060.c:298:2-3: Unneeded semicolon > > > Remove unneeded semicolon. > > Generated by: scripts/coccinelle/misc/semicolon.cocci Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-

Re: [PATCH] [v2] ASoC: ti: Fix runtime PM imbalance in omap2_mcbsp_set_clks_src

2020-05-26 Thread Mark Brown
On Mon, 25 May 2020 16:58:48 +0800, Dinghao Liu wrote: > When clk_set_parent() returns an error code, a pairing > runtime PM usage counter increment is needed to keep the > counter balanced. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] A

Re: [PATCH] ASoC: tas2552: Fix runtime PM imbalance in tas2552_component_probe

2020-05-26 Thread Mark Brown
On Mon, 25 May 2020 15:17:30 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it 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/l

Re: [PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe.

2020-05-26 Thread Mark Brown
On Mon, 25 May 2020 00:50:11 -0500, wu000...@umn.edu wrote: > Function "pm_runtime_get_sync()" is not handled by "pm_runtime_put()" > if "PTR_ERR(rst) == -EPROBE_DEFER". Fix this issue by adding > "pm_runtime_put()" into this error path. Applied to https://git.kernel.org/pub/scm/linux/kernel/g

[PATCH v25 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-05-26 Thread Dan Murphy
Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.yaml | 71 +++ dri

[PATCH v25 00/16] Multicolor Framework v25

2020-05-26 Thread Dan Murphy
Hello This is the multi color LED framework. This framework presents clustered colored LEDs into an array and allows the user space to adjust the brightness of the cluster using a single file write. The individual colored LEDs intensities are controlled via a single file that is an array of LED

[PATCH v25 02/16] leds: multicolor: Introduce a multicolor class definition

2020-05-26 Thread Dan Murphy
Introduce a multicolor class that groups colored LEDs within a LED node. The multi color class groups monochrome LEDs and allows controlling two aspects of the final combined color: hue and lightness. The former is controlled via the intensity file and the latter is controlled via brightness file.

[PATCH v25 03/16] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2020-05-26 Thread Dan Murphy
Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024, LP5018, LP5012 and LP5009 RGB LED device driver. The LP5036/30/24/18/12/9 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to adjust the mixing control for the RGB LEDs to o

[PATCH v25 13/16] leds: lp5521: Add multicolor framework multicolor brightness support

2020-05-26 Thread Dan Murphy
Add the multicolor brightness call back to support the multicolor framework. This function allows setting the brightness across grouped LED channels in a single call. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 1 + drivers/leds

[PATCH v25 04/16] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-05-26 Thread Dan Murphy
Introduce the LP5036/30/24/18/12/9 RGB LED driver. The difference in these parts are the number of LED outputs where the: LP5036 can control 36 LEDs LP5030 can control 30 LEDs LP5024 can control 24 LEDs LP5018 can control 18 LEDs LP5012 can control 12 LEDs LP5009 can control 9 LEDs The device has

[PATCH v25 12/16] leds: lp5523: Update the lp5523 code to add multicolor brightness function

2020-05-26 Thread Dan Murphy
Add the multicolor brightness call back to support the multicolor framework. This call back allows setting brightness on grouped channels in a single function. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 1 + drivers/leds/leds

[PATCH v25 11/16] leds: lp55xx: Add multicolor framework support to lp55xx

2020-05-26 Thread Dan Murphy
Add multicolor framework support for the lp55xx family. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 1 + drivers/leds/leds-lp5521.c| 14 +- drivers/leds/leds-lp5523.c| 14 +- dri

[PATCH v25 05/16] dt: bindings: lp55xx: Be consistent in the document with LED acronym

2020-05-26 Thread Dan Murphy
Update the document to be consistent in case when using "LED". This acronym should be capital throughout the document. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/leds/leds-lp55xx.txt | 6 +++--- 1 file changed, 3 insertions

[PATCH v25 07/16] ARM: dts: n900: Add reg property to the LP5523 channel node

2020-05-26 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy Acked-by: To

[PATCH v25 09/16] ARM: dts: ste-href: Add reg property to the LP5521 channel nodes

2020-05-26 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy CC: Linus Wa

[PATCH v25 14/16] leds: lp55xx: Fix checkpatch file permissions issues

2020-05-26 Thread Dan Murphy
Fix the checkpatch warnings for the use of the file permission macros. In converting the file permissions to the DEVICE_ATTR_XX macros the call back function names needed to be updated within the code. This means that the lp55xx_ needed to be dropped in the name to keep in harmony with the ABI doc

[PATCH v25 06/16] dt: bindings: lp55xx: Update binding for Multicolor Framework

2020-05-26 Thread Dan Murphy
Update the DT binding to include the properties to use the multicolor framework for the devices that use the LP55xx framework. Acked-by: Jacek Anaszewski Reviewed-by: Linus Walleij Signed-off-by: Dan Murphy CC: Tony Lindgren CC: "Benoît Cousson" CC: Linus Walleij CC: Shawn Guo CC: Sascha Ha

[PATCH v25 10/16] leds: lp55xx: Convert LED class registration to devm_*

2020-05-26 Thread Dan Murphy
Convert the LED class registration calls to the LED devm_* registration calls. Acked-by: Jacek Anaszewski Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5521.c| 9 +++-- drivers/leds/leds-lp5523.c| 9 +++-- drivers/leds/leds-lp5562.c|

[PATCH v25 08/16] ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node

2020-05-26 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Acked-by: Pavel Machek Signed-off-by:

[PATCH v25 15/16] leds: lp5523: Fix checkpatch issues in the code

2020-05-26 Thread Dan Murphy
Fix checkpatch errors and warnings for the LP5523.c device driver. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5523.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/leds/leds-lp5523.c b/dr

[PATCH v25 16/16] dt: bindings: Update lp55xx binding to recommended LED naming

2020-05-26 Thread Dan Murphy
Update the LP55xx DT binding examples to the recommended node naming convention. There are no changes to the DT properties. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy CC: Rob Herring CC: Tony Lindgren CC: "Benoît Cousson" CC: Linus Walleij CC: Shawn Guo CC

Re: [PATCH v4 3/3] serial: 8250_dw: Fix common clocks usage race condition

2020-05-26 Thread Andy Shevchenko
On Tue, May 26, 2020 at 07:03:16PM +0300, Serge Semin wrote: > The race condition may happen if the UART reference clock is shared with > some other device (on Baikal-T1 SoC it's another DW UART port). In this > case if that device changes the clock rate while serial console is using > it the DW 82

Re: [PATCH net-next 0/4] net: phy: mscc-miim: reduce waiting time between MDIO transactions

2020-05-26 Thread Andrew Lunn
On Tue, May 26, 2020 at 06:22:52PM +0200, Antoine Tenart wrote: > Hello, > > This series aims at reducing the waiting time between MDIO transactions > when using the MSCC MIIM MDIO controller. Hi Antoine There are a couple of other things you can look at: Can you disable the pre-amble on the MD

[PATCH v4] Makefile: support compressed debug info

2020-05-26 Thread Nick Desaulniers
As debug information gets larger and larger, it helps significantly save the size of vmlinux images to compress the information in the debug information sections. Note: this debug info is typically split off from the final compressed kernel image, which is why vmlinux is what's used in conjunction

Re: Another approach of UFSHPB

2020-05-26 Thread Bart Van Assche
On 2020-05-25 23:15, Avri Altman wrote: >> On 2020-05-24 22:40, Daejun Park wrote: >>> The HPB driver is close to the UFS core function, but it is not essential >>> for operating UFS device. With reference to this article >>> (https://lwn.net/Articles/645810/), we implemented extended UFS-feature >

Re: [PATCH] MAINTAINERS: Update my maintainer entries to reorder email addresses

2020-05-26 Thread Shuah Khan
On 5/22/20 8:26 PM, Joe Perches wrote: On Fri, 2020-05-22 at 20:19 -0600, Shuah Khan wrote: get_maintainer.pl picks only the first email address found in the file. Reorder my email addresses so it finds my linuxfoundation.org email. OK. btw: --noremove-duplicates is also an option. For inst

Re: [PATCH v4] Makefile: support compressed debug info

2020-05-26 Thread Nick Desaulniers
On Tue, May 26, 2020 at 10:03 AM Nick Desaulniers wrote: > > As debug information gets larger and larger, it helps significantly save > the size of vmlinux images to compress the information in the debug > information sections. Note: this debug info is typically split off from > the final compress

Re: [PATCH v3 1/3] riscv: Move kernel mapping to vmalloc zone

2020-05-26 Thread Alex Ghiti
Hi Zong, Le 5/26/20 à 5:43 AM, Zong Li a écrit : On Sun, May 24, 2020 at 4:54 PM Alexandre Ghiti wrote: This is a preparatory patch for relocatable kernel. The kernel used to be linked at PAGE_OFFSET address and used to be loaded physically at the beginning of the main memory. Therefore, we c

[PATCH 0/1] Document Ingenic SoCs binding.

2020-05-26 Thread Zhou Yanjie
Document the available properties for the SoC root node and the CPU nodes of the devicetree for the Ingenic XBurst SoCs. 周琰杰 (Zhou Yanjie) (1): dt-bindings: MIPS: Document Ingenic SoCs binding. .../bindings/mips/ingenic/ingenic,cpu.yaml | 57 ++ 1 file changed, 57 i

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

2020-05-26 Thread Zhou Yanjie
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 Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) --- .../bindings/mips/ingenic/ingenic,cpu.yaml | 57 ++ 1

Re: [PATCH v8 09/10] dt-bindings: interconnect: Add interconnect-tags bindings

2020-05-26 Thread Sibi Sankar
On 5/21/20 12:43 AM, Saravana Kannan wrote: On Wed, May 20, 2020 at 11:51 AM Sibi Sankar wrote: On 2020-05-20 01:27, Saravana Kannan wrote: On Tue, May 19, 2020 at 11:58 AM Rob Herring wrote: On Tue, May 12, 2020 at 03:53:26PM +0300, Georgi Djakov wrote: From: Sibi Sankar Add interco

[PATCH] arm64: dts: imx8mm-beacon: Fix voltages on LDO1 and LDO2

2020-05-26 Thread Adam Ford
LDO1 and LDO2 settings are wrong and case the voltage to go above the maximum level of 2.15V permitted by the SoC to 3.0V. This patch is based on work done on the i.MX8M Mini-EVK which utilizes the same fix. Fixes: 593816fa2f35 ("arm64: dts: imx: Add Beacon i.MX8m-Mini development kit") Signed-o

Re: [PATCH v2 1/2] drivers: provide devm_platform_request_irq()

2020-05-26 Thread Grygorii Strashko
On 23/05/2020 17:51, Dejin Zheng wrote: It will call devm_request_irq() after platform_get_irq() function in many drivers, sometimes, it is not right for the error handling of these two functions in some drivers. so provide this function to simplify the driver. Cc: Michal Simek Cc: Wolfram S

Re: [PATCH v6 3/5] dt-bindings: iio: magnetometer: ak8975: add gpio reset support

2020-05-26 Thread Jonathan Albrieux
On Tue, May 26, 2020 at 11:22:07AM +0200, Linus Walleij wrote: > On Mon, May 25, 2020 at 5:13 PM Jonathan Albrieux > wrote: > > > Add reset-gpio support. > > > > Without reset's deassertion during ak8975_power_on(), driver's probe fails > > on ak8975_who_i_am() while checking for device identity

Re: [PATCH net-next v1] net: phy: at803x: add cable diagnostics support for ATH9331 and ATH8032

2020-05-26 Thread Florian Fainelli
On 5/26/2020 3:08 AM, Oleksij Rempel wrote: > Add support for Atheros 100Bast-T PHYs. The only difference seems to be > the ability to test 2 pares instead of 4 and the lack of 1000Bast-T > specific register. > > Only ATH9331 was tested with this patch. > > Signed-off-by: Oleksij Rempel If y

Re: [PATCH ethtool v1] netlink: add LINKSTATE SQI support

2020-05-26 Thread Florian Fainelli
On 5/26/2020 1:29 AM, Oleksij Rempel wrote: > Some PHYs provide Signal Quality Index (SQI) if the link is in active > state. This information can help to diagnose cable and system design > related issues. > > Signed-off-by: Oleksij Rempel The uapi updates should be separate commits as pointe

Re: [PATCH v2 0/2] drivers: provide devm_platform_request_irq()

2020-05-26 Thread Grygorii Strashko
On 25/05/2020 10:05, Michal Simek wrote: On 23. 05. 20 19:09, Dejin Zheng wrote: On Sat, May 23, 2020 at 06:08:29PM +0200, Wolfram Sang wrote: On Sat, May 23, 2020 at 10:51:55PM +0800, Dejin Zheng wrote: It will call devm_request_irq() after platform_get_irq() function in many drivers, some

[net-next RFC v3 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-05-26 Thread Vadym Kochan
Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely wireless SMB deployment. Prestera Switchdev is a firmware based driver that operates via PCI bus. The current implementation supports only boards designed for the

Re: [PATCH v2 4/4] x86/boot: Check that there are no runtime relocations

2020-05-26 Thread Fangrui Song
On 2020-05-26, Arvind Sankar wrote: On Tue, May 26, 2020 at 08:11:56AM +0200, Ard Biesheuvel wrote: On Tue, 26 May 2020 at 00:59, Arvind Sankar wrote: > # Compressed kernel should be built as PIE since it may be loaded at any > # address by the bootloader. > -KBUILD_LDFLAGS += $(call ld-opt

[net-next RFC v3 6/6] dt-bindings: marvell,prestera: Add description for device-tree bindings

2020-05-26 Thread Vadym Kochan
Add brief description how to configure base mac address binding in device-tree. Describe requirement for the PCI port which is connected to the ASIC, to allow access to the firmware related registers. Signed-off-by: Vadym Kochan --- .../bindings/net/marvell,prestera.txt | 34 +++

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

2020-05-26 Thread Paraschiv, Andra-Irina
On 26/05/2020 09:44, Greg KH wrote: On Tue, May 26, 2020 at 01:13:18AM +0300, Andra Paraschiv wrote: +struct enclave_get_slot_req { + /* Context ID (CID) for the enclave vsock device. */ + u64 enclave_cid; +} __attribute__ ((__packed__)); Can you really "pack" a single member stru

[net-next RFC v3 2/6] net: marvell: prestera: Add PCI interface support

2020-05-26 Thread Vadym Kochan
Add PCI interface driver for Prestera Switch ASICs family devices, which provides: - Firmware loading mechanism - Requests & events handling to/from the firmware - Access to the firmware on the bus level The firmware has to be loaded each time device is reset. The driver is loading it

WARNING: locking bug in dev_mc_seq_show

2020-05-26 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:44456565 Merge tag 'io_uring-5.7-2020-05-22' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1656ef0610 kernel config: https://syzkaller.appspot.com/x/.config?x=c33c7f7c5471fd39 das

[net-next RFC v3 3/6] net: marvell: prestera: Add basic devlink support

2020-05-26 Thread Vadym Kochan
Add very basic support for devlink interface: - driver name - fw version - devlink ports Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 1 + .../net/ethernet/marvell/prestera/Makefile| 2 +- .../net/ethernet/marvell/prestera/prestera.h | 4

[net-next RFC v3 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-05-26 Thread Vadym Kochan
Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely wireless SMB deployment. The current implementation supports only boards designed for the Marvell Switchdev solution and requires special firmware. The core Preste

Re: linux-next: Tree for May 26 (hwmon/amd_energy.c)

2020-05-26 Thread Guenter Roeck
re failing (on i386 or x86_64). > I don't see that, neither in my hwmon-next branch (on top of v5.7-rc6) nor with next-20200526. Ah yes, you must have NUMA and NEED_MULTIPLE_NODES disabled. With that (allnoconfig+HWMON+SENSORS_AMD_ENERGY), I see the error as well. The problem i

[net-next RFC v3 5/6] net: marvell: prestera: Add Switchdev driver implementation

2020-05-26 Thread Vadym Kochan
The following features are supported: - VLAN-aware bridge offloading - VLAN-unaware bridge offloading - FDB offloading (learning, ageing) - Switchport configuration Currently there are some limitations like: - Only 1 VLAN-aware bridge instance supported - FDB ageing timeo

[net-next RFC v3 4/6] net: marvell: prestera: Add ethtool interface support

2020-05-26 Thread Vadym Kochan
The ethtool API provides support for the configuration of the following features: speed and duplex, auto-negotiation, MDI-x, forward error correction, port media type. The API also provides information about the port status, hardware and software statistic. The following limitation exists: - p

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-26 Thread Guenter Roeck
ault machine and CPU. >>>>>>> >>>>>> >>>>>> Try sparc32_defconfig+SMP. >>>>> >>>>> I see a differernt problem, but this could be related: >>>>> >>>>> INIT: version 2.86 booting &g

Re: [PATCH v2 1/3] scsi: ufshcd: Update the set frequency to devfreq

2020-05-26 Thread Asutosh Das (asd)
Hi Jeffrey On 5/25/2020 3:19 PM, Jeffrey Hugo wrote: On Wed, Mar 25, 2020 at 12:29 PM Asutosh Das wrote: Currently, the frequency that devfreq provides the driver to set always leads the clocks to be scaled up. Hence, round the clock-rate to the nearest frequency before deciding to scale. Als

Re: linux-next: Tree for May 26 (hwmon/amd_energy.c)

2020-05-26 Thread Randy Dunlap
gt; >> >> Hi, >> >> All of my drivers/hwmon/amd_energy.c builds are failing (on i386 or x86_64). >> > I don't see that, neither in my hwmon-next branch (on top of v5.7-rc6) > nor with next-20200526. > > Ah yes, you must have NUMA and NEED_MULTIPLE

[PATCH 00/10] staging: wfx: introduce nl80211 vendor extensions

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller Hello, This series introduces some nl80211 vendor extensions to the wfx driver. This series may lead to some discussions: 1. Patch 7 allows to change the dynamic PS timeout. I have found an API in wext (cfg80211_wext_siwpower()) that do more or less the same t

[PATCH 02/10] staging: wfx: do not declare variables inside loops

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller The local variables should be declared at beginning of the functions. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c i

[PATCH 01/10] staging: wfx: drop unused variable

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller Since the commit 3f84adfe1d7ae ("staging: wfx: remove hack about tx_rate policies"), the variable "count" is no more used in wfx_tx_policy_build(). Notice that there were two instances of the variable "count" in wfx_tx_policy_build(). This patch also solves this cosmetic is

[PATCH v5] Makefile: support compressed debug info

2020-05-26 Thread Nick Desaulniers
As debug information gets larger and larger, it helps significantly save the size of vmlinux images to compress the information in the debug information sections. Note: this debug info is typically split off from the final compressed kernel image, which is why vmlinux is what's used in conjunction

[PATCH 05/10] staging: wfx: retrieve the PS status from the vif

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller The Power Save status is stored for each virtual interface and for the whole device. The WF200 is able to handle power saving per interface, so use the value stored in vif. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH 07/10] staging: wfx: add support for set/get ps_timeout

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller In some advanced usage or debug scenarios, it could interesting to change the value of ps_timeout or eventually to force use of PS-Poll frames. The wext API (used by iwconfig) provide a way to change ps_timeout. However, this API is obsolete and it seems a little weird to u

[PATCH 10/10] staging: wfx: allow to run nl80211 vendor commands with 'iw'

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller In current code, the nl80211 vendor extensions provided by the driver use the new API[1]. It requires to pack the netlink attributes into a NLA_NESTED. Unfortunately, it is not the way the command 'iw vendor' works. This patch, add extra vendor commands that can be called

[PATCH 08/10] staging: wfx: allow to burn prevent rollback bit

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller In case a security flaw is found in a version of firmware, the device offers a way to disallow the loading an older firmware. This patch provides a vendor extension to nl80211 to enable this feature. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_api_general.

[PATCH 09/10] staging: wfx: allow to set PTA settings

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller The device allows to do Packet Traffic Arbitration (PTA or also Coex) with other RF chips. Currently, there is no API to manage the PTA parameters. This patch provides a vendor extension to nl80211 to change the PTA parameters. Signed-off-by: Jérôme Pouiller --- drivers/

[PATCH 06/10] staging: wfx: split wfx_get_ps_timeout() from wfx_update_pm()

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller In the next commit, we will have to compute the PS timeout without changing the power save status of the device. This patch introduces wfx_get_ps_timeout() for that job and make wfx_update_pm() relies on it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 4

[PATCH 03/10] staging: wfx: drop unused function wfx_pending_requeue()

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller The function wfx_pending_requeue() is not used anymore since the commit 7a44644c9379e ("staging: wfx: introduce wfx_set_default_unicast_key()") Fixes: 7a44644c9379e ("staging: wfx: introduce wfx_set_default_unicast_key()") Signed-off-by: Jérôme Pouiller --- drivers/stagin

[PATCH 04/10] staging: wfx: add support for tx_power_loop

2020-05-26 Thread Jerome Pouiller
From: Jérôme Pouiller During the calibration of the RF amplifier, the device is able to provide some data about the status of the amplifier. Record these data and expose them in debugfs. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 26 ++

Re: [PATCH] cgroup: Remove stale comments

2020-05-26 Thread Tejun Heo
On Wed, May 13, 2020 at 10:13:11AM +0800, Zefan Li wrote: > - The default root is where we can create v2 cgroups. > - The __DEVEL__sane_behavior mount option has been removed long long ago. > > Signed-off-by: Li Zefan Applied to cgroup/for-5.8. Thanks. -- tejun

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

2020-05-26 Thread Paraschiv, Andra-Irina
On 26/05/2020 09:46, Greg KH wrote: On Tue, May 26, 2020 at 01:13:19AM +0300, Andra Paraschiv wrote: +/* Nitro Enclaves (NE) misc device */ +extern struct miscdevice ne_miscdevice; Why does your misc device need to be in a .h file? Having the patch series like this (add random .h files, and

[PATCH 05/28] KVM: nSVM: correctly inject INIT vmexits

2020-05-26 Thread Paolo Bonzini
The usual drill at this point, except there is no code to remove because this case was not handled at all. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm/nested.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nest

[PATCH v2 00/28] KVM: nSVM: event fixes and migration support

2020-05-26 Thread Paolo Bonzini
Compared to v1, this fixes some incorrect injections of VINTR that happen on kvm/queue while running nested guests, and it clarifies the code that handles INT_CTL. The most important part here is the first three patches, which further cleanup event injection and remove another race between inject_

[PATCH 01/28] KVM: x86: track manually whether an event has been injected

2020-05-26 Thread Paolo Bonzini
Instead of calling kvm_event_needs_reinjection, track its future return value in a variable. This will be useful in the next patch. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arc

[PATCH 23/28] KVM: nSVM: remove HF_HIF_MASK

2020-05-26 Thread Paolo Bonzini
The L1 flags can be found in the save area of svm->nested.hsave, fish it from there so that there is one fewer thing to migrate. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 1 - arch/x86/kvm/svm/nested.c | 5 - arch/x86/kvm/svm/svm.c | 2 +- 3 files chan

[PATCH 22/28] KVM: nSVM: remove HF_VINTR_MASK

2020-05-26 Thread Paolo Bonzini
Now that the int_ctl field is stored in svm->nested.ctl.int_ctl, we can use it instead of vcpu->arch.hflags to check whether L2 is running in V_INTR_MASKING mode. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 1 - arch/x86/kvm/svm/nested.c | 6 +- arch/x86/kvm/svm/

[PATCH 15/28] KVM: nSVM: save all control fields in svm->nested

2020-05-26 Thread Paolo Bonzini
In preparation for nested SVM save/restore, store all data that matters from the VMCB control area into svm->nested. It will then become part of the nested SVM state that is saved by KVM_SET_NESTED_STATE and restored by KVM_GET_NESTED_STATE, just like the cached vmcs12 for nVMX. Signed-off-by: Pa

[PATCH 09/28] KVM: nSVM: extract load_nested_vmcb_control

2020-05-26 Thread Paolo Bonzini
When restoring SVM nested state, the control state cache in svm->nested will have to be filled, but the save state will not have to be moved into svm->vmcb. Therefore, pull the code that handles the control area into a separate function. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm/nested.

[PATCH 16/28] KVM: nSVM: restore clobbered INT_CTL fields after clearing VINTR

2020-05-26 Thread Paolo Bonzini
Restore the INT_CTL value from the guest's VMCB once we've stopped using it, so that virtual interrupts can be injected as requested by L1. V_TPR is up-to-date however, and it can change if the guest writes to CR8, so keep it. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm/svm.c | 10

[PATCH 28/28] KVM: nSVM: implement KVM_GET_NESTED_STATE and KVM_SET_NESTED_STATE

2020-05-26 Thread Paolo Bonzini
Similar to VMX, the state that is captured through the currently available IOCTLs is a mix of L1 and L2 state, dependent on whether the L2 guest was running at the moment when the process was interrupted to save its state. In particular, the SVM-specific state for nested virtualization includes th

[PATCH 24/28] KVM: nSVM: split nested_vmcb_check_controls

2020-05-26 Thread Paolo Bonzini
The authoritative state does not come from the VMCB once in guest mode, but KVM_SET_NESTED_STATE can still perform checks on L1's provided SVM controls because we get them from userspace. Therefore, split out a function to do them. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm/nested.c | 23

[PATCH 18/28] KVM: nSVM: remove unnecessary if

2020-05-26 Thread Paolo Bonzini
kvm_vcpu_apicv_active must be false when nested virtualization is enabled, so there is no need to check it in clgi_interception. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm/svm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm

[PATCH 17/28] KVM: nSVM: synchronize VMCB controls updated by the processor on every vmexit

2020-05-26 Thread Paolo Bonzini
The control state changes on every L2->L0 vmexit, and we will have to serialize it in the nested state. So keep it up to date in svm->nested.ctl and just copy them back to the nested VMCB in nested_svm_vmexit. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm/nested.c | 57 +

[PATCH 21/28] KVM: nSVM: synthesize correct EXITINTINFO on vmexit

2020-05-26 Thread Paolo Bonzini
This bit was added to nested VMX right when nested_run_pending was introduced, but it is not yet there in nSVM. Since we can have pending events that L0 injected directly into L2 on vmentry, we have to transfer them into L1's queue. For this to work, one important change is required: svm_complete

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Wojtek Porczyk
On Tue, May 26, 2020 at 06:32:35PM +0200, Greg KH wrote: > On Tue, May 26, 2020 at 08:48:35AM -0700, Andi Kleen wrote: > > On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > > > On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > > > > From: Andi Kleen > > > > > > > > Since ther

<    5   6   7   8   9   10   11   12   13   14   >