[PATCH v8 03/08] iommu/ipmmu-vmsa: Break out utlb parsing code

2017-05-17 Thread Magnus Damm
From: Magnus Damm Break out the utlb parsing code and dev_data allocation into a separate function. This is preparation for future code sharing. Signed-off-by: Magnus Damm Reviewed-by: Joerg Roedel --- Changes since V7: - Free archdata and utlbs in case of error drivers/iommu/ipmmu-vmsa.c

[PATCH v8 04/08] iommu/ipmmu-vmsa: Break out domain allocation code

2017-05-17 Thread Magnus Damm
From: Magnus Damm Break out the domain allocation code into a separate function. This is preparation for future code sharing. Signed-off-by: Magnus Damm Reviewed-by: Joerg Roedel Reviewed-by: Geert Uytterhoeven --- Changes since V7: - Added Reviewed-by from Geert - Thanks! drivers/iommu

[PATCH v8 02/08] iommu/ipmmu-vmsa: Rework interrupt code and use bitmap for context

2017-05-17 Thread Magnus Damm
From: Magnus Damm Introduce a bitmap for context handing and convert the interrupt routine to handle all registered contexts. At this point the number of contexts are still limited. Also remove the use of the ARM specific mapping variable from ipmmu_irq() to allow compile on ARM64. Signed-off-

[PATCH v8 01/08] iommu/ipmmu-vmsa: Remove platform data handling

2017-05-17 Thread Magnus Damm
From: Magnus Damm The IPMMU driver is using DT these days, and platform data is no longer used by the driver. Remove unused code. Signed-off-by: Magnus Damm Reviewed-by: Laurent Pinchart Reviewed-by: Joerg Roedel Reviewed-by: Geert Uytterhoeven --- Changes since V7: - Added Reviewed-by fr

[PATCH v8 05/08] iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops

2017-05-17 Thread Magnus Damm
From: Magnus Damm Introduce an alternative set of iommu_ops suitable for 64-bit ARM as well as 32-bit ARM when CONFIG_IOMMU_DMA=y. Also adjust the Kconfig to depend on ARM or IOMMU_DMA. Initialize the device from ->xlate() when CONFIG_IOMMU_DMA=y. Signed-off-by: Magnus Damm --- Changes since

[PATCH v8 06/08] iommu/ipmmu-vmsa: Use fwspec iommu_priv on ARM64

2017-05-17 Thread Magnus Damm
From: Magnus Damm Convert from archdata to iommu_priv via iommu_fwspec on ARM64 but let 32-bit ARM keep on using archdata for now. Once the 32-bit ARM code and the IPMMU driver is able to move over to CONFIG_IOMMU_DMA=y then coverting to fwspec via ->of_xlate() will be easy. For now fwspec ids

[PATCH v8 07/08] iommu/ipmmu-vmsa: Drop LPAE Kconfig dependency

2017-05-17 Thread Magnus Damm
From: Magnus Damm Neither the ARM page table code enabled by IOMMU_IO_PGTABLE_LPAE nor the IPMMU_VMSA driver actually depends on ARM_LPAE, so get rid of the dependency. Tested with ipmmu-vmsa on r8a7794 ALT and a kernel config using: # CONFIG_ARM_LPAE is not set Signed-off-by: Magnus Damm Ack

[PATCH v8 08/08] iommu/ipmmu-vmsa: Fix pgsize_bitmap semicolon typo

2017-05-17 Thread Magnus Damm
From: Magnus Damm Fix comma-instead-of-semicolon typo error present in the latest version of the IPMMU driver. Signed-off-by: Magnus Damm --- Earlier posted as: [PATCH] iommu/ipmmu-vmsa: Fix pgsize_bitmap semicolon typo drivers/iommu/ipmmu-vmsa.c |2 +- 1 file changed, 1 insertion(+),

RE: [v6 2/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #74

2017-05-17 Thread Shameerali Kolothum Thodi
Hi Geetha, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Geetha sowjanya > Sent: Friday, May 12, 2017 1:41 PM > To: will.dea...@arm.com; robin.mur...@arm.com; > lorenzo.pieral...@arm.com; hanjun@linaro.org; sudeep.ho

[PATCH] Signed-off-by: Richa Jha

2017-05-17 Thread Richa Jha
From short to string conversion --- drivers/char/efirtc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/char/efirtc.c b/drivers/char/efirtc.c index dc62568..b8a4d02 100644 --- a/drivers/char/efirtc.c +++ b/drivers/char/efirtc.c @@ -302,6 +302,7 @@ static int efi_

[PATCH v2 3/4] arm: dts: rk3229: add a new cpu opp table

2017-05-17 Thread Frank Wang
From: Finley Xiao This patch adds some new frequencies for rk3229 board. Signed-off-by: Finley Xiao Signed-off-by: Frank Wang Acked-by: Viresh Kumar --- arch/arm/boot/dts/rk3229-cpu-opp.dtsi | 85 +++ 1 file changed, 85 insertions(+) create mode 100644 arch/a

[PATCH v2 0/4] amend some properties related clk and cpu for rk322x

2017-05-17 Thread Frank Wang
These series of patches amend some assigned-clocks and add cpu opp table for rk322x SoCs. the following patches on patchwork are required for this change. https://patchwork.kernel.org/patch/9627639/ https://patchwork.kernel.org/patch/9703945/ https://patchwork.kernel.org/patch/9703939/ https://pat

[PATCH v2 1/4] arm: dts: rk322x: add some assigned-clocks

2017-05-17 Thread Frank Wang
From: Elaine Zhang Add CPLL, GPLL and some other assigned-clocks for rk322x SoC. Signed-off-by: Elaine Zhang Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm

[PATCH v2 2/4] arm: dts: rk322x: add operating-points-v2 property for cpu

2017-05-17 Thread Frank Wang
From: Finley Xiao This patch adds a new opp table for cpu on rk322x SoC. Signed-off-by: Finley Xiao Signed-off-by: Frank Wang Acked-by: Viresh Kumar --- arch/arm/boot/dts/rk322x.dtsi | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/arc

[PATCH v2 4/4] arm: dts: rk322x: update tsadc's frequence setting

2017-05-17 Thread Frank Wang
From: Rocky Hao Update freq of tsadc's working clock as 32768 hz, if not set, tsadc will work at a default frequence. Signed-off-by: Rocky Hao Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch

[PATCH 06/22] scsi: hisi_sas: add pci_dev in hisi_hba struct

2017-05-17 Thread John Garry
Since hip08 SAS controller is based on pci device, add hisi_hba.pci_dev for hip08 (will be v3), and also rename hisi_hba.pdev to .platform_dev for clarity. In addition, for common code which wants to reference the controller device struct, add hisi_hba.dev, and change the common code to use it. S

[PATCH 01/22] scsi: hisi_sas: fix timeout check in hisi_sas_internal_task_abort()

2017-05-17 Thread John Garry
From: Xiang Chen We need to check for timeout before task status, or the task will be mistook as completed internal abort command. Also add protection for sas_task.task_state_flags in hisi_sas_tmf_timedout(). Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_s

[PATCH 03/22] scsi: hisi_sas: relocate get_ata_protocol()

2017-05-17 Thread John Garry
From: Xiang Chen Relocate get_ata_protocol() to a common location, as future hw versions will require it. Also rename with "hisi_sas_" prefix for consistency. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 1 + drivers/scsi/hisi_sas/hisi_sas_

[PATCH 20/22] scsi: hisi_sas: Add v3 code to support ECC and AXI bus fatal error

2017-05-17 Thread John Garry
From: Xiang Chen For ECC 1bit error, logic can recover it, so we only print a warning. For ECC multi-bit and AXI bus fatal error, we panic. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 401 - 1 file changed, 3

[PATCH 09/22] scsi: hisi_sas: retrieve SAS address for pci-based controller

2017-05-17 Thread John Garry
For a pci-based controller, retrieve the SAS address from the ACPI tables. The retrieval is based on the ACPI device node name. Sample is as follows: Scope(_SB) { Device(SAS0) { Name(_HID, "HISI0163") Name (_DSD, Package () { ToUUID("daffd814-6eba-

[PATCH 04/22] scsi: hisi_sas: relocate sata_done_v2_hw()

2017-05-17 Thread John Garry
From: Xiang Chen Relocate get_ata_protocol() to a common location, as future hw versions will require it. Also rename with "hisi_sas_" prefix for consistency. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 ++ drivers/scsi/hisi_sas/hisi_sas

[PATCH 19/22] scsi: hisi_sas: add get_wideport_bitmap_v3_hw()

2017-05-17 Thread John Garry
From: Xiang Chen Add code for interface get_wide_port_bitmap_v3_hw(). Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_s

[PATCH 14/22] scsi: hisi_sas: add v3 code to send SSP frame

2017-05-17 Thread John Garry
From: Xiang Chen Add code to prepare SSP frame and deliver it to hardware. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 209 + 1 file changed, 209 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_

[PATCH 07/22] scsi: hisi_sas: add the initialisation for pci-based controller

2017-05-17 Thread John Garry
Add the code to initialise controller which is based on pci device in hisi_sas_pci_init.c The main functionality added is for probing and initialisation of the controller based on pci device. The core controller routines are still in hisi_sas_main.c; some common initialisation functions and struc

[PATCH 13/22] scsi: hisi_sas: add v3 cq interrupt handler

2017-05-17 Thread John Garry
From: Xiang Chen Add v3 cq interrupt handler. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas.h | 1 + drivers/scsi/hisi_sas/hisi_sas_main.c | 32 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 332 + 3 files chan

[PATCH 16/22] scsi: hisi_sas: add v3 code to send ATA frame

2017-05-17 Thread John Garry
From: Xiang Chen Add code to prepare ATA frame for v3 hw Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 106 + 1 file changed, 106 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/sc

[PATCH 22/22] scsi: hisi_sas: modify internal abort dev flow for v3 hw

2017-05-17 Thread John Garry
From: Xiang Chen There is a change for abort dev for v3 hw: add registers to configure unaborted iptt for a device, and then inform this to logic. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 ++ drivers/scsi/hisi_sas/hisi_sas_main.c | 1

[PATCH 21/22] scsi: hisi_sas: add v3 code to fill some more hw function pointers

2017-05-17 Thread John Garry
From: Xiang Chen Add code to fill the interface of phy_hard_reset, phy_get_max_linkrate, and phy enable/disable. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 39 ++ 1 file changed, 39 insertions(+) diff --git

[PATCH 15/22] scsi: hisi_sas: add v3 code to send SMP frame

2017-05-17 Thread John Garry
From: Xiang Chen Add code to prepare SMP frame. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 74 ++ 1 file changed, 74 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sa

[PATCH 18/22] scsi: hisi_sas: add v3 code to send internal abort command

2017-05-17 Thread John Garry
From: Xiang Chen Add code to prepare internal abort command. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers

[PATCH 12/22] scsi: hisi_sas: add phy up/down/bcast and channel ISR

2017-05-17 Thread John Garry
From: Xiang Chen Add code to initialise interrupts and add some interrupt handlers. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 281 + 1 file changed, 281 insertions(+) diff --git a/drivers/scsi/hisi_sas/his

[PATCH 08/22] scsi: hisi_sas: add bare v3 hw driver

2017-05-17 Thread John Garry
Add new file hisi_sas_v3_hw.c for hip08 support. The controller design is quite similar to v2 hw in hip07. However key differences include: -All v2 hw bugs are fixed (hopefully), so workarounds are not required -support for device deregistration -some interrupt modifications -configurable max dev

[PATCH 05/22] scsi: hisi_sas: relocate get_ncq_tag_v2_hw()

2017-05-17 Thread John Garry
From: Xiang Chen Relocate get_ncq_tag_v2_hw() to a common location, as future hw versions will require it. Also rename with "hisi_sas_" prefix for consistency. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 1 + drivers/scsi/hisi_sas/hisi_sas

[PATCH 11/22] scsi: hisi_sas: add v3 hw PHY init

2017-05-17 Thread John Garry
From: Xiang Chen Add code to configure PHYs for v3 hw. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 126 + 1 file changed, 126 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi

[PATCH 17/22] scsi: hisi_sas: add v3 code for itct setup and free

2017-05-17 Thread John Garry
From: Xiang Chen Add code for itct setup and free for v3 hw. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 115 + 1 file changed, 115 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/driver

[PATCH 10/22] scsi: hisi_sas: add v3 hw init

2017-05-17 Thread John Garry
From: Xiang Chen Add code to initialise v3 hardware. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 275 + 1 file changed, 275 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/h

[PATCH 00/22] hisi_sas: hip08 support

2017-05-17 Thread John Garry
This patchset adds support for the HiSilicon SAS controller in the hip08 chipset. The key difference compared to earlier chipsets is that the controller is an integrated PCI endpoint in hip08. As such, the controller is a pci device (not a platform device, like v2 hw in hip07). The driver is refa

[PATCH v2 3/3] pinctrl: cherryview: Extend the Chromebook DMI quirk to Intel_Strago systems

2017-05-17 Thread Mika Westerberg
It turns out there are quite many Chromebooks out there that have the same keyboard issue than Acer Chromebook. All of them are based on Intel_Strago reference and report their DMI_PRODUCT_FAMILY as "Intel_Strago" (Samsung Chromebook 3 and Cyan Chromebooks are exceptions for which we add separate e

Re: [PATCH v8 08/08] iommu/ipmmu-vmsa: Fix pgsize_bitmap semicolon typo

2017-05-17 Thread Geert Uytterhoeven
On Wed, May 17, 2017 at 12:07 PM, Magnus Damm wrote: > From: Magnus Damm > > Fix comma-instead-of-semicolon typo error present > in the latest version of the IPMMU driver. > > Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geer

[PATCH 02/22] scsi: hisi_sas: optimise the usage of hisi_hba.lock

2017-05-17 Thread John Garry
From: Xiang Chen Currently hisi_hba.lock is locked to deliver and receive a command to/from any hw queue. This causes much contention at high data-rates. To boost performance, lock on a per queue basis for sending and receiving commands to/from hw. Certain critical regions still need to be lock

Re: [PATCH] mmc: sdhci-xenon: kill xenon_clean_phy()

2017-05-17 Thread Adrian Hunter
On 16/05/17 09:17, Jisheng Zhang wrote: > Currently, the xenon_clean_phy() is only used for freeing phy_params. > The phy_params is allocated by devm_kzalloc(), there's no need to free > is explicitly. > > Signed-off-by: Jisheng Zhang Acked-by: Adrian Hunter

[PATCH v2 0/3] pinctrl: cherryview: Extend the DMI quirk to Intel_Strago systems

2017-05-17 Thread Mika Westerberg
Hi, It turned out that there are bunch of other Chromebooks that need the DMI quirk as well. Most of these are based on Intel_Strago reference design so we can identify them by using DMI_PRODUCT_FAMILY introduced in this series. The systems without the family string we add them separately. Relate

[PATCH v2 2/3] pinctrl: cherryview: Add terminate entry for dmi_system_id tables

2017-05-17 Thread Mika Westerberg
From: Wei Yongjun Make sure dmi_system_id tables are NULL terminated. Fixes: 703650278372 ("pinctrl: cherryview: Add a quirk to make Acer Chromebook keyboard work again") Signed-off-by: Wei Yongjun Signed-off-by: Mika Westerberg --- drivers/pinctrl/intel/pinctrl-cherryview.c | 3 ++- 1 file

[PATCH v2 1/3] firmware: dmi: Add DMI_PRODUCT_FAMILY identification string

2017-05-17 Thread Mika Westerberg
Sometimes it is more convenient to be able to match a whole family of products, like in case of bunch of Chromebooks based on Intel_Strago to apply a driver quirk instead of quirking each machine one-by-one. This adds support for DMI_PRODUCT_FAMILY identification string and also exports it to the

Re: [PATCH v2 3/3] pinctrl: cherryview: Extend the Chromebook DMI quirk to Intel_Strago systems

2017-05-17 Thread Andy Shevchenko
On Wed, May 17, 2017 at 1:25 PM, Mika Westerberg wrote: > It turns out there are quite many Chromebooks out there that have the > same keyboard issue than Acer Chromebook. All of them are based on > Intel_Strago reference and report their DMI_PRODUCT_FAMILY as > "Intel_Strago" (Samsung Chromebook

Re: [PATCH v2 2/3] pinctrl: cherryview: Add terminate entry for dmi_system_id tables

2017-05-17 Thread Andy Shevchenko
On Wed, May 17, 2017 at 1:25 PM, Mika Westerberg wrote: > From: Wei Yongjun > > Make sure dmi_system_id tables are NULL terminated. > Reviewed-by: Andy Shevchenko > Fixes: 703650278372 ("pinctrl: cherryview: Add a quirk to make Acer > Chromebook keyboard work again") > Signed-off-by: Wei Yong

Re: [PATCH v2 1/3] firmware: dmi: Add DMI_PRODUCT_FAMILY identification string

2017-05-17 Thread Andy Shevchenko
On Wed, May 17, 2017 at 1:25 PM, Mika Westerberg wrote: > Sometimes it is more convenient to be able to match a whole family of > products, like in case of bunch of Chromebooks based on Intel_Strago to > apply a driver quirk instead of quirking each machine one-by-one. > > This adds support for DM

Re: [PATCH] seq_file: delete small-value optimization

2017-05-17 Thread Alexey Dobriyan
> Joe Perches wrote: > > On Tue, 2017-05-16 at 23:42 +0300, Alexey Dobriyan wrote: > > num_to_str() optimizes printing small integers [0..9], so the same > > check higher in callchain is unnecessary. > > Doesn't the optimization exists for the frequent use of 0 > in seq output? > > These seq_p

Re: [RESEND PATCH v3] UBI: add debugfs file for tracking PEB state

2017-05-17 Thread Honza Petrouš
2017-05-16 20:22 GMT+02:00 Richard Weinberger : > Zach, > > Am 16.05.2017 um 19:58 schrieb Zach Brown: >> From: Ben Shelton >> >> Add a file under debugfs to allow easy access to the erase count for >> each physical erase block on an UBI device. This is useful when >> debugging data integrity iss

Re: [PATCH V10 1/3] irq: Allow to pass the IRQF_TIMER flag with percpu irq request

2017-05-17 Thread Mark Rutland
On Tue, May 16, 2017 at 09:44:32PM +0200, Daniel Lezcano wrote: > In the next changes, we track when the interrupts occur in order to > statistically compute when is supposed to happen the next interrupt. > > In all the interruptions, it does not make sense to store the timer interrupt > occurence

Re: [PATCH 0/4] serdev: fix broken lifetime assumptions

2017-05-17 Thread Johan Hovold
On Tue, Apr 11, 2017 at 07:07:27PM +0200, Johan Hovold wrote: > This series fixes a number of issues with the new serdev code, which was > based on incorrect tty-port lifetime assumptions. > > The first patch disables serdev support by reverting the patch which > hooked into the tty layer in a bro

Re: [RFC][PATCH 0/5] perf/tracing/cpuhotplug: Fix locking order

2017-05-17 Thread Peter Zijlstra
On Tue, May 16, 2017 at 07:27:42AM -0700, Paul E. McKenney wrote: > On Tue, May 16, 2017 at 05:46:06AM -0700, Paul E. McKenney wrote: > > Something like this, yes. Maybe even exactly like this. ;-) > > Ah, one thing I forgot... If you are avoiding use of get_online_cpus(), > you usually also h

Re: [PATCH] s390: use generic fb.h

2017-05-17 Thread Heiko Carstens
On Wed, May 17, 2017 at 10:34:49AM +0200, Tobias Klauser wrote: > The arch uses a verbatim copy of the asm-generic version and does not > add any own implemntations to the header, so use asm-generic/fb.h > instead of duplicating code. > > Signed-off-by: Tobias Klauser > --- > arch/s390/include/a

Re: [PATCH 2/3] arm64: dts: add LS1043A DPAA FMan support

2017-05-17 Thread kbuild test robot
Hi Madalin, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.12-rc1 next-20170517] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Madalin-Bucur/arm64-dts-add-DPAA-FMan

Re: [PATCH v5 1/3] perf: export perf_event_update_userpage()

2017-05-17 Thread Mark Rutland
Hi Jan, On Wed, May 17, 2017 at 10:31:20AM +0200, Jan Glauber wrote: > Export perf_event_update_userpage() to make it usable from a module. > > Signed-off-by: Jan Glauber Please make sure to Cc the relevant maintainers, e.g. those listed by: get_maintainer.pl -f kernel/events/core.c .

Re: [RFC][PATCH 05/14] sched/fair: Change update_load_avg() arguments

2017-05-17 Thread Vincent Guittot
On 12 May 2017 at 18:44, Peter Zijlstra wrote: > Most call sites of update_load_avg() already have cfs_rq_of(se) > available, pass it down instead of recomputing it. > > Signed-off-by: Peter Zijlstra (Intel) Acked-by: Vincent Guittot

hackbench vs select_idle_sibling; was: [tip:sched/core] sched/fair, cpumask: Export for_each_cpu_wrap()

2017-05-17 Thread Peter Zijlstra
On Mon, May 15, 2017 at 02:03:11AM -0700, tip-bot for Peter Zijlstra wrote: > sched/fair, cpumask: Export for_each_cpu_wrap() > -static int cpumask_next_wrap(int n, const struct cpumask *mask, int start, > int *wrapped) > -{ > - next = find_next_bit(cpumask_bits(mask), nr_cpumask_bits, n+1);

Re: [PATCH -next] phy: qcom-qmp: fix return value check in qcom_qmp_phy_create()

2017-05-17 Thread Kishon Vijay Abraham I
On Tuesday 25 April 2017 09:51 AM, Vivek Gautam wrote: > > > On 04/25/2017 08:44 AM, Wei Yongjun wrote: >> From: Wei Yongjun >> >> In case of error, the function of_iomap() returns NULL pointer >> not ERR_PTR(). The IS_ERR() test in the return value check should >> be replaced with NULL test.

Re: [RFC V1 1/1] net: cdc_ncm: Reduce memory use when kernel memory low

2017-05-17 Thread Baxter, Jim
From: Oliver Neukum (oneu...@suse.com) Sent: Wed, 17 May 2017 09:44:20 +0200 > Am Dienstag, den 16.05.2017, 20:24 +0200 schrieb Bjørn Mork: >> >> I must say that I don't like the additional complexity added here. If >> there are memory issues and you can reduce the buffer size to >> USB_CDC_NCM_

Re: [patch V2 00/17] init: Enable might_sleep() and smp_processor_id() debugging early

2017-05-17 Thread Mark Rutland
Hi, On Tue, May 16, 2017 at 08:42:31PM +0200, Thomas Gleixner wrote: > We recentlty discovered a call path which takes a mutex from the low level > secondary CPU bringup code and wondered why this was not caught by > might_sleep(). > > The reason is that both debug facilities depend on system_sta

Re: [patch V2 16/17] init: Introduce SYSTEM_SCHEDULING state

2017-05-17 Thread Mark Rutland
On Tue, May 16, 2017 at 08:42:47PM +0200, Thomas Gleixner wrote: > might_sleep() debugging and smp_processor_id() debugging should be active > right after the scheduler starts working. The init task can invoke > smp_processor_id() from preemptible context as it is pinned on the boot cpu > until sch

Re: setting brightness as privileged operation?

2017-05-17 Thread Michal Hocko
On Fri 12-05-17 11:47:12, Pavel Machek wrote: > On Fri 2017-05-12 08:20:04, Michal Hocko wrote: > > On Thu 11-05-17 23:07:55, Pavel Machek wrote: > > > On Thu 2017-01-05 10:23:07, Michal Hocko wrote: > > > > Hi, > > > > I have just learned that my Xfce Power Manager cannot manipulate > > > > bright

Re: [patch V2 17/17] sched: Enable might_sleep() and smp_processor_id() checks early

2017-05-17 Thread Mark Rutland
On Tue, May 16, 2017 at 08:42:48PM +0200, Thomas Gleixner wrote: > might_sleep() and smp_processor_id() checks are enabled after the boot > process is done. That hides bugs in the smp bringup and driver > initialization code. > > Enable it right when the scheduler starts working, i.e. when init ta

RE: [PATCH 2/3] arm64: dts: add LS1043A DPAA FMan support

2017-05-17 Thread Madalin-Cristian Bucur
FMan support > > Hi Madalin, > > [auto build test ERROR on robh/for-next] > [also build test ERROR on v4.12-rc1 next-20170517] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url:https://github.com/0day-ci/li

Re: rcu: NO_HZ_FULL_SYSIDLE leftovers

2017-05-17 Thread Paul E. McKenney
on the removed > Kconfig symbol 'NO_HZ_FULL_SYSIDLE'. I couldn't find any commit > removing them on LKML, and as I am unsure if you like to keep the > affected code, I want to report it to you. > > To get the report in linux-next: > $ checkkconfigsymbols.py --diff ne

Microchip USB Hub Driver Harmonization

2017-05-17 Thread Richard Leitner
Hello, due to the fact (all?) the Microchip (former SMSC) USB hubs share the same I2C configuration interface, I'm currently working on harmonizing those USB Hub drivers. Currently this affects the usb251xb, usb3503 and usb4604 drivers. To avoid preventable efforts (and patch versions) I have some

Re: kmemleak splat on copy_process()

2017-05-17 Thread Catalin Marinas
On Tue, May 16, 2017 at 04:55:28PM -0700, Andy Lutomirski wrote: > On Tue, May 16, 2017 at 6:39 AM, Catalin Marinas > wrote: > > Thanks for cc'ing me. The vmalloc allocations have always been tricky > > for kmemleak since there are 2-3 other memory locations with the same > > value as the vmalloc'

RE: Donation Award

2017-05-17 Thread Mayrhofer Family
Good Day, My wife and I have awarded you with a donation of $ 1,000,000.00 Dollars from part of our Jackpot Lottery of 50 Million Dollars, respond with your details for claims. We await your earliest response and God Bless you. Friedrich And Annand Mayrhofer. --- This email has been checked f

Re: [PATCH v2 51/53] usb: fix the comment with regards to DocBook

2017-05-17 Thread Felipe Balbi
Mauro Carvalho Chehab writes: > The USB gadget documentation is not at DocBook anymore. > The main file was converted to ReST, and stored at > Documentation/driver-api/usb/gadget.rst, but there are > still several plain text files related to gadget under > Documentation/usb. > > So, be generic an

Re: [PATCH 2/2] drm: drop drm_[cm]alloc* helpers

2017-05-17 Thread kbuild test robot
Hi Michal, [auto build test ERROR on drm/drm-next] [also build test ERROR on v4.12-rc1 next-20170517] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Michal-Hocko/drm-replace-drm_-cm-alloc-by

[PATCH v3] fscrypt: Add support for AES-128-CBC

2017-05-17 Thread David Gstir
From: Daniel Walter fscrypt provides facilities to use different encryption algorithms which are selectable by userspace when setting the encryption policy. Currently, only AES-256-XTS for file contents and AES-256-CBC-CTS for file names are implemented. This is a clear case of kernel offers the

Re: [PATCH 1/2] acpica: iort: Update SMMU models for IORT rev. C

2017-05-17 Thread Robert Richter
On 12.05.17 11:41:41, Robin Murphy wrote: > IORT revision C has been published with a number of new SMMU > implementation identifiers; define them. > > CC: Rafael J. Wysocki > CC: Robert Moore > CC: Lv Zheng > Signed-off-by: Robin Murphy For the whole series: Acked-by: Robert Richter Tested

[PATCH] ceph: check i_nlink while converting a file handle to dentry

2017-05-17 Thread Luis Henriques
Converting a file handle to a dentry can be done call after the inode unlink. This means that __fh_to_dentry() requires an extra check to verify the number of links is not 0. The issue can be easily reproduced using xfstest generic/426, which does something like: name_to_handle_at(&fh) echo

Re: [PATCH] nand_base: optimize checking of erased buffers

2017-05-17 Thread Mason
On 21/04/2017 12:51, Pavel Machek wrote: > If we see ~0UL in flash, there's no need for hweight, and no need to > check number of bitflips. So this should be net win. > > Signed-off-by: Pavel Machek > > diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c > index b0524f8..96

[PATCH 2/3] iommu: of: Ignore all errors except EPROBE_DEFER

2017-05-17 Thread Sricharan R
While deferring the probe of iommu masters, xlate and add_device callback can pass back error values like -ENODEV, which means iommu cannot be connected with that master for real reasons. So rather than killing the master's probe for such errors, just ignore the errors and let the master work witho

[PATCH 1/3] iommu: of: Fix check for returning EPROBE_DEFER

2017-05-17 Thread Sricharan R
Now with iommu probe deferral, we return -EPROBE_DEFER for master's that are connected to an iommu which is not probed yet, but going to get probed, so that we can attach the correct dma_ops. So while trying to defer the probe of the master, check if the of_iommu node that it is connected to is mar

Re: [PATCH v2] Added "Preserve Boot Time Support"

2017-05-17 Thread Sascha Hauer
On Tue, May 16, 2017 at 08:22:29AM +, Mirea, Bogdan-Stefan wrote: > Hello, > > Any input on this topic? As John already said, there's the read_boot_clock64() interface which should be used here. In your patch you provide a generic option (BOOT_TIME_PRESERVE) which only works as expected in s

[PATCH 3/3] ARM: dma-mapping: Don't tear third-party mappings

2017-05-17 Thread Sricharan R
From: Laurent Pinchart arch_setup_dma_ops() is used in device probe code paths to create an IOMMU mapping and attach it to the device. The function assumes that the device is attached to a device-specific IOMMU instance (or at least a device-specific TLB in a shared IOMMU instance) and thus creat

Re: [PATCH 06/21] VFS: Introduce a superblock configuration context [ver #3]

2017-05-17 Thread David Howells
Miklos Szeredi wrote: > > (b) is internal-only at the moment, used by NFS submounts as triggered by > > automounts. There isn't currently any way to supply mount options to this. > > And all blockdev based fs. I see what you're getting at. In which case there are more cases: (a) new mount,

Re: [PATCH v2 2/3] iio: adc: at91-sama5d2_adc: add hw trigger and buffer support

2017-05-17 Thread Eugen Hristev
On 17.05.2017 10:47, Peter Rosin wrote: On 2017-05-16 20:03, Jonathan Cameron wrote: As we are only left with one area of questions. +static const struct at91_adc_trigger at91_adc_trigger_list[] = { +{ +.name = "external-rising", +.trgmod_value = AT91_SAMA5D2_TRGR_TRGMOD

[PATCH] ubifs: Don't encrypt special files on creation

2017-05-17 Thread David Gstir
When a new inode is created, we check if the containing folder has a encryption policy set and inherit that. This should however only be done for regular files, links and subdirectories. Not for sockes fifos etc. Fixes: d475a507457b ("ubifs: Add skeleton for fscrypto") Cc: sta...@vger.kernel.org S

[PATCH] ALSA: sound/isa: constify snd_kcontrol_new structures

2017-05-17 Thread Bhumika Goyal
Declare snd_kcontrol_new structures as const as they are only passed an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having this property can be made const. Done using Coccinelle: @r disable optional_qualifier@ identifier x; position p; @@ s

Re: [PATCH] serdev: Restore serdev_device_write_buf for atomic context

2017-05-17 Thread Stefan Wahren
Hi Greg, Am 08.05.2017 um 17:18 schrieb Johan Hovold: > On Thu, May 04, 2017 at 03:32:53PM -0500, Rob Herring wrote: >> On Thu, May 4, 2017 at 11:22 AM, Stefan Wahren >> wrote: >>> Am 02.05.2017 um 15:18 schrieb Johan Hovold: On Tue, May 02, 2017 at 07:41:34AM -0500, Rob Herring wrote:

Re: [PATCH] nand_base: optimize checking of erased buffers

2017-05-17 Thread Mason
On 17/05/2017 13:27, Mason wrote: > On 21/04/2017 12:51, Pavel Machek wrote: > >> If we see ~0UL in flash, there's no need for hweight, and no need to >> check number of bitflips. So this should be net win. >> >> Signed-off-by: Pavel Machek >> >> diff --git a/drivers/mtd/nand/nand_base.c b/drive

Re: [PATCH 0/4] mtd: mchp23k256: device tree and mchp23lcv1024

2017-05-17 Thread Andrew Lunn
On Wed, May 17, 2017 at 05:39:04PM +1200, Chris Packham wrote: > This series adds device tree support to the mchp23k256 driver and > support for the mchp23lcv1024 chip. I suspect there are more compatible > variants that we could now enumerate if desired. Hi Chris Cool. I only have a mchp23k256,

Re: [PATCH v2] misc: sram-exec: Use aligned fncpy instead of memcpy

2017-05-17 Thread Russell King - ARM Linux
On Wed, May 17, 2017 at 11:13:17AM +0200, Greg Kroah-Hartman wrote: > On Tue, May 16, 2017 at 09:01:27AM -0700, Tony Lindgren wrote: > > * Russell King - ARM Linux [170503 11:58]: > > > On Mon, Apr 10, 2017 at 09:52:47AM -0500, Dave Gerlach wrote: > > > > Currently the sram-exec functionality, whi

Re: [PATCH 1/4] mtd: mchp23k256: Add OF device ID table

2017-05-17 Thread Andrew Lunn
On Wed, May 17, 2017 at 05:39:05PM +1200, Chris Packham wrote: > This allows registering of this device via a Device Tree. > > Signed-off-by: Chris Packham Reviewed-by: Andrew Lunn Andrew

Re: [PATCH 2/5] extcon: Add FUSB302 USB TYPE-C controller support

2017-05-17 Thread Heikki Krogerus
Hi, On Wed, May 17, 2017 at 12:24:52AM +0200, Hans de Goede wrote: > Hi, > > On 05/16/2017 02:07 PM, Heikki Krogerus wrote: > > Hi Hans, > > > > On Fri, May 12, 2017 at 11:22:46PM +0200, Hans de Goede wrote: > > > > > > To me making the combination of the 2 sources the problem > > > of the co

Re: [PATCH 0/4] Support for Synopsys DW CSI-2 Host

2017-05-17 Thread Mauro Carvalho Chehab
Em Wed, 17 May 2017 00:48:17 +0300 Sakari Ailus escreveu: > Hi Ramiro, > > On Tue, Mar 07, 2017 at 02:37:47PM +, Ramiro Oliveira wrote: > > This patchset adds support for the DW CSI-2 Host and also for a video > > device associated with it. > > > > The first 2 patches are only for the DW C

Re: [PATCH 2/4] mtd: mchp23k256: switch to mtd_device_register()

2017-05-17 Thread Andrew Lunn
On Wed, May 17, 2017 at 05:39:06PM +1200, Chris Packham wrote: > Use mtd_device_register() instead of mtd_device_parse_register() to > eliminate two unused parameters. > > Signed-off-by: Chris Packham Reviewed-by: Andrew Lunn Andrew

[PATCH] ALSA: ice1712: constify snd_kcontrol_new structures

2017-05-17 Thread Bhumika Goyal
Declare snd_kcontrol_new structures as const as they are only passed an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having this property can be made const. Done using Coccinelle: @r disable optional_qualifier@ identifier x; position p; @@ s

Re: [PATCH] nand_base: optimize checking of erased buffers

2017-05-17 Thread Pavel Machek
> This is not true for my platform, as the ecc pointer is > chip->oob_poi + 10 > > I suppose it's not a problem if the platform can handle > unaligned loads, otherwise it spells trouble. > > > > + unsigned long d = *((unsigned long *)bitmap); > > + if (d == ~0UL) > > +

[PATCH 0/2] spi-bfin5xx: Adjustments for four function implementations

2017-05-17 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 17 May 2017 13:45:45 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation in bfin_spi_setup() Adjust 14 checks for null pointers drivers/spi/spi-bf

Re: [PATCH linux-next] fs: remove void * casting in init_once()

2017-05-17 Thread Philipp Hachtmann
On 16.05.2017 20:38, Fabian Frederick wrote: See Documentation/process/coding-style.rst: "Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language." This will stop copy/paste cascade w

[PATCH 1/2] spi-bfin5xx: Delete an error message for a failed memory allocation in bfin_spi_setup()

2017-05-17 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 17 May 2017 13:00:34 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

[PATCH 2/2] spi-bfin5xx: Adjust 14 checks for null pointers

2017-05-17 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 17 May 2017 13:13:26 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix affected source code places.

Re: [PATCH] mmc: sdhci-xenon: kill xenon_clean_phy()

2017-05-17 Thread Andrew Lunn
> As pointed out by RMK, the sdhci-xenon driver is merged in current 4.12-rc1, > so we just need to apply this fix in later rcN. Yep. It helps the maintainer if you point this out in the patch, after the ---. Andrew

Re: [PATCH v5 16/17] tty: serdev-ttyport: return actual baudrate from ttyport_set_baudrate

2017-05-17 Thread Stefan Wahren
Hi Greg, Am 10.05.2017 um 10:53 schrieb Stefan Wahren: > Instead of returning the requested baudrate, we better return the > actual one because it isn't always the same. > > Signed-off-by: Stefan Wahren > Acked-by: Rob Herring > --- > drivers/tty/serdev/serdev-ttyport.c | 2 +- > 1 file changed

Re: [PATCH] Signed-off-by: Richa Jha

2017-05-17 Thread Arnd Bergmann
On Wed, May 17, 2017 at 12:12 PM, Richa Jha wrote: > From short to string conversion > --- Hi Richa, Sorry, but we can't take that patch: - The patch description doesn't explain what the patch is good for, only what it does. > @@ -326,7 +327,9 @@ static int efi_rtc_proc_show(struct seq_file

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2017-05-17 Thread Johannes Berg
On Tue, 2017-05-16 at 01:13 +0200, Luis R. Rodriguez wrote: > > > Now for N900 case there is a similar scenario > > > alhtough it has additional requirement to go to user-space due to > > > need to use a proprietary library to obtain the NVS calibration > > > data. My thought: Why should firmware_c

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