[RFC PATCH 14/22] rpmsg: Add VHOST based remote processor messaging bus

2020-07-02 Thread Kishon Vijay Abraham I
Add a VHOST-based inter-processor communication bus, which enables kernel drivers to communicate with VIRTIO-based messaging bus, running on remote processors, over shared memory using a simple messaging protocol. Signed-off-by: Kishon Vijay Abraham I --- drivers/rpmsg/Kconfig | 10 +

[RFC PATCH 17/22] rpmsg.txt: Add Documentation to configure rpmsg using configfs

2020-07-02 Thread Kishon Vijay Abraham I
Add Documentation on how rpmsg device can be created using configfs required for vhost_rpmsg_bus.c Signed-off-by: Kishon Vijay Abraham I --- Documentation/rpmsg.txt | 56 + 1 file changed, 56 insertions(+) diff --git a/Documentation/rpmsg.txt b/Documentat

[RFC PATCH 21/22] NTB: Add a new NTB client driver to implement VHOST functionality

2020-07-02 Thread Kishon Vijay Abraham I
Add a new NTB client driver to implement VHOST functionality. When two hosts are connected using NTB, one of the hosts should run NTB client driver that implements VIRTIO functionality and the other host should run NTB client implements VHOST functionality. This interfaces with VHOST layer so that

[RFC PATCH 13/22] rpmsg: virtio_rpmsg_bus: Use virtio_alloc_buffer() and virtio_free_buffer()

2020-07-02 Thread Kishon Vijay Abraham I
Use virtio_alloc_buffer() and virtio_free_buffer() to allocate and free memory buffer respectively. Only if buffer allocation using virtio_alloc_buffer() try using dma_alloc_coherent(). This is required for devices like NTB to use rpmsg for communicating with other host. Signed-off-by: Kishon Vija

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

2020-07-02 Thread Pali Rohár
On Wednesday 01 July 2020 16:34:42 Bjorn Helgaas wrote: > On Wed, Jul 01, 2020 at 10:20:44AM +0200, Pali Rohár wrote: > > When there is no PCIe card connected and advk_pcie_rd_conf() or > > advk_pcie_wr_conf() is called for PCI bus which doesn't belong to emulated > > root bridge, the aardvark driv

[RFC PATCH 12/22] virtio: Add ops to allocate and free buffer

2020-07-02 Thread Kishon Vijay Abraham I
Add ops to allocate and free buffer in struct virtio_config_ops. Certain vhost devices can have restriction on the range of memory it can access on the virtio. The virtio drivers attached to such vhost devices reserves memory that can be accessed by vhost. This function allocates buffer for such re

Re: [v2] Documentation: Coccinelle: fix typos and command example

2020-07-02 Thread Markus Elfring
>> elfring@Sonne:~/Projekte/Linux/next-patched> make J=1 C=1 >> CHECK='scripts/coccicheck' MODE=context >> COCCI=~/Projekte/Linux/next-patched/scripts/coccinelle/null/show_pointer_usage_before_null_check-20200701.cocci >> drivers/usb/mtu3/mtu3_gadget.o > > This is not what is intended. What i

[RFC PATCH 18/22] virtio_pci: Add VIRTIO driver for VHOST on Configurable PCIe Endpoint device

2020-07-02 Thread Kishon Vijay Abraham I
Add VIRTIO driver to support Linux VHOST on Configurable PCIe Endpoint device in the backend. Signed-off-by: Kishon Vijay Abraham I --- drivers/virtio/Kconfig | 9 + drivers/virtio/Makefile | 1 + drivers/virtio/virtio_pci_epf.c | 670 includ

[RFC PATCH 19/22] PCI: endpoint: Add EP function driver to provide VHOST interface

2020-07-02 Thread Kishon Vijay Abraham I
Add a new endpoint function driver to register VHOST device and provide interface for the VHOST driver to access virtqueues created by the remote host (using VIRTIO). Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/Kconfig| 11 + drivers/pci/endpoint/functions/

[RFC PATCH 20/22] NTB: Add a new NTB client driver to implement VIRTIO functionality

2020-07-02 Thread Kishon Vijay Abraham I
Add a new NTB client driver to implement VIRTIO functionality. When two hosts are connected using NTB, one of the hosts should run NTB client driver that implements VIRTIO functionality and the other host should run NTB client implements VHOST functionality. This interfaces with VIRTIO layer so tha

[RFC PATCH 22/22] NTB: Describe ntb_virtio and ntb_vhost client in the documentation

2020-07-02 Thread Kishon Vijay Abraham I
Add a blurb in Documentation/ntb.txt to describe the ntb_virtio and ntb_vhost client Signed-off-by: Kishon Vijay Abraham I --- Documentation/driver-api/ntb.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/driver-api/ntb.rst b/Documentation/driver-api/ntb.rst ind

[RFC PATCH 16/22] samples/rpmsg: Wait for address to be bound to rpdev for sending message

2020-07-02 Thread Kishon Vijay Abraham I
rpmsg_client_sample can use either virtio_rpmsg_bus or vhost_rpmsg_bus to send messages. In the case of vhost_rpmsg_bus, the destination address of rpdev will be assigned only after receiving address service notification from the remote virtio_rpmsg_bus. Wait for address to be bound to rpdev (rpmsg

[RFC PATCH 15/22] samples/rpmsg: Setup delayed work to send message

2020-07-02 Thread Kishon Vijay Abraham I
Let us not send any message to the remote processor before announce_create() callback has been invoked. Since announce_create() is only invoked after ->probe() is completed, setup delayed work to start sending message to the remote processor. Signed-off-by: Kishon Vijay Abraham I --- samples/rpm

[RFC PATCH 08/22] rpmsg: virtio_rpmsg_bus: Disable receive virtqueue callback when reading messages

2020-07-02 Thread Kishon Vijay Abraham I
Since rpmsg_recv_done() reads messages in a while loop, disable callbacks until the while loop exits. This helps to get rid of the annoying "uhm, incoming signal, but no used buffer ?" message. Signed-off-by: Kishon Vijay Abraham I --- drivers/rpmsg/virtio_rpmsg_bus.c | 14 ++ 1 file

Re: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-07-02 Thread lijiang
Hi, John Ogness About the VMCOREINFO part, I made some tests based on the kernel patch v3, the makedumpfile and crash-utility can work as expected with your patch(userspace patch), but, unfortunately, the vmcore-dmesg(kexec-tools) can't correctly read the printk ring buffer information, and get th

[RFC PATCH 01/22] vhost: Make _feature_ bits a property of vhost device

2020-07-02 Thread Kishon Vijay Abraham I
No functional change intended. The feature bits defined in virtio specification is associated with virtio device and not virtqueue. In order to correctly reflect this in the vhost backend, remove "acked_features" from struct vhost_virtqueue and add "features" in struct vhost_dev. This will also mak

Re: [PATCH AUTOSEL 5.7 11/53] btrfs: use kfree() in btrfs_ioctl_get_subvol_info()

2020-07-02 Thread David Sterba
On Wed, Jul 01, 2020 at 09:21:20PM -0400, Sasha Levin wrote: > From: Waiman Long > > [ Upstream commit b091f7fede97cc64f7aaad3eeb37965aebee3082 ] > > In btrfs_ioctl_get_subvol_info(), there is a classic case where kzalloc() > was incorrectly paired with kzfree(). According to David Sterba, there

Re: [PATCH v2 4/5] ARM: dts: imx6ull: add rng

2020-07-02 Thread Marco Felsch
On 20-06-21 17:56, Horia Geantă wrote: > Add node for the RNGB block. > > Signed-off-by: Horia Geantă > --- Reviewed-by: Marco Felsch

Re: [PATCH v3] drm/hisilicon: Use drmm_kzalloc() instead of devm_kzalloc()

2020-07-02 Thread Thomas Zimmermann
Thanks! Applied to drm-misc-next Best regards Thomas Am 02.07.20 um 09:49 schrieb Tian Tao: > using the new API drmm_kzalloc() instead of devm_kzalloc() > > v3: > still fixed include statements sorted alphabetically. > > v2: > keep the DRM include statements sorted alphabetically. > > Signed-o

Re: [PATCH v2] gpu/drm: Remove debug info about CPU address

2020-07-02 Thread Christian König
Am 02.07.20 um 04:27 schrieb Tiezhu Yang: When I update the latest kernel, I see the following "ptrval" boot messages. [1.872600] radeon :01:05.0: fence driver on ring 0 use gpu addr 0x48000c00 and cpu addr 0x(ptrval) [1.879095] radeon :01:05.0: fence dri

Re: [PATCH 2/8] powerpc/pseries: use smp_rmb() in H_CONFER spin yield

2020-07-02 Thread Peter Zijlstra
On Thu, Jul 02, 2020 at 05:48:33PM +1000, Nicholas Piggin wrote: > There is no need for rmb(), this allows faster lwsync here. Since you determined this; I'm thinking you actually understand the ordering here. How about recording this understanding in a comment? Also, should the lock->slock load

Re: [PATCH v2 5/5] hwrng: imx-rngc: enable driver for i.MX6

2020-07-02 Thread Marco Felsch
On 20-06-21 17:56, Horia Geantă wrote: > i.MX6 SL, SLL, ULL, ULZ SoCs have an RNGB block. > > Since imx-rngc driver supports also rngb, > let's enable it for these SoCs too. > > Signed-off-by: Horia Geantă > --- Reviewed-by: Marco Felsch

[PATCH rdma-next 0/3] Global per-type support for QP counters

2020-07-02 Thread Leon Romanovsky
From: Leon Romanovsky Hi, This series from Mark extends netlink interface to allow automatic binding of QP counters based on their type, in very similar manner to already existing per-PID ability. Thanks Mark Zhang (3): RDMA/counter: Add PID category support in auto mode RDMA/counter: Only

Re: [PATCH v2 2/4] mfd: mt6360: implement i2c R/W with CRC

2020-07-02 Thread Gene Chen
Lee Jones 於 2020年7月1日 週三 下午3:16寫道: > > On Fri, 19 Jun 2020, Gene Chen wrote: > > > From: Gene Chen > > > > imlement i2c R/W with CRC when access sub-device PMIC and LDO part > > Please use proper grammar, including capital letters at the start of > the sentence and for abbreviations such as "I2C"

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

2020-07-02 Thread Pali Rohár
When there is no PCIe card connected and advk_pcie_rd_conf() or advk_pcie_wr_conf() is called for PCI bus which doesn't belong to emulated root bridge, the aardvark driver throws the following error message: advk-pcie d007.pcie: config read/write timed out Obviously accessing PCIe registers

[PATCH 2/2] mm/slub: Get rid of count_partial()

2020-07-02 Thread Xunlei Pang
Now the partial counters are ready, let's use them directly and get rid of count_partial(). Co-developed-by: Wen Yang Signed-off-by: Xunlei Pang --- mm/slub.c | 57 - 1 file changed, 24 insertions(+), 33 deletions(-) diff --git a/mm/slub.

[PATCH 1/2] mm/slub: Introduce two counters for the partial objects

2020-07-02 Thread Xunlei Pang
The node list_lock in count_partial() spend long time iterating in case of large amount of partial page lists, which can cause thunder herd effect to the list_lock contention, e.g. it cause business response-time jitters when accessing "/proc/slabinfo" in our production environments. This patch in

Re: [PATCH v2] gpu/drm: Remove debug info about CPU address

2020-07-02 Thread Tiezhu Yang
On 07/02/2020 04:27 PM, Christian König wrote: Am 02.07.20 um 04:27 schrieb Tiezhu Yang: When I update the latest kernel, I see the following "ptrval" boot messages. [1.872600] radeon :01:05.0: fence driver on ring 0 use gpu addr 0x48000c00 and cpu addr 0x(ptrval__

Re: [PATCH v3 2/3] printk: add lockless ringbuffer

2020-07-02 Thread Petr Mladek
On Thu 2020-06-18 16:55:18, John Ogness wrote: > Introduce a multi-reader multi-writer lockless ringbuffer for storing > the kernel log messages. Readers and writers may use their API from > any context (including scheduler and NMI). This ringbuffer will make > it possible to decouple printk() call

Re: [PATCH RESEND v1] drm/meson: viu: fix setting the OSD burst length in VIU_OSD1_FIFO_CTRL_STAT

2020-07-02 Thread Neil Armstrong
On 20/06/2020 17:57, Martin Blumenstingl wrote: > The burst length is configured in VIU_OSD1_FIFO_CTRL_STAT[31] and > VIU_OSD1_FIFO_CTRL_STAT[11:10]. The public S905D3 datasheet describes > this as: > - 0x0 = up to 24 per burst > - 0x1 = up to 32 per burst > - 0x2 = up to 48 per burst > - 0x3 = up

Re: [PATCH v2] gpu/drm: Remove debug info about CPU address

2020-07-02 Thread Christian König
Am 02.07.20 um 10:35 schrieb Tiezhu Yang: On 07/02/2020 04:27 PM, Christian König wrote: Am 02.07.20 um 04:27 schrieb Tiezhu Yang: When I update the latest kernel, I see the following "ptrval" boot messages. [    1.872600] radeon :01:05.0: fence driver on ring 0 use gpu addr 0x00

Re: [PATCH v3 5/7] iommu/vt-d: Fix devTLB flush for vSVA

2020-07-02 Thread Auger Eric
Hi Jacob, Yi, On 7/1/20 5:33 PM, Jacob Pan wrote: > From: Liu Yi L > > For guest SVA usage, in order to optimize for less VMEXIT, guest request > of IOTLB flush also includes device TLB. > > On the host side, IOMMU driver performs IOTLB and implicit devTLB > invalidation. When PASID-selective gr

Re: [PATCH v2 5/7] driver core: Add device location to "struct device" and expose it in sysfs

2020-07-02 Thread Oliver O'Halloran
On Thu, 2020-07-02 at 09:32 +0200, Greg Kroah-Hartman wrote: > On Thu, Jul 02, 2020 at 03:23:23PM +1000, Oliver O'Halloran wrote: > > Yep, that's a problem. If we want to provide a useful mechanism to > > userspace then the default behaviour of the kernel can't undermine > > that mechanism. If that

[PATCH] staging: qlge: qlge_ethtool.c: Proper indentation.

2020-07-02 Thread Suraj Upadhyay
Remove extra indentations from if-statement. Signed-off-by: Suraj Upadhyay --- drivers/staging/qlge/qlge_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_ethtool.c b/drivers/staging/qlge/qlge_ethtool.c index 949abd53a7a9..16fcdefa9687 1

Re: [PATCH v5 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline

2020-07-02 Thread Michal Hocko
On Thu 02-07-20 12:14:08, Srikar Dronamraju wrote: > * Michal Hocko [2020-07-01 14:21:10]: > > > > >> > > > >> 2. Also existence of dummy node also leads to inconsistent > > > >> information. The > > > >> number of online nodes is inconsistent with the information in the > > > >>

Re: [PATCH 2/2] block: add max_active_zones to blk-sysfs

2020-07-02 Thread Niklas Cassel
On Wed, Jul 01, 2020 at 01:16:52PM +0200, Javier González wrote: > On 16.06.2020 12:25, Niklas Cassel wrote: > > Add a new max_active zones definition in the sysfs documentation. > > This definition will be common for all devices utilizing the zoned block > > device support in the kernel. > > > >

Re: [PATCH RESEND net-next v3 0/3] net: enetc: remove bootloader dependency

2020-07-02 Thread Russell King - ARM Linux admin
On Thu, Jul 02, 2020 at 01:04:02AM +0300, Vladimir Oltean wrote: > On Thu, 2 Jul 2020 at 00:53, Russell King - ARM Linux admin > wrote: > > > > fixing up almost every driver the best I can with the exception of two - > > felix DSA and Mediatek. > > > > I'm not going to wait for Felix or Mediatek.

Re: [PATCH v2 0/1] Revert "serial: 8250: Fix max baud limit in generic 8250 port"

2020-07-02 Thread Andy Shevchenko
On Thu, Jul 02, 2020 at 06:11:52AM +0200, Lukas Wunner wrote: > On Thu, Jul 02, 2020 at 01:37:13AM +0300, Serge Semin wrote: > > 1) Add a new capability like UART_CAP_NO16DIV and take it into account > >in the serial8250_get_baud_rate() method. > > > > I don't have a documentation for the Med

Re: [PATCH v3 6/7] iommu/vt-d: Warn on out-of-range invalidation address

2020-07-02 Thread Auger Eric
Hi, On 7/1/20 5:33 PM, Jacob Pan wrote: > For guest requested IOTLB invalidation, address and mask are provided as > part of the invalidation data. VT-d HW silently ignores any address bits > below the mask. SW shall also allow such case but give warning if > address does not align with the mask.

RE: [net-next PATCH v2 3/3] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2020-07-02 Thread Ioana Ciornei
> Subject: [net-next PATCH v2 3/3] net: dpaa2-mac: Add ACPI support for DPAA2 > MAC driver > > Modify dpaa2_mac_connect() to support ACPI along with DT. > Modify dpaa2_mac_get_node() to get the dpmac fwnode from either DT or > ACPI. > Replace of_get_phy_mode with fwnode_get_phy_mode to get phy-mod

Re: [PATCH v2 4/6] vt/vt: Add SRG mouse reporting protocol

2020-07-02 Thread Jiri Slaby
On 01. 07. 20, 17:13, Tammo Block wrote: > The SRG protocol indicates a button release by appending a "m" to the > report. In this case the button number is not 3 (RELEASEEVENT) but > the number of the button that was released. As release event are only > reported for the first three buttons (LOWBU

Re: [PATCH v3 7/7] iommu/vt-d: Disable multiple GPASID-dev bind

2020-07-02 Thread Auger Eric
Hi Jacob, On 7/1/20 5:33 PM, Jacob Pan wrote: > For the unlikely use case where multiple aux domains from the same pdev > are attached to a single guest and then bound to a single process > (thus same PASID) within that guest, we cannot easily support this case > by refcounting the number of users

Re: [PATCH v4 15/23] ASoC: soc-core: Identify 'no_pcm' DAI links for DPCM

2020-07-02 Thread Kuninori Morimoto
Hi Sameer > > I wonder component->driver->non_legacy_dai_naming can't work for you ? > > I see currently in simple-card driver that, BE<->BE link would be > treated as CODEC<->CODEC link if 'non_legacy_dai_naming' flag is set > at both ends of BE. Do we need to set this flag for all BE? > Howev

Re: [PATCH v2 5/7] driver core: Add device location to "struct device" and expose it in sysfs

2020-07-02 Thread Greg Kroah-Hartman
On Thu, Jul 02, 2020 at 06:40:09PM +1000, Oliver O'Halloran wrote: > On Thu, 2020-07-02 at 09:32 +0200, Greg Kroah-Hartman wrote: > > On Thu, Jul 02, 2020 at 03:23:23PM +1000, Oliver O'Halloran wrote: > > > Yep, that's a problem. If we want to provide a useful mechanism to > > > userspace then the

Re: [PATCH v2 5/7] driver core: Add device location to "struct device" and expose it in sysfs

2020-07-02 Thread Greg Kroah-Hartman
On Thu, Jul 02, 2020 at 10:52:12AM +0200, Greg Kroah-Hartman wrote: > On Thu, Jul 02, 2020 at 06:40:09PM +1000, Oliver O'Halloran wrote: > > On Thu, 2020-07-02 at 09:32 +0200, Greg Kroah-Hartman wrote: > > > On Thu, Jul 02, 2020 at 03:23:23PM +1000, Oliver O'Halloran wrote: > > > > Yep, that's a pr

[PATCH] platform/x86: thinkpad_acpi: not loading brightness_init when _BCL invalid

2020-07-02 Thread Aaron Ma
When _BCL invalid, disable thinkpad_acpi backlight brightness control. brightness_enable is already checked at the beginning, Always print notice when enabled brightness control. Signed-off-by: Aaron Ma --- drivers/platform/x86/thinkpad_acpi.c | 7 +-- 1 file changed, 5 insertions(+), 2 del

Re: [PATCH 2/4] drm/msm: dsi: Use OPP API to set clk/perf state

2020-07-02 Thread Rajendra Nayak
On 7/1/2020 9:57 PM, Matthias Kaehlcke wrote: On Tue, Jun 30, 2020 at 05:26:14PM +0530, Rajendra Nayak wrote: On SDM845 DSI needs to express a perforamnce state nit: performance requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework

Re: [PATCH 3/3] arm64: dts: sc7180: Add OPP tables and power-domains for venus

2020-07-02 Thread Rajendra Nayak
On 7/1/2020 10:24 PM, Matthias Kaehlcke wrote: On Wed, Jul 01, 2020 at 05:10:38PM +0530, Rajendra Nayak wrote: Add the OPP tables in order to be able to vote on the performance state of a power-domain Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 35 +

[PATCH v3] drm/hisilicon: Code refactoring for hibmc_drv_vdac

2020-07-02 Thread Tian Tao
code refactoring for hibmc_drv_vdac.c, no actual function changes. v2: remove the debug message. v3: embedding connector and encoder in struct hibmc_drm_private. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 + drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.

[PATCH] vmlinux.lds.h: Coalesce transient LLVM dead code elimination sections

2020-07-02 Thread Danny Lin
A recent LLVM 11 commit [1] made LLD stop implicitly coalescing some temporary LLVM sections, namely .{data,bss}..compoundliteral.XXX: [30] .data..compoundli PROGBITS 9ac9a000 19e9a000 cea0 WA 0 0 32 [31] .rela.data..compo RE

Re: [PATCH 0/5] drivers/char: Constify static variables

2020-07-02 Thread Arnd Bergmann
On Wed, Jul 1, 2020 at 11:48 PM Rikard Falkeborn wrote: > > Constify some static variables (mostly structs) that are not modified. > > Rikard Falkeborn (5): > hwrng: bcm2835 - Constify bcm2835_rng_devtype[] > hwrng: nomadik - Constify nmk_rng_ids[] > hwrng: virtio - Constify id_table[] > i

[PATCH] power: supply: rt5033_battery: Fix error code in rt5033_battery_probe()

2020-07-02 Thread Peng Fan
In the function rt5033_battery_probe(), it should return -ENOMEM instead of -EINVAL when call function devm_kzalloc() failed. Signed-off-by: Peng Fan --- drivers/power/supply/rt5033_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/rt5033_battery.

Re: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-07-02 Thread John Ogness
On 2020-07-02, lijiang wrote: > About the VMCOREINFO part, I made some tests based on the kernel patch > v3, the makedumpfile and crash-utility can work as expected with your > patch(userspace patch), but, unfortunately, the vmcore-dmesg(kexec-tools) > can't correctly read the printk ring buffer i

Re: [PATCH 1/4] interconnect: qcom: Support bcm-voter-specific TCS wait behavior

2020-07-02 Thread Georgi Djakov
Hi Mike, On 6/23/20 07:08, Mike Tipton wrote: > Currently, all bcm-voters set tcs_cmd::wait=true for the last VCD > command in each TCS (AMC, WAKE, and SLEEP). However, some bcm-voters > don't need the completion and instead need to optimize for latency. For > instance, disabling wait-for-completi

[PATCH] ARM: dts: rockchip: Add usb host0 ohci node for rk3288

2020-07-02 Thread Jagan Teki
rk3288 and rk3288w have a usb host0 ohci controller. Although rk3288 ohci doesn't actually work on hardware, but rk3288w ohci can work well. So add usb host0 ohci node in rk3288 dtsi and the quirk in ohci platform driver will disable ohci on rk3288. The bootloader must update the compatible in o

[PATCH] usb: host: ohci-platform: Disable ohci for rk3288

2020-07-02 Thread Jagan Teki
rk3288 has usb host0 ohci controller but doesn't actually work on real hardware but it works with new revision chip rk3288w. So, disable ohci for rk3288. For rk3288w chips the compatible update code is handled by bootloader. Cc: William Wu Signed-off-by: Jagan Teki --- Note: - U-Boot patch fo

[PATCH net-next v2 2/4] net: macb: use hweight32() to count set bits in queue_mask

2020-07-02 Thread Claudiu Beznea
Use hweight32() to count set bits in queue_mask. Signed-off-by: Claudiu Beznea --- drivers/net/ethernet/cadence/macb_main.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 1bc2810

[PATCH net-next v2 1/4] net: macb: do not set again bit 0 of queue_mask

2020-07-02 Thread Claudiu Beznea
Bit 0 of queue_mask is set at the beginning of macb_probe_queues() function. Do not set it again after reading DGFG6 but instead use "|=" operator. Signed-off-by: Claudiu Beznea --- drivers/net/ethernet/cadence/macb_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dr

[PATCH net-next v2 0/4] net: macb: few code cleanups

2020-07-02 Thread Claudiu Beznea
Hi, Patches in this series cleanup a bit macb code. Thank you, Claudiu Beznea Changes in v2: - in patch 2/4 use hweight32() instead of hweight_long() Claudiu Beznea (4): net: macb: do not set again bit 0 of queue_mask net: macb: use hweight32() to count set bits in queue_mask net: macb:

[PATCH net-next v2 4/4] net: macb: remove is_udp variable

2020-07-02 Thread Claudiu Beznea
Remove is_udp variable that is used in only one place and use ip_hdr(skb)->protocol == IPPROTO_UDP check instead. Signed-off-by: Claudiu Beznea --- drivers/net/ethernet/cadence/macb_main.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb

[PATCH net-next v2 3/4] net: macb: do not initialize queue variable

2020-07-02 Thread Claudiu Beznea
Do not initialize queue variable. It is already initialized in for loops. Signed-off-by: Claudiu Beznea --- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_m

RE: [PATCH 2/2] USB: phy: fsl-usb: remove character device usage

2020-07-02 Thread Peter Chen
> > No idea why this driver is using a char device node, statically allocated, > with no > dynamic allocation or hook up with devtmpfs, along with a reserverd major > number, > for "special" operations, not all of which ever were implemented. > > So just rip it out, as no one must be using it

RE: [PATCH 1/2] USB: phy: fsl-usb: remove sysfs abuse

2020-07-02 Thread Peter Chen
> > This file has a HUGE debugging sysfs file that spews out a lot of information > all at > once, which violates the one-value-per-file rule for sysfs. If this is > really needed, it > should go into debugfs, but given the age of this driver, I strongly doubt > anyone is > using it anymore.

Re: [PATCH v4 1/1] mfd: Add I2C based System Configuaration (SYSCON) access

2020-07-02 Thread Michael Walle
Am 2020-07-02 10:18, schrieb Lee Jones: On Thu, 02 Jul 2020, Michael Walle wrote: Am 2020-07-02 08:54, schrieb Lee Jones: > On Wed, 01 Jul 2020, Michael Walle wrote: > > > Am 2020-07-01 09:04, schrieb Lee Jones: > > > On Wed, 01 Jul 2020, Michael Walle wrote: > > > > > > > Hi Lee, > > > > > > >

Re: [PATCH net-next 3/4] mvpp2: add basic XDP support

2020-07-02 Thread Maciej Fijalkowski
On Thu, Jul 02, 2020 at 11:08:19AM +0300, ilias.apalodi...@linaro.org wrote: > On Tue, Jun 30, 2020 at 08:09:29PM +0200, Matteo Croce wrote: > > From: Matteo Croce > > > > Add XDP native support. > > By now only XDP_DROP, XDP_PASS and XDP_REDIRECT > > verdicts are supported. > > > > Co-developed

[PATCH 1/2] dt-bindings: regulator: add document bindings for sy8827n

2020-07-02 Thread Jisheng Zhang
Add device tree binding information for sy8827n regulator driver. Signed-off-by: Jisheng Zhang --- .../bindings/regulator/silergy,sy8827n.yaml | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/silergy,sy8827n.yaml diff

Re: [RFC 2/2] KVM: VMX: Enable bus lock VM exit

2020-07-02 Thread Xiaoyao Li
On 7/1/2020 10:49 PM, Vitaly Kuznetsov wrote: Xiaoyao Li writes: On 7/1/2020 8:44 PM, Vitaly Kuznetsov wrote: Xiaoyao Li writes: On 7/1/2020 5:04 PM, Vitaly Kuznetsov wrote: Chenyi Qiang writes: [...] static const int kvm_vmx_max_exit_handlers = @@ -6830,6 +6838,13 @@ static fastpa

[PATCH 0/2] regulator: add support for SY8827N regulator

2020-07-02 Thread Jisheng Zhang
The SY8827N from Silergy Corp is a single output DC/DC converter. The voltage can be controlled via I2C. Jisheng Zhang (2): dt-bindings: regulator: add document bindings for sy8827n regulator: add support for SY8827N regulator .../bindings/regulator/silergy,sy8827n.yaml | 45 + driver

[PATCH 2/2] regulator: add support for SY8827N regulator

2020-07-02 Thread Jisheng Zhang
The SY8827N from Silergy Corp is a single output DC/DC converter. The voltage can be controlled via I2C. Signed-off-by: Jisheng Zhang --- drivers/regulator/Kconfig | 7 ++ drivers/regulator/Makefile | 1 + drivers/regulator/sy8827n.c | 185 3 files cha

[PATCH] Input: elan_i2c - Add ic type 0x14, modify the iap method for all IC.

2020-07-02 Thread Jingle Wu
The 0x14 is 512 page size. Signed-off-by: Jingle Wu --- drivers/input/mouse/elan_i2c.h | 3 ++- drivers/input/mouse/elan_i2c_core.c | 16 drivers/input/mouse/elan_i2c_i2c.c | 24 drivers/input/mouse/elan_i2c_smbus.c | 2 +- 4 files changed, 27

arch/x86/kvm/../../../virt/kvm/kvm_main.c:4326:17: sparse: struct kvm_vcpu Documentation Kbuild Makefile crypto include sound usr kvm_get_running_vcpus( ... )

2020-07-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cd77006e01b3198c75fb7819b3d0ff89709539bb commit: 7495e22bb165e7030bae4d9c6e84addb5ea17b29 KVM: Move running VCPU from ARM to common code date: 5 months ago config: x86_64-randconfig-s031-20200701 (attached

Re: [PATCH v8 1/6] drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression

2020-07-02 Thread Simon Ser
On Thursday, July 2, 2020 9:47 AM, Neil Armstrong wrote: > Finally is also adds the Scatter Memory layout, meaning the header contains > IOMMU > references to the compressed frames content to optimize memory access > and layout. > > In this mode, only the header memory address is needed, thus t

Re: [PATCH] serial: sh-sci: Initialize spinlock for uart console

2020-07-02 Thread Geert Uytterhoeven
Hi Prabhakar, On Wed, Jul 1, 2020 at 7:28 PM Lad, Prabhakar wrote: > On Wed, Jul 1, 2020 at 6:17 PM Geert Uytterhoeven > wrote: > > On Wed, Jul 1, 2020 at 5:42 PM Lad Prabhakar > > wrote: > > > serial core expects the spinlock to be initialized by the controller > > > driver for serial console

Re: [PATCH] sched/fair: update_pick_idlest() Select group with lowest group_util when idle_cpus are equal

2020-07-02 Thread Dietmar Eggemann
On 17/06/2020 16:52, Peter Puhov wrote: > On Wed, 17 Jun 2020 at 06:50, Valentin Schneider > wrote: >> >> >> On 16/06/20 17:48, peter.pu...@linaro.org wrote: >>> From: Peter Puhov >>> We tested this patch with following benchmarks: >>> perf bench -f simple sched pipe -l 400 >>> perf bench

??>> Good Morning to You>>>><

2020-07-02 Thread Mr Owen Peter
Good Day, Hope you are doing great Today.I have a proposed business deal that will benefit both parties. This is legitimate,legal and your REPUTATION will not be compromised.Please Reply to me only if you are interested and consider your self capable for details. Sincerely, Peter OWEN

Re: [PATCH] platform/x86: thinkpad_acpi: not loading brightness_init when _BCL invalid

2020-07-02 Thread Andy Shevchenko
On Thu, Jul 2, 2020 at 11:55 AM Aaron Ma wrote: > > When _BCL invalid, disable thinkpad_acpi backlight brightness control. > > brightness_enable is already checked at the beginning, > Always print notice when enabled brightness control. Why? ... > + pr_notice("thinkpad_acpi native bright

[PATCH 1/1] arm64: kexec: no need to do irq_chip->irq_mask if it already masked

2020-07-02 Thread Jason Liu
No need to do the irq_chip->irq_mask() if it already masked. BTW, unconditionally do the irq_chip->irq_mask() will also bring issues when the irq_chip in the runtime PM suspend. Accessing registers of the irq_chip will bring in the exceptions. For example on the i.MX: root@imx8qmmek:~# echo c > /p

Re: [PATCH 04/18] alpha: Override READ_ONCE() with barriered implementation

2020-07-02 Thread Mark Rutland
On Tue, Jun 30, 2020 at 06:37:20PM +0100, Will Deacon wrote: > Rather then relying on the core code to use smp_read_barrier_depends() > as part of the READ_ONCE() definition, instead override __READ_ONCE() > in the Alpha code so that it is treated the same way as > smp_load_acquire(). > > Acked-by

Re: [PATCH v6 02/12] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-07-02 Thread Sergei Shtylyov
Hello! On 02.07.2020 0:21, Jim Quinlan wrote: From: Jim Quinlan A reset controller "rescal" is shared between the AHCI driver and the PCIe driver for the BrcmSTB 7216 chip. Use devm_reset_control_get_optional_shared control() to handle this sharing. Not "devm_reset_control_get_optional_

Re: [PATCH v4 4/7] iio: core: move debugfs data on the private iio dev info

2020-07-02 Thread Ardelean, Alexandru
On Wed, 2020-07-01 at 19:42 +0100, Jonathan Cameron wrote: > [External] > > On Tue, 30 Jun 2020 04:58:06 + > "Ardelean, Alexandru" wrote: > > > On Tue, 2020-06-30 at 07:57 +0300, Alexandru Ardelean wrote: > > > This change moves all iio_dev debugfs fields to the iio_dev_priv > > > object. >

Re: [net-next PATCH v2 3/3] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2020-07-02 Thread Andy Shevchenko
On Thu, Jul 2, 2020 at 11:48 AM Ioana Ciornei wrote: > > > Subject: [net-next PATCH v2 3/3] net: dpaa2-mac: Add ACPI support for DPAA2 > > MAC driver > > > > Modify dpaa2_mac_connect() to support ACPI along with DT. > > Modify dpaa2_mac_get_node() to get the dpmac fwnode from either DT or > > ACPI

[PATCH 3/4] arm64: dts: mt8173: add mediatek,infracfg to iommu

2020-07-02 Thread Miles Chen
Add mediatek,infracfg to iommu node. Signed-off-by: Miles Chen --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 70b1ffcab7f0..a6f14f68ef7e 100644 --- a/arch/

[PATCH 1/4] dt-bindings: mediatek: add mediatek,infracfg phandle

2020-07-02 Thread Miles Chen
Add a description for mediatek,infracfg. We can check if 4GB mode is enable by reading it instead of checking the unexported symbol "max_pfn". This is a step towards building mtk_iommu as a kernel module. Cc: Yong Wu Signed-off-by: Miles Chen --- Documentation/devicetree/bindings/iommu/mediate

[PATCH 2/4] arm64: dts: mt2712: add mediatek,infracfg to iommu

2020-07-02 Thread Miles Chen
Add mediatek,infracfg to iommu node. Signed-off-by: Miles Chen --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index db17d0a4ed57..0749b0f4834c 100644 --- a/ar

RE: [PATCH 00/22] add support for Clang LTO

2020-07-02 Thread David Laight
From: Paul E. McKenney > Sent: 01 July 2020 17:06 ... > > Would an asm statement that uses the same 'register' for input and > > output but doesn't actually do anything help? > > It won't generate any code, but the compiler ought to assume that > > it might change the value - so can't do optimisati

[PATCH 4/4] iommu/mediatek: check 4GB mode by reading infracfg

2020-07-02 Thread Miles Chen
In previous disscusion [1] and [2], we found that it is risky to use max_pfn or totalram_pages to tell if 4GB mode is enabled. Check 4GB mode by reading infracfg register, remove the usage of the unexported symbol max_pfn. [1] https://lkml.org/lkml/2020/6/3/733 [2] https://lkml.org/lkml/2020/6/4/

[PATCH v3] i2c: designware: platdrv: Set class based on dmi

2020-07-02 Thread Ricardo Ribalda
Current AMD's zen-based APUs use this core for some of its i2c-buses. With this patch we re-enable autodetection of hwmon-alike devices, so lm-sensors will be able to work automatically. It does not affect the boot-time of embedded devices, as the class is set based on the dmi information. Dmi i

[PATCH] kvm: use more precise cast and do not drop __user

2020-07-02 Thread Paolo Bonzini
Sparse complains on a call to get_compat_sigset, fix it. The "if" right above explains that sigmask_arg->sigset is basically a compat_sigset_t. Signed-off-by: Paolo Bonzini --- virt/kvm/kvm_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virt/kvm/kvm_main.c b/virt/k

Re: [PATCH RESEND net-next v3 0/3] net: enetc: remove bootloader dependency

2020-07-02 Thread Vladimir Oltean
On Thu, 2 Jul 2020 at 11:41, Russell King - ARM Linux admin wrote: > > On Thu, Jul 02, 2020 at 01:04:02AM +0300, Vladimir Oltean wrote: > > On Thu, 2 Jul 2020 at 00:53, Russell King - ARM Linux admin > > wrote: > > > > > > fixing up almost every driver the best I can with the exception of two - >

Re: [PATCH v3] PCI: Lock the pci_cfg_wait queue for the consistency of data

2020-07-02 Thread Xiang Zheng
On 2020/6/29 0:14, Bjorn Helgaas wrote: > On Sun, Jun 28, 2020 at 12:18:10PM +0800, Xiang Zheng wrote: >> On 2020/6/26 7:24, Bjorn Helgaas wrote: >>> On Wed, Jun 24, 2020 at 06:23:09PM -0500, Bjorn Helgaas wrote: On Tue, Dec 10, 2019 at 11:15:27AM +0800, Xiang Zheng wrote: > 7ea7e98fd8d

Re: [PATCH net-next 2/4] mvpp2: use page_pool allocator

2020-07-02 Thread Matteo Croce
On Thu, Jul 2, 2020 at 9:31 AM wrote: > > Hi Matteo, > > Thanks for working on this! > :) > On Tue, Jun 30, 2020 at 08:09:28PM +0200, Matteo Croce wrote: > > From: Matteo Croce > > -static void *mvpp2_frag_alloc(const struct mvpp2_bm_pool *pool) > > +/* Returns a struct page if page_pool is set

Re: [PATCH v1] uuid: Remove unused uuid_le_to_bin() definition

2020-07-02 Thread Andy Shevchenko
On Mon, Jun 22, 2020 at 10:53:55AM +0300, Andy Shevchenko wrote: > There is no more user, so remove it. Can we do this? > Signed-off-by: Andy Shevchenko > --- > include/linux/uuid.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/linux/uuid.h b/include/linux/uuid.h > index d4

Re: WARNING: suspicious RCU usage in ctrl_cmd_new_lookup

2020-07-02 Thread syzbot
syzbot has bisected this bug to: commit e42671084361302141a09284fde9bbc14fdd16bf Author: Manivannan Sadhasivam Date: Thu May 7 12:53:06 2020 + net: qrtr: Do not depend on ARCH_QCOM bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=131c54a710 start commit: 7ae77150 Mer

Re: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-07-02 Thread lijiang
在 2020年07月02日 17:02, John Ogness 写道: > On 2020-07-02, lijiang wrote: >> About the VMCOREINFO part, I made some tests based on the kernel patch >> v3, the makedumpfile and crash-utility can work as expected with your >> patch(userspace patch), but, unfortunately, the vmcore-dmesg(kexec-tools) >> ca

[PATCH net] net: dsa: microchip: set the correct number of ports

2020-07-02 Thread Codrin Ciubotariu
The number of ports is incorrectly set to the maximum available for a DSA switch. Even if the extra ports are not used, this causes some functions to be called later, like port_disable() and port_stp_state_set(). If the driver doesn't check the port index, it will end up modifying unknown registers

Re: Packet gets stuck in NOLOCK pfifo_fast qdisc

2020-07-02 Thread Paolo Abeni
Hi all, On Thu, 2020-07-02 at 08:14 +0200, Jonas Bonn wrote: > Hi Cong, > > On 01/07/2020 21:58, Cong Wang wrote: > > On Wed, Jul 1, 2020 at 9:05 AM Cong Wang wrote: > > > On Tue, Jun 30, 2020 at 2:08 PM Josh Hunt wrote: > > > > Do either of you know if there's been any development on a fix for

Re: [PATCH 16/23] seq_file: switch over direct seq_read method calls to seq_read_iter

2020-07-02 Thread Miguel Ojeda
Hi Christoph, On Wed, Jul 1, 2020 at 10:25 PM Christoph Hellwig wrote: > > Switch over all instances used directly as methods using these sed > expressions: > > sed -i -e 's/\.read\(\s*=\s*\)seq_read/\.read_iter\1seq_read_iter/g' > > Signed-off-by: Christoph Hellwig Nit: the replacements don't

Re: [PATCH v3] i2c: designware: platdrv: Set class based on dmi

2020-07-02 Thread Andy Shevchenko
On Thu, Jul 02, 2020 at 11:38:32AM +0200, Ricardo Ribalda wrote: > Current AMD's zen-based APUs use this core for some of its i2c-buses. > > With this patch we re-enable autodetection of hwmon-alike devices, so > lm-sensors will be able to work automatically. > > It does not affect the boot-time

Re: [PATCH 04/18] alpha: Override READ_ONCE() with barriered implementation

2020-07-02 Thread Will Deacon
On Thu, Jul 02, 2020 at 10:32:39AM +0100, Mark Rutland wrote: > On Tue, Jun 30, 2020 at 06:37:20PM +0100, Will Deacon wrote: > > -#define read_barrier_depends() __asm__ __volatile__("mb": : :"memory") > > +#define __smp_load_acquire(p) > > \ > > +({

Re: [RFC PATCH 01/10] timer: Prevent base->clk from moving backward

2020-07-02 Thread Thomas Gleixner
Frederic Weisbecker writes: > When a timer is enqueued with a negative delta (ie: expiry is below > base->clk), it gets added to the wheel as expiring now (base->clk). > > Yet the value that gets stored in base->next_expiry, while calling > trigger_dyntick_cpu(), is the initial timer->expires valu

<    1   2   3   4   5   6   7   8   9   10   >