Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-24 Thread Greg Kroah-Hartman
On Fri, Jul 24, 2020 at 06:28:53PM -0300, Daniel Gutson wrote: > Currently, intel-spi has a module argument that controls whether the driver > attempts to turn the SPI flash chip writeable. The default value > is FALSE (don't try to make it writeable). > However, this flag applies only for a

Re: Re: [PATCH] octeontx2-af: Fix use of uninitialized pointer bmap

2020-07-24 Thread dinghao . liu
> From: Dinghao Liu > Date: Fri, 24 Jul 2020 16:06:57 +0800 > > > If req->ctype does not match any of NIX_AQ_CTYPE_CQ, > > NIX_AQ_CTYPE_SQ or NIX_AQ_CTYPE_RQ, pointer bmap will remain > > uninitialized and be accessed in test_bit(), which can lead > > to kernal crash. > > This can never happen.

Re: [PATCH] Fix coding style issues

2020-07-24 Thread Greg Kroah-Hartman
On Sat, Jul 25, 2020 at 01:55:19AM +0530, Anant Thazhemadam wrote: > Coding style issues found were rectified > > Signed-off-by: Anant Thazhemadam > --- > drivers/staging/rtl8188eu/core/rtw_security.c | 92 ++- > 1 file changed, 47 insertions(+), 45 deletions(-) > > diff --git

Re: [PATCH 14216/14216] ALSA: usb-audio: This patch for prevent auto wakeup from s3 trig by usb disconnect signal from Lenovo Thinkcentre TI024Gen3 USB-audio.

2020-07-24 Thread Greg KH
On Sat, Jul 25, 2020 at 12:01:55PM +0800, penghao wrote: > From: "peng...@deepin.com" > > TI024Gen3 USB-audio is controlled by TI024Gen3,when TI024Gens > enter sleep mode, USB-audio will disconnect from USB bus port, > so disabled the /sys/bus/usb/*/power/wakeup Fixesimmediately > wakup form

[tip:sched/urgent] BUILD SUCCESS 062d3f95b630113e1156a31f376ad36e25da29a7

2020-07-24 Thread kernel test robot
allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a014-20200724 x86_64 randconfig-a016-20200724 x86_64 randconfig-a015-20200724 x86_64

Re: [PATCH 3/4] RISC-V: Do not rely on initrd_start/end computed during early dt parsing

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 10:12 PM Palmer Dabbelt wrote: > > On Wed, 15 Jul 2020 16:30:08 PDT (-0700), Atish Patra wrote: > > Currently, initrd_start/end are computed during early_init_dt_scan > > but used during arch_setup. We will get the following panic if initrd is > > used > > and

Re: [PATCH 1/4] RISC-V: Setup exception vector early

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 10:12 PM Palmer Dabbelt wrote: > > On Wed, 15 Jul 2020 16:30:06 PDT (-0700), Atish Patra wrote: > > The trap vector is set only in trap_init which may be too late in some > > cases. Early ioremap/efi spits many warning messages which may be useful. > > > > Setup the trap

Re: [PATCH] lockdep: Introduce CONFIG_LOCKDEP_LARGE

2020-07-24 Thread Tetsuo Handa
On 2020/07/25 13:48, Dmitry Vyukov wrote: >> diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c >> index 29a8de4..85ba7eb 100644 >> --- a/kernel/locking/lockdep.c >> +++ b/kernel/locking/lockdep.c >> @@ -1349,7 +1349,11 @@ static int add_lock_to_list(struct lock_class *this, >> /*

Re: [PATCH] amdgpu_dm: fix nonblocking atomic commit use-after-free

2020-07-24 Thread Mazin Rezk
On Saturday, July 25, 2020 12:59 AM, Duncan <1i5t5.dun...@cox.net> wrote: > On Sat, 25 Jul 2020 03:03:52 + > Mazin Rezk mn...@protonmail.com wrote: > > > > Am 24.07.20 um 19:33 schrieb Kees Cook: > > > > > > > There was a fix to disable the async path for this driver that > > > > worked

Re: [PATCH v6 3/4] RISC-V: Remove CLINT related code from timer and arch

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 12:19 AM Anup Patel wrote: > > Right now the RISC-V timer driver is convoluted to support: > 1. Linux RISC-V S-mode (with MMU) where it will use TIME CSR for >clocksource and SBI timer calls for clockevent device. > 2. Linux RISC-V M-mode (without MMU) where it will

Re: [PATCH v3 00/19] Introduce partial kernel_read_file() support

2020-07-24 Thread Scott Branden
On 2020-07-24 2:36 p.m., Kees Cook wrote: v3: - add reviews/acks - add "IMA: Add support for file reads without contents" patch - trim CC list, in case that's why vger ignored v2 v2: [missing from lkml archives! (CC list too long?) repeating changes here] - fix issues in firmware test suite -

[PATCH 0/3] Add RTC related clocks for Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
1.Add RTC related clocks bindings for the JZ4780 SoC, the X1000 SoC, and the X1830 SoC. 2.Add "_CLK_EXCLK_DIV512" and "_CLK_RTC" for the JZ4780 SoC, the X1000 SoC, and the X1830 SoC. 周琰杰 (Zhou Yanjie) (3): dt-bindings: clock: Add RTC related clocks for Ingenic SoCs. dt-bindings:

[PATCH 1/3] dt-bindings: clock: Add RTC related clocks for Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
Add RTC related clocks bindings for the JZ4780 SoC, the X1000 SoC, and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) --- include/dt-bindings/clock/jz4780-cgu.h | 2 ++ include/dt-bindings/clock/x1000-cgu.h | 2 ++ include/dt-bindings/clock/x1830-cgu.h

Re: [PATCH 4/4] riscv: Parse all memory blocks to remove unusable memory

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:09 PDT (-0700), Atish Patra wrote: Currently, maximum physical memory allowed is equal to -PAGE_OFFSET. That's why we remove any memory blocks spanning beyond that size. However, it is done only for memblock containing linux kernel which will not work if there are

Re: [PATCH 3/4] RISC-V: Do not rely on initrd_start/end computed during early dt parsing

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:08 PDT (-0700), Atish Patra wrote: Currently, initrd_start/end are computed during early_init_dt_scan but used during arch_setup. We will get the following panic if initrd is used and CONFIG_DEBUG_VIRTUAL is turned on. [0.00] [ cut here

[PATCH 3/3] clk: Ingenic: Add RTC related clocks for Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
The RTC unit in the Ingenic SoCs has two clock sources, one is from an external 32.768kHz clock, and the other is from an external 24MHz/48MHz main clock that is divided by 512. The choice of these two clocks is controlled by the ERCS bit in the OPCR register. The RNG unit will also use this

[PATCH 2/3] dt-bindings: clock: Add tabs to align code.

2020-07-24 Thread Zhou Yanjie
The "JZ4780_CLK_LCD0PIXCLK" and the "JZ4780_CLK_LCD1PIXCLK" in the "jz4780.h" and the new added "JZ4780_CLK_EXCLK_DIV512" in the previous patch is too long, add tabs to other lines to align them. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) ---

Re: [PATCH 1/4] RISC-V: Setup exception vector early

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:06 PDT (-0700), Atish Patra wrote: The trap vector is set only in trap_init which may be too late in some cases. Early ioremap/efi spits many warning messages which may be useful. Setup the trap vector early so that any warning/bug can be handled before generic code

Re: [PATCH 2/4] RISC-V: Set maximum number of mapped pages correctly

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:07 PDT (-0700), Atish Patra wrote: Currently, maximum number of mapper pages are set to the pfn calculated from the memblock size of the memblock containing kernel. This will work until that memblock spans the entire memory. However, it will be set to a wrong value if

[GIT] Networking

2020-07-24 Thread David Miller
1) Fix RCU locaking in iwlwifi, from Johannes Berg. 2) mt76 can access uninitialized NAPI struct, from Felix Fietkau. 3) Fix race in updating pause settings in bnxt_en, from Vasundhara Volam. 4) Propagate error return properly during unbind failures in ax88172a, from George Kennedy. 5)

Re: INFO: task hung in synchronize_rcu (3)

2020-07-24 Thread syzbot
syzbot has bisected this issue to: commit 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 Author: Vinicius Costa Gomes Date: Sat Sep 29 00:59:43 2018 + tc: Add support for configuring the taprio scheduler bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=149057ef10 start

Re: [PATCH] amdgpu_dm: fix nonblocking atomic commit use-after-free

2020-07-24 Thread Duncan
On Sat, 25 Jul 2020 03:03:52 + Mazin Rezk wrote: > > Am 24.07.20 um 19:33 schrieb Kees Cook: > > > > > There was a fix to disable the async path for this driver that > > > worked around the bug too, yes? That seems like a safer and more > > > focused change that doesn't revert the SLUB

Re: [PATCH v6 4/4] dt-bindings: timer: Add CLINT bindings

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 12:19 AM Anup Patel wrote: > > We add DT bindings documentation for CLINT device. > > Signed-off-by: Anup Patel > Reviewed-by: Palmer Dabbelt > Tested-by: Emil Renner Berhing > --- > .../bindings/timer/sifive,clint.yaml | 60 +++ > 1 file

Re: [PATCH v6 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 12:19 AM Anup Patel wrote: > > We add a separate CLINT timer driver for Linux RISC-V M-mode (i.e. > RISC-V NoMMU kernel). > > The CLINT MMIO device provides three things: > 1. 64bit free running counter register > 2. 64bit per-CPU time compare registers > 3. 32bit per-CPU

INFO: task hung in ovs_dp_cmd_del

2020-07-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e0145983 Merge branch 'fix-bpf_get_stack-with-PEBS' git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=16ce401f10 kernel config: https://syzkaller.appspot.com/x/.config?x=2b7b67c0c1819c87 dashboard

Re: [PATCH] lockdep: Introduce CONFIG_LOCKDEP_LARGE

2020-07-24 Thread Dmitry Vyukov
On Sat, Jul 25, 2020 at 3:30 AM Tetsuo Handa wrote: > > Since syzkaller continues various test cases until the kernel crashes, > syzkaller tends to examine more locking dependencies than normal systems. > As a result, syzbot is reporting that the fuzz testing was terminated > due to hitting upper

Re: [PATCH v5 00/12] Initial MStar/Sigmastar ARMv7 SoC support

2020-07-24 Thread Daniel Palmer
Hi Arnd, Thanks. There is one small fix for the v5 set. One of the DTS file names got broken when I rebased on a different machine. I'll send a patch for that later today. Cheer, Daniel On Fri, 24 Jul 2020 at 23:37, Arnd Bergmann wrote: > > On Fri, Jul 10, 2020 at 11:46 AM Daniel Palmer

[PATCH v2 14/18] tools: gpio: rename nlines to num_lines

2020-07-24 Thread Kent Gibson
Rename nlines to num_lines to be consistent with other usage for fields describing the number of entries in an array. Signed-off-by: Kent Gibson --- tools/gpio/gpio-utils.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/gpio/gpio-utils.c

[PATCH v2 18/18] tools: gpio: add multi-line monitoring to gpio-event-mon

2020-07-24 Thread Kent Gibson
Extend gpio-event-mon to support monitoring multiple lines. This would require multiple lineevent requests to implement using uAPI v1, but can be performed with a single line request using uAPI v2. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 41

[PATCH v2 17/18] tools: gpio: add debounce support to gpio-event-mon

2020-07-24 Thread Kent Gibson
Add support for debouncing monitored lines to gpio-event-mon. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index

[PATCH v2 16/18] tools: gpio: port gpio-event-mon to v2 uAPI

2020-07-24 Thread Kent Gibson
Port the gpio-event-mon tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 89 +++-- 1 file changed, 45 insertions(+), 44 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index

[PATCH v2 15/18] tools: gpio: port gpio-hammer to v2 uAPI

2020-07-24 Thread Kent Gibson
Port the gpio-hammer tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-hammer.c | 27 +- tools/gpio/gpio-utils.c | 109 +-- tools/gpio/gpio-utils.h | 48 + 3 files changed, 112 insertions(+), 72

[PATCH v2 08/18] gpiolib: cdev: support GPIOLINE_SET_CONFIG_IOCTL

2020-07-24 Thread Kent Gibson
Add support for GPIOLINE_SET_CONFIG_IOCTL, the uAPI v2 line set config ioctl. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 91 + 1 file changed, 91 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index

[PATCH v2 05/18] gpiolib: cdev: support GPIO_GET_LINE_IOCTL and GPIOLINE_GET_VALUES_IOCTL

2020-07-24 Thread Kent Gibson
Add support for requesting lines using the GPIO_GET_LINE_IOCTL, and returning their current values using GPIOLINE_GET_VALUES_IOCTL. Signed-off-by: Kent Gibson --- The struct line implementation is based on the V1 struct linehandle implementation. The line_ioctl() is a simple wrapper around

[PATCH v2 07/18] gpiolib: cdev: support edge detection for uAPI v2

2020-07-24 Thread Kent Gibson
Add support for edge detection to lines requested using GPIO_GET_LINE_IOCTL. Signed-off-by: Kent Gibson --- The edge_detector implementation is based on the V1 lineevent implementation. drivers/gpio/gpiolib-cdev.c | 314 +++- drivers/gpio/gpiolib.c | 2 +

[PATCH v2 13/18] tools: gpio: port gpio-watch to v2 uAPI

2020-07-24 Thread Kent Gibson
Port the gpio-watch tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-watch.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/gpio/gpio-watch.c b/tools/gpio/gpio-watch.c index 5cea24fddfa7..0dd5a04ab250 100644 ---

[PATCH v2 12/18] tools: gpio: port lsgpio to v2 uAPI

2020-07-24 Thread Kent Gibson
Port the lsgpio tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/lsgpio.c | 102 1 file changed, 47 insertions(+), 55 deletions(-) diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index b08d7a5e779b..0a993d535707 100644

[PATCH v2 11/18] gpio: uapi: document uAPI v1 as deprecated

2020-07-24 Thread Kent Gibson
Update uAPI documentation to deprecate v1 structs and ioctls. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index 3f6db33014f0..92a74c245534 100644

[PATCH v2 09/18] gpiolib: cdev: support GPIOLINE_SET_VALUES_IOCTL

2020-07-24 Thread Kent Gibson
Add support for the GPIOLINE_SET_VALUES_IOCTL. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 66 + 1 file changed, 66 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 4822cb10aa40..0482a16388a0 100644

[PATCH v2 06/18] gpiolib: cdev: support GPIO_GET_LINEINFO_V2_IOCTL and GPIO_GET_LINEINFO_WATCH_V2_IOCTL

2020-07-24 Thread Kent Gibson
Add support for GPIO_GET_LINEINFO_V2_IOCTL and GPIO_GET_LINEINFO_WATCH_V2_IOCTL. Signed-off-by: Kent Gibson --- The core of this change is the event kfifo switching to contain struct gpioline_info_changed_v2, instead of V1 as V2 is richer. The two uAPI versions are mostly independent - other

[PATCH v2 10/18] gpiolib: cdev: support setting debounce

2020-07-24 Thread Kent Gibson
Add support for setting debounce on a line via the GPIO uAPI. Where debounce is not supported by hardware, a software debounce is provided. Signed-off-by: Kent Gibson --- The implementation of the software debouncer waits for the line to be stable for the debounce period before determining if a

[PATCH v2 03/18] gpiolib: make cdev a build option

2020-07-24 Thread Kent Gibson
Make the gpiolib-cdev module a build option. This allows the CDEV interface to be removed from the kernel to reduce kernel size in applications where is it not required, and provides the parent for other other CDEV interface specific build options to follow. Suggested-by: Bartosz Golaszewski

[PATCH v2 04/18] gpiolib: add build option for CDEV v1 ABI

2020-07-24 Thread Kent Gibson
Add a build option to allow the removal of the CDEV v1 ABI. Suggested-by: Bartosz Golaszewski Signed-off-by: Kent Gibson --- This patch is before the V2 implementation, and is non-functional until that patch, as some parts of that patch would be written slightly differently if removing V1 was

[PATCH v2 02/18] gpio: uapi: define uAPI v2

2020-07-24 Thread Kent Gibson
Add a new version of the uAPI to address existing 32/64-bit alignment issues, add support for debounce and event sequence numbers, and provide some future proofing by adding padding reserved for future use. The alignment issue relates to the gpioevent_data, which packs to different sizes on

[PATCH v2 01/18] gpio: uapi: define GPIO_MAX_NAME_SIZE for array sizes

2020-07-24 Thread Kent Gibson
Replace constant array sizes with a macro constant to clarify the source of array sizes, provide a place to document any constraints on the size, and to simplify array sizing in userspace if constructing structs from their composite fields. Signed-off-by: Kent Gibson --- This change is not

[PATCH v2 00/18] gpio: cdev: add uAPI V2

2020-07-24 Thread Kent Gibson
This patchset defines and implements adds a new version of the GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add support for debounce, event sequence numbers, and allowing for requested lines with different configurations. It provides some future proofing by adding optional

[PATCH 14216/14216] ALSA: usb-audio: This patch for prevent auto wakeup from s3 trig by usb disconnect signal from Lenovo Thinkcentre TI024Gen3 USB-audio.

2020-07-24 Thread penghao
From: "peng...@deepin.com" TI024Gen3 USB-audio is controlled by TI024Gen3,when TI024Gens enter sleep mode, USB-audio will disconnect from USB bus port, so disabled the /sys/bus/usb/*/power/wakeup Fixesimmediately wakup form s3 state Signed-off-by: peng...@uniontech.com Signed-off-by:

Re: [PATCH v3 0/3] Add functions to operate USB PHY related clock.

2020-07-24 Thread Zhou Yanjie
Gentle ping. 在 2020/7/1 上午12:38, 周琰杰 (Zhou Yanjie) 写道: v2->v3: 1.Remove the wrong "WARN()". 2.Remove extra blank line. 3.Fix wrong parameters in recalc_rate/set_rate functions. 周琰杰 (Zhou Yanjie) (3): clk: JZ4780: Add functions for enable and disable USB PHY. clk: JZ4780: Reformat the

[PATCH v8 1/5] PCI: Conditionally initialize host bridge native_* members

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan If CONFIG_PCIEPORTBUS is not enabled in kernel then initialing struct pci_host_bridge PCIe specific native_* members to "1" is incorrect. So protect the PCIe specific member initialization with CONFIG_PCIEPORTBUS. Signed-off-by: Kuppuswamy Sathyanarayanan ---

[PATCH v8 4/5] PCI/portdrv: Remove redundant pci_aer_available() check in DPC enable logic

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan In DPC service enable logic, check for services & PCIE_PORT_SERVICE_AER implies pci_aer_available() is true. So there is no need to explicitly check it again. Also, passing pcie_ports=dpc-native in kernel command line implies DPC needs to be enabled in native

[PATCH v8 2/5] ACPI/PCI: Ignore _OSC negotiation result if pcie_ports_native is set.

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan pcie_ports_native is set only if user requests native handling of PCIe capabilities via pcie_port_setup command line option. User input takes precedence over _OSC based control negotiation result. So consider the _OSC negotiated result only if pcie_ports_native

[PATCH v8 5/5] PCI/DPC: Move AER/DPC dependency checks out of DPC driver

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Currently, AER and DPC Capabilities dependency checks is distributed between DPC and portdrv service drivers. So move them out of DPC driver. Also, since services & PCIE_PORT_SERVICE_AER check already ensures AER native ownership, no need to add additional

[PATCH v8 3/5] ACPI/PCI: Ignore _OSC DPC negotiation result if pcie_ports_dpc_native is set.

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan pcie_ports_dpc_native is set only if user requests native handling of PCIe DPC capability via pcie_port_setup command line option. User input takes precedence over _OSC based control negotiation result. So consider the _OSC negotiated result for DPC ownership

[PATCH v8 0/5] Simplify PCIe native ownership detection logic

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Currently, PCIe capabilities ownership status is detected by verifying the status of pcie_ports_native, pcie_ports_dpc_native and _OSC negotiated results (cached in struct pci_host_bridge ->native_* members). But this logic can be simplified, and we can use only

[PATCH v6 4/5] USB: PHY: JZ4770: Reformat the code to align it.

2020-07-24 Thread Zhou Yanjie
Reformat the code (add one level of indentation before the values), to align the code in the macro definition section. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Add support for

[PATCH v6 3/5] USB: PHY: JZ4770: Add support for new Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
Add support for probing the phy-jz4770 driver on the JZ4780 SoC, the X1000 SoC and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Add bindings for the

[PATCH v6 0/5] Add USB PHY support for new Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
v5->v6: 1.Fix the warning that appears during compilation. 2.Used the generic PHY framework API to create the PHY, and move the driver to driver/phy/ingenic. 周琰杰 (Zhou Yanjie) (5): dt-bindings: USB: Add bindings for new Ingenic SoCs. USB: PHY: JZ4770: Unify code style and simplify code.

[PATCH v6 1/5] dt-bindings: USB: Add bindings for new Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
Add the USB PHY bindings for the JZ4780 SoC, the X1000 SoC and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) Acked-by: Rob Herring --- Notes: v1->v2: Add bindings for the JZ4780 SoC. v2->v3: No change. v3->v4: No

[PATCH v6 2/5] USB: PHY: JZ4770: Unify code style and simplify code.

2020-07-24 Thread Zhou Yanjie
1.Modify the macro definition to unify "#define USBPCR_ n" into the "#define USBPCR_ (n << USBPCR__LSB)" style, so as to unify the code style in the "jz4770_phy_init()" and simplify the code. 2.Remove unused macro definitions to simplify the code. Tested-by: 周正 (Zhou Zheng)

Re: [v7, PATCH 6/7] drm/mediatek: add fifo_size into rdma private data

2020-07-24 Thread Chun-Kuang Hu
The primary thing of this patch is to get fifo size from device tree. So you may modify title to show the primary thing. Yongqiang Niu 於 2020年7月23日 週四 上午10:12寫道: > > the fifo size of rdma in mt8183 is different. > rdma0 fifo size is 5k > rdma1 fifo size is 2k I would like the description to be

[PATCH 02/10] crypto: hisilicon/zip - unify naming style for functions and macros

2020-07-24 Thread Yang Shen
1.Add prefix 'HZIP' for some macros 2.Add prefix 'hisi_zip' for some functions Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 35 + 1 file changed, 18 insertions(+), 17 deletions(-) diff --git

[PATCH 08/10] crypto: hisilicon/zip - move some private macros from 'zip.h' to 'zip_crypto.c'

2020-07-24 Thread Yang Shen
Some macros which are defined in 'zip.h' are related to the struct 'hisi_zip_sqe' and are only used in 'zip_crypto.c'. So move them from 'zip.h' to 'zip_crypto.c'. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip.h| 14 --

[PATCH 03/10] crypto: hisilicon/zip - modify debugfs interface parameters

2020-07-24 Thread Yang Shen
From: Shukun Tan Update debugfs interface parameters Signed-off-by: Shukun Tan Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 55 ++--- 1 file changed, 24 insertions(+), 31 deletions(-) diff --git

[PATCH 05/10] crypto: hisilicon/zip - use a enum parameter instead of some macros

2020-07-24 Thread Yang Shen
Macros 'QPC_COMP', 'QPC_DECOMP' and 'HZIP_CTX_Q_NUM' are relative and incremental. So, use an enum instead. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git

[PATCH 01/10] crypto: hisilicon/zip - remove some useless parameters

2020-07-24 Thread Yang Shen
1.Remove the macro 'HZIP_VF_NUM'. 2.Remove 'list' of the struct 'hisi_zip' Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip.h | 1 - drivers/crypto/hisilicon/zip/zip_main.c | 1 - 2 files changed, 2 deletions(-) diff --git

[PATCH 06/10] crypto: hisilicon/zip - add print for error branch

2020-07-24 Thread Yang Shen
Add print for some error branches. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 68 +++ drivers/crypto/hisilicon/zip/zip_main.c | 8 ++-- 2 files changed, 56 insertions(+), 20 deletions(-) diff --git

[PATCH 00/10] crypto: hisilicon/zip - misc clean up

2020-07-24 Thread Yang Shen
This patchset make some clean up: patch 1:remove useless parameters patch 4:replace 'sprintf' with 'scnprintf' patch 7:fix static check warning and the rest patch fix some coding style This patchset depends on: https://patchwork.kernel.org/cover/11680181/ Shukun Tan (1): crypto: hisilicon/zip

[PATCH 10/10] crypto: hisilicon/zip - fix some coding styles

2020-07-24 Thread Yang Shen
1.Unified alignment styles 2.Remove unnecessary goto branch 3.Remove address printf Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 13 ++--- drivers/crypto/hisilicon/zip/zip_main.c | 16 2 files changed, 10

[PATCH 07/10] crypto: hisilicon/zip - fix static check warning

2020-07-24 Thread Yang Shen
Fix some code for PClint warning: Warning - Suspicious Cast Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c

[PATCH 09/10] crypto: hisilicon/zip - supplement some comments

2020-07-24 Thread Yang Shen
Supplement some comments. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index

[PATCH 04/10] crypto: hisilicon/zip - replace 'sprintf' with 'scnprintf'

2020-07-24 Thread Yang Shen
Replace 'sprintf' with 'scnprintf' to avoid overrun. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c

Re: [v7, PATCH 7/7] drm/mediatek: add support for mediatek SOC MT8183

2020-07-24 Thread Chun-Kuang Hu
Hi, Yongqiang: Yongqiang Niu 於 2020年7月25日 週六 上午11:32寫道: > > On Sat, 2020-07-25 at 07:24 +0800, Chun-Kuang Hu wrote: > > Hi Yongqiang: > > > > Yongqiang Niu 於 2020年7月23日 週四 上午10:15寫道: > > > > > > This patch add support for mediatek SOC MT8183 > > > 1.ovl_2l share driver with ovl > > > > I think

[tip:perf/urgent] BUILD SUCCESS fe5ed7ab99c656bd2f5b79b49df0e9ebf2cead8a

2020-07-24 Thread kernel test robot
randconfig-a004-20200725 i386 randconfig-a006-20200725 i386 randconfig-a002-20200725 i386 randconfig-a001-20200725 x86_64 randconfig-a014-20200724 x86_64 randconfig-a016-20200724 x86_64 randconfig-a015-20200724

[tip:master] BUILD SUCCESS ada8a84a9bb8ed2f17d30fff369c7c191a94bb9e

2020-07-24 Thread kernel test robot
rhel-kconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a014-20200724 x86_64 randconfig-a016-20200724 x86_64 randconfig-a015-20200724 x86_64 randconfig-a012-20200724

Re: [v7, PATCH 7/7] drm/mediatek: add support for mediatek SOC MT8183

2020-07-24 Thread Yongqiang Niu
On Thu, 2020-07-23 at 17:40 +0200, Matthias Brugger wrote: > > On 23/07/2020 04:03, Yongqiang Niu wrote: > > This patch add support for mediatek SOC MT8183 > > 1.ovl_2l share driver with ovl > > 2.rdma1 share drive with rdma0, but fifo size is different > > 3.add mt8183 mutex private data, and

[tip:timers/core] BUILD SUCCESS 31cd0e119d50cf27ebe214d1a8f7ca36692f13a5

2020-07-24 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core branch HEAD: 31cd0e119d50cf27ebe214d1a8f7ca36692f13a5 timers: Recalculate next timer interrupt only when necessary i386-tinyconfig vmlinux size:

Re: [v7, PATCH 7/7] drm/mediatek: add support for mediatek SOC MT8183

2020-07-24 Thread Yongqiang Niu
On Sat, 2020-07-25 at 07:24 +0800, Chun-Kuang Hu wrote: > Hi Yongqiang: > > Yongqiang Niu 於 2020年7月23日 週四 上午10:15寫道: > > > > This patch add support for mediatek SOC MT8183 > > 1.ovl_2l share driver with ovl > > I think this is done in [1], [2], [3], this patch just add the support > of

[tip:x86/build] BUILD SUCCESS 587af649bcc04eb016822f209a975005c0092151

2020-07-24 Thread kernel test robot
-20200725 i386 randconfig-a006-20200725 i386 randconfig-a002-20200725 i386 randconfig-a001-20200725 x86_64 randconfig-a014-20200724 x86_64 randconfig-a016-20200724 x86_64 randconfig-a015-20200724 x86_64

Re: [v7, PATCH 2/7] mtk-mmsys: add mmsys private data

2020-07-24 Thread Yongqiang Niu
On Thu, 2020-07-23 at 11:32 +0200, Enric Balletbo Serra wrote: > Hi Yongqiang Niu, > > Thank you for your patch. > > Missatge de Yongqiang Niu del dia dj., 23 > de jul. 2020 a les 4:05: > > > > add mmsys private data > > > > I think this change requires a better explanation of what you are >

[RFC][PATCH] dma-heap: Add proper kref handling on dma-buf heaps

2020-07-24 Thread John Stultz
Add proper refcounting on the dma_heap structure. While existing heaps are built-in, we may eventually have heaps loaded from modules, and we'll need to be able to properly handle the references to the heaps Cc: Sumit Semwal Cc: Andrew F. Davis Cc: Benjamin Gaignard Cc: Liam Mark Cc: Laura

Re: [PATCH] watch_queue: Limit the number of watches a user can hold

2020-07-24 Thread Jarkko Sakkinen
On Fri, Jul 24, 2020 at 11:17:26PM +0100, David Howells wrote: > Impose a limit on the number of watches that a user can hold so that they > can't use this mechanism to fill up all the available memory. > > This is done by putting a counter in user_struct that's incremented when a > watch is

Re: [PATCH v5 5/6] kprobes: Use text_alloc() and text_free()]

2020-07-24 Thread Jarkko Sakkinen
On Fri, Jul 24, 2020 at 03:16:08PM +0300, Ard Biesheuvel wrote: > On Fri, 24 Jul 2020 at 12:27, Ingo Molnar wrote: > > > > > > * Jarkko Sakkinen wrote: > > > > > Use text_alloc() and text_free() instead of module_alloc() and > > > module_memfree() when an arch provides them. > > > > > > Cc:

Re: [PATCH] drivers/net/wan: lapb: Corrected the usage of skb_cow

2020-07-24 Thread David Miller
From: Xie He Date: Fri, 24 Jul 2020 09:33:47 -0700 > This patch fixed 2 issues with the usage of skb_cow in LAPB drivers > "lapbether" and "hdlc_x25": > > 1) After skb_cow fails, kfree_skb should be called to drop a reference > to the skb. But in both drivers, kfree_skb is not called. > > 2)

Re: [PATCH v5 5/6] kprobes: Use text_alloc() and text_free()

2020-07-24 Thread Jarkko Sakkinen
On Fri, Jul 24, 2020 at 11:27:46AM +0200, Ingo Molnar wrote: > > * Jarkko Sakkinen wrote: > > > Use text_alloc() and text_free() instead of module_alloc() and > > module_memfree() when an arch provides them. > > > > Cc: linux...@kvack.org > > Cc: Andi Kleen > > Cc: Masami Hiramatsu > > Cc:

Re: [v7, PATCH 2/7] mtk-mmsys: add mmsys private data

2020-07-24 Thread Yongqiang Niu
On Sat, 2020-07-25 at 10:11 +0800, Chun-Kuang Hu wrote: > Hi, Yongqiang: > > Yongqiang Niu 於 2020年7月23日 週四 上午10:05寫道: > > > > add mmsys private data > > > > Feature: drm/mediatek > > Signed-off-by: Yongqiang Niu > > --- > > drivers/soc/mediatek/Makefile | 1 + > >

Re: [PATCH v5 0/4] Add USB PHY support for new Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
Hello Felipe, 在 2020/7/23 下午5:19, Felipe Balbi 写道: 周琰杰 (Zhou Yanjie) writes: 1.separate the adjustments to the code style into a separate patch. 2.Modify the help message, make it more future-proof. 3.Drop the unnecessary comment about hardware reset. 4.Create 'soc_info' structures

Re: [PATCH] drm/vkms: add missing drm_crtc_vblank_put to the get/put pair on flush

2020-07-24 Thread Sidong Yang
On Wed, Jul 22, 2020 at 05:17:05PM +0200, Daniel Vetter wrote: > On Wed, Jul 22, 2020 at 4:06 PM Melissa Wen wrote: > > > > On 07/22, dan...@ffwll.ch wrote: > > > On Wed, Jul 22, 2020 at 08:04:11AM -0300, Melissa Wen wrote: > > > > This patch adds a missing drm_crtc_vblank_put op to the pair > >

Re: [QUESTION] Sharing a `struct page` across multiple `struct address_space` instances

2020-07-24 Thread Matthew Wilcox
On Fri, Jul 24, 2020 at 05:22:21PM -0700, Vito Caputo wrote: > Prior to looking at the code, conceptually I was envisioning the pages > in the reflink source inode's address_space would simply get their > refcounts bumped as they were added to the dest inode's address_space, > with some CoW flag

[PATCH] svc: add missed destroy_workqueue when gb_svc_create fails

2020-07-24 Thread Li Heng
destroy_workqueue() should be called to destroy svc->wq when gb_svc_create() init resources fails. Fixes: 8465def499c7 ("staging: greybus: move the greybus core to drivers/greybus") Reported-by: Hulk Robot Signed-off-by: Li Heng --- drivers/greybus/svc.c | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH v2 0/3] net: dsa: mv88e6xxx: port mtu support

2020-07-24 Thread David Miller
From: Chris Packham Date: Fri, 24 Jul 2020 11:21:19 +1200 > This series connects up the mv88e6xxx switches to the dsa infrastructure for > configuring the port MTU. The first patch is also a bug fix which might be a > candiatate for stable. > > I've rebased this series on top of net-next/master

Re: [PATCH] amdgpu_dm: fix nonblocking atomic commit use-after-free

2020-07-24 Thread Mazin Rezk
On Friday, July 24, 2020 5:19 PM, Paul Menzel wrote: > Dear Kees, > > Am 24.07.20 um 19:33 schrieb Kees Cook: > > > On Fri, Jul 24, 2020 at 09:45:18AM +0200, Paul Menzel wrote: > > > > > Am 24.07.20 um 00:32 schrieb Kees Cook: > > > > > > > On Thu, Jul 23, 2020 at 09:10:15PM +, Mazin Rezk

Re: [PATCH v3 5/6] powerpc/pseries: implement paravirt qspinlocks for SPLPAR

2020-07-24 Thread Waiman Long
On 7/24/20 3:10 PM, Waiman Long wrote: On 7/24/20 4:16 AM, Will Deacon wrote: On Thu, Jul 23, 2020 at 08:47:59PM +0200, pet...@infradead.org wrote: On Thu, Jul 23, 2020 at 02:32:36PM -0400, Waiman Long wrote: BTW, do you have any comment on my v2 lock holder cpu info qspinlock patch? I will

Re: [PATCH v5 1/6] kprobes: Remove dependency to the module_mutex

2020-07-24 Thread Jarkko Sakkinen
On Fri, Jul 24, 2020 at 11:17:11AM +0200, Ingo Molnar wrote: > > * Jarkko Sakkinen wrote: > > > --- a/kernel/kprobes.c > > +++ b/kernel/kprobes.c > > @@ -564,7 +564,7 @@ static void kprobe_optimizer(struct work_struct *work) > > cpus_read_lock(); > > mutex_lock(_mutex); > > /* Lock

Re: [PATCH 00/40] Set 5: Penultimate set of SCSI related W=1 warnings

2020-07-24 Thread Martin K. Petersen
On Thu, 23 Jul 2020 13:24:06 +0100, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > Hopefully this is the penultimate set. > > Lee Jones (40): > scsi: lpfc:

Re: [PATCH 00/40] Set 4: Next set of SCSI related W=1 warnings

2020-07-24 Thread Martin K. Petersen
On Tue, 21 Jul 2020 17:41:08 +0100, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > This brings the total of W=1 SCSI wanings from 1690 in v5.8-rc1 to 817. > > Lee

Re: [PATCH] net: cdc_ncm: USB_NET_CDC_NCM selects USB_NET_CDCETHER

2020-07-24 Thread David Miller
From: t...@redhat.com Date: Thu, 23 Jul 2020 07:22:10 -0700 > From: Tom Rix > > A link error > > ld: drivers/net/usb/cdc_ncm.o: > undefined reference to `usbnet_cdc_update_filter' > > usbnet_cdc_update_filter is defined in cdc_ether.c > Building of cdc_ether.o is controlled by

[PATCH] RDMA/core: fix return error value to negative

2020-07-24 Thread Li Heng
Fixes: 8d9ec9addd6c (IB/core: Add a sgid_attr pointer to struct rdma_ah_attr) Reported-by: Hulk Robot Signed-off-by: Li Heng --- drivers/infiniband/core/verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c

Re: [PATCH -next] scsi: lpfc: Add dependency on CPU_FREQ

2020-07-24 Thread Martin K. Petersen
On Tue, 21 Jul 2020 19:30:27 -0700, Guenter Roeck wrote: > Since commit 317aeb83c92b ("scsi: lpfc: Add blk_io_poll support for > latency improvment"), the lpfc driver depends on CPUFREQ. Without it, > builds fail with > > drivers/scsi/lpfc/lpfc_sli.c: In function 'lpfc_init_idle_stat_hb': >

Re: [PATCH] scsi: ppa: Remove superfluous breaks

2020-07-24 Thread Martin K. Petersen
On Tue, 14 Jul 2020 18:59:31 +0800, Yi Wang wrote: > Remove superfluous breaks, as there is a "return" before them. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: ppa: Remove superfluous breaks https://git.kernel.org/mkp/scsi/c/6671eebd672c -- Martin K. Petersen Oracle Linux

Re: [PATCH v1 0/2] scsi: libsas: An improvement on error handle and tidy-up

2020-07-24 Thread Martin K. Petersen
On Wed, 22 Jul 2020 17:04:01 +0800, Luo Jiaxing wrote: > This patch introduces an improvement to reduce error handle time and a > tidy-up, including: > - postreset() is deleted from sas_sata_ops. > - Do not perform hard reset and delayed retry on a removed SATA disk. This > can effectively reduce

  1   2   3   4   5   6   7   8   9   10   >