[PATCH] arm64: dts: qcom: sdm845: Use UFS reset gpio instead of pinctrl

2019-08-29 Thread Stephen Boyd
We use a pinctrl "workaround" to toggle the UFS reset line. Now that UFS controller can issue the reset, just specify the line as a GPIO and let it be reset that way. Signed-off-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 51 +- 1 file changed, 2

Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-08-29 Thread Jassi Brar
On Tue, Aug 27, 2019 at 10:02 PM Peng Fan wrote: > > From: Peng Fan > > The ARM SMC/HVC mailbox binding describes a firmware interface to trigger > actions in software layers running in the EL2 or EL3 exception levels. > The term "ARM" here relates to the SMC instruction as part of the ARM >

Re: [PATCH v2 3/3] nvme: fire discovery log page change events to userspace

2019-08-29 Thread Christoph Hellwig
On Thu, Aug 29, 2019 at 11:21:02AM -0700, Sagi Grimberg wrote: >> Yes we do, userspace should use it to order events. Does udev not >> handle that properly today? > > The problem is not ordering of events, its really about the fact that > the chardev can be removed and reallocated for a different

Re: [PATCH] arm64: numa: check the node id before accessing node_to_cpumask_map

2019-08-29 Thread Michal Hocko
On Fri 30-08-19 10:26:31, Yunsheng Lin wrote: > Some buggy bios may not set the device' numa id, and dev_to_node > will return -1, which may cause global-out-of-bounds error > detected by KASAN. Why should we workaround a buggy bios like that? Is it so widespread and no BIOS update available?

Re: [PATCH] mm: memcontrol: fix percpu vmstats and vmevents flush

2019-08-29 Thread Michal Hocko
On Thu 29-08-19 13:31:10, Shakeel Butt wrote: > Instead of using raw_cpu_read() use per_cpu() to read the actual data of > the corresponding cpu otherwise we will be reading the data of the > current cpu for the number of online CPUs. > > Fixes: bb65f89b7d3d ("mm: memcontrol: flush percpu

Re: [PATCH 5/8] media: cedrus: Detect first slice of a frame

2019-08-29 Thread Boris Brezillon
On Thu, 29 Aug 2019 21:04:28 +0200 Jernej Škrabec wrote: > Dne ponedeljek, 26. avgust 2019 ob 20:28:31 CEST je Boris Brezillon > napisal(a): > > Hi Jernej, > > > > On Thu, 22 Aug 2019 21:44:57 +0200 > > > > Jernej Skrabec wrote: > > > When codec supports multiple slices in one frame, VPU

[PATCH] fs/epoll: fix the edge-triggered mode for epoll itself

2019-08-29 Thread hev
From: Heiher The structure of event pools: efd[2]: { sfd[0] (EPOLLIN) } efd[1]: { efd[2] (EPOLLIN) } efd[0]: { efd[2] (EPOLLIN | EPOLLET) } When sfd[0] to be readable: * the epoll_wait(efd[0], ..., 0) should return efd[2]'s events on first call, and returns 0 on

Re: [PATCH] leds: pwm: Use struct_size() helper

2019-08-29 Thread Kees Cook
On Thu, Aug 29, 2019 at 07:53:20PM -0500, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread Jiri Pirko
Fri, Aug 30, 2019 at 12:12:01AM CEST, da...@davemloft.net wrote: >From: Ido Schimmel >Date: Thu, 29 Aug 2019 22:36:13 +0300 > >> I fully agree that we should make it easy for users to capture offloaded >> traffic, which is why I suggested patching libpcap. Add a flag to >> capable netdevs that

Re: [PATCH] xfs: Initialize label array properly

2019-08-29 Thread Darrick J. Wong
On Fri, Aug 30, 2019 at 02:37:07PM +0900, Austin Kim wrote: > In case kernel stack variable is not initialized properly, > there is a risk of kernel information disclosure. > > So, initialize 'char label[]' array with null characters. Got a testcase for this? At least a couple other filesystems

Re: [PATCH 1/2] w1: add 1-wire master driver for IP block found in SGI ASICs

2019-08-29 Thread kbuild test robot
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [cannot apply to v5.3-rc6 next-20190829] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH] mm/vmalloc: move 'area->pages' after if statement

2019-08-29 Thread Michal Hocko
On Fri 30-08-19 12:57:16, Austin Kim wrote: > If !area->pages statement is true where memory allocation fails, > area is freed. > > In this case 'area->pages = pages' should not executed. > So move 'area->pages = pages' after if statement. > > Signed-off-by: Austin Kim Acked-by: Michal Hocko

Re: [PATCH 4/5] dt-bindings: dma: ti-edma: Add option for reserved channel ranges

2019-08-29 Thread Peter Ujfalusi
Rob, On 30/08/2019 1.47, Rob Herring wrote: > On Fri, Aug 23, 2019 at 03:56:17PM +0300, Peter Ujfalusi wrote: >> Similarly to paRAM slots, channels can be used by other cores. >> >> Add optional property to configure the reserved channel ranges. >> >> Signed-off-by: Peter Ujfalusi >> --- >>

Re: [RFC PATCH v2 2/2] ELF: Add ELF program property parsing support

2019-08-29 Thread Kees Cook
On Fri, Aug 23, 2019 at 06:23:40PM +0100, Dave Martin wrote: > ELF program properties will needed for detecting whether to enable > optional architecture or ABI features for a new ELF process. > > For now, there are no generic properties that we care about, so do > nothing unless

Re: [PATCH v3 07/11] xfs: remove unlikely() from WARN_ON() condition

2019-08-29 Thread Christoph Hellwig
On Thu, Aug 29, 2019 at 07:50:21PM +0300, Denis Efremov wrote: > "unlikely(WARN_ON(x))" is excessive. WARN_ON() already uses unlikely() > internally. Looks good, Reviewed-by: Christoph Hellwig

[PATCH] xfs: Initialize label array properly

2019-08-29 Thread Austin Kim
In case kernel stack variable is not initialized properly, there is a risk of kernel information disclosure. So, initialize 'char label[]' array with null characters. Signed-off-by: Austin Kim --- fs/xfs/xfs_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/2] arm64: dts: qcom: qcs404: add sleep clk fixed rate oscillator

2019-08-29 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz (2019-08-29 13:03:39) > This fixed rate clock is required for the operation of some devices > (ie watchdog). > > Signed-off-by: Jorge Ramirez-Ortiz > --- Reviewed-by: Stephen Boyd

Re: [PATCH 2/2] arm64: dts: qcom: qcs404: add the watchdog node

2019-08-29 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz (2019-08-29 13:03:40) > Allows QCS404 based designs to enable watchdog support > > Signed-off-by: Jorge Ramirez-Ortiz > --- Reviewed-by: Stephen Boyd

Re: [RESEND PATCH v2 1/2] dt-bindings: reset: aoss: Add AOSS reset binding for SC7180 SoCs

2019-08-29 Thread Stephen Boyd
Quoting Sibi Sankar (2019-08-24 08:24:10) > Add SC7180 AOSS reset to the list of possible bindings. > > Signed-off-by: Sibi Sankar > --- > Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | 4 ++-- Can you convert this binding to YAML/JSON schema? Would help to describe the 'one of'

Re: [PATCH v5, 12/32] drm/mediatek: add mmsys private data for ddp path config

2019-08-29 Thread CK Hu
Hi, Yongqiang: On Thu, 2019-08-29 at 22:50 +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > This patch add mmsys private data for ddp path config > all these register offset and value will be different in future SOC > add these define into mmsys private data > u32

Re: [PATCH] arm64: dts: sdm845: Add parent clock for rpmhcc

2019-08-29 Thread Stephen Boyd
Quoting Vinod Koul (2019-08-22 10:11:35) > RPM clock controller has parent as xo, so specify that in DT node for > rpmhcc > > Signed-off-by: Vinod Koul > --- Reviewed-by: Stephen Boyd

Re: [PATCH V3 01/10] dt-bindings: soc: Add dvfsrc driver bindings

2019-08-29 Thread Henry Chen
On Thu, 2019-08-29 at 14:16 -0500, Rob Herring wrote: > On Wed, 28 Aug 2019 20:28:39 +0800, Henry Chen wrote: > > Document the binding for enabling dvfsrc on MediaTek SoC. > > > > Signed-off-by: Henry Chen > > --- > > .../devicetree/bindings/soc/mediatek/dvfsrc.txt| 23 > >

Re: [RFC][PATCH 1/1] Carry ima measurement log for arm64 via kexec_file_load

2019-08-29 Thread Stephen Boyd
Why is linux-arm-msm list CCed on this topic? Quoting Prakhar Srivastava (2019-08-29 13:05:32) > Carry ima measurement log for arm64 via kexec_file_load. > add support to kexec_file_load to pass the ima measurement log These first two sentences look sort of odd for a commit text. > > This

LOANS !!!

2019-08-29 Thread DIAL DIRECT LOANS SA
Dial Direct Loan SA Consolidate your debts with Dial Direct Loan SA for your peace of mind at a fixed interest rate of 4.75%,personal and business loans are also welcome.For details file in your applications by sending an email to:dialdirectloan...@mail2consultant.com. Yours in Service,

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-29 Thread Sergey Senozhatsky
On (08/29/19 11:01), shuah wrote: [..] > Hi Sergey, > > What are the guidelines for using printk(). I recall some discussion > about not using printk(). I am seeing the following from checkpatch > script: Hello, > WARNING: Prefer [subsystem eg: netdev]_level([subsystem]dev, ... then >

Re: [PATCH v4] firmware: google: check if size is valid when decoding VPD data

2019-08-29 Thread Stephen Boyd
Quoting Hung-Te Lin (2019-08-29 19:23:58) > The VPD implementation from Chromium Vital Product Data project used to > parse data from untrusted input without checking if the meta data is > invalid or corrupted. For example, the size from decoded content may > be negative value, or larger than

[PATCH v2] Bluetooth: hci_qca: wait for Pre shutdown complete event before sending the Power off pulse

2019-08-29 Thread Harish Bandi
When SoC receives pre shut down command, it share the same with other COEX shared clients. So SoC needs a short time after sending VS pre shutdown command before turning off the regulators and sending the power off pulse. Along with short delay, needs to wait for command complete event for Pre

Hoping to hear from you

2019-08-29 Thread Mr.Patrick Joseph
Dear Sir/Madam, Although you might be apprehensive about my email as we have never met before. I am Mr.Patrick Joseph, a Banker and Head of Operations with Bank here in Burkina Faso West Africa, there is the sum of $28.500,000.00 Million Dollars currently in my branch, there were no beneficiary

Re: Adding depends-on DT binding to break cyclic dependencies

2019-08-29 Thread Saravana Kannan
On Thu, Aug 29, 2019 at 9:28 AM Rob Herring wrote: > > On Thu, Aug 22, 2019 at 1:55 AM Saravana Kannan wrote: > > > > Hi Rob, > > > > Frank, Greg and I got together during ELC and had an extensive and > > very productive discussion about my "postboot supplier state cleanup" > > patch series [1].

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-29 Thread Joe Perches
On Thu, 2019-08-29 at 21:44 -0700, Joe Perches wrote: > On Thu, 2019-08-29 at 11:01 -0600, shuah wrote: [] > > WARNING: Prefer [subsystem eg: netdev]_level([subsystem]dev, ... then > > dev_level(dev, ... then pr_level(... to printk(KERN_LEVEL ... > > #105: FILE: include/kunit/test.h:343: > > +

Re: [PATCH v2] kunit: fix failure to build without printk

2019-08-29 Thread Joe Perches
On Thu, 2019-08-29 at 11:01 -0600, shuah wrote: > On 8/28/19 3:49 AM, Sergey Senozhatsky wrote: > > On (08/28/19 02:31), Brendan Higgins wrote: > > [..] > > > Previously KUnit assumed that printk would always be present, which is > > > not a valid assumption to make. Fix that by removing call to >

Re: [PATCH V2 1/1] spi: bcm-qspi: Make BSPI default mode

2019-08-29 Thread Rayagonda Kokatanur
On Thu, Aug 29, 2019 at 3:29 PM Mark Brown wrote: > > On Thu, Aug 29, 2019 at 09:46:13AM +0530, Rayagonda Kokatanur wrote: > > The spi-nor controller defaults to BSPI mode, hence switch back > > to its default mode after MSPI operations (write or erase) > > are completed. > > > > Changes from V1:

[PATCH v1 18/18] MAINTAINERS: Add myself as maintainer of LOONGSON64

2019-08-29 Thread Jiaxun Yang
I'm going to help with LOONGSON64 maintainance as well. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 242970af939c..e14edf51ee15 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10758,6 +10758,7 @@ F:

[PATCH v1 17/18] MAINTAINERS: Add new pathes to LOONGSON64 ARCHITECTURE

2019-08-29 Thread Jiaxun Yang
Place newly submited irqchip drivers and devicetree support under MIPS/LOONGSON64 ARCHITECTURE. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d5d4fed632e6..242970af939c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v1 14/18] MIPS: Loongson64: Add generic dts

2019-08-29 Thread Jiaxun Yang
Add generic device dts for Loongson-3 devices. They seems identical but will be different later. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 4 +- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/loongson/Makefile | 8 +

[PATCH] drm/amd/powerplay: Variable ps could be NULL when it get dereferenced

2019-08-29 Thread Yizhuo
Inside function cz_get_performance_level(), pointer ps could be NULL via cast_const_PhwCzPowerState(). However, this pointer is dereferenced without any check, which is potentially unsafe. Signed-off-by: Yizhuo --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 3 +++ 1 file changed, 3

[PATCH v1 15/18] MIPS: Loongson64: Load built-in dtbs

2019-08-29 Thread Jiaxun Yang
Load proper dtb according to firmware passed parameters and CPU PRID. Signed-off-by: Jiaxun Yang --- .../asm/mach-loongson64/builtin_dtbs.h| 26 +++ .../include/asm/mach-loongson64/loongson64.h | 2 + arch/mips/loongson64/env.c| 67 +++

[PATCH v1 16/18] MIPS: Loongson: Regenerate defconfigs

2019-08-29 Thread Jiaxun Yang
We've touched kconfig a lot in previous patches. Signed-off-by: Jiaxun Yang --- arch/mips/configs/fuloong2e_defconfig | 8 +++- arch/mips/configs/lemote2f_defconfig | 8 ++-- arch/mips/configs/loongson3_defconfig | 12 3 files changed, 9 insertions(+), 19 deletions(-)

[PATCH v3] kbuild: change *FLAGS_.o to take the path relative to $(obj)

2019-08-29 Thread Masahiro Yamada
Kbuild provides per-file compiler flag addition/removal: CFLAGS_.o CFLAGS_REMOVE_.o AFLAGS_.o AFLAGS_REMOVE_.o CPPFLAGS_.lds HOSTCFLAGS_.o HOSTCXXFLAGS_.o The is the filename of the target with its directory and suffix stripped. This syntax comes into a trouble when two files

[PATCH v1 13/18] dt-bindings: Document loongson vendor-prefix

2019-08-29 Thread Jiaxun Yang
Loongson is a MIPS-compatible processor vendor. Signed-off-by: Jiaxun Yang --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH v1 12/18] dt-bindings: mips: Add loongson cpus & boards

2019-08-29 Thread Jiaxun Yang
Prepare for later dts. Signed-off-by: Jiaxun Yang --- .../bindings/mips/loongson/cpus.yaml | 38 +++ .../bindings/mips/loongson/devices.yaml | 64 +++ 2 files changed, 102 insertions(+) create mode 100644

[PATCH v1 11/18] MIPS: Loongson64: Drop legacy IRQ code

2019-08-29 Thread Jiaxun Yang
We've made generic irqchip drivers for Loongson-3 platform, it's time to say goodbye to these legacy code. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/irq.h | 1 - arch/mips/loongson64/irq.c | 167 +--- arch/mips/loongson64/smp.c

[PATCH v1 10/18] irqchip: mips-cpu: Convert to simple domain

2019-08-29 Thread Jiaxun Yang
The old code is using legacy domain to setup irq_domain for CPU interrupts which requires irq_desc being preallocated. However, when MIPS_CPU_IRQ_BASE >= 16, irq_desc for CPU IRQs may end up unallocated and lead to incorrect behavior. Thus we convert the legacy domain to simple domain which can

[PATCH v1 09/18] irqchip: i8259: Add plat-poll support

2019-08-29 Thread Jiaxun Yang
For some platforms (e.g. Loongson-3), platfrom interrupt controller supports polling interrupt vector from i8259 automaticly and generating sepreated interrupt. Thus we add plat-poll OF property for these platforms and setup sepreated chained interrupt handler. Signed-off-by: Jiaxun Yang ---

[PATCH V3 1/1] spi: bcm-qspi: Make BSPI default mode

2019-08-29 Thread Rayagonda Kokatanur
The spi-nor controller defaults to BSPI mode, hence switch back to its default mode after MSPI operations (write or erase) are completed. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Mark Brown Reviewed-by: Kamal Dasu --- changes from V2: - Address code review comment from Mark Brown about

[PATCH v1 08/18] dt-bindings: interrupt-controller: Add Loongson-3 HTINTC

2019-08-29 Thread Jiaxun Yang
Document Loongson-3 HyperTransport Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-htintc.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-htintc.yaml

[PATCH v1 06/18] dt-bindings: interrupt-controller: Add Loongson-3 IOINTC

2019-08-29 Thread Jiaxun Yang
Document Loongson-3 I/O Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-iointc.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml diff --git

[PATCH v1 07/18] irqchip: Add driver for Loongson-3 HyperTransport interrupt controller

2019-08-29 Thread Jiaxun Yang
This controller appeared on Loongson-3 family of chips to receive interrupts from PCH chip. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls3-htintc.c | 147 +++ 3 files

Re: [ext4] [confidence: ] 2f7f60cf9f: WARNING:at_lib/list_debug.c:#__list_add_valid

2019-08-29 Thread Oliver Sang
On Fri, Aug 30, 2019 at 11:33:22AM +0800, Shaokun Zhang wrote: > Hi Oliver, > > On 2019/8/30 11:11, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > > > commit: 2f7f60cf9fbcd80200edee8c29b9b35681c63c3e ("[PATCH] ext4: change the > > type of ext4 cache

[PATCH v1 05/18] irqchip: Add driver for Loongson-3 I/O interrupt controller

2019-08-29 Thread Jiaxun Yang
This controller appeared on Loongson-3 family of chips as the primary package interrupt source. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls3-iointc.c | 275 +++ 3 files

[PATCH v1 03/18] MAINTAINERS: Fix entries for new loongson64 path

2019-08-29 Thread Jiaxun Yang
As we sepreated the code of loongson2ef/loongson3a, they can now have their own entries. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a2c343ee3b2c..d5d4fed632e6 100644 --- a/MAINTAINERS

[PATCH v1 02/18] MIPS: Loongson64: separate loongson2ef/loongson64 code

2019-08-29 Thread Jiaxun Yang
As later model of GSx64 family processors including 2-series-soc have similar design with initial loongson3a while loongson2e/f seems less identical, we separate loongson2e/f support code out of mach-loongson64 to make our life easier. Signed-off-by: Jiaxun Yang --- arch/mips/Kbuild.platforms

[PATCH v1 06/18] dt-bindings: interrupt-controller: Add Loongson-3 IOINTC

2019-08-29 Thread Jiaxun Yang
Document Loongson-3 I/O Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-iointc.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml diff --git

[PATCH v1 04/18] irqchip: Export generic chip domain map/unmap functions

2019-08-29 Thread Jiaxun Yang
Export irq_map_generic_chip, irq_unmap_generic_chip so drivers can use them to construct their own generic chip domain ops. Signed-off-by: Jiaxun Yang --- include/linux/irq.h | 1 + kernel/irq/generic-chip.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v1 00/18] Modernize Loongson64 Machine

2019-08-29 Thread Jiaxun Yang
v1: - dt-bindings fixup according to Rob's comments - irqchip fixup according to Marc's comments - ls3-iointc: Make Core map per-IRQ - Regenerate kconfigs - Typo & style improvements Jiaxun Yang (18): MIPS: Loongson64: Rename CPU TYPES MIPS: Loongson64: separate loongson2ef/loongson64 code

[PATCH v1 01/18] MIPS: Loongson64: Rename CPU TYPES

2019-08-29 Thread Jiaxun Yang
CPU_LOONGSON2 -> CPU_LOONGSON2EF CPU_LOONGSON3 -> CPU_LOONGSON64 As newer loongson-2 products (2G/2H/2K1000) can share kernel implementation with loongson-3 while 2E/2F are less similar with other LOONGSON64 products. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig

linux-next: manual merge of the net-next tree with the net tree

2019-08-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/usb/r8152.c between commits: 49d4b14113ca ("Revert "r8152: napi hangup fix after disconnect"") 973dc6cfc0e2 ("r8152: remove calling netif_napi_del") from the net tree and commit: d2187f8e4454

RE: [PATCH internal net-next 0/2] Minor refactor in devlink

2019-08-29 Thread Parav Pandit
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Parav Pandit > Sent: Friday, August 30, 2019 9:41 AM > To: linux-kernel@vger.kernel.org; Jiri Pirko > Cc: Parav Pandit > Subject: [PATCH internal net-next 0/2] Minor refactor in

[PATCH internal net-next 0/2] Minor refactor in devlink

2019-08-29 Thread Parav Pandit
Two minor refactors in devlink. Patch-1 Explicitly defines devlink port index as unsigned int Patch-2 Uses switch-case to handle different port flavours attributes Parav Pandit (2): devlink: Make port index data type as unsigned int devlink: Use switch-case instead of if-else

[PATCH internal net-next 1/2] devlink: Make port index data type as unsigned int

2019-08-29 Thread Parav Pandit
Devlink port index attribute is returned to users as u32 through netlink response. Change index data type from 'unsigned' to 'unsigned int' to avoid any size ambiguity and to avoid below checkpatch.pl warning. WARNING: Prefer 'unsigned int' to bare use of 'unsigned' 81: FILE:

Re: mmotm 2019-08-27-20-39 uploaded (objtool: xen)

2019-08-29 Thread Sedat Dilek
On Fri, Aug 30, 2019 at 1:38 AM Josh Poimboeuf wrote: > > On Thu, Aug 29, 2019 at 10:24:45AM +0200, Peter Zijlstra wrote: > > On Wed, Aug 28, 2019 at 03:01:34PM -0500, Josh Poimboeuf wrote: > > > On Wed, Aug 28, 2019 at 10:56:25AM -0700, Randy Dunlap wrote: > > > > >> drivers/xen/gntdev.o:

[PATCH internal net-next 2/2] devlink: Use switch-case instead of if-else

2019-08-29 Thread Parav Pandit
Make core more readable with switch-case for various port flavours. Signed-off-by: Parav Pandit --- net/core/devlink.c | 39 ++- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/net/core/devlink.c b/net/core/devlink.c index

[PATCH v7 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms"

2019-08-29 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" in example so that we could specify the number of PWM channels via device tree. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Matthias Brugger Acked-by: Uwe Kleine-König --- Changes since v6: Follow reviewers's comments: - The

Re: [PATCH 1/2] perf top: Decay all events in the evlist

2019-08-29 Thread Namhyung Kim
Hi Arnaldo, On Wed, Aug 28, 2019 at 9:49 PM Arnaldo Carvalho de Melo wrote: > > Em Wed, Aug 28, 2019 at 08:15:54AM +0900, Namhyung Kim escreveu: > > Currently perf top only decays entries in a selected evsel. I don't > > know whether it's intended (maybe due to performance reason?) but > >

[PATCH v7 08/11] arm64: dts: mt7622: add a property "num-pwms" for PWM

2019-08-29 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi

[PATCH v7 05/11] pwm: mediatek: use pwm_mediatek as common prefix

2019-08-29 Thread Sam Shih
Use pwm_mediatek as common prefix to match the filename. No functional change intended. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Acked-by: Uwe Kleine-König --- Changes since v6: Add an Acked-by tag Changes since v5: - Follow reviewers's comments The license stuff is a separate change

[PATCH v7 11/11] arm: dts: mediatek: add mt7629 pwm support

2019-08-29 Thread Sam Shih
This adds pwm support for MT7629. Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7629.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 9608bc2ccb3f..493be9a9453b 100644 ---

[PATCH v7 10/11] dt-bindings: pwm: update bindings for MT7629 SoC

2019-08-29 Thread Sam Shih
From: Ryder Lee This updates bindings for MT7629 pwm controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Rob Herring Reviewed-by: Matthias Brugger --- Changes since v7: - add a missed Reviewed-by tag back from v1: https://patchwork.kernel.org/patch/10769381/ Changes

[PATCH v7 06/11] pwm: mediatek: update license and switch to SPDX tag

2019-08-29 Thread Sam Shih
Add SPDX identifiers to pwm-mediatek.c Update license to GNU General Public License v2.0 Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe Kleine-König --- Changes since v6: Add a Reviewed-by tag Changes since v5: - Follow reviewers's comments The license stuff is a separate

[PATCH v7 09/11] arm: dts: mt7623: add a property "num-pwms" for PWM

2019-08-29 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7623.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index

[PATCH v7 04/11] pwm: mediatek: allocate the clks array dynamically

2019-08-29 Thread Sam Shih
Instead of using fixed size of arrays, allocate the memory for them based on the information we get from the DT. Also remove the check for num_pwms, due to dynamically allocate pwm should not cause array index out of bound. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe

[PATCH v7 02/11] pwm: mediatek: droping the check for of_device_get_match_data

2019-08-29 Thread Sam Shih
This patch drop the check for of_device_get_match_data. Due to the only way call driver probe is compatible match. The .data pointer which point to the SoC specify data is directly set by driver, and it should not be NULL in our case. We can safety remove the check for of_device_get_match_data.

[PATCH v7 01/11] pwm: mediatek: add a property "num-pwms"

2019-08-29 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" to avoid having an endless list of compatibles with no differences for the same driver. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe Kleine-König --- Changes since v6: Add a Reviewed-by tag Changes since v5: Check num-pwms

[RESEND, PATCH v7 0/11] Add mt7629 and fix mt7628 pwm

2019-08-29 Thread Sam Shih
Changes since v7: 1. PATCH v7 10/11: Add a missed Reviewed-by tag Changes since v6: 1. Due to we can use fixed-clock in DT We removed has_clks and fixed-clock properties Changes since v5: - Follow reviewer's comments: 1. the license stuff is a separate change 2. split fix mt7628

[PATCH] mm/vmalloc: move 'area->pages' after if statement

2019-08-29 Thread Austin Kim
If !area->pages statement is true where memory allocation fails, area is freed. In this case 'area->pages = pages' should not executed. So move 'area->pages = pages' after if statement. Signed-off-by: Austin Kim --- mm/vmalloc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[PATCH v7 03/11] pwm: mediatek: remove a property "has-clks"

2019-08-29 Thread Sam Shih
We can use fixed-clock to repair mt7628 pwm during configure from userspace. The SoC is legacy MIPS and has no complex clock tree. Due to we can get clock frequency for period calculation from DT fixed-clock, so we can remove has-clock property, and directly use devm_clk_get and clk_get_rate.

Re: [PATCH 1/9] perf/core: Add PERF_RECORD_CGROUP event

2019-08-29 Thread Namhyung Kim
Hi Tejun, On Wed, Aug 28, 2019 at 11:48 PM Tejun Heo wrote: > > Hello, Namhyung. > > On Wed, Aug 28, 2019 at 04:31:22PM +0900, Namhyung Kim wrote: > > + * struct { > > + * struct perf_event_headerheader; > > + * u64 ino; > > + *

[RESEND PATCH v7 0/11] Add mt7629 and fix mt7628 pwm

2019-08-29 Thread Sam Shih
Changes since v7: 1. PATCH v7 10/100: Add a missed Reviewed-by tag back Changes since v6: 1. Due to we can use fixed-clock in DT We removed has_clks and fixed-clock properties Changes since v5: - Follow reviewer's comments: 1. the license stuff is a separate change 2. split fix

[RESEND PATCH v7 0/11] Add mt7629 and fix mt7628 pwm

2019-08-29 Thread Sam Shih
Changes since v6: 1. Due to we can use fixed-clock in DT We removed has_clks and fixed-clock properties Changes since v5: - Follow reviewer's comments: 1. the license stuff is a separate change 2. split fix mt7628 pwm into a single patch 3. to ensure to not use mtk_pwm_clk_name[10]

[PATCH v7 0/11] Add mt7629 and fix mt7628 pwm

2019-08-29 Thread Sam Shih
Changes since v6: 1. Due to we can use fixed-clock in DT We removed has_clks and fixed-clock properties Changes since v5: - Follow reviewer's comments: 1. the license stuff is a separate change 2. split fix mt7628 pwm into a single patch 3. to ensure to not use mtk_pwm_clk_name[10]

Re: [PATCH] virtio: Change typecasts in vring_init()

2019-08-29 Thread Jason Wang
On 2019/8/27 下午11:20, Matej Genci wrote: > Compilers such as g++ 7.3 complain about assigning void* variable to > a non-void* variable (like struct pointers) and pointer arithmetics > on void*. > > Signed-off-by: Matej Genci > --- > include/uapi/linux/virtio_ring.h | 9 + > 1 file

Re: [PATCH 1/9] perf/core: Add PERF_RECORD_CGROUP event

2019-08-29 Thread Namhyung Kim
Hi Peter, On Wed, Aug 28, 2019 at 6:45 PM Peter Zijlstra wrote: > > On Wed, Aug 28, 2019 at 04:31:22PM +0900, Namhyung Kim wrote: > > To support cgroup tracking, add CGROUP event to save a link between > > cgroup path and inode number. The attr.cgroup bit was also added to > > enable cgroup

Re: [RFD] x86/tsc: Loosen the requirements for watchdog - (was x86/hpet: Disable HPET on Intel Coffe Lake)

2019-08-29 Thread Daniel Drake
Hi Thomas, On Fri, Aug 30, 2019 at 5:38 AM Thomas Gleixner wrote: > So if we have to disable the HPET on Kaby Lake alltogether unless Intel > comes up with the clever fix, i.e. poking at the right registers, then I > think we should also lift the TSC watchdog restrictions on these machines > if

[PATCH net-next, 1/2] hv_netvsc: Allow scatter-gather feature to be tunable

2019-08-29 Thread Haiyang Zhang
In a previous patch, the NETIF_F_SG was missing after the code changes. That caused the SG feature to be "fixed". This patch includes it into hw_features, so it is tunable again. Fixes: 23312a3be999 ("netvsc: negotiate checksum and segmentation parameters") Signed-off-by: Haiyang Zhang ---

[PATCH net-next, 0/2] Enable sg as tunable, sync offload settings to VF NIC

2019-08-29 Thread Haiyang Zhang
This patch set fixes an issue in SG tuning, and sync offload settings from synthetic NIC to VF NIC. Haiyang Zhang (2): hv_netvsc: hv_netvsc: Allow scatter-gather feature to be tunable hv_netvsc: Sync offloading features to VF NIC drivers/net/hyperv/hyperv_net.h | 2 +-

[PATCH net-next, 2/2] hv_netvsc: Sync offloading features to VF NIC

2019-08-29 Thread Haiyang Zhang
VF NIC may go down then come up during host servicing events. This causes the VF NIC offloading feature settings to roll back to the defaults. This patch can synchronize features from synthetic NIC to the VF NIC during ndo_set_features (ethtool -K), and netvsc_register_vf when VF comes back after

[PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-08-29 Thread Masahiro Yamada
Commit 9012d011660e ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING") allowed all architectures to enable this option. A couple of build errors were reported by randconfig, but all of them have been ironed out. Towards the goal of removing CONFIG_OPTIMIZE_INLINING entirely (and it

Re: [PATCH 2/2] vhost/test: fix build for vhost test

2019-08-29 Thread Jason Wang
On 2019/8/28 下午1:37, Tiwei Bie wrote: > Since vhost_exceeds_weight() was introduced, callers need to specify > the packet weight and byte weight in vhost_dev_init(). Note that, the > packet weight isn't counted in this patch to keep the original behavior > unchanged. > > Fixes: e82b9b0727ff

Re: [PATCH 1/2] vhost/test: fix build for vhost test

2019-08-29 Thread Jason Wang
On 2019/8/28 下午1:36, Tiwei Bie wrote: > Since below commit, callers need to specify the iov_limit in > vhost_dev_init() explicitly. > > Fixes: b46a0bf78ad7 ("vhost: fix OOB in get_rx_bufs()") > Cc: sta...@vger.kernel.org > Signed-off-by: Tiwei Bie > --- > drivers/vhost/test.c | 2 +- > 1 file

Re: [ext4] [confidence: ] 2f7f60cf9f: WARNING:at_lib/list_debug.c:#__list_add_valid

2019-08-29 Thread Shaokun Zhang
Hi Oliver, On 2019/8/30 11:11, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 2f7f60cf9fbcd80200edee8c29b9b35681c63c3e ("[PATCH] ext4: change the > type of ext4 cache stats to percpu_counter to improve performance") Thanks for the report. This

Re: [PATCH v4 1/2] drivers: hv: vmbus: Introduce latency testing

2019-08-29 Thread kbuild test robot
Hi Branden, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc6 next-20190829] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH] powerpc: Replace GPL boilerplate with SPDX identifiers

2019-08-29 Thread Russell Currey
On Wed, 2019-08-28 at 08:07 +0200, Thomas Huth wrote: > The FSF does not reside in "675 Mass Ave, Cambridge" anymore... > let's simply use proper SPDX identifiers instead. > > Signed-off-by: Thomas Huth Acked-by: Russell Currey

linux-next: build failure after merge of the pci tree

2019-08-29 Thread Stephen Rothwell
Hi all, After merging the pci tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/pci/controller/dwc/pcie-tegra194.c:24:10: fatal error: linux/pci-aspm.h: No such file or directory 24 | #include | ^~ Caused by commit 81564976b1a9

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

2019-08-29 Thread Chuan Hua, Lei
Hi Martin, On 8/30/2019 5:40 AM, Martin Blumenstingl wrote: Hi, On Thu, Aug 29, 2019 at 4:51 AM Chuan Hua, Lei wrote: I'm not surprised that we got some of the IP block layout for the VRX200 RCU "wrong" - all "documentation" we have is the old Lantiq UGW (BSP). with proper documentation (as

linux-next: manual merge of the vfs tree with the fuse tree

2019-08-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the vfs tree got a conflict in: fs/fuse/inode.c between commit: 1458e5e9f99a ("fuse: extract fuse_fill_super_common()") from the fuse tree and commit: 2ad9ab0f7429 ("vfs: Convert fuse to use the new mount API") 48ceb15f98c8 ("vfs: Move the subtype

Re: [PATCH] __div64_const32(): improve the generic C version

2019-08-29 Thread Nicolas Pitre
Ping. On Tue, 20 Aug 2019, Nicolas Pitre wrote: > Let's rework that code to avoid large immediate values and convert some > 64-bit variables to 32-bit ones when possible. This allows gcc to > produce smaller and better code. This even produces optimal code on > RISC-V. > > Signed-off-by:

RE: [PATCH v5 2/2] mailbox: introduce ARM SMC based mailbox

2019-08-29 Thread Peng Fan
> Subject: Re: [PATCH v5 2/2] mailbox: introduce ARM SMC based mailbox > > On Wed, Aug 28, 2019 at 03:03:02AM +, Peng Fan wrote: > > From: Peng Fan > > > > This mailbox driver implements a mailbox which signals transmitted > > data via an ARM smc (secure monitor call) instruction. The

RE: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-08-29 Thread Peng Fan
> Subject: Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM > SMC/HVC mailbox > > On Wed, Aug 28, 2019 at 03:02:58AM +, Peng Fan wrote: > > From: Peng Fan > > > > The ARM SMC/HVC mailbox binding describes a firmware interface to > > trigger actions in software layers

RE: [PATCH v2 1/6] mdev: Introduce sha1 based mdev alias

2019-08-29 Thread Parav Pandit
> -Original Message- > From: Yunsheng Lin > Sent: Thursday, August 29, 2019 5:57 PM > To: Parav Pandit ; alex.william...@redhat.com; Jiri > Pirko ; kwankh...@nvidia.com; coh...@redhat.com; > da...@davemloft.net > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; >

[PATCH] arm64: numa: check the node id before accessing node_to_cpumask_map

2019-08-29 Thread Yunsheng Lin
Some buggy bios may not set the device' numa id, and dev_to_node will return -1, which may cause global-out-of-bounds error detected by KASAN. This patch changes cpumask_of_node to return cpu_none_mask if the node is not valid, and sync the cpumask_of_node between the cpumask_of_node function in

  1   2   3   4   5   6   7   8   9   10   >