[PATCH v7 2/3] dt-bindings: arm-smmu: Add binding for Tegra194 SMMU

2020-06-28 Thread Krishna Reddy
Add binding for NVIDIA's Tegra194 SoC SMMU topology that is based on ARM MMU-500. Signed-off-by: Krishna Reddy --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation

[PATCH v7 1/3] iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage

2020-06-28 Thread Krishna Reddy
NVIDIA's Tegra194 SoC uses two ARM MMU-500s together to interleave IOVA accesses across them. Add NVIDIA implementation for dual ARM MMU-500s and add new compatible string for Tegra194 SoC SMMU topology. Signed-off-by: Krishna Reddy --- MAINTAINERS | 2 + drivers/iommu/Make

Re: [PATCH v2] PM / devfreq: rk3399_dmc: Fix kernel oops when rockchip,pmu is absent

2020-06-28 Thread Chanwoo Choi
Hi Marc, On 6/23/20 12:28 AM, Marc Zyngier wrote: > Booting a recent kernel on a rk3399-based system (nanopc-t4), > equipped with a recent u-boot and ATF results in the following: > > [5.607431] Unable to handle kernel NULL pointer dereference at virtual > address 01e4 > [5.6

RE: [PATCH/RFC v4 2/4] regulator: fixed: add regulator_ops members for suspend/resume

2020-06-28 Thread Yoshihiro Shimoda
Hi Mark, > From: Mark Brown, Sent: Friday, June 26, 2020 11:39 PM > > On Fri, Jun 26, 2020 at 06:32:20PM +0900, Yoshihiro Shimoda wrote: > > > +static int reg_is_enabled(struct regulator_dev *rdev) > > +{ > > + struct fixed_voltage_data *priv = rdev_get_drvdata(rdev); > > + > > + return !pri

Re: [PATCH v1] mm:free unused pages in kmalloc_order

2020-06-28 Thread Matthew Wilcox
On Sat, Jun 27, 2020 at 04:55:07AM +, Long Li wrote: > Environment using the slub allocator, 1G memory in my ARM32. > kmalloc(1024, GFP_HIGHUSER) can allocate memory normally, > kmalloc(64*1024, GFP_HIGHUSER) will cause a memory leak, because > alloc_pages returns highmem physical pages, but it

RE: [PATCH/RFC v4 3/4] mmc: core: Call mmc_poweroff_nofity() if regulators are disabled

2020-06-28 Thread Yoshihiro Shimoda
Hi Mark, > From: Mark Brown, Sent: Saturday, June 27, 2020 12:14 AM > > On Fri, Jun 26, 2020 at 06:32:21PM +0900, Yoshihiro Shimoda wrote: > > Note that this is possible to happen when the regulator-fixed driver > > turns the vmmc and vqmmc off by firmware like PSCI while the system > > is suspen

RE: [PATCH V3] firmware: imx: Move i.MX SCU soc driver into imx firmware folder

2020-06-28 Thread Aisheng Dong
> From: Anson Huang > Sent: Friday, June 26, 2020 5:14 AM > > The i.MX SCU soc driver depends on SCU firmware driver, so it has to use > platform driver model for proper defer probe operation, since it has no device > binding in DT file, a simple platform device is created together inside the > p

Re: [PATCH] rtlwifi/*/dm.c: Use const in swing_table declarations

2020-06-28 Thread joe
On 2020-06-28 19:09, Pkshih wrote: On Sun, 2020-06-28 at 03:17 -0700, Joe Perches wrote: Use 'rtlwifi:' as subject title prefix is enough, likes   rtlwifi: Use const in swing_table declarations We disagree. I like knowing what content is changed via patch subject lines as there are 3 rtlwifi

[PATCH 2/3 V2] ring-buffer: Incorporate absolute timestamp into add_timestamp logic

2020-06-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Instead of calling out the absolute test for each time to check if the ring buffer wants absolute time stamps for all its recording, incorporate it with the add_timestamp field and turn it into flags for faster processing between wanting a absolute tag and needing

[PATCH 1/3 V2] ring-buffer: Have nested events still record running time stamp

2020-06-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Up until now, if an event is interrupted while it is recorded by an interrupt, and that interrupt records events, the time of those events will all be the same. This is because events only record the delta of the time since the previous event (or beginning of a pag

[PATCH 0/3 V2] ring-buffer: Restructure ftrace ring buffer time keeping to allow accurate nested timing

2020-06-28 Thread Steven Rostedt
V1 of this patch set can be found here: https://lore.kernel.org/r/20200627010041.517736...@goodmis.org Changes since V1 patch set: - Fixed white space issues (kernel test robot) - Fixed change log algorithm to match the code (Masami Hiramatsu) - Removed next_write useless code. (Masami Hir

[PATCH 3/3 V2] ring-buffer: Add rb_time_t 64 bit operations for speeding up 32 bit

2020-06-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" After a discussion with the new time algorithm to have nested events still have proper time keeping but required using local64_t atomic operations. Mathieu was concerned about the performance this would have on 32 bit machines, as in most cases, atomic 64 bit opera

[Patch V2] arm64: dts: ls1028a: Add DSPI flash nodes for LS1028a-qds

2020-06-28 Thread Qiang Zhao
From: Xiaowei Bao Add the DSPI flash nodes into fsl-ls1028a-qds.dts Signed-off-by: Xiaowei Bao Signed-off-by: Zhao Qiang --- Changes for v2 - correct commit msg arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 85 +++ 1 file changed, 85 insertions(+) diff --git a/a

[PATCH v10 3/6] dt-bindings: Add vendor prefix for Acer Inc.

2020-06-28 Thread Dmitry Osipenko
Acer is a hardware and electronics corporation, specializing in advanced electronics technology. Acer's products include desktop PCs, laptop PCs, tablets, servers, displays, storage devices, virtual reality devices, smartphones and peripherals. Their web site is http://www.acer.com/. Acked-by: Rob

[PATCH] usb: fix kernel-doc warnings and formatting in

2020-06-28 Thread Randy Dunlap
From: Randy Dunlap Fix kernel-doc warnings in : ../include/linux/usb.h:713: warning: Function parameter or member 'use_generic_driver' not described in 'usb_device' ../include/linux/usb.h:1253: warning: Function parameter or member 'match' not described in 'usb_device_driver' ../include/linux/

[PATCH v10 6/6] ARM: tegra_defconfig: Enable options useful for Nexus 7 and Acer A500

2020-06-28 Thread Dmitry Osipenko
Enable several very useful options and drivers for hardware that is found on Nexus 7 and Acer A500 tablet devices. Please note that some drivers may require firmware files extracted from original Android image. Link: https://github.com/grate-driver/linux-firmware Link: https://github.com/grate-dri

[PATCH v10 0/6] Support NVIDIA Tegra-based Acer A500 and Nexus 7 devices

2020-06-28 Thread Dmitry Osipenko
Hello, This series introduces upstream kernel support for Acer Iconia Tab A500 and ASUS Google Nexus 7 tablet devices. Please review and apply, thanks in advance. Changelog: v10:- Rebased on a recent linux-next which got some device-tree changes: - Renamed sdhci@ DT nodes to mmc@

[PATCH v10 1/6] ARM: tegra: Add device-tree for Acer Iconia Tab A500

2020-06-28 Thread Dmitry Osipenko
Add device-tree for Acer Iconia Tab A500, which is NVIDIA Tegra20-based tablet device. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/Makefile|1 + .../boot/dts/tegra20-acer-a500-picasso.dts| 1438 + 2 files changed, 1439 insertions(+) create mo

[PATCH v10 5/6] dt-bindings: ARM: tegra: Add ASUS Google Nexus 7

2020-06-28 Thread Dmitry Osipenko
Add a binding for the Tegra30-based ASUS Google Nexus 7 tablet device. Acked-by: Rob Herring Signed-off-by: Dmitry Osipenko --- Documentation/devicetree/bindings/arm/tegra.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/tegra.yaml b/Documen

[PATCH v10 4/6] dt-bindings: ARM: tegra: Add Acer Iconia Tab A500

2020-06-28 Thread Dmitry Osipenko
Add a binding for the Tegra20-based Acer Iconia Tab A500 tablet device. Acked-by: Rob Herring Signed-off-by: Dmitry Osipenko --- Documentation/devicetree/bindings/arm/tegra.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/tegra.yaml b/Documentat

[PATCH v10 2/6] ARM: tegra: Add device-tree for ASUS Google Nexus 7

2020-06-28 Thread Dmitry Osipenko
There are few hardware variants of NVIDIA Tegra30-based Nexus 7 device: 1. WiFi-only (named Grouper) 2. GSM (named Tilapia) 3. Using Maxim PMIC (E1565 board ID) 4. Using Ti PMIC (PM269 board ID) This patch adds device-trees for known and tested variants. Link: https://wiki.postmarketos.org/wiki/

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-28 Thread Peng Fan
> Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > On Wed, Jun 24, 2020 at 02:53:54PM -0700, Stefano Stabellini wrote: > > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > > On Wed, Jun 24, 2020 at 10:59:47AM -0700, Stefano Stabelli

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-28 Thread Peng Fan
> Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > On Thu, Jun 25, 2020 at 10:31:27AM -0700, Stefano Stabellini wrote: > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > On Wed, Jun 24, 2020 at 02:53:54PM -0700, Stefano Stabellini wrote: > > > > On Wed, 24 Jun 2020, Michael S. Tsirk

[PATCH] usb: gadget: fix langid kernel-doc warning in usbstring.c

2020-06-28 Thread Randy Dunlap
From: Randy Dunlap Fix spelling of the 'langid' function argument in the kernel-doc notation to quieten a kernel-doc warning. ../drivers/usb/gadget/usbstring.c:77: warning: Function parameter or member 'langid' not described in 'usb_validate_langid' ../drivers/usb/gadget/usbstring.c:77: warning

RE: [PATCH] fpga: dfl: improve configuration of dfl pci devices

2020-06-28 Thread Wu, Hao
> -Original Message- > From: linux-fpga-ow...@vger.kernel.org > On Behalf Of Xu Yilun > Sent: Monday, June 29, 2020 10:19 AM > To: t...@redhat.com > Cc: m...@kernel.org; linux-f...@vger.kernel.org; linux- > ker...@vger.kernel.org; Wu, Hao ; > matthew.gerl...@linux.intel.com > Subject: Re:

Re: [PATCH] rtlwifi/*/dm.c: Use const in swing_table declarations

2020-06-28 Thread Pkshih
On Sun, 2020-06-28 at 19:51 -0700, j...@perches.com wrote: > On 2020-06-28 19:09, Pkshih wrote: > > On Sun, 2020-06-28 at 03:17 -0700, Joe Perches wrote: > >  > > Use 'rtlwifi:' as subject title prefix is enough, likes > >   rtlwifi: Use const in swing_table declarations > > We disagree. > > I li

[RFC PATCH 3/6] riscv: add definition of hpmcounter CSRs

2020-06-28 Thread Zong Li
The hpmcounter CSRs are used for perf to read the value of monitoring hardware events. Signed-off-by: Zong Li --- arch/riscv/include/asm/csr.h | 58 1 file changed, 58 insertions(+) diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h ind

[RFC PATCH 4/6] riscv: perf: Add raw event support

2020-06-28 Thread Zong Li
Add support for raw events and hardware cache events. Currently, we set the events by writing the mhpmeventN CSRs, it would raise an illegal instruction exception and trap into m-mode to emulate event selector CSRs access. It doesn't make sense because we shouldn't write the m-mode CSRs in s-mode,

[RFC PATCH 6/6] riscv: remove PMU menu of Kconfig

2020-06-28 Thread Zong Li
We only one instance of riscv_pmu now, and use DT file to describe the platform-specific information, so drop the dependency and menu of RISCV_BASE_PMU. Signed-off-by: Zong Li --- arch/riscv/Kconfig | 13 - arch/riscv/include/asm/perf_event.h | 2 -- arch/riscv/kern

[RFC PATCH 5/6] riscv: perf: introduce DT mechanism

2020-06-28 Thread Zong Li
Each architecture is responsible for mapping generic hardware and cache events to their own specific encoding of hardware events. For each architecture, it also have to distinguish the defination of hardware events of different platforms of each vendor. We use DT file to describe platform-specific

[RFC PATCH 1/6] dt-bindings: riscv: Add YAML documentation for PMU

2020-06-28 Thread Zong Li
Add device tree bindings for performance monitor unit. And it passes the dt_binding_check verification. Signed-off-by: Zong Li --- .../devicetree/bindings/riscv/pmu.yaml| 59 +++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/

[RFC PATCH 0/6] Support raw event and DT for perf on RISC-V

2020-06-28 Thread Zong Li
This patch set adds raw event support on RISC-V. In addition, we introduce the DT mechanism to make our perf more generic and common. Currently, we set the hardware events by writing the mhpmeventN CSRs, it would raise an illegal instruction exception and trap into m-mode to emulate event selector

[RFC PATCH 2/6] riscv: dts: sifive: Add DT support for PMU

2020-06-28 Thread Zong Li
Add performance monitor unit DT node in SiFive Fu540 soc-specific DT file. This pmu node passes the dtbs_check verification. Signed-off-by: Zong Li --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu540-c

[PATCH -next] ASoC: Documentation: fix reference to renamed source file

2020-06-28 Thread Randy Dunlap
From: Randy Dunlap sound/soc/soc-io.c was merged into sound/soc/soc-component.c, so fixup the Documentation to use the updated file name. Error: Cannot open file ../sound/soc/soc-io.c WARNING: kernel-doc '../scripts/kernel-doc -rst -enable-lineno ../sound/soc/soc-io.c' failed with return code 1

Re: wait_on_page_bit_common(TASK_KILLABLE, EXCLUSIVE) can miss wakeup?

2020-06-28 Thread Nicholas Piggin
Excerpts from Linus Torvalds's message of June 28, 2020 3:39 pm: > On Fri, Jun 26, 2020 at 8:43 AM Peter Zijlstra wrote: >> >> I ended up with something like the below.. but it is too warm to think >> properly. >> >> I don't particularly like WQ_FLAG_PAGEWAITERS, but I liked open-coding >> all tha

[PATCH v1 0/2] ipw2x00: use generic power management

2020-06-28 Thread Vaibhav Gupta
Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to remove legacy power management callbacks from amd ethernet drivers. The callbacks performing suspend() and resume() operations are still calling pci_save_state(), pci_set_power_state(), etc. and handling t

[PATCH v1 1/2] ipw2100: use generic power management

2020-06-28 Thread Vaibhav Gupta
With legacy PM, drivers themselves were responsible for managing the device's power states and takes care of register states. After upgrading to the generic structure, PCI core will take care of required tasks and drivers should do only device-specific operations. The driver was invoking PCI help

[PATCH v1 2/2] ipw2200: use generic power management

2020-06-28 Thread Vaibhav Gupta
With legacy PM, drivers themselves were responsible for managing the device's power states and takes care of register states. After upgrading to the generic structure, PCI core will take care of required tasks and drivers should do only device-specific operations. The driver was invoking PCI help

Re: [PATCH] rtlwifi/*/dm.c: Use const in swing_table declarations

2020-06-28 Thread Pkshih
On Mon, 2020-06-29 at 11:12 +0800, Pkshih wrote: > On Sun, 2020-06-28 at 19:51 -0700, j...@perches.com wrote: > > On 2020-06-28 19:09, Pkshih wrote: > > > On Sun, 2020-06-28 at 03:17 -0700, Joe Perches wrote: > > >  > > > Use 'rtlwifi:' as subject title prefix is enough, likes > > >   rtlwifi: Use

[PATCH v2] ext4: fix direct I/O read error

2020-06-28 Thread Jiang Ying
Fixes: 9fe55eea7e4b ("Fix race when checking i_size on direct i/o read"). This commit caused ext4 direct I/O read error when the read size is not alignment with block size. Then, I will use a test to explain the error. (1) Make the file that is not alignment with block size: $dd if=/dev/z

Re: [PATCH net-next v4 0/5] hinic: add some ethtool ops support

2020-06-28 Thread David Miller
From: Luo bin Date: Sun, 28 Jun 2020 20:36:19 +0800 > patch #1: support to set and get pause params with > "ethtool -A/a" cmd > patch #2: support to set and get irq coalesce params with > "ethtool -C/c" cmd > patch #3: support to do self test with "ethtool -t" cmd > patch #4:

Re: [PATCH RFC 0/5] Introduced new Cadence USBSSP DRD Driver.

2020-06-28 Thread Peter Chen
On 20-06-26 07:19:56, Pawel Laszczak wrote: > Hi Felipe, > > > > >Hi, > > > >Pawel Laszczak writes: > >> This patch introduce new Cadence USBSS DRD driver to linux kernel. > >> > >> The Cadence USBSS DRD Controller is a highly configurable IP Core which > >> can be instantiated as Dual-Role Devic

Re: [PATCH net] bridge: mrp: Fix endian conversion and some other warnings

2020-06-28 Thread David Miller
From: Horatiu Vultur Date: Sun, 28 Jun 2020 15:45:16 +0200 > The following sparse warnings are fixed: > net/bridge/br_mrp.c:106:18: warning: incorrect type in assignment (different > base types) > net/bridge/br_mrp.c:106:18:expected unsigned short [usertype] > net/bridge/br_mrp.c:106:18:

Re: [PATCH net] lib: packing: add documentation for pbuflen argument

2020-06-28 Thread David Miller
From: Vladimir Oltean Date: Sun, 28 Jun 2020 17:49:35 +0300 > Fixes sparse warning: > > Function parameter or member 'pbuflen' not described in 'packing' > > Fixes: 554aae35007e ("lib: Add support for generic packing operations") > Signed-off-by: Vladimir Oltean > --- > Hi David, since the ori

arch/powerpc/platforms/powernv/eeh-powernv.c:230:18: warning: variable 'phb' set but not used

2020-06-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68 commit: 0e4a459f56c32d3e52ae69a4b447db2f48a65f44 tracing: Remove unnecessary DEBUG_FS dependency date: 7 months ago config: powerpc-randconfig-m031-20200629 (attach

<    1   2   3   4