[PATCH RFC net-next 11/19] net: mvpp2: add flow control RXQ and BM pool config callbacks

2021-01-10 Thread stefanc
From: Stefan Chulski This patch did not change any functionality. Added flow control RXQ and BM pool config callbacks that would be used to configure RXQ and BM pool thresholds. APIs also will disable/enable RXQ and pool Flow Control polling. In this stage BM pool and RXQ has same stop/start thr

[PATCH RFC net-next 12/19] net: mvpp2: enable global flow control

2021-01-10 Thread stefanc
From: Stefan Chulski This patch enable global flow control in FW. Per port flow control is still disabled. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 3 +++ drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 15 ++- 2 files changed, 17 inser

[PATCH RFC net-next 08/19] net: mvpp2: add FCA periodic timer configurations

2021-01-10 Thread stefanc
From: Stefan Chulski Flow Control periodic timer would be used if port in XOFF to transmit periodic XOFF frames. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 13 +- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 45 2 files cha

[PATCH RFC net-next 13/19] net: mvpp2: add RXQ flow control configurations

2021-01-10 Thread stefanc
From: Stefan Chulski This patch add RXQ flow control configurations. Patch do not enable flow control itself, flow control disabled by default. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 3 +++ drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 7 +++

[PATCH RFC net-next 14/19] net: mvpp2: add ethtool flow control configuration support

2021-01-10 Thread stefanc
From: Stefan Chulski This patch add ethtool flow control configuration support. Tx flow control retrieved correctly by ethtool get function. FW per port ethtool configuration capability added. Patch also takes care about mtu change procedure, if PPv2 switch BM pools during mtu change. Signed-o

[PATCH RFC net-next 15/19] net: mvpp2: add BM protection underrun feature support

2021-01-10 Thread stefanc
From: Stefan Chulski Feature double size of BPPI by decreasing number of pools from 16 to 8. Increasing of BPPI size protect BM drop from BPPI underrun. Underrun could occurred due to stress on DDR and as result slow buffer transition from BPPE to BPPI. New BPPI threshold recommended by spec is:

[PATCH RFC net-next 16/19] net: mvpp2: add PPv23 RX FIFO flow control

2021-01-10 Thread stefanc
From: Stefan Chulski New FIFO flow control feature were added in PPv23. PPv2 FIFO polled by HW and trigger pause frame if FIFO fill level is below threshold. FIFO HW flow control enabled with CM3 RXQ&BM flow control with ethtool. Current FIFO thresholds is: 9KB for port with maximum speed 10Gb/s

[PATCH RFC net-next 19/19] net: mvpp2: add TX FC firmware check

2021-01-10 Thread stefanc
From: Stefan Chulski Patch check that TX FC firmware is running in CM3. If not, global TX FC would be disabled. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 39 2 files changed,

[PATCH RFC net-next 18/19] net: mvpp2: add ring size validation before enabling FC

2021-01-10 Thread stefanc
From: Stefan Chulski This patch add ring size validation before enabling FC. 1. Flow control cannot be enabled if ring size is below start threshold. 2. Flow control disabled if ring size set below start threshold. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main

[PATCH RFC net-next 17/19] net: mvpp2: set 802.3x GoP Flow Control mode

2021-01-10 Thread stefanc
From: Stefan Chulski This patch fix GMAC TX flow control autoneg. Flow control autoneg wrongly were disabled with enabled TX flow control. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

Re: [PATCH v1] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-01-10 Thread Oliver Graute
On 09/01/21, Fabio Estevam wrote: > Hi Oliver, > > On Fri, Jan 8, 2021 at 7:24 PM Oliver Graute wrote: > > > > On 19/12/20, Oliver Graute wrote: > > > Add support for the Solomon Goldentek Display Model: GKTW70SDAD1SD > > > to panel-simple. > > > > > > The panel spec from Variscite can be found a

Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Radxa ROCK Pi E

2021-01-10 Thread Chen-Yu Tsai
Hi, On Sun, Jan 10, 2021 at 10:45 PM Johan Jonker wrote: > > Hi Chen-Yu, > > Some comments, have a look if it is useful... > > On 1/10/21 4:58 AM, Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > > > Radxa ROCK Pi E is a router oriented SBC based on Rockchip's RK3328 SoC. > > As the official wiki

Re: [PATCH v5 09/15] lib/test_printf.c: Use helper function to unwind array of software_nodes

2021-01-10 Thread Andy Shevchenko
On Sun, Jan 10, 2021 at 1:16 PM Laurent Pinchart wrote: > On Sat, Jan 09, 2021 at 11:07:33AM +0200, Andy Shevchenko wrote: > > On Saturday, January 9, 2021, Laurent Pinchart wrote: > > > Could you please let us know if you're fine with this patch getting > > > merged in v5.12 through the linux-med

Re: [PATCH v2 2/2] mm: fix initialization of struct page for holes in memory layout

2021-01-10 Thread Mike Rapoport
On Wed, Jan 06, 2021 at 04:04:21PM -0500, Qian Cai wrote: > On Wed, 2021-01-06 at 10:05 +0200, Mike Rapoport wrote: > > I think we trigger PF_POISONED_CHECK() in PageSlab(), then fffe > > is "accessed" from VM_BUG_ON_PAGE(). > > > > It seems to me that we are not initializing struct pa

Re: dmaengine : xilinx_dma two issues

2021-01-10 Thread Lars-Peter Clausen
On 1/10/21 4:16 PM, Paul Thomas wrote: On Fri, Jan 8, 2021 at 1:36 PM Radhey Shyam Pandey wrote: -Original Message- From: Paul Thomas Sent: Friday, January 8, 2021 9:27 PM To: Radhey Shyam Pandey Cc: Dan Williams ; Vinod Koul ; Michal Simek ; Matthew Murrian ; Romain Perier ; Krzyszto

Re: [PATCH 0/8] FPGA DFL Changes for 5.12

2021-01-10 Thread Tom Rix
On 1/7/21 8:09 AM, Tom Rix wrote: > On 1/6/21 8:37 PM, Moritz Fischer wrote: >> This is a resend of the previous (unfortunately late) patchset of >> changes for FPGA DFL. > Is there something I can do to help ? > > I am paid to look after linux-fpga, so i have plenty of time. > > Some ideas of wh

Re: EDAC driver for ARMv8 RAS extension is being worked on

2021-01-10 Thread Manivannan Sadhasivam
On Sun, Jan 10, 2021 at 04:29:43PM +0100, Borislav Petkov wrote: > On Sun, Jan 10, 2021 at 08:41:49PM +0530, Manivannan Sadhasivam wrote: > > I've collected the feedback on those submissions and came up with the idea > > of > > a single "armv8_ras_edac" driver which will work for both Devicetree a

Re: Old platforms: bring out your dead

2021-01-10 Thread Neil Armstrong
Hi Arnd, Le 08/01/2021 à 23:55, Arnd Bergmann a écrit : > After v5.10 was officially declared an LTS kernel, I had a look around > the Arm platforms that look like they have not seen any patches from > their maintainers or users that are actually running the hardware for > at least five years (201

Re: [PATCH v5 09/15] lib/test_printf.c: Use helper function to unwind array of software_nodes

2021-01-10 Thread Laurent Pinchart
On Sun, Jan 10, 2021 at 05:38:03PM +0200, Andy Shevchenko wrote: > On Sun, Jan 10, 2021 at 1:16 PM Laurent Pinchart wrote: > > On Sat, Jan 09, 2021 at 11:07:33AM +0200, Andy Shevchenko wrote: > > > On Saturday, January 9, 2021, Laurent Pinchart wrote: > > > > Could you please let us know if you're

Re: Old platforms: bring out your dead

2021-01-10 Thread Arnd Bergmann
On Sun, Jan 10, 2021 at 4:51 PM Neil Armstrong wrote: > > Hi Arnd, > > Le 08/01/2021 à 23:55, Arnd Bergmann a écrit : > > After v5.10 was officially declared an LTS kernel, I had a look around > > the Arm platforms that look like they have not seen any patches from > > their maintainers or users t

[PATCH] arm64: dts: rockchip: more user friendly name of sound nodes

2021-01-10 Thread Katsuhiro Suzuki
This patch changes device name to more user friendly name of Analog and SPDIF sound nodes for rk3399-rockpro64. Signed-off-by: Katsuhiro Suzuki --- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockc

Re: [PATCH v8 2/3] ARM: dts: Add support for i.MX6 UltraLite DART Variscite Customboard

2021-01-10 Thread Oliver Graute
On 09/01/21, Fabio Estevam wrote: > On Fri, Jan 8, 2021 at 7:23 PM Oliver Graute wrote: > > > + panel1: panel-lcd { > > + compatible = "sgd,gktw70sdad1sd"; > > + > > + backlight = <&backlight_lcd>; > > + power-supply = <®_touch_3v3>; > > +

Re: [PATCH v3 3/3] dt-bindings: arm: fsl: Add Variscite i.MX6UL compatibles

2021-01-10 Thread Oliver Graute
On 09/01/21, Fabio Estevam wrote: > On Fri, Jan 8, 2021 at 7:23 PM Oliver Graute wrote: > > > diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml > > b/Documentation/devicetree/bindings/arm/fsl.yaml > > index 05906e2..5f74d78 100644 > > --- a/Documentation/devicetree/bindings/arm/fsl.yam

Re: [PATCH 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs

2021-01-10 Thread Bean Huo
On Sat, 2021-01-09 at 12:51 +0800, Can Guo wrote: > On 2021-01-09 12:45, Can Guo wrote: > > On 2021-01-08 19:29, Bean Huo wrote: > > > On Wed, 2021-01-06 at 09:20 +0800, Can Guo wrote: > > > > Hi Bean, > > > > > > > > On 2021-01-06 02:38, Bean Huo wrote: > > > > > On Tue, 2021-01-05 at 09:07 +0800

[PATCH] docs: filesystems: vfs: Correct the struct name

2021-01-10 Thread winndows
From: Liao Pingfang The struct name should be file_system_type instead of file_system_operations. Signed-off-by: Liao Pingfang --- Documentation/filesystems/vfs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/filesystems/vfs.rst b/Documentation/filesystem

Re: [PATCH 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs

2021-01-10 Thread Bean Huo
On Sat, 2021-01-02 at 05:59 -0800, Can Guo wrote: > + * @shutting_down: flag to check if shutdown has been invoked > + * @host_sem: semaphore used to serialize concurrent contexts > * @eh_wq: Workqueue that eh_work works on > * @eh_work: Worker to handle UFS errors that require s/w attention >

Re: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-10 Thread Al Viro
On Thu, Jan 07, 2021 at 08:15:41AM -0500, Mikulas Patocka wrote: > Hi > > I announce a new version of NVFS - a filesystem for persistent memory. > http://people.redhat.com/~mpatocka/nvfs/ Utilities, AFAICS > git://leontynka.twibright.com/nvfs.git Seems to hang on git pull at the momen

Re: [PATCH v1] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-01-10 Thread Fabio Estevam
Hi Oliver, On Sun, Jan 10, 2021 at 12:35 PM Oliver Graute wrote: > the first two errors are gone. But I still get this: > > [ 42.387107] mxsfb 21c8000.lcdif: Cannot connect bridge: -517 > > The panel is still off perhaps I miss something else. Some suggestions: - Take a look at arch/arm/boot

Re: [PATCH 4/4] Input: omap4-keypad - simplify probe with devm

2021-01-10 Thread Tony Lindgren
* Dmitry Torokhov [210110 06:31]: > I do not quite like that we need to keep this in remove(). I had the > patch below for quite some time, could you please try it? Yes seems to work nice :) > Input: omap4-keypad - switch to use managed resources > > From: Dmitry Torokhov > > Now that input c

Re: Old platforms: bring out your dead

2021-01-10 Thread Andrew Lunn
> For this platform, I'm most interested in whether there are still users > that rely on board files instead of DT. AFAIU we could just fold > the DT variant into arch-mvebu like kirkwood was, right? Hi Arnd I'm actually booting my device using a board file. But Debian flash-kernel is pretty unha

Re: [PATCH 3/4] Input: omap4-keypad - use PM runtime to check keys for errata

2021-01-10 Thread Tony Lindgren
* Dmitry Torokhov [210110 06:34]: > Hi Tony, > > On Wed, Jan 06, 2021 at 02:58:21PM +0200, Tony Lindgren wrote: > > @@ -301,6 +348,7 @@ static int omap4_keypad_probe(struct platform_device > > *pdev) > > } > > > > keypad_data->irq = irq; > > + mutex_init(&keypad_data->lock); > > >

Re: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-10 Thread Al Viro
On Sun, Jan 10, 2021 at 04:20:08PM +, Al Viro wrote: > On Thu, Jan 07, 2021 at 08:15:41AM -0500, Mikulas Patocka wrote: > > Hi > > > > I announce a new version of NVFS - a filesystem for persistent memory. > > http://people.redhat.com/~mpatocka/nvfs/ > Utilities, AFAICS > > > git://le

[PATCH v2] arm64: dts: imx8mq: Add clock parents for mipi dphy

2021-01-10 Thread Guido Günther
This makes sure the clock tree setup for the dphy is not dependent on other components. Without this change bringing up the display can fail like kernel: phy phy-30a00300.dphy.2: Invalid CM/CN/CO values: 165/217/1 kernel: phy phy-30a00300.dphy.2: for hs_clk/ref_clk=451656000/59398 ~ 165/

Re: [PATCH 1/2] clk: imx: enable the earlycon uart clocks by parsing from dt

2021-01-10 Thread Adam Ford
On Mon, Jan 4, 2021 at 1:12 AM Sascha Hauer wrote: > > Hi Adam, > > On Tue, Dec 29, 2020 at 08:51:28AM -0600, Adam Ford wrote: > > Remove the earlycon uart clocks that are hard cord in platforms > > clock driver, instead of parsing the earlycon uart port from dt > > "instead parse the earlycon uar

Re: [PATCH] arm64: dts: imx8mq: Add clock parents for mipi dphy

2021-01-10 Thread Guido Günther
Hi, On Sun, Jan 10, 2021 at 08:46:29PM +0800, Shawn Guo wrote: > On Fri, Dec 18, 2020 at 06:50:05PM +0100, Guido Günther wrote: > > This makes sure the clock tree setup for the dphy is not dependent on > > other components. > > > > Without this change bringing up the display can fail like > > > >

Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Andrew Lunn
> +static int mvpp2_get_sram(struct platform_device *pdev, > + struct mvpp2 *priv) > +{ > + struct device_node *dn = pdev->dev.of_node; > + struct resource *res; > + > + if (has_acpi_companion(&pdev->dev)) { > + res = platform_get_resource(pdev, IORESOU

Re: [PATCH 0/8] FPGA DFL Changes for 5.12

2021-01-10 Thread Moritz Fischer
Tom, On Sun, Jan 10, 2021 at 07:46:29AM -0800, Tom Rix wrote: > > On 1/7/21 8:09 AM, Tom Rix wrote: > > On 1/6/21 8:37 PM, Moritz Fischer wrote: > >> This is a resend of the previous (unfortunately late) patchset of > >> changes for FPGA DFL. > > Is there something I can do to help ? > > > > I am

RE: [EXT] Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Stefan Chulski
> -Original Message- > From: Andrew Lunn > Sent: Sunday, January 10, 2021 7:05 PM > To: Stefan Chulski > Cc: net...@vger.kernel.org; thomas.petazz...@bootlin.com; > da...@davemloft.net; Nadav Haklai ; Yan Markman > ; linux-kernel@vger.kernel.org; k...@kernel.org; > li...@armlinux.org.u

Re: [PATCH RFC net-next 06/19] net: mvpp2: increase BM pool size to 2048 buffers

2021-01-10 Thread Andrew Lunn
On Sun, Jan 10, 2021 at 05:30:10PM +0200, stef...@marvell.com wrote: > From: Stefan Chulski > > BM pool size increased to support Firmware Flow Control. > Minimum depletion thresholds to support FC is 1024 buffers. > BM pool size increased to 2048 to have some 1024 buffers > space between depleti

Re: linux-next: Fixes tag needs some work in the nfs tree

2021-01-10 Thread Trond Myklebust
Hi Stephen, On Sun, 2021-01-10 at 13:14 +1100, Stephen Rothwell wrote: > Hi all, > > In commit > >   2cc8aca9d547 ("NFS: Adjust fs_context error logging") > > Fixes tag > >   Fixes: Fixes: ce8866f0913f ("NFS: Attach supplementary error > information to fs_context.") > > has these problem(s):

Re: [PATCH] mm: Fix potential pte_unmap_unlock pte error

2021-01-10 Thread Andi Kleen
On Sat, Jan 09, 2021 at 03:01:18AM -0500, Miaohe Lin wrote: > Since commit 42e4089c7890 ("x86/speculation/l1tf: Disallow non privileged > high MMIO PROT_NONE mappings"), when the first pfn modify is not allowed, > we would break the loop with pte unchanged. Then the wrong pte - 1 would > be passed

Re: [PATCH v2 06/34] dt-bindings: Add bindings for Keem Bay VPU IPC driver

2021-01-10 Thread Rob Herring
On Fri, 08 Jan 2021 13:25:32 -0800, mgr...@linux.intel.com wrote: > From: Paul Murphy > > Add DT bindings documentation for the Keem Bay VPU IPC driver. > > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > Reviewed-by: Mark Gross > Signed-off-by: Paul Murphy > Co-developed-by: Daniele Aless

Re: [PATCH 2/2] dt-bindings: pinctrl: Add bindings for Awinic AW9523/AW9523B

2021-01-10 Thread Rob Herring
On Sat, 09 Jan 2021 15:02:04 +0100, AngeloGioacchino Del Regno wrote: > Add bindings for the Awinic AW9523/AW9523B I2C GPIO Expander driver. > > Signed-off-by: AngeloGioacchino Del Regno > > --- > .../pinctrl/awinic,aw9523-pinctrl.yaml| 111 ++ > 1 file changed, 111 inse

Re: [PATCH v2 08/15] dt-bindings: avs: cpr: Convert binding to YAML schema

2021-01-10 Thread Rob Herring
On Sat, 09 Jan 2021 19:03:52 +0100, AngeloGioacchino Del Regno wrote: > Convert the qcom,cpr.txt document to YAML schema and place it in the > appropriate directory, since this driver was moved from power/avs > to soc/qcom, but forgets to move the documentation. > > Fixes: a7305e684fcf ("PM: AVS:

Re: [PATCH 4/7] dt-bindings: regulator: qcom-labibb: Document soft start properties

2021-01-10 Thread Rob Herring
On Sat, 09 Jan 2021 14:29:18 +0100, AngeloGioacchino Del Regno wrote: > Document properties to configure soft start and discharge resistor > for LAB and IBB respectively. > > Signed-off-by: AngeloGioacchino Del Regno > > --- > .../bindings/regulator/qcom-labibb-regulator.yaml | 8 ++

Re: [PATCH v2 19/34] xlink-core: Add xlink core device tree bindings

2021-01-10 Thread Rob Herring
On Fri, 08 Jan 2021 13:25:45 -0800, mgr...@linux.intel.com wrote: > From: Seamus Kelly > > Add device tree bindings for keembay-xlink. > > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > Reviewed-by: Mark Gross > Signed-off-by: Seamus Kelly > Signed-off-by: Ryan Carnaghi > --- > .../bind

Re: [PATCH v2 15/15] dt-bindings: cpufreq: qcom-hw: Add bindings for 8998

2021-01-10 Thread Rob Herring
On Sat, 09 Jan 2021 19:03:59 +0100, AngeloGioacchino Del Regno wrote: > The OSM programming addition has been done under the > qcom,cpufreq-hw-8998 compatible name: specify the requirement > of two additional register spaces for this functionality. > This implementation, with the same compatible, h

Re: [PATCH v2 17/34] xlink-ipc: Add xlink ipc device tree bindings

2021-01-10 Thread Rob Herring
On Fri, 08 Jan 2021 13:25:43 -0800, mgr...@linux.intel.com wrote: > From: Seamus Kelly > > Add device tree bindings for the xLink IPC driver which enables xLink to > control and communicate with the VPU IP present on the Intel Keem Bay > SoC. > > Cc: Rob Herring > Cc: devicet...@vger.kernel.org

Re: [PATCH 1/2] dt-bindings: arm: Convert nuvoton,npcm750 binding to YAML

2021-01-10 Thread Rob Herring
On Fri, 08 Jan 2021 23:40:06 +0100, Jonathan Neuschäfer wrote: > The general trend is to have devicetree bindings in YAML format, to > allow automatic validation of bindings and devicetrees. > > Convert the NPCM SoC family's binding to YAML before it accumulates more > entries. > > The nuvoton,n

[PATCH] arm/kasan: kasan_alloc a more precise size for pte

2021-01-10 Thread Hailong Liu
From: Hailong Liu The *PTE_HWTABLE_OFF + PTE_HWTABLE_SIZE* may be a more accurate and meaningful size for PTE tables than *PAGE_SIZE* when populating the PMD entries for arm. Signed-off-by: Hailong Liu --- arch/arm/mm/kasan_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: depmod fixes for linux-stable releases

2021-01-10 Thread Sedat Dilek
On Sun, Jan 10, 2021 at 11:19 AM Sasha Levin wrote: > > On Sat, Jan 09, 2021 at 05:23:22PM -0800, Linus Torvalds wrote: > >Ack, I think 436e980e2ed5 ("kbuild: don't hardcode depmod path") is > >stable material even if it doesn't fix a bug. > > > >Not only does the fix for that commit not make sens

RE: [PATCH v8 03/20] dlb: add resource and device initialization

2021-01-10 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Thursday, January 7, 2021 2:40 PM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com; Gage Eads > > Subject: Re: [PATCH v8 03/20] dlb: add resource and device

Re: Old platforms: bring out your dead

2021-01-10 Thread Arnd Bergmann
On Sun, Jan 10, 2021 at 5:48 PM Andrew Lunn wrote: > > > For this platform, I'm most interested in whether there are still users > > that rely on board files instead of DT. AFAIU we could just fold > > the DT variant into arch-mvebu like kirkwood was, right? > > Hi Arnd > > I'm actually booting my

RE: [EXT] Re: [PATCH RFC net-next 06/19] net: mvpp2: increase BM pool size to 2048 buffers

2021-01-10 Thread Stefan Chulski
> External Email > > -- > On Sun, Jan 10, 2021 at 05:30:10PM +0200, stef...@marvell.com wrote: > > From: Stefan Chulski > > > > BM pool size increased to support Firmware Flow Control. > > Minimum depletion thresholds to support

Re: [PATCH RFC net-next 14/19] net: mvpp2: add ethtool flow control configuration support

2021-01-10 Thread Andrew Lunn
> @@ -5373,6 +5402,30 @@ static int mvpp2_ethtool_set_pause_param(struct > net_device *dev, >struct ethtool_pauseparam *pause) > { > struct mvpp2_port *port = netdev_priv(dev); > + int i; > + > + if (pause->tx_pause && port->priv->global_tx_fc

Re: Old platforms: bring out your dead

2021-01-10 Thread John Paul Adrian Glaubitz
Hi Arnd! (Please let's have this cross-posted for more visibility. I only learned about this while reading Phoronix news) > I also looked at non-ARM platforms while preparing for my article. Some of > these look like they are no longer actively maintained or used, but I'm not > doing anything a

Re: [PATCH RFC net-next 18/19] net: mvpp2: add ring size validation before enabling FC

2021-01-10 Thread Andrew Lunn
On Sun, Jan 10, 2021 at 05:30:22PM +0200, stef...@marvell.com wrote: > From: Stefan Chulski > > This patch add ring size validation before enabling FC. > 1. Flow control cannot be enabled if ring size is below start > threshold. > 2. Flow control disabled if ring size set below start > threshold.

[RFC PATCH v2 2/8] Add a reference to ucounts for each user

2021-01-10 Thread Alexey Gladkov
Before this, only the owner of the user namespace had an entry in ucounts. This entry addressed the user in the given user namespace. Now we create such an entry in ucounts for all users in the user namespace. Each user has only one entry for each user namespace. This commit is in preparation for

[RFC PATCH v2 0/8] Count rlimits in each user namespace

2021-01-10 Thread Alexey Gladkov
Preface --- These patches are for binding the rlimit counters to a user in user namespace. This patch set can be applied on top of: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v5.11-rc2 Problem --- Some rlimits are set per user: RLIMIT_NPROC, RLIMIT_MEMLOCK, RLIMIT_SIGPENDI

[RFC PATCH v2 5/8] Move RLIMIT_MSGQUEUE counter to ucounts

2021-01-10 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- include/linux/sched/user.h | 4 include/linux/user_namespace.h | 8 ipc/mqueue.c | 29 +++-- kernel/fork.c | 1 + kernel/ucount.c| 1 + kernel/user_namespace.c

[RFC PATCH v2 6/8] Move RLIMIT_SIGPENDING counter to ucounts

2021-01-10 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- fs/proc/array.c| 2 +- include/linux/sched/user.h | 1 - include/linux/signal_types.h | 4 ++- include/linux/user_namespace.h | 1 + kernel/fork.c | 1 + kernel/signal.c| 53 ++---

Re: [EXT] Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Andrew Lunn
> > Should there be -EPROBE_DEFER handling in here somewhere? The SRAM is a > > device, so it might not of been probed yet? > > No, firmware probed during bootloader boot and we can use SRAM. SRAM > memory can be safely used. A previous patch added: + CP11X_LABEL(cm3_sram): cm3@22

[RFC PATCH v2 7/8] Move RLIMIT_MEMLOCK counter to ucounts

2021-01-10 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- fs/hugetlbfs/inode.c | 17 - include/linux/hugetlb.h| 3 +-- include/linux/mm.h | 4 ++-- include/linux/shmem_fs.h | 2 +- include/linux/user_namespace.h | 1 + ipc/shm.c | 31 ++

[RFC PATCH v2 1/8] Use atomic type for ucounts reference counting

2021-01-10 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- include/linux/user_namespace.h | 2 +- kernel/ucount.c| 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h index 64cf8ebdc4ec..84fefa9247c4 100644 --- a/in

[RFC PATCH v2 4/8] Move RLIMIT_NPROC counter to ucounts

2021-01-10 Thread Alexey Gladkov
RLIMIT_NPROC is implemented on top of ucounts. The process counter is tied to the user in the user namespace. Therefore, there is no longer one single counter for the user. Instead, there is now one counter for each user namespace. Thus, getting the RLIMIT_NPROC counter value to check the rlimit be

[RFC PATCH v2 3/8] Increase size of ucounts to atomic_long_t

2021-01-10 Thread Alexey Gladkov
This commit is preparation for migrating rlimits counters to ucounts. Signed-off-by: Alexey Gladkov --- include/linux/user_namespace.h | 4 ++-- kernel/ucount.c| 14 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/user_namespace.h b/in

[RFC PATCH v2 8/8] Move RLIMIT_NPROC check to the place where we increment the counter

2021-01-10 Thread Alexey Gladkov
After calling set_user(), we always have to call commit_creds() to apply new credentials upon the current task. There is no need to separate limit check and counter incrementing. Signed-off-by: Alexey Gladkov --- kernel/cred.c | 22 +- kernel/sys.c | 13 - 2 file

RE: [EXT] Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Stefan Chulski
> > > > Should there be -EPROBE_DEFER handling in here somewhere? The SRAM > > > is a device, so it might not of been probed yet? > > > > > No, firmware probed during bootloader boot and we can use SRAM. SRAM > > memory can be safely used. > > A previous patch added: > > + CP11X_L

Linux Kernel module notification bug

2021-01-10 Thread Adam Zabrocki
Hello, I believe that the following commit does introduce a gentle "functionality bug": "module: delay kobject uevent until after module init call": https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/kernel/module.c?id=38dc717e97153e46375ee21797aa54777e5498f3 The official L

[PATCH v4] driver core: Fix device link device name collision

2021-01-10 Thread Saravana Kannan
The device link device's name was of the form: -- This can cause name collision as reported here [1] as device names are not globally unique. Since device names have to be unique within the bus/class, add the bus/class name as a prefix to the device names used to construct the device link device n

Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Russell King - ARM Linux admin
On Sun, Jan 10, 2021 at 05:30:07PM +0200, stef...@marvell.com wrote: > + } else { > + priv->sram_pool = of_gen_pool_get(dn, "cm3-mem", 0); > + if (!priv->sram_pool) { > + dev_warn(&pdev->dev, "DT is too old, TX FC disabled\n"); I don't see anything i

RE: [EXT] Re: [PATCH RFC net-next 14/19] net: mvpp2: add ethtool flow control configuration support

2021-01-10 Thread Stefan Chulski
> > @@ -5373,6 +5402,30 @@ static int > mvpp2_ethtool_set_pause_param(struct net_device *dev, > > struct ethtool_pauseparam *pause) { > > struct mvpp2_port *port = netdev_priv(dev); > > + int i; > > + > > + if (pause->tx_pause && port->priv->global_tx_f

RE: [EXT] Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Stefan Chulski
> > + } else { > > + priv->sram_pool = of_gen_pool_get(dn, "cm3-mem", 0); > > + if (!priv->sram_pool) { > > + dev_warn(&pdev->dev, "DT is too old, TX FC > disabled\n"); > > I don't see anything in this patch that disables TX flow control, which means > this

Re: [PATCH 4/7] dt-bindings: regulator: qcom-labibb: Document soft start properties

2021-01-10 Thread AngeloGioacchino Del Regno
Il 10/01/21 18:18, Rob Herring ha scritto: On Sat, 09 Jan 2021 14:29:18 +0100, AngeloGioacchino Del Regno wrote: Document properties to configure soft start and discharge resistor for LAB and IBB respectively. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/regulator/qcom-labibb-

Re: [EXT] Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Andrew Lunn
On Sun, Jan 10, 2021 at 05:57:14PM +, Stefan Chulski wrote: > > > + } else { > > > + priv->sram_pool = of_gen_pool_get(dn, "cm3-mem", 0); > > > + if (!priv->sram_pool) { > > > + dev_warn(&pdev->dev, "DT is too old, TX FC > > disabled\n"); > > > > I don't see any

Re: [PATCH RFC net-next 11/19] net: mvpp2: add flow control RXQ and BM pool config callbacks

2021-01-10 Thread Russell King - ARM Linux admin
On Sun, Jan 10, 2021 at 05:30:15PM +0200, stef...@marvell.com wrote: > From: Stefan Chulski > > This patch did not change any functionality. > Added flow control RXQ and BM pool config callbacks that would be > used to configure RXQ and BM pool thresholds. > APIs also will disable/enable RXQ and

Re: [PATCH RFC net-next 12/19] net: mvpp2: enable global flow control

2021-01-10 Thread Russell King - ARM Linux admin
On Sun, Jan 10, 2021 at 05:30:16PM +0200, stef...@marvell.com wrote: > + /* Enable global Flow Control only if hanler to SRAM not NULL */ I think this comment needs fixing. I'm not sure what a "hanler" is, and "handler" doesn't make sense here. -- RMK's Patch system: https://www.arml

RE: [EXT] Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Stefan Chulski
> > > > + } else { > > > > + priv->sram_pool = of_gen_pool_get(dn, "cm3-mem", 0); > > > > + if (!priv->sram_pool) { > > > > + dev_warn(&pdev->dev, "DT is too old, TX FC > > > disabled\n"); > > > > > > I don't see anything in this patch that di

Re: Old platforms: bring out your dead

2021-01-10 Thread Fabian Vogt
Hi, Am Samstag, 9. Januar 2021, 23:20:48 CET schrieb Arnd Bergmann: > On Sat, Jan 9, 2021 at 1:06 AM Daniel Tang wrote: > > > > Hi Arnd, > > > > On 9 Jan 2021, at 9:55 am, Arnd Bergmann wrote: > > > > * nspire -- added in 2013, no notable changes after 2015 Most of the platform is just the DT s

Re: [PATCH RFC net-next 14/19] net: mvpp2: add ethtool flow control configuration support

2021-01-10 Thread Russell King - ARM Linux admin
On Sun, Jan 10, 2021 at 05:30:18PM +0200, stef...@marvell.com wrote: > @@ -5373,6 +5402,30 @@ static int mvpp2_ethtool_set_pause_param(struct > net_device *dev, >struct ethtool_pauseparam *pause) > { > struct mvpp2_port *port = netdev_priv(dev); > +

Re: [PATCH RFC net-next 00/19] net: mvpp2: Add TX Flow Control support

2021-01-10 Thread Russell King - ARM Linux admin
Hi, On Sun, Jan 10, 2021 at 05:30:04PM +0200, stef...@marvell.com wrote: > Armada hardware has a pause generation mechanism in GOP (MAC). > GOP has to generate flow control frames based on an indication > programmed in Ports Control 0 Register. There is a bit per port. > However assertion of the P

RE: [EXT] Re: [PATCH RFC net-next 11/19] net: mvpp2: add flow control RXQ and BM pool config callbacks

2021-01-10 Thread Stefan Chulski
> > > > +/* Routine calculate single queue shares address space */ static int > > +mvpp22_calc_shared_addr_space(struct mvpp2_port *port) { > > + /* If number of CPU's greater than number of threads, return last > > +* address space > > +*/ > > + if (num_active_cpus() >= MVPP2_MAX_THREA

Re: [EXT] Re: [PATCH RFC net-next 03/19] net: mvpp2: add CM3 SRAM memory map

2021-01-10 Thread Russell King - ARM Linux admin
On Sun, Jan 10, 2021 at 06:09:39PM +, Stefan Chulski wrote: > > > > > + } else { > > > > > + priv->sram_pool = of_gen_pool_get(dn, "cm3-mem", 0); > > > > > + if (!priv->sram_pool) { > > > > > + dev_warn(&pdev->dev, "DT is too old, TX FC > > > > di

RE: [EXT] Re: [PATCH RFC net-next 14/19] net: mvpp2: add ethtool flow control configuration support

2021-01-10 Thread Stefan Chulski
> > @@ -5373,6 +5402,30 @@ static int > mvpp2_ethtool_set_pause_param(struct net_device *dev, > > struct ethtool_pauseparam *pause) { > > struct mvpp2_port *port = netdev_priv(dev); > > + int i; > > + > > + if (pause->tx_pause && port->priv->global_tx_f

Re: [EXT] Re: [PATCH RFC net-next 11/19] net: mvpp2: add flow control RXQ and BM pool config callbacks

2021-01-10 Thread Russell King - ARM Linux admin
On Sun, Jan 10, 2021 at 06:24:30PM +, Stefan Chulski wrote: > > > > > > +/* Routine calculate single queue shares address space */ static int > > > +mvpp22_calc_shared_addr_space(struct mvpp2_port *port) { > > > + /* If number of CPU's greater than number of threads, return last > > > + * addr

Re: [EXT] Re: [PATCH RFC net-next 14/19] net: mvpp2: add ethtool flow control configuration support

2021-01-10 Thread Russell King - ARM Linux admin
On Sun, Jan 10, 2021 at 06:27:57PM +, Stefan Chulski wrote: > > What also concerns me is whether flow control is supported in the existing > > driver at all, given this patch set. If it isn't supported without the > > firmware's > > help, then we should _not_ be negotiating flow control with t

[PATCH v6] ehci: fix EHCI host controller initialization sequence

2021-01-10 Thread Eugene Korenevsky
According to EHCI spec, EHCI HC clears USBSTS.HCHalted whenever USBCMD.RS=1. However, it is a good practice to wait some time after setting USBCMD.RS (approximately 100ms) until USBSTS.HCHalted become zero. Without this waiting, VirtualBox's EHCI virtual HC accidentally hangs (see BugLink). BugL

RE: [EXT] Re: [PATCH RFC net-next 11/19] net: mvpp2: add flow control RXQ and BM pool config callbacks

2021-01-10 Thread Stefan Chulski
> Sorry, but that is not really a decision the driver can make. It is part of a > kernel > that _does_ support CPU hotplug, and the online CPUs can be changed today. > > It is likely that every distro out there builds the kernel with CPU hotplug > enabled. > > If changing the online CPUs causes

Malicious fs images was Re: ext4 regression in v5.9-rc2 from e7bfb5c9bb3d on ro fs with overlapped bitmaps

2021-01-10 Thread Pavel Machek
Hi! On Fri 2020-10-09 10:37:32, Theodore Y. Ts'o wrote: > On Thu, Oct 08, 2020 at 03:22:59PM -0700, Josh Triplett wrote: > > > > I wasn't trying to make a *new* general principle or policy. I was under > > the impression that this *was* the policy, because it never occurred to > > me that it coul

Re: [RFC PATCH v2 0/8] Count rlimits in each user namespace

2021-01-10 Thread Linus Torvalds
On Sun, Jan 10, 2021 at 9:34 AM Alexey Gladkov wrote: > > To address the problem, we bind rlimit counters to each user namespace. The > result is a tree of rlimit counters with the biggest value at the root (aka > init_user_ns). The rlimit counter increment/decrement occurs in the current > and >

Re: Aw: [PATCH v2 3/3] regulator: mt6323: Add OF match table

2021-01-10 Thread Matthias Brugger
On 09/01/2021 17:44, Frank Wunderlich wrote: > Hi > >> Gesendet: Samstag, 09. Januar 2021 um 12:26 Uhr >> Von: matthias@kernel.org > >> Changes in v2: >> - check for CONFIG_OF >> - add Fixes tag > >> --- a/drivers/regulator/mt6323-regulator.c >> +++ b/drivers/regulator/mt6323-regulator.c

[GIT PULL] ARC fixes for 5.11-rc3

2021-01-10 Thread Vineet Gupta
Hi Linus, I ran into boot failures on ARC, which went unnoticed. This pull request addresses that. Thx, -Vineet --> The following changes since commit f6e7a024bfe5e11d91ccff46bb576e3fb5a516ea: Merge tag 'arc-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/a

[PATCH] scripts: mod: fix checkpatch.pl warnings

2021-01-10 Thread Dwaipayan Ray
Fix the following warnings in file2alias reported by checkpatch: CHECK: spaces preferred around that '*' (ctx:WxV) CHECK: spaces preferred around that '+' (ctx:VxV) CHECK: spaces preferred around that '-' (ctx:VxV) CHECK: spaces preferred around that '&' (ctx:VxV) CHECK: braces {} should be used o

RE: [EXT] Re: [PATCH RFC net-next 00/19] net: mvpp2: Add TX Flow Control support

2021-01-10 Thread Stefan Chulski
> > not connected to the GOP flow control generation mechanism. > > To solve this issue Armada has firmware running on CM3 CPU dedectated > > for Flow Control support. Firmware monitors Packet Processor resources > > and asserts XON/XOFF by writing to Ports Control 0 Register. > > What is the mini

[PATCH] ARM: dts: qcom: msm8974-klte: Fix shdc numbering

2021-01-10 Thread Alexey Minnekhanov
Since commit fa2d0aa96941 ("mmc: core: Allow setting slot index via device tree alias") proper aliases should be named "mmcN". Signed-off-by: Alexey Minnekhanov --- arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/bo

Re: [EXT] Re: [PATCH RFC net-next 00/19] net: mvpp2: Add TX Flow Control support

2021-01-10 Thread Russell King - ARM Linux admin
On Sun, Jan 10, 2021 at 06:55:11PM +, Stefan Chulski wrote: > > > not connected to the GOP flow control generation mechanism. > > > To solve this issue Armada has firmware running on CM3 CPU dedectated > > > for Flow Control support. Firmware monitors Packet Processor resources > > > and assert

Re: [PATCH resend v13 5/5] leds: mt6360: Add LED driver for MT6360

2021-01-10 Thread Jacek Anaszewski
Hi Gene, On 12/24/20 2:47 AM, Gene Chen wrote: From: Gene Chen Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, 3-channel RGB LED support Register/Flash/Breath Mode, and 1-channel for moonlight LED. You can carry my ack also for patches 4/5 and 5/5: Acked-by: Jacek

[PATCH 1/5] Input: omap4-keypad - disable unused long interrupts

2021-01-10 Thread Tony Lindgren
We are not using the long events and they produce extra interrupts. Let's not enable them at all. Note that also the v3.0.8 Linux Android kernel has long interrupts disabled. Cc: Arthur Demchenkov Cc: Carl Philipp Klemm Cc: Merlijn Wajer Cc: Pavel Machek Cc: ruleh Cc: Sebastian Reichel Sign

[PATCHv5 0/5] Lost key-up interrupt handling for omap4-keypad

2021-01-10 Thread Tony Lindgren
Hi, This series updates omap4-keypad to disable unused long interrupts, and implements the missing parts for the lost key-up interrupt quirk as described in the silicon errata pdf. These are based on Linux next with the following pending patch applied: "Input: omap4-keypad - switch to use manage

[GIT PULL] SCSI fixes for 5.11-rc2

2021-01-10 Thread James Bottomley
This is two driver fixes (megaraid_sas and hisi_sas). The megaraid one is a revert of a previous revert of a cpu hotplug fix which exposed a bug in the block layer which has been fixed in this merge window and the hisi_sas performance enhancement comes from switching to interrupt managed completio

  1   2   3   4   5   6   >