[PATCH v12 02/10] perf/amd/iommu: Clean up bitwise operations

2017-03-22 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit Clean up register initializaton and make use of BIT_ULL(x) where appropriate. This should not affect logic and functionality. Cc: Peter Zijlstra Cc: Borislav Petkov Signed-off-by: Suravee Suthikulpanit --- arch/x86/events/amd/iommu.c | 18 +- 1 fil

[PATCH v12 00/10] perf/amd/iommu: Enable multi-IOMMU support

2017-03-22 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit This patch series modifies the existing IOMMU and Perf drivers to support systems with multiple IOMMUs by allocating an amd_iommu PMU per IOMMU instance. This allows users to specify performance events and filters separately for each IOMMU. This has been tested on the

[PATCH v12 01/10] perf/amd/iommu: Declare pr_fmt and remove unnecessary pr_debug

2017-03-22 Thread Suravee Suthikulpanit
Declare pr_fmt for perf/amd_iommu and remove unnecessary pr_debug. Also check return value when _init_events_attrs fails. Cc: Peter Zijlstra Cc: Borislav Petkov Signed-off-by: Suravee Suthikulpanit --- arch/x86/events/amd/iommu.c | 22 +- 1 file changed, 9 insertions(+), 1

[PATCH v12 04/10] iommu/amd: Clean up iommu_pc_get_set_reg()

2017-03-22 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit Clean up coding style and fix a bug in the 64-bit register read logic since it overwrites the upper 32-bit when reading the lower 32-bit. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd_iommu_init.c | 13 - 1 file changed, 8 insertions(+), 5 d

[PATCH v12 05/10] iommu/amd: Introduce amd_iommu_get_num_iommus()

2017-03-22 Thread Suravee Suthikulpanit
Introduce amd_iommu_get_num_iommus(), which returns the value of amd_iommus_present. The function is used to replace direct access to the variable, which is now declared as static. This function will also be used by Perf AMD IOMMU driver. Cc: Borislav Petkov Cc: Joerg Roedel Signed-off-by: Sura

[PATCH v12 08/10] perf/amd/iommu: Fix sysfs perf attribute groups

2017-03-22 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit Introduce static amd_iommu_attr_groups to simplify the sysfs attributes initialization code. Cc: Peter Zijlstra Cc: Borislav Petkov Signed-off-by: Suravee Suthikulpanit --- arch/x86/events/amd/iommu.c | 81 ++--- 1 file chan

[PATCH v12 07/10] perf/amd/iommu: Modify amd_iommu_pc_get_set_reg_val() to allow specifying IOMMU

2017-03-22 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit The current amd_iommu_pc_get_set_reg_val() cannot support multiple IOMMUs. So, modify it to allow callers to specify IOMMU. This prepares the driver for supporting multi-IOMMU in subsequent patch. Cc: Peter Zijlstra Cc: Borislav Petkov Cc: Joerg Roedel Signed-off-

[PATCH v12 03/10] perf/amd/iommu: Clean up perf_iommu_read()

2017-03-22 Thread Suravee Suthikulpanit
Fix coding style and make use of GENMASK_ULL macro. Cc: Peter Zijlstra Cc: Borislav Petkov Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- arch/x86/events/amd/iommu.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/x86/events/amd/iommu.c b/

[PATCH v12 09/10] perf/amd/iommu: Introduce amd_iommu-specific struct in struct hw_perf_event

2017-03-22 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit Current AMD IOMMU Perf PMU inappropriately uses hardware struct inside the union inside the struct hw_perf_event, mainly the use of extra_reg. Instead, introduce amd_iommu-specific struct with required parameters to be programmed onto the IOMMU performance counter con

[PATCH v12 06/10] perf/amd/iommu: Modify functions to query max banks and counters

2017-03-22 Thread Suravee Suthikulpanit
Currently, amd_iommu_pc_get_max_[banks|counters]() use end-point device ID to locate an IOMMU and check the reported max banks/counters. The logic assumes that the IOMMU_BASE_DEVID belongs to the first IOMMU, and uses it to acquire a reference to the first IOMMU, which does not work on certain syst

[PATCH v12 10/10] perf/amd/iommu: Enable support for multiple IOMMUs

2017-03-22 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit Add multi-IOMMU support for perf by exposing an AMD IOMMU PMU for each IOMMU found in the system via: /bus/event_source/devices/amd_iommu_x where x is the IOMMU index. This allows users to specify different events to be programmed onto performance counters of each

RE: [v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-22 Thread Piotr Sroka
Hi Masahiro 2017-03-21 08:3 AM Masahiro Yamada : > Hi Piotr, > > 2017-03-21 16:01 GMT+09:00 Piotr Sroka : > > > > Hi Masahiro > > > > 2017-03-21 02:46 AM Masahiro Yamada : > >> Hi Piotr, > >> > >> > >> 2017-03-20 20:20 GMT+09:00 Piotr Sroka : > >> > DTS properties are used instead of fixed data

Re: [PATCH v3 02/11] ARM: sun8i: a33: add all operating points

2017-03-22 Thread Maxime Ripard
On Wed, Mar 22, 2017 at 11:31:54AM +0800, Chen-Yu Tsai wrote: > On Tue, Mar 21, 2017 at 11:36 PM, Quentin Schulz > wrote: > > This adds almost all operating points allowed for the A33 as defined by > > fex files available at: > > https://github.com/linux-sunxi/sunxi-boards/tree/master/sys_config/a

Re: [PATCH] ARM: dts: sun6i: sina31s: Enable SPDIF out

2017-03-22 Thread Maxime Ripard
On Wed, Mar 22, 2017 at 01:47:10PM +0800, Chen-Yu Tsai wrote: > The SinA31s has a coaxial SPDIF output. Enable it. > > Signed-off-by: Chen-Yu Tsai Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com signature.asc Descriptio

Re: [PATCH v2 2/2] iio: Aspeed AST2400/AST2500 ADC

2017-03-22 Thread Quentin Schulz
Hi, On 21/03/2017 21:48, Rick Altherr wrote: > Aspeed AST2400/AST2500 BMC SoCs include a 16 channel, 10-bit ADC. Low > and high threshold interrupts are supported by the hardware but are not > currently implemented. > > Signed-off-by: Rick Altherr > --- > > Changes in v2: > - Rewritten as an II

Re: [RESEND PATCH v4 0/9] add support for AXP20X and AXP22X power supply drivers

2017-03-22 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 09:16:44AM +0100, Quentin Schulz wrote: > These patches haven't changed since v4. The goal is to split the series in > two series, one (this one) with patches ready to be merged and the other > one (everything impacting the battery power supply) which depends on an > ongoing

Re: [v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-22 Thread Masahiro Yamada
2017-03-22 16:08 GMT+09:00 Piotr Sroka : > Hi Masahiro > > 2017-03-21 08:3 AM Masahiro Yamada : >> Hi Piotr, >> >> 2017-03-21 16:01 GMT+09:00 Piotr Sroka : >> > >> > Hi Masahiro >> > >> > 2017-03-21 02:46 AM Masahiro Yamada : >> >> Hi Piotr, >> >> >> >> >> >> 2017-03-20 20:20 GMT+09:00 Piotr Sroka

Re: [PATCH v2 02/10] x86: assembly, FUNC_START for fn, DATA_START for data

2017-03-22 Thread Ingo Molnar
* Pavel Machek wrote: > Hi! > > > -ENTRY(saved_rbp) .quad 0 > > -ENTRY(saved_rsi) .quad 0 > > -ENTRY(saved_rdi) .quad 0 > > -ENTRY(saved_rbx) .quad 0 > > +SYM_DATA_START(saved_rbp) .quad 0 > > +SYM_DATA_START(saved_rsi) .quad 0 > > +SYM_DATA_START(saved_rdi

Re: [v5 1/4] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-22 Thread Masahiro Yamada
2017-03-21 23:32 GMT+09:00 Piotr Sroka : > Add polling for ACK to be sure that data are written to PHY register. > > Signed-off-by: Piotr Sroka Reviewed-by: Masahiro Yamada -- Best Regards Masahiro Yamada

Re: [v5 4/4] mmc: sdhci-cadence: refactor probe function

2017-03-22 Thread Masahiro Yamada
2017-03-21 23:33 GMT+09:00 Piotr Sroka : > Use added dev variable for devm_clk_get. > > Signed-off-by: Piotr Sroka > --- > Changes for v5: > - patch created in v5 > --- Reviewed-by: Masahiro Yamada -- Best Regards Masahiro Yamada

Re: [v5 3/4] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-22 Thread Masahiro Yamada
2017-03-21 23:33 GMT+09:00 Piotr Sroka : > DTS properties are used instead of fixed data > because PHY settings can be different for different chips/boards. > > Signed-off-by: Piotr Sroka > --- > Changes for v2: > - dts part was removed from this patch > - most delays were moved from dts file >

Re: [v5 2/4] dt-bindings: mmc: add description of PHY delays for sdhci-cadence

2017-03-22 Thread Masahiro Yamada
2017-03-21 23:33 GMT+09:00 Piotr Sroka : > DTS properties are used instead of fixed data > because PHY settings can be different for different chips/boards. > Add description of new DLL PHY delays. > > Signed-off-by: Piotr Sroka > --- > Changes for v2: > - file was created in v2. It was a part of

Re: [PATCH 4/6] x86/kasan: Prepare clear_pgds() to switch to

2017-03-22 Thread Ingo Molnar
* Andrey Ryabinin wrote: > > > On 03/17/2017 09:55 PM, Kirill A. Shutemov wrote: > > With folded p4d, pgd_clear() is nop. Change clear_pgds() to use > > p4d_clear() instead. > > > > You could probably just use set_pgd(pgd_offset_k(start), __pgd(0)); instead > of pgd_clear() > as we already

Re: [PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-22 Thread Taeung Song
On 03/22/2017 03:32 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 21, 2017 at 03:29:50PM -0300, Arnaldo Carvalho de Melo escreveu: Em Wed, Mar 22, 2017 at 01:19:49AM +0900, Taeung Song escreveu: On 03/21/2017 11:37 PM, Arnaldo Carvalho de Melo wrote: +++ b/tools/perf/util/annotate.c @@ -14

Re: [PATCH v2 03/10] x86: assembly, use SYM_FUNC_END for functions

2017-03-22 Thread Ingo Molnar
* Josh Poimboeuf wrote: > On Mon, Mar 20, 2017 at 01:32:15PM +0100, Jiri Slaby wrote: > > ENTRY(ftrace_caller) > > /* save_mcount_regs fills in first two parameters */ > > @@ -184,11 +184,12 @@ GLOBAL(ftrace_epilogue) > > GLOBAL(ftrace_graph_call) > > jmp ftrace_stub > > #endif > > +S

[PATCH] net: vmxnet3: use new api ethtool_{get|set}_link_ksettings

2017-03-22 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/vmxnet3/vmxnet3_ethtool.c | 25 ++--- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/net/vmxne

Re: [lkp-robot] [x86] 69218e4799: BUG:kernel_hang_in_boot_stage

2017-03-22 Thread Ingo Molnar
* Thomas Garnier wrote: > > static inline void setup_fixmap_gdt(int cpu) > > { > > __set_fixmap(get_cpu_gdt_ro_index(cpu), > > -__pa(get_cpu_gdt_rw(cpu)), pg_fixmap_gdt_flags); > > +slow_virt_to_phys(get_cpu_gdt_rw(cpu)), > > +

Re: [PATCH] tpm: make check_locality return bool

2017-03-22 Thread Jarkko Sakkinen
On Sat, Mar 18, 2017 at 01:59:57AM -0700, Jerry Snitselaar wrote: > Since check_locality is checking to see if a certain > locality is active, return true if active otherwise > return false. > > Cc: Christophe Ricard > Cc: Jason Gunthorpe > Cc: Marcel Selhorst > Cc: Jarkko Sakkinen > Cc: Peter

Re: [PATCH v2 02/10] x86: assembly, FUNC_START for fn, DATA_START for data

2017-03-22 Thread Jiri Slaby
On 03/22/2017, 08:25 AM, Ingo Molnar wrote: > > * Pavel Machek wrote: > >> Hi! >> >>> -ENTRY(saved_rbp) .quad 0 >>> -ENTRY(saved_rsi) .quad 0 >>> -ENTRY(saved_rdi) .quad 0 >>> -ENTRY(saved_rbx) .quad 0 >>> +SYM_DATA_START(saved_rbp) .quad 0 >>> +SYM_DATA_START(saved_rs

Re: [PATCH v2 02/10] x86: assembly, FUNC_START for fn, DATA_START for data

2017-03-22 Thread Ingo Molnar
* Jiri Slaby wrote: > On 03/22/2017, 08:25 AM, Ingo Molnar wrote: > > > > * Pavel Machek wrote: > > > >> Hi! > >> > >>> -ENTRY(saved_rbp) .quad 0 > >>> -ENTRY(saved_rsi) .quad 0 > >>> -ENTRY(saved_rdi) .quad 0 > >>> -ENTRY(saved_rbx) .quad 0 > >>> +SYM_DATA_START(saved_rbp)

[PATCH] drivers/staging/dgnc: Updating dev_dbg function

2017-03-22 Thread Pushkar Jambhlekar
Making use of __func__ instead of using function name directly in dev_dbg. Signed-off-by: Pushkar Jambhlekar --- drivers/staging/dgnc/dgnc_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index f7e754e

Re: [PATCH v2] x86: mostly disable '-maccumulate-outgoing-args'

2017-03-22 Thread Ingo Molnar
* Josh Poimboeuf wrote: > The gcc '-maccumulate-outgoing-args' flag is enabled for most configs, > mostly because of issues which are no longer relevant. For most > configs, and with most recent versions of gcc, it's no longer needed. > > Clarify which cases need it, and only enable it for tho

Re: [PATCH v3 01/11] ARM: sun8i: a33: add operating-points-v2 property to all nodes

2017-03-22 Thread Maxime Ripard
On Wed, Mar 22, 2017 at 11:32:28AM +0800, Chen-Yu Tsai wrote: > On Tue, Mar 21, 2017 at 11:36 PM, Quentin Schulz > wrote: > > The OPP are declared as shared but no operating points are declared for > > cpu1, 2 and 3. Thus, the following error happens during the boot: > > > > cpu cpu1: dev_pm_opp_o

[PATCH 2/2] pinctrl: samsung: Remove unused pin-bank macro

2017-03-22 Thread Chanwoo Choi
After merged commit 1259feddd0f8 ("pinctrl: samsung: Fix the width of PINCFG_TYPE_DRV bitfields for Exynos5433"), EXYNOS_PIN_BANK_EINTW was replaced by EXYNOS5433_PIN_BANK_EINTW_EXT. This patch removes the unused pin-bank macro (EXYNOS_PIN_BANK_EINTW). Signed-off-by: Chanwoo Choi --- drivers/pin

Re: [PATCH v2 0/5] mm: support parallel free of memory

2017-03-22 Thread Aaron Lu
On Tue, Mar 21, 2017 at 07:54:37AM -0700, Dave Hansen wrote: > On 03/16/2017 02:07 AM, Michal Hocko wrote: > > On Wed 15-03-17 14:38:34, Tim Chen wrote: > >> max_active: time > >> 1 8.9s ±0.5% > >> 2 5.65s ±5.5% > >> 4 4.84s ±0.16% > >> 8 4.77s

Re: [PATCH v3 03/11] ARM: dts: sun8i: sina33: add cpu-supply

2017-03-22 Thread Maxime Ripard
On Wed, Mar 22, 2017 at 11:33:15AM +0800, Chen-Yu Tsai wrote: > On Tue, Mar 21, 2017 at 11:36 PM, Quentin Schulz > wrote: > > This adds the cpu-supply DT property to the cpu0 DT node needed by > > the board to adapt the regulator voltage depending on the currently used > > OPP. > > > > Signed-off-

Re: [PATCH] scsi: lpfc: fix linking against modular NVMe support

2017-03-22 Thread Arnd Bergmann
On Wed, Mar 22, 2017 at 3:25 AM, James Smart wrote: > > On 3/21/2017 7:23 PM, James Smart wrote: >> >> Arnd, >> >> All of the build issues, including building as modules, should have been >> resolved by the following patch: >> http://www.spinics.net/lists/linux-scsi/msg106102.html >> >> Am I missi

[PATCH 0/2] pinctrl: samsung: Fix PINCFG_TYPE_DRV bitfields for Exynos5433

2017-03-22 Thread Chanwoo Choi
This patches add the missing part about PINCFG_TYPE_DRV bitfields for Exynos5433 when merged the multiple patches for pinctrl-exynos.c and this patch removes the unused EXYNOS_PIN_BANK_EINTW_EXT macro. Also, patch1 and patch2 will be possible squashed if the separate patch is not necesasry. Chanw

[PATCH 1/2] pinctrl: samsung: Add missing part for PINCFG_TYPE_DRV of Exynos5433

2017-03-22 Thread Chanwoo Choi
The commit 1259feddd0f8("pinctrl: samsung: Fix the width of PINCFG_TYPE_DRV bitfields for Exynos5433") already fixed the different width of PINCFG_TYPE_DRV from previous Exynos SoC. But, when merged the multiple patches, the missing parts occurred. So, this patch adds the missing part using the EX

Re: [PATCH v8 2/3] dmaengine: pl330: remove pdata based initialization

2017-03-22 Thread Marek Szyprowski
Hi Vinod On 2017-02-09 15:22, Marek Szyprowski wrote: This driver is now used only on platforms which support device tree, so it is safe to remove legacy platform data based initialization code. Signed-off-by: Marek Szyprowski Reviewed-by: Ulf Hansson Acked-by: Arnd Bergmann For plat-samsun

Re: [PATCH] HID: Accutouch: Add driver for ELO Accutouch 2216 USB Touchscreens

2017-03-22 Thread Jiri Kosina
On Tue, 21 Mar 2017, Jiri Kosina wrote: > Sorry, I messed up. I exchanged this patch with another one that fixed > report descriptor (which we can't yet, although I have been thinking about > ways how to do this properly). FTR, this is now also dropped from hid.git. Thanks again for catching my

Re: [PATCH v3 4/4] arm64: dts: rockchip: add regulator info for Kevin digitizer

2017-03-22 Thread Heiko Stuebner
Am Montag, 20. März 2017, 16:53:44 CET schrieb Brian Norris: > We need to enable this regulator before the digitizer can be used. Wacom > recommended waiting for 100 ms before talking to the HID. > > Signed-off-by: Brian Norris > --- > v3: > * reintroduced into patch set; bindings are in linux-n

Re: [v2 PATCH 4/4] powernv: Recover correct PACA on wakeup from a stop on P9 DD1

2017-03-22 Thread Nicholas Piggin
On Wed, 22 Mar 2017 11:28:46 +0530 Gautham R Shenoy wrote: > On Tue, Mar 21, 2017 at 02:59:46AM +1000, Nicholas Piggin wrote: > > On Mon, 20 Mar 2017 21:24:18 +0530 > > "Gautham R. Shenoy" wrote: > > > > > From: "Gautham R. Shenoy" > > > > > > POWER9 DD1.0 hardware has an issue due to which

[PATCH v2] staging: iio: Replace a bit shift by a use of BIT.

2017-03-22 Thread Arushi Singhal
This patch replaces bit shifting on 1 with the BIT(x) macro. This was done with coccinelle: @@ constant c; @@ -1 << c +BIT(c) Signed-off-by: Arushi Singhal --- changes in v2 -change the cc list drivers/staging/iio/adc/ad7816.c | 2 +- drivers/staging/iio/cdc/ad7150.c | 2 +- drivers/staging

[BUG][REGRESSION] i915 gpu hangs under load

2017-03-22 Thread Martin Kepplinger
Hi I know something similar is here: https://bugs.freedesktop.org/show_bug.cgi?id=100110 too. But this is rc3 and my machine is totally *not usable*. Let me be annoying :) I hope I can help: Since rc1 I get gpu hangs and resets under load: This is almost certainly a kernel issue. 4.10 is f

Re: [PATCH v2 3/5] mm: use a dedicated workqueue for the free workers

2017-03-22 Thread Aaron Lu
On Wed, Mar 22, 2017 at 03:33:35PM +0900, Minchan Kim wrote: > Hi, > > On Wed, Mar 15, 2017 at 05:00:02PM +0800, Aaron Lu wrote: > > Introduce a workqueue for all the free workers so that user can fine > > tune how many workers can be active through sysfs interface: max_active. > > More workers wi

Re: [PATCH RT] tty: serial: st-asc: Make the locking RT aware

2017-03-22 Thread Lionel DEBIEVE
Just to agree with Thomas. Do you want me to resend the patch without RT tag? BR, Lionel On 03/21/2017 09:15 PM, Steven Rostedt wrote: > On Tue, 21 Mar 2017 19:51:47 +0100 (CET) > Thomas Gleixner wrote: > >> On Tue, 21 Mar 2017, Steven Rostedt wrote: /* * Disable interrupts so

Re: [PATCH 1/5] x86: Implement __WARN using UD0

2017-03-22 Thread Peter Zijlstra
A little like so then. --- Subject: x86: Implement __WARN using UD0 From: Peter Zijlstra Date: Thu Feb 2 14:43:51 CET 2017 By using "UD0" for WARNs we remove the function call and its possible __FILE__ and __LINE__ immediate arguments from the instruction stream. Total image size will not chan

Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section

2017-03-22 Thread Xunlei Pang
On 03/21/2017 at 11:33 AM, Eric W. Biederman wrote: > Xunlei Pang writes: > >> As Eric said, >> "what we need to do is move the variable vmcoreinfo_note out >> of the kernel's .bss section. And modify the code to regenerate >> and keep this information in something like the control page. >> >> De

Re: staging: iio: Replace a bit shift by a use of BIT.

2017-03-22 Thread Arnd Bergmann
On Wed, Mar 22, 2017 at 3:49 AM, Arushi Singhal wrote: > @@ -232,7 +232,7 @@ static int ad7150_write_event_config(struct iio_dev > *indio_dev, > if (ret < 0) > goto error_ret; > > - cfg = ret & ~((0x03 << 5) | (0x1 << 7)); > + cfg = ret & ~((0x03 << 5) | (BIT(

Re: [PATCH v2 3/5] mm: use a dedicated workqueue for the free workers

2017-03-22 Thread Minchan Kim
On Wed, Mar 22, 2017 at 04:41:04PM +0800, Aaron Lu wrote: > On Wed, Mar 22, 2017 at 03:33:35PM +0900, Minchan Kim wrote: > > Hi, > > > > On Wed, Mar 15, 2017 at 05:00:02PM +0800, Aaron Lu wrote: > > > Introduce a workqueue for all the free workers so that user can fine > > > tune how many workers

[PATCH] arm64: kaslr: Add 2MB correction for aligning kernel image

2017-03-22 Thread Srinivas Ramana
From: Neeraj Upadhyay If kernel image extends across alignment boundary, existing code increases the KASLR offset by size of kernel image. The offset is masked after resizing. There are cases, where after masking, we may still have kernel image extending across boundary. This eventually results i

Re: [PATCH v3 1/4] dt-bindings: Document rk3399 Gru/Kevin

2017-03-22 Thread Heiko Stuebner
Am Montag, 20. März 2017, 16:53:41 CET schrieb Brian Norris: > Gru is a base dev board for a family of devices, including Kevin. Both > utilize Rockchip RK3399, and they share much of their design. > > Signed-off-by: Brian Norris > Acked-by: Rob Herring applied for 4.12, after adding a "(Samsun

Re: [PATCH v3] KVM: VMX: Fix enable VPID even if INVVPID is not exposed in vmx capability

2017-03-22 Thread David Hildenbrand
On 22.03.2017 02:19, Wanpeng Li wrote: > From: Wanpeng Li > > This can be reproduced by running L2 on L1, and disable VPID on L0 if w/o > commit "KVM: nVMX: Fix nested VPID vmx exec control", the L2 crash as below: > > KVM: entry failed, hardware error 0x7 > EAX= EBX= ECX=00

Re: [PATCH v5 1/2] usb: host: plat: Enable xhci plat runtime PM

2017-03-22 Thread Felipe Balbi
Hi, Baolin Wang writes: > I don't yet understand why we can't just keep runtime pm disabled as a > default for xhci platform devices. > It could be enabled by whatever creates the platform device by setting > some > device property > (or equivalent), which would be check

Re: [2/2] zd1211rw: fix NULL-deref at probe

2017-03-22 Thread Kalle Valo
Johan Hovold wrote: > Make sure to check the number of endpoints to avoid dereferencing a > NULL-pointer or accessing memory beyond the endpoint array should a > malicious device lack the expected endpoints. > > Fixes: a1030e92c150 ("[PATCH] zd1211rw: Convert installer CDROM device into > WLAN d

Re: [PATCH 2/2 v2] xen/acpi: upload PM state from init-domain to Xen

2017-03-22 Thread Stanislaw Gruszka
On Tue, Mar 21, 2017 at 03:43:38PM -0700, Ankur Arora wrote: > This was broken in commit cd979883b9ede90643e019f33cb317933eb867b4. > do_suspend (from xen/manage.c) and thus xen_resume_notifier never get > called on the initial-domain at resume (it is if running as guest.) > > The rationale for the

Re: [RESEND PATCH v3 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-03-22 Thread Wolfram Sang
On Thu, Mar 09, 2017 at 11:13:04AM +0800, Jun Gao wrote: > From: Jun Gao > > Add MT2701 i2c binding to i2c-mt6577.txt and there is no need to > modify i2c driver. > > Signed-off-by: Jun Gao There is still the issue which Matthias Brugger pointed out on January, 24th: you need to describe the f

Re: [PATCH] Add initial SX3000b platform code to MIPS arch

2017-03-22 Thread Marc Zyngier
Hi Amit, On 22/03/17 05:38, Amit Kama IL wrote: > Add initial support for boards based on Satixfy's SX3000b (Catniss) SoC. > The SoC includes a MIPS interAptiv dual core 4 VPE processor and boots > using device-tree. > > Signed-off-by: Amit Kama > > The irqchip file (irq-sx3000b.c) is pertinen

Re: [PATCH v2 2/6] dt-bindings: i2c: rk3x: add support for rk3328

2017-03-22 Thread Wolfram Sang
On Thu, Mar 16, 2017 at 09:17:20PM +0800, c...@rock-chips.com wrote: > From: Liang Chen > > The rk3328 i2c is the same as rk3399 > > Signed-off-by: Liang Chen Applied to for-next, thanks! signature.asc Description: PGP signature

Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section

2017-03-22 Thread Xunlei Pang
On 03/22/2017 at 04:55 PM, Xunlei Pang wrote: > On 03/21/2017 at 11:33 AM, Eric W. Biederman wrote: >> Xunlei Pang writes: >> >>> As Eric said, >>> "what we need to do is move the variable vmcoreinfo_note out >>> of the kernel's .bss section. And modify the code to regenerate >>> and keep this in

Re: [PATCH v3 2/3] clk: meson-gxbb: Add MALI clocks

2017-03-22 Thread Neil Armstrong
On 03/22/2017 12:31 AM, Michael Turquette wrote: > Hi Neil, > > Quoting Neil Armstrong (2017-03-09 04:53:46) >> The Mali is clocked by two identical clock paths behind a glitch free mux >> to safely change frequency while running. >> >> The two "mali_0" and "mali_1" clocks are composed of a mux, d

Re: [PATCH 1/5] clk: meson: Add support for parameters for specific PLLs

2017-03-22 Thread Neil Armstrong
On 03/22/2017 12:43 AM, Michael Turquette wrote: > Quoting Neil Armstrong (2017-03-13 06:26:40) >> In recent Amlogic GXBB, GXL and GXM SoCs, the GP0 PLL needs some specific >> parameters in order to initialize and lock correctly. >> >> This patch adds an optional PARAM table used to initialize the

[tip:x86/urgent] x86/platform/uv: Fix calculation of Global Physical Address

2017-03-22 Thread tip-bot for Mike Travis
Commit-ID: ad4830051aac0b967add82ac168f49edf11f01a0 Gitweb: http://git.kernel.org/tip/ad4830051aac0b967add82ac168f49edf11f01a0 Author: Mike Travis AuthorDate: Tue, 21 Mar 2017 18:16:47 -0500 Committer: Ingo Molnar CommitDate: Wed, 22 Mar 2017 07:41:10 +0100 x86/platform/uv: Fix calcula

[tip:x86/urgent] x86/mce: Fix copy/paste error in exception table entries

2017-03-22 Thread tip-bot for Tony Luck
Commit-ID: 26a37ab319a26d330bab298770d692bb9c852aff Gitweb: http://git.kernel.org/tip/26a37ab319a26d330bab298770d692bb9c852aff Author: Tony Luck AuthorDate: Mon, 20 Mar 2017 14:40:30 -0700 Committer: Ingo Molnar CommitDate: Wed, 22 Mar 2017 08:43:25 +0100 x86/mce: Fix copy/paste error

Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section

2017-03-22 Thread Xunlei Pang
On 03/22/2017 at 04:55 PM, Xunlei Pang wrote: > On 03/21/2017 at 11:33 AM, Eric W. Biederman wrote: >> Xunlei Pang writes: >> >>> As Eric said, >>> "what we need to do is move the variable vmcoreinfo_note out >>> of the kernel's .bss section. And modify the code to regenerate >>> and keep this in

Re: [PATCH v2 01/18] arm64: Allow checking of a CPU-local erratum

2017-03-22 Thread Daniel Lezcano
On Mon, Mar 20, 2017 at 05:48:12PM +, Marc Zyngier wrote: > this_cpu_has_cap() only checks the feature array, and not the errata > one. In order to be able to check for a CPU-local erratum, allow it > to inspect the latter as well. > > This is consistent with cpus_have_cap()'s behaviour, which

Re: [PATCH] staging: wilc1000: use kernel define byte order macros

2017-03-22 Thread Dan Carpenter
On Tue, Mar 21, 2017 at 03:40:10PM -0600, Robert Perry Hooker wrote: > Thanks for taking a look, Dan. Sorry if I missed the mark here. > > Can you tell me a bit more about the bug this would introduce? > > I see that ieee80211_is_action is defined like this: static inline bool > ieee80211_is_act

Re: [PATCHv2 1/2] mfd: cpcap: Add missing include dependencies

2017-03-22 Thread Pavel Machek
On Wed 2017-03-22 01:09:11, Sebastian Reichel wrote: > This fixes compilation for files, that try to include the > cpcap header in alphabetically sorted #include lists. > > Signed-off-by: Sebastian Reichel Acked-by: Pavel Machek > --- > This patch is new, since PATCHv1 did not order the includ

Re: [RFC][PATCH v3 2/2] cpufreq: schedutil: Avoid reducing frequency of busy CPUs prematurely

2017-03-22 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 12:08:50AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The way the schedutil governor uses the PELT metric causes it to > underestimate the CPU utilization in some cases. > > That can be easily demonstrated by running kernel compilation on > a Sandy Brid

Re: [PATCH] arm64: kaslr: Add 2MB correction for aligning kernel image

2017-03-22 Thread Ard Biesheuvel
> On 22 Mar 2017, at 08:55, Srinivas Ramana wrote: > > From: Neeraj Upadhyay > > If kernel image extends across alignment boundary, existing > code increases the KASLR offset by size of kernel image. The > offset is masked after resizing. There are cases, where after > masking, we may still ha

[PATCH 2/2] f2fs: don't track volatile file in dirty inode list

2017-03-22 Thread Chao Yu
Don't track volatile file in dirty inode list, otherwise with data_flush option, background thread will entry into endless loop for flushing journal file's pages. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/checkp

[PATCH 1/2] f2fs: show the max number of volatile operations

2017-03-22 Thread Chao Yu
This patch adds to show the max number of volatile operations which are conducting concurrently. Signed-off-by: Chao Yu --- fs/f2fs/debug.c | 10 -- fs/f2fs/f2fs.h | 18 +- fs/f2fs/file.c | 5 + 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/fs/f2f

Re: [PATCH] cpufreq: schedutil: Always trace frequency if it does not change

2017-03-22 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 01:56:53AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > sugov_update_commit() calls trace_cpu_frequency() to record the > current CPU frequency if it has not changed in the fast switch case > to prevent utilities from getting confused (they may report that

Re: [PATCHv2 02/11] Bluetooth: hci_uart: add serdev driver support library

2017-03-22 Thread Pavel Machek
On Tue 2017-03-21 23:32:07, Sebastian Reichel wrote: > From: Rob Herring > > This adds library functions for serdev based BT drivers. This is largely > copied from hci_ldisc.c and modified to use serdev calls. There's a little > bit of duplication, but I avoided intermixing this as the ldisc code

Re: [PATCH 3/5] clk: meson-gxbb: Add GXL/GXM GP0 Variant

2017-03-22 Thread Neil Armstrong
On 03/22/2017 12:49 AM, Michael Turquette wrote: > Hi Neil, > > Quoting Neil Armstrong (2017-03-13 06:26:42) >> @@ -821,6 +893,7 @@ struct pll_params_table gxbb_gp0_params_table[] = { >> &gxbb_hdmi_pll, >> &gxbb_sys_pll, >> &gxbb_gp0_pll, >> + &gxl_gp0_pll, Yes, beca

Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section

2017-03-22 Thread Xunlei Pang
On 03/22/2017 at 12:30 PM, Dave Young wrote: > On 03/21/17 at 10:18pm, Eric W. Biederman wrote: >> Dave Young writes: >> >>> On 03/20/17 at 10:33pm, Eric W. Biederman wrote: Xunlei Pang writes: > As Eric said, > "what we need to do is move the variable vmcoreinfo_note out >

Re: [PATCH] sched/fair: Fix ftq noise bench regression

2017-03-22 Thread Vincent Guittot
On 21 March 2017 at 18:46, Dietmar Eggemann wrote: > Hi Vincent, > > On 17/03/17 13:47, Vincent Guittot wrote: > > [...] > >> Reported-by: ying.hu...@linux.intel.com >> Signed-off-by: Vincent Guittot >> Fixes: 4e5160766fcc ("sched/fair: Propagate asynchrous detach") > > I thought I can see a diff

Re: [PATCHv2 04/11] tty: serial: omap: add UPF_BOOT_AUTOCONF flag for DT init

2017-03-22 Thread Pavel Machek
On Tue 2017-03-21 23:32:09, Sebastian Reichel wrote: > The UPF_BOOT_AUTOCONF flag is needed for proper > flow control support. > > Signed-off-by: Sebastian Reichel Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~p

Re: [PATCH] usb: gadget: Correct usb EP argument for BOT status request

2017-03-22 Thread Felipe Balbi
Hi, "Nicholas A. Bellinger" writes: > Hi Manish, > > (Added target-devel CC') > > On Mon, 2017-03-20 at 15:05 +0530, Manish Narani wrote: >> This patch corrects the argument in usb_ep_free_request as it is >> mistakenly set to ep_out. It should be ep_in for status request. >> >> Signed-off-by:

Re: [PATCHv2.1] serdev: implement get/set tiocm

2017-03-22 Thread Pavel Machek
On Wed 2017-03-22 01:58:37, Sebastian Reichel wrote: > Add method for getting and setting tiocm. > > Signed-off-by: Sebastian Reichel Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Re: staging: iio: Replace a bit shift by a use of BIT.

2017-03-22 Thread Dan Carpenter
On Wed, Mar 22, 2017 at 08:19:42AM +0530, Arushi Singhal wrote: > This patch replaces bit shifting on 1 with the BIT(x) macro. > This was done with coccinelle: > @@ > constant c; > @@ > > -1 << c > +BIT(c) > > Signed-off-by: Arushi Singhal > --- > drivers/staging/iio/adc/ad7816.c | 2 +- > dri

Re: [PATCH v2 2/2] iio: Aspeed AST2400/AST2500 ADC

2017-03-22 Thread Joel Stanley
On Wed, Mar 22, 2017 at 7:18 AM, Rick Altherr wrote: > Aspeed AST2400/AST2500 BMC SoCs include a 16 channel, 10-bit ADC. Low > and high threshold interrupts are supported by the hardware but are not > currently implemented. > > Signed-off-by: Rick Altherr Looks good Rick. I gave it a review from

[GIT PULL] extcon fixes for v4.11-rc3

2017-03-22 Thread Chanwoo Choi
Dear Greg, This is extcon-fixes pull request for v4.11-rc3. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit 4495c08e84729385774601b5146d51d9e5849f81: Linux 4.11-rc2 (2017-03-12 1

Re: [PATCHv2 05/11] serdev: add serdev_device_wait_until_sent

2017-03-22 Thread Pavel Machek
Hi! > @@ -47,10 +48,13 @@ static void ttyport_write_wakeup(struct tty_port *port) > struct serport *serport = serdev_controller_get_drvdata(ctrl); > > if (!test_and_clear_bit(TTY_DO_WRITE_WAKEUP, &port->tty->flags)) > - return; > + goto out; > > if (te

Re: [PATCH v2 1/9] Coccinelle: locks: identify callers of spin_lock{,_irq,_irqsave}() in irqchip implementations

2017-03-22 Thread Julia Lawall
On Tue, 21 Mar 2017, Julia Cartwright wrote: > On PREEMPT_RT, the spinlock_t type becomes an object which sleeps under > contention. The codepaths used to support scheduling (irq dispatching, arch > code, the scheduler, timers) therefore must make use of the > raw_spin_lock{,_irq,_irqsave}() va

Re: [PATCH v12 4/9] mmc: cavium: Work-around hardware bug on cn6xxx and cnf7xxx

2017-03-22 Thread Jan Glauber
On Tue, Mar 21, 2017 at 01:22:05PM -0700, David Daney wrote: > On 03/21/2017 12:49 PM, Arnd Bergmann wrote: > >On Tue, Mar 21, 2017 at 4:19 PM, David Daney > >wrote: > >>On 03/21/2017 01:58 AM, Arnd Bergmann wrote: > >>> > >>>On Mon, Mar 20, 2017 at 9:45 PM, David Daney > >>>wrote: > >

Re: [PATCH] staging: rts5208: Replace a bit shift by a use of BIT.

2017-03-22 Thread Dan Carpenter
On Wed, Mar 22, 2017 at 08:04:47AM +0530, Arushi Singhal wrote: > This patch replaces bit shifting on 1 with the BIT(x) macro. > This was done with coccinelle: > @@ > constant c; > @@ > > -1 << c > +BIT(c) > > Signed-off-by: Arushi Singhal > --- > drivers/staging/rts5208/rtsx_chip.c | 4 ++-- >

Re: [RFC][PATCH v3 2/2] cpufreq: schedutil: Avoid reducing frequency of busy CPUs prematurely

2017-03-22 Thread Viresh Kumar
On 22-03-17, 00:08, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The way the schedutil governor uses the PELT metric causes it to > underestimate the CPU utilization in some cases. > > That can be easily demonstrated by running kernel compilation on > a Sandy Bridge Intel processor, ru

Re: [PATCH v2 2/2] iio: Aspeed AST2400/AST2500 ADC

2017-03-22 Thread Joel Stanley
Hello Quentin, On Wed, Mar 22, 2017 at 5:51 PM, Quentin Schulz wrote: >> + >> +#define ASPEED_ADC_CHAN(_idx, _addr) { \ >> + .type = IIO_VOLTAGE,\ >> + .indexed = 1, \ >> + .ch

Re: [PATCH] MAINTAINERS: pinctrl: Add git tree to Samsung pinctrl entry

2017-03-22 Thread Sylwester Nawrocki
On 03/20/2017 05:48 PM, Krzysztof Kozlowski wrote: Add a Git tree on @kernel.org for maintaining the Samsung pinctrl drivers. The tree will be maintained in a shared model between current Samsung pinctrl maintainers. Pull requests will be going to Linus Walleij. Also add the patchwork for linu

Re: [PATCH] tpm/tpm_crb: mark PM functions as __maybe_unused

2017-03-22 Thread Jarkko Sakkinen
On Mon, Mar 20, 2017 at 10:17:19AM +0100, Arnd Bergmann wrote: > When CONFIG_PM_SLEEP is disabled, we get a warning about unused functions: > > drivers/char/tpm/tpm_crb.c:551:12: error: 'crb_pm_resume' defined but not > used [-Werror=unused-function] > drivers/char/tpm/tpm_crb.c:540:12: error: 'c

Re: [PATCH] cpufreq: schedutil: Always trace frequency if it does not change

2017-03-22 Thread Viresh Kumar
On 22-03-17, 10:29, Peter Zijlstra wrote: > On Wed, Mar 22, 2017 at 01:56:53AM +0100, Rafael J. Wysocki wrote: > > However, the same problem may occur for a cpufreq driver that doesn't > > support fast frequency switching and implements the ->target callback > > (that is, it doesn't use frequency

Re: [PATCH 1/5] clk: meson: Add support for parameters for specific PLLs

2017-03-22 Thread Neil Armstrong
On 03/22/2017 12:43 AM, Michael Turquette wrote: > Quoting Neil Armstrong (2017-03-13 06:26:40) [..] >> >> p = &pll->n; >> - ret = meson_clk_pll_wait_lock(pll, p); >> + /* If unreset_for_lock is provided, remove the reset bit here */ >> + if (pll->params.unreset_for_lock

Re: [Outreachy kernel] [PATCH] staging: media: Replace a bit shift by a use of BIT.

2017-03-22 Thread Julia Lawall
On Wed, 22 Mar 2017, Arushi Singhal wrote: > This patch replaces bit shifting on 1 with the BIT(x) macro. > This was done with coccinelle: > @@ > constant c; > @@ > > -1 << c > +BIT(c) > > Signed-off-by: Arushi Singhal > --- > drivers/staging/octeon/ethernet-tx.c | 4 ++-- What is the connecti

Re: [PATCHv2 2/2] super1: check and output faulty dev role

2017-03-22 Thread Jinpu Wang
On Tue, Mar 21, 2017 at 8:55 PM, NeilBrown wrote: > On Mon, Mar 20 2017, Gioh Kim wrote: > >> From: Jack Wang >> >> Output the real dev role in examine_super1, it will help to >> find problem. >> >> Signed-off-by: Jack Wang >> Reviewed-by: Gioh Kim >> --- >> super1.c | 6 -- >> 1 file chan

[PATCH v5] vfio error recovery: kernel support

2017-03-22 Thread Cao jin
From: "Michael S. Tsirkin" 0. What happens now (PCIE AER only) Fatal errors cause a link reset. Non fatal errors don't. All errors stop the QEMU guest eventually, but not immediately, because it's detected and reported asynchronously. Interrupts are forwarded as usual. Correctable

[PATCH v4 3/3] ARM64: dts: meson-gx: Add MALI nodes for GXBB and GXL

2017-03-22 Thread Neil Armstrong
The same MALI-450 MP3 GPU is present in the GXBB and GXL SoCs. The node is simply added in the meson-gxbb.dtsi file. For GXL, since a lot is shared with the GXM that has a MALI-T820 IP, this patch adds a new meson-gxl-mali.dtsi and is included in the SoC specific dtsi files. Signed-off-by: Neil

Re: [PATCH v2 1/7] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-03-22 Thread Geert Uytterhoeven
Hi Jacopo, On Mon, Mar 20, 2017 at 5:14 PM, Jacopo Mondi wrote: > Add combined gpio and pin controller driver for Renesas RZ/A1 > r7s72100 SoC. > > Signed-off-by: Jacopo Mondi Thanks for your patch! > --- /dev/null > +++ b/drivers/pinctrl/pinctrl-rza1.c > +/* > + * This pincontroller/gpio com

[PATCH v4 2/3] clk: meson-gxbb: Add MALI clocks

2017-03-22 Thread Neil Armstrong
The Mali is clocked by two identical clock paths behind a glitch free mux to safely change frequency while running. The two "mali_0" and "mali_1" clocks are composed of a mux, divider and gate. Expose these two clocks trees using generic clocks. Finally the glitch free mux is added as "mali" clock

  1   2   3   4   5   6   7   8   9   10   >