[PATCH v4 01/16] dt-bindings: clk: sunxi-ccu: add compatible string for A100 CCU and R-CCU

2020-07-14 Thread Frank Lee
From: Yangtao Li This patch adds binding to a100's ccu clock and r-ccu clock. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- .../devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/b

Re: [PATCH v2 05/29] scsi: fcoe: fcoe_ctlr: Fix a myriad of documentation issues

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: Mostly missing or incorrect (bitrotted) function parameters. Fixes the following W=1 kernel build warning(s): drivers/scsi/fcoe/fcoe_ctlr.c:139: warning: Function parameter or member 'mode' not described in 'fcoe_ctlr_init' drivers/scsi/fcoe/fcoe_ctlr.c

Re: [PATCH v2 06/29] scsi: fcoe: fcoe_transport: Correct some kernel-doc issues

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: Mainly due to misdocumentation or bitrotted descriptions. Fixes the following W=1 kernel build warning(s): drivers/scsi/fcoe/fcoe_transport.c:396: warning: Function parameter or member 'skb' not described in 'fcoe_check_wait_queue' drivers/scsi/fcoe/fco

[PATCH v4 02/16] clk: sunxi-ng: add support for the Allwinner A100 CCU

2020-07-14 Thread Frank Lee
From: Yangtao Li Add support for a100 in the sunxi-ng CCU framework. Signed-off-by: Yangtao Li --- drivers/clk/sunxi-ng/Kconfig | 10 + drivers/clk/sunxi-ng/Makefile |2 + drivers/clk/sunxi-ng/ccu-sun50i-a100-r.c | 214 +++ drivers/clk/sunxi-ng/ccu-

[PATCH] init/do_mounts: fix a coding style error

2020-07-14 Thread zhouchuangao
Fix code style errors reported by scripts/checkpatch.pl. Signed-off-by: zhouchuangao --- init/do_mounts.c | 55 --- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 29d326b..89bf389 10064

Re: [PATCH v4] Fix dcan driver probe failed on am437x platform

2020-07-14 Thread dillon min
Hi Stephen, Thanks for your patience, step by step help on my patch reviewing. Dillon, On Tue, Jul 14, 2020 at 2:45 PM Stephen Rothwell wrote: > > Hi Dillon, > > > Hi Stephen, > > > > This changes correct commit messages based on your reviewing. > > make Fixes tags to oneline. > > make all comm

[RFC PATCH 04/15] x86/pks: Preserve the PKRS MSR on context switch

2020-07-14 Thread ira . weiny
From: Ira Weiny The PKRS MSR is defined as a per-core register. This isolates memory access by CPU. Unfortunately, the MSR is not preserved by XSAVE. Therefore, We must preserve the protections for individual tasks even if they are context switched out and placed on another cpu later. Define a

[RFC PATCH 11/15] memremap: Add zone device access protection

2020-07-14 Thread ira . weiny
From: Ira Weiny Device managed memory exposes itself to the kernel direct map which allows stray pointers to access these device memories. Stray pointers to normal memory may result in a crash or other undesirable behavior which, while unfortunate, are usually recoverable with a reboot. Stray w

[RFC PATCH 03/15] x86/pks: Enable Protection Keys Supervisor (PKS)

2020-07-14 Thread ira . weiny
From: Fenghua Yu Protection Keys for Supervisor pages (PKS) enables fast, hardware thread specific, manipulation of permission restrictions on supervisor page mappings. It uses the same mechanism of Protection Keys as those on User mappings but applies that mechanism to supervisor mappings using

[RFC PATCH 01/15] x86/pkeys: Create pkeys_internal.h

2020-07-14 Thread ira . weiny
From: Ira Weiny Protection Keys User (PKU) and Protection Keys Supervisor (PKS) work in similar fashions. Share code between them by creating a header with common defines, move those defines into this header, change their names to reflect the new use, and include the header where needed. Signed

[RFC PATCH 05/15] x86/pks: Add PKS kernel API

2020-07-14 Thread ira . weiny
From: Fenghua Yu PKS allows kernel users to define domains of page mappings which have additional protections beyond the paging protections. Add an API to allocate, use, and free a protection key which identifies such a domain. We export 2 new symbols pks_key_alloc() and pks_key_free() while pk

Re: [PATCH v2 10/29] scsi: libfc: fc_lport: Repair function parameter documentation

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: Either misdocumentation and/or bitrot. Fixes the following W=1 kernel build warning(s): drivers/scsi/libfc/fc_lport.c:412: warning: Function parameter or member 'in_fp' not described in 'fc_lport_recv_echo_req' drivers/scsi/libfc/fc_lport.c:412: warning

[PATCH v3 net] rtnetlink: Fix memory(net_device) leak when ->newlink fails

2020-07-14 Thread Weilong Chen
When vlan_newlink call register_vlan_dev fails, it might return error with dev->reg_state = NETREG_UNREGISTERED. The rtnl_newlink should free the memory. But currently rtnl_newlink only free the memory which state is NETREG_UNINITIALIZED. BUG: memory leak unreferenced object 0x8881051de000 (si

[RFC PATCH 14/15] nvdimm/pmem: Stray write protection for pmem->virt_addr

2020-07-14 Thread ira . weiny
From: Ira Weiny The pmem driver uses a cached virtual address to access its memory directly. Because the nvdimm driver is well aware of the special protections it has mapped memory with, we call dev_access_[en|dis]able() around the direct pmem->virt_addr (pmem_addr) usage instead of the unnecess

[RFC PATCH 10/15] drivers/dax: Expand lock scope to cover the use of addresses

2020-07-14 Thread ira . weiny
From: Ira Weiny The addition of PKS protection to dax read lock/unlock will require that the address returned by dax_direct_access() be protected by this lock. While not technically necessary for this series, this corrects the locking by ensuring that the use of kaddr and end_kaddr are covered b

Re: [PATCH v2 11/29] scsi: libfc: fc_rport: Fix a couple of misdocumented function parameters

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/scsi/libfc/fc_rport.c:129: warning: Function parameter or member 'port_id' not described in 'fc_rport_create' drivers/scsi/libfc/fc_rport.c:129: warning: Excess function parameter 'ids' descriptio

[RFC PATCH 12/15] kmap: Add stray write protection for device pages

2020-07-14 Thread ira . weiny
From: Ira Weiny Device managed pages may have additional protections. These protections need to be removed prior to valid use by kernel users. Check for special treatment of device managed pages in kmap and take action if needed. We use kmap as an interface for generic kernel code because unde

[RFC PATCH 13/15] dax: Stray write protection for dax_direct_access()

2020-07-14 Thread ira . weiny
From: Ira Weiny dax_direct_access() is a special case of accessing pmem via a page offset and without a struct page. Because the dax driver is well aware of the special protections it has mapped memory with, call dev_access_[en|dis]able() directly instead of the unnecessary overhead of trying to

[RFC PATCH 07/15] Documentation/pkeys: Update documentation for kernel pkeys

2020-07-14 Thread ira . weiny
From: Ira Weiny Future Intel CPUS will support Protection Key Supervisor (PKS). Update the protection key documentation to cover pkeys on supervisor pages. Signed-off-by: Ira Weiny --- Documentation/core-api/protection-keys.rst | 81 +- 1 file changed, 63 insertions(+), 18

[RFC PATCH 09/15] fs/dax: Remove unused size parameter

2020-07-14 Thread ira . weiny
From: Ira Weiny Passing size to copy_user_dax implies it can copy variable sizes of data when in fact it calls copy_user_page() which is exactly a page. We are safe because the only caller uses PAGE_SIZE anyway so just remove the variable for clarity. While we are at it change copy_user_dax() t

[RFC PATCH 15/15] [dax|pmem]: Enable stray write protection

2020-07-14 Thread ira . weiny
From: Ira Weiny Protecting against stray writes is particularly important for PMEM because, unlike writes to anonymous memory, writes to PMEM persists across a reboot. Thus data corruption could result in permanent loss of data. Therefore, there is no option presented to the user. Enable stray

[PATCH v4 03/16] dt-bindings: pinctrl: sunxi: Get rid of continual nesting

2020-07-14 Thread Frank Lee
From: Yangtao Li Rather than a continual nesting of 'else' clauses, just make each 'if' a new entry under 'allOf' and get rid of the else. Signed-off-by: Yangtao Li --- .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 124 ++ 1 file changed, 68 insertions(+), 56 deletions(-) di

[RFC PATCH 06/15] x86/pks: Add a debugfs file for allocated PKS keys

2020-07-14 Thread ira . weiny
From: Fenghua Yu The sysadmin may need to know which PKS keys are currently being used. Add a debugfs file to show the allocated PKS keys and their names. Signed-off-by: Fenghua Yu --- arch/x86/mm/pkeys.c | 40 1 file changed, 40 insertions(+) diff --

[RFC PATCH 00/15] PKS: Add Protection Keys Supervisor (PKS) support

2020-07-14 Thread ira . weiny
From: Ira Weiny This RFC series has been reviewed by Dave Hansen. This patch set introduces a new page protection mechanism for supervisor pages, Protection Key Supervisor (PKS) and an initial user of them, persistent memory, PMEM. PKS enables protections on 'domains' of supervisor pages to lim

[RFC PATCH 02/15] x86/fpu: Refactor arch_set_user_pkey_access() for PKS support

2020-07-14 Thread ira . weiny
From: Fenghua Yu Define a helper, get_new_pkr(), which will be used to support both Protection Key User (PKU) and the new Protection Key for Supervisor (PKS) in subsequent patches. Co-developed-by: Ira Weiny Signed-off-by: Ira Weiny Signed-off-by: Fenghua Yu --- arch/x86/include/asm/pkeys.h

Re: [PATCH v2 12/29] scsi: libfc: fc_fcp: Provide missing and repair existing function documentation

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: Mostly due to descriptions not keeping up with API changes. Fixes the following W=1 kernel build warning(s): drivers/scsi/libfc/fc_fcp.c:299: warning: Function parameter or member 'status_code' not described in 'fc_fcp_retry_cmd' drivers/scsi/libfc/fc_f

Re: [PATCHv3 3/4] watchdog: rti-wdt: attach to running watchdog during probe

2020-07-14 Thread Guenter Roeck
On 7/13/20 11:50 PM, Tero Kristo wrote: > On 14/07/2020 08:15, Guenter Roeck wrote: >> On 7/13/20 6:18 AM, Tero Kristo wrote: >>> If the RTI watchdog is running already during probe, the driver must >>> configure itself to match the HW. Window size and timeout is probed from >>> hardware, and the l

[PATCH v4 04/16] dt-bindings: pinctrl: sunxi: Add A100 pinctrl bindings

2020-07-14 Thread Frank Lee
From: Yangtao Li Add device tree binding Documentation details for A100 pinctrl driver, which has a r pin controller and a pin controller with more irq lines. Signed-off-by: Yangtao Li --- .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 15 +++ 1 file changed, 15 insertions(+)

Re: [PATCH v2 19/29] scsi: aic7xxx: aic7xxx_osm: Remove unused variable 'ahc'

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: Looks as though 'ahc' hasn't been used since 2005. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic7xxx_osm.c: In function ‘ahc_linux_slave_configure’: drivers/scsi/aic7xxx/aic7xxx_osm.c:674:20: warning: variable ‘ahc’ set but n

Re: [PATCH v2 20/29] scsi: aic7xxx: aic7xxx_osm: Remove unused variable 'targ'

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: Looks like checking the 'targ' was removed in 2005. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic7xxx_osm.c: In function ‘ahc_send_async’: drivers/scsi/aic7xxx/aic7xxx_osm.c:1604:28: warning: variable ‘targ’ set but not used

[PATCH v4 05/16] pinctrl: sunxi: add support for the Allwinner A100 pin controller

2020-07-14 Thread Frank Lee
From: Yangtao Li This commit introduces support for the pin controller on A100. Signed-off-by: Yangtao Li --- drivers/pinctrl/sunxi/Kconfig | 10 + drivers/pinctrl/sunxi/Makefile| 2 + drivers/pinctrl/sunxi/pinctrl-sun50i-a100-r.c | 105 +++ drivers/pinctrl/s

Re: [PATCH 4/5] dma-mapping: add a dma_ops_bypass flag to struct device

2020-07-14 Thread Christoph Hellwig
On Mon, Jul 13, 2020 at 02:59:39PM +1000, Alexey Kardashevskiy wrote: > > > On 09/07/2020 01:24, Christoph Hellwig wrote: > > Several IOMMU drivers have a bypass mode where they can use a direct > > mapping if the devices DMA mask is large enough. Add generic support > > to the core dma-mapping

Re: [PATCH v2 21/29] scsi: aic7xxx: aic7xxx_osm: Fix 'amount_xferred' set but not used issue

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: 'amount_xferred' is used, but only in certain circumstances. Place the same stipulations on the defining/allocating of 'amount_xferred' as is placed when using it. We've been careful not to change any of the ordering semantics here. Fixes the following W=1

[PATCH v4 06/16] dt-bindings: nvmem: SID: add binding for A100's SID controller

2020-07-14 Thread Frank Lee
From: Yangtao Li Add a binding for A100's SID controller. Signed-off-by: Yangtao Li --- .../nvmem/allwinner,sun4i-a10-sid.yaml| 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml

Re: [PATCH] timers: Use only bucket expiry for base->next_expiry value

2020-07-14 Thread Anna-Maria Behnsen
Hi Frederic, On Fri, 10 Jul 2020, Frederic Weisbecker wrote: > Hi Anna-Maria, > > Nice change, it indeed makes more sense that way. > Just a few details below: > > On Fri, Jul 10, 2020 at 05:46:22PM +0200, Anna-Maria Behnsen wrote: > > Use the expiry value of the bucket into which the timer is

drivers/net/hamradio/mkiss.c:825:23: sparse: sparse: incorrect type in initializer (different address spaces)

2020-07-14 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0dc589da873b58b70f4caf4b070fb0cf70fdd1dc commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 4 weeks ago config: openrisc-randconfig-s032-20200714

[RFC PATCH 08/15] x86/pks: Add PKS Test code

2020-07-14 Thread ira . weiny
From: Ira Weiny The core PKS functionality provides an interface for kernel users to reserve keys to their domains set up the page tables with those keys and control access to those domains when needed. Define test code which exercises the core functionality of PKS via a debugfs entry. Basic ch

Re: clean up address limit helpers

2020-07-14 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 08:25:35AM -0700, Linus Torvalds wrote: > On Fri, Jul 10, 2020 at 6:57 AM Christoph Hellwig wrote: > > > > in preparation for eventually phasing out direct use of set_fs(), this > > series removes the segment_eq() arch helper that is only used to > > implement or duplicate

Re: [PATCH v2] tty: serial: qcom-geni-serial: Drop the icc bw votes in suspend for console

2020-07-14 Thread Bjorn Andersson
On Mon 13 Jul 22:31 PDT 2020, Rajendra Nayak wrote: > When using the geni-serial as console, its important to be > able to hit the lowest possible power state in suspend, > even with no_console_suspend. > The only thing that prevents it today on platforms like the sc7180 > is the interconnect BW v

Re: [PATCH] tty: Add MOXA NPort Real TTY Driver

2020-07-14 Thread Greg Kroah-Hartman
On Tue, Jul 14, 2020 at 06:24:42AM +, Johnson CH Chen (陳昭勳) wrote: > This driver supports tty functions for all of MOXA's NPort series > with v5.0. Using this driver, host part can use tty to connect NPort > device server by ethernet. A new serial driver, nice! > > The following Moxa product

[PATCH v4 07/16] dt-bindings: thermal: sun8i: Add binding for A100's THS controller

2020-07-14 Thread Frank Lee
From: Yangtao Li Add a binding for A100's ths controller. Signed-off-by: Yangtao Li Reviewed-by: Yangtao Li Reviewed-by: Rob Herring --- .../bindings/thermal/allwinner,sun8i-a83t-ths.yaml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicet

[v2 PATCH] dts: arm64: lx2160a-rdb: fix shunt-resistor value

2020-07-14 Thread Biwen Li
From: Biwen Li Fix value of shunt-resistor property. The LX2160A-RDB has 500 uOhm shunt for the INA220, not 1000 uOhm. Unless it will get wrong power consumption(1/2) Signed-off-by: Biwen Li --- v2: - update description arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 2 +- 1 file

Re: [PATCH 5/6] uaccess: add force_uaccess_{begin,end} helpers

2020-07-14 Thread Christoph Hellwig
On Mon, Jul 13, 2020 at 03:19:42PM +0200, Geert Uytterhoeven wrote: > > This used to set KERNEL_DS, and now it sets USER_DS, which looks wrong > > superficially. > > Thanks for noticing, and sorry for missing that myself. > > The same issue is present for SuperH: > > - set_fs(K

Re: [PATCH 4/5] dma-mapping: add a dma_ops_bypass flag to struct device

2020-07-14 Thread Alexey Kardashevskiy
On 14/07/2020 17:07, Christoph Hellwig wrote: > On Mon, Jul 13, 2020 at 02:59:39PM +1000, Alexey Kardashevskiy wrote: >> >> >> On 09/07/2020 01:24, Christoph Hellwig wrote: >>> Several IOMMU drivers have a bypass mode where they can use a direct >>> mapping if the devices DMA mask is large enoug

[PATCH v4 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate

2020-07-14 Thread Frank Lee
From: Yangtao Li For sun50i_h6_ths_calibrate(), the data read from nvmem needs a round of calculation. On the other hand, the newer SOC may store other data in the space other than 12bit sensor data. Add mask operation to read data to avoid conversion error. Signed-off-by: Yangtao Li Reviewed-b

Re: [PATCH v7 3/3] leds: trigger: implement a tty trigger

2020-07-14 Thread Johan Hovold
On Tue, Jul 07, 2020 at 06:59:58PM +0200, Uwe Kleine-König wrote: > Usage is as follows: > > myled=ledname > tty=ttyS0 > > echo tty > /sys/class/leds/$myled/trigger > echo $tty > /sys/class/leds/$myled/ttyname > > . When this new trigger is active it periodically checks t

Re: [PATCHv3 3/4] watchdog: rti-wdt: attach to running watchdog during probe

2020-07-14 Thread Tero Kristo
On 14/07/2020 10:06, Guenter Roeck wrote: On 7/13/20 11:50 PM, Tero Kristo wrote: On 14/07/2020 08:15, Guenter Roeck wrote: On 7/13/20 6:18 AM, Tero Kristo wrote: If the RTI watchdog is running already during probe, the driver must configure itself to match the HW. Window size and timeout is p

[PATCH v4 09/16] thermal: sun8i: Add A100's THS controller support

2020-07-14 Thread Frank Lee
From: Yangtao Li This patch add thermal sensor controller support for A100, which is similar to the previous ones. Signed-off-by: Yangtao Li Reviewed-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/thermal/sun8i_th

[RESEND v2] arm64: dts: lx2160a-rdb: fix shunt-resistor value

2020-07-14 Thread Biwen Li
From: Biwen Li Fix value of shunt-resistor property. The LX2160A-RDB has 500 uOhm shunt for the INA220, not 1000 uOhm. Unless it will get wrong power consumption(1/2) Signed-off-by: Biwen Li --- arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v4 10/16] mfd: axp20x: Allow the AXP803 to be probed by I2C

2020-07-14 Thread Frank Lee
From: Yangtao Li The AXP803 can be used both using the RSB proprietary bus, or a more traditional I2C bus. Let's add that possibility. Signed-off-by: Yangtao Li --- drivers/mfd/axp20x-i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c

[PATCH v4 11/16] dt-bindings: irq: sun7i-nmi: fix dt-binding for a80 nmi

2020-07-14 Thread Frank Lee
From: Yangtao Li There is no one use "allwinner,sun9i-a80-sc-nmi". The A80 uses "allwinner,sun9i-a80-nmi". Let's fix it. Signed-off-by: Yangtao Li Acked-by: Rob Herring --- .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 0/5] batch completion + freeing improvements

2020-07-14 Thread Pavel Begunkov
On 14/07/2020 04:08, Jens Axboe wrote: > On 7/13/20 5:41 PM, Pavel Begunkov wrote: >> Different batching improvements, that's it. >> >> Unfortunately, I don't have a decent SSD/setup at hand to >> benchmark it properly. > > I do though, but I'm not seeing any improvement with this, whereas > some

[PATCH v4 12/16] dt-bindings: irq: sun7i-nmi: Add binding for A100's NMI controller

2020-07-14 Thread Frank Lee
From: Yangtao Li Add a binding for A100's nmi controller. Signed-off-by: Yangtao Li Acked-by: Rob Herring --- .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/allwinner

Re: [PATCH v4 2/2] Add PWM fan controller driver for LGM SoC

2020-07-14 Thread Uwe Kleine-König
Hello Rahul, On Tue, Jul 14, 2020 at 01:35:14PM +0800, Tanwar, Rahul wrote: > On 14/7/2020 3:10 am, Uwe Kleine-König wrote: > > On Tue, Jun 30, 2020 at 03:55:32PM +0800, Rahul Tanwar wrote: > Given the fact that this is a dedicated PWM fan controller with no other > PWM consumer, do you think that

[PATCH v4 13/16] dt-bindings: i2c: mv64xxx: Add compatible for the A100 i2c node.

2020-07-14 Thread Frank Lee
From: Yangtao Li Allwinner A100 have a mv64xxx i2c interface available to be used. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c

[PATCH v4 14/16] arm64: allwinner: A100: add the basical Allwinner A100 DTSI file

2020-07-14 Thread Frank Lee
From: Yangtao Li Allwinner A100 is a new SoC with Cortex-A53 cores, this commit adds the basical DTSI file of it, including the clock, i2c, pins, sid, ths, nmi, and UART support. Signed-off-by: Yangtao Li --- .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 364 ++ 1 file change

Re: [RFC PATCH 0/1] Add LTR controls

2020-07-14 Thread dikshita
Hi, A gentle reminder for the review. Thanks, Dikshita On 2020-06-17 00:11, diksh...@codeaurora.org wrote: Hi Hans, Nicolas, Thanks for your comments. On 2020-06-12 14:41, Hans Verkuil wrote: Hi Dikshita, Nicolas, On 11/06/2020 16:22, Nicolas Dufresne wrote: Le jeudi 11 juin 2020 à 15:55

[PATCH v4 15/16] dt-bindings: arm: sunxi: Add Allwinner A100 Perf1 Board bindings

2020-07-14 Thread Frank Lee
From: Yangtao Li Document board compatible names for Allwinner A100 Perf1 Board. Signed-off-by: Yangtao Li Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b

Re: [PATCH] OPENRISC ARCHITECTURE: Replace HTTP links with HTTPS ones

2020-07-14 Thread Geert Uytterhoeven
On Mon, Jul 13, 2020 at 7:37 PM Jonathan Corbet wrote: > On Fri, 10 Jul 2020 08:20:19 +0200 > "Alexander A. Klimov" wrote: > > Documentation/openrisc/openrisc_port.rst | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/Documentation/openrisc/openrisc_port.rst > > b/D

[PATCH v4 16/16] arm64: allwinner: A100: add support for Allwinner Perf1 board

2020-07-14 Thread Frank Lee
From: Yangtao Li A100 perf1 is an Allwinner A100-based SBC, with the following features: - 1GiB DDR3 DRAM - AXP803 PMIC - 2 USB 2.0 ports - MicroSD slot and on-board eMMC module - on-board Nand flash - ··· Adds initial support for it, including UART and PMU. Signed-off-by: Yangtao Li --- arc

Re: [PATCH] fbdev: Detect integer underflow at "struct fbcon_ops"->clear_margins.

2020-07-14 Thread Bartlomiej Zolnierkiewicz
[ Please Cc: fbdev Maintainer (happens to be me :) on fbdev patches, thanks. ] Hi, On 7/12/20 1:10 PM, Tetsuo Handa wrote: > I found that > > const int fd = open("/dev/fb0", O_ACCMODE); > struct fb_var_screeninfo var = { }; > ioctl(fd, FBIOGET_VSCREENINFO, &var); > var.xres = var.yres

Re: [PATCH] MAINTAIERS: Add John Ogness as printk reviewer

2020-07-14 Thread Petr Mladek
Mea culpa, I forgot to add John into CC. John, if you agree with being spammed by printk patches, please ack this one ;-) Best Regards, Petr On Fri 2020-07-10 11:44:32, Petr Mladek wrote: > John Ogness has started major rework of the printk code. Add him > as reviewer so that he is aware of all

Re: [PATCH net-next v1 5/5] net: phy: micrel: ksz886x/ksz8081: add cabletest support

2020-07-14 Thread Oleksij Rempel
On Mon, Jul 13, 2020 at 05:17:19PM +0200, Andrew Lunn wrote: > > > Hi Oleksij > > > > > > Do the PHY register read/writes pass through the DSA driver for the > > > 8873? I was wondering if the switch could intercept reads/writes on > > > port1 for KSZ8081_LMD and return EOPNOTSUPP? That would be

Re: [PATCH 1/2] cpufreq: tegra186: Fix initial frequency

2020-07-14 Thread Jon Hunter
On 14/07/2020 04:46, Viresh Kumar wrote: > On 13-07-20, 17:37, Jon Hunter wrote: >> >> On 13/07/2020 04:25, Viresh Kumar wrote: >>> On 12-07-20, 11:06, Jon Hunter wrote: Commit 6cc3d0e9a097 ("cpufreq: tegra186: add CPUFREQ_NEED_INITIAL_FREQ_CHECK flag") fixed CPUFREQ support for Te

[PATCH v2] timers: Use only bucket expiry for base->next_expiry value

2020-07-14 Thread Anna-Maria Behnsen
The bucket expiry time is the effective expriy time of timers and is greater than or equal to the requested timer expiry time. This is due to the guarantee that timers never expire early and the reduced expiry granularity in the secondary wheel levels. When a timer is enqueued, trigger_dyntick_cpu

Re: [PATCH v35 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-07-14 Thread Jethro Beekman
On 2020-07-07 05:37, Jarkko Sakkinen wrote: > From: Sean Christopherson > > An SGX runtime must be aware of the exceptions, which happen inside an > enclave. Introduce a vDSO call that wraps EENTER/ERESUME cycle and returns > the CPU exception back to the caller exactly when it happens. > > Kern

Re: [PATCH 1/2] cpufreq: tegra186: Fix initial frequency

2020-07-14 Thread Viresh Kumar
On 14-07-20, 08:26, Jon Hunter wrote: > OK, I can add a get callback. However, there are a few other drivers > that set the current frequency in the init() and don't implement a get() > callback ... > > drivers/cpufreq/pasemi-cpufreq.c > drivers/cpufreq/ppc_cbe_cpufreq.c These are quite old and I

Re: WARNING: at mm/mremap.c:211 move_page_tables in i386

2020-07-14 Thread Kirill A. Shutemov
On Sun, Jul 12, 2020 at 03:58:06PM -0700, Linus Torvalds wrote: > Anybody else have any opinions? Maybe we just shouldn't allow move_normal_pmd() if ranges overlap? Other option: pass 'overlaps' down to move_normal_pmd() and only WARN() if see establised PMD without overlaps being true. Untested

Re: [PATCH v3 0/3] drivers: ide: use generic power management

2020-07-14 Thread Bartlomiej Zolnierkiewicz
Hi, On 7/13/20 7:36 PM, Vaibhav Gupta wrote: > Linux Kernel Mentee: Remove Legacy Power Management. > > The purpose of this patch series is to remove legacy power management > callbacks > from ide drivers. > > The suspend() and resume() callbacks operations are still invoking > pci_save/resto

[PATCH] mm/hugetlb: hide nr_nodes in the internal of for_each_node_mask_to_[alloc|free]

2020-07-14 Thread Wei Yang
The second parameter of for_each_node_mask_to_[alloc|free] is a loop variant, which is not used outside of loop iteration. Let's hide this. Signed-off-by: Wei Yang --- mm/hugetlb.c | 38 -- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/mm/hu

Re: [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC

2020-07-14 Thread Sergei Shtylyov
Hello! On 14.07.2020 0:35, Lad Prabhakar wrote: From: Marian-Cristian Rotariu Document RZ/G2H (R8A774E1) SoC bindings. Signed-off-by: Marian-Cristian Rotariu Signed-off-by: Lad Prabhakar Reviewed-by: Sergei Shtylyov [...] MBR, Sergei

Re: [PATCH v2 2/2] drm: rockchip: add NV15, NV20 and NV30 support

2020-07-14 Thread Alex Bee
Hi Jonas, Am 07.07.20 um 00:30 schrieb Jonas Karlman: Add support for displaying 10-bit 4:2:0 and 4:2:2 formats produced by the Rockchip Video Decoder on RK322X, RK3288, RK3328, RK3368 and RK3399. Also add support for 10-bit 4:4:4 format while at it. V2: Added NV30 support Signed-off-by: Jonas

Re: [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support

2020-07-14 Thread Geert Uytterhoeven
Hi Prabhakar, On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar wrote: > Document RZ/G2H (R8A774E1) SoC bindings. > > Signed-off-by: Lad Prabhakar Thanks for your patch! > --- a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml > +++ b/Documentation/devicetree/bindings/iommu/renesas

Re: [PATCH] tty: Add MOXA NPort Real TTY Driver

2020-07-14 Thread Greg Kroah-Hartman
On Tue, Jul 14, 2020 at 06:24:42AM +, Johnson CH Chen (陳昭勳) wrote: > This driver supports tty functions for all of MOXA's NPort series > with v5.0. Using this driver, host part can use tty to connect NPort > device server by ethernet. > > The following Moxa products are supported: > * CN2600 S

Re: [PATCH v2 2/5] power: supply: core: add wireless charger adapter type property

2020-07-14 Thread Greg KH
On Tue, Jul 14, 2020 at 03:34:04PM +0800, ivan wrote: > same as before, we should add it Please do.

Re: [PATCH v2 1/5] power: supply: core: add quick charge type property

2020-07-14 Thread Greg KH
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I includ

Re: [PATCH v2] PCI: loongson: Use DECLARE_PCI_FIXUP_EARLY for bridge_class_quirk()

2020-07-14 Thread Tiezhu Yang
On 06/12/2020 09:30 AM, Tiezhu Yang wrote: Use DECLARE_PCI_FIXUP_EARLY instead of DECLARE_PCI_FIXUP_HEADER for bridge_class_quirk() in pci-loongson.c, otherwise the fixup has no effect. Fixes: 1f58cca5cf2b ("PCI: Add Loongson PCI Controller support") Signed-off-by: Tiezhu Yang --- v2: - mod

[PATCH net-next v4 00/12] bridge: mrp: Add support for interconnect ring

2020-07-14 Thread Horatiu Vultur
This patch series extends existing MRP to add support for interconnect ring. An interconnect ring is a ring that connects 2 rings. In this way is possible to connect multiple rings. Each interconnect ring is form of 4 nodes, in which 3 have the role MIC(Media Redundancy Interconnect Client) and on

Re: [PATCH v3] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-07-14 Thread Pali Rohár
On Monday 13 July 2020 17:41:40 Lorenzo Pieralisi wrote: > On Mon, Jul 13, 2020 at 04:50:03PM +0200, Pali Rohár wrote: > > On Monday 13 July 2020 12:23:25 Lorenzo Pieralisi wrote: > > > I will go over the thread again but I suspect I can merge the patch even > > > though I still believe there is wo

[PATCH net-next v4 01/12] switchdev: mrp: Extend switchdev API for MRP Interconnect

2020-07-14 Thread Horatiu Vultur
Extend switchdev API to add support for MRP interconnect. The HW is notified in the following cases: SWITCHDEV_OBJ_ID_IN_ROLE_MRP: This is used when the interconnect role of the node changes. The supported roles are MIM and MIC. SWITCHDEV_OBJ_ID_IN_STATE_MRP: This is used when the interconnect

[PATCH net-next v4 07/12] bridge: switchdev: mrp: Extend MRP API for switchdev for MRP Interconnect

2020-07-14 Thread Horatiu Vultur
Implement the MRP API for interconnect switchdev. Similar with the other br_mrp_switchdev function, these function will just eventually call the switchdev functions: switchdev_port_obj_add/del. Signed-off-by: Horatiu Vultur --- net/bridge/br_mrp_switchdev.c | 62 +

[PATCH net-next v4 05/12] bridge: mrp: Rename br_mrp_port_open to br_mrp_ring_port_open

2020-07-14 Thread Horatiu Vultur
This patch renames the function br_mrp_port_open to br_mrp_ring_port_open. In this way is more clear that a ring port lost the continuity because there will be also a br_mrp_in_port_open. Signed-off-by: Horatiu Vultur --- net/bridge/br_mrp.c | 6 +++--- net/bridge/br_mrp_netlink.c | 2 +-

[PATCH net-next v4 03/12] bridge: mrp: Extend bridge interface

2020-07-14 Thread Horatiu Vultur
This patch adds a new flag(BR_MRP_LOST_IN_CONT) to the net bridge ports. This bit will be set when the port lost the continuity of MRP_InTest frames. Signed-off-by: Horatiu Vultur --- include/linux/if_bridge.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/if_bridge.h b/includ

[PATCH net-next v4 02/12] bridge: uapi: mrp: Extend MRP attributes for MRP interconnect

2020-07-14 Thread Horatiu Vultur
Extend the existing MRP netlink attributes to allow to configure MRP Interconnect: IFLA_BRIDGE_MRP_IN_ROLE - the parameter type is br_mrp_in_role which contains the interconnect id, the ring id, the interconnect role(MIM or MIC) and the port ifindex that represents the interconnect port. IFLA

[PATCH net-next v4 12/12] net: bridge: Add port attribute IFLA_BRPORT_MRP_IN_OPEN

2020-07-14 Thread Horatiu Vultur
This patch adds a new port attribute, IFLA_BRPORT_MRP_IN_OPEN, which allows to notify the userspace when the node lost the contiuity of MRP_InTest frames. Signed-off-by: Horatiu Vultur --- include/uapi/linux/if_link.h | 1 + net/bridge/br_netlink.c| 3 +++ tools/include/uapi/li

[PATCH net-next v4 10/12] bridge: uapi: mrp: Extend MRP_INFO attributes for interconnect status

2020-07-14 Thread Horatiu Vultur
Extend the existing MRP_INFO to return status of MRP interconnect. In case there is no MRP interconnect on the node then the role will be disabled so the other attributes can be ignored. Signed-off-by: Horatiu Vultur --- include/uapi/linux/if_bridge.h | 5 + 1 file changed, 5 insertions(+)

[PATCH net-next v4 09/12] bridge: mrp: Extend MRP netlink interface for configuring MRP interconnect

2020-07-14 Thread Horatiu Vultur
This patch extends the existing MRP netlink interface with the following attributes: IFLA_BRIDGE_MRP_IN_ROLE, IFLA_BRIDGE_MRP_IN_STATE and IFLA_BRIDGE_MRP_START_IN_TEST. These attributes are similar with their ring attributes but they apply to the interconnect port. Signed-off-by: Horatiu Vultur

[PATCH net-next v4 11/12] bridge: mrp: Extend br_mrp_fill_info

2020-07-14 Thread Horatiu Vultur
This patch extends the function br_mrp_fill_info to return also the status for the interconnect ring. Signed-off-by: Horatiu Vultur --- net/bridge/br_mrp_netlink.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/net/bridge/br_mrp_netlink.c b/net/bridge/br_mrp_netlink.c in

[PATCH net-next v4 08/12] bridge: mrp: Implement the MRP Interconnect API

2020-07-14 Thread Horatiu Vultur
Thie patch adds support for MRP Interconnect. Similar with the MRP ring, if the HW can't generate MRP_InTest frames, then the SW will try to generate them. And if also the SW fails to generate the frames then an error is return to userspace. The forwarding/termination of MRP_In frames is happening

[PATCH net-next v4 04/12] bridge: mrp: Extend br_mrp for MRP interconnect

2020-07-14 Thread Horatiu Vultur
This patch extends the 'struct br_mrp' to contain information regarding the MRP interconnect. It contains the following: - the interconnect port 'i_port', which is NULL if the node doesn't have a interconnect role - the interconnect id, which is similar with the ring id, but this field is also

Re: [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings

2020-07-14 Thread Geert Uytterhoeven
On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar wrote: > Renesas RZ/G2H (R8A774E1) SoC also has the R-Car gen3 compatible > DMA controllers, therefore document RZ/G2H specific bindings. > > Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s,

[PATCH net-next v4 06/12] bridge: mrp: Add br_mrp_in_port_open function

2020-07-14 Thread Horatiu Vultur
This function notifies the userspace when the node lost the continuity of MRP_InTest frames. Signed-off-by: Horatiu Vultur --- net/bridge/br_mrp_netlink.c | 22 ++ net/bridge/br_private_mrp.h | 1 + 2 files changed, 23 insertions(+) diff --git a/net/bridge/br_mrp_netlink.c

Re: [PATCH v2 2/2] memory: samsung: exynos5422-dmc: Add module param to control IRQ mode

2020-07-14 Thread Bartlomiej Zolnierkiewicz
Hi, On 7/10/20 9:11 PM, Lukasz Luba wrote: > The driver can operate in two modes relaying on devfreq monitoring > mechanism which periodically checks the device status or it can use > interrupts when they are provided by loaded Device Tree. The newly > introduced module parameter can be used to

Re: [PATCH v2] efi: avoid error message when booting under Xen

2020-07-14 Thread Bartlomiej Zolnierkiewicz
On 7/10/20 4:22 PM, Juergen Gross wrote: > efifb_probe() will issue an error message in case the kernel is booted > as Xen dom0 from UEFI as EFI_MEMMAP won't be set in this case. Avoid > that message by calling efi_mem_desc_lookup() only if EFI_MEMMAP is set. > > Fixes: 38ac0287b7f4 ("fbdev/efif

[PATCH v3 2/2] riscv: Add jump-label implementation

2020-07-14 Thread Emil Renner Berthing
Add jump-label implementation based on the ARM64 version and add CONFIG_JUMP_LABEL=y to the defconfigs. Signed-off-by: Emil Renner Berthing Reviewed-by: Björn Töpel Tested-by: Björn Töpel --- Tested on the HiFive Unleashed board. Changes since v2: - Add missing asm/asm.h include. Reported-by

[PATCH v3 1/2] riscv: Support R_RISCV_ADD64 and R_RISCV_SUB64 relocs

2020-07-14 Thread Emil Renner Berthing
These are needed for the __jump_table in modules using static keys/jump-labels with the layout from HAVE_ARCH_JUMP_LABEL_RELATIVE on 64bit kernels. Signed-off-by: Emil Renner Berthing Reviewed-by: Björn Töpel Tested-by: Björn Töpel --- Tested on the HiFive Unleashed board. No changes since v2.

Re: [PATCH v2 15/24] scsi: myrs: Demote obvious misuse of kerneldoc to standard comment blocks

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:59 AM, Lee Jones wrote: > No attempt has been made to document any of the demoted functions here. > > Fixes the following W=1 kernel build warning(s): > > drivers/scsi/myrs.c:94: warning: Function parameter or member 'cmd_blk' not > described in 'myrs_reset_cmd' > drivers/scsi/myr

RE: [PATCH v3 1/2] phy: Add new PHY attribute max_link_rate and APIs to get/set PHY attributes

2020-07-14 Thread Swapnil Kashinath Jakhade
Hi, Thanks for your comments. > -Original Message- > From: Kishon Vijay Abraham I > Sent: Monday, July 13, 2020 5:28 PM > To: Vinod Koul ; Swapnil Kashinath Jakhade > > Cc: linux-kernel@vger.kernel.org; max...@cerno.tech; Milind Parab > ; Yuti Suresh Amonkar ; > nsek...@ti.com; tomi.val

Re: [PATCH v2 24/24] scsi: aic7xxx: aic79xx_osm: Remove set but unused variabes 'saved_scsiid' and 'saved_modes'

2020-07-14 Thread Hannes Reinecke
On 7/13/20 10:00 AM, Lee Jones wrote: > Haven't been used since 2006. > > Fixes the following W=1 kernel build warning(s): > > drivers/scsi/aic7xxx/aic79xx_osm.c: In function ‘ahd_linux_queue_abort_cmd’: > drivers/scsi/aic7xxx/aic79xx_osm.c:2155:17: warning: variable ‘saved_modes’ > set but no

Re: [PATCH v2 23/24] scsi: aic7xxx: aic79xx_osm: Fix 'amount_xferred' set but not used issue

2020-07-14 Thread Hannes Reinecke
On 7/13/20 10:00 AM, Lee Jones wrote: > 'amount_xferred' is used, but only in certain circumstances. Place > the same stipulations on the defining/allocating of 'amount_xferred' > as is placed when using it. > > We've been careful not to change any of the ordering semantics here. > > Fixes the f

  1   2   3   4   5   6   7   8   9   10   >