[PATCH v4 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes

2019-08-23 Thread Xiaowei Bao
LS1028a implements 2 PCIe 3.0 controllers. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- v2: - Fix up the legacy INTx allocate failed issue. v3: - No change. v4: - Remove the num-lanes proparty. depends on: https://patchwork.kernel.org/project/linux-pci/list/?series=162215

[PATCH v4 3/3] PCI: layerscape: Add LS1028a support

2019-08-23 Thread Xiaowei Bao
Add support for the LS1028a PCIe controller. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- v2: - No change. v3: - Reuse the ls2088 driver data structurt. v4: - No change. drivers/pci/controller/dwc/pci-layerscape.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 1/3] dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1028a-pcie"

2019-08-23 Thread Xiaowei Bao
Add the PCIe compatible string for LS1028A Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang Reviewed-by: Rob Herring --- v2: - No change. v3: - No change. v4: - No change. Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v7 1/7] iommu/vt-d: Don't switch off swiotlb if use direct dma

2019-08-23 Thread Joerg Roedel
On Fri, Aug 23, 2019 at 03:17:29PM +0800, Lu Baolu wrote: > --- a/drivers/iommu/intel-iommu.c > +++ b/drivers/iommu/intel-iommu.c > @@ -4569,9 +4569,6 @@ static int __init platform_optin_force_iommu(void) > iommu_identity_mapping |= IDENTMAP_ALL; > > dmar_disabled = 0; > -#if

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-08-23 Thread Philipp Zabel
Hi Dilip, On Fri, 2019-08-23 at 13:28 +0800, Dilip Kota wrote: > Add driver for the reset controller present on Intel > Lightening Mountain (LGM) SoC for performing reset > management of the devices present on the SoC. Driver also > registers a reset handler to peform the entire device reset. >

[PATCH 2/2] fbdev: fbmem: allow overriding the number of bootup logos

2019-08-23 Thread Peter Rosin
Probably most useful if you only want one logo regardless of how many CPU cores you have. Signed-off-by: Peter Rosin --- Documentation/fb/fbcon.rst | 5 + drivers/video/fbdev/core/fbcon.c | 7 +++ drivers/video/fbdev/core/fbmem.c | 5 - include/linux/fb.h | 1 +

[PATCH 1/2] fbdev: fix numbering of fbcon options

2019-08-23 Thread Peter Rosin
Three shall be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count... One! Two! Five! Fixes: efb985f6b265 ("[PATCH] fbcon: Console Rotation - Add framebuffer console documentation") Signed-off-by: Peter Rosin --- Documentation/fb/fbcon.rst | 8

[PATCH 0/2] Add possibility to specify the number of displayed logos

2019-08-23 Thread Peter Rosin
Hi! The first patch fixes the fact that there are two items numbered "4" in the list of fbcon options. This bug is a teenager... The second patch extends that list with a new option that allows the user to display any number of logos (that fits on the screen). I need it to limit the display to

Re: [PATCH 3/4] kernel.h: Add non_block_start/end()

2019-08-23 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 10:24:40PM +0200, Daniel Vetter wrote: > On Tue, Aug 20, 2019 at 10:19:01AM +0200, Daniel Vetter wrote: > > In some special cases we must not block, but there's not a > > spinlock, preempt-off, irqs-off or similar critical section already > > that arms the might_sleep()

Re: [PATCH 2/3] lockdep: add might_lock_nested()

2019-08-23 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 10:19:50AM +0200, Daniel Vetter wrote: > Necessary to annotate functions where we might acquire a > mutex_lock_nested() or similar. Needed by i915. > > Signed-off-by: Daniel Vetter > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Will Deacon > Cc:

Re: [PATCH 3/3] drm/i915: use might_lock_nested in get_pages annotation

2019-08-23 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 10:19:51AM +0200, Daniel Vetter wrote: > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_object.h > b/drivers/gpu/drm/i915/gem/i915_gem_object.h > index a0b1fa8a3224..b3fd6aac93bc 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_object.h > +++

[PATCH v3 1/2] f2fs: introduce {page,io}_is_mergeable() for readability

2019-08-23 Thread Chao Yu
Wrap merge condition into function for readability, no logic change. Signed-off-by: Chao Yu --- v3: - fix wrong merge condition. fs/f2fs/data.c | 40 +--- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index

Re: [PATCH v2 03/11] dt-bindings: irq: mtk,sysirq: add support for mt6779

2019-08-23 Thread Linus Walleij
On Mon, Aug 19, 2019 at 11:22 AM Mars Cheng wrote: > Add binding documentation of mediatek,sysirq for mt6779 SoC. > > Signed-off-by: Mars Cheng I'm relying on Sean to review this and ACK when he's pleased with the result. Yours, Linus Walleij

[PATCH] wimax/i2400m: fix calculation of index, remove sizeof

2019-08-23 Thread Colin King
From: Colin Ian King The subtraction of the two pointers is automatically scaled by the size of the size of the object the pointers point to, so the division by sizeof(*i2400m->barker) is incorrect. Fix this by removing the division. Also make index an unsigned int to clean up a checkpatch

Re: [PATCH net 0/9] rxrpc: Fix use of skb_cow_data()

2019-08-23 Thread David Howells
David Miller wrote: > Why don't you just do an skb_unshare() at the beginning when you know that > you'll need to do that? I was trying to defer any copying to process context rather than doing it in softirq context to spend less time in softirq context - plus that way I can use GFP_NOIO (kafs)

[PATCH net 0/2] r8152: fix side effect

2019-08-23 Thread Hayes Wang
The commit 0ee1f4734967 ("r8152: napi hangup fix after disconnect") add a check to avoid using napi_disable after netif_napi_del. However, the commit ffa9fec30ca0 ("r8152: set RTL8152_UNPLUG only for real disconnection") let the check useless. Therefore, I revert commit 0ee1f4734967 ("r8152: napi

[PATCH net 1/2] Revert "r8152: napi hangup fix after disconnect"

2019-08-23 Thread Hayes Wang
This reverts commit 0ee1f4734967af8321ecebaf9c74221ace34f2d5. This conflicts with commit ffa9fec30ca0 ("r8152: set RTL8152_UNPLUG only for real disconnection"). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH net 2/2] r8152: avoid using napi_disable after netif_napi_del.

2019-08-23 Thread Hayes Wang
Exchange netif_napi_del() and unregister_netdev() in rtl8152_disconnect() to avoid using napi_disable() after netif_napi_del(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c

Re: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Driver

2019-08-23 Thread Vignesh Raghavendra
Hi, On 22/07/19 12:02 AM, Pawel Laszczak wrote: > + > +/** > + * cdns3_req_ep0_get_status - Handling of GET_STATUS standard USB request > + * @priv_dev: extended gadget object > + * @ctrl_req: pointer to received setup packet > + * > + * Returns 0 if success, error code on error > + */ > +static

Re: [PATCH v6 4/7] nfc: pn533: Split pn533 init & nfc_register

2019-08-23 Thread Lars Poeschel
On Thu, Aug 22, 2019 at 10:08:40AM +, claudiu.bez...@microchip.com wrote: > > > On 20.08.2019 15:03, Lars Poeschel wrote: > > There is a problem in the initialisation and setup of the pn533: It > > registers with nfc too early. It could happen, that it finished > > registering with nfc and

Re: [PATCH V5 1/3] riscv: Add perf callchain support

2019-08-23 Thread Greentime Hu
Hi Mao, Mao Han 於 2019年8月23日 週五 下午2:16寫道: > > This patch add support for perf callchain sampling on riscv platform. > The return address of leaf function is retrieved from pt_regs as > it is not saved in the outmost frame. > > Signed-off-by: Mao Han > Cc: Paul Walmsley > Cc: Greentime Hu >

Re: [PATCH v2 05/11] pinctrl: mediatek: avoid virtual gpio trying to set reg

2019-08-23 Thread Linus Walleij
On Mon, Aug 19, 2019 at 11:22 AM Mars Cheng wrote: > for virtual gpios, they should not do reg setting and > should behave as expected for eint function. > > Signed-off-by: Mars Cheng This does not explain what a "virtual GPIO" is in this context, so please elaborate. What is this? Why does it

Re: [PATCH v2 06/11] pinctrl: mediatek: add pinctrl support for MT6779 SoC

2019-08-23 Thread Linus Walleij
On Thu, Aug 22, 2019 at 8:12 PM Sean Wang wrote: > On Mon, Aug 19, 2019 at 2:22 AM Mars Cheng wrote: > > > > This adds MT6779 pinctrl driver based on MediaTek pinctrl-paris core. > > > > Signed-off-by: Mars Cheng > > Signed-off-by: Andy Teng > > Acked-by: Sean Wang Please look at the DT

RE: [PATCH v8 0/6] vfio/type1: Add support for valid iova list management

2019-08-23 Thread Shameerali Kolothum Thodi
Hi Alex, A gentle ping on this. Please let me know. Thanks, Shameer > -Original Message- > From: Shameerali Kolothum Thodi > Sent: 23 July 2019 17:07 > To: alex.william...@redhat.com; eric.au...@redhat.com > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; >

Re: [PATCH] power: supply: register HWMON devices with valid names

2019-08-23 Thread Romain Izard
On Thu, Aug 22, 2019 at 09:12:07AM -0700, Guenter Roeck wrote: > On Thu, Aug 22, 2019 at 05:09:19PM +0200, Romain Izard wrote: > > With the introduction of the HWMON compatibility layer to the power > > supply framework in Linux 5.3, all power supply devices' names can be > > used directly to

[PATCH v2 2/5] soc: amlogic: Add support for Everything-Else power domains controller

2019-08-23 Thread Neil Armstrong
Add support for the General Purpose Amlogic Everything-Else Power controller, with the first support for G12A and SM1 SoCs dedicated to the VPU, PCIe, USB, NNA, GE2D and Ethernet Power Domains. Signed-off-by: Neil Armstrong --- drivers/soc/amlogic/Kconfig | 11 +

[PATCH v2 4/5] arm64: dts: meson-sm1-sei610: add HDMI display support

2019-08-23 Thread Neil Armstrong
Add the HDMI support nodes for the Amlogic SM1 Based SEI610 Board. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-sm1-sei610.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts

[PATCH v2 5/5] arm64: dts: meson-sm1-sei610: add USB support

2019-08-23 Thread Neil Armstrong
Add the USB properties for the Amlogic SM1 Based SEI610 Board in order to support the USB DRD Type-C port and the USB3 Type A port. The USB DRD Type-C controller uses the ID signal to toggle the USB role between the DWC3 Host controller and the DWC2 Device controller. Signed-off-by: Neil

[PATCH v2 0/5] arm64: meson: add support for SM1 Power Domains

2019-08-23 Thread Neil Armstrong
This patchset introduces a new "Everything-Else Power Domain Controller" designed to handle all the different non-Always On peripherals like : - VPU - Ethernet Memories - USB, PCIe, Audio, NNA on SM1 The current "gx-vpu-pwrc" process has been integrated to support the VPU and the other power

[PATCH v2 3/5] arm64: meson-g12: add Everything-Else power domain controller

2019-08-23 Thread Neil Armstrong
Replace the VPU-centric power domain controller by the generic system-wide Everything-Else power domain controller and setup the right power-domains properties on the VPU, Ethernet & USB nodes. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12-common.dtsi| 92

[PATCH v2 1/5] dt-bindings: power: add Amlogic Everything-Else power domains bindings

2019-08-23 Thread Neil Armstrong
Add the bindings for the Amlogic Everything-Else power domains, controlling the Everything-Else peripherals power domains. The bindings targets the Amlogic G12A and SM1 compatible SoCs, support for earlier SoCs will be added later. Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring ---

Re: [PATCH] x86/cpu: Add new Airmont variant to Intel family

2019-08-23 Thread Peter Zijlstra
On Thu, Aug 22, 2019 at 01:35:44PM -0700, Luck, Tony wrote: > From: Tony Luck > > One of the use cases for this processor is as a network > processor. So give it an "_NP" tag for now. Could be changed > later if it turns out to group with some other tag. > > Signed-off-by: Tony Luck > --- >

Re: [PATCH 20/21] ASoC: sun4i-i2s: Add support for TDM slots

2019-08-23 Thread Sergey Suloev
Hi, Maxime, On 8/21/19 3:05 PM, Maxime Ripard wrote: Hi, On Tue, Aug 20, 2019 at 08:46:30AM +0300, Sergey Suloev wrote: Hi, Maxime, On 8/19/19 10:25 PM, Maxime Ripard wrote: From: Maxime Ripard The i2s controller supports TDM, for up to 8 slots. Let's support the TDM API. Signed-off-by:

Re: [PATCH v3] gpiolib: Take MUX usage into account

2019-08-23 Thread Linus Walleij
On Wed, Aug 14, 2019 at 1:01 PM Ramon Fried wrote: > From: Stefan Wahren > > The user space like gpioinfo only see the GPIO usage but not the > MUX usage (e.g. I2C or SPI usage) of a pin. As a user we want to know which > pin is free/safe to use. So take the MUX usage of strict pinmux

Re: Status of Subsystems - MICROCHIP SAMA5D2-COMPATIBLE PIOBU GPIO

2019-08-23 Thread Nicolas.Ferre
Sebastian, On 20/08/2019 at 15:27, Sebastian Duda wrote: > Hello Andrei, > > in my master thesis, I'm using the association of subsystems to > maintainers/reviewers and its status given in the MAINTAINERS file. > During the research I noticed that there are several subsystems without > a status

Re: [RESEND PATCH 01/13] KVM: x86: Relocate MMIO exit stats counting

2019-08-23 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Move the stat.mmio_exits update into x86_emulate_instruction(). This is > both a bug fix, e.g. the current update flows will incorrectly increment > mmio_exits on emulation failure, and a preparatory change to set the > stage for eliminating EMULATE_DONE and

Re: [PATCH] /dev/mem: Bail out upon SIGKILL when reading memory.

2019-08-23 Thread Ingo Molnar
* Linus Torvalds wrote: > On Tue, Aug 20, 2019 at 3:07 PM Tetsuo Handa > wrote: > > > > syzbot found that a thread can stall for minutes inside read_mem() > > after that thread was killed by SIGKILL [1]. Reading 2GB at one read() > > is legal, but delaying termination of killed thread for

Re: [RESEND PATCHv4 1/1] drivers/amba: add reset control to amba bus probe

2019-08-23 Thread Linus Walleij
On Tue, Aug 20, 2019 at 4:58 PM Dinh Nguyen wrote: > @@ -401,6 +402,26 @@ static int amba_device_try_add(struct amba_device *dev, > struct resource *parent) > ret = amba_get_enable_pclk(dev); > if (ret == 0) { > u32 pid, cid; > + int count; > +

numlist_push() barriers Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-23 Thread Petr Mladek
On Thu 2019-08-08 00:32:26, John Ogness wrote: > --- /dev/null > +++ b/kernel/printk/numlist.c > +/** > + * numlist_push() - Add a node to the list and assign it a sequence number. > + * > + * @nl: The numbered list to push to. > + * > + * @n: A node to push to the numbered list. > + * The

Re: [PATCH 2/2] uacce: add uacce module

2019-08-23 Thread zhangfei
Hi, Jonathan Thanks for your careful review and good suggestion. Sorry for late response, I am checking one detail. On 2019/8/16 上午12:54, Jonathan Cameron wrote: On Wed, 14 Aug 2019 17:34:25 +0800 Zhangfei Gao wrote: From: Kenneth Lee Uacce is the kernel component to support WarpDrive

Re: [PATCH] x86/cpu: Add new Airmont variant to Intel family

2019-08-23 Thread Tanwar, Rahul
Hi Peter, On 23/8/2019 5:03 PM, Peter Zijlstra wrote: On Thu, Aug 22, 2019 at 01:35:44PM -0700, Luck, Tony wrote: From: Tony Luck One of the use cases for this processor is as a network processor. So give it an "_NP" tag for now. Could be changed later if it turns out to group with some

Re: [RESEND PATCH 02/13] KVM: x86: Clean up handle_emulation_failure()

2019-08-23 Thread Vitaly Kuznetsov
Sean Christopherson writes: > When handling emulation failure, return the emulation result directly > instead of capturing it in a local variable. Future patches will move > additional cases into handle_emulation_failure(), clean up the cruft > before so there isn't an ugly mix of setting a

linux-next: Tree for Aug 23

2019-08-23 Thread Stephen Rothwell
Hi all, Changes since 20190822: The thermal tree gained a conflict against the jc_docs tree. The rdma tree gained a conflict against the rdma-fixes tree. The net-next tree gained conflicts against the pci tree. The crypto tree gained a conflict against Linus' tree. The drm tree gained a

[PATCH v1 0/3] add dual-boot support

2019-08-23 Thread Ivan Mikhaylov
ASPEED SoCs support dual-boot feature for SPI Flash. When strapped appropriately, the SoC starts wdt2 (/dev/watchdog1) and if within a minute it is not disabled, it goes off and reboots the SoC from an alternate SPI Flash chip by changing CS0 controls to actually drive CS1 line. When booted from

[PATCH v1 1/3] vesnin: add wdt2 section with alt-boot option

2019-08-23 Thread Ivan Mikhaylov
Adds wdt2 section with 'alt-boot' option into dts for vesnin. Signed-off-by: Ivan Mikhaylov --- arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts b/arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts index

Re: [RESEND PATCH 03/13] KVM: x86: Refactor kvm_vcpu_do_singlestep() to remove out param

2019-08-23 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Return the single-step emulation result directly instead of via an out > param. Presumably at some point in the past kvm_vcpu_do_singlestep() > could be called with *r==EMULATE_USER_EXIT, but that is no longer the > case, i.e. all callers are happy to overwrite

[PATCH v1 2/3] vesnin: add secondary SPI flash chip

2019-08-23 Thread Ivan Mikhaylov
Adds secondary SPI flash chip into dts for vesnin. Signed-off-by: Ivan Mikhaylov --- arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts b/arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts index

Re: [RESEND PATCH 04/13] KVM: x86: Drop EMULTYPE_NO_UD_ON_FAIL as a standalone type

2019-08-23 Thread Vitaly Kuznetsov
Sean Christopherson writes: > The "no #UD on fail" is used only in the VMWare case, and for the VMWare > scenario it really means "#GP instead of #UD on fail". Remove the flag > in preparation for moving all fault injection into the emulation flow > itself, which in turn will allow eliminating

[PATCH v1 3/3] watchdog/aspeed: add support for dual boot

2019-08-23 Thread Ivan Mikhaylov
Set WDT_CLEAR_TIMEOUT_AND_BOOT_CODE_SELECTION into WDT_CLEAR_TIMEOUT_STATUS to clear out boot code source and re-enable access to the primary SPI flash chip while booted via wdt2 from the alternate chip. AST2400 datasheet says: "In the 2nd flash booting mode, all the address mapping to CS0# would

[PATCH] reiserfs: fix set but not used variable 'blkh'

2019-08-23 Thread yu kuai
Gcc '-Wunused-but-set-variable' warning: fs/reiserfs/prints.c:749:21: warning: variable blkh set but not used Fix it by using blkh instead of regenerating it by B_BLK_HEAD(bh) Reported-by: Hulk Robot Signed-off-by: yu kuai --- fs/reiserfs/prints.c | 11 ++- 1 file changed, 6

Re: [PATCH] drm/panfrost: Add missing check for pfdev->regulator

2019-08-23 Thread Steven Price
On 23/08/2019 02:52, Rob Herring wrote: > On Thu, Aug 22, 2019 at 4:32 AM Steven Price wrote: >> >> When modifying panfrost_devfreq_target() to support a device without a >> regulator defined I missed the check on the error path. Let's add it. >> >> Reported-by: Dan Carpenter >> Fixes:

Re: [PATCH] x86/mm: Do not split_large_page() for set_kernel_text_rw()

2019-08-23 Thread Peter Zijlstra
On Thu, Aug 22, 2019 at 10:23:35PM -0700, Song Liu wrote: > As 4k pages check was removed from cpa [1], set_kernel_text_rw() leads to > split_large_page() for all kernel text pages. This means a single kprobe > will put all kernel text in 4k pages: > > root@ ~# grep 8100-

[PATCH] drivers: thermal: qcom: tsens: Fix memory leak from qfprom read

2019-08-23 Thread Srinivas Kandagatla
memory returned as part of nvmem_read via qfprom_read should be freed by the consumer once done. Existing code is not doing it so fix it. Below memory leak detected by kmemleak [] kmemleak_alloc+0x50/0x84 [] __kmalloc+0xe8/0x168 [] nvmem_cell_read+0x30/0x80 [] qfprom_read+0x4c/0x7c

RE: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Driver

2019-08-23 Thread Pawel Laszczak
Hi, >Hi, > >On 22/07/19 12:02 AM, Pawel Laszczak wrote: >> + >> +/** >> + * cdns3_req_ep0_get_status - Handling of GET_STATUS standard USB request >> + * @priv_dev: extended gadget object >> + * @ctrl_req: pointer to received setup packet >> + * >> + * Returns 0 if success, error code on error >>

Re: [v8 1/1] gpio: aspeed: Add SGPIO driver

2019-08-23 Thread Linus Walleij
On Tue, Aug 20, 2019 at 11:05 PM Hongwei Zhang wrote: > Add SGPIO driver support for Aspeed AST2500 SoC. > > Signed-off-by: Hongwei Zhang > Reviewed-by: Andrew Jeffery This v8 patch applied for v5.4, thanks! Yours, Linus Walleij

[PATCH] arm64: dts: allwinner: orange-pi-3: Enable WiFi

2019-08-23 Thread megous
From: Ondrej Jirman Orange Pi 3 has AP6256 WiFi/BT module. WiFi part of the module is called bcm43356 and can be used with the brcmfmac driver. The module is powered by the two always on regulators (not AXP805). WiFi uses a PG port with 1.8V voltage level signals. SoC needs to be configured so

Re: [PATCH v2 00/20] Initial support for Marvell MMP3 SoC

2019-08-23 Thread Marc Zyngier
On 23/08/2019 08:21, Lubomir Rintel wrote: > On Thu, 2019-08-22 at 11:31 +0100, Marc Zyngier wrote: >> On 22/08/2019 10:26, Lubomir Rintel wrote: >>> Hi, >>> >>> this is a second spin of a patch set that adds support for the Marvell >>> MMP3 processor. MMP3 is used in OLPC XO-4 laptops, Panasonic

Re: [PATCHv2 0/4] Layerscape: Remove num-lanes property from PCIe nodes

2019-08-23 Thread Andrew Murray
On Thu, Aug 22, 2019 at 05:48:15PM +0100, Lorenzo Pieralisi wrote: > On Tue, Aug 20, 2019 at 07:28:37AM +, Z.q. Hou wrote: > > From: Hou Zhiqiang > > > > On FSL Layerscape SoCs, the number of lanes assigned to PCIe > > controller is not fixed, it is determined by the selected > > SerDes

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-08-23 Thread Dilip Kota
Hi Philipp, On 8/23/2019 4:43 PM, Philipp Zabel wrote: Hi Dilip, On Fri, 2019-08-23 at 13:28 +0800, Dilip Kota wrote: Add driver for the reset controller present on Intel Lightening Mountain (LGM) SoC for performing reset management of the devices present on the SoC. Driver also registers a

[Patch V7 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-08-23 Thread Nagarjuna Kristam
Configure the port capabilities based on usb_dr_mode settings. Based on work by JC Kuo . Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

[Patch V7 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-08-23 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 57 +++ drivers/phy/tegra/xusb.c | 22

[Patch V7 0/8] Tegra XUSB gadget driver support

2019-08-23 Thread Nagarjuna Kristam
This is the seventh version of series "Tegra XUSB gadget driver support" Patches 1-3 are phy driver changes to add support for device mode. Patches 4-7 are changes related to XUSB device mode controller driver. Patch 8 is to enable XUDC driver in defconfig Test Steps(USB 2.0): - Enable "USB

[Patch V7 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-08-23 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on Tegra210 SoC. This controller supports the USB 3.0 specification. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Reviewed-by: Rob Herring Acked-by: Thierry Reding ---

[Patch V7 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-08-23 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 358b163..e9233df 100644 ---

[Patch V7 5/8] arm64: tegra: Add xudc node for Tegra210

2019-08-23 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions(+)

[Patch V7 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-08-23 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 31 +- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git

[Patch V7 2/8] phy: tegra: xusb: Add usb3 port fake support on Tegra210

2019-08-23 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral. Based on work by BH Hsieh . Signed-off-by: Nagarjuna

[Patch V7 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-08-23 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller supports SS, HS and FS modes Based on work by: Mark Kuo Hui Fu Andrew Bresticker Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/usb/gadget/udc/Kconfig | 12

Re: comments style: Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-23 Thread Sergey Senozhatsky
On (08/22/19 15:50), Petr Mladek wrote: [..] > I could understand that you spend a lot of time on creating the > labels and that they are somehow useful for you. > > But I am not using them and I hope that I will not have to: > > + Grepping takes a lot of time, especially over several files.

linux-next: Signed-off-by missing for commit in the drm tree

2019-08-23 Thread Stephen Rothwell
Hi all, Commit 88b703527ba7 ("drm/nouveau/kms/gf119-: add ctm property support") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpDQVDZcqJpf.pgp Description: OpenPGP digital signature

Re: [PATCH v6 5/7] nfc: pn533: add UART phy driver

2019-08-23 Thread Lars Poeschel
On Thu, Aug 22, 2019 at 10:09:09AM +, claudiu.bez...@microchip.com wrote: > Hi Lars, > > On 20.08.2019 15:03, Lars Poeschel wrote: > > This adds the UART phy interface for the pn533 driver. > > The pn533 driver can be used through UART interface this way. > > It is implemented as a serdev

linux-next: Signed-off-by missing for commit in the kvm-ppc tree

2019-08-23 Thread Stephen Rothwell
Hi all, Commit ff7240ccf0cd ("KVM: PPC: Book3S: Mark expected switch fall-through") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpnsvuxd3Z4H.pgp Description: OpenPGP digital signature

Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression

2019-08-23 Thread Thomas Zimmermann
Hi Am 22.08.19 um 22:02 schrieb Dave Airlie: > On Fri, 23 Aug 2019 at 03:25, Thomas Zimmermann wrote: >> >> Hi >> >> I was traveling and could reply earlier. Sorry for taking so long. >> >> Am 13.08.19 um 11:36 schrieb Feng Tang: >>> Hi Thomas, >>> >>> On Mon, Aug 12, 2019 at 03:25:45PM +0800,

[PATCH v8 14/18] drm/virtio: switch from ttm to gem shmem helpers

2019-08-23 Thread Gerd Hoffmann
virtio-gpu basically needs a sg_table for the bo, to tell the host where the backing pages for the object are. So the gem shmem helpers are a perfect fit. Some drm_gem_object_funcs need thin wrappers to update the host state, but otherwise the helpers handle everything just fine. Once the

[PATCH v8 09/18] drm/virtio: rework virtio_gpu_object_create fencing

2019-08-23 Thread Gerd Hoffmann
Rework fencing workflow. Stop using ttm helpers, use the virtio_gpu_array_* helpers instead. Due to using the gem reservation object it is initialized and ready for use before calling ttm_bo_init. So we can simply use the standard fencing workflow and drop the tricky logic which checks whenever

[PATCH v8 16/18] drm/virtio: drop virtio_gpu_object_{ref,unref}

2019-08-23 Thread Gerd Hoffmann
No users left. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h index 3e5b2d1db42d..85f974a9837b 100644 ---

[PATCH v8 07/18] drm/virtio: add virtio_gpu_object_array & helpers

2019-08-23 Thread Gerd Hoffmann
Some helper functions to manage an array of gem objects. v6: - add ticket to struct virtio_gpu_object_array. - add virtio_gpu_array_{lock,unlock}_resv helpers. - add virtio_gpu_array_add_fence helper. v5: some small optimizations (Chia-I Wu). v4: make them virtio-private instead of generic

[PATCH v8 11/18] drm/virtio: rework virtio_gpu_transfer_to_host_ioctl fencing

2019-08-23 Thread Gerd Hoffmann
Switch to the virtio_gpu_array_* helper workflow. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 4 +-- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 50 +++--- drivers/gpu/drm/virtio/virtgpu_plane.c | 21 ---

[PATCH v8 17/18] drm/virtio: drop virtio_gpu_object_{reserve,unreserve}

2019-08-23 Thread Gerd Hoffmann
No users left. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 21 - 1 file changed, 21 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h index 85f974a9837b..fb35831ed351 100644 ---

[PATCH v8 18/18] drm/virtio: add fence sanity check

2019-08-23 Thread Gerd Hoffmann
Make sure we don't leak half-initialized fences outside the driver. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_fence.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_fence.c b/drivers/gpu/drm/virtio/virtgpu_fence.c index

[PATCH v8 03/18] drm/virtio: simplify cursor updates

2019-08-23 Thread Gerd Hoffmann
No need to do the reservation dance, we can just wait on the fence directly. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- drivers/gpu/drm/virtio/virtgpu_plane.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git

[PATCH v8 04/18] drm/virtio: remove virtio_gpu_object_wait

2019-08-23 Thread Gerd Hoffmann
No users left. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- drivers/gpu/drm/virtio/virtgpu_drv.h| 1 - drivers/gpu/drm/virtio/virtgpu_object.c | 13 - 2 files changed, 14 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h

[PATCH v8 01/18] drm/virtio: pass gem reservation object to ttm init

2019-08-23 Thread Gerd Hoffmann
With this gem and ttm will use the same reservation object, so mixing and matching ttm / gem reservation helpers should work fine. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- drivers/gpu/drm/virtio/virtgpu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v8 02/18] drm/virtio: switch virtio_gpu_wait_ioctl() to gem helper.

2019-08-23 Thread Gerd Hoffmann
Use drm_gem_reservation_object_wait() in virtio_gpu_wait_ioctl(). This also makes the ioctl run lockless. v5: handle lookup failure. v2: use reservation_object_test_signaled_rcu for VIRTGPU_WAIT_NOWAIT. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter ---

[PATCH v8 06/18] drm/virtio: remove ttm calls from in virtio_gpu_object_{reserve,unreserve}

2019-08-23 Thread Gerd Hoffmann
Call reservation_object_* directly instead of using ttm_bo_{reserve,unreserve}. v4: check for EINTR only. v3: check for EINTR too. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- drivers/gpu/drm/virtio/virtgpu_drv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v8 15/18] drm/virtio: remove virtio_gpu_alloc_object

2019-08-23 Thread Gerd Hoffmann
Thin wrapper around virtio_gpu_object_create(), but calling that directly works equally well. Signed-off-by: Gerd Hoffmann Acked-by: Daniel Vetter --- drivers/gpu/drm/virtio/virtgpu_drv.h | 4 drivers/gpu/drm/virtio/virtgpu_gem.c | 23 ---

[PATCH v8 08/18] drm/virtio: rework virtio_gpu_execbuffer_ioctl fencing

2019-08-23 Thread Gerd Hoffmann
Rework fencing workflow, starting with virtio_gpu_execbuffer_ioctl. Stop using ttm helpers, use the virtio_gpu_array_* helpers (which work on the reservation objects directly) instead. Also store the object array in struct virtio_gpu_vbuffer, so we explicitly keep a reference of all buffers used

[PATCH v8 10/18] drm/virtio: rework virtio_gpu_transfer_from_host_ioctl fencing

2019-08-23 Thread Gerd Hoffmann
Switch to the virtio_gpu_array_* helper workflow. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 3 +- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 40 ++ drivers/gpu/drm/virtio/virtgpu_vq.c| 8 -- 3 files changed, 23 insertions(+), 28

[PATCH v8 12/18] drm/virtio: rework virtio_gpu_cmd_context_{attach,detach}_resource

2019-08-23 Thread Gerd Hoffmann
Switch to the virtio_gpu_array_* helper workflow. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 4 ++-- drivers/gpu/drm/virtio/virtgpu_gem.c | 24 +++- drivers/gpu/drm/virtio/virtgpu_vq.c | 12 3 files changed, 21 insertions(+), 19

[PATCH v8 13/18] drm/virtio: drop virtio_gpu_object_list_validate/virtio_gpu_unref_list

2019-08-23 Thread Gerd Hoffmann
No users left. Signed-off-by: Gerd Hoffmann Acked-by: Daniel Vetter --- drivers/gpu/drm/virtio/virtgpu_drv.h | 3 -- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 39 -- 2 files changed, 42 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h

[PATCH v8 05/18] drm/virtio: drop no_wait argument from virtio_gpu_object_reserve

2019-08-23 Thread Gerd Hoffmann
All callers pass no_wait = false. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- drivers/gpu/drm/virtio/virtgpu_drv.h | 5 ++--- drivers/gpu/drm/virtio/virtgpu_gem.c | 4 ++-- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-)

[PATCH] powerpc/8xx: Fix permanently mapped IMMR region.

2019-08-23 Thread Christophe Leroy
When not using large TLBs, the IMMR region is still mapped as a whole block in the FIXMAP area. Do not remove pages mapped in the FIXMAP region when initialising paging. Properly report that the IMMR region is block-mapped even when not using large TLBs. Signed-off-by: Christophe Leroy ---

[PATCH] powerpc/32: Don't populate page tables for block mapped pages except on the 8xx.

2019-08-23 Thread Christophe Leroy
Commit d2f15e0979ee ("powerpc/32: always populate page tables for Abatron BDI.") wrongly sets page tables for any PPC32 for using BDI, and does't update them after init (remove RX on init section, set text and rodata read-only) Only the 8xx requires page tables to be populated for using the BDI.

[PATCH 2/3] f2fs: clean up __bio_alloc()'s parameter

2019-08-23 Thread Chao Yu
Just cleanup, no logic change. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 9fcfbd4f0b8c..769c548e955a 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -259,26

[PATCH 3/3] f2fs: enhance f2fs_is_checkpoint_ready()'s readability

2019-08-23 Thread Chao Yu
This patch changes sematics of f2fs_is_checkpoint_ready()'s return value as: return true when checkpoint is ready, other return false, it can improve readability of below conditions. f2fs_submit_page_write() ... if (is_sbi_flag_set(sbi, SBI_IS_SHUTDOWN) ||

[PATCH 1/3] f2fs: fix wrong error injection path in inc_valid_block_count()

2019-08-23 Thread Chao Yu
If FAULT_BLOCK type error injection is on, in inc_valid_block_count() we may decrease sbi->alloc_valid_block_count percpu stat count incorrectly, fix it. Fixes: 36b877af7992 ("f2fs: Keep alloc_valid_block_count in sync") Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 3 ++- 1 file changed, 2

Re: [PATCH] gpio: Move gpiochip_lock/unlock_as_irq to gpio/driver.h

2019-08-23 Thread Linus Walleij
On Thu, Aug 22, 2019 at 5:19 AM YueHaibing wrote: > If CONFIG_GPIOLIB is not, gpiochip_lock/unlock_as_irq will > conflict as this: > > In file included from sound/soc/codecs/wm5100.c:18:0: > ./include/linux/gpio.h:224:19: error: static declaration of > gpiochip_lock_as_irq follows non-static

RE: [PATCH v2 01/11] dt-bindings: mmc: arasan: Update documentation for SD Card Clock

2019-08-23 Thread Manish Narani
Hi Heiko/Uffe, > -Original Message- > From: Heiko Stuebner > Sent: Thursday, August 22, 2019 11:53 PM > To: Ulf Hansson ; linux-...@vger.kernel.org > Cc: Manish Narani ; Rob Herring ; > mark.rutl...@arm.com; Michal Simek ; > adrian.hun...@intel.com;

Re: [PATCH] gpio: ftgpio: Fix an error handling path in 'ftgpio_gpio_probe()'

2019-08-23 Thread Linus Walleij
On Thu, Aug 22, 2019 at 10:45 PM Christophe JAILLET wrote: > If 'devm_kcalloc()' fails, we should go through the error handling path, > should some clean-up be needed. > > Fixes: 42d9fc7176eb ("gpio: ftgpio: Pass irqchip when adding gpiochip") > Signed-off-by: Christophe JAILLET Patch applied,

Re: Aw: Re: BUG: devm_regulator_get returns EPROBE_DEFER (5.3-rc5..next-20190822) for bpi-r2/mt7623/mt7530

2019-08-23 Thread Mark Brown
On Thu, Aug 22, 2019 at 10:28:44PM +0200, Frank Wunderlich wrote: Please don't top post, reply in line with needed context. This allows readers to readily follow the flow of conversation and understand what you are talking about and also helps ensure that everything in the discussion is being

<    1   2   3   4   5   6   7   8   9   >