[PATCH] input: constify device_type structures

2017-01-23 Thread Bhumika Goyal
Declare device_type structures as const as they are only stored in the type field of a device structure. This field is of type const, so add const to declaration of device_type structures. File size before: textdata bss dec hex filename 171841344 80 1860848b0 dr

Re: fs, net: deadlock between bind/splice on af_unix

2017-01-23 Thread Cong Wang
On Fri, Jan 20, 2017 at 2:52 PM, Dmitry Vyukov wrote: > > This works! I did not see the deadlock warning, nor any other related crashes. > > Tested-by: Dmitry Vyukov Thanks for verifying it. I will send it out formally soon.

Re: [PATCH v3 3/3] xen: optimize xenbus driver for multiple concurrent xenstore accesses

2017-01-23 Thread Boris Ostrovsky
On 01/23/2017 05:09 AM, Juergen Gross wrote: > Handling of multiple concurrent Xenstore accesses through xenbus driver > either from the kernel or user land is rather lame today: xenbus is > capable to have one access active only at one point of time. > > Rewrite xenbus to handle multiple requests

Re: [PATCH 1/8] Documentation, x86: Documentation for Intel Mem b/w allocation user interface

2017-01-23 Thread Shivappa Vikas
On Wed, 18 Jan 2017, Thomas Gleixner wrote: On Tue, 17 Jan 2017, Shivappa Vikas wrote: On Mon, 16 Jan 2017, Thomas Gleixner wrote: This interface is really crap. The natural way to express it is: Requested Bandwidth = X % I wanted to do it this way which did seem more intuitive but th

Re: [PATCH v20 00/17] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2017-01-23 Thread Mark Rutland
Hi, On Wed, Jan 18, 2017 at 09:25:24PM +0800, fu@linaro.org wrote: > From: Fu Wei > > This patchset: > (1)Preparation for adding GTDT support in arm_arch_timer: > 1. Clean up printk() usage > 2. Rename the type macros > 3. Rename the PPI enum & enum values >

Re: [PATCH v4 6/7] uapi: export all headers under uapi directories

2017-01-23 Thread kbuild test robot
Hi Nicolas, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc5] [cannot apply to next-20170123] [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/Nicolas-Dichtel/uapi

Re: [PATCH] x86 tsc: Add the Intel Denverton Processor to native_calibrate_tsc()

2017-01-23 Thread Len Brown
> Already upstream, as per: > > 695085b4bc76 x86/tsc: Add the Intel Denverton Processor to > native_calibrate_tsc() Thanks, Ingo, Sorry for the repeat. Len Brown, Intel Open Source Technology Center

Re: [PATCH v4 6/7] uapi: export all headers under uapi directories

2017-01-23 Thread kbuild test robot
Hi Nicolas, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc5] [cannot apply to next-20170123] [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/Nicolas-Dichtel/uapi

Re: [PATCH 00/18] ARM64: meson: DT cleanups

2017-01-23 Thread Kevin Hilman
Andreas Färber writes: > Hello, > > This series fixes several cosmetic issues, on top of v4.11/dt64 branch. > > Patches 3-5 rename a node, the rest should all be non-functional changes. Can you respin patches 1-9 with minor comments addressed and acks/reviews collected and I'll apply those. > P

Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross timestamps infrastructure

2017-01-23 Thread Richard Cochran
On Mon, Jan 23, 2017 at 11:19:17AM -0200, Marcelo Tosatti wrote: > This is needed to generate the PTP_SYS_OFFSET data: a table with read > from realtime clock, read from device clock, read from realtime clock, > ... : > > time -> > device clock | |sample2| |sample4| |sample6| ..

x86: WARNING: kernel stack frame pointer in kworker has bad value

2017-01-23 Thread Dmitry Vyukov
Hello, I am getting the following warnings while running syzkaller fuzzer on 7a308bb3016f57e5be11a677d15b821536419d36: WARNING: kernel stack frame pointer at 880065f7fef8 in kworker/1:3:21075 has bad value 81598080 unwind stack type:0 next_sp: (null) mask:2 graph_idx:0 ... H

Re: [PATCH 1/1 linux-next] jfs: atomically read inode size

2017-01-23 Thread Dave Kleikamp
On 01/23/2017 11:50 AM, Fabian Frederick wrote: > See i_size_read() comments in include/linux/fs.h Is this fixing a real problem? Can the bd_inode size change while we're mounting or resizing the filesystem? > > Signed-off-by: Fabian Frederick > --- > fs/jfs/resize.c | 4 ++-- > fs/jfs/super.c

[PATCH 7/9] EDAC/mce_amd: Dump TSC value

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov Dump the TSC value of the time when the MCE got logged. Signed-off-by: Borislav Petkov --- drivers/edac/mce_amd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 5cd3c39bc695..ecad750fd090 100644 --- a/drivers/e

Re: [PATCH 6/9] power_supply: wm97xx_battery: use power_supply_get_drvdata

2017-01-23 Thread Kevin Hilman
Hello, On Wed, Oct 26, 2016 at 12:41 PM, Robert Jarzmik wrote: > As the power supply framework provides a way to store and retrieve > private supply data, use it. > > In the process, change the platform data for wm97xx_battery from a > container of a single struct wm97xx_batt_pdata to the direct

Re: [PATCH] USB: Add quirk for WORLDE easykey.25 MIDI keyboard

2017-01-23 Thread Lukáš Lalinský
On Sat, Jan 21, 2017 at 10:08 AM, Greg Kroah-Hartman wrote: > Always use scripts/get_maintainer.pl to determine who to send patches > to, and what mailing list. You forgot linux-usb@vger, which I've now > added... I'm sorry about that. I actually did use scripts/get_maintainer.pl, but it only re

Re: [PATCH 3/4] PCI: Xilinx NWL: Modifying flow handler for legacy interrupts

2017-01-23 Thread Marc Zyngier
On 21/01/17 11:11, Bharat Kumar Gogada wrote: > Legacy interrupts are level sensitive, so using handle_level_irq > is more approprate as it is masks interrupts until End point handles > interrupts and unmasks interrutps after End point handler is executed. > > Signed-off-by: Bharat Kumar Gogada >

[PATCH 5/9] x86/ras/mce_amd_inj: Change dependency

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov Change dependency to mce.c as we're using mce_inject_log() now to stick an MCE into the MCA subsystem. Signed-off-by: Borislav Petkov --- arch/x86/ras/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/ras/Kconfig b/arch/x86/ras/Kconfig i

[PATCH 3/9] x86/MCE/AMD: Make sysfs names of banks more user-friendly

2017-01-23 Thread Borislav Petkov
From: Yazen Ghannam Currently, we append the MCA_IPID[InstanceId] to the bank name to create the sysfs filename. The InstanceId field uniquely identifies a bank instance but it doesn't look very nice for most banks. Replace the InstanceId with a simpler, ascending (0, 1, ..) value. Only use this

Re: [PATCH 2/4] PCI: Xilinx NWL: Modifying irq chip for legacy interrupts

2017-01-23 Thread Marc Zyngier
On 21/01/17 11:11, Bharat Kumar Gogada wrote: > - Few wifi end points which only support legacy interrupts, > performs hardware reset functionalities after disabling interrupts > by invoking disable_irq and then re-enable using enable_irq, they > enable hardware interrupts first and then virtual ir

[PATCH 1/9] x86/mce-inject: Make it depend on X86_LOCAL_APIC

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov ... and get rid of the annoying: arch/x86/kernel/cpu/mcheck/mce-inject.c:97:13: warning: ‘mce_irq_ipi’ defined but not used [-Wunused-function] static void mce_irq_ipi(void *info when doing randconfig builds. Signed-off-by: Borislav Petkov --- arch/x86/Kconfig

[PATCH 8/9] x86/MCE: Get rid of mce_process_work()

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov Make mce_gen_pool_process() the workqueue function directly and save us an indirection. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/mcheck/mce-genpool.c | 2 +- arch/x86/kernel/cpu/mcheck/mce-internal.h | 2 +- arch/x86/kernel/cpu/mcheck/mce.c | 12

[PATCH 6/9] EDAC/mce_amd: Unexport amd_decode_mce()

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov It is not used outside of the driver anymore. Signed-off-by: Borislav Petkov --- drivers/edac/mce_amd.c | 4 ++-- drivers/edac/mce_amd.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 34208f38c5b

Re: [PATCH 01/18] Documentation: devicetree: amlogic: Reorder boards

2017-01-23 Thread Andreas Färber
Am 23.01.2017 um 17:48 schrieb Rob Herring: > On Fri, Jan 20, 2017 at 11:21:01PM +0100, Andreas Färber wrote: >> Enforce groupment by SoCs and order alphabetically within the group >> (with some exceptions). This should facilitate adding new boards. >> >> Signed-off-by: Andreas Färber >> --- >> D

[PATCH 4/9] x86/MCE: Flip the TSC-adding logic

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov Add the TSC value to the MCE record only when the MCE being logged is precise, i.e., it is logged as an exception or an MCE-related interrupt. So it doesn't look particularly easy to do without touching/changing a bunch of places. That's why I'm trying tricks first. For ex

[PATCH 9/9] x86/MCE, EDAC, acpi: Assign MCE notifier handlers a priority

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov Assign all notifiers on the MCE decode chain a priority so that they get called in the correct order. Suggested-by: Thomas Gleixner Signed-off-by: Borislav Petkov --- arch/x86/include/asm/mce.h | 9 + arch/x86/kernel/cpu/mcheck/mce.c | 8 +++- drivers/a

[PATCH 2/9] x86/MCE/therm_throt: Do not log a fake MCE for a thermal event

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov We log a fake bank 128 MCE to note that we're handling a CPU thermal event. However, this confuses people into thinking that their hardware generates MCEs. Hijacking MCA for logging thermal events is a gross misuse anyway and it shouldn't have been done in the first place. A

[PATCH 0/9] x86/RAS: Queue for 4.11

2017-01-23 Thread Borislav Petkov
From: Borislav Petkov Hi, here's the stuff which got ready in time. The more exciting things are going to wait for the next merge window. :-) Please apply, thanks. Borislav Petkov (8): x86/mce-inject: Make it depend on X86_LOCAL_APIC x86/MCE/therm_throt: Do not log a fake MCE for a thermal

Re: [PATCH 3/3] ARM64: dts: meson-gxm-rbox-pro: Add board compatible string

2017-01-23 Thread Andreas Färber
Am 23.01.2017 um 19:21 schrieb Kevin Hilman: > Andreas Färber writes: > >> Cc: a...@kingnoval.com >> Signed-off-by: Andreas Färber >> --- >> To be squashed in v2. > > FYI, since you mention v2 here, i'll wait on this series and assume > you'll update it on top of your cleanup series. Yes, I a

Re: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-23 Thread Dan Williams
On Mon, Jan 23, 2017 at 10:03 AM, Christoph Hellwig wrote: > On Mon, Jan 23, 2017 at 09:14:04AM -0800, Dan Williams wrote: >> The use case that we have now is distinguishing volatile vs persistent >> memory (brd vs pmem). > > brd is a development tool, so until we have other reasons for this > abs

Re: [PATCH 1/1 linux-next] ext4: atomically read inode size

2017-01-23 Thread Theodore Ts'o
On Mon, Jan 23, 2017 at 06:56:09PM +0100, Fabian Frederick wrote: > See i_size_read() comments in include/linux/fs.h > > Signed-off-by: Fabian Frederick > --- > fs/ext4/super.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index 9

Re: setns() && PR_SET_CHILD_SUBREAPER

2017-01-23 Thread Eric W. Biederman
Oleg Nesterov writes: > And this discussion reminds me again that I do not understand how setns() > and PR_SET_CHILD_SUBREAPER should play together... Add cc's. I agree that they are currently playing together incorrectly. > Suppose we have a process P in the root namespace and another namespac

[PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path

2017-01-23 Thread Johannes Weiner
Direct reclaim has been replaced by kswapd reclaim in pretty much all common memory pressure situations, so this code most likely doesn't accomplish the described effect anymore. The previous patch wakes up flushers for all reclaimers when we encounter dirty pages at the tail end of the LRU. Remove

[PATCH 4/5] mm: vmscan: only write dirty pages that the scanner has seen twice

2017-01-23 Thread Johannes Weiner
Dirty pages can easily reach the end of the LRU while there are still clean pages to reclaim around. Don't let kswapd write them back just because there are a lot of them. It costs more CPU to find the clean pages, but that's almost certainly better than to disrupt writeback from the flushers with

[PATCH 2/5] mm: vmscan: kick flushers when we encounter dirty pages on the LRU

2017-01-23 Thread Johannes Weiner
Memory pressure can put dirty pages at the end of the LRU without anybody running into dirty limits. Don't start writing individual pages from kswapd while the flushers might be asleep. Signed-off-by: Johannes Weiner --- include/linux/writeback.h| 2 +- include/trace/events/writeback.h

[PATCH 1/5] mm: vmscan: scan dirty pages even in laptop mode

2017-01-23 Thread Johannes Weiner
We have an elaborate dirty/writeback throttling mechanism inside the reclaim scanner, but for that to work the pages have to go through shrink_page_list() and get counted for what they are. Otherwise, we mess up the LRU order and don't match reclaim speed to writeback. Especially during deactivati

Re: [PATCH 1/4] PCI: Xilinx NWL: Fix, do not check for legacy status in while loop

2017-01-23 Thread Marc Zyngier
On 21/01/17 11:11, Bharat Kumar Gogada wrote: > - The legacy status register value for particular INTx becomes low > only after DEASSERT_INTx is received. > - Few End Points take time for sending DEASSERT_INTx, checking > legacy status register in while loop causes invoking of EP > handler continuo

Re: [PATCH 3/3] ARM64: dts: meson-gxm-rbox-pro: Add board compatible string

2017-01-23 Thread Kevin Hilman
Andreas Färber writes: > Cc: a...@kingnoval.com > Signed-off-by: Andreas Färber > --- > To be squashed in v2. FYI, since you mention v2 here, i'll wait on this series and assume you'll update it on top of your cleanup series. Kevin

Re: [PATCHv2 2/2] iio: cros_ec_light_prox: add ChromeOS EC Light and Proximity Sensors

2017-01-23 Thread Gwendal Grignou
On Fri, Jan 20, 2017 at 6:23 AM, Enric Balletbo Serra wrote: > Hi Jonathan, > > Thanks for the review, I am preparing v3. Some answers to your questions > below. > > 2017-01-14 14:06 GMT+01:00 Jonathan Cameron : >> On 11/01/17 15:51, Enric Balletbo i Serra wrote: >>> From: Gwendal Grignou >>> >>

[PATCH 0/5] mm: vmscan: fix kswapd writeback regression

2017-01-23 Thread Johannes Weiner
We noticed a regression on multiple hadoop workloads when moving from 3.10 to 4.0 and 4.6, which involves kswapd getting tangled up in page writeout, causing direct reclaim herds that also don't make progress. I tracked it down to the thrash avoidance efforts after 3.10 that make the kernel better

[PATCH 5/5] mm: vmscan: move dirty pages out of the way until they're flushed

2017-01-23 Thread Johannes Weiner
We noticed a performance regression when moving hadoop workloads from 3.10 kernels to 4.0 and 4.6. This is accompanied by increased pageout activity initiated by kswapd as well as frequent bursts of allocation stalls and direct reclaim scans. Even lowering the dirty ratios to the equivalent of less

Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic

2017-01-23 Thread Borislav Petkov
On Mon, Jan 23, 2017 at 10:01:53AM -0800, Luck, Tony wrote: > will ignore the machine check on the other cpus ... assuming > that "cpu_is_offline(smp_processor_id())" does the right thing > in the kexec case where this is an "old" cpu that isn't online > in the new kernel. Nice. And kdump did do t

Re: [PATCH v4 net-next] net: mvneta: implement .set_wol and .get_wol

2017-01-23 Thread Andrew Lunn
On Mon, Jan 23, 2017 at 02:55:07PM +0800, Jisheng Zhang wrote: > From: Jingju Hou > > From: Jingju Hou > > The mvneta itself does not support WOL, but the PHY might. > So pass the calls to the PHY > > Signed-off-by: Jingju Hou > Signed-off-by: Jisheng Zhang > --- > since v3: > - really fix

[PATCH v8 1/5] clk: Make x86/ conditional on CONFIG_COMMON_CLK

2017-01-23 Thread Pierre-Louis Bossart
Fix Makefile for x86 support, dependency on CONFIG_COMMON_CLK was not explicit Fixes: 701190fd7419 ('clk: x86: add support for Lynxpoint LPSS clocks') Signed-off-by: Pierre-Louis Bossart --- drivers/clk/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/Makefile b/drivers

[PATCH v8 2/5] clk: x86: Add Atom PMC platform clocks

2017-01-23 Thread Pierre-Louis Bossart
From: Irina Tirdea The BayTrail and CherryTrail platforms provide platform clocks through their Power Management Controller (PMC). The SoC supports up to 6 clocks (PMC_PLT_CLK[0..5]) with a frequency of either 19.2 MHz (PLL) or 25 MHz (XTAL) for BayTrail and a frequency of 19.2 MHz (XTAL) for Ch

[PATCH v8 5/5] platform/x86: fix typo in comment

2017-01-23 Thread Pierre-Louis Bossart
s/Acumulate/Accumulate/ Signed-off-by: Pierre-Louis Bossart --- include/linux/platform_data/x86/pmc_atom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/platform_data/x86/pmc_atom.h b/include/linux/platform_data/x86/pmc_atom.h index aa8744c..e4905fe 100644 --

[PATCH v8 4/5] platform/x86: Enable Atom PMC platform clocks

2017-01-23 Thread Pierre-Louis Bossart
From: Irina Tirdea The BayTrail and CherryTrail platforms provide platform clocks through their Power Management Controller (PMC). The SoC supports up to 6 clocks (PMC_PLT_CLK[0..5]) with a frequency of either 19.2 MHz (PLL) or 25 MHz (XTAL) for BayTrail and a frequency of 19.2 MHz (XTAL) for Ch

[PATCH v8 3/5] arch/x86/platform/atom: Move pmc_atom to drivers/platform/x86

2017-01-23 Thread Pierre-Louis Bossart
From: Irina Tirdea The pmc_atom driver does not contain any architecture specific code. It only enables the SoC Power Management Controller driver for BayTrail and CherryTrail platforms. Move the pmc_atom driver from arch/x86/platform/atom to drivers/platform/x86. Also clean-up and reorder inclu

[PATCH v8 0/5] Add platform clock for BayTrail platforms

2017-01-23 Thread Pierre-Louis Bossart
These patches specifically enable the audio MCLK required by Baytrail CR devices. It is the remaining part of a bigger set of patches (already merged in Mark Brown's tree) that enable sound for Baytrail CR devices (especially Asus T100TAF) [1]. They include the clock driver and clock enabling in th

Re: [PATCH v3 5/5] drm/rockchip/dsi: add dw-mipi power domain support

2017-01-23 Thread Sean Paul
On Fri, Jan 20, 2017 at 06:10:51PM +0800, Chris Zhong wrote: > Reference the power domain incase dw-mipi power down when > in use. > Reviewed-by: Sean Paul > Signed-off-by: Chris Zhong > --- > > Changes in v3: None > > drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 16 > 1 file c

Re: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-23 Thread Christoph Hellwig
On Mon, Jan 23, 2017 at 09:14:04AM -0800, Dan Williams wrote: > The use case that we have now is distinguishing volatile vs persistent > memory (brd vs pmem). brd is a development tool, so until we have other reasons for this abstraction (which I'm pretty sure will show up rather sooner than later

Re: [PATCH] block: Initialize cfqq->ioprio_class in cfq_get_queue()

2017-01-23 Thread Jens Axboe
On 01/23/2017 09:17 AM, Alexander Potapenko wrote: > On Mon, Jan 23, 2017 at 5:03 PM, Andrey Ryabinin > wrote: >> 2017-01-23 17:06 GMT+03:00 Alexander Potapenko : >>> KMSAN (KernelMemorySanitizer, a new error detection tool) reports use of >>> uninitialized memory in cfq_init_cfqq(): >>> >>>

Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic

2017-01-23 Thread Luck, Tony
On Mon, Jan 23, 2017 at 06:51:30PM +0100, Borislav Petkov wrote: > Hey Tony, > > a "welcome back" is in order? :-) Yes - first day back today. Lots of catching up to do. > And apparently crash knows about poisoned pages and handles them: > > static int __init crash_save_vmcoreinfo_init(void) >

Re: [PATCH v4 0/9] Implement clocksource for rockchip SoC using rockchip timer

2017-01-23 Thread Daniel Lezcano
On Mon, Jan 23, 2017 at 08:24:47PM +0300, Alexander Kochetkov wrote: > Heiko, Daniel, thanks a lot for review! > I’ll send v5 series this week. > > Heiko, Daniel, may I add 'Reviewed-by:’ to patch series? > > Reviewed-by: Heiko Stübner ? > Reviewed-by: Daniel Lezcano ? > I will answer with th

[PATCH 1/1 linux-next] ext4: atomically read inode size

2017-01-23 Thread Fabian Frederick
See i_size_read() comments in include/linux/fs.h Signed-off-by: Fabian Frederick --- fs/ext4/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 9d15a62..3746f77 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3798,7 +3798,

[PATCH 1/1 linux-next] hfsplus: atomically read inode size

2017-01-23 Thread Fabian Frederick
See i_size_read() comments in include/linux/fs.h Signed-off-by: Fabian Frederick --- fs/hfsplus/wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfsplus/wrapper.c b/fs/hfsplus/wrapper.c index ebb85e5..e254fa0 100644 --- a/fs/hfsplus/wrapper.c +++ b/fs/hfsplus/wrap

Re: [PATCH] net: adaptec: starfire: add checks for dma mapping errors

2017-01-23 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 21 Jan 2017 01:52:24 +0300 > init_ring() and refill_rx_ring() don't check if mapping dma memory succeed. > The patch adds the checks and failure handling. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov

[PATCH 1/1 linux-next] hfs: atomically read inode size

2017-01-23 Thread Fabian Frederick
See i_size_read() comments in include/linux/fs.h Signed-off-by: Fabian Frederick --- fs/hfs/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfs/mdb.c b/fs/hfs/mdb.c index a3ec3ae..482081b 100644 --- a/fs/hfs/mdb.c +++ b/fs/hfs/mdb.c @@ -38,7 +38,7 @@ static int hfs_g

Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic

2017-01-23 Thread Borislav Petkov
Hey Tony, a "welcome back" is in order? :-) On Mon, Jan 23, 2017 at 09:40:09AM -0800, Luck, Tony wrote: > If the system had experienced some memory corruption, but > recovered ... then there would be some pages sitting around > that the old kernel had marked as POISON and stopped using. > The kex

[PATCH] frv: add missing atomic64 operations

2017-01-23 Thread Sudip Mukherjee
From: Sudip Mukherjee Some more atomic64 operations were missing and as a result frv allmodconfig was failing. Add the missing operations. Signed-off-by: Sudip Mukherjee --- arch/frv/include/asm/atomic.h | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ar

[PATCH 1/1 linux-next] jfs: atomically read inode size

2017-01-23 Thread Fabian Frederick
See i_size_read() comments in include/linux/fs.h Signed-off-by: Fabian Frederick --- fs/jfs/resize.c | 4 ++-- fs/jfs/super.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/jfs/resize.c b/fs/jfs/resize.c index bd9b641..7ddcb44 100644 --- a/fs/jfs/resize.c +++ b/fs/j

Re: [PATCH v3 3/5] drm/rockchip/dsi: remove mode_valid function

2017-01-23 Thread Sean Paul
On Fri, Jan 20, 2017 at 06:10:49PM +0800, Chris Zhong wrote: > The MIPI DSI do not need check the validity of resolution, the max > resolution should depend VOP. Hence, remove rk3288_mipi_dsi_mode_valid > here. Does vop actually enforce this, though? I see that mode_config.max_width is 4096, but t

[PATCH 1/1 linux-next] fs/reiserfs: atomically read inode size

2017-01-23 Thread Fabian Frederick
See i_size_read() comments in include/linux/fs.h Signed-off-by: Fabian Frederick --- fs/reiserfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index e314cb3..feabcde 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-23 Thread kbuild test robot
Hi Nicolas, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc5 next-20170123] [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/Nicolas-Dichtel/uapi-export-all-headers

Re: [PATCHSET v4] blk-mq-scheduling framework

2017-01-23 Thread Jens Axboe
On 01/23/2017 10:04 AM, Paolo Valente wrote: > >> Il giorno 18 gen 2017, alle ore 17:21, Jens Axboe ha scritto: >> >> On 01/18/2017 08:14 AM, Paolo Valente wrote: >>> according to the function blk_mq_sched_put_request, the >>> mq.completed_request hook seems to always be invoked (if set) for a >>

[PATCH 1/3] coresight: fix kernel panic caused by invalid CPU

2017-01-23 Thread Mathieu Poirier
From: Wang Nan Commit d52c9750f150 ("coresight: reset "enable_sink" flag when need be") caused a kernel panic because of the using of an invalid value: after 'for_each_cpu(cpu, mask)', value of local variable 'cpu' become invalid, causes following 'cpu_to_node' access invalid memory area. This p

[PATCH 0/3] coresight: next v4.10-rc5

2017-01-23 Thread Mathieu Poirier
Hello, These are the patches to be queued for the 4.11 cycle. Please have a look when you have the opportunity. The set applies on your 'char-misc-next' branch (8e27a236312c). Regards, Mathieu Mathieu Poirier (1): coresight: etm4x: Fix timestamp configuration when working from perf Mike Lea

[PATCH 2/3] coresight: etm4x: Fix enabling of cycle accurate tracing in perf.

2017-01-23 Thread Mathieu Poirier
From: Mike Leach Using perf record 'cyclacc' option in cs_etm event was not setting up cycle accurate trace correctly. Corrects bit set in TRCCONFIGR to enable cycle accurate trace. Programs TRTLR with a valid threshold value as required by ETMv4 spec. Signed-off-by: Mike Leach Signed-off-

[PATCH 3/3] coresight: etm4x: Fix timestamp configuration when working from perf

2017-01-23 Thread Mathieu Poirier
When using the ETM4x tracers from the perf interface two trace options are available: cycle accurate and timestamp. Enabling the timestamp feature is done by setting TRCCONFIGR.TS (bit 11). The position of the timestamp bit in that register coincidentally happens to be the same as what was chosen

Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic

2017-01-23 Thread Luck, Tony
On Mon, Jan 23, 2017 at 03:50:56PM +0100, Borislav Petkov wrote: > On Mon, Jan 23, 2017 at 09:35:53PM +0800, Xunlei Pang wrote: > > One possible timing sequence would be: > > 1st kernel running on multiple cpus panicked > > then the crash dump code starts > > the crash dump code stops the others cp

[PATCH] usb: gadget: udc: constify usb_ep_ops structures

2017-01-23 Thread Bhumika Goyal
Declare usb_ep_ops structures as const as they are only stored in the ops field of an usb_ep structure. This field is of type const, so usb_ep_ops structures having this property can be made const too. Done using Coccinelle( A smaller version of the script) @r disable optional_qualifier@ identifie

Re: [PATCH v4 0/9] Implement clocksource for rockchip SoC using rockchip timer

2017-01-23 Thread Alexander Kochetkov
Heiko, Daniel, thanks a lot for review! I’ll send v5 series this week. Heiko, Daniel, may I add 'Reviewed-by:’ to patch series? Reviewed-by: Heiko Stübner ? Reviewed-by: Daniel Lezcano ? Regards, Alexander. > 23 янв. 2017 г., в 20:12, Heiko Stübner написал(а): > > Am Montag, 23. Januar 2017

Re: [PATCH v3 2/5] drm/rockchip/dsi: dw-mipi: support RK3399 mipi dsi

2017-01-23 Thread Sean Paul
On Fri, Jan 20, 2017 at 06:10:48PM +0800, Chris Zhong wrote: > The vopb/vopl switch register of RK3399 mipi is different from RK3288, > the default setting for mipi dsi mode is different too, so add a > of_device_id structure to distinguish them, and make sure set the > correct mode before mipi phy

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-23 Thread Borislav Petkov
On Mon, Jan 23, 2017 at 09:21:03AM -0800, Christoph Hellwig wrote: > Or keep the exported version as-is and never changed it, and use > a different copy for the kernel itself. Yeah, that's a good idea, thanks Christoph. I guess we'll have to do that if something in userspace has put its sticky fi

Re: [PATCH] tpm_tis: use default timeout value if chip reports it as zero

2017-01-23 Thread Maciej S. Szmigiero
On 16.01.2017 17:39, Jarkko Sakkinen wrote: > On Mon, Jan 16, 2017 at 03:58:26PM +0100, Maciej S. Szmigiero wrote: >> On 16.01.2017 14:55, Jarkko Sakkinen wrote: >>> On Mon, Jan 16, 2017 at 03:46:12PM +0200, Jarkko Sakkinen wrote: On Mon, Jan 16, 2017 at 11:42:02AM +0200, Jarkko Sakkinen wrote

Re: [tip:x86/urgent] x86/fpu: Set the xcomp_bv when we fake up a XSAVES area

2017-01-23 Thread Dave Hansen
On 01/23/2017 08:55 AM, Yu-cheng Yu wrote: > On Mon, Jan 23, 2017 at 07:36:20AM -0800, Dave Hansen wrote: >> The kernel xsave buffer should *ALWAYS* have the >> XCOMP_BV_COMPACTED_FORMAT bit set. It should have been set before the >> copyin and it should be set when it's finished. >> >> The best f

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-23 Thread Christoph Hellwig
On Mon, Jan 23, 2017 at 06:17:32PM +0100, Borislav Petkov wrote: > I know, we should not ever break userspace but if it were me, I'd remove > that export and see what breaks. If at all. Or keep the exported version as-is and never changed it, and use a different copy for the kernel itself.

Re: BUG: KASAN: Use-after-free

2017-01-23 Thread Christoph Hellwig
On Mon, Jan 23, 2017 at 05:07:52PM +0100, Matias Bjørling wrote: > Hi, > > I could use some help verifying an use-after-free bug that I am seeing > after the new direct I/O work went in. > > When issuing a direct write io using libaio, a bio is referenced in the > blkdev_direct_IO path, and then

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-23 Thread Borislav Petkov
On Mon, Jan 23, 2017 at 06:06:52PM +0100, Nicolas Dichtel wrote: > After digging a bit, it seems you have already tried to remove it in commit > b72e7464e4cf ("x86/uapi: Do not export as part of the user > API > headers"), but because this file is still listed in the Kbuild file, it is > still >

Re: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-23 Thread Dan Williams
On Mon, Jan 23, 2017 at 8:00 AM, Christoph Hellwig wrote: > On Sun, Jan 22, 2017 at 11:10:04PM -0800, Dan Williams wrote: >> How about we solve the copy_from_user() abuse first before we hijack >> this thread for some future feature that afaics has no patches posted >> yet. > > Solving copy_from_u

Re: [PATCH v3 0/3] Init device ids from ACPI of_compatible

2017-01-23 Thread Andy Shevchenko
On Mon, Jan 23, 2017 at 6:08 PM, Dan O'Donovan wrote: > (Re-submitting this patch set originally created by Leonard Crestez, > possibly abandoned by Leonard due to a change in employment) > > When using devicetree, stuff like i2c_client.name or spi_device.modalias > is initialized to the first DT

Re: [PATCH v4 0/9] Implement clocksource for rockchip SoC using rockchip timer

2017-01-23 Thread Heiko Stübner
Am Montag, 23. Januar 2017, 15:47:44 CET schrieb Daniel Lezcano: > On Wed, Dec 21, 2016 at 05:21:05PM +0300, Alexander Kochetkov wrote: > > Hello Heiko, Daniel! > > > > Are there any reasons why the patches [1][2] are not applied yet into > > kernel? How can I help in applying patches? > > Hi Ale

[PATCH v6 14/14] ARM: dts: da850-lcdk: enable the SATA node

2017-01-23 Thread Bartosz Golaszewski
Enable the SATA node for da850-lcdk. We omit the pinctrl property on purpose - the muxed SATA pins are not hooked up to anything SATA-related on the lcdk. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-lcdk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot

[PATCH v6 10/14] sata: ahci-da850: add a workaround for controller instability

2017-01-23 Thread Bartosz Golaszewski
We have a use case with the da850 SATA controller where at PLL0 frequency of 456MHz (needed to properly service the LCD controller) the chip becomes unstable and the hardreset operation is ignored the first time 50% of times. The sata core driver already retries to resume the link because some con

[PATCH v6 08/14] sata: ahci-da850: implement a workaround for the softreset quirk

2017-01-23 Thread Bartosz Golaszewski
There's an issue with the da850 SATA controller: if port multiplier support is compiled in, but we're connecting the drive directly to the SATA port on the board, the drive can't be detected. To make SATA work on the da850-lcdk board: first try to softreset with pmp - if the operation fails with -

Re: [PATCH v3 3/3] spi: acpi: Initialize modalias from of_compatible

2017-01-23 Thread Andy Shevchenko
On Mon, Jan 23, 2017 at 6:08 PM, Dan O'Donovan wrote: > From: Crestez Dan Leonard > > When using devicetree spi_device.modalias is set to the compatible > string with the vendor prefix removed. For SPI devices described via > ACPI the spi_device.modalias string is initialized by acpi_device_hid.

Re: [PATCH v2 3/3] pinctrl / gpio: Introduce .set_config() callback for GPIO chips

2017-01-23 Thread Johan Hovold
On Mon, Jan 23, 2017 at 03:34:34PM +0300, Mika Westerberg wrote: > Currently we already have two pin configuration related callbacks > available for GPIO chips .set_single_ended() and .set_debounce(). In > future we expect to have even more, which does not scale well if we need > to add yet another

[PATCH v6 07/14] sata: ahci-da850: add device tree match table

2017-01-23 Thread Bartosz Golaszewski
We're using device tree for da850-lcdk. Add the match table to allow to probe the driver. Signed-off-by: Bartosz Golaszewski Acked-by: Tejun Heo --- drivers/ata/ahci_da850.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 8cfd

[PATCH v6 06/14] ARM: davinci: da850: model the SATA refclk

2017-01-23 Thread Bartosz Golaszewski
Register a fixed rate clock modelling the external SATA oscillator for da850 (both DT and board file mode). Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da8xx-dt.c | 8 arch/arm/mach-davinci/devices-da8xx.c | 29 + arch/arm/mac

Re: [PATCH v3 2/3] i2c: acpi: Initialize info.type from of_compatible

2017-01-23 Thread Andy Shevchenko
On Mon, Jan 23, 2017 at 6:08 PM, Dan O'Donovan wrote: > From: Crestez Dan Leonard > > When using devicetree i2c_board_info.type is set to the compatible > string with the vendor prefix removed. For I2C devices described via > ACPI the i2c_board_info.type string is set to the ACPI device name. Whe

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-23 Thread Guenter Roeck
On Mon, Jan 23, 2017 at 03:40:31PM +0100, Pavel Machek wrote: > On Mon 2017-01-23 06:31:31, Guenter Roeck wrote: > > On 01/23/2017 06:19 AM, Pavel Machek wrote: > > >Hi! > > > > > >>It seems that battery driver stopped working on N900 between -rc4 and > > >>-rc5. > > > > > >pavel@amd:/data/l/linux-

[PATCH v6 01/14] devicetree: bindings: add bindings for ahci-da850

2017-01-23 Thread Bartosz Golaszewski
Add DT bindings for the TI DA850 AHCI SATA controller. Signed-off-by: Bartosz Golaszewski --- Documentation/devicetree/bindings/ata/ahci-da850.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/ata/ahci-da850.txt diff --git a/Docu

[PATCH v6 00/14] ARM: da850-lcdk: add SATA support

2017-01-23 Thread Bartosz Golaszewski
This series contains all the changes necessary to make SATA work on the da850-lcdk board. The first patch adds DT bindings for the ahci-da850 driver. The second enables relevant modules in davinci_all_defconfig. Patches 03/14-06/14 modify the way the clocks are handled regarding SATA on the da85

Re: [PATCH v4 9/9] clocksource/drivers/rockchip_timer: implement clocksource timer

2017-01-23 Thread Heiko Stübner
Am Dienstag, 29. November 2016, 19:14:52 CET schrieb Alexander Kochetkov: > The clock supplying the arm-global-timer on the rk3188 is coming from the > the cpu clock itself and thus changes its rate everytime cpufreq adjusts > the cpu frequency making this timer unsuitable as a stable clocksource >

[PATCH v6 12/14] ARM: davinci: remove BUG_ON() from da850_register_sata()

2017-01-23 Thread Bartosz Golaszewski
The ahci driver now supports other refclk clock rates. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/devices-da8xx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index cfceb32..7cf529f 100644 -

[PATCH v6 13/14] ARM: dts: da850: add the SATA node

2017-01-23 Thread Bartosz Golaszewski
Add the SATA node to the da850 device tree. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 104155d..3b5fd41e 100644 --- a/arch/arm/boot/dts/da850.dtsi

[PATCH v6 11/14] sata: ahci-da850: un-hardcode the MPY bits

2017-01-23 Thread Bartosz Golaszewski
All platforms using this driver now register the SATA refclk. Remove the hardcoded default value from the driver and instead read the rate of the external clock and calculate the required MPY value from it. Signed-off-by: Bartosz Golaszewski Acked-by: Tejun Heo --- drivers/ata/ahci_da850.c | 91

[PATCH v6 04/14] sata: ahci-da850: get the sata clock using a connection id

2017-01-23 Thread Bartosz Golaszewski
In preparation for using two clocks in the driver (the sysclk2-based clock and the external REFCLK), check if we got a functional clock after calling ahci_platform_get_resources(). If not, retry calling clk_get() with con_id specified. Signed-off-by: Bartosz Golaszewski Acked-by: Tejun Heo ---

[PATCH v6 02/14] ARM: davinci_all_defconfig: enable SATA modules

2017-01-23 Thread Bartosz Golaszewski
Add the da850-ahci driver to davinci defconfig. Signed-off-by: Bartosz Golaszewski --- arch/arm/configs/davinci_all_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig index 8806754..a1b9c58 100644 --- a

[PATCH v6 03/14] ARM: davinci: add a clock lookup entry for the SATA clock

2017-01-23 Thread Bartosz Golaszewski
This entry is needed for the ahci driver to get a functional clock. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da8xx-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index 9ee44da..b83e5d1 100644 --- a/

[PATCH v6 05/14] ARM: davinci: da850: add con_id for the SATA clock

2017-01-23 Thread Bartosz Golaszewski
The ahci-da850 SATA driver is now capable of retrieving clocks by con_id. Add the connection id for the sysclk2-derived SATA clock. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da850.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/da850

<    1   2   3   4   5   6   7   8   9   >