Re: [PATCH 0/7] SCSI: cleanup debugfs usage

2019-01-28 Thread Martin K. Petersen
Greg, > When calling debugfs code, there is no need to ever check the return > value of the call, as no logic should ever change if a call works > properly or not. Fix up a bunch of x86-specific code to not care > about the results of debugfs. Applied to 5.1/scsi-queue, thank you! -- Martin

Re: [PATCH v5 2/9] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-28 Thread Viresh Kumar
On 29-01-19, 10:25, Amit Kucheria wrote: > All cpufreq drivers do similar things to register as a cooling device. > Provide a cpufreq driver flag so drivers can just ask the cpufreq core > to register the cooling device on their behalf. This allows us to get > rid of duplicated code in the

[PATCH] nfit: Fix nfit_intel_shutdown_status() command submission

2019-01-28 Thread Dan Williams
The implementation is broken in all the ways the unit test did not touch: 1/ The local definition of in_buf and in_obj violated C99 initializer expectations for zeroing. By only initializing 2 out of the three struct members the compiler was free to zero-initialize the remaining entry

Re: [PATCH] MAINTAINERS: Move FCoE to Hannes Reinecke

2019-01-28 Thread Martin K. Petersen
Johannes, > I'll be moving on to different things in the storage stack and Hannes > agreed to take over FCoE. Applied to 5.1/scsi-queue. Thanks. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/7] cpufreq: scpi: Register an Energy Model

2019-01-28 Thread Viresh Kumar
On 28-01-19, 16:55, Quentin Perret wrote: > Now that PM_OPP provides a helper function to estimate the power > consumed by CPUs, make sure to try and register an Energy Model (EM) > from scpi-cpufreq, hence ensuring interested subsystems (the task > scheduler, for example) can make use of that

Re: [PATCH 2/7] cpufreq: dt: Register an Energy Model

2019-01-28 Thread Viresh Kumar
On 28-01-19, 16:55, Quentin Perret wrote: > Now that PM_OPP provides a helper function to estimate the power > consumed by CPUs, make sure to try and register an Energy Model (EM) > from cpufreq-dt, hence ensuring interested subsystems (the task > scheduler, for example) can make use of that

Re: [PATCH] SCSI: fcoe: remove unneeded fcoe_ctlr_destroy_store export

2019-01-28 Thread Martin K. Petersen
Greg, > There's no need to export fcoe_ctlr_destroy_store as a symbol, so remove > the EXPORT_SYMBOL() line for it. Applied to 5.1/scsi-queue, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] SCSI: fcoe: convert to use BUS_ATTR_WO

2019-01-28 Thread Martin K. Petersen
Greg, > We are trying to get rid of BUS_ATTR() and the usage of that in the > fcoe driver can be trivially converted to use BUS_ATTR_WO(), so use > that instead. Applied to 5.1/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH][RFC] module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity

2019-01-28 Thread Greg KH
On Mon, Jan 28, 2019 at 11:38:42PM +0100, Thomas Gleixner wrote: > The original MODULE_LICENSE string for kernel modules licensed under the > GPL v2 (only / or later) was simply "GPL", which was - and still is - > completely sufficient for the purpose of module loading and checking > whether the

Re: [PATCH] drivers: qcom: rpmh: use struct_size() in kzalloc()

2019-01-28 Thread Amit Kucheria
On Mon, Dec 24, 2018 at 11:52 AM 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 foo { >

Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2019-01-28 Thread Pingfan Liu
On Fri, Jan 25, 2019 at 10:08 PM Borislav Petkov wrote: > > On Fri, Jan 25, 2019 at 09:45:18PM +0800, Dave Young wrote: > > AFAIK, some people prefer to explictly reserve crash memory at high > > region even if it is possible to reserve at low area. May because > > <4G memory is limited on large

[PATCH] 8250_pci.c change for fix hanging problem while suspend machine. 8250_pci.c support the same vendor id and device id definition as sunix multi-I/O card driver, when the sunix multi-io borad dr

2019-01-28 Thread saumah
Signed-off-by: saumah --- 8250_pci.c | 162 + 1 file changed, 2 insertions(+), 160 deletions(-) diff --git a/8250_pci.c b/8250_pci.c index f80a300..310b1eb 100644 --- a/8250_pci.c +++ b/8250_pci.c @@ -519,115 +519,6 @@ static int

Re: [PATCH 2/7] cpufreq: dt: Register an Energy Model

2019-01-28 Thread Viresh Kumar
On 28-01-19, 11:36, Matthias Kaehlcke wrote: > I think this patch will result in error messages at registration on > platforms that use the cpufreq-dt driver and don't specify > 'dynamic-power-coefficient' for the CPUs in the DT. Not sure if that's > a problem as long as the cpufreq initialization

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

2019-01-28 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/net/ethernet/freescale/enetc/enetc.c: In function 'enetc_alloc_txbdr': drivers/net/ethernet/freescale/enetc/enetc.c:685:17: error: implicit declaration of function 'vzalloc'; did

[PATCH] 8250_pci.c change for fix hanging problem while suspend machine. pci_ids.h has the same vendor id and device id definition as sunix multi-I/O card driver, when the sunix multi-io borad driver

2019-01-28 Thread saumah
Signed-off-by: saumah --- 8250_pci.c | 162 + 1 file changed, 2 insertions(+), 160 deletions(-) diff --git a/8250_pci.c b/8250_pci.c index f80a300..310b1eb 100644 --- a/8250_pci.c +++ b/8250_pci.c @@ -519,115 +519,6 @@ static int

Re: [PATCH] drivers: qcom: rpmh: use struct_size() in kzalloc()

2019-01-28 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can take this? Thanks -- Gustavo On 1/9/19 11:38 AM, Gustavo A. R. Silva wrote: > Hi, > > Friendly ping: > > Who can ack or review this patch, please? > > Thanks > -- > Gustavo > > > On 12/24/18 12:22 AM, Gustavo A. R. Silva wrote: >> One of the more common

Re: [PATCH 1/7] PM / OPP: Introduce a power estimation helper

2019-01-28 Thread Viresh Kumar
On 28-01-19, 16:55, Quentin Perret wrote: > diff --git a/drivers/opp/of.c b/drivers/opp/of.c > index 06f0f632ec47..7572a2eb2fd4 100644 > --- a/drivers/opp/of.c > +++ b/drivers/opp/of.c > @@ -1047,3 +1047,63 @@ struct device_node *dev_pm_opp_get_of_node(struct > dev_pm_opp *opp) > return

[RFC net-next 4/4] net: enocean: Prepare ESP2 support

2019-01-28 Thread Andreas Färber
The EnOcean Serial Protocol 2 used subtelegram frames different from ESP3. It also uses ORG identifiers differing from RORG identifiers in ERP. Only checksumming has been tested. Signed-off-by: Andreas Färber --- drivers/net/enocean/Makefile | 1 + drivers/net/enocean/enocean_esp.c |

[RFC net-next 2/4] net: Prepare EnOcean device drivers

2019-01-28 Thread Andreas Färber
Add net_device helpers for EnOcean. Signed-off-by: Andreas Färber --- drivers/net/enocean/Makefile | 2 + drivers/net/enocean/enocean.c | 124 ++ include/linux/enocean/dev.h | 23 3 files changed, 149 insertions(+) create mode 100644

[RFC net-next 0/4] net: EnOcean prototype driver

2019-01-28 Thread Andreas Färber
Hello, This series implements a serdev driver for the EnOcean Serial Protocol (ESP). It follows previous weekend's Z-Wave serdev driver [1], exploring various wireless technologies surrounding LoRa/FSK/OOK in quest of a solid PHY layer. The EnOcean Radio Protocol 1 (ERP1) is based on ASK; ERP2

[RFC net-next 1/4] net: Reserve protocol identifiers for EnOcean

2019-01-28 Thread Andreas Färber
EnOcean wireless technology is based on ASK (ERP1) and FSK (ERP2) modulations for sub-GHz and on IEEE 802.15.4 for 2.4 GHz. ARPHRD_ENOCEAN ETH_P_ERP{1,2} Signed-off-by: Andreas Färber --- include/uapi/linux/if_arp.h | 1 + include/uapi/linux/if_ether.h | 2 ++ 2 files changed, 3

[RFC net-next 3/4] net: enocean: Add ESP3 driver

2019-01-28 Thread Andreas Färber
This implements the EnOcean Serial Protocol 3. Rudimentary sending is prepared. Error handling is lacking and reception handling is missing. Tested with EnOcean TCM310 gateway module. Signed-off-by: Andreas Färber --- drivers/net/enocean/Makefile | 4 +

Re: [PATCH] pinctrl: mediatek: fix dependencies for PINCTRL_MT76XX

2019-01-28 Thread Sean Wang
On Mon, Jan 28, 2019 at 2:35 PM Dmitry Voytik wrote: > > How to reproduce the problem: > $ make tinyconfig > $ make menuconfig > then enable: > CONFIG_COMPILE_TEST=y > CONFIG_PINCTRL=y > and any of these: > CONFIG_PINCTRL_MT7622=y > CONFIG_PINCTRL_MT7629=y > CONFIG_PINCTRL_MT7623=y > > This

[PATCH v5 6/9] cpufreq: mediatek: Use auto-registration of thermal cooling device

2019-01-28 Thread Amit Kucheria
Use the CPUFREQ_IS_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar Reviewed-by: Daniel Lezcano --- drivers/cpufreq/mediatek-cpufreq.c |

[PATCH v5 9/9] cpufreq: scpi: Use auto-registration of thermal cooling device

2019-01-28 Thread Amit Kucheria
Use the CPUFREQ_IS_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria Acked-by: Sudeep Holla Acked-by: Viresh Kumar Reviewed-by: Daniel Lezcano ---

[PATCH v5 8/9] cpufreq: scmi: Use auto-registration of thermal cooling device

2019-01-28 Thread Amit Kucheria
Use the CPUFREQ_IS_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria Acked-by: Sudeep Holla Acked-by: Viresh Kumar Reviewed-by: Daniel Lezcano ---

[PATCH v5 7/9] cpufreq: qoriq: Use auto-registration of thermal cooling device

2019-01-28 Thread Amit Kucheria
Use the CPUFREQ_IS_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar Reviewed-by: Daniel Lezcano --- drivers/cpufreq/qoriq-cpufreq.c | 15

[PATCH v5 5/9] cpufreq: cpufreq-dt: Use auto-registration of thermal cooling device

2019-01-28 Thread Amit Kucheria
Use the CPUFREQ_IS_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar Reviewed-by: Daniel Lezcano --- drivers/cpufreq/cpufreq-dt.c | 14

[PATCH v5 4/9] cpufreq: imx6q: Use auto-registration of thermal cooling device

2019-01-28 Thread Amit Kucheria
Use the CPUFREQ_IS_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar Reviewed-by: Daniel Lezcano --- drivers/cpufreq/imx6q-cpufreq.c | 24

[PATCH v5 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device

2019-01-28 Thread Amit Kucheria
Add the CPUFREQ_IS_COOLING_DEV flag to allow the cpufreq core to auto-register the driver as a cooling device. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd Acked-by: Viresh Kumar Reviewed-by: Daniel Lezcano ---

[PATCH v5 1/9] thermal: cpu_cooling: Require thermal core to be compiled in

2019-01-28 Thread Amit Kucheria
The CPU cooling driver (cpu_cooling.c) allows the platform's cpufreq driver to register as a cooling device and cool down the platform by throttling the CPU frequency. In order to be able to auto-register a cpufreq driver as a cooling device from the cpufreq core, we need access to code inside

[PATCH v5 2/9] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-28 Thread Amit Kucheria
All cpufreq drivers do similar things to register as a cooling device. Provide a cpufreq driver flag so drivers can just ask the cpufreq core to register the cooling device on their behalf. This allows us to get rid of duplicated code in the drivers. In order to allow this, we add a struct

[PATCH v5 0/9] cpufreq: Add flag to auto-register as cooling device

2019-01-28 Thread Amit Kucheria
Add a flag for cpufreq drivers to tell cpufreq core to auto-register themselves as a thermal cooling device. There series converts over all the drivers except arm_big_little.c. Tested on SDM845 with the qcom-cpufreq-hw driver. Only compile-tested the others. Things needing fixing (but not a

Re: [PATCH 3/6] drivers/IB,qib: do not use mmap_sem

2019-01-28 Thread Jason Gunthorpe
On Mon, Jan 28, 2019 at 04:31:40PM -0700, Jason Gunthorpe wrote: > On Mon, Jan 21, 2019 at 09:42:17AM -0800, Davidlohr Bueso wrote: > > The driver uses mmap_sem for both pinned_vm accounting and > > get_user_pages(). By using gup_fast() and letting the mm handle > > the lock if needed, we can no

Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver

2019-01-28 Thread Marek Vasut
On 1/29/19 3:26 AM, masonccy...@mxic.com.tw wrote: > Hi Marek, Hi, >> >> "Marek Vasut" >> >> >> >> > +module_platform_driver(rpc_spi_driver); >> >> >> >> >> >> >> >> RPC is not a SPI controller, it's a SPI and HF controller. >> >> >> >> >> >> >> >> Also, how difficult will it be to add the HF

Re: [PATCHv5 7/7] arm64: dts: qcom: sdm845: Remove the duplicate header inclusion

2019-01-28 Thread saiprakash . ranjan
Hi Doug, On 2019-01-29 00:54, Doug Anderson wrote: Hi, You can probably stop sending this one. It's in Andy's tree now. See commit ea0edd7e63f4 ("arm64: dts: qcom: sdm845: Remove the duplicate header inclusion"). Sorry, missed this one.

[PATCH 4/7] dt-bindings: mediatek: update bindings for MT7629 SoC

2019-01-28 Thread Ryder Lee
This updates bindings for MT7629 SoC, which includes very basic items such as system timer, UART, sysirq and scpsys unit. Signed-off-by: Ryder Lee --- .../devicetree/bindings/interrupt-controller/mediatek,sysirq.txt | 5 +++-- Documentation/devicetree/bindings/serial/mtk-uart.txt

[PATCH 6/7] arm: mediatek: add MT7629 smp bring up code

2019-01-28 Thread Ryder Lee
Add support for booting secondary CPUs on MT7629. Signed-off-by: Ryder Lee --- arch/arm/mach-mediatek/Kconfig| 4 arch/arm/mach-mediatek/mediatek.c | 1 + arch/arm/mach-mediatek/platsmp.c | 1 + 3 files changed, 6 insertions(+) diff --git a/arch/arm/mach-mediatek/Kconfig

[PATCH 7/7] arm: dts: mediatek: add basic support for MT7629 SoC

2019-01-28 Thread Ryder Lee
This adds basic support for MT7629 reference board. Signed-off-by: Ryder Lee --- The I2C node depends on https://patchwork.kernel.org/patch/10772837/ The PCIe node depends on https://patchwork.kernel.org/patch/10773637/ --- arch/arm/boot/dts/Makefile| 1 +

[PATCH 3/7] dt-bindings: arm: mediatek: add support for MT7622 BPI-R64 and MT7629 RFB

2019-01-28 Thread Ryder Lee
Update binding document for MT7622 BPI-R64 and MT7629 reference board. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt

[PATCH 5/7] dt-bindings: interrupt-controller: update bindings for MT7623

2019-01-28 Thread Ryder Lee
This adds missing bindings for MT7623 sysirq. Signed-off-by: Ryder Lee --- .../devicetree/bindings/interrupt-controller/mediatek,sysirq.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,sysirq.txt

[PATCH 2/7] dt-bindings: arm: mediatek: remove unused "mediatek,mt7623a"

2019-01-28 Thread Ryder Lee
As we fallback to use "mediatek,mt7623" for MT7623a, remove unused root node property "mediatek,mt7623a" in the document. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 1/7] Revert "ARM: mediatek: add MT7623a smp bringup code"

2019-01-28 Thread Ryder Lee
This reverts commit 3b99ab7deca1e5f4229b4bdecd005d71e22cfc60. The compatible "mediatek,mt7623a" is useless, so remove it. Signed-off-by: Ryder Lee --- arch/arm/mach-mediatek/mediatek.c | 2 -- arch/arm/mach-mediatek/platsmp.c | 1 - 2 files changed, 3 deletions(-) diff --git

Re: [PATCH v4 2/9] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-28 Thread Amit Kucheria
On Mon, Jan 28, 2019 at 5:34 PM Rafael J. Wysocki wrote: > > On Monday, January 28, 2019 9:32:44 AM CET Daniel Lezcano wrote: > > On 28/01/2019 07:41, Amit Kucheria wrote: > > > All cpufreq drivers do similar things to register as a cooling device. > > > Provide a cpufreq driver flag so drivers

Re: [PATCH RESEND 4/4] Pinctrl: Ingenic: Fix const declaration.

2019-01-28 Thread Zhou Yanjie
I would prefer to keep it. There are many other drivers that also use this header file. On 2019年01月29日 03:22, Joe Perches wrote: On Fri, 2019-01-25 at 14:59 -0300, Paul Cercueil wrote: On Fri, Jan 25, 2019 at 6:59 AM, Zhou Yanjie wrote: Warning is reported when checkpatch indicates that

[PATCH] kernel/bpf/core.c - fix bitrotted kerneldoc.

2019-01-28 Thread valdis . kletnieks
Over the years, the function signature has changed, the kerneldoc block hasn't. Signed-off-by: Valdis Kletnieks diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 2a81b8af3748..2728b6247091 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -1216,8 +1216,9 @@ bool

[PATCH] MIPS: Remove function size check in get_frame_info()

2019-01-28 Thread Jun-Ru Chang
Patch (b6c7a324df37b "MIPS: Fix get_frame_info() handling of microMIPS function size.") introduces additional function size check for microMIPS by only checking insn between ip and ip + func_size. However, func_size in get_frame_info() is always 0 if KALLSYMS is not enabled. This causes

Re: Add Ingenic X1000 RTC support.

2019-01-28 Thread Zhou Yanjie
OK, thanks for your suggestions. I'll drop this patch. On 2019年01月29日 04:48, Paul Cercueil wrote: Hi, Hello, This seems like a useless renaming to me, can you elaborate a bit more? I'd also like to have Paul and Lars-Peter comment. According to the patchset, the RTC in the X1000 does not

Re: [PATCH v2] mm/slub: introduce SLAB_WARN_ON_ERROR

2019-01-28 Thread Miles Chen
On Mon, 2019-01-28 at 17:41 -0800, David Rientjes wrote: > On Thu, 24 Jan 2019, miles.c...@mediatek.com wrote: > > > From: Miles Chen > > > > When debugging slab errors in slub.c, sometimes we have to trigger > > a panic in order to get the coredump file. Add a debug option > >

Re: [PATCH V2 rdma-next 2/3] RDMA/hns: Fix the chip hanging caused by sending mailbox during reset

2019-01-28 Thread Jason Gunthorpe
On Tue, Jan 29, 2019 at 10:18:40AM +0800, Wei Hu (Xavier) wrote: > > > On 2019/1/29 2:27, Jason Gunthorpe wrote: > > On Sat, Jan 26, 2019 at 09:47:42AM +0800, Wei Hu (Xavier) wrote: > >> > >> On 2019/1/26 5:50, Jason Gunthorpe wrote: > >>> On Fri, Jan 25, 2019 at 10:15:40AM +0800, Wei Hu

Re: linux-5.0-rc3, ti-soc-thermal: unmet dependencies Kconfig warning

2019-01-28 Thread Keerthy
On 28/01/19 10:04 PM, Tony Lindgren wrote: > Hi, > > * Randy Dunlap [190126 06:54]: >> Hi, >> >> FYI, I'm seeing this Kconfig warning in 5.0-rc3: > > Thanks for reporting it. > >> WARNING: unmet direct dependencies detected for TI_SOC_THERMAL >> Depends on [n]: THERMAL [=y] &&

Re: [PATCH v2 1/7] KVM:VMX: Define CET VMCS fields and bits

2019-01-28 Thread Yang Weijiang
On Fri, Jan 25, 2019 at 07:02:37PM +0100, Paolo Bonzini wrote: > On 22/01/19 21:59, Yang Weijiang wrote: > > On processors that support CET, VMX saves/restores > > the states of IA32_S_CET, SSP and IA32_INTERRUPT_SSP_TABLE_ADDR MSR > > to the VMCS area for Guest/Host unconditionally. > > > > If

Re: [PATCH V2 2/6] clocksource: tegra: add Tegra210 timer driver

2019-01-28 Thread Joseph Lo
On 1/28/19 11:09 PM, Thierry Reding wrote: On Mon, Jan 28, 2019 at 05:18:11PM +0800, Joseph Lo wrote: Add support for the Tegra210 timer that runs at oscillator clock (TMR10-TMR13). We need these timers to work as clock event device and to replace the ARMv8 architected timer due to it can't

Re: [PATCH net-next] mdio_bus: Fix PTR_ERR() usage after initialization to constant

2019-01-28 Thread YueHaibing
On 2019/1/28 22:36, Andrew Lunn wrote: > On Mon, Jan 28, 2019 at 09:24:09PM +0800, YueHaibing wrote: >> Fix coccinelle warning: >> >> ./drivers/net/phy/mdio_bus.c:51:5-12: ERROR: PTR_ERR applied after >> initialization to constant on line 44 >> ./drivers/net/phy/mdio_bus.c:52:5-12: ERROR:

[PATCH v2 2/2] iwlwifi: Use struct_size() in kzalloc

2019-01-28 Thread YueHaibing
Use struct_size() in kzalloc instead of the 'regd_to_copy' Signed-off-by: YueHaibing --- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

[PATCH v2 0/2] cleanup for iwlwifi

2019-01-28 Thread YueHaibing
v2: Use struct_size in regd allocation YueHaibing (2): iwlwifi: Use kmemdup instead of duplicating its function iwlwifi: Use struct_size() in kzalloc drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) -- 2.7.4

[PATCH v2 1/2] iwlwifi: Use kmemdup instead of duplicating its function

2019-01-28 Thread YueHaibing
Use kmemdup rather than duplicating its implementation Signed-off-by: YueHaibing --- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

Re: [PATCH 2/2] iwlwifi: Use struct_size() in kzalloc

2019-01-28 Thread YueHaibing
On 2019/1/29 5:57, Joe Perches wrote: > On Mon, 2019-01-28 at 14:44 +0800, YueHaibing wrote: >> Use struct_size() in kzalloc instead of the 'regd_to_copy' > > There is also the use above that in the same function > that could also be converted. > > /* build a regdomain rule for every

Re: [PATCH] bpf/core.c - silence warning messages

2019-01-28 Thread Song Liu
On Mon, Jan 28, 2019 at 3:35 PM wrote: > > On Mon, 28 Jan 2019 09:18:45 -0800, Song Liu said: > > On Sun, Jan 27, 2019 at 8:43 PM wrote: > > > > The attached patch silences the warnings, because we *know* we're > > > overwriting > > > the default initializer. That leaves bpf/core.c with only 6

Re: [PATCH V3 3/3] i2c: tegra: Add DMA Support

2019-01-28 Thread Dmitry Osipenko
29.01.2019 5:02, Sowjanya Komatineni пишет: > > This patch adds DMA support for Tegra I2C. Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for transfer size of the max FIFO depth and DMA mode is used for transfer size higher than max FIFO depth to save CPU

linux-next: manual merge of the char-misc tree with the qcom tree

2019-01-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: arch/arm64/boot/dts/qcom/sdm845.dtsi between commits: 05556681948b ("arm64: dts: sdm845: Add videocc node") 5b6f186f0abb ("arm64: dts: sdm845: Add rpmh powercontroller node") from the qcom tree and commit:

Re: [PATCH V2 2/6] clocksource: tegra: add Tegra210 timer driver

2019-01-28 Thread Joseph Lo
Hi Daniel, Thanks for your review. On 1/28/19 9:00 PM, Daniel Lezcano wrote: On 28/01/2019 10:18, Joseph Lo wrote: Add support for the Tegra210 timer that runs at oscillator clock (TMR10-TMR13). We need these timers to work as clock event device and to replace the ARMv8 architected timer due

Re: [PATCH] kprobe: safely access memory specified by userspace

2019-01-28 Thread Changbin Du
Hi, Please hold until Steven returned from Linux Conf Au. Thanks! On Tue, Jan 29, 2019 at 12:35:20AM +, Sasha Levin wrote: > Hi, > > [This is an automated email] > > This commit has been processed because it contains a -stable tag. > The stable tag indicates that it's relevant for the

[PATCH v5 2/2] dt-bindings: interrupt-controller: loongson ls1x intc

2019-01-28 Thread Jiaxun Yang
Dt-bindings doc about Loongson-1 interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls1x-intc.txt| 24 +++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt diff

irqchip: Add driver for Loongson-1 intc v5

2019-01-28 Thread Jiaxun Yang
v1->v2: Fix SPDX-License-Identifier v2->v3: Rework according suggestions from Marc Zyngier, Thanks. v3->v4: Rework the driver into a single chip driver. v4->v5: Fix minor issues.

[PATCH v5 1/2] irqchip: Add driver for Loongson-1 interrupt controller

2019-01-28 Thread Jiaxun Yang
This controller appeared on Loongson-1 family MCUs including Loongson-1B and Loongson-1C. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig| 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls1x.c | 192 + 3 files changed, 202

[PATCH] regulator: lochnagar: Fix n_voltages setting for VDDCORE

2019-01-28 Thread Axel Lin
With current n_voltages setting, regulator_list_voltage will return -EINVAL when selector >=57. The highest selector is 0x41, so the n_voltages should be 0x41+1, i.e. 66. Signed-off-by: Axel Lin --- drivers/regulator/lochnagar-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH -next] firewire: net: remove set but not used variable 'guid'

2019-01-28 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/firewire/net.c:488:9: warning: variable 'guid' set but not used [-Wunused-but-set-variable] It not used since commit 6752c8db8e0c ("firewire net, ipv4 arp: Extend hardware address and remove driver-level packet inspection.") Signed-off-by:

Re: [PATCH net-next V4 0/5] vhost: accelerate metadata access through vmap()

2019-01-28 Thread Jason Wang
On 2019/1/27 上午8:31, Michael S. Tsirkin wrote: On Sat, Jan 26, 2019 at 02:37:08PM -0800, David Miller wrote: From: Jason Wang Date: Wed, 23 Jan 2019 17:55:52 +0800 This series tries to access virtqueue metadata through kernel virtual address instead of copy_user() friends since they had

Re: [PATCH V2 rdma-next 2/3] RDMA/hns: Fix the chip hanging caused by sending mailbox during reset

2019-01-28 Thread Wei Hu (Xavier)
On 2019/1/29 2:27, Jason Gunthorpe wrote: > On Sat, Jan 26, 2019 at 09:47:42AM +0800, Wei Hu (Xavier) wrote: >> >> On 2019/1/26 5:50, Jason Gunthorpe wrote: >>> On Fri, Jan 25, 2019 at 10:15:40AM +0800, Wei Hu (Xavier) wrote: On 2019/1/25 2:31, Jason Gunthorpe wrote: > On Thu, Jan 24,

[PATCH] tracing: Fix documentation about disabling options using trace_options

2019-01-28 Thread Srivatsa S. Bhat
From: Srivatsa S. Bhat (VMware) To disable a tracing option using the trace_options file, the option name needs to be prefixed with 'no', and not suffixed, as the README states. Fix it. Signed-off-by: Srivatsa S. Bhat (VMware) --- kernel/trace/trace.c |2 +- 1 file changed, 1

RE: [PATCH V3 3/3] i2c: tegra: Add DMA Support

2019-01-28 Thread Sowjanya Komatineni
> > > This patch adds DMA support for Tegra I2C. > > > > > > Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for > > > transfer size of the max FIFO depth and DMA mode is used for > > > transfer size higher than max FIFO depth to save CPU overhead. > > > > > > PIO mode needs full

linux-next: build warning after merge of the spi tree

2019-01-28 Thread Stephen Rothwell
Hi all, After merging the spi tree, today's linux-next build (KCONFIG_NAME) produced this warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/spi/spi-nxp-fspi.o see include/linux/module.h for more information Introduced by commit a5356aef6a90 ("spi: spi-mem: Add driver for NXP

Re: [RFC][PATCH v2 00/21] PMEM NUMA node and hotness accounting/migration

2019-01-28 Thread Fengguang Wu
Hi Jonathan, Thanks for showing the gap on tracking hot accesses from devices. On Mon, Jan 28, 2019 at 05:42:39PM +, Jonathan Cameron wrote: On Wed, 2 Jan 2019 12:21:10 + Jonathan Cameron wrote: On Fri, 28 Dec 2018 20:52:24 +0100 Michal Hocko wrote: > [Ccing Mel and Andrea] >

[RFC/PATCH 2/5] OPP: Make dev_pm_opp_set_rate() with freq=0 as valid

2019-01-28 Thread Stephen Boyd
From: Rajendra Nayak For devices with performance state, we use dev_pm_opp_set_rate() to set the appropriate clk rate and the performance state. We do need a way to *remove* the performance state vote when we idle the device and turn the clocks off. Use dev_pm_opp_set_rate() with freq=0 to

[RFC/PATCH 4/5] spi: spi-geni-qcom: Use OPP API to set clk/perf state

2019-01-28 Thread Stephen Boyd
From: Rajendra Nayak geni spi needs to express a perforamnce state requirement on CX depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Signed-off-by: Stephen

[RFC/PATCH 3/5] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2019-01-28 Thread Stephen Boyd
From: Rajendra Nayak geni serial needs to express a perforamnce state requirement on CX depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Signed-off-by:

[RFC/PATCH 1/5] OPP: Don't overwrite rounded clk rate

2019-01-28 Thread Stephen Boyd
Doing this allows us to call this API with any rate requested and have it not need to match in the OPP table. Instead, we'll round the rate up to the nearest OPP that we see so that we can get the voltage or level that's required for that OPP. This supports users of OPP that want to specify the

[RFC/PATCH 5/5] arm64: dts: sdm845: Add OPP table for all qup devices

2019-01-28 Thread Stephen Boyd
From: Rajendra Nayak qup has a requirement to vote on the performance state of the CX domain in sdm845 devices. Add OPP tables for these and also add power-domains property for all qup instances. Signed-off-by: Rajendra Nayak Signed-off-by: Stephen Boyd ---

[RFC/PATCH 0/5] DVFS in the OPP core

2019-01-28 Thread Stephen Boyd
This patch series is an RFC around how we can implement DVFS for devices that aren't your typical OPPish device (i.e. GPU/CPU). They don't have a strict set of frequencies that they have been tested at to derive some operating performance point. Instead they have a coarser set of frequency max or

Re: [PATCH v3 5/5] psi: introduce psi monitor

2019-01-28 Thread Suren Baghdasaryan
On Mon, Jan 28, 2019 at 3:54 PM Minchan Kim wrote: > > Hi Suren, > > When I review first time, it was rather hard to understand due to naming > so below comments are mostly cleanup or minor. > I'm not strong against if you don't think it's helpful. > Feel free to select parts. > > Thanks. Thanks

Re: [RFC PATCH v2] async: Add cmdline option to specify drivers to be async probed

2019-01-28 Thread Feng Tang
Hi Alexander, Thanks for the review. On Mon, Jan 28, 2019 at 08:31:11AM -0800, Alexander Duyck wrote: > On Mon, 2019-01-28 at 09:20 +0800, Feng Tang wrote: > > Asynchronous driver probing can help much on kernel fastboot, and > > this option can provide a flexible way to optimize and quickly

Re: [PATCH v2] mm/slub: introduce SLAB_WARN_ON_ERROR

2019-01-28 Thread David Rientjes
On Thu, 24 Jan 2019, miles.c...@mediatek.com wrote: > From: Miles Chen > > When debugging slab errors in slub.c, sometimes we have to trigger > a panic in order to get the coredump file. Add a debug option > SLAB_WARN_ON_ERROR to toggle WARN_ON() when the option is set. > Wouldn't it be

Re: [PATCH 2/5] mm/resource: move HMM pr_debug() deeper into resource code

2019-01-28 Thread Michael Ellerman
Dave Hansen writes: > On 1/25/19 1:18 PM, Bjorn Helgaas wrote: >> On Thu, Jan 24, 2019 at 5:21 PM Dave Hansen >> wrote: >>> diff -puN kernel/resource.c~move-request_region-check kernel/resource.c >>> --- a/kernel/resource.c~move-request_region-check 2019-01-24 >>> 15:13:14.453199539

Re: [PATCH] MAINTAINERS: Change entry name of samsung exynos bus frequency driver

2019-01-28 Thread Chanwoo Choi
Dear all, Gently Ping. Best Regards, Chanwoo Choi On 18. 12. 12. 오전 10:41, Chanwoo Choi wrote: > The Samsung Exynos's device drivers have the 'SASMUNG EXYNOS' prefix > in front of the specific device driver name. In order to keep the > consistent naming format, change the entry name of bus

Re: [PATCH v2] irqchip/gic-v4: fix occasional VLPI drop

2019-01-28 Thread Heyi Guo
Hi Marc, Any comments? Thanks, Heyi On 2019/1/24 21:37, Heyi Guo wrote: 1. In current implementation, every VLPI will temporarily be mapped to the first CPU in system (normally CPU0) and then moved to the real scheduled CPU later. 2. So there is a time window and a VLPI may be sent to CPU0

Re: [PATCH][RFC] module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity

2019-01-28 Thread Joe Perches
On Mon, 2019-01-28 at 23:38 +0100, Thomas Gleixner wrote: > Therefore remove the well meant, but ill defined, distinction between "GPL" > and "GPL v2" and document that: > > - "GPL" and "GPL v2" both express that the module is licensed under GPLv2 > (without a distinction of 'only' and 'or

Re: [RESEND PATCH v2 1/1] prctl: add PR_{GET,SET}_KILL_DESCENDANTS_ON_EXIT

2019-01-28 Thread Andrew Morton
On Fri, 18 Jan 2019 14:11:30 +0100 Jürg Billeter wrote: > This introduces a new thread group flag that can be set by calling > > prctl(PR_SET_KILL_DESCENDANTS_ON_EXIT, 1, 0, 0, 0) > > When a thread group exits with this flag set, it will send SIGKILL to > all descendant processes. This

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2019-01-28 Thread Jerome Glisse
On Mon, Jan 28, 2019 at 04:22:16PM -0800, John Hubbard wrote: > On 1/23/19 11:04 AM, Jerome Glisse wrote: > > On Wed, Jan 23, 2019 at 07:02:30PM +0100, Jan Kara wrote: > >> On Tue 22-01-19 11:46:13, Jerome Glisse wrote: > >>> On Tue, Jan 22, 2019 at 04:24:59PM +0100, Jan Kara wrote: > On Thu

Re: [PATCH v2 0/4] crypto: hisilicon: Add HiSilicon QM and ZIP controller driver

2019-01-28 Thread Zhou Wang
On 2019/1/23 21:08, Zhou Wang wrote: > This series adds HiSilicon QM and ZIP controller driver in crypto subsystem. > > A simple QM/ZIP driver which helps to provide an example for a general > accelerator framework is under review in community[1]. Based on this simple > driver, this series adds

Re: [PATCH 1/5] mm/resource: return real error codes from walk failures

2019-01-28 Thread Michael Ellerman
Dave Hansen writes: > On 1/25/19 1:02 PM, Bjorn Helgaas wrote: >>> @@ -453,7 +453,7 @@ int walk_system_ram_range(unsigned long >>> unsigned long flags; >>> struct resource res; >>> unsigned long pfn, end_pfn; >>> - int ret = -1; >>> + int ret = -EINVAL; >> Can

[PATCH] iommu/amd: print reason for iommu_map_page failure in map_sg

2019-01-28 Thread Jerry Snitselaar
Since there are multiple possible failures in iommu_map_page it would be useful to know which case is being hit when the error message is printed in map_sg. While here, fix up checkpatch complaint about using function name in a string instead of __func__. Cc: Joerg Roedel Signed-off-by: Jerry

[PATCH v2] nfit: add Hyper-V NVDIMM DSM command set to white list

2019-01-28 Thread Dexuan Cui
Add the Hyper-V _DSM command set to the white list of NVDIMM command sets. This command set is documented at http://www.uefi.org/RFIC_LIST (see "Virtual NVDIMM 0x1901"). Thanks Dan Williams for writing the comment change. Signed-off-by: Dexuan Cui Reviewed-by: Michael Kelley --- Changes

Re: [PATCH 1/8] clk: samsung: add needed IDs for DMC clocks in Exynos5420

2019-01-28 Thread Chanwoo Choi
Hi Lukasz, This patchset don't contain the cover-letter. Please send the cover-letter which explains what to do on this patchset. And is it supporting all Exynos5 for both 32bit(5420,5422) and 64bit(5433) or only Exynos542x(32bit)? If it only support the Exynos 542x series, you have to change

[PATCH 5/7] binder: remove kernel vm_area for buffer space

2019-01-28 Thread Todd Kjos
Remove the kernel's vm_area and the code that maps buffer pages into it. Signed-off-by: Todd Kjos --- drivers/android/binder_alloc.c | 40 ++ 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/drivers/android/binder_alloc.c

[PATCH 4/7] binder: avoid kernel vm_area for buffer fixups

2019-01-28 Thread Todd Kjos
Refactor the functions to validate and fixup struct binder_buffer pointer objects to avoid using vm_area pointers. Instead copy to/from kernel space using binder_alloc_copy_to_buffer() and binder_alloc_copy_from_buffer(). The following functions were refactored: binder_validate_ptr()

[PATCH 6/7] binder: remove user_buffer_offset

2019-01-28 Thread Todd Kjos
Remove user_buffer_offset since there is no kernel buffer pointer anymore. Signed-off-by: Todd Kjos --- drivers/android/binder.c | 38 +++--- drivers/android/binder_alloc.c | 16 ++ drivers/android/binder_alloc.h | 23 3 files

[PATCH 3/7] binder: add function to copy binder object from buffer

2019-01-28 Thread Todd Kjos
When creating or tearing down a transaction, the binder driver examines objects in the buffer and takes appropriate action. To do this without needing to dereference pointers into the buffer, the local copies of the objects are needed. This patch introduces a function to validate and copy binder

[PATCH 7/7] binder: use userspace pointer as base of buffer space

2019-01-28 Thread Todd Kjos
Now that alloc->buffer points to the userspace vm_area rename buffer->data to buffer->user_data and rename local pointers that hold user addresses. Also use the "__user" tag to annotate all user pointers so sparse can flag cases where user pointer vaues are copied to kernel pointers. Refactor

[PATCH 1/7] binder: create userspace-to-binder-buffer copy function

2019-01-28 Thread Todd Kjos
The binder driver uses a vm_area to map the per-process binder buffer space. For 32-bit android devices, this is now taking too much vmalloc space. This patch removes the use of vm_area when copying the transaction data from the sender to the buffer space. Instead of using copy_from_user() for

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