Re: [GIT PULL] xfs: new code for 5.11

2020-12-28 Thread Dmitrii Tcvetkov
>Please pull the following branch containing all the new xfs code for >5.11. In this release we add the ability to set a 'needsrepair' flag >indicating that we /know/ the filesystem requires xfs_repair, but other >than that, it's the usual strengthening of metadata validation and >miscellaneous

Re: [PATCH v2] media: atomisp: Fixed error handling path

2020-12-28 Thread Souptick Joarder
On Wed, Dec 9, 2020 at 1:18 AM Souptick Joarder wrote: > > On Thu, Nov 19, 2020 at 1:06 AM Souptick Joarder wrote: > > > > On Wed, Nov 4, 2020 at 7:32 AM Souptick Joarder > > wrote: > > > > > > Inside alloc_user_pages() based on flag value either pin_user_pages() > > > or get_user_pages_fast()

Re: [PATCH] input: ariel-pwrbutton.c: Remove unused variable ariel_pwrbutton_id_table[]

2020-12-28 Thread Souptick Joarder
On Tue, Dec 22, 2020 at 1:34 AM Souptick Joarder wrote: > > Kernel test robot throws below warning -> > > >> drivers/input/misc/ariel-pwrbutton.c:152:35: warning: unused variable > >> 'ariel_pwrbutton_id_table' [-Wunused-const-variable] >static const struct spi_device_id

Re: [PATCH v16 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2020-12-28 Thread kernel test robot
Hi Konstantin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.11-rc1 next-20201223] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

Re: [RFC PATCH v3 4/5] usb: xhci-mtk: add support runtime pm

2020-12-28 Thread Ikjoon Jang
On Tue, Dec 22, 2020 at 5:35 PM Chunfeng Yun wrote: > > From: CK Hu > > add support runtime pm feature > > Signed-off-by: Zhanyong Wang > Signed-off-by: Chunfeng Yun > --- > v3: > 1. fix some issues > 2. remove attribute files > > v2: fix error caused by request irq suggested by CK > --- >

Re: [PATCH 07/21] vdpa: multiple address spaces support

2020-12-28 Thread Eli Cohen
On Wed, Dec 16, 2020 at 02:48:04PM +0800, Jason Wang wrote: > This patches introduces the multiple address spaces support for vDPA > device. This idea is to identify a specific address space via an > dedicated identifier - ASID. > > During vDPA device allocation, vDPA device driver needs to

[PATCH] sizes.h: Add SZ_8G/SZ_16G/SZ_32G macros

2020-12-28 Thread Huang Shijie
Add these macros, since we can use them in drivers. Signed-off-by: Huang Shijie --- include/linux/sizes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/sizes.h b/include/linux/sizes.h index 9874f6f67537..1ac79bcee2bb 100644 --- a/include/linux/sizes.h +++

Re: [PATCH v6 4/4] perf-stat: add documentation for -b option

2020-12-28 Thread Namhyung Kim
On Tue, Dec 29, 2020 at 2:41 AM Song Liu wrote: > > Add documentation to perf-stat -b option, which stats event for BPF > programs. > > Signed-off-by: Song Liu > --- > tools/perf/Documentation/perf-stat.txt | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git

Re: [PATCH v6 3/4] perf-stat: enable counting events for BPF programs

2020-12-28 Thread Namhyung Kim
On Tue, Dec 29, 2020 at 2:41 AM Song Liu wrote: > > Introduce perf-stat -b option, which counts events for BPF programs, like: > > [root@localhost ~]# ~/perf stat -e ref-cycles,cycles -b 254 -I 1000 > 1.487903822115,200 ref-cycles > 1.487903822 86,012

[PATCH] dt-bindings: (hwmon/pm6764tr) Add PM6764TR hwmon driver bindings

2020-12-28 Thread Charles Hsu
Document device tree bindings for STMicroelectronics PM6764tr Voltage Regulator. Signed-off-by: Charles Hsu --- .../bindings/hwmon/pmbus/st,pm6764tr.yaml | 47 +++ .../devicetree/bindings/trivial-devices.yaml | 2 + 2 files changed, 49 insertions(+) create mode 100644

mapping.c:undefined reference to `dma_to_phys'

2020-12-28 Thread kernel test robot
Hi Christoph, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: 7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029 dma-direct: remove __dma_to_phys date: 4 months ago config:

[PATCH] KVM: x86/pmu: Fix UBSAN shift-out-of-bounds warning in intel_pmu_refresh()

2020-12-28 Thread Like Xu
Since we know vPMU will not work properly when the guest bit_width(s) of the [gp|fixed] counters are greater than the host ones, so we can setup a smaller left shift value and refresh the guest pmu cpuid entry, thus fixing the following UBSAN shift-out-of-bounds warning: shift exponent 197 is too

i2c-sprd.c:(.text.sprd_i2c_probe+0x180): undefined reference to `clk_set_parent'

2020-12-28 Thread kernel test robot
Hi Krzysztof, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: 4a2d5f663dab6614772d8e28ca190b127ba46d9d i2c: Enable compile testing for more drivers date: 11 months

[PATCH] irqchip/gic: add WARN_ON() to facilitate backtracking

2020-12-28 Thread Yejune Deng
There is two function gic_of_init() and gic_of_init_child() called gic_of_setup(),so add WARN_ON() to facilitate backtracking. Signed-off-by: Yejune Deng --- drivers/irqchip/irq-gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic.c

[PATCH] usb: usbip: vhci_hcd: protect shift size

2020-12-28 Thread Randy Dunlap
Fix shift out-of-bounds in vhci_hcd.c: UBSAN: shift-out-of-bounds in ../drivers/usb/usbip/vhci_hcd.c:399:41 shift exponent 768 is too large for 32-bit type 'int' Fixes: 03cd00d538a6 ("usbip: vhci-hcd: Set the vhci structure up to work") Signed-off-by: Randy Dunlap Reported-by:

[PATCH v2] mhi: use irq_flags if client driver configures it

2020-12-28 Thread Carl Huang
If client driver has specified the irq_flags, mhi uses this specified irq_flags. Otherwise, mhi uses default irq_flags. The purpose of this change is to support one MSI vector for QCA6390. MHI will use one same MSI vector too in this scenario. In case of one MSI vector, IRQ_NO_BALANCING is

Re: [PATCH v6 2/4] perf: support build BPF skeletons with perf

2020-12-28 Thread Namhyung Kim
Hello, On Tue, Dec 29, 2020 at 2:41 AM Song Liu wrote: > > BPF programs are useful in perf to profile BPF programs. BPF skeleton is I'm having difficulties understanding the first sentence - looks like a recursion. :) So do you want to use two (or more) BPF programs? Thanks, Namhyung > by

Re: [PATCH v1 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting

2020-12-28 Thread Xin Ji
On Mon, Dec 28, 2020 at 05:08:56PM +0200, Laurent Pinchart wrote: > Hi Xin Ji, > > Thank you for the patch. > > On Fri, Dec 25, 2020 at 07:01:09PM +0800, Xin Ji wrote: > > Add DPI flag for distinguish MIPI input signal type, DSI or DPI. Add > > swing setting for adjusting DP tx PHY swing > > >

Re: [PATCH 1/1] ARM: LPAE: use phys_addr_t instead of unsigned long in outercache hooks

2020-12-28 Thread Leizhen (ThunderTown)
On 2020/12/28 15:00, Arnd Bergmann wrote: > On Fri, Dec 25, 2020 at 12:48 PM Zhen Lei wrote: >> >> The outercache of some Hisilicon SOCs support physical addresses wider >> than 32-bits. The unsigned long datatype is not sufficient for mapping >> physical addresses >= 4GB. The commit

[PATCH v4 4/5] pinctrl: aspeed-g5: Adapt to new LPC device tree layout

2020-12-28 Thread Chia-Wei, Wang
Add check against LPC device v2 compatible string to ensure that the fixed device tree layout is adopted. The LPC register offsets are also fixed accordingly. Signed-off-by: Chia-Wei, Wang --- drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c | 17 +++-- 1 file changed, 11 insertions(+), 6

[PATCH v4 1/5] dt-bindings: aspeed-lpc: Remove LPC partitioning

2020-12-28 Thread Chia-Wei, Wang
The LPC controller has no concept of the BMC and the Host partitions. This patch fixes the documentation by removing the description on LPC partitions. The register offsets illustrated in the DTS node examples are also fixed to adapt to the LPC DTS change. Signed-off-by: Chia-Wei, Wang ---

[PATCH v4 5/5] soc: aspeed: Adapt to new LPC device tree layout

2020-12-28 Thread Chia-Wei, Wang
Add check against LPC device v2 compatible string to ensure that the fixed device tree layout is adopted. The LPC register offsets are also fixed accordingly. Signed-off-by: Chia-Wei, Wang --- drivers/soc/aspeed/aspeed-lpc-ctrl.c | 20 ++-- drivers/soc/aspeed/aspeed-lpc-snoop.c

[PATCH v4 3/5] ipmi: kcs: aspeed: Adapt to new LPC DTS layout

2020-12-28 Thread Chia-Wei, Wang
Add check against LPC device v2 compatible string to ensure that the fixed device tree layout is adopted. The LPC register offsets are also fixed accordingly. Signed-off-by: Chia-Wei, Wang --- drivers/char/ipmi/kcs_bmc_aspeed.c | 27 --- 1 file changed, 16 insertions(+),

[PATCH v4 2/5] ARM: dts: Remove LPC BMC and Host partitions

2020-12-28 Thread Chia-Wei, Wang
The LPC controller has no concept of the BMC and the Host partitions. A concrete instance is that the HICRB[5:4] are for the I/O port address configurtaion of KCS channel 1/2. However, the KCS driver cannot access HICRB for channel 1/2 initialization via syscon regmap interface due to the

Re: [PATCH 1/1] ARM: LPAE: use phys_addr_t instead of unsigned long in outercache hooks

2020-12-28 Thread Leizhen (ThunderTown)
On 2020/12/26 20:15, Russell King - ARM Linux admin wrote: > On Sat, Dec 26, 2020 at 10:18:08AM +0800, Leizhen (ThunderTown) wrote: >> On 2020/12/25 19:44, Zhen Lei wrote: >>> The outercache of some Hisilicon SOCs support physical addresses wider >>> than 32-bits. The unsigned long datatype is

[PATCH v4 0/5] Remove LPC register partitioning

2020-12-28 Thread Chia-Wei, Wang
The LPC controller has no concept of the BMC and the Host partitions. The incorrect partitioning can impose unnecessary range restrictions on register access through the syscon regmap interface. For instance, HICRB contains the I/O port address configuration of KCS channel 1/2. However, the

drivers/net/wan/fsl_ucc_hdlc.c:305:17: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-12-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr() date: 4 months ago config: arm-randconfig-s031-20201221

Re: [PATCH 1/1] ARM: LPAE: use phys_addr_t instead of unsigned long in outercache hooks

2020-12-28 Thread Leizhen (ThunderTown)
On 2020/12/26 20:13, Russell King - ARM Linux admin wrote: > On Fri, Dec 25, 2020 at 07:44:58PM +0800, Zhen Lei wrote: >> The outercache of some Hisilicon SOCs support physical addresses wider >> than 32-bits. The unsigned long datatype is not sufficient for mapping >> physical addresses >=

Re: [PATCH v4] usb: xhci-mtk: fix unreleased bandwidth data

2020-12-28 Thread Ikjoon Jang
On Mon, Dec 28, 2020 at 10:34 PM Greg Kroah-Hartman wrote: > > On Mon, Dec 14, 2020 at 04:39:53PM +0800, Ikjoon Jang wrote: > > xhci-mtk has hooks on add_endpoint() and drop_endpoint() from xhci > > to handle its own sw bandwidth managements and stores bandwidth data > > into internal table every

arch/mips/loongson64/cop2-ex.c:97:29: error: 'struct thread_struct' has no member named 'fpu'

2020-12-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: f83e4f9896eff614d0f2547a561fa5f39f9cddde MIPS: Loongson-3: Add some unaligned instructions emulation date: 8 months ago config:

[PATCH v5] usb: xhci-mtk: fix unreleased bandwidth data

2020-12-28 Thread Ikjoon Jang
xhci-mtk has hooks on add_endpoint() and drop_endpoint() from xhci to handle its own sw bandwidth managements and stores bandwidth data into internal table every time add_endpoint() is called, so when bandwidth allocation fails at one endpoint, all earlier allocation from the same interface could

[PATCH] lib/genalloc: fix the overflow when size is too big

2020-12-28 Thread Huang Shijie
Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100, SZ_32G, NUMA_NO_NODE); va =

Re: [PATCH 1/3] dt-bindings: input: cros-ec-keyb: Add a new property

2020-12-28 Thread Dmitry Torokhov
Hi Philip, On Mon, Dec 21, 2020 at 05:47:57PM -0800, Philip Chen wrote: > This patch adds a new property `google,custom-keyb-top-row` to the > device tree for the custom keyboard top row design. Why don't we use the property we have for the same purpose in atkbd.c? I.e. function-row-physmap?

[PATCH v10 1/2] cpufreq: mediatek-hw: Add support for CPUFREQ HW

2020-12-28 Thread Hector Yuan
From: "Hector.Yuan" Add cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 370 + 3 files changed, 383 insertions(+)

[PATCH v10] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-12-28 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. This patch depends on MT6779 DTS patchset[1] submitted by Hanks Chen. >From v8 to v9, there are three

[PATCH v10 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-12-28 Thread Hector Yuan
From: "Hector.Yuan" Add devicetree bindings for MediaTek HW driver. Signed-off-by: Hector.Yuan --- .../bindings/cpufreq/cpufreq-mediatek-hw.yaml | 116 1 file changed, 116 insertions(+) create mode 100644

Re: [PATCH v1 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting

2020-12-28 Thread Xin Ji
On Sun, Dec 27, 2020 at 09:56:21AM -0700, Rob Herring wrote: > On Fri, 25 Dec 2020 19:01:09 +0800, Xin Ji wrote: > > Add DPI flag for distinguish MIPI input signal type, DSI or DPI. Add > > swing setting for adjusting DP tx PHY swing > > > > Signed-off-by: Xin Ji > > --- > >

Re: [PATCH v6 3/4] perf-stat: enable counting events for BPF programs

2020-12-28 Thread Song Liu
> On Dec 28, 2020, at 3:43 PM, Song Liu wrote: > > > >> On Dec 28, 2020, at 12:11 PM, Arnaldo Carvalho de Melo >> wrote: >> >> Em Mon, Dec 28, 2020 at 09:40:53AM -0800, Song Liu escreveu: >>> Introduce perf-stat -b option, which counts events for BPF programs, like: >>> >>>

Re: [PATCH] perf tools: Detect when pipe is passed as perf data

2020-12-28 Thread Namhyung Kim
On Sat, Dec 26, 2020 at 7:21 AM Jiri Olsa wrote: > > Currently we allow pipe input/output only through '-' string > being passed to '-o' or '-i' options, like: > > # mkfifo perf.pipe > # perf record --no-buffering -e 'sched:sched_switch' -o - > perf.pipe & > [1] 354406 > # cat perf.pipe |

[PATCH 1/1] mtd: spinand: add support for Foresee FS35ND01G

2020-12-28 Thread Daniel Palmer
Add support for the Foresee FS35ND01G manufactured by Longsys. Signed-off-by: Daniel Palmer --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c| 1 + drivers/mtd/nand/spi/longsys.c | 45 ++ include/linux/mtd/spinand.h| 1 + 4 files

[PATCH 0/1] Add basic support for Foresee SPI NAND

2020-12-28 Thread Daniel Palmer
This is my very crude attempt at adding support for Longsys' Foresee branded SPI NAND parts that are showing up on some boards. I fully admit I have no idea what I'm doing here and I basically took one of the existing files, ripped out what I didn't understand and tried to fill in the numbers

Re: [PATCH 2/3] perf tools: Skip MMAP record synthesis for kernel threads

2020-12-28 Thread Namhyung Kim
On Mon, Dec 28, 2020 at 8:50 PM Jiri Olsa wrote: > > On Mon, Dec 21, 2020 at 04:00:28PM +0900, Namhyung Kim wrote: > > To synthesize information to resolve sample IPs, it needs to scan task > > and mmap info from the /proc filesystem. For each process, it > > opens (and reads) status and maps

[PATCH 2/2] spi: fix the divide by 0 error when calculating xfer waiting time

2020-12-28 Thread Xu Yilun
The xfer waiting time is the result of xfer->len / xfer->speed_hz, but when the following patch is merged, commit 9326e4f1e5dd ("spi: Limit the spi device max speed to controller's max speed") the xfer->speed_hz may always be clamped to 0 if the controller doesn't provide its max_speed_hz.

[tip:x86/build] BUILD SUCCESS ac5d08870d0b94cbfa8103c9e294de2b96f249bc

2020-12-28 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allnoconfig i386 randconfig-a005-20201228 i386 randconfig-a002-20201228 i386 randconfig-a004-20201228 i386

[PATCH 1/2] spi: altera: fix return value for altera_spi_txrx()

2020-12-28 Thread Xu Yilun
This patch fixes the return value for altera_spi_txrx. It should return 1 for interrupt transfer mode, and return 0 for polling transfer mode. The altera_spi_txrx() implements the spi_controller.transfer_one callback. According to the spi-summary.rst, the transfer_one should return 0 when

[PATCH 0/2] fix the issue when xfer by spi-altera

2020-12-28 Thread Xu Yilun
When doing spi xfer by spi-altera, divide by 0 exception happens in spi_transfer_wait(), This is because the xfer->speed_hz is always clamped to 0 by spi->controller->max_speed_hz, the feature is introduced in: commit 9326e4f1e5dd ("spi: Limit the spi device max speed to controller's max speed")

Re: [PATCH 2/3] tools/lib/fs: Diet cgroupfs_find_mountpoint()

2020-12-28 Thread Namhyung Kim
Hi Jiri, On Mon, Dec 28, 2020 at 5:31 PM Jiri Olsa wrote: > > On Wed, Dec 16, 2020 at 06:05:55PM +0900, Namhyung Kim wrote: > > SNIP > > > + *p++ = '\0'; > > > > - while (token != NULL) { > > - if (subsys && !strcmp(token, subsys)) { >

phy-tegra-usb.c:(.text.tegra_usb_phy_init+0x40): undefined reference to `clk_get_parent'

2020-12-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: 5dcdafdd30b1babde143ee7086d3de79396d023b usb: phy: tegra: Hook up init/shutdown callbacks date: 12 months ago config: mips-randconfig-r013-20201223

Re: [PATCH v3 0/9] Support Runtime PM and host mode by Tegra ChipIdea USB driver

2020-12-28 Thread Peter Chen
On 20-12-18 15:02:37, Dmitry Osipenko wrote: > This series implements Runtime PM support for the Tegra ChipIdea USB driver. > It also squashes the older ehci-tegra driver into the ChipIdea driver, hence > the RPM is supported by both UDC and host controllers, secondly this opens > opportunity for

Re: [PATCH v16 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2020-12-28 Thread kernel test robot
Hi Konstantin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.11-rc1 next-20201223] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

Re: [PATCH -next] media: dvb-frontends: use DIV_ROUND_UP to calculate timeout

2020-12-28 Thread kernel test robot
Hi Zheng, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20201222] url: https://github.com/0day-ci/linux/commits/Zheng-Yongjun/media-dvb-frontends-use-DIV_ROUND_UP-to-calculate-timeout/20201222-213524 base:6c3eb1b174c07bcaa927003e8bc91e81ab1d5a9e

[PATCH] media: dvb-frontends: fix semicolon.cocci warnings

2020-12-28 Thread kernel test robot
From: kernel test robot drivers/media/dvb-frontends/cxd2841er.c:3341:52-53: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Zheng Yongjun Reported-by: kernel test robot Signed-off-by: kernel test robot --- url:

[PATCH v2] thermal: cpufreq_cooling: fix slab OOB issue

2020-12-28 Thread Michael Kao
From: brian-sy yang Slab OOB issue is scanned by KASAN in cpu_power_to_freq(). If power is limited below the power of OPP0 in EM table, it will cause slab out-of-bound issue with negative array index. Return the lowest frequency if limited power cannot found a suitable OPP in EM table to fix

Re: [PATCH] riscv: add BUILTIN_DTB support for MMU-enabled targets

2020-12-28 Thread Anup Patel
On Mon, Dec 28, 2020 at 10:08 PM Vitaly Wool wrote: > > On Mon, Dec 28, 2020 at 3:10 PM Anup Patel wrote: > > > > On Mon, Dec 28, 2020 at 7:05 PM Vitaly Wool > > wrote: > > > > > > On Mon, Dec 28, 2020 at 12:59 PM Anup Patel wrote: > > > > > > > > On Sat, Dec 26, 2020 at 10:03 PM Vitaly Wool

[PATCH v8 13/16] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA handshake

2020-12-28 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA device handshake programming. Device handshake number passed in to the AxiDMA shall be written to the Intel KeemBay AxiDMA hardware handshake registers before DMA operations are started. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng ---

[PATCH v8 15/16] dmaengine: dw-axi-dmac: Set constraint to the Max segment size

2020-12-28 Thread Sia Jee Heng
Add support for DMA Scatter-Gather (SG) constraint so that DMA clients can handle the AxiDMA limitation. Without supporting DMA constraint the default Max segment size reported by dmaengine is 64KB, which is not supported by Intel KeemBay AxiDMA. Reviewed-by: Andy Shevchenko Signed-off-by: Sia

[PATCH v8 16/16] dmaengine: dw-axi-dmac: Virtually split the linked-list

2020-12-28 Thread Sia Jee Heng
AxiDMA driver exposed the dma_set_max_seg_size() to the DMAENGINE. It shall helps the DMA clients to create size-optimized linked-list for the controller. However, there are certain situations where DMA client might not be abled to benefit from the dma_get_max_seg_size() if the segment size can't

[PATCH v8 12/16] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA support

2020-12-28 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA to the .compatible field. The AxiDMA Apb region will be accessible if the compatible string matches the "intel,kmb-axi-dma". Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 1 file

[PATCH v8 14/16] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA BYTE and HALFWORD registers

2020-12-28 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA BYTE and HALFWORD registers programming. Intel KeemBay AxiDMA supports data transfer between device to memory and memory to device operations. This code is needed by I2C, I3C, I2S, SPI and UART which uses FIFO size of 8bits and 16bits to perform memory to

[PATCH v8 11/16] dmaengine: dw-axi-dmac: Add Intel KeemBay DMA register fields

2020-12-28 Thread Sia Jee Heng
Add support for Intel KeemBay DMA registers. These registers are required to run data transfer between device to memory and memory to device on Intel KeemBay SoC. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 14 ++ 1 file

[PATCH v8 10/16] dt-binding: dma: dw-axi-dmac: Add support for Intel KeemBay AxiDMA

2020-12-28 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac Schemas DT binding. Signed-off-by: Sia Jee Heng Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v8 08/16] dmaengine: dw-axi-dmac: Support of_dma_controller_register()

2020-12-28 Thread Sia Jee Heng
Add support for of_dma_controller_register() so that DMA clients can pass in device handshake number to the AxiDMA driver. DMA clients shall code the device handshake number in the Device tree. When DMA activities are needed, DMA clients shall invoke OF helper function to pass in the device

[PATCH v8 09/16] dmaengine: dw-axi-dmac: Support burst residue granularity

2020-12-28 Thread Sia Jee Heng
Add support for DMA_RESIDUE_GRANULARITY_BURST so that AxiDMA can report DMA residue. Existing AxiDMA driver only support data transfer between memory to memory operation, therefore reporting DMA residue to the DMA clients is not supported. Reporting DMA residue to the DMA clients is important as

[PATCH v8 07/16] dmaegine: dw-axi-dmac: Support device_prep_dma_cyclic()

2020-12-28 Thread Sia Jee Heng
Add support for device_prep_dma_cyclic() callback function to benefit DMA cyclic client, for example ALSA. Existing AxiDMA driver only support data transfer between memory to memory. Data transfer between device to memory and memory to device in cyclic mode would failed if this interface is not

[PATCH v8 06/16] dmaengine: dw-axi-dmac: Support device_prep_slave_sg

2020-12-28 Thread Sia Jee Heng
Add device_prep_slave_sg() callback function so that DMA_MEM_TO_DEV and DMA_DEV_TO_MEM operations in single mode can be supported. Existing AxiDMA driver only support data transfer between memory to memory. Data transfer between device to memory and memory to device in single mode would failed if

[PATCH v8 05/16] dmaengine: dw-axi-dmac: Add device_config operation

2020-12-28 Thread Sia Jee Heng
Add device_config() callback function so that the device address can be passed to the dma driver. DMA clients use this interface to pass in the device address to the AxiDMA. Without this interface, data transfer between device to memory and memory to device would failed. Reviewed-by: Andy

[PATCH v8 03/16] dmaengine: dw-axi-dmac: move dma_pool_create() to alloc_chan_resources()

2020-12-28 Thread Sia Jee Heng
The DMA memory block is created at driver load time and exist for device lifetime. Move the dma_pool_create() to the ->chan_resource() callback function allowing the DMA memory blocks to be created as needed and destroyed when the channel is freed. Reviewed-by: Andy Shevchenko Signed-off-by: Sia

[PATCH v8 01/16] dt-bindings: dma: Add YAML schemas for dw-axi-dmac

2020-12-28 Thread Sia Jee Heng
YAML schemas Device Tree (DT) binding is the new format for DT to replace the old format. Introduce YAML schemas DT binding for dw-axi-dmac and remove the old version. Signed-off-by: Sia Jee Heng Reviewed-by: Rob Herring --- .../bindings/dma/snps,dw-axi-dmac.txt | 39 --

[PATCH v8 04/16] dmaengine: dw-axi-dmac: Add device_synchronize() callback

2020-12-28 Thread Sia Jee Heng
Add support for device_synchronize() callback function to sync with dmaengine_terminate_sync(). Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v8 02/16] dmaengine: dw-axi-dmac: simplify descriptor management

2020-12-28 Thread Sia Jee Heng
Simplify and refactor the descriptor management by removing the redundant Linked List Item (LLI) queue control logic from the AxiDMA driver. The descriptor is split into virtual descriptor and hardware LLI so that only hardware LLI memories are allocated from the DMA memory pool. Up to 64

[PATCH v8 00/16] dmaengine: dw-axi-dmac: support Intel KeemBay AxiDMA

2020-12-28 Thread Sia Jee Heng
The below patch series are to support AxiDMA running on Intel KeemBay SoC. The base driver is dw-axi-dmac. This driver only support DMA memory copy transfers. Code refactoring is needed so that additional features can be supported. The features added in this patch series are: - Replacing Linked

drivers/media/pci/intel/ipu3/ipu3-cio2.h:22:28: warning: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '131072' to '0'

2020-12-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: 7b285f41f7376dc37e7fad1e803995fd39f42848 media: ipu3-cio2: Introduce CIO2_LOP_ENTRIES constant date: 4 months ago config: ia64-randconfig-r014-20201221

Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting

2020-12-28 Thread Hugh Dickins
Got it at last, sorry it's taken so long. On Tue, 29 Dec 2020, Kirill A. Shutemov wrote: > On Tue, Dec 29, 2020 at 01:05:48AM +0300, Kirill A. Shutemov wrote: > > On Mon, Dec 28, 2020 at 10:47:36AM -0800, Linus Torvalds wrote: > > > On Mon, Dec 28, 2020 at 4:53 AM Kirill A. Shutemov > > >

drivers/interconnect/qcom/icc-rpmh.c:133:29: sparse: sparse: incorrect type in assignment (different base types)

2020-12-28 Thread kernel test robot
Hi Odelu, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: 2d1f95ab9feb4f5373f81c3805bfbc126670812d interconnect: qcom: Add SC7180 interconnect provider driver

Re: [PATCH v2 13/16] rpmsg: virtio: probe the rpmsg_ctl device

2020-12-28 Thread kernel test robot
Hi Arnaud, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.11-rc1 next-20201223] [cannot apply to rpmsg/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH] staging: comedi: remove warnings of comedi_lrange

2020-12-28 Thread kernel test robot
Hi chensong, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/chensong/staging-comedi-remove-warnings-of-comedi_lrange/20201223-104542 base:

drivers/platform/surface/surface3-wmi.c:60:14: warning: variable 'status' set but not used

2020-12-28 Thread kernel test robot
Hi Maximilian, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: f23027ca3d48b6f93c5994069fb25b73539fdf34 platform/surface: Move Surface 3 WMI driver to

Re: [PATCH] staging: comedi: remove warnings of comedi_lrange

2020-12-28 Thread kernel test robot
Hi chensong, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/chensong/staging-comedi-remove-warnings-of-comedi_lrange/20201223-104542 base:

[PATCH] hwmon: fix sbtsi_temp Documenation kernel-doc warning

2020-12-28 Thread Randy Dunlap
Fix Documentation/hwmon/ kernel-doc warning in 5.11-rc1: lnx-511-rc1/Documentation/hwmon/sbtsi_temp.rst:4: WARNING: Title underline too short. Kernel driver sbtsi_temp == Fixes: 6ec3fcf556fe ("hwmon: (sbtsi) Add documentation") Signed-off-by: Randy Dunlap Cc: Kun Yi Cc:

[PATCH] sound: pci: hda: add a new hda codec

2020-12-28 Thread bo . liu
From: bo liu The current kernel does not support the cx11970 codec chip. Add a codec configuration item to kernel. Signed-off-by: bo liu diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index be5000dd1585..e80fe8ba537c 100644 --- a/sound/pci/hda/patch_conexant.c

Re: [PATCH] staging: comedi: remove warnings of comedi_lrange

2020-12-28 Thread kernel test robot
Hi chensong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/chensong/staging-comedi-remove-warnings-of-comedi_lrange/20201223-104542 base:

[PATCH] fs: block_dev.c: fix kernel-doc warnings from struct block_device changes

2020-12-28 Thread Randy Dunlap
Fix new kernel-doc warnings in fs/block_dev.c: ../fs/block_dev.c:1066: warning: Excess function parameter 'whole' description in 'bd_abort_claiming' ../fs/block_dev.c:1837: warning: Function parameter or member 'dev' not described in 'lookup_bdev' Fixes: 4e7b5671c6a8 ("block: remove i_bdev")

[PATCH v2] PCI: dwc: Fix MSI not work after resume

2020-12-28 Thread Jisheng Zhang
After we move dw_pcie_msi_init() into core -- dw_pcie_host_init(), the MSI stops working after resume. Because dw_pcie_host_init() is only called once during probe. To fix this issue, we move dw_pcie_msi_init() to dw_pcie_setup_rc(). Fixes: 59fbab1ae40e ("PCI: dwc: Move dw_pcie_msi_init() into

Re: [PATCH v2 16/17] driver core: Refactor fw_devlink feature

2020-12-28 Thread Michael Walle
> The current implementation of fw_devlink is very inefficient because it > tries to get away without creating fwnode links in the name of saving > memory usage. Past attempts to optimize runtime at the cost of memory > usage were blocked with request for data showing that the optimization > made

Re: [RFC please help] membarrier: Rewrite sync_core_before_usermode()

2020-12-28 Thread Nicholas Piggin
Excerpts from Andy Lutomirski's message of December 29, 2020 10:36 am: > On Mon, Dec 28, 2020 at 4:11 PM Nicholas Piggin wrote: >> >> Excerpts from Andy Lutomirski's message of December 28, 2020 4:28 am: >> > The old sync_core_before_usermode() comments said that a non-icache-syncing >> >

Re: [PATCH 6/7] spi: cadence-quadspi: Wait at least 500 ms for direct reads

2020-12-28 Thread kernel test robot
Hi Pratyush, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on spi/for-next] [also build test WARNING on v5.11-rc1 next-20201223] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

[rcu:dev.2020.12.15b 130/134] include/linux/stddef.h:8:14: error: called object is not a function or function pointer

2020-12-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.12.15b head: f895a17eec290b0038a6294d884a9cc92d7d6e80 commit: 7655dc620982c6505386efdaf975e6bde3c27afb [130/134] rcu-tasks: Use NULL pointer instead of empty show_rcu_tasks_*() functions config:

[PATCH v3 3/3] iommu/vt-d: Fix ineffective devTLB invalidation for subdevices

2020-12-28 Thread Liu Yi L
iommu_flush_dev_iotlb() is called to invalidate caches on device. It only loops the devices which are full-attached to the domain. For sub-devices, this is ineffective. This results in invalid caching entries left on the device. Fix it by adding loop for subdevices as well. Also, the domain->

drivers/crypto/stm32/stm32-cryp.c:1232:47: sparse: sparse: incorrect type in argument 2 (different base types)

2020-12-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3 commit: bbb2832620ac4e136416aa97af7310636422dea9 crypto: stm32 - Fix sparse warnings date: 4 months ago config: arm-randconfig-s032-20201220 (attached as .config)

[PATCH v3 2/3] iommu/vt-d: Track device aux-attach with subdevice_domain_info

2020-12-28 Thread Liu Yi L
In the existing code, loop all devices attached to a domain does not include sub-devices attached via iommu_aux_attach_device(). This was found by when I'm working on the belwo patch, There is no device in the domain->devices list, thus unable to get the cap and ecap of iommu unit. But this

[PATCH] wireless/cfg80211: fix multiple kernel-doc build warnings

2020-12-28 Thread Randy Dunlap
Fix 19 warnings like this: ../include/net/cfg80211.h:1759: warning: Cannot understand * @struct cfg80211_sar_chan_ranges - sar frequency ranges Fixes: 6bdb68cef7bf ("nl80211: add common API to configure SAR power limitations") Signed-off-by: Randy Dunlap Cc: Johannes Berg Cc:

[PATCH v3 0/3] iommu/vt-d: Misc fixes on scalable mode

2020-12-28 Thread Liu Yi L
Hi Baolu, Joerg, Will, This patchset aims to fix a bug regards to native SVM usage, and also several bugs around subdevice (attached to device via auxiliary manner) tracking and ineffective device_tlb flush. v2 -> v3: - Address comments from Baolu Lu against v2 - Rebased to 5.11-rc1 v2:

[PATCH v3 1/3] iommu/vt-d: Move intel_iommu info from struct intel_svm to struct intel_svm_dev

2020-12-28 Thread Liu Yi L
Current struct intel_svm has a field to record the struct intel_iommu pointer for a PASID bind. And struct intel_svm will be shared by all the devices bind to the same process. The devices may be behind different DMAR units. As the iommu driver code uses the intel_iommu pointer stored in intel_svm

Re: [PATCH net-next v2 5/6] bcm63xx_enet: convert to build_skb

2020-12-28 Thread Florian Fainelli
On 12/24/2020 6:24 AM, Sieng Piaw Liew wrote: > We can increase the efficiency of rx path by using buffers to receive > packets then build SKBs around them just before passing into the network > stack. In contrast, preallocating SKBs too early reduces CPU cache > efficiency. > > Check if we're

Re: [PATCH net-next v2 6/6] bcm63xx_enet: improve rx loop

2020-12-28 Thread Florian Fainelli
On 12/24/2020 6:24 AM, Sieng Piaw Liew wrote: > Use existing rx processed count to track against budget, thereby making > budget decrement operation redundant. > > rx_desc_count can be calculated outside the rx loop, making the loop a > bit smaller. > > Signed-off-by: Sieng Piaw Liew

Re: [PATCH net-next v2 4/6] bcm63xx_enet: alloc rx skb with NET_IP_ALIGN

2020-12-28 Thread Florian Fainelli
On 12/24/2020 6:24 AM, Sieng Piaw Liew wrote: > Use netdev_alloc_skb_ip_align on newer SoCs with integrated switch > (enetsw) when refilling RX. Increases packet processing performance > by 30% (with netif_receive_skb_list). > > Non-enetsw SoCs cannot function with the extra pad so continue to

Re: [PATCH net-next v2 3/6] bcm63xx_enet: add xmit_more support

2020-12-28 Thread Florian Fainelli
On 12/24/2020 6:24 AM, Sieng Piaw Liew wrote: > Support bulking hardware TX queue by using netdev_xmit_more(). > > Signed-off-by: Sieng Piaw Liew Acked-by: Florian Fainelli -- Florian

[PATCH] mm: rectify a page bad reason

2020-12-28 Thread Rongwei Wang
Hi When I was doing some memory-related projects, it always reported error "nonzero mapcount", but its judgment condition was that _mapcount was not equal to -1, so I felt the original string was a bit inappropriate, so I tried to update it. Signed-off-by: Rongwei Wang --- mm/page_alloc.c | 2

Re: [PATCH net-next v2 2/6] bcm63xx_enet: add BQL support

2020-12-28 Thread Florian Fainelli
On 12/24/2020 6:24 AM, Sieng Piaw Liew wrote: > Add Byte Queue Limits support to reduce/remove bufferbloat in > bcm63xx_enet. > > Signed-off-by: Sieng Piaw Liew Acked-by: Florian Fainelli -- Florian

Re: [PATCH net-next v2 1/6] bcm63xx_enet: batch process rx path

2020-12-28 Thread Florian Fainelli
On 12/24/2020 6:24 AM, Sieng Piaw Liew wrote: > Use netif_receive_skb_list to batch process rx skb. > Tested on BCM6328 320 MHz using iperf3 -M 512, increasing performance > by 12.5%. > > Before: > [ ID] Interval Transfer Bandwidth Retr > [ 4] 0.00-30.00 sec 120

  1   2   3   4   5   6   7   8   9   10   >