Re: [PATCH v11 26/26] s390: doc: detailed specifications for AP virtualization

2018-09-26 Thread Harald Freudenberger
On 27.09.2018 00:42, Alex Williamson wrote: > On Tue, 25 Sep 2018 19:16:41 -0400 > Tony Krowiak wrote: > >> From: Tony Krowiak >> >> This patch provides documentation describing the AP architecture and >> design concepts behind the virtualization of AP devices. It also >> includes an example of h

Re: [PATCH v2] gpiolib: Show correct direction from the beginning

2018-09-26 Thread Stephen Boyd
Quoting Ricardo Ribalda Delgado (2018-09-21 03:36:04) > Current code assumes that the direction is input if direction_input > function is set. > This might not be the case on GPIOs with programmable direction. > > Signed-off-by: Ricardo Ribalda Delgado > --- Looks OK to me visually. I haven't te

Re: [PATCH v2, RESEND 0/3] tpm: retrieve digest size of unknown algorithms from TPM

2018-09-26 Thread Roberto Sassu
On 9/26/2018 8:03 PM, Mimi Zohar wrote: On Wed, 2018-09-26 at 10:40 -0400, Mimi Zohar wrote: On Mon, 2018-09-17 at 11:38 +0200, Roberto Sassu wrote: Resending to maintainer with correct mailing lists in CC. The TPM driver currently relies on the crypto subsystem to determine the digest size of

Re: [PATCH v4 1/2] Bluetooth: Add device_get_bd_address()

2018-09-26 Thread Sakari Ailus
On Wed, Sep 26, 2018 at 05:48:09PM -0700, Matthias Kaehlcke wrote: > Provide an API for Bluetooth drivers to retrieve the Bluetooth Device > address (BD_ADDR) for a device. If the firmware node of the device > has a property 'local-bd-address' the BD address is read from this > property. > > Signe

Re: [PATCH v2] dt-bindings: input: pwm-vibrator: correct pwms in example

2018-09-26 Thread Sebastian Reichel
Hi, On Wed, Sep 26, 2018 at 08:48:58PM -0400, Brian Masney wrote: > In the example for the pwm-vibrator bindings, pwm8 is the direction pin, > and pwm9 is the enable pin. The pwms on the vibrator node has these two > values swapped so this patch corrects it. > > Signed-off-by: Brian Masney > ---

[PATCH v24 2/2] soc: mediatek: Add Mediatek CMDQ helper

2018-09-26 Thread Houlong Wei
Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. Signed-off-by: Houlong Wei Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig | 12 ++ drivers/soc/mediatek/Makefile |1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 292 +++

[PATCH v24 1/2] arm64: dts: mt8173: Add GCE node

2018-09-26 Thread Houlong Wei
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: Houlong Wei Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/m

Re: [PATCH v3 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-09-26 Thread Stephen Boyd
Quoting Ryan Case (2018-09-26 13:52:04) > From: Girish Mahadevan > > New driver for Qualcomm QuadSPI(QSPI) controller that is used to > communicate with slaves such flash memory devices. The QSPI controller s/such/such as/? > can operate in 2 or 4 wire mode but only supports SPI Mode 0. The > c

[PATCH v24 0/2] MediaTek MT8173 CMDQ support

2018-09-26 Thread Houlong Wei
Hi, This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement. Changes since v23: -rebase on v4

Re: [PATCH v2 2/4] power: supply: core: Introduce properties to present the battery OCV table

2018-09-26 Thread Sebastian Reichel
Hi, On Thu, Sep 27, 2018 at 09:10:05AM +0800, Baolin Wang wrote: > On 26 September 2018 at 21:51, Sebastian Reichel wrote: > > Looks good to me. Technically this can result in existing users of > > power_supply_get_battery_info leaking memory, if they have an OCV > > table in DT. > > Fortunately

Re: possible deadlock in path_openat

2018-09-26 Thread Miklos Szeredi
On Thu, Sep 27, 2018 at 8:05 AM, Amir Goldstein wrote: > So this is interesting... if there is a file in overlayfs lower layer with > the f_op read = seq_read then &p->lock in the chain above could be > takes after ovl locks and that is in reveres order to the order of locks > in execve on an ove

[PATCH v2] NTB: switchtec_ntb: Update switchtec documentation with pre-requisites for NTB

2018-09-26 Thread Wesley.Sheng
Update switchtec documentation 1.add pre-requisites for NTB driver 2.misc updates change NTB hardware driver name to ntb_hw_switchtec update the description of 2 partitions limit add reference to Linux Documentation/ntb.txt add use of term 'Command ID' add use of term 'Command Return Value' a

Re: [PATCH v2 1/7] drivers: dio: Avoids building driver if CONFIG_DIO is disabled

2018-09-26 Thread Rolf Eike Beer
Am Donnerstag, 27. September 2018, 03:39:56 CEST schrieb Leonardo Brás: > Avoids building driver if 'make drivers/dio/' is called and > CONFIG_DIO is disabled. > > Signed-off-by: Leonardo Brás > --- > drivers/dio/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/

Re: [PATCH v2 6/7] drivers: oprofile: Avoids building driver from direct make command

2018-09-26 Thread Rolf Eike Beer
Am Donnerstag, 27. September 2018, 03:41:38 CEST schrieb Leonardo Brás: > Creates new Makefile to avoid building driver if > 'make drivers/oprofile/' is called directly. > > This driver is usually built from arch/$ARCH and seems to have > no meaning building alone. > > Signed-off-by: Leonardo Brá

Re: [PATCHv4 4/6] ARM: dts: exynos: Add CD and WP pins to Odroid XU3/XU4 SD card

2018-09-26 Thread Krzysztof Kozlowski
On Thu, 27 Sep 2018 at 05:45, Anand Moon wrote: > > Hi Krzysztof, > On Thu, 27 Sep 2018 at 00:36, Krzysztof Kozlowski wrote: > > > > On Sat, Sep 22, 2018 at 07:52:36AM +, Anand Moon wrote: > > > Add the card-detect and write-protect GPIO pins for OdroidXU3/XU4 > > > SD card by adding pinctrl

[PATCH v3 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-09-26 Thread Yi Sun
Follow PV spinlock mechanism to implement the callback functions to allow the CPU idling and kicking operations on Hyper-V. Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Thomas Gleixner Cc: Michael Kelley (EOSG) Signed-off-by: Yi Sun --- v2->v3: - use "Hyper-V: " as

[PATCH v3 1/2] X86/Hyper-V: Add Guest IDLE MSR support

2018-09-26 Thread Yi Sun
Hyper-V may expose a HV_X64_MSR_GUEST_IDLE MSR. We can read HYPERV_CPUID_FEATURES eax to check it. Read this MSR can trigger the guest's transition to the idle power state which can be exited by an IPI even if IF flag is disabled. Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger R

[PATCH v3 0/2] Enable PV qspinlock for Hyper-V

2018-09-26 Thread Yi Sun
v2->v3: - use "Hyper-V: " as the message prefix - remove unnecessary header files - remove unnecessary check in 'hv_qlock_wait' - fix compilation error on different platforms v1->v2: - compile hv_spinlock.c only when CONFIG_PARAVIRT_SPINLOCKS enabled - merge v1 patch 2/3 to

Re: possible deadlock in path_openat

2018-09-26 Thread Amir Goldstein
On Wed, Sep 26, 2018 at 7:33 AM Miklos Szeredi wrote: > > [Cc linux-unionfs] > > On Wed, Sep 26, 2018 at 1:44 AM, syzbot > wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:2dd68cc7fd8c Merge gitolite.kernel.org:/pub/scm/linux/kern.. > > git tree: upstre

[PATCH 1/12 v2] switchtec: Remove immediate status check after submit a MRPC command

2018-09-26 Thread Wesley.Sheng
After submit a Firmware Download (Download sub-command) MRPC command, Switchtec firmware refuses to response any management EP's BAR access until current flash programming finished. During this time, a READ TLP to the gas area in the BAR of the management EP will complete with significant delay li

(sin asunto)

2018-09-26 Thread Mrs. Mavis Wanczyk
-- Good Day, I, Mavis Wanczyk donates $ 5 Million Dollars to you, from part of my Powerball Jackpot Lottery of $ 758 Million Dollars, respond with your details for claims. I await your earliest response and God Bless you. Good luck, Mavis Wanczyk.

Re: [PATCH] Raise maximum number of memory controllers

2018-09-26 Thread Borislav Petkov
On Tue, Sep 25, 2018 at 09:34:49AM -0500, Justin Ernst wrote: > We observe an oops in the skx_edac module during boot. > Examining /var/log/messages: > [ 3401.985757] EDAC MC0: Giving out device to module skx_edac controller > Skylake Socket#0 IMC#0 > [ 3401.985887] EDAC MC1: Giving out device to

[PATCH] use STORE_LOCKED instead of STORE macro

2018-09-26 Thread Dongbo Cao
merge sysfs_writeback_running attr and sysfs_writeback_percent attr together with other attrs of cached_dev. Signed-off-by: Dongbo Cao --- drivers/md/bcache/sysfs.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache

linux-next: Tree for Sep 27

2018-09-26 Thread Stephen Rothwell
Hi all, Changes since 20180926: Dropped trees: xarray, ida (temporarily) The pci tree lost its build failure. Non-merge commits (relative to Linus' tree): 6252 6435 files changed, 294737 insertions(+), 131625 dele

Re: [PATCH V5 06/30] csky: Cache and TLB routines

2018-09-26 Thread Guo Ren
On Tue, Sep 25, 2018 at 09:24:07AM +0200, Peter Zijlstra wrote: > On Mon, Sep 24, 2018 at 10:36:22PM +0800, Guo Ren wrote: > > diff --git a/arch/csky/abiv1/inc/abi/cacheflush.h > > b/arch/csky/abiv1/inc/abi/cacheflush.h > > new file mode 100644 > > index 000..f0de49c > > --- /dev/null > > +++

Re: [PATCH v3 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation

2018-09-26 Thread Stephen Boyd
Quoting Ryan Case (2018-09-26 13:52:03) > From: Girish Mahadevan > > Bindings for Qualcomm Quad SPI used on SoCs such as sdm845. > > Signed-off-by: Girish Mahadevan > Signed-off-by: Ryan Case > --- Reviewed-by: Stephen Boyd

RE: [PATCH v2] PM / devfreq: Stop the governor before device_unregister()

2018-09-26 Thread MyungJoo Ham
> From: Vincent Donnefort > > device_release() is freeing the resources before calling the device > specific release callback which is, in the case of devfreq, stopping > the governor. > > It is a problem as some governors are using the device resources. e.g. > simpleondemand which is using the

Re: [PATCH v2 06/21] platform: goldfish: pipe: Add DMA support to goldfish pipe

2018-09-26 Thread Greg KH
On Wed, Sep 26, 2018 at 04:02:19PM -0700, r...@google.com wrote: > From: Roman Kiryanov > > Goldfish DMA is an extension to the pipe device and is designed > to facilitate high-speed RAM->RAM transfers from guest to host. > > See uapi/linux/goldfish/goldfish_dma.h for more details. > > Signed-o

Re: [PATCH v2 4/4] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-26 Thread Baolin Wang
On 26 September 2018 at 23:30, Sebastian Reichel wrote: > Hi, > > On Wed, Sep 26, 2018 at 10:59:14AM +0800, Baolin Wang wrote: >> This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, >> which is used to calculate the battery capacity. >> >> Original-by: Yuanjiang Yu >> Signed-of

Re: [PATCH] staging: rtl8723bs: Mark ACPI table declaration as used

2018-09-26 Thread Greg Kroah-Hartman
On Wed, Sep 26, 2018 at 04:20:55PM -0700, Nathan Chancellor wrote: > Clang emits the following warning: > > drivers/staging/rtl8723bs/os_dep/sdio_intf.c:25:36: warning: variable > 'acpi_ids' is not needed and will not be emitted > [-Wunneeded-internal-declaration] > static const struct acpi_device

[PATCH v3] IB/rxe: Remove unnecessary enum values

2018-09-26 Thread Nathan Chancellor
Clang warns when an emumerated type is implicitly converted to another. drivers/infiniband/sw/rxe/rxe.c:106:27: warning: implicit conversion from enumeration type 'enum rxe_device_param' to different enumeration type 'enum ib_atomic_cap' [-Wenum-conversion] rxe->attr.atomic_cap

[PATCH linux-next 10/10] ASoC: rsnd: Add kctrl to configure dai's busif

2018-09-26 Thread jiada_wang
From: Jiada Wang ssi0, ssi1, ssi2, ssi3, ssi4 and ssi9 have busif0 to busif7, currently only busif0 is used by all ssi. But tdm split and tdm ex-split mode, which require busif1 to busif7. This patch adds kctrl in ssi for dai-link, to make it possible to configure the busif used by each dai-link

[PATCH linux-next 09/10] ASoC: rsnd: add busif property to dai stream

2018-09-26 Thread jiada_wang
From: Jiada Wang SSI may use different busif for data transfer, this patch adds busif property to each dai stream, to indicate the busif used by playback/capture stream. Signed-off-by: Jiada Wang --- sound/soc/sh/rcar/core.c | 16 +++- sound/soc/sh/rcar/rsnd.h | 3 +++ sound/soc/s

[PATCH linux-next 08/10] arm64: r8a77965: change to use extended audio dmac register

2018-09-26 Thread jiada_wang
From: Jiada Wang Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used. Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH linux-next 07/10] arm64: r8a774a1: change to use extended audio dmac register

2018-09-26 Thread jiada_wang
From: Jiada Wang Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used. Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH linux-next 05/10] arm64: r8a7795: change to use extended audio dmac register

2018-09-26 Thread jiada_wang
From: Jiada Wang Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used. Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[RESEND PATCH] ARM: prevent tracing IPI_CPU_BACKTRACE

2018-09-26 Thread Chunyan Zhang
From: Arnd Bergmann When function tracing for IPIs is enabled, we get a warning for an overflow of the ipi_types array with the IPI_CPU_BACKTRACE type as triggered by raise_nmi(): arch/arm/kernel/smp.c: In function 'raise_nmi': arch/arm/kernel/smp.c:489:2: error: array subscript is above array b

[PATCH linux-next 06/10] arm64: r8a7796: change to use extended audio dmac register

2018-09-26 Thread jiada_wang
From: Jiada Wang Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used. Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH V5 17/30] csky: Misc headers

2018-09-26 Thread Guo Ren
On Tue, Sep 25, 2018 at 12:45:41PM +0200, Peter Zijlstra wrote: > On Tue, Sep 25, 2018 at 12:08:03PM +0200, Andrea Parri wrote: > > Hi Guo, > > > > > +/* > > > + * set_bit - Atomically set a bit in memory > > > + * @nr: the bit to set > > > + * @addr: the address to start counting from > > > + * >

Re: [PATCH v2] IB/rxe: Avoid implicit enum conversions in rxe_init functions

2018-09-26 Thread Jason Gunthorpe
On Wed, Sep 26, 2018 at 10:01:57PM -0700, Nathan Chancellor wrote: > Clang warns when an emumerated type is implicitly converted to another. > > drivers/infiniband/sw/rxe/rxe.c:106:27: warning: implicit conversion > from enumeration type 'enum rxe_device_param' to different enumeration > type 'enu

[PATCH linux-next 02/10] arm64: r8a7795: add dma request number for busif1 ~ busif7

2018-09-26 Thread jiada_wang
From: Jiada Wang This patch adds dma request number for busif1 ~ busif7 Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 130 --- 1 file changed, 113 insertions(+), 17 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/

[PATCH linux-next 04/10] arm64: r8a774a1: add dma request number for busif1 ~ busif7

2018-09-26 Thread jiada_wang
From: Jiada Wang This patch adds dma request number for busif1 ~ busif7 Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 137 ++ 1 file changed, 117 insertions(+), 20 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi b/arch/arm64

[PATCH v13 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-09-26 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang Acked-by: Pavel Machek --- Changes from v12: - None. Changes from v11: - None. Changes from v10: - Add duration alignment function suggested by Jacek. - Ad

[PATCH v13 1/2] leds: core: Introduce LED pattern trigger

2018-09-26 Thread Baolin Wang
This patch adds one new led trigger that LED device can configure the software or hardware pattern and trigger it. Consumers can write 'pattern' file to enable the software pattern which alters the brightness for the specified duration with one software timer. Moreover consumers can write 'hw_pat

[PATCH linux-next 03/10] arm64: r8a7796: add dma request number for busif1 ~ busif7

2018-09-26 Thread jiada_wang
From: Jiada Wang This patch adds dma request number for busif1 ~ busif7 Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 136 +++ 1 file changed, 116 insertions(+), 20 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/

[PATCH linux-next 00/10] ASoC: rsnd: support to set different busif

2018-09-26 Thread jiada_wang
From: Jiada Wang Rcar audio DMA/SSIU already support to use different BUSIF to transfer data, but busif is fixed at 0. This patch set adds kctrl interface "SSI Out/In BUSIF", which enables to configure busif for each dai-stream used in transfer. device tree files are updated to use extended aud

[PATCH linux-next 01/10] ASoC: rsnd: ssi: Request dedicated dma channels for busif1 to 7

2018-09-26 Thread jiada_wang
From: Jiada Wang Currently ssi driver only request dma channel for SSI_0, which is used to transfer data to/from busif0. But since busif1 to busif7 also maybe used, dedicated dma channels are request for data transfer between these busif. Signed-off-by: Jiada Wang --- sound/soc/sh/rcar/ssi.c

[PATCH v2] IB/rxe: Avoid implicit enum conversions in rxe_init functions

2018-09-26 Thread Nathan Chancellor
Clang warns when an emumerated type is implicitly converted to another. drivers/infiniband/sw/rxe/rxe.c:106:27: warning: implicit conversion from enumeration type 'enum rxe_device_param' to different enumeration type 'enum ib_atomic_cap' [-Wenum-conversion] rxe->attr.atomic_cap

[PATCH] arm64: dts: k3-am65-wakeup: Fix wakeup_uart reg address

2018-09-26 Thread Vignesh R
t;) Signed-off-by: Vignesh R --- Based on next-20180926 arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi index ee56959f4af8..c617393ea767 100644

[PATCH v7 06/39] component: alloc component_match without any comp to match

2018-09-26 Thread Ramalingam C
If all the components associated to a component master is not added to the component framework due to the HW capability or Kconfig selection, component_match will be NULL at component_master_add_with_match(). To avoid this, component_match_alloc() is added to the framework, to allcoate the struct

Re: [PATCH] csky: fixups after bootmem removal

2018-09-26 Thread Guo Ren
On Wed, Sep 26, 2018 at 02:27:45PM +0300, Mike Rapoport wrote: > Hi, > > The below patch fixes the bootmem leftovers in csky. It is based on the > current mmots and csky build there fails because of undefined reference to > dma_direct_ops: > > MODPOST vmlinux.o > kernel/dma/mapping.o: In funct

Re: [PATCH] Raise maximum number of memory controllers

2018-09-26 Thread Borislav Petkov
On Wed, Sep 26, 2018 at 04:02:57PM -0700, Luck, Tony wrote: > We don't have stats, nor control of power on a per memory controller > or per dimm basis. So all these files are just noise. Yeah, and also, looking at your previous mail, stuff like: /sys/bus/mc6/devices/dimm0 /sys/bus/mc4/devices/dim

Re: [PATCH] IB/mlx4: Avoid implicit enumerated type conversion

2018-09-26 Thread Jason Gunthorpe
On Wed, Sep 26, 2018 at 06:08:03PM -0700, Nathan Chancellor wrote: > On Mon, Sep 24, 2018 at 08:37:22PM -0600, Jason Gunthorpe wrote: > > On Mon, Sep 24, 2018 at 03:29:38PM -0700, Nick Desaulniers wrote: > > > On Mon, Sep 24, 2018 at 3:27 PM Nathan Chancellor > > > wrote: > > > > > > > > On Mon, S

Re: [PATCH V3 10/13] x86/hyper-v: Add HvFlushGuestAddressList hypercall support

2018-09-26 Thread Tianyu Lan
On 9/27/2018 12:16 PM, Michael Kelley (EOSG) wrote: > From: Tianyu Lan Sent: Wednesday, September 26, 2018 8:50 PM >> >> Hyper-V provides HvFlushGuestAddressList() hypercall to flush EPT tlb >> with specified ranges. This patch is to add the hypercall support. >> >> Signed-off-by: Lan Tianyu >> >

RE: [PATCH V3 10/13] x86/hyper-v: Add HvFlushGuestAddressList hypercall support

2018-09-26 Thread Michael Kelley (EOSG)
From: Tianyu Lan Sent: Wednesday, September 26, 2018 8:50 PM > > Hyper-V provides HvFlushGuestAddressList() hypercall to flush EPT tlb > with specified ranges. This patch is to add the hypercall support. > > Signed-off-by: Lan Tianyu > Looks good! Reviewed-by: Michael Kelley

Re: [PATCH] torture-test modules: Remove unnecessary "ret" variables

2018-09-26 Thread Paul E. McKenney
On Tue, Sep 25, 2018 at 02:47:08PM -0500, Pierce Griffiths wrote: > Paul, > The #ifdef cannot be replaced, as this would break the build for > CONFIG_HOTPLUG_CPU=n builds. There are assignments and references to two > global variables, a struct, and a function that are declared/defined in > a large

Re: possible deadlock in ovl_write_iter

2018-09-26 Thread Amir Goldstein
[CC: fsdevel] On Thu, Sep 27, 2018 at 6:48 AM Amir Goldstein wrote: > > On Wed, Sep 26, 2018 at 11:44 PM syzbot > wrote: > > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:a38523185b40 erge tag 'libnvdimm-fixes-4.19-rc6' of git://.. > > git tree: upstream >

[PATCH V3 2/13] KVM/MMU: Add tlb flush with range helper function

2018-09-26 Thread Tianyu Lan
This patch is to add wrapper functions for tlb_remote_flush_with_range callback. Signed-off-by: Lan Tianyu --- Change since V2: Fix comment in the kvm_flush_remote_tlbs_with_range() --- arch/x86/kvm/mmu.c | 48 1 file changed, 48 insertions

[PATCH V3 4/13] KVM/MMU: Flush tlb directly in the kvm_handle_hva_range()

2018-09-26 Thread Tianyu Lan
This patch is to flush tlb directly in the kvm_handle_hva_range() when range flush is available. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index d10d8423e8d6..877edae0401f 100644 --- a/arch/

[PATCH V3 7/13] KVM: Add flush_link and parent_pte in the struct kvm_mmu_page

2018-09-26 Thread Tianyu Lan
PV EPT tlb flush function will accept a list of flush ranges and use struct kvm_mmu_page as the list entry. Signed-off-by: Lan Tianyu --- arch/x86/include/asm/kvm_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index a6

[PATCH V3 13/13] KVM/VMX: Add hv tlb range flush support

2018-09-26 Thread Tianyu Lan
This patch is to register tlb_remote_flush_with_range callback with hv tlb range flush interface. Signed-off-by: Lan Tianyu --- Change since v1: Pass flush range with new hyper-v tlb flush struct rather than KVM tlb flush struct. --- arch/x86/kvm/vmx.c | 58 +++

[PATCH V3 8/13] KVM: Add spte's point in the struct kvm_mmu_page

2018-09-26 Thread Tianyu Lan
It's necessary to check whether mmu page is last or large page when add mmu page into flush list. "spte" is needed for such check and so add spte point in the struct kvm_mmu_page. Signed-off-by: Lan Tianyu --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/mmu.c | 5 + arch

[PATCH V3 11/13] x86/Hyper-v: Add trace in the hyperv_nested_flush_guest_mapping_range()

2018-09-26 Thread Tianyu Lan
This patch is to trace log in the hyperv_nested_flush_ guest_mapping_range(). Signed-off-by: Lan Tianyu --- arch/x86/hyperv/nested.c| 1 + arch/x86/include/asm/trace/hyperv.h | 14 ++ 2 files changed, 15 insertions(+) diff --git a/arch/x86/hyperv/nested.c b/arch/x86/hyp

[PATCH V3 9/13] KVM/MMU: Replace tlb flush function with range list flush function

2018-09-26 Thread Tianyu Lan
This patch is to use range list flush function in the mmu_sync_children(), kvm_mmu_commit_zap_page() and FNAME(sync_page)(). Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 26 +++--- arch/x86/kvm/paging_tmpl.h | 5 - 2 files changed, 27 insertions(+), 4 delet

[PATCH V3 12/13] KVM/VMX: Change hv flush logic when ept tables are mismatched.

2018-09-26 Thread Tianyu Lan
If ept table pointers are mismatched, flushing tlb for each vcpus via hv flush interface still helps to reduce vmexits which are triggered by IPI and INEPT emulation. Signed-off-by: Lan Tianyu --- arch/x86/kvm/vmx.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --gi

[PATCH V3 10/13] x86/hyper-v: Add HvFlushGuestAddressList hypercall support

2018-09-26 Thread Tianyu Lan
Hyper-V provides HvFlushGuestAddressList() hypercall to flush EPT tlb with specified ranges. This patch is to add the hypercall support. Signed-off-by: Lan Tianyu --- Change since v2: Fix some coding style issues - Move HV_MAX_FLUSH_PAGES and HV_MAX_FLUSH_REP_COUNT to hyperv

[PATCH V3 3/13] KVM: Replace old tlb flush function with new one to flush a specified range.

2018-09-26 Thread Tianyu Lan
This patch is to replace kvm_flush_remote_tlbs() with kvm_flush_ remote_tlbs_with_address() in some functions without logic change. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 33 ++--- arch/x86/kvm/paging_tmpl.h | 3 ++- 2 files changed, 24 insertions

[PATCH V3 1/13] KVM: Add tlb_remote_flush_with_range callback in kvm_x86_ops

2018-09-26 Thread Tianyu Lan
Add flush range call back in the kvm_x86_ops and platform can use it to register its associated function. The parameter "kvm_tlb_range" accepts a single range and flush list which contains a list of ranges. Signed-off-by: Lan Tianyu --- Change since v1: Change "end_gfn" to "pages" to aviod

[PATCH V3 5/13] KVM/MMU: Flush tlb directly in the kvm_zap_gfn_range()

2018-09-26 Thread Tianyu Lan
Originally, flush tlb is done by slot_handle_level_range(). This patch is to flush tlb directly in the kvm_zap_gfn_range() when range flush is available. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/x8

[PATCH V3 00/13] x86/KVM/Hyper-v: Add HV ept tlb range flush hypercall support in KVM

2018-09-26 Thread Tianyu Lan
For nested memory virtualization, Hyper-v doesn't set write-protect L1 hypervisor EPT page directory and page table node to track changes while it relies on guest to tell it changes via HvFlushGuestAddressLlist hypercall. HvFlushGuestAddressLlist hypercall provides a way to flush EPT page table wi

[PATCH V3 6/13] KVM/MMU: Flush tlb directly in kvm_mmu_zap_collapsible_spte()

2018-09-26 Thread Tianyu Lan
kvm_mmu_zap_collapsible_spte() returns flush request to the slot_handle_leaf() and the latter does flush on demand. When range flush is available, make kvm_mmu_zap_collapsible_spte() to flush tlb with range directly to avoid returning range back to slot_handle_leaf(). Signed-off-by: Lan Tianyu --

Re: possible deadlock in ovl_write_iter

2018-09-26 Thread Amir Goldstein
On Wed, Sep 26, 2018 at 11:44 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:a38523185b40 erge tag 'libnvdimm-fixes-4.19-rc6' of git://.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=178f63fa40 > kernel config:

Re: [PATCHv4 4/6] ARM: dts: exynos: Add CD and WP pins to Odroid XU3/XU4 SD card

2018-09-26 Thread Anand Moon
Hi Krzysztof, On Thu, 27 Sep 2018 at 00:36, Krzysztof Kozlowski wrote: > > On Sat, Sep 22, 2018 at 07:52:36AM +, Anand Moon wrote: > > Add the card-detect and write-protect GPIO pins for OdroidXU3/XU4 > > SD card by adding pinctrl setting for wp-gpio pin and set it to > > active low. > > > > T

[PATCH] mfd: cros_ec: Avoid unneeded internal declaration warning

2018-09-26 Thread Nathan Chancellor
Clang warns: drivers/mfd/cros_ec_dev.c:509:40: warning: variable 'cros_ec_id' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const struct platform_device_id cros_ec_id[] = { ^ 1 warning generated. Avoid this warning by adding

Re: [PATCH v2 1/2] ARM: dt-bindings: Add vendor prefix for Facebook

2018-09-26 Thread Joel Stanley
On Thu, 27 Sep 2018 at 03:01, Rob Herring wrote: > > On Wed, 19 Sep 2018 09:47:10 -0700, Vijay Khemka wrote: > > Initial introduction of Facebook TiogaPass family equipped with > > Aspeed 2500 BMC SoC. TiogaPass is a x86 server development kit > > with a ASPEED ast2500 BMC manufactured by Facebook

Re: [PATCH i2c-next v3 2/3] i2c: aspeed: Add 'aspeed,timeout' DT property reading code

2018-09-26 Thread Joel Stanley
On Thu, 27 Sep 2018 at 01:58, Jae Hyun Yoo wrote: > > This commit adds reading code of the 'aspeed,timeout' DT property > to set 'timeout' value in adapter configuration. This value still > case be configured through an I2C_TIMEOUT ioctl on cdev too. > > Signed-off-by: Jae Hyun Yoo > --- > drive

Re: perf segmentation fault from NULL dereference

2018-09-26 Thread Andi Kleen
> Please me let me know if a valid issue so we can get a fix in. If it crashes it must be a valid issue of course. But I'm not sure about your bisect. Hard to see how my patch could cause this. Sometimes bisects go wrong. You verified by just reverting the patch? First thing I would also try is

[PATCH] thermal: qoriq: add multiple sensors support

2018-09-26 Thread andy . tang
From: Yuantian Tang There is only one sensor supported in current driver. Multiple sensors are existing on Layscape socs. To support them, covert this driver to support multiple sensors. Signed-off-by: Tang Yuantian --- drivers/thermal/qoriq_thermal.c | 117 +++

Re: [PATCHv2] misc: genwqe: remove duplicated include and order header files alphabetically in card_utils.c

2018-09-26 Thread zhong jiang
On 2018/9/26 11:05, zhong jiang wrote: > dma-mapping.h and delay.h have included twice. It is unnecessary. Meanwhile, > Arrange header files in alphabetical sequence to improve readability. > > Signed-off-by: zhong jiang > --- > drivers/misc/genwqe/card_utils.c | 22 ++ > 1 fi

RE: [PATCH] PM / devfreq: remove redundant null pointer check before kfree

2018-09-26 Thread MyungJoo Ham
  > kfree has taken the null pointer into account. hence it is safe > to remove the redundant null pointer check before kfree. > > Signed-off-by: zhong jiang Acked-by: MyungJoo Ham > --- > drivers/devfreq/devfreq.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/dr

Re: Leaking Path in XFS's ioctl interface(missing LSM check)

2018-09-26 Thread Dave Chinner
On Wed, Sep 26, 2018 at 09:23:03AM -0400, Stephen Smalley wrote: > On 09/25/2018 09:33 PM, Dave Chinner wrote: > >On Tue, Sep 25, 2018 at 08:51:50PM -0400, TongZhang wrote: > >>Hi, > >> > >>I'm bringing up this issue again to let of LSM developers know the > >>situation, and would like to know you

Re: [PATCH] proc: restrict kernel stack dumps to root

2018-09-26 Thread Kees Cook
On Wed, Sep 26, 2018 at 6:19 PM, Jann Horn wrote: > On Thu, Sep 13, 2018 at 4:39 PM Kees Cook wrote: >> On Thu, Sep 13, 2018 at 4:55 AM, Jann Horn wrote: >> > On Thu, Sep 13, 2018 at 12:28 AM Kees Cook wrote: >> >> >> >> On Wed, Sep 12, 2018 at 8:29 AM, Jann Horn wrote: >> >> > +linux-api, I g

Re: [PATCH 2/2] iio: magnetometer: Add driver support for PNI RM3100

2018-09-26 Thread Phil Reid
On 26/09/2018 4:09 PM, Song Qiang wrote: On Wed, Sep 26, 2018 at 10:30:34AM +0800, Phil Reid wrote: On 26/09/2018 9:49 AM, Song Qiang wrote: On Tue, Sep 25, 2018 at 10:36:54PM +0800, Phil Reid wrote: On 25/09/2018 9:30 PM, Jonathan Cameron wrote: +static irqreturn_t rm3100_trigger_handler(int

Re: [PATCH v23 4/4] soc: mediatek: Add Mediatek CMDQ helper

2018-09-26 Thread houlong wei
On Wed, 2018-09-26 at 23:53 +0800, Matthias Brugger wrote: > > On 25/07/2018 03:26, Houlong Wei wrote: > > Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. > > > > Signed-off-by: Houlong Wei > > Signed-off-by: HS Liao > > --- > > drivers/soc/mediatek/Kconfig |

Re: Bug: getcwd: cannot access parent directories

2018-09-26 Thread Roel Van de Paar
Ping :) On 21 September 2018 at 18:16, Roel Van de Paar wrote: > > [1.] One line summary of the problem: > > "cd: error retrieving current directory: getcwd: cannot access parent > directories: No such file or directory" on move of directories to > another volume > > [2.] Full description of the

Re: [PATCH] split if-condition code in bch_cache_set_alloc

2018-09-26 Thread Coly Li
On 9/26/18 5:00 PM, Dongbo Cao wrote: rebase my local code and commit it again. Signed-off-by: Dongbo Cao Hi Dongbo, The above commit log does not explain why you make this change (it might belong to changelog). Could you please to make it to be more informative ? Thanks. Coly Li --

[PATCH v2 7/7] drivers: hwtracing: Adds Makefile to enable building from directory.

2018-09-26 Thread Leonardo Brás
Adds Makefile to enable building the driver using 'make drivers/hwtracing/'. Changes drivers/Makefile to call the new Makefile directly. It enables user building this driver without building the whole drivers/ subtree. Signed-off-by: Leonardo Brás --- drivers/Makefile | 4 +--- drivers

[PATCH v2 6/7] drivers: oprofile: Avoids building driver from direct make command

2018-09-26 Thread Leonardo Brás
Creates new Makefile to avoid building driver if 'make drivers/oprofile/' is called directly. This driver is usually built from arch/$ARCH and seems to have no meaning building alone. Signed-off-by: Leonardo Brás --- drivers/oprofile/Makefile | 2 ++ 1 file changed, 2 insertions(+) create mode

[PATCH v2 5/7] drivers: s390: Avoids building drivers if ARCH is not s390.

2018-09-26 Thread Leonardo Brás
Avoids building s390 drivers if 'make drivers/s390/' is called but ARCH is not s390. Signed-off-by: Leonardo Brás --- drivers/s390/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile index a863b0462b43..0575f02dba45 1

[PATCH v2 4/7] drivers: zorro: Avoids building proc.o if CONFIG_ZORRO is disabled

2018-09-26 Thread Leonardo Brás
Avoids building proc.o if 'make drivers/zorro/' is called and CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled. Signed-off-by: Leonardo Brás --- drivers/zorro/Makefile | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/zorro/Makefile b/drivers/zorro/Mak

[PATCH v2 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-09-26 Thread Leonardo Brás
Avoids building driver if 'make drivers/parisc/' is called and CONFIG_PARISC is disabled. Signed-off-by: Leonardo Brás --- drivers/parisc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile index 3cd5e6cb8478..80049d763aa

Re: [PATCH] mmc: add quirk for O2 Micro dev 0x8620 rev 0x01

2018-09-26 Thread Yu Zhao
On Thu, Sep 27, 2018 at 01:48:58AM +0200, Ulf Hansson wrote: > On 23 September 2018 at 22:39, Yu Zhao wrote: > > This device reports SDHCI_CLOCK_INT_STABLE even though it's not > > ready to take SDHCI_CLOCK_CARD_EN. The symptom is that reading > > SDHCI_CLOCK_CONTROL after enabling the clock shows

[PATCH v2 2/7] drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled

2018-09-26 Thread Leonardo Brás
Avoids building driver if 'make drivers/nubus/' is called and CONFIG_NUBUS is disabled. Avoids building proc.o if CONFIG_PROC_FS is enabled but CONFIG_NUBUS is disabled. Signed-off-by: Leonardo Brás --- drivers/nubus/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v2 1/7] drivers: dio: Avoids building driver if CONFIG_DIO is disabled

2018-09-26 Thread Leonardo Brás
Avoids building driver if 'make drivers/dio/' is called and CONFIG_DIO is disabled. Signed-off-by: Leonardo Brás --- drivers/dio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile index ae92d17083f2..f5cffe232448 100644 --- a/

[PATCH v2 0/7] Remove errors building drivers/DRIVERNAME

2018-09-26 Thread Leonardo Brás
Special thanks for the feedback from: - Finn Thain (I fixed the build problem) - Geert Uytterhoeven (The cross compilers were very useful) - Rolf Eike Beer (Was unintentional, thanks for noticing) This Patchset changes some driver's Makefile to allow them building using the command 'make drivers/

Re: Leaking Path in XFS's ioctl interface(missing LSM check)

2018-09-26 Thread Dave Chinner
On Wed, Sep 26, 2018 at 07:24:26PM +0100, Alan Cox wrote: > On Wed, 26 Sep 2018 11:33:29 +1000 > Dave Chinner wrote: > > > On Tue, Sep 25, 2018 at 08:51:50PM -0400, TongZhang wrote: > > > Hi, > > > > > > I'm bringing up this issue again to let of LSM developers know the > > > situation, and wou

Re: [PATCH v2] of: __of_update_property_sysfs only call __of_sysfs_remove_bin_file if of_node_is_attached

2018-09-26 Thread Frank Rowand
On 09/26/18 14:05, Rob Herring wrote: > On Thu, Sep 13, 2018 at 03:21:27PM +, Andre Kalb wrote: >> Hi Rob, >> >> I have used an other hardware to check the patch. I hope it doesn’t matter. >> I added few lines at the untitest.c. All existing unittest use an attached >> sysfs, therefore the bu

Re: [PATCH -V5 RESEND 03/21] swap: Support PMD swap mapping in swap_duplicate()

2018-09-26 Thread Huang, Ying
Daniel Jordan writes: > On Wed, Sep 26, 2018 at 08:55:59PM +0800, Huang, Ying wrote: >> Daniel Jordan writes: >> > On Tue, Sep 25, 2018 at 03:13:30PM +0800, Huang Ying wrote: >> >> /* >> >> * Increase reference count of swap entry by 1. >> >> - * Returns 0 for success, or -ENOMEM if a swap_co

Re: [PATCH] proc: restrict kernel stack dumps to root

2018-09-26 Thread Jann Horn
On Thu, Sep 13, 2018 at 4:39 PM Kees Cook wrote: > On Thu, Sep 13, 2018 at 4:55 AM, Jann Horn wrote: > > On Thu, Sep 13, 2018 at 12:28 AM Kees Cook wrote: > >> > >> On Wed, Sep 12, 2018 at 8:29 AM, Jann Horn wrote: > >> > +linux-api, I guess > >> > > >> > On Tue, Sep 11, 2018 at 8:39 PM Jann Ho

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-09-26 Thread Wanpeng Li
On Thu, 27 Sep 2018 at 06:38, Dietmar Eggemann wrote: > > Hi, > > On 09/26/2018 11:50 AM, Wanpeng Li wrote: > > Hi Dietmar, > > On Tue, 28 Aug 2018 at 22:55, Dietmar Eggemann > > wrote: > >> > >> On 08/27/2018 12:14 PM, Peter Zijlstra wrote: > >>> On Fri, Aug 24, 2018 at 02:24:48PM -0700, Steve

  1   2   3   4   5   6   7   8   9   >