Re: [PATCH v3] HID: Support for CMedia CM6533 HID audio jack controls

2016-03-02 Thread Jiri Kosina
On Fri, 22 Jan 2016, Ben Chen wrote: > Thanks for your time. > > The C-Media CM6533 is a USB audio chip featuring it's jack detection > capability.The device originates an interrupt transfer via HID interface > each time when a jack event occurs. > The purpose of this patch is to handle hid raw

Re: [PATCH for-4,5] mips/kvm: fix ioctl error handling

2016-03-02 Thread Paolo Bonzini
On 28/02/2016 16:35, Michael S. Tsirkin wrote: > Calling return copy_to_user(...) or return copy_from_user in an ioctl > will not do the right thing if there's a pagefault: > copy_to_user/copy_from_user return the number of bytes not copied in > this case. > > Fix up kvm on mips to do > re

Re: [PATCH] clk: qcom: msm8960: Fix ce3_src register offset

2016-03-02 Thread Srinivas Kandagatla
On 02/03/16 01:30, Stephen Boyd wrote: The offset seems to have been copied from the sata clk. Fix it so that enabling the crypto engine source clk works. Cc: Srinivas Kandagatla Tested-by: Bjorn Andersson Fixes: 5f775498bdc4 ("clk: qcom: Fully support apq8064 global clock control") Signed-o

Re: [PATCH] phy: rcar-gen3-usb2, rcar-gen2: Use ARCH_RENESAS

2016-03-02 Thread Geert Uytterhoeven
On Wed, Mar 2, 2016 at 3:25 AM, Simon Horman wrote: > Make use of ARCH_RENESAS in place of ARCH_SHMOBILE. > > This is part of an ongoing process to migrate from ARCH_SHMOBILE to > ARCH_RENESAS the motivation for which being that RENESAS seems to be a more > appropriate name than SHMOBILE for the m

Re: [PATCH 2/2] phy: rcar-gen3-usb2: add fallback binding

2016-03-02 Thread Geert Uytterhoeven
On Wed, Mar 2, 2016 at 3:37 AM, Simon Horman wrote: > In the case of Renesas R-Car hardware we know that there are generations of > SoCs, e.g. Gen 2 and Gen 3. But beyond that its not clear what the > relationship between IP blocks might be. For example, I believe that > r8a7790 is older than r8a7

Re: [PATCH 33/41] clk: pwm: Remove CLK_IS_ROOT

2016-03-02 Thread Philipp Zabel
Am Dienstag, den 01.03.2016, 11:00 -0800 schrieb Stephen Boyd: > This flag is a no-op now. Remove usage of the flag. > > Cc: Philipp Zabel > Signed-off-by: Stephen Boyd > --- > drivers/clk/clk-pwm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/clk-pwm.c

Re: [PATCH 1/2] phy: rcar-gen2: add fallback binding

2016-03-02 Thread Geert Uytterhoeven
On Wed, Mar 2, 2016 at 3:37 AM, Simon Horman wrote: > In the case of Renesas R-Car hardware we know that there are generations of > SoCs, e.g. Gen 2 and Gen 3. But beyond that its not clear what the > relationship between IP blocks might be. For example, I believe that > r8a7790 is older than r8a7

Re: [PATCH v5 5/5] staging/android: add flags member to sync ioctl structs

2016-03-02 Thread Emil Velikov
On 1 March 2016 at 13:13, Gustavo Padovan wrote: > From: Gustavo Padovan > > Play safe and add flags member to all structs. So we don't need to > break API or create new IOCTL in the future if new features that requires > flags arises. > > v2: check if flags are valid (zero, in this case) > > v3:

Re: [PATCH 1/6] rtc: generic: allow building on all architectures

2016-03-02 Thread Geert Uytterhoeven
On Wed, Mar 2, 2016 at 10:28 AM, Andreas Schwab wrote: > Geert Uytterhoeven writes: > >>> +#else >>> +#define generic_rtc_ops *(struct rtc_class_ops*)NULL >>> +#endif >>> >>> static int __init generic_rtc_probe(struct platform_device *dev) >>> { >>> struct rtc_device *rtc; >>> + c

Re: [abelloni:rtc-testing 55/55] drivers/rtc/rtc-pcf85063.c:72:19: warning: unused variable 'pcf85063'

2016-03-02 Thread Juergen Borleis
Hi Alexandre, On Tuesday 01 March 2016 23:17:45 kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git > rtc-testing head: 58992ebde059d7faeab4c18bc17713c3b4c31208 > commit: 58992ebde059d7faeab4c18bc17713c3b4c31208 [55/55] rtc: pcf85063: > remove us

[PATCH] net: mellanox: add DEVLINK dependencies

2016-03-02 Thread Arnd Bergmann
The new NET_DEVLINK infrastructure can be a loadable module, but the drivers using it might be built-in, which causes link errors like: drivers/net/built-in.o: In function `mlx4_load_one': :(.text+0x2fbfda): undefined reference to `devlink_port_register' :(.text+0x2fc084): undefined reference to `

Re: [RFC v5 00/17] KVM PCIe/MSI passthrough on ARM/ARM64

2016-03-02 Thread Jaggi, Manish
>>From: Eric Auger >>Sent: Tuesday, March 1, 2016 11:57 PM >>To: eric.au...@st.com; eric.au...@linaro.org; robin.mur...@arm.com; >>alex.william...@redhat.com; will.dea...@arm.com; j...@8bytes.org; >>t...@linutronix.de; >>ja...@lakedaemon.net; marc.zyng...@arm.com; >>christoffer.d...@linaro.or

Re: [PATCH v5.1 0/2] create BLKZEROOUT ioctl that invalidates page cache

2016-03-02 Thread Christoph Hellwig
On Wed, Mar 02, 2016 at 10:15:02AM +0100, Arnd Bergmann wrote: > I'm missing the background on this, just saw the patch fly by, > so sorry if this has been asked before: > > Why do you want to invalidate the cache? Is this to save RAM > or is something else going to write here and you have to inva

[PATCH] usb: serial: ti_usb_3410_5052: add MOXA UPORT 11x0 support

2016-03-02 Thread Mathieu OTHACEHE
Add support for : - UPort 1110 : 1 port RS-232 USB to Serial Hub. - UPort 1130 : 1 port RS-422/485 USB to Serial Hub. - UPort 1130I : 1 port RS-422/485 USB to Serial Hub with Isolation. - UPort 1150 : 1 port RS-232/422/485 USB to Serial Hub. - UPort 1150I : 1 port RS-232/422/485 USB to Serial H

Re: [PATCH 1/3] perf, tools: Add support for skipping itrace instructions

2016-03-02 Thread Adrian Hunter
On 01/03/16 01:05, Andi Kleen wrote: > From: Andi Kleen > > When using perf script to look at PT traces it is often > useful to ignore the initialization code at the beginning. > > On larger traces which may have many millions of instructions > in initialization code doing that in a pipeline can

Re: [PATCH v5 3/4] leds: core: add documentation for color extension

2016-03-02 Thread Heiner Kallweit
On Wed, Mar 2, 2016 at 9:38 AM, Jacek Anaszewski wrote: > On 03/01/2016 10:41 PM, Greg KH wrote: >> >> On Tue, Mar 01, 2016 at 10:29:31PM +0100, Heiner Kallweit wrote: >>> >>> Document the color extension in Documentation/leds/leds-class.txt >>> >>> Signed-off-by: Heiner Kallweit >>> --- >>> v2:

[PATCH 1/2] char: PC rtc: replace blacklist with whitelist

2016-03-02 Thread Arnd Bergmann
Every new architecture has to add itself to the growing list of those that do not support the legacy PC RTC driver. This replaces the long list of architectures that don't support it with a shorter list of those that do. The list is taken from those architectures that have a non-empty asm/mc14681

[PATCH 2/2] char: genrtc: replace blacklist with whitelist

2016-03-02 Thread Arnd Bergmann
Every new architecture has to add itself to the growing list of those that do not support the old "generic" RTC driver. This replaces the long list of architectures that don't support it with a shorter list of those that do. The list is taken from those architectures that have a non-empty asm/rtc

Re: [PATCH 0/3] OOM detection rework v4

2016-03-02 Thread Michal Hocko
On Wed 02-03-16 11:19:54, Joonsoo Kim wrote: > On Mon, Feb 29, 2016 at 10:02:13PM +0100, Michal Hocko wrote: [...] > > > + /* > > > + * OK, so the watermak check has failed. Make sure we do all the > > > + * retries for !costly high order requests and hope that multiple > > > + * runs of compact

Re: [RESEND PATCH v3 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-02 Thread kbuild test robot
Hi Sameer, [auto build test WARNING on v4.5-rc6] [also build test WARNING on next-20160302] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Tomeu-Vizoso/EC-based-USB-Power-Delivery-support-for

Re: [PATCH 3/3] serial: 8250: omap: restore registers on shutdown

2016-03-02 Thread John Ogness
Hi Sebastian, Peter, On 2015-08-03, Sebastian Andrzej Siewior wrote: > * Peter Hurley | 2015-07-30 20:51:10 [-0400]: >> I was never really a fan of the deferred set_termios(); >> I think it's more appropriate to wait for tx dma to >> complete in omap_8250_set_termios(). > > So you want something

[PATCH] hw_breakpoint: Fix Oops at destroying hw_breakpoint event on powerpc

2016-03-02 Thread Ravi Bangoria
At a time of destroying hw_breakpoint event, kernel ends up with Oops. Here is the sample output from 4.5.0-rc6 kernel. [ 450.708568] Unable to handle kernel paging request for data at address 0x0c07 [ 450.708684] Faulting instruction address: 0xc00291d0 [ 450.708750] Oops: K

[patch] thermal: ti-soc-thermal: clean up the error handling a bit

2016-03-02 Thread Dan Carpenter
We don't need to initialize "ret". We can move the IS_ERR() checks into the if condition instead of doing an assignment first. Also there is a check for "ret" when we know it is zero so we can remove that. Signed-off-by: Dan Carpenter diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b

[PATCH] iommu/vt-d: Assign old irt entries a common valid vector in kdump kernel

2016-03-02 Thread Xunlei Pang
Currently, the kernel copies the old irt entries during iommu initialization for kdump, so old vectors in the first kernel are used but having no related kernel irq handlers set explicitly, this can lead to some problems after lapics are enabled: - When some in-flight dma finished and triggered an

Re: [PATCH 1/2] char: PC rtc: replace blacklist with whitelist

2016-03-02 Thread Alexandre Belloni
On 02/03/2016 at 10:48:50 +0100, Arnd Bergmann wrote : > Every new architecture has to add itself to the growing list of those > that do not support the legacy PC RTC driver. > > This replaces the long list of architectures that don't support it > with a shorter list of those that do. > > The lis

Re: [PATCH 2/2] char: genrtc: replace blacklist with whitelist

2016-03-02 Thread Alexandre Belloni
On 02/03/2016 at 10:48:51 +0100, Arnd Bergmann wrote : > Every new architecture has to add itself to the growing list of those > that do not support the old "generic" RTC driver. > > This replaces the long list of architectures that don't support it > with a shorter list of those that do. > > The

Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking up kcompactd

2016-03-02 Thread Vlastimil Babka
On 03/02/2016 07:33 AM, Joonsoo Kim wrote: 4.5-rc1 4.5-rc1 3-test 4-test Minor Faults106940795 106582816 Major Faults 829 813 Swap Ins

(Re: MUTUAL BENEFIT!!!)

2016-03-02 Thread Mr. Albert Silva Neto
From: Integrated Crystal Investment Company 30th Floor Millbank Tower 21-24 Millbank London SW1P 4QP Dear Sir, I got your contact from my Google research. I trust my instinct and my instinct has never failed me in the past. I am convinced that you are the person who can assist me in this pend

[patch] rtc: ds1685: passing bogus values to irq_restore

2016-03-02 Thread Dan Carpenter
We call spin_lock_irqrestore with "flags" set to zero instead of to the value from spin_lock_irqsave(). Fixes: aaaf5fbf56f1 ('rtc: add driver for DS1685 family of real time clocks') Signed-off-by: Dan Carpenter diff --git a/drivers/rtc/rtc-ds1685.c b/drivers/rtc/rtc-ds1685.c index 535050f..08e0f

[patch] tcm_loop: use after free on error

2016-03-02 Thread Dan Carpenter
We dereference "tl_nexus" to get the error code. Fixes: 1b418a8fcbc0 ('target: Convert demo-mode only drivers to target_alloc_session') Signed-off-by: Dan Carpenter diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 0216c75..e0ffb03 100644 --- a/drivers/

[patch] sbp-target: checking for NULL instead of IS_ERR

2016-03-02 Thread Dan Carpenter
We changed this from kzalloc to sbp_mgt_get_req() so we need to change from checking for NULL to check for error pointers. Fixes: c064b2a78989 ('sbp-target: Conversion to percpu_ida tag pre-allocation') Signed-off-by: Dan Carpenter diff --git a/drivers/target/sbp/sbp_target.c b/drivers/target/sb

[patch -target tree] usb: gadget: f_tcm: use after free

2016-03-02 Thread Dan Carpenter
We need to move the kfree() down a line so we don't dereference a freed variable. Fixes: 1b418a8fcbc0 ('target: Convert demo-mode only drivers to target_alloc_session') Signed-off-by: Dan Carpenter diff --git a/drivers/usb/gadget/function/f_tcm.c b/drivers/usb/gadget/function/f_tcm.c index 727

[patch 1/2] iommu/mediatek: signedness bug in probe function

2016-03-02 Thread Dan Carpenter
"larb_nr" needs to be signed for the error handling to work. "i" can be int as well. Fixes: 0df4fabe208d ('iommu/mediatek: Add mt8173 IOMMU driver') Signed-off-by: Dan Carpenter diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index 721ffdb..1a4022c 100644 --- a/drivers/iommu/

[patch] iommu/exynos: checking for IS_ERR() instead of NULL

2016-03-02 Thread Dan Carpenter
of_platform_device_create() returns NULL on error, it never returns error pointers. Fixes: 8ed55c812fa8 ('iommu/exynos: Init from dt-specific callback instead of initcall') Signed-off-by: Dan Carpenter diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index b066504..cb57b

[patch 2/2] iommu/mediatek: checking for IS_ERR() instead of NULL

2016-03-02 Thread Dan Carpenter
of_platform_device_create() returns NULL on error, it never returns error pointers. Fixes: 0df4fabe208d ('iommu/mediatek: Add mt8173 IOMMU driver') Signed-off-by: Dan Carpenter diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index 1a4022c..4682da4 100644 --- a/drivers/iommu/mt

Re: [PATCH] net: mellanox: add DEVLINK dependencies

2016-03-02 Thread Jiri Pirko
Wed, Mar 02, 2016 at 10:40:54AM CET, a...@arndb.de wrote: >The new NET_DEVLINK infrastructure can be a loadable module, but the drivers >using it might be built-in, which causes link errors like: > >drivers/net/built-in.o: In function `mlx4_load_one': >:(.text+0x2fbfda): undefined reference to `dev

requesting stable 4.1 backport of c8ad7063626406181a7ebab10cb31b4f741b13d4

2016-03-02 Thread Henning Schild
Hey, the make perf-tar targets are also broken in 4.1.y, cherry picking c8ad7063626406181a7ebab10cb31b4f741b13d4 will fix that. Please include the commit in 4.1 stable. Henning

[PATCH] PCI: altera: fix altera_pcie_link_is_up()

2016-03-02 Thread Ley Foon Tan
The original code return true if RP_LTSSM register return non-zero value. This fix to return true only RP_LTSSM register is in L0 state (link up). Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/host

Re: [PATCH v5 RESEND 4/5] ARM: amba: Move reading of periphid to amba_match()

2016-03-02 Thread Ulf Hansson
On 17 February 2016 at 21:08, Russell King - ARM Linux wrote: > On Wed, Feb 17, 2016 at 08:52:36AM +0100, Marek Szyprowski wrote: >> Then the only solution right now I see is to get back to v1: >> http://lists.infradead.org/pipermail/linux-arm-kernel/2015-November/388199.html >> which at least han

Re: [RFC v2 0/6] Track RCU dereferences in RCU read-side critical sections

2016-03-02 Thread Peter Zijlstra
On Wed, Mar 02, 2016 at 02:37:18PM +0800, Boqun Feng wrote: > I come up with something you may not like ;-) , which is taking the > strings of the expressions, for example: Heh, cute. Better than nothing I suppose.

Re: [PATCH 1/2] char: PC rtc: replace blacklist with whitelist

2016-03-02 Thread Geert Uytterhoeven
On Wed, Mar 2, 2016 at 10:48 AM, Arnd Bergmann wrote: > Every new architecture has to add itself to the growing list of those > that do not support the legacy PC RTC driver. > > This replaces the long list of architectures that don't support it > with a shorter list of those that do. > > The list

Re: [PATCH v2 8/8] arm64: kvm: Check support for AArch32 for 32bit guests

2016-03-02 Thread Suzuki K. Poulose
On 02/03/16 09:08, Marc Zyngier wrote: On 25/02/16 09:52, Suzuki K Poulose wrote: I really wanted to pass kvm_vcpu down to the helpers. But then, I can't define the arch specific helper in asm/kvm_host.h due to lack of kvm_vcpu's definition yet: In file included from include/linux/kvm_host.

Re: [PATCH 2/2] char: genrtc: replace blacklist with whitelist

2016-03-02 Thread Geert Uytterhoeven
On Wed, Mar 2, 2016 at 10:48 AM, Arnd Bergmann wrote: > Every new architecture has to add itself to the growing list of those > that do not support the old "generic" RTC driver. > > This replaces the long list of architectures that don't support it > with a shorter list of those that do. > > The l

Re: [PATCH V2 2/4] regulator: core: Add support for active-discharge configuration

2016-03-02 Thread Mark Brown
On Wed, Mar 02, 2016 at 12:32:10PM +0530, Laxman Dewangan wrote: > Add support to enable/disable active discharge of regulator via > machine constraints. This configuration is done when setting > machine constraint during regulator register and if regulator > driver implemented the callback ops. I

[PATCH 1/2] rtc: pcf85063: remove useless DRV_VERSION

2016-03-02 Thread Alexandre Belloni
Since the driver is mainlined there is no use for a separate version number. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf85063.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/rtc/rtc-pcf85063.c b/drivers/rtc/rtc-pcf85063.c index 4e940cc3d782..550f67518c5a 100644 ---

[PATCH 2/2] rtc: pcf85063: remove struct pcf85063

2016-03-02 Thread Alexandre Belloni
No members of struct pcf85063 are used anymore, remove the whole structure. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf85063.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/rtc/rtc-pcf85063.c b/drivers/rtc/rtc-pcf85063.c index 55

Re: [abelloni:rtc-testing 55/55] drivers/rtc/rtc-pcf85063.c:72:19: warning: unused variable 'pcf85063'

2016-03-02 Thread Alexandre Belloni
Hi, On 02/03/2016 at 10:44:29 +0100, Juergen Borleis wrote : > Hi Alexandre, > > On Tuesday 01 March 2016 23:17:45 kbuild test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git > > rtc-testing head: 58992ebde059d7faeab4c18bc17713c3b4c31208 > > commit: 5

Re: [PATCH 13/41] clk: samsung: Remove CLK_IS_ROOT

2016-03-02 Thread Sylwester Nawrocki
On 03/01/2016 07:59 PM, Stephen Boyd wrote: > This flag is a no-op now. Remove usage of the flag. > > Cc: Sylwester Nawrocki > Signed-off-by: Stephen Boyd > --- > drivers/clk/samsung/clk-exynos4.c| 12 +++--- > drivers/clk/samsung/clk-exynos4415.c | 2 +- > drivers/clk/samsung/clk-exynos52

Re: [PATCH 3.12 105/123] usb: musb: cppi41: improve rx channel abort routine

2016-03-02 Thread Jiri Slaby
On 02/29/2016, 03:52 PM, Liu [EP], Bin wrote: > Hi Jiri, > >> -Original Message- >> From: Jiri Slaby [mailto:jsl...@suse.cz] >> Sent: Wednesday, October 28, 2015 8:54 AM >> To: sta...@vger.kernel.org >> Cc: linux-kernel@vger.kernel.org; Liu, Bin; Balbi, Felipe; Oliver Neukum; >> Jiri >> S

Re: [PATCH v2 block/for-linus] writeback: flush inode cgroup wb switches instead of pinning super_block

2016-03-02 Thread Jan Kara
On Tue 01-03-16 12:50:19, Tejun Heo wrote: > Hello, Jens. > > On Tue, Mar 1, 2016 at 12:46 PM, Jens Axboe wrote: > > I queued this up for 4.5, but I'm feeling a bit uneasy about it. But it's > > either that, or revert 5ff8eaac1636 and fix it for real in 4.6. Jan/Tejun, > > what do you think? > >

Re: [lkp] [printk] 34578dc67f: EIP is at vprintk_emit+0x1ea/0x600

2016-03-02 Thread Petr Mladek
On Thu 2016-02-25 14:10:05, Sergey Senozhatsky wrote: > CONFIG_PREEMPT_NONE=y > # CONFIG_PREEMPT_VOLUNTARY is not set > # CONFIG_PREEMPT is not set > CONFIG_PREEMPT_COUNT=y I was curious why your patch actually did not help to avoid the softlockup. The infinite printk loop was called in a safe con

Re: [RESEND PATCH] ASoC: atmel_ssc_dai: distinguish the different SSC

2016-03-02 Thread Mark Brown
On Wed, Mar 02, 2016 at 10:02:47AM +0100, Nicolas Ferre wrote: > Le 02/03/2016 02:04, Mark Brown a écrit : > > On Tue, Mar 01, 2016 at 10:54:29AM +0100, Nicolas Ferre wrote: > >> Signed-off-by: Songjun Wu > >> Acked-by: Nicolas Ferre > > I can't look at patches that aren't signed off, please se

Re: [PATCH v4 1/5] getcpu_cache system call: cache CPU number of running thread

2016-03-02 Thread Peter Zijlstra
On Tue, Mar 01, 2016 at 01:47:38PM -0800, H. Peter Anvin wrote: > On 03/01/16 13:32, Peter Zijlstra wrote: > > On Tue, Mar 01, 2016 at 08:23:12PM +, Mathieu Desnoyers wrote: > >> I think it's important that user-space fast-paths can quickly > >> detect whether the feature is enabled without hav

[3.16.y-ckt stable] Linux 3.16.7-ckt25

2016-03-02 Thread Luis Henriques
I am announcing the release of the Linux 3.16.7-ckt25 kernel. The updated 3.16.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.16.y and can be browsed at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.16.y The diff from v3.16.7-ckt24 is posted

Re: [PATCH v2 2/2] mmc: sdhci-tegra: Specify valid DMA mask

2016-03-02 Thread Alexandre Courbot
On Wed, Mar 2, 2016 at 6:34 AM, Arnd Bergmann wrote: > On Tuesday 01 March 2016 13:32:44 Alexandre Courbot wrote: >> On T210, the sdhci controller can address more than 32 bits of address >> space. Failing to express this fact results in the use of bounce >> buffers and affects performance. >> >>

Re: [PATCH V4 17/23] acpi, mcfg: Add default PCI config accessors implementation and initial support for related quirks.

2016-03-02 Thread Lorenzo Pieralisi
On Mon, Feb 29, 2016 at 01:33:41PM +0530, Jayachandran Chandrashekaran Nair wrote: > On Thu, Feb 4, 2016 at 10:58 PM, Tomasz Nowicki wrote: > > We use generic accessors from access.c by default. However, we already > > know platforms that need special handling while accessing to PCI config > > sp

[v2 PATCH 1/3] panic: Change nmi_panic from macro to function

2016-03-02 Thread Hidehiro Kawai
Change nmi_panic() macro to a normal function for the portability. Also, export it for modules. Signed-off-by: Hidehiro Kawai Cc: Andrew Morton Cc: Borislav Petkov Cc: Michal Nazarewicz Cc: Michal Hocko Cc: Rasmus Villemoes Cc: Nicolas Iooss Cc: Javi Merino Cc: Gobinda Charan Maji Cc: "St

[v2 PATCH 2/3] ipmi/watchdog: Use nmi_panic() when kernel panics in NMI handler

2016-03-02 Thread Hidehiro Kawai
commit 1717f2096b54 ("panic, x86: Fix re-entrance problem due to panic on NMI") introduced nmi_panic() which prevents concurrent and recursive execution of panic(). It also saves registers for the crash dump on x86 by later commit 58c5661f2144 ("panic, x86: Allow CPUs to save registers even if loo

[v2 PATCH 3/3] hpwdt: Use nmi_panic() when kernel panics in NMI handler

2016-03-02 Thread Hidehiro Kawai
commit 1717f2096b54 ("panic, x86: Fix re-entrance problem due to panic on NMI") introduced nmi_panic() which prevents concurrent and recursive execution of panic(). It also saves registers for the crash dump on x86 by later commit 58c5661f2144 ("panic, x86: Allow CPUs to save registers even if loo

Re: [PATCH v4 1/5] getcpu_cache system call: cache CPU number of running thread

2016-03-02 Thread Geert Uytterhoeven
On Mon, Feb 29, 2016 at 1:41 PM, Mathieu Desnoyers wrote: > - On Feb 29, 2016, at 5:39 AM, Arnd Bergmann a...@arndb.de wrote: > >> On Monday 29 February 2016 11:32:21 Peter Zijlstra wrote: >>> On Sun, Feb 28, 2016 at 12:39:54AM +, Mathieu Desnoyers wrote: >>> >>> > /* This structure needs

[v2 PATCH 0/3] Use nmi_panic() in panic on NMI case

2016-03-02 Thread Hidehiro Kawai
commit 1717f2096b54 ("panic, x86: Fix re-entrance problem due to panic on NMI") and commit 58c5661f2144 ("panic, x86: Allow CPUs to save registers even if looping in NMI context") introduced nmi_panic() which prevents concurrent/recursive execution of panic(). It also saves registers for the crash

Re: [lkp] [printk] 34578dc67f: EIP is at vprintk_emit+0x1ea/0x600

2016-03-02 Thread Sergey Senozhatsky
On (03/02/16 11:30), Petr Mladek wrote: > On Thu 2016-02-25 14:10:05, Sergey Senozhatsky wrote: > > CONFIG_PREEMPT_NONE=y > > # CONFIG_PREEMPT_VOLUNTARY is not set > > # CONFIG_PREEMPT is not set > > CONFIG_PREEMPT_COUNT=y > > I was curious why your patch actually did not help to avoid the > softl

Re: [PATCH v10 0/5] MT8173 IOMMU SUPPORT

2016-03-02 Thread Matthias Brugger
Hi Arnd and Olof, On 26/02/16 12:06, Joerg Roedel wrote: Hi Philipp, On Fri, Feb 26, 2016 at 09:55:55AM +0100, Philipp Zabel wrote: Do you have a stable branch that I could base the mediatek-drm patches on and that I may include in a pull request to be merged via drm-next? You can base it on

Re: [PATCH V2 2/5] EDAC, MCE, AMD: Enable error decoding of Scalable MCA errors

2016-03-02 Thread Borislav Petkov
On Mon, Feb 29, 2016 at 04:32:56PM -0600, Aravind Gopalakrishnan wrote: > For Scalable MCA enabled processors, errors are listed > per IP block. And since it is not required for an IP to > map to a particular bank, we need to use HWID and McaType > values from the MCx_IPID register to figure out wh

[PATCH 1/3] x86/mce/AMD, EDAC: Enable error decoding of Scalable MCA errors

2016-03-02 Thread Borislav Petkov
From: Aravind Gopalakrishnan Date: Mon, 29 Feb 2016 16:32:56 -0600 Subject: [PATCH 1/3] x86/mce/AMD, EDAC: Enable error decoding of Scalable MCA errors For Scalable MCA enabled processors, errors are listed per IP block. And since it is not required for an IP to map to a particular bank, we need

[RFC PATCH v2 3/3] powerpc/86xx: Introduce and use common dtsi

2016-03-02 Thread Alessio Igor Bogani
Signed-off-by: Alessio Igor Bogani --- arch/powerpc/boot/dts/fsl/gef_ppc9a.dts| 258 +++-- arch/powerpc/boot/dts/fsl/gef_sbc310.dts | 246 +++- arch/powerpc/boot/dts/fsl/gef_sbc610.dts | 258 +++-- arch/powerpc/boot/dts/fsl/mpc86

[RFC PATCH v2 2/3] powerpc/86xx: Update device tree

2016-03-02 Thread Alessio Igor Bogani
Avoid duplication of the interrupt-parent, migrate to 4 interrupt-cells and set the right clock-frequency for pcie (100 Mhz). Signed-off-by: Alessio Igor Bogani --- arch/powerpc/boot/dts/fsl/gef_ppc9a.dts| 73 arch/powerpc/boot/dts/fsl/gef_sbc310.dts | 79 +

[RFC PATCH v2 1/3] powerpc/86xx: Move dts files to fsl directory

2016-03-02 Thread Alessio Igor Bogani
Signed-off-by: Alessio Igor Bogani --- v1 -> v2 Address suggestion made by Scott Wood Split the second patch in two Don't remove "fsl,mpic" which it is required for 4-cell interrupt specifiers Remove pointless compatible in the dtsi Use the r

[PATCH 2/3] x86/mce/AMD, EDAC: Simplify SMCA decoding

2016-03-02 Thread Borislav Petkov
From: Borislav Petkov Date: Wed, 2 Mar 2016 11:23:13 +0100 Subject: [PATCH 2/3] x86/mce/AMD, EDAC: Simplify SMCA decoding Merge all IP blocks into a single enum. This allows for easier block name use later. Drop superfluous "_BLOCK" from the enum names. Signed-off-by: Borislav Petkov Cc: Aravin

[PATCH 3/3] EDAC, mce_amd: Correct error paths

2016-03-02 Thread Borislav Petkov
From: Borislav Petkov Date: Wed, 2 Mar 2016 11:46:58 +0100 Subject: [PATCH 3/3] EDAC, mce_amd: Correct error paths We need to unwind properly when we fail to find the proper decoding functions. Streamline error messages to resemble the rest of this file, while at it and do some minor stylistic ch

Re: [PATCH v5.1 0/2] create BLKZEROOUT ioctl that invalidates page cache

2016-03-02 Thread Arnd Bergmann
On Wednesday 02 March 2016 01:44:16 Christoph Hellwig wrote: > On Wed, Mar 02, 2016 at 10:15:02AM +0100, Arnd Bergmann wrote: > > I'm missing the background on this, just saw the patch fly by, > > so sorry if this has been asked before: > > > > Why do you want to invalidate the cache? Is this to s

Re: [PATCH] ASoC: intel: remove unused variable

2016-03-02 Thread Mark Brown
On Wed, Mar 02, 2016 at 11:56:28AM +0530, Sudip Mukherjee wrote: > > > And AFAIK, the From: name and the Signed-off-by: name should match else > > > the tools used by Greg and others to generate the stats will break. > > I don't understand - what I'm pointing out here is that they do not > > matc

Re: [PATCH V2 2/4] regulator: core: Add support for active-discharge configuration

2016-03-02 Thread Laxman Dewangan
On Wednesday 02 March 2016 03:55 PM, Mark Brown wrote: * PGP Signed by an unknown key On Wed, Mar 02, 2016 at 12:32:10PM +0530, Laxman Dewangan wrote: Add support to enable/disable active discharge of regulator via machine constraints. This configuration is done when setting machine constraint

Re: [PATCH 4/8] drivers/pinctrl: make sh-pfc/core.c explicitly non-modular

2016-03-02 Thread Geert Uytterhoeven
On Mon, Feb 29, 2016 at 9:48 PM, Paul Gortmaker wrote: > The Kconfig / Makefile currently controlling compilation of this code is: > > drivers/pinctrl/sh-pfc/Makefile:obj-$(CONFIG_PINCTRL_SH_PFC)+= sh-pfc.o > drivers/pinctrl/sh-pfc/Makefile:sh-pfc-objs = core.o > pinctrl.o

[PATCH V2 RESEND 1/4] regulator: DT: Add DT property for active-discharge configuration

2016-03-02 Thread Laxman Dewangan
Add common DT property for regulator node to support of active discharge enable/disable configuration of regulator. Signed-off-by: Laxman Dewangan --- Changes from V1: None Documentation/devicetree/bindings/regulator/regulator.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Docume

[PATCH V2 RESEND 0/4] regulator: Add support for configuration of active-discharge

2016-03-02 Thread Laxman Dewangan
This series add the common regulator DT property for configuration of active discharge and implementing this in regulator core. Also implementing the regulator ops for MAX77620 to configure active discharge. This is based on discussion on patch and comment from Mark Brown: [PATCH V6 7/8] DT: regu

[PATCH V2 RESEND 2/4] regulator: core: Add support for active-discharge configuration

2016-03-02 Thread Laxman Dewangan
Add support to enable/disable active discharge of regulator via machine constraints. This configuration is done when setting machine constraint during regulator register and if regulator driver implemented the callback ops. Signed-off-by: Laxman Dewangan --- Changes from V1: Make the interface l

[PATCH V2 RESEND 4/4] regulator: max77620: Add support to configure active-discharge

2016-03-02 Thread Laxman Dewangan
Add regulator ops callback for configuration of active-discharge and provide necessarily information via regulator descriptor. Signed-off-by: Laxman Dewangan --- Changes from V1: None drivers/regulator/max77620-regulator.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/re

[PATCH V2 RESEND 3/4] regulator: helper: Add helper to configure active-discharge using regmap

2016-03-02 Thread Laxman Dewangan
Add helper function to set the state of active-discharge of regulator using regmap. The HW regulator driver can directly use this by providing the necessary information in the regulator descriptor. Signed-off-by: Laxman Dewangan --- Changes from V1: None drivers/regulator/helpers.c | 23 +

[RESEND PATCH v2] ASoC: atmel_ssc_dai: distinguish the different SSC

2016-03-02 Thread Nicolas Ferre
From: Songjun Wu Cpu_dai id always equals 0, can't distinguish the different SSC. Use platform_device id to record and distinguish the different SSC. Signed-off-by: Songjun Wu Signed-off-by: Nicolas Ferre --- v2: correct my tag to use a "Signed-off-by". drivers/misc/atmel-ssc.c| 1 +

Re: [PATCH v8 0/4] generic TEE subsystem

2016-03-02 Thread Andreas Dannenberg
On Thu, Feb 11, 2016 at 06:14:33PM +0100, Jens Wiklander wrote: > Hi, > > This patch set introduces a generic TEE subsystem. The TEE subsystem will > contain drivers for various TEE implementations. A TEE (Trusted Execution > Environment) is a trusted OS running in some secure environment, for > e

[RFC PATCH] x86: Make sure verify_cpu has a good stack

2016-03-02 Thread Borislav Petkov
From: Borislav Petkov 04633df0c43d ("x86/cpu: Call verify_cpu() after having entered long mode too") added the call to verify_cpu() for sanitizing CPU configuration. The latter uses the stack minimally and it can happen that we land in startup_64() directly from a 64-bit bootloader. Then we want

Re: [tip:efi/core] x86/mm/pat: Use _PAGE_GLOBAL bit for EFI page table mappings

2016-03-02 Thread Matt Fleming
On Mon, 29 Feb, at 11:56:56AM, Sylvain Chouleur wrote: > 2016-02-24 20:45 GMT+01:00 Matt Fleming : > > On Wed, 24 Feb, at 10:56:13AM, Linus Torvalds wrote: > >> On Wed, Feb 24, 2016 at 8:36 AM, Andy Lutomirski > >> wrote: > >> >> > >> >> So the EFI runtime crap should not change once it is mapped

Re: [tip:smp/hotplug] cpu/hotplug: Convert to a state machine for the control processor

2016-03-02 Thread Peter Zijlstra
On Tue, Mar 01, 2016 at 11:53:25AM -0800, tip-bot for Thomas Gleixner wrote: > @@ -558,22 +648,22 @@ static int _cpu_up(unsigned int cpu, int tasks_frozen) > > cpuhp_tasks_frozen = tasks_frozen; > > + prev_state = st->state; > + st->target = CPUHP_ONLINE; > + while (st->state

Re: [PATCH 4/7] perf, tools, stat: Document CSV format in manpage

2016-03-02 Thread Jiri Olsa
On Tue, Mar 01, 2016 at 10:57:49AM -0800, Andi Kleen wrote: > From: Andi Kleen > > With all the recently added fields in the perf stat CSV output > we should finally document them in the man page. Do this here. > > v2: Fix fields in documentation (Jiri) > v3: fix order of fields again (Jiri) > v

[PATCH] perf: Fix perf_sched_count derailment

2016-03-02 Thread Alexander Shishkin
The error path in perf_event_open() is such that asking for a sampling event on a pmu that doesn't generate interrupts will end up in dropping the perf_sched_count even though it hasn't been incremented for this event yet. Given a sufficient amount of these calls, we'll end up disabling scheduler'

Re: [PATCH v2 2/2] mmc: sdhci-tegra: Specify valid DMA mask

2016-03-02 Thread Arnd Bergmann
On Wednesday 02 March 2016 19:36:23 Alexandre Courbot wrote: > On Wed, Mar 2, 2016 at 6:34 AM, Arnd Bergmann wrote: > > On Tuesday 01 March 2016 13:32:44 Alexandre Courbot wrote: > >> On T210, the sdhci controller can address more than 32 bits of address > >> space. Failing to express this fact re

[PATCH] of/unittest: fix infinite loop in of_unittest_destroy_tracked_overlays()

2016-03-02 Thread Sergey Senozhatsky
of_overlay_destroy() can return `-ENODEV' error code once it failed to find the requested overlay in `ov_idr'. However, of_unittest_destroy_tracked_overlays() does not handle this error code correctly and continues to call of_overlay_destroy() on the 'missing' overlay over and over again. This resu

Re: [PATCH v10 0/5] MT8173 IOMMU SUPPORT

2016-03-02 Thread Arnd Bergmann
On Wednesday 02 March 2016 11:48:43 Matthias Brugger wrote: > > On 26/02/16 12:06, Joerg Roedel wrote: > > Hi Philipp, > > > > On Fri, Feb 26, 2016 at 09:55:55AM +0100, Philipp Zabel wrote: > >> Do you have a stable branch that I could base the mediatek-drm patches > >> on and that I may include i

Re: [PATCH 5/7] perf, tools, stat: Implement --metric-only mode

2016-03-02 Thread Jiri Olsa
On Tue, Mar 01, 2016 at 01:32:39PM +0100, Jiri Olsa wrote: > On Mon, Feb 29, 2016 at 02:36:24PM -0800, Andi Kleen wrote: > > From: Andi Kleen > > > > Add a new mode to only print metrics. Sometimes we don't care about > > the raw values, just want the computed metrics. This allows more > > compac

Re: [tip:timers/core] hrtimer: Add support for CLOCK_MONOTONIC_RAW

2016-03-02 Thread Marc Zyngier
Thomas, On 27/01/16 11:42, tip-bot for Marc Zyngier wrote: > Commit-ID: 9c808765e88efb6fa6af7e2206ef89512f1840a7 > Gitweb: http://git.kernel.org/tip/9c808765e88efb6fa6af7e2206ef89512f1840a7 > Author: Marc Zyngier > AuthorDate: Fri, 15 Jan 2016 17:41:08 + > Committer: Thomas Gleixner

[PATCH] ALSA: portman2x4: fix NULL pointer dereference

2016-03-02 Thread Sudip Mukherjee
While registering pardev, the irq_func was also registered. As a result when we tried to probe for the card, an interrupt was generated and in the ISR we tried to dereference private_data. But private_data is still NULL as we have not yet done portman_create(). Lets probe for the device after card

Re: [RFC PATCH] drivers: ata: Read Rx water mark value from device-tree

2016-03-02 Thread Arnd Bergmann
On Wednesday 02 March 2016 10:27:51 Michal Simek wrote: > > No problem with default value in driver. Something has to be setup. > Reset value based on reg spec I was checking is 0x20. Based on our > testing we saw some issues that's why 0x40 was setup as default value. > There is a need to be able

Re: [PATCH] hw_breakpoint: Fix Oops at destroying hw_breakpoint event on powerpc

2016-03-02 Thread Peter Zijlstra
On Wed, Mar 02, 2016 at 03:25:17PM +0530, Ravi Bangoria wrote: > At a time of destroying hw_breakpoint event, kernel ends up with Oops. > Here is the sample output from 4.5.0-rc6 kernel. > Call chain: > > hw_breakpoint_event_init() > bp->destroy = bp_perf_event_destroy; > > do_exit() >

Re: [PATCHv9 2/3] IB/core: added support to use rdma cgroup controller

2016-03-02 Thread Haggai Eran
On 01/03/2016 21:05, Parav Pandit wrote: > Added support APIs for IB core to register/unregister every IB/RDMA > device with rdma cgroup for tracking verbs and hw resources. > IB core registers with rdma cgroup controller and also defines > resources that can be accounted. > Added support APIs for

Re: [PATCH v4 1/5] dell-laptop: move dell_smi_error() to dell-smbios

2016-03-02 Thread Michał Kępień
> On Mon, Feb 29, 2016 at 09:41:36PM +0100, Michał Kępień wrote: > > > On Monday 29 February 2016 21:22:54 Michał Kępień wrote: > > > > > On Wednesday 24 February 2016 08:20:11 Michał Kępień wrote: > > > > > > The dell_smi_error() method could be used by modules other than > > > > > > dell-laptop f

Re: hw_breakpoint: Fix Oops at destroying hw_breakpoint event on powerpc

2016-03-02 Thread Michael Ellerman
Hi Ravi, On Wed, 2016-02-03 at 09:55:17 UTC, Ravi Bangoria wrote: > At a time of destroying hw_breakpoint event, kernel ends up with Oops. > Here is the sample output from 4.5.0-rc6 kernel. It's nice to trim the oops a bit, the time stamps aren't useful. And the full GPRs is probably not useful i

[PATCH v3 1/2] sched/core: Get rid of 'cpu' argument in wq_worker_sleeping()

2016-03-02 Thread Alexander Gordeev
Given that wq_worker_sleeping() could only be called for a CPU it is running on, we do not need passing a CPU ID as an argument. Suggested-by: Oleg Nesterov Cc: Oleg Nesterov Cc: Peter Zijlstra Signed-off-by: Alexander Gordeev --- kernel/sched/core.c | 2 +- kernel/workqueue.c

[PATCH v3 0/2] sched/core: Cleanup leftovers in __schedule()

2016-03-02 Thread Alexander Gordeev
Changes since v2: - rebased on top of tip/sched/core Changes since v1: - cover letter BLURB added :) - forgotten Suggested-by Oleg field added to patch 1 - raw_smp_processor_id() returned instead of mistaken smp_processor_id() - kbuild excess function parameter 'cpu' description warning

[PATCH v3 2/2] sched/core: Get rid of 'cpu' local variable in __schedule()

2016-03-02 Thread Alexander Gordeev
This update is a continuation of commit 3223d05 ("sched/core: Remove dead statement in __schedule()") and completes the removal of a dead code with a removal of an unnecessary 'cpu' local variable - as it is only used to acquire the current runqueue. Cc: Oleg Nesterov Cc: Peter Zijlstra Signed-o

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