Re: [PATCH] arm64/efi: efi_init error handling fix

2016-09-07 Thread Yisheng Xie
On 2016/9/5 21:57, Matt Fleming wrote: > On Fri, 02 Sep, at 11:26:18AM, Will Deacon wrote: >> On Fri, Sep 02, 2016 at 06:18:39PM +0800, Xie Yisheng wrote: >>> From: Yisheng Xie >>> >>> diff --git a/drivers/firmware/efi/arm-init.c >>> b/drivers/firmware/efi/arm-init.c >>> index c49d50e..5080e40

[PATCH] qed: mark symbols static where possible

2016-09-07 Thread Baoyou Xie
We get a few warnings when building kernel with W=1: drivers/net/ethernet/qlogic/qed/qed_l2.c:112:5: warning: no previous prototype for 'qed_sp_vport_start' [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qed/qed_l2.c:1593:6: warning: no previous prototype for 'qed_get_vport_stats' [-Wmissing-

Re: [PATCH 3/4] mfd: ucb1x00: remove NO_IRQ check

2016-09-07 Thread Lee Jones
On Tue, 06 Sep 2016, Arnd Bergmann wrote: > probe_irq_off() returns '0' on failure, not NO_IRQ, so the check > in this driver is clearly wrong. This replaces it with the > regular '!irq' check used in other drivers. > > The sa1100 platform that this driver is used on originally numbered > all its

Re: [PATCH linux v3 3/9] xen: introduce xen_vcpu_id mapping

2016-09-07 Thread Vitaly Kuznetsov
Julien Grall writes: > Hi Vitaly, > > On 07/09/2016 10:07, Vitaly Kuznetsov wrote: >> Stefano Stabellini writes: >>> I don't know that much about cpuid, but the virtual MPIDR is constructed >>> from the vcpu id right now: >>> >>> v->arch.vmpidr = MPIDR_SMP | vcpuid_to_vaffinity(v->vcpu_id);

Re: [PATCH v2 05/12] MIPS: Barrier: Add definitions of SYNC stype values

2016-09-07 Thread Peter Zijlstra
This seems to be verbatim copies of the text from the manual. A few questions below. On Wed, Sep 07, 2016 at 10:45:13AM +0100, Matt Redfearn wrote: > +/* > + * Completion barriers: > + * - Every synchronizable specified memory instruction (loads or stores or > both) > + * that occurs in the i

[PATCH] irqchip/gic: mark gic_init_physaddr() static

2016-09-07 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/irqchip/irq-gic.c:917:13: warning: no previous prototype for 'gic_init_physaddr' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this pat

Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check

2016-09-07 Thread Russell King - ARM Linux
On Wed, Sep 07, 2016 at 11:27:37AM +0100, Lee Jones wrote: > On Tue, 06 Sep 2016, Russell King - ARM Linux wrote: > > > On Tue, Sep 06, 2016 at 04:45:30PM +0100, Lee Jones wrote: > > > On Tue, 06 Sep 2016, Russell King - ARM Linux wrote: > > > > > > > You need to send this _to_ me as I need to me

Re: [PATCH] simplefb: Disable and release clocks and regulators in destroy callback

2016-09-07 Thread Hans de Goede
Hi, On 07-09-16 13:12, Geert Uytterhoeven wrote: On Wed, Sep 7, 2016 at 11:09 AM, Chen-Yu Tsai wrote: simplefb gets unregister when a proper framebuffer driver comes in and kicks it out. However the claimed clocks and regulators stay enabled as they are only released in the platform device rem

Re: [PATCH v3 8/9] arm64: Refactor sysinstr exception handling

2016-09-07 Thread Andre Przywara
Hi, On 05/09/16 10:58, Suzuki K Poulose wrote: > Right now we trap some of the user space data cache operations > based on a few Errata (ARM 819472, 826319, 827319 and 824069). > We need to trap userspace access to CTR_EL0, if we detect mismatched > cache line size. Since both these traps share th

Re: [PATCH v2 05/12] MIPS: Barrier: Add definitions of SYNC stype values

2016-09-07 Thread Peter Zijlstra
On Wed, Sep 07, 2016 at 01:24:23PM +0200, Peter Zijlstra wrote: > > +/* > > + * Ordering barriers: > > + * - Every synchronizable specified memory instruction (loads or stores or > > both) > > + * that occurs in the instruction stream before the SYNC instruction must > > + * reach a stage in t

Re: [PATCH] simplefb: Disable and release clocks and regulators in destroy callback

2016-09-07 Thread Geert Uytterhoeven
Hi Hans, On Wed, Sep 7, 2016 at 1:29 PM, Hans de Goede wrote: > On 07-09-16 13:12, Geert Uytterhoeven wrote: >> On Wed, Sep 7, 2016 at 11:09 AM, Chen-Yu Tsai wrote: >>> simplefb gets unregister when a proper framebuffer driver comes in and >>> kicks it out. However the claimed clocks and regulat

Re: [PATCH V10 2/8] ACPI: Add new IORT functions to support MSI domain handling

2016-09-07 Thread Rafael J. Wysocki
On Wed, Sep 7, 2016 at 12:35 PM, Tomasz Nowicki wrote: > Rafael, > > There are two fixes for iort.c: > 1. patch 1 - convert switch to if-else in iort_match_node_callback() > 2. patch 2 - remove static local variable for iort_get_device_domain() > > Do you want me to repost these patches to get you

Re: [PATCH v4 1/4] soc: qcom: wcnss_ctrl: Stub wcnss_ctrl API

2016-09-07 Thread Kalle Valo
Andy Gross writes: > On Tue, Sep 06, 2016 at 03:18:29PM -0700, Bjorn Andersson wrote: >> Stub the wcnss_ctrl API to allow compile testing wcnss function drivers. >> >> Cc: Marcel Holtmann >> Signed-off-by: Bjorn Andersson >> --- >> >> There are no other pending changes colliding with this, so

Re: [PATCH for v4.8] usb: dwc3: mark PM function as __maybe_unused

2016-09-07 Thread Arnd Bergmann
On Wednesday, September 7, 2016 1:39:16 PM CEST Felipe Balbi wrote: > > seems like it would've been enough to define dwc3_pci_pm_dummy() if > CONFIG_PM_SLEEP. Right? IOW: > > diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c > index 0a32430f4c41..6df0f5dad9a4 100644 > --- a/d

Re: [PATCH v4 2/4] wcn36xx: Transition driver to SMD client

2016-09-07 Thread Kalle Valo
Bjorn Andersson writes: > The wcn36xx wifi driver follows the life cycle of the WLAN_CTRL SMD > channel, as such it should be a SMD client. This patch makes this > transition, now that we have the necessary frameworks available. > > Signed-off-by: Bjorn Andersson > --- > > Changes since v3: > -

Re: [PATCH v2 5/5] gpio: pca953x: refactor pca953x_read_regs()

2016-09-07 Thread Andy Shevchenko
On Wed, 2016-09-07 at 11:24 +0200, Bartosz Golaszewski wrote: > Avoid the unnecessary if-else in pca953x_read_regs() by spltting the > routine into smaller, specialized functions and calling the right one > via a function pointer held in struct pca953x. > > Signed-off-by: Bartosz Golaszewski > --

[patch] leds: add driver for Mellanox systems leds

2016-09-07 Thread vadimp
From: Vadim Pasternak This makes it possible to create a set of LEDs for Mellanox systems: "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", "msn2740", "msn2100". Driver obtains led devices according to system configuration, provided through system DMI data, like fan1:

Re: [PATCH v2 4/5] gpio: pca953x: remove an unused variable

2016-09-07 Thread Andy Shevchenko
On Wed, 2016-09-07 at 11:24 +0200, Bartosz Golaszewski wrote: > The chip_type variable in struct pca953x_chip is no longer required. > > Remove it. Would it be patch 4 in the series? > > Signed-off-by: Bartosz Golaszewski > --- >  drivers/gpio/gpio-pca953x.c | 5 + >  1 file changed, 1 inse

Re: [PATCH 06/21] x86: microcode: Convert to hotplug state machine

2016-09-07 Thread Borislav Petkov
On Tue, Sep 06, 2016 at 07:04:42PM +0200, Sebastian Andrzej Siewior wrote: > Install the callbacks via the state machine. There is little hackery with > mc_cpu_dead() which should only be called if CPU_UP failed durin resume. > This change may not fully represent the current behaviour. The current

Re: [PATCH v2 0/5] gpio: pca953x: code refactoring

2016-09-07 Thread Andy Shevchenko
On Wed, 2016-09-07 at 11:24 +0200, Bartosz Golaszewski wrote: > I'm working on converting the pca953x driver to using regmap, but > since > it's not a trivial task I figured I'd post a couple refactoring > patches > I did so far for 4.9. > > The first patch just fixes a couple coding style issues.

Re: [PATCH v2 4/5] gpio: pca953x: remove an unused variable

2016-09-07 Thread Bartosz Golaszewski
2016-09-07 13:36 GMT+02:00 Andy Shevchenko : > On Wed, 2016-09-07 at 11:24 +0200, Bartosz Golaszewski wrote: >> The chip_type variable in struct pca953x_chip is no longer required. >> >> Remove it. > > Would it be patch 4 in the series? Hi Andy, I'm afraid I don't understand the question. Could y

[PATCH v2 3/8] media: vidc: decoder: add video decoder files

2016-09-07 Thread Stanimir Varbanov
This consists of video decoder implementation plus decoder controls. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/vidc/vdec.c | 1091 + drivers/media/platform/qcom/vidc/vdec.h | 29 + drivers/media/platform/qcom/vidc/vdec_ctrls.c | 200 +

[PATCH v2 2/8] media: vidc: adding core part and helper functions

2016-09-07 Thread Stanimir Varbanov
This adds core part of the vidc driver common helper functions used by encoder and decoder specific files. * core.c has implemented the platform dirver methods, file operations and v4l2 registration. * helpers.c has implemented common helper functions for: - buffer management - vb2_ops a

[PATCH v2 8/8] media: vidc: enable building of the video codec driver

2016-09-07 Thread Stanimir Varbanov
This adds changes in v4l2 platform directory to include the vidc driver and show it in kernel config. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/media/platform/Kconfig b

[PATCH 0/2] cpu hotplug, keep topology directory after soft remove event

2016-09-07 Thread Prarit Bhargava
The information in /sys/devices/system/cpu/cpuX/topology directory is useful for userspace monitoring applications and in-tree utilities like cpupower & turbostat. When down'ing a CPU the /sys/devices/system/cpu/cpuX/topology directory is removed during the CPU_DEAD hotplug callback in the kernel.

[PATCH 2/2] cpu hotplug, add CONFIG_PERMANENT_CPU_TOPOLOGY

2016-09-07 Thread Prarit Bhargava
The information in /sys/devices/system/cpu/cpuX/topology directory is useful for userspace monitoring applications and in-tree utilities like cpupower & turbostat. When down'ing a CPU the /sys/devices/system/cpu/cpuX/topology directory is removed during the CPU_DEAD hotplug callback in the kernel.

[PATCH v2 4/8] media: vidc: encoder: add video encoder files

2016-09-07 Thread Stanimir Varbanov
This adds encoder part of the driver plus encoder controls. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/vidc/venc.c | 1252 + drivers/media/platform/qcom/vidc/venc.h | 29 + drivers/media/platform/qcom/vidc/venc_ctrls.c | 396

[PATCH v2 6/8] media: vidc: add Venus HFI files

2016-09-07 Thread Stanimir Varbanov
Here is the implementation of Venus video accelerator low-level functionality. It contanins code which setup the registers and startup uthe processor, allocate and manipulates with the shared memory used for sending commands and receiving messages. Signed-off-by: Stanimir Varbanov --- drivers/me

[PATCH v2 5/8] media: vidc: add Host Firmware Interface (HFI)

2016-09-07 Thread Stanimir Varbanov
This is the implementation of HFI. It is loaded with the responsibility to comunicate with the firmware through an interface commands and messages. - hfi.c has interface functions used by the core, decoder and encoder parts to comunicate with the firmware. For example there are functions for sess

[PATCH v2 1/8] doc: DT: vidc: binding document for Qualcomm video driver

2016-09-07 Thread Stanimir Varbanov
Adds binding document for vidc video encoder/decoder driver Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/media/qcom,vidc.txt| 61 ++ 1 file changed, 61 insertions(+) create mode 100644

[PATCH v2 7/8] media: vidc: add Makefiles and Kconfig files

2016-09-07 Thread Stanimir Varbanov
Makefile and Kconfig files to build the video codec driver. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/Kconfig | 8 drivers/media/platform/qcom/Makefile | 6 ++ drivers/media/platform/qcom/vidc/Makefile | 15 +++ 3 files changed, 29 ins

[PATCH v2 0/8] Qualcomm video decoder/encoder driver

2016-09-07 Thread Stanimir Varbanov
Changes since v1: - s/ENOTSUPP/EINVAL in vidc_set_color_format() - use video_device_alloc - fill struct device pointer in vb2_queue_init instead of .setup_queue - fill device_caps in struct video_device instead of .vidioc_querycap - fill colorspace, ycbcr_enc, quantization and xfer_func o

[PATCH 1/2] drivers/base: Combine topology.c and cpu.c

2016-09-07 Thread Prarit Bhargava
The topology.c file contains sysfs files that describe a cpu's location and its siblings. There is no purpose that this file is separate from the core cpu code. This patch combines topology.c into cpu.c to make the next set of changes easier to understand. There are no functional changes with th

Re: [PATCH v2 0/8] Qualcomm video decoder/encoder driver

2016-09-07 Thread Hans Verkuil
One thing you need to add is a patch for the MAINTAINERS file. It needs an entry for this new driver. I think pretty much all new drivers I've reviewed recently forgot to update that file :-( Regards, Hans On 09/07/16 13:37, Stanimir Varbanov wrote: Changes since v1: - s/ENOTSUPP/EI

Re: x86-ksysfs: Use kmalloc_array() in create_setup_data_nodes()

2016-09-07 Thread SF Markus Elfring
>> Would the following script (for the semantic patch language) >> be useful enough for further development considerations? >> >> usage_of_kmalloc_array1-excerpt2.cocci: >> @replacement2@ >> expression count, pointer, target; >> @@ >> target = >> - kmalloc(sizeof(*pointer) * (count) >> +

[PATCH 1/2] arm64: defconfig: enable I2C and DW MMC controller on rockchip platform

2016-09-07 Thread Andy Yan
I2C and MMC are very basic modules for a board to bootup, as I2C always used to configure PMIC and MMC devices often used to store filesytem. So enable them here to let the rockchip based arm64 boards can bootup. Signed-off-by: Andy Yan --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2

[PATCH 2/2] arm64: defconfig: enable MFD RK808 and RK808 regulator

2016-09-07 Thread Andy Yan
Many rockchip based arm64 boards use RK808 as PMIC, so enabe it here let the board bootup normally. Signed-off-by: Andy Yan --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 427b6dc..4b61ed9 1

RE: [PATCH] qed: add missing header dependencies

2016-09-07 Thread Yuval Mintz
> We get 4 warnings when building kernel with W=1: > drivers/net/ethernet/qlogic/qed/qed_selftest.c:6:5: warning: no previous > prototype for 'qed_selftest_memory' [-Wmissing-prototypes] > drivers/net/ethernet/qlogic/qed/qed_selftest.c:19:5: warning: no previous > prototype for 'qed_selftest_interr

Re: [PATCH 3/4] dt-binding: remoteproc: venus rproc dt binding document

2016-09-07 Thread Stanimir Varbanov
Hi Bjorn, On 09/02/2016 11:12 PM, Bjorn Andersson wrote: > On Fri 02 Sep 04:52 PDT 2016, Marek Szyprowski wrote: > >> Hi, >> >> >> On 2016-09-01 16:58, Stanimir Varbanov wrote: >>> Hi, >>> >>> Cc: Marek >>> >> >> ... >> >> But I presume we have the implementation issue of dma_alloc_coherent()

RE: [PATCH] qed: mark symbols static where possible

2016-09-07 Thread Yuval Mintz
> We get a few warnings when building kernel with W=1: > drivers/net/ethernet/qlogic/qed/qed_l2.c:112:5: warning: no previous > prototype for 'qed_sp_vport_start' [-Wmissing-prototypes] > > > In fact, these functions are only used in the file in which they are > declared and don't need a decl

[UPDATE PATCH V10 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-07 Thread Tomasz Nowicki
IORT shows representation of IO topology for ARM based systems. It describes how various components are connected together on parent-child basis e.g. PCI RC -> SMMU -> ITS. Also see IORT spec. http://infocenter.arm.com/help/topic/com.arm.doc.den0049b/DEN0049B_IO_Remapping_Table.pdf Initial support

[UPDATE PATCH V10 2/8] ACPI: Add new IORT functions to support MSI domain handling

2016-09-07 Thread Tomasz Nowicki
For ITS, MSI functionality consists on building domain stack and during that process we need to reference to domain stack components e.g. before we create new DOMAIN_BUS_PCI_MSI domain we need to specify its DOMAIN_BUS_NEXUS parent domain. In order to manage that process properly, maintain list whi

Re: [PATCH] pcie: qcom: add support to msm8996 PCIE controller

2016-09-07 Thread Robin Murphy
On 07/09/16 12:06, Srinivas Kandagatla wrote: > This patch adds support to msm8996/apq8096 pcie, MSM8996 supports > Gen 1/2, One lane, 3 pcie root-complex with support to MSI and > legacy interrupts and it conforms to PCI Express Base 2.1 specification. > > This patch adds post_init callback to qc

Re: [PATCH v2] gpio: pca953x: fix a lockdep warning

2016-09-07 Thread Bartosz Golaszewski
2016-08-29 10:33 GMT+02:00 Bartosz Golaszewski : > If an I2C GPIO multiplexer is driven by a GPIO provided by an expander > when there's a second expander using the same device driver on one of > the I2C bus segments, lockdep prints a deadlock warning when trying to > set the direction or the value

[ANNOUNCE] util-linux stable v2.28.2

2016-09-07 Thread Karel Zak
The util-linux stable release v2.28.2 is available at http://ftp.kernel.org/pub/linux/utils/util-linux/v2.28/ Feedback and bug reports, as always, are welcomed. Karel util-linux 2.28.2 Release Notes === blkdev: - guard against missing DIOCGDINFO on FreeBS

Re: [PATCH] rtc: Add some dummy static inline functions

2016-09-07 Thread Alexandre Belloni
On 07/09/2016 at 15:17:26 +0800, Baolin Wang wrote : > Add some dummy static inline functions in case CONFIG_RTC_LIB is not defined. > The question your commit log should answer is why? > Signed-off-by: Baolin Wang > Fixes: a0a6e06d545a ("time: alarmtimer: Add tracepoints for alarmtimers") > --

Oops.kernel.org usage

2016-09-07 Thread Bálint Réczey
Dear Linux Developers, Tools reporting to oops.kernel.org were not functional for some time [1] but they are working again [2]. I'm wondering if developers are looking at the collected data. It would be nice to know that submitted reports are useful. Cheers, Balint [1] https://lkml.org/lkml/201

Re: [PATCH 1/1] intel-mid: Fix sfi get_platform_data() return value issues

2016-09-07 Thread Andy Shevchenko
On Tue, 2016-09-06 at 18:04 -0700, Kuppuswamy Sathyanarayanan wrote: > According to the intel_mid_sfi_get_pdata() function definition, > get_platform_data() function should returns NULL on no platform > data scenario and return ERR_PTR on platform data initialization > failures. But current device

Re: [PATCH] qed: add missing header dependencies

2016-09-07 Thread Arnd Bergmann
On Wednesday, September 7, 2016 11:37:07 AM CEST Yuval Mintz wrote: > > We get 4 warnings when building kernel with W=1: > > drivers/net/ethernet/qlogic/qed/qed_selftest.c:6:5: warning: no previous > > prototype for 'qed_selftest_memory' [-Wmissing-prototypes] > > drivers/net/ethernet/qlogic/qed/qe

Re: [PATCH v2 4/5] gpio: pca953x: remove an unused variable

2016-09-07 Thread Andy Shevchenko
On Wed, 2016-09-07 at 13:40 +0200, Bartosz Golaszewski wrote: > 2016-09-07 13:36 GMT+02:00 Andy Shevchenko tel.com>: > > > > On Wed, 2016-09-07 at 11:24 +0200, Bartosz Golaszewski wrote: > > > > > > The chip_type variable in struct pca953x_chip is no longer > > > required. > > > > > > Remove it

Re: Question on smp_mb__before_spinlock

2016-09-07 Thread Nicholas Piggin
On Mon, 5 Sep 2016 11:37:53 +0200 Peter Zijlstra wrote: > Hi all, > > So recently I've had two separate issues that touched upon > smp_mb__before_spinlock(). > > > Since its inception, our understanding of ACQUIRE, esp. as applied to > spinlocks, has changed somewhat. Also, I wonder if, with a

Re: mm: use-after-free in collapse_huge_page

2016-09-07 Thread Kirill A. Shutemov
On Mon, Aug 29, 2016 at 05:35:48PM +0200, Andrea Arcangeli wrote: > Hello Kirill, > > On Mon, Aug 29, 2016 at 03:42:33PM +0300, Kirill A. Shutemov wrote: > > @@ -898,13 +899,13 @@ static bool __collapse_huge_page_swapin(struct > > mm_struct *mm, > > /* do_swap_page returns VM_FAULT_RE

Re: sparc: bpf_jit: Rename jump labels in bpf_jit_compile()

2016-09-07 Thread Jean Delvare
Hi Peter, On Tue, 6 Sep 2016 16:47:56 +0200, Peter Zijlstra wrote: > On Tue, Sep 06, 2016 at 04:34:13PM +0200, Jean Delvare wrote: > > > [diff "default"] > > > xfuncname = "^[[:alpha:]$_].*[^:]$" > > > > OK, I see. As mentioned somewhere else, it fails for labels which have > > comments.

Re: [PATCH V3] mm: Add sysfs interface to dump each node's zonelist information

2016-09-07 Thread Anshuman Khandual
On 09/06/2016 02:35 PM, kbuild test robot wrote: > Hi Anshuman, > > [auto build test ERROR on driver-core/driver-core-testing] > [also build test ERROR on v4.8-rc5 next-20160906] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > [Suggest to u

RE: [patch] leds: add driver for Mellanox systems leds

2016-09-07 Thread Vadim Pasternak
> -Original Message- > From: Dr. David Alan Gilbert [mailto:d...@treblig.org] > Sent: Wednesday, September 07, 2016 3:11 PM > To: Vadim Pasternak > Cc: rpur...@rpsys.net; j.anaszew...@samsung.com; linux- > l...@vger.kernel.org; linux-kernel@vger.kernel.org; j...@resnulli.us; Michael > Sh

[PATCH] Set git diff driver for C source code files

2016-09-07 Thread Jean Delvare
Git can be told to apply language-specific rules when generating diffs. Enable this for C source code files (*.c and *.h) so that function names are printed right. Specifically, doing so prevents "git diff" from mistakenly considering unindented goto labels as function names. Signed-off-by: Jean D

Re: [PATCH] sched/core: simpler function for sched_exec migration

2016-09-07 Thread Oleg Nesterov
On 09/07, chengchao wrote: > > Oleg, thank you very much. > > on 09/06/2016 11:22 PM, Oleg Nesterov wrote: > > On 09/06, chengchao wrote: > >> > >> the key point is for CONFIG_PREEMPT_NONE=y, > >> ... > >> it is too much overhead for one task(fork()+exec()), isn't it? > > > > Yes, yes, I see, this

[PATCH v3 1/1] x86/platform/intel-mid: Implement power off sequence

2016-09-07 Thread Andy Shevchenko
Tell SCU that we are about powering off the device. Signed-off-by: Andy Shevchenko --- v3: - fix type of variable (lkp) v2: - change abbrevation from PMU to PWRMU arch/x86/include/asm/intel-mid.h| 2 ++ arch/x86/include/asm/intel_scu_ipc.h| 2 ++ arch/x86/platform/intel-mid/intel-m

Re: mm: use-after-free in collapse_huge_page

2016-09-07 Thread Andrea Arcangeli
On Wed, Sep 07, 2016 at 03:25:59PM +0300, Kirill A. Shutemov wrote: > Here's updated version. > > From 14d748bd8a7eb003efc10b1e5d5b8a644e7181b1 Mon Sep 17 00:00:00 2001 > From: "Kirill A. Shutemov" > Date: Mon, 29 Aug 2016 15:32:50 +0300 > Subject: [PATCH] khugepaged: fix use-after-free in collap

Re: [PATCH] mm, thp: fix leaking mapped pte in __collapse_huge_page_swapin()

2016-09-07 Thread Andrea Arcangeli
On Fri, Sep 02, 2016 at 03:44:36PM +0300, Ebru Akagunduz wrote: > Currently, khugepaged does not let swapin, if there is no > enough young pages in a THP. The problem is when a THP does > not have enough young page, khugepaged leaks mapped ptes. > > This patch prohibits leaking mapped ptes. > > S

[PATCH] Re: [PATCH] jbd2: add jbd2_journal_init() helper

2016-09-07 Thread Geliang Tang
On Tue, Sep 06, 2016 at 05:15:54PM +0200, Jan Kara wrote: > On Sat 03-09-16 17:33:39, Eric Ren wrote: > > Hi Geliang, > > > > On 08/31/2016 08:23 PM, Geliang Tang wrote: > > >There are some repetitive code in jbd2_journal_init_dev() and > > >jbd2_journal_init_inode(). So this patch extracts the co

[PATCH] jbd2: move more common code into journal_init_common()

2016-09-07 Thread Geliang Tang
There are some repetitive code in jbd2_journal_init_dev() and jbd2_journal_init_inode(). So this patch moves the common code into journal_init_common() helper to simplify the code. And fix the coding style warnings reported by checkpatch.pl by the way. Signed-off-by: Geliang Tang --- fs/jbd2/jou

Re: [patch] leds: add driver for Mellanox systems leds

2016-09-07 Thread Dr. David Alan Gilbert
* vad...@mellanox.com (vad...@mellanox.com) wrote: > From: Vadim Pasternak > > This makes it possible to create a set of LEDs for Mellanox systems: > "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", > "msb7800", "msn2740", "msn2100". > > Driver obtains led devices according to s

RE: [PATCH] qed: add missing header dependencies

2016-09-07 Thread Yuval Mintz
> > While I obviously have no strong objection for including > > qed_selftest.h from qed_selftest.c, I'm not sure I understand which C > > standard dictates this requirement. > > Why should a function definition [not call] be preceded by a prototype? > > - When a function is defined in one file an

Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check

2016-09-07 Thread Lee Jones
On Wed, 07 Sep 2016, Russell King - ARM Linux wrote: > On Wed, Sep 07, 2016 at 11:27:37AM +0100, Lee Jones wrote: > > On Tue, 06 Sep 2016, Russell King - ARM Linux wrote: > > > > > On Tue, Sep 06, 2016 at 04:45:30PM +0100, Lee Jones wrote: > > > > On Tue, 06 Sep 2016, Russell King - ARM Linux wro

Re: [PATCH] rtc: Add some dummy static inline functions

2016-09-07 Thread Baolin Wang
Hi, On 7 September 2016 at 20:12, Alexandre Belloni wrote: > On 07/09/2016 at 15:17:26 +0800, Baolin Wang wrote : >> Add some dummy static inline functions in case CONFIG_RTC_LIB is not defined. >> > > The question your commit log should answer is why? I will add the commit log to explain why li

Re: [patch] leds: add driver for Mellanox systems leds

2016-09-07 Thread Jacek Anaszewski
Hi Vadim, On 09/07/2016 03:35 PM, vad...@mellanox.com wrote: From: Vadim Pasternak This makes it possible to create a set of LEDs for Mellanox systems: "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", "msn2740", "msn2100". Driver obtains led devices according to sy

Re: [PATCH] crypto: qce: Initialize core src clock @100Mhz

2016-09-07 Thread Herbert Xu
On Sat, Sep 03, 2016 at 07:45:35PM +0300, Iaroslav Gridin wrote: > > @@ -247,6 +261,8 @@ err_clks_iface: > clk_disable_unprepare(qce->iface); > err_clks_core: > clk_disable_unprepare(qce->core); > +err_clks_core_src: > + clk_disable_unprepare(qce->core_src); What about qce_crypto_

Re: [PATCH] pcie: qcom: add support to msm8996 PCIE controller

2016-09-07 Thread Srinivas Kandagatla
Thanks for the comments, On 07/09/16 12:57, Robin Murphy wrote: On 07/09/16 12:06, Srinivas Kandagatla wrote: This patch adds support to msm8996/apq8096 pcie, MSM8996 supports Gen 1/2, One lane, 3 pcie root-complex with support to MSI and legacy interrupts and it conforms to PCI Express Base 2.

[patch 2/2] leds: add driver for Mellanox systems leds

2016-09-07 Thread vadimp
From: Vadim Pasternak Fix in comments 3KHz and 6KHz to 3Hz and 6Hz respectively. Signed-off-by: Vadim Pasternak --- drivers/leds/leds-mlxcpld.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/leds/leds-mlxcpld.c b/drivers/leds/leds-mlxcpld.c index 0ec2375

Re: [PATCH linux v3 3/9] xen: introduce xen_vcpu_id mapping

2016-09-07 Thread Julien Grall
Hi Vitaly, On 07/09/2016 12:23, Vitaly Kuznetsov wrote: BTW, were you able to try the patch I suggested? In my opinion it would be preferable to fix the immediate SMP issue now and play with MPIDR info later. Not yet sorry. I will see if I can try to today or tomorrow. Cheers, -- Julien Gral

Re: [PATCH] qed: add missing header dependencies

2016-09-07 Thread Arnd Bergmann
On Wednesday, September 7, 2016 12:31:03 PM CEST Yuval Mintz wrote: > > > While I obviously have no strong objection for including > > > qed_selftest.h from qed_selftest.c, I'm not sure I understand which C > > > standard dictates this requirement. > > > Why should a function definition [not call]

Re: [PATCH v5 1/3] mm, proc: Implement /proc//totmaps

2016-09-07 Thread Oleg Nesterov
On 09/05, robert.f...@collabora.com wrote: > > @@ -2854,6 +2854,7 @@ static const struct pid_entry tgid_base_stuff[] = { > REG("clear_refs", S_IWUSR, proc_clear_refs_operations), > REG("smaps", S_IRUGO, proc_pid_smaps_operations), > REG("pagemap",S_IRUSR, proc_pagemap_ope

Re: [patch] leds: add driver for Mellanox systems leds

2016-09-07 Thread Jiri Pirko
Wed, Sep 07, 2016 at 02:49:00PM CEST, j.anaszew...@samsung.com wrote: >Hi Vadim, > >On 09/07/2016 03:35 PM, vad...@mellanox.com wrote: >> From: Vadim Pasternak >> >> This makes it possible to create a set of LEDs for Mellanox systems: >> "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn

Re: [UPDATE PATCH V10 2/8] ACPI: Add new IORT functions to support MSI domain handling

2016-09-07 Thread Tomasz Nowicki
On 07.09.2016 13:58, Tomasz Nowicki wrote: For ITS, MSI functionality consists on building domain stack and during that process we need to reference to domain stack components e.g. before we create new DOMAIN_BUS_PCI_MSI domain we need to specify its DOMAIN_BUS_NEXUS parent domain. In order to ma

pyc files in source dir with O=

2016-09-07 Thread Geert Uytterhoeven
h v4.8-rc5. With next-20160907, two more files appear: Documentation/sphinx/cdomain.pyc Documentation/sphinx/load_config.pyc Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations

Re: [PATCH] crypto: qce: Initialize core src clock @100Mhz

2016-09-07 Thread Stanimir Varbanov
Hi Iaroslav, On 09/03/2016 07:45 PM, Iaroslav Gridin wrote: > Without that, QCE performance is about 2x less. On which platform? The clock rates are per SoC. > > Signed-off-by: Iaroslav Gridin > --- > drivers/crypto/qce/core.c | 18 +- > drivers/crypto/qce/core.h | 2 +- > 2

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-09-07 Thread Roger Quadros
On 07/09/16 11:29, Arnd Bergmann wrote: > On Wednesday, September 7, 2016 10:17:31 AM CEST Roger Quadros wrote: >>> >>> Speaking of that flag, I suppose we need the same logic to know where >>> to look for USB devices attached to a dwc3 host when we need to describe >>> them in DT. By default we lo

Re: [PATCH] docs: make kernel-doc handle varargs properly

2016-09-07 Thread Jani Nikula
On Wed, 07 Sep 2016, Markus Heiser wrote: > Am 06.09.2016 um 15:36 schrieb Jonathan Corbet : > >> On Sat, 27 Aug 2016 11:43:18 +0300 >> Jani Nikula wrote: >> >>> On Fri, 26 Aug 2016, Jonathan Corbet wrote: As far as I can tell, the handling of "..." arguments has never worked right, s

Re: [PATCH] ARM: dts: msm8974: Add definitions for QCE & cryptobam

2016-09-07 Thread Stanimir Varbanov
Hi Iaroslav, On 08/30/2016 06:37 PM, Iaroslav Gridin wrote: > From: Voker57 > > Add device tree definitions for Qualcomm Cryptography engine and its BAM > Signed-off-by: Iaroslav Gridin > --- > arch/arm/boot/dts/qcom-msm8974.dtsi | 42 > + > 1 file changed,

Re: [patch 2/2] leds: add driver for Mellanox systems leds

2016-09-07 Thread Jacek Anaszewski
Hi Vadim, Please use git format-patch -n, where n is the number of patches to be produced starting from your current git HEAD. It will produce patches tagged [PATCH 1/2], [PATCH 2/2], or starting from [PATCH 0/2] when added --cover-letter switch. Now it looks as if this patch was a part of the

Re: [PATCH] crypto: caam: add missing header dependencies

2016-09-07 Thread Herbert Xu
On Sat, Sep 03, 2016 at 11:29:30AM +0800, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/crypto/caam/ctrl.c:398:5: warning: no previous prototype for > 'caam_get_era' [-Wmissing-prototypes] > > In fact, this function is declared in drivers/crypto/caam/ctrl.h > and b

Re: ath9k: bring back direction setting in ath9k_{start_stop}

2016-09-07 Thread Kalle Valo
Giedrius Statkevi?ius wrote: > A regression was introduced in commit id 79d4db1214a ("ath9k: cleanup > led_pin initial") that broken the WLAN status led on my laptop with > AR9287 after suspending and resuming. > > Steps to reproduce: > * Suspend (laptop) > * Resume (laptop) > * Observe that the

[PATCH v6 2/3] clk: qcom: Add regmap mux-div clocks support

2016-09-07 Thread Georgi Djakov
Add support for hardware that can switch both parent clocks and divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Makefile

[PATCH v6 0/3] Add support for Qualcomm A53 CPU clock

2016-09-07 Thread Georgi Djakov
This patchset adds support for the A53 CPU clock and allows scaling of the CPU frequency on msm8916 based platforms. Changes since v5 (https://lkml.org/lkml/2016/2/1/407) * Rebase to clk-next and update according to the recent API changes. Changes since v4 (https://lkml.org/lkml/2015/12/14/367)

[PATCH v6 1/3] clk: qcom: Add A53 PLL support

2016-09-07 Thread Georgi Djakov
Add support for the PLL, which generates the higher range of CPU frequencies on MSM8916 platforms. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,a53-pll.txt | 18 + drivers/clk/qcom/Kconfig | 9 +++ drivers/clk/qcom/Makefile

[PATCH v6 3/3] clk: qcom: Add A53 clock driver

2016-09-07 Thread Georgi Djakov
Add a driver for the A53 Clock Controller. It is a hardware block that implements a combined mux and half integer divider functionality. It can choose between a fixed-rate clock or the dedicated A53 PLL. The source and the divider can be set both at the same time. This is required for enabling CPU

[PATCH] module/taint: Automatically increase the buffer size for new taint flags

2016-09-07 Thread Petr Mladek
The commit 66cc69e34e86a231 ("Fix: module signature vs tracepoints: add new TAINT_UNSIGNED_MODULE") updated module_taint_flags() to potentially print one more character. But it did not increase the size of the corresponding buffers in m_show() and print_modules(). We have recently done the same mi

Re: ath9k: bring back direction setting in ath9k_{start_stop}

2016-09-07 Thread Kalle Valo
Kalle Valo writes: > Giedrius Statkevi?ius wrote: >> A regression was introduced in commit id 79d4db1214a ("ath9k: cleanup >> led_pin initial") that broken the WLAN status led on my laptop with >> AR9287 after suspending and resuming. >> >> Steps to reproduce: >> * Suspend (laptop) >> * Resume

[PATCH V2 3/4] ARM64 LPC: support serial based on low-pin-count

2016-09-07 Thread Zhichang Yuan
From: "zhichang.yuan" On Hip06 platform, a 16550 compatible UART is connected to low-pin-count and controlled through the LPC I/O cycles. This patch drives the UART port with the specific serial in/out function pair based on the indirect-IO mechanism introduced by Hip06 LPC driver. Signed-off-by

Re: [PATCH] jbd2: move more common code into journal_init_common()

2016-09-07 Thread Jan Kara
On Wed 07-09-16 20:41:13, Geliang Tang wrote: > There are some repetitive code in jbd2_journal_init_dev() and > jbd2_journal_init_inode(). So this patch moves the common code into > journal_init_common() helper to simplify the code. And fix the coding > style warnings reported by checkpatch.pl by t

[PATCH V2 1/4] ARM64 LPC: Indirect ISA port IO introduced

2016-09-07 Thread Zhichang Yuan
From: "zhichang.yuan" For arm64, there is no I/O space as other architectural platforms, such as X86. Most I/O accesses are achieved based on MMIO. But for some arm64 SoCs, such as Hip06, when accessing some legacy ISA devices connected to LPC, those known port addresses are explicitly used to co

[PATCH V2 4/4] ARM64 LPC: support earlycon for UART connected to LPC

2016-09-07 Thread Zhichang Yuan
From: "zhichang.yuan" This patch support the earlycon for UART connected to LPC on Hip06. This patch is depended on the LPC driver. Signed-off-by: zhichang.yuan --- drivers/bus/hisi_lpc.c | 129 + 1 file changed, 129 insertions(+) diff --git a/d

Re: [PATCH] power: supply: sbs-battery: simplify DT parsing

2016-09-07 Thread Sebastian Reichel
Hi, On Wed, Sep 07, 2016 at 09:58:10AM +0200, Arnd Bergmann wrote: > On Wednesday, September 7, 2016 1:55:23 AM CEST Sebastian Reichel wrote: > > > > Patch looks fine to me. Actually I already asked Phil to > > implement your change [0]. I just queued it to power-supply's > > for-next branch. > >

RE: [PATCH 0/4] drm/fsl-dcu: add overlay and cursor plane support

2016-09-07 Thread Meng Yi
Hi Stefan, I had tested the patches on LS1021A-TWR board using drmlib. Like set three overlays: root@ls1021atwr:~# ./modetest -P 39:900x100+10+10@RG24 -P 39:200x200+300+0@RG24 -P 39:200x200+400+300@RG24 How did you test the overlays and cursor layer, I mean I see you using x-window like thing

Re: [PATCH] char: hw_random: bcm2835: handle of_iomap failures in bcm2835 driver

2016-09-07 Thread Herbert Xu
On Mon, Aug 29, 2016 at 10:40:16PM +0530, Arvind Yadav wrote: > Check return value of of_iomap and handle errors correctly. > > Signed-off-by: Arvind Yadav Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/

[PATCH V2 0/4] ARM64 LPC: legacy ISA I/O support

2016-09-07 Thread Zhichang Yuan
From: "zhichang.yuan" This patch supports the 16550 compatible UART attached to the Low-Pin-Count interface mplemented on Hisilicon Hip06 SoC. The periperals attached this LPC include UART, BT, KCS, and so on. --- | LPC host|

[PATCH V2 2/4] ARM64 LPC: LPC driver implementation on Hip06

2016-09-07 Thread Zhichang Yuan
From: "zhichang.yuan" On Hip06, the accesses to LPC peripherals work in an indirect way. A corresponding LPC driver need to configure some registers in LPC master direclty, then the real accesses on LPC slave devices were finished by the master controller. This patch implement the relevant driver

Re: [PATCH v4 0/2] crypto: engine: permit to enqueue ashash_request

2016-09-07 Thread Herbert Xu
On Wed, Aug 31, 2016 at 02:02:56PM +0200, Corentin Labbe wrote: > Hello > > I wanted to use the crypto engine for my Allwinner crypto driver but something > prevented me to use it: it cannot enqueue hash requests. > This patch convert crypto engine to permit enqueuing of ahash_requests. > It also

Re: [PATCH] crypto: ccp - add missing release in ccp_dmaengine_register

2016-09-07 Thread Herbert Xu
On Fri, Sep 02, 2016 at 11:48:53AM +0200, Quentin Lambert wrote: > ccp_dmaengine_register used to return with an error code before > releasing all resource. This patch adds a jump to the appropriate label > ensuring that the resources are properly released before returning. > > This issue was foun

<    1   2   3   4   5   6   7   8   9   >