Re: Intermittent perf build failures

2016-10-12 Thread Laura Abbott
On 10/12/2016 03:12 AM, Jiri Olsa wrote: On Tue, Oct 11, 2016 at 02:18:49PM -0700, Laura Abbott wrote: On 10/11/2016 01:59 PM, Jiri Olsa wrote: On Tue, Oct 11, 2016 at 01:43:36PM -0700, Laura Abbott wrote: Hi, While building today's Fedora rawhide kernel, there was a failure building perf

Re: igb driver can cause cache invalidation of non-owned memory?

2016-10-12 Thread Nikita Yushchenko
> It would make more sense to update the DMA API for > __dma_page_cpu_to_dev on ARM so that you don't invalidate the cache if > the direction is DMA_FROM_DEVICE. No, in generic case it's unsafe. If CPU issued a write to a location, and sometime later that location is used as DMA buffer, there is

[PATCH 0/2] EDAC, sb_edac: Use Intel family processor macros

2016-10-12 Thread Piotr Luc
The intention of this series is to add KNM CPU ID to EDAC. The first patch improves code style by replacing raw numbers of CPUIDs with descriptive macros of processor names and removes trailing comments that are not needed anymore. The second patch enables EDAC to support KNM processor. The

Re: igb driver can cause cache invalidation of non-owned memory?

2016-10-12 Thread Alexander Duyck
On Wed, Oct 12, 2016 at 11:12 AM, Nikita Yushchenko wrote: >> It would make more sense to update the DMA API for >> __dma_page_cpu_to_dev on ARM so that you don't invalidate the cache if >> the direction is DMA_FROM_DEVICE. > > No, in generic case it's unsafe. > >

[PATCH] cpufreq: intel_pstate: Add Knights Mill CPUID

2016-10-12 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by intel_pstate. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Srinivas Pandruvada Cc: Len Brown Cc: "Rafael J. Wysocki"

[PATCH 2/2] mmc: sdhci-iproc: support standard byte register accesses

2016-10-12 Thread Scott Branden
Add bytewise register accesses support for newer versions of IPROC SDHCI controllers. Previous sdhci-iproc versions of SDIO controllers (such as Raspberry Pi and Cygnus) only allowed for 32-bit register accesses. Signed-off-by: Srinath Mannam Signed-off-by: Scott

[PATCH 0/2] mmc: sdhci-iproc: Add byte register access support

2016-10-12 Thread Scott Branden
Add brcm,sdhci-iproc compat string and code for support of newer versions of sdhci-iproc controller that allow byte-wise register accesses. Scott Branden (2): mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document mmc: sdhci-iproc: support standard byte register

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-12 Thread Chris Rorvick
On Wed, Oct 12, 2016 at 1:05 PM, Paul Bolle wrote: > On Wed, 2016-10-12 at 12:50 -0500, Chris Rorvick wrote: >> This may already be apparent, but Dell sells two versions of the 9350: >> one with the Broadcom adapter and one with the AC 8260. > > Off topic, for most readers: my

Re: [PATCH] [v9]Input: evdev: fix bug of dropping valid packet after syn_dropped event

2016-10-12 Thread Aniroop Mathur
Hello Mr. Torokhov, Hope you are doing great! Could you please help to update about below version of the patch? -- Copying text about last two problems in v8: Problem 1: Handle EVIOCG[type] for queue empty case --> Done Queue empty condition needs to be added before calling

[PATCH 1/2] mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document

2016-10-12 Thread Scott Branden
Adds brcm,sdhci-iproc compat string to DT bindings document for the iProc SDHCI driver. Signed-off-by: Anup Patel Signed-off-by: Scott Branden --- Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt | 1 + 1 file changed, 1

[PATCH 1/2] tools/power turbostat: Use Intel family processor macros

2016-10-12 Thread Piotr Luc
Use macros of Intel processor families instead of raw numbers. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: linux-kernel@vger.kernel.org --- tools/power/x86/turbostat/Makefile| 3 +- tools/power/x86/turbostat/turbostat.c | 242

[PATCH 2/2] tools/power turbostat: enable turbostat to support Knights Mill (KNM)

2016-10-12 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by turbostat. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: linux-kernel@vger.kernel.org --- Depends-on: x86/cpu/intel: Add Knights Mill to Intel family

[PATCH 0/2] tools/power turbostat: enable turbostat to support Knights Mill (KNM)

2016-10-12 Thread Piotr Luc
The intention of this series is to add KNM CPU ID to turbostat. The first patch improves code style by replacing raw numbers of CPUIDs with descriptive macros of processor names. The second patch enables turbostat to support KNM processor. The second patch depends oni patch: x86/cpu/intel: Add

[PATCH] x86/intel_idle: Add Knights Mill CPUID

2016-10-12 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by intel_idle. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: linux...@vger.kernel.org Cc: Len Brown Cc: linux-kernel@vger.kernel.org --- Depends-on: x86/cpu/intel: Add

[RFC v2 2/2] sdhci: Prevent SD from doing high-speed timing when broken-highspeed property is set

2016-10-12 Thread Zach Brown
When the broken-highspeed property is set the sdhci driver will not go into highspeed mode even if the controller and card appear to otherwise support highspeed mode. This is useful in cases where the controller and card support highspeed, but the board configuration or some other issue make

[RFC v2 1/2] sdhci: Add device tree property broken-highspeed

2016-10-12 Thread Zach Brown
Certain board configurations can make highspeed malfuction due to timing issues. In these cases a way is needed to force the controller and card into standard speed even if they otherwise appear to be capable of highspeed. The broken-highspeed property will let the sdhci driver know that

[RFC v2 0/2] Add device tree property and driver behavior for supporting sdhci configurations with broken highspeed.

2016-10-12 Thread Zach Brown
Some board configurations can not support sd highspeed mode due to the distance between the card slot and the controller. The card and controller report that they are capable of highspeed however, so we need a mechanism for specifying that the setup is incapable of supporting highspeed mode. The

Re: [PATCH V2] cpufreq: skip invalid entries when searching the frequency

2016-10-12 Thread Aaro Koskinen
Hi, On Wed, Oct 12, 2016 at 08:45:05AM +0530, Viresh Kumar wrote: > From: Aaro Koskinen > > Skip invalid entries when searching the frequency. This fixes cpufreq > at least on loongson2 MIPS board. > > Fixes: da0c6dc00c69 ("cpufreq: Handle sorted frequency tables more >

[GIT PULL] nfsd changes for 4.9

2016-10-12 Thread J. Bruce Fields
Please pull nfsd changes from: git://linux-nfs.org/~bfields/linux.git tags/nfsd-4.9 for you to fetch changes up to 29ae7f9dc21a7dda41d78b27bbda7d427ece8ad4: NFSD: Implement the COPY call (2016-10-07 14:54:25 -0400) Some RDMA

Re: [PATCH V3 01/10] acpi: apei: read ack upon ghes record consumption

2016-10-12 Thread Punit Agrawal
Hi Tyler, A few comments below. Tyler Baicar writes: > A RAS (Reliability, Availability, Serviceability) controller > may be a separate processor running in parallel with OS > execution, and may generate error records for consumption by > the OS. If the RAS controller

[PATCH 2/2] EDAC, sb_edac: Add Knights Mill CPUID

2016-10-12 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by sb_edac. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Mauro Carvalho Chehab Cc: Doug Thompson Cc: Borislav Petkov Cc:

[PATCH 1/2] EDAC, sb_edac: Use Intel family processor macros

2016-10-12 Thread Piotr Luc
Use macros of Intel processor families instead of raw numbers. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Mauro Carvalho Chehab Cc: Doug Thompson Cc: Borislav Petkov Cc:

Re: [PATCH -v4 2/8] locking/mutex: Rework mutex::owner

2016-10-12 Thread Davidlohr Bueso
On Fri, 07 Oct 2016, Peter Zijlstra wrote: +/* + * Optimistic trylock that only works in the uncontended case. Make sure to + * follow with a __mutex_trylock() before failing. + */ +static __always_inline bool __mutex_trylock_fast(struct mutex *lock) +{ + unsigned long curr = (unsigned

[PATCH] powercap / RAPL: Add Knights Mill CPUID

2016-10-12 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by intel_rapl Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: "Rafael J. Wysocki" Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Depends-on:

[GIT PULL REQUEST] watchdog - v4.9 merge window

2016-10-12 Thread Wim Van Sebroeck
Hi Linus, Please pull from 'master' branch of git://www.linux-watchdog.org/linux-watchdog.git It contains: * a new watchdog pretimeout governor framework * support to upload the firmware on the ziirave_wdt * several fixes and cleanups This will update the following files:

[PATCH] perf/x86/intel/uncore: Add Knights Mill CPUID

2016-10-12 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by PMU. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc:

[PATCH v2] soc: rockchip: avoid infinite loop for power domain

2016-10-12 Thread Caesar Wang
In some cases, we have met the infinite loop in rockchip_pmu_set_idle_request() or rockchip_do_pmu_set_power_domain(). As the crosbug.com/p/57351 reported, the boot hangs right after this [1.629163] bootconsole [uart8250] disabled [1.639286] [drm:drm_core_init] Initialized drm 1.1.0 20060810

Re: [Intel-gfx] drm/i915: WARN_ON_ONCE(!crtc_clock || cdclk < crtc_clock)

2016-10-12 Thread Paul Bolle
On Wed, 2016-10-12 at 14:06 +0200, Paul Bolle wrote: > That might take some time. Because bisecting always takes a long time > and especially since hitting this WARNING sometimes takes over an hour. > Anyhow, please prod me if I stay silent for too long. For the record: I just had to power cycle

[PATCH] acpi_os_vprintf: Use printk_get_level() to avoid unnecessary KERN_CONT

2016-10-12 Thread Joe Perches
acpi_os_vprintf currently always uses a KERN_CONT prefix which may be followed immediately by a proper KERN_. Check if the buffer already has a KERN_ at the start of the buffer and avoid the unnecessary KERN_CONT. Signed-off-by: Joe Perches --- drivers/acpi/osl.c | 13

[PATCH v2] arm64: defconfig: enable EEPROM_AT25 config option

2016-10-12 Thread Scott Branden
Enable support for on board SPI EEPROM by turning on CONFIG_EEPROM_AT25. This needs to be on in order to boot and test the kernel with a static rootfs image that is not rebuilt everytime the kernel is rebuilt. Signed-off-by: Scott Branden ---

[BUG] errors in void transport_add_device() function

2016-10-12 Thread Tahsin Erdogan
transport_add_device() is declared as void but it can actually fail. Since the caller has no knowledge of the error, a later call to transport_remove_device() may cause a kernel crash. An example is a memory allocation error in this call path: int device_private_init(struct device *dev) {

[PATCH 1/2] net: wan: slic_ds26522: add SPI device ID table to fix module autoload

2016-10-12 Thread Javier Martinez Canillas
If the driver is built as a module, module alias information isn't filled so the module won't be autoloaded. Add a SPI device ID table and use the MODULE_DEVICE_TABLE() macro so the information is exported in the module. Before this patch: $ modinfo drivers/net/wan/slic_ds26522.ko | grep alias $

[PATCH 2/2] net: wan: slic_ds26522: Export OF module alias information

2016-10-12 Thread Javier Martinez Canillas
When the device is registered via OF, the OF table is used to match the driver instead of the SPI device ID table, but the entries in the later are used as aliasses to load the module if the driver was not built-in. This is because the SPI core always reports an SPI module alias instead of an OF

[PATCH] perf/x86/intel/rapl: Add Knights Mill CPUID

2016-10-12 Thread Piotr Luc
Add Knights Mill (KNM) to the list of CPUIDs supported by rapl. Signed-off-by: Piotr Luc Reviewed-by: Dave Hansen Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc:

Re: [PATCH v2 00/16] Convert FibreChannel bsg code to use bsg-lib

2016-10-12 Thread Steffen Maier
Hi Johannes, On 10/12/2016 03:06 PM, Johannes Thumshirn wrote: This series converts the current bsg usage in the FibreChannel drivers over to use bsg-lib. SAS will follow once FC is in a good enough shape. I did take some inspiration from a similar patchset from Mike Christie dating back to

Re: [PATCH] cpufreq: intel_pstate: Add Knights Mill CPUID

2016-10-12 Thread Rafael J. Wysocki
On Wednesday, October 12, 2016 08:25:50 PM Piotr Luc wrote: > Add Knights Mill (KNM) to the list of CPUIDs supported by intel_pstate. > > Signed-off-by: Piotr Luc > Reviewed-by: Dave Hansen > Cc: Srinivas Pandruvada

[PATCH] cpufreq: conservative: Fix next frequency selection

2016-10-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit d352cf47d93e (cpufreq: conservative: Do not use transition notifications) overlooked the case when the "frequency step" used by the conservative governor is small relative to the distances between the available frequencies and broke the

Re: [PATCH] arch/x86: Remove second call to topology_update_package_map()

2016-10-12 Thread Tim Chen
On Wed, 2016-10-12 at 11:06 -0400, Prarit Bhargava wrote: > > On 10/12/2016 10:36 AM, Prarit Bhargava wrote: > > > > This was noticed during the investigation of > > > > http://git.kernel.org/tip/2a51fe083eba7f99cbda72f5ef90cdf2f4df882c > > > > A note for reviewers on the cleanup in

[PATCH] staging: greybus: timesync.c: Fixed WARNING for brace issue

2016-10-12 Thread Chase Metzger
Removed a checkpatch warning for braces on single argument if and else statement. Signed-off-by: Chase Metzger --- drivers/staging/greybus/timesync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/greybus/timesync.c

Re: [PATCH v3 0/1] man/set_mempolicy.2,mbind.2: add MPOL_LOCAL NUMA memory policy documentation

2016-10-12 Thread Christoph Lameter
On Wed, 12 Oct 2016, Piotr Kwapulinski wrote: > That's right. This could be "local allocation" or any other memory policy. Correct.

[PATCH] net: wan: slic_ds26522: Allow driver to built if COMPILE_TEST is enabled

2016-10-12 Thread Javier Martinez Canillas
The driver only has runtime but no build time dependency with FSL_SOC || ARCH_MXC || ARCH_LAYERSCAPE. So it can be built for testing purposes if the COMPILE_TEST option is enabled. This is useful to have more build coverage and make sure that the driver is not affected by changes that could

Re: [PATCH V2] cpufreq: skip invalid entries when searching the frequency

2016-10-12 Thread Rafael J. Wysocki
On Wednesday, October 12, 2016 09:33:03 PM Aaro Koskinen wrote: > Hi, > > On Wed, Oct 12, 2016 at 08:45:05AM +0530, Viresh Kumar wrote: > > From: Aaro Koskinen > > > > Skip invalid entries when searching the frequency. This fixes cpufreq > > at least on loongson2 MIPS

[PATCH] platform/x86: asus-wmi: add SERIO_I8042 dependency

2016-10-12 Thread Arnd Bergmann
A recent bugfix added a call to i8042_install_filter but did not add the dependency, leading to possible link errors: drivers/platform/built-in.o: In function `asus_nb_wmi_quirks': asus-nb-wmi.c:(.text+0x23af): undefined reference to `i8042_install_filter' This adds a dependency on

Re: [PATCH -v4 2/8] locking/mutex: Rework mutex::owner

2016-10-12 Thread Jason Low
On Wed, 2016-10-12 at 10:59 -0700, Davidlohr Bueso wrote: > On Fri, 07 Oct 2016, Peter Zijlstra wrote: > >+/* > >+ * Optimistic trylock that only works in the uncontended case. Make sure to > >+ * follow with a __mutex_trylock() before failing. > >+ */ > >+static __always_inline bool

Re: [RFC] arm64: Enforce observed order for spinlock and data

2016-10-12 Thread bdegraaf
On 2016-10-05 11:30, bdegr...@codeaurora.org wrote: On 2016-10-05 11:10, Peter Zijlstra wrote: On Wed, Oct 05, 2016 at 10:55:57AM -0400, bdegr...@codeaurora.org wrote: On 2016-10-04 15:12, Mark Rutland wrote: >Hi Brent, > >Could you *please* clarify if you are trying to solve: > >(a) a

Re: [PATCH v3 2/2] i2c: aspeed: added documentation for Aspeed I2C driver

2016-10-12 Thread Brendan Higgins
I never got an acknowledgement to this email: http://www.spinics.net/lists/devicetree/msg143944.html The "bus" number is something that is defined as part of the hardware specification for this device. It seems we will not be able to do away with the "bus" number parameter. Joel suggested going

[PATCH v3] z3fold: add shrinker

2016-10-12 Thread Vitaly Wool
This patch implements shrinker for z3fold. This shrinker implementation does not free up any pages directly but it allows for a denser placement of compressed objects which results in less actual pages consumed and higher compression ratio therefore. This patch has been checked with the latest

Re: [PATCH] arch/x86: Remove second call to topology_update_package_map()

2016-10-12 Thread Prarit Bhargava
On 10/12/2016 03:51 PM, Tim Chen wrote: > On Wed, 2016-10-12 at 11:06 -0400, Prarit Bhargava wrote: >> >> On 10/12/2016 10:36 AM, Prarit Bhargava wrote: >>> >>> This was noticed during the investigation of >>> >>> http://git.kernel.org/tip/2a51fe083eba7f99cbda72f5ef90cdf2f4df882c >>> >>> A note

[PATCH] score: traps: Add missing include file to fix build error

2016-10-12 Thread Guenter Roeck
score images fail to build as follows. arch/score/kernel/traps.c: In function 'show_stack': arch/score/kernel/traps.c:55:3: error: implicit declaration of function '__get_user' __get_user() is declared in asm/uaccess.h, which was previously included through asm/module.h. Cc: Al Viro

Re: [PATCH] irqchip/jcore: fix lost per-cpu interrupts

2016-10-12 Thread Paul E. McKenney
On Wed, Oct 12, 2016 at 12:35:43PM -0400, Rich Felker wrote: > On Wed, Oct 12, 2016 at 10:18:02AM +0200, Thomas Gleixner wrote: > > On Tue, 11 Oct 2016, Rich Felker wrote: > > > On Sun, Oct 09, 2016 at 09:23:58PM +0200, Thomas Gleixner wrote: > > > > On Sun, 9 Oct 2016, Rich Felker wrote: > > > >

Re: [GIT PULL REQUEST] watchdog - v4.9 merge window

2016-10-12 Thread Linus Torvalds
On Wed, Oct 12, 2016 at 11:35 AM, Wim Van Sebroeck wrote: > Hi Linus, > > Please pull from 'master' branch of > git://www.linux-watchdog.org/linux-watchdog.git That site really is very ill. It's timing out or getting "Connection reset by peer" errors. How about just

[PATCH] sparc64: Multi-page size support

2016-10-12 Thread Nitin Gupta
Add support for using multiple hugepage sizes simultaneously on mainline. Currently, support for 256M has been added which can be used along with 8M pages. Page tables are set like this (e.g. for 256M page): VA + (8M * x) -> PA + (8M * x) (sz bit = 256M) where x in [0, 31] and TSB is set

[PATCH 1/2] perf, tools: Implement branch_type event parameter

2016-10-12 Thread Andi Kleen
From: Andi Kleen It can be useful to specify branch type state per event, for example if we want to collect both software trace points and last branch PMU events in a single collection. Currently this doesn't work because the software trace point errors out with -b. There

Re: [PATCH V3 09/10] trace, ras: add ARM processor error trace event

2016-10-12 Thread Baicar, Tyler
Hello Steve, Thank you for your feedback! Responses below. On 10/7/2016 3:39 PM, Steven Rostedt wrote: On Fri, 7 Oct 2016 15:31:21 -0600 Tyler Baicar wrote: Currently there are trace events for the various RAS errors with the exception of ARM processor type errors.

timekeeping: Cycle offset (32) is larger than allowed by the 'jiffies' clock's max_cycles value (10): time overflow danger

2016-10-12 Thread Helge Deller
When enabling CONFIG_DEBUG_TIMEKEEPING, I see on kernel 4.8 git head those warnings on the parisc architecture: Linux version 4.8.0-64bit+ (del...@p100.box) (gcc version 4.9.2 20150212 (Red Hat Cross 4.9.2-5) (GCC) ) #516 SMP Wed Oct 12 22:52:58 CEST 2016 ... clocksource: cr16: mask:

Re: [PATCH 3/8] PM / OPP: Manage supply's voltage/current in a separate structure

2016-10-12 Thread Dave Gerlach
Hi, On 10/04/2016 06:56 AM, Viresh Kumar wrote: This is a preparatory step for multiple regulator per device support. Move the voltage/current variables to a new structure. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c| 44

Re: linux-next: build failure after merge of the akpm-current tree

2016-10-12 Thread Andrew Morton
On Wed, 12 Oct 2016 13:40:10 +1100 Stephen Rothwell wrote: > After merging the akpm-current tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from include/linux/list.h:8:0, > from

Re: [RFC v2 PATCH] mm/percpu.c: fix panic triggered by BUG_ON() falsely

2016-10-12 Thread Andrew Morton
On Tue, 11 Oct 2016 22:00:28 +0800 zijun_hu wrote: > as shown by pcpu_build_alloc_info(), the number of units within a percpu > group is educed by rounding up the number of CPUs within the group to > @upa boundary, therefore, the number of CPUs isn't equal to the units's > if

[PATCH 2/2] perf, tools: Add documentation for perf user event parameters

2016-10-12 Thread Andi Kleen
From: Andi Kleen There was no proper documention for the user parameters for events that the perf parser implements. Document them all in the perf list manpage. Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-list.txt | 42

Re: [PATCH v8 2/2] clocksource: add J-Core timer/clocksource driver

2016-10-12 Thread Daniel Lezcano
On Wed, Oct 12, 2016 at 01:02:36PM -0400, Rich Felker wrote: > On Wed, Oct 12, 2016 at 11:27:11AM +0200, Daniel Lezcano wrote: > > > > Are the CPUs on always-on power down ? > > > > > > For now they are always on and don't even have the sleep instruction > > > (i.e. stop cpu clock until

[PATCH] perf: dynamically change verbosity level in perf top

2016-10-12 Thread Alexis Berlemont
Hi, Here is a small patch which tries to fulfill a point in the perf todo list: * Make pressing 'V' multiple times to go on cycling thru various verbosity levels in 'perf top', so that info that is present in 'perf top -v' can be obtained without having to restart the tool (acme). After a

[PATCH 1/4] hw_breakpoint: Allow watchpoint of length 3,5,6 and 7

2016-10-12 Thread Pratyush Anand
We only support breakpoint/watchpoint of length 1, 2, 4 and 8. If we can support other length as well, then user may watch more data with less number of watchpoints (provided hardware supports it). For example: if we have to watch only 4th, 5th and 6th byte from a 64 bit aligned address, we will

Re: [PATCH] drivers: staging: greybus: audio_manager_sysfs.c: Fixed CHECK for brace issue

2016-10-12 Thread Vaibhav Agarwal
On Wed, Oct 12, 2016 at 4:52 AM, Chase Metzger wrote: > Added braces to else and else if statements where checkpatch complained. > > Signed-off-by: Chase Metzger > --- > drivers/staging/greybus/audio_manager_sysfs.c | 5 +++-- > 1 file

Re: [PATCH] strparser: Propagate correct error code in strp_recv()

2016-10-12 Thread David Miller
From: Geert Uytterhoeven Date: Thu, 6 Oct 2016 15:41:49 +0200 > With m68k-linux-gnu-gcc-4.1: > > net/strparser/strparser.c: In function ‘strp_recv’: > net/strparser/strparser.c:98: warning: ‘err’ may be used uninitialized in > this function > > Pass "len" (which

Re: [PATCH] drivers: staging: greybus: audio_topology.c: Fixed CHECKS for brace issues

2016-10-12 Thread Vaibhav Agarwal
On Wed, Oct 12, 2016 at 5:19 AM, Chase Metzger wrote: > Added braces for else and else if statements where checkpatch complained. > > Signed-off-by: Chase Metzger > --- > drivers/staging/greybus/audio_topology.c | 7 +-- > 1 file changed,

[patch] drm/amdgpu: potential NULL dereference in debugfs code

2016-10-12 Thread Dan Carpenter
debugfs_create_file() returns NULL on error, it only returns error pointers if debugfs isn't enabled in the config and we checked for that earlier so it can't happen. Fixes: 4f4824b55650 ('drm/amd/amdgpu: Convert ring debugfs entries to binary') Signed-off-by: Dan Carpenter

Re: [PATCH 6/6] cpufreq: pxa: convert to clock API

2016-10-12 Thread Robert Jarzmik
Viresh Kumar writes: > On 10-10-16, 22:09, Robert Jarzmik wrote: >> As the clock settings have been introduced into the clock pxa drivers, >> which are now available to change the CPU clock by themselves, remove >> the clock handling from this driver, and rely on pxa

[PATCH 3/4] arm64: Allow hw watchpoint of length 3,5,6 and 7

2016-10-12 Thread Pratyush Anand
Since, arm64 can support all offset within a double word limit. Therefore, now support other lengths within that range as well. Signed-off-by: Pratyush Anand --- arch/arm64/include/asm/hw_breakpoint.h | 4 arch/arm64/kernel/hw_breakpoint.c | 36

[PATCH 4/4] selftests: arm64: add test for unaligned watchpoint address handling

2016-10-12 Thread Pratyush Anand
ARM64 hardware expects 64bit aligned address for watchpoint invocation. However, it provides byte selection method to select any number of consecutive byte set within the range of 1-8. This patch adds support to test all such byte selection option for different memory write sizes. Signed-off-by:

[PATCH 2/4] arm64: Allow hw watchpoint at varied offset from base address

2016-10-12 Thread Pratyush Anand
ARM64 hardware supports watchpoint at any double word aligned address. However, it can select any consecutive bytes from offset 0 to 7 from that base address. For example, if base address is programmed as 0x420030 and byte select is 0x1C, then access of 0x420032,0x420033 and 0x420034 will generate

[PATCH 0/4] ARM64: More flexible HW watchpoint

2016-10-12 Thread Pratyush Anand
Currently, we do not support all the byte select option provided by ARM64 specs for a HW watchpoint. This patch set will help user to instrument a watchpoint with all possible byte select options. Pratyush Anand (4): hw_breakpoint: Allow watchpoint of length 3,5,6 and 7 arm64: Allow hw

Re: [PATCH 32/41] staging: lustre: llite: restart short read/write for normal IO

2016-10-12 Thread Greg Kroah-Hartman
On Wed, Oct 12, 2016 at 12:22:35AM +0100, James Simmons wrote: > > > On Sun, Oct 02, 2016 at 10:28:28PM -0400, James Simmons wrote: > > > From: Bobi Jam > > > > > > If normal IO got short read/write, we'd restart the IO from where > > > we've accomplished until we meet EOF

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-12 Thread Luca Coelho
Hi Paul, On Tue, 2016-10-11 at 12:11 +0200, Paul Bolle wrote: > On Mon, 2016-10-10 at 17:02 +0300, Luca Coelho wrote: > > On Mon, 2016-10-10 at 02:19 -0500, Chris Rorvick wrote: > > This is not coming from the NIC itself, but from the platform's ACPI > > tables.  Can you tell us which platform you

Re: [PATCH 6/6] cpufreq: pxa: convert to clock API

2016-10-12 Thread Viresh Kumar
On 12-10-16, 08:22, Robert Jarzmik wrote: > Viresh Kumar writes: > > > On 10-10-16, 22:09, Robert Jarzmik wrote: > >> As the clock settings have been introduced into the clock pxa drivers, > >> which are now available to change the CPU clock by themselves, remove > >>

[PATCH v6 2/2] devicetree: bindings: uart: Add new compatible string for ZynqMP

2016-10-12 Thread Nava kishore Manne
From: Nava kishore Manne This patch Adds the new compatible string for ZynqMP SoC. Signed-off-by: Nava kishore Manne --- Changes for v6: -Added New compatiable string for ZynqMP SoC as suggested by Rob Herring. Changes

Re: [PATCH RFC 2/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode

2016-10-12 Thread Wanpeng Li
2016-10-11 23:06 GMT+08:00 Radim Krčmář : > 2016-10-11 20:17+0800, Wanpeng Li: >> From: Wanpeng Li >> >> Most windows guests still utilize APIC Timer periodic/oneshot mode >> instead of tsc-deadline mode, and the APIC Timer periodic/oneshot >> mode are

[GIT PULL] fbdev changes for 4.9

2016-10-12 Thread Tomi Valkeinen
Hi Linus, Please pull fbdev changes for 4.9. Tomi The following changes since commit 29b4817d4018df78086157ea3a55c1d9424a7cfc: Linux 4.8-rc1 (2016-08-07 18:18:00 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux.git tags/fbdev-4.9

Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when allocate a odd alignment area

2016-10-12 Thread Michal Hocko
On Wed 12-10-16 15:24:33, zijun_hu wrote: > On 10/12/2016 02:53 PM, Michal Hocko wrote: > > On Wed 12-10-16 08:28:17, zijun_hu wrote: > >> On 2016/10/12 1:22, Michal Hocko wrote: > >>> On Tue 11-10-16 21:24:50, zijun_hu wrote: > From: zijun_hu > > the LSB of a

[PATCH] mm: kmemleak: Ensure that the task stack is not freed during scanning

2016-10-12 Thread Catalin Marinas
Commit 68f24b08ee89 ("sched/core: Free the stack early if CONFIG_THREAD_INFO_IN_TASK") may cause the task->stack to be freed during kmemleak_scan() execution, leading to either a NULL pointer fault (if task->stack is NULL) or kmemleak accessing already freed memory. This patch uses the new

Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when allocate a odd alignment area

2016-10-12 Thread zijun_hu
On 10/12/2016 05:54 PM, Michal Hocko wrote: > On Wed 12-10-16 16:44:31, zijun_hu wrote: >> On 10/12/2016 04:25 PM, Michal Hocko wrote: >>> On Wed 12-10-16 15:24:33, zijun_hu wrote: > [...] i found the following code segments in mm/vmalloc.c static struct vmap_area

[PATCH v1 0/4] Enabling Ring 3 MONITOR/MWAIT feature for Knights Landing

2016-10-12 Thread Grzegorz Andrejczuk
These patches enable Intel Xeon Phi x200 feature to use MONITOR/MWAIT instruction in ring 3 (userspace) Patches set MSR 0x140 for all logical CPUs. Then expose it as CPU feature and introduces elf HWCAP capability for x86. Reference:

[PATCH v1 4/4] Add R3MWAIT to CPU features

2016-10-12 Thread Grzegorz Andrejczuk
Add cpu feature for ring 3 monitor/mwait. Change-Id: Iba4d20639efd8d3637d37db9294cbc43a98f009a Signed-off-by: Grzegorz Andrejczuk --- arch/x86/include/asm/cpufeature.h| 6 -- arch/x86/include/asm/cpufeatures.h | 6 +-

[PATCH v1 2/4] Add enabling of the R3 MWAIT during boot for KNL

2016-10-12 Thread Grzegorz Andrejczuk
If processor is Intel Xeon Phi we enable user-level mwait feature. Enabling this feature suppreses invalid-opcode error, when MONITOR/MWAIT is called from ring 3. Change-Id: I1c7defb99296b022790a068a6c725b3e860cd68c Signed-off-by: Grzegorz Andrejczuk ---

[PATCH v1 1/4] Add R3MWAIT register and bit to msr-info.h

2016-10-12 Thread Grzegorz Andrejczuk
Intel Xeon Phi x200 (codenamed Knights Landing) has MSR MISC_THD_FEATURE_ENABLE 0x140. Setting its 2nd bit make MONITOR and MWAIT instructions do not cause invalid-opcode exception. This commit adds this register prefixed by PHI and bit to msr-info.h Reference:

Re: [Xen-devel] [RFC KERNEL PATCH 0/2] Add Dom0 NVDIMM support for Xen

2016-10-12 Thread Haozhong Zhang
On 10/11/16 13:17 -0700, Dan Williams wrote: On Tue, Oct 11, 2016 at 12:48 PM, Konrad Rzeszutek Wilk wrote: On Tue, Oct 11, 2016 at 12:28:56PM -0700, Dan Williams wrote: On Tue, Oct 11, 2016 at 11:33 AM, Konrad Rzeszutek Wilk wrote: > On Tue,

[PATCH] acpi: don't register acpi_pad driver if running as xen dom0

2016-10-12 Thread Juergen Gross
When running as Xen dom0 a special processor_aggregator driver is needed. Don't register the standard driver in this case. Without that check an error message: "Error: Driver 'processor_aggregator' is already registered, aborting..." will be displayed. Signed-off-by: Juergen Gross

Re: [PATCH 1/7 v4] sched: factorize attach entity

2016-10-12 Thread Dietmar Eggemann
On 12/10/16 11:59, Vincent Guittot wrote: > On 7 October 2016 at 01:11, Vincent Guittot > wrote: >> >> On 5 October 2016 at 11:38, Dietmar Eggemann >> wrote: >>> On 09/26/2016 01:19 PM, Vincent Guittot wrote: [...] -static void

Re: [PATCH RESEND] ARM: dts: keystone-k2*: Increase SPI Flash partition size for U-Boot

2016-10-12 Thread Vignesh R
Hi, On Monday 10 October 2016 09:31 PM, Santosh Shilimkar wrote: > Vignesh, > > On 10/10/2016 7:31 AM, Russell King - ARM Linux wrote: >> On Mon, Oct 10, 2016 at 07:41:41PM +0530, Vignesh R wrote: >>> U-Boot SPI Boot image is now more than 512KB for Keystone2 devices and >>> cannot fit into

Re: [PATCH 0/2] ARM: at91: properly handle LPDDR poweroff

2016-10-12 Thread Alexandre Belloni
On 10/10/2016 at 08:00:30 +0200, Alexander Stein wrote : > Hi Alexandre, > > On Friday 07 October 2016 18:34:25, Alexandre Belloni wrote: > > Hi, > > > > This patch set improves LPDDR support on SoCs using the Atmel MPDDR > > controller. > > > > LPDDR memoris can only handle up to 400

[PATCH v2] usb: dwc3: gadget: Wait for end transfer complete before free irq

2016-10-12 Thread Baolin Wang
When we change the USB function with configfs frequently, sometimes it will hang the system to crash. The reason is the gadget driver can not hanle the end transfer complete event after free the gadget irq (since the xHCI will share the same interrupt number with gadget, thus when free the gadget

[PATCH v3 3/4] mm: try to exhaust highatomic reserve before the OOM

2016-10-12 Thread Minchan Kim
I got OOM report from production team with v4.4 kernel. It had enough free memory but failed to allocate GFP_KERNEL order-0 page and finally encountered OOM kill. It occured during QA process which launches several apps, switching and so on. It happned rarely. IOW, In normal situation, it was not

Re: [PATCH] gpio: mockup: add sysfs dependency

2016-10-12 Thread Linus Walleij
On Mon, Oct 10, 2016 at 2:42 PM, Arnd Bergmann wrote: > Building the gpio-mockup driver without SYSFS results in a harmless Kconfig > warning: > > warning: (GPIO_MOCKUP) selects GPIO_SYSFS which has unmet direct dependencies > (GPIOLIB && SYSFS) > > We can easily avoid that

Re: [PATCH v8 2/2] clocksource: add J-Core timer/clocksource driver

2016-10-12 Thread Daniel Lezcano
On Tue, Oct 11, 2016 at 04:28:50PM -0400, Rich Felker wrote: > On Tue, Oct 11, 2016 at 08:18:12PM +0200, Daniel Lezcano wrote: > > > > Hi Rich, > > > > On Sun, Oct 09, 2016 at 05:34:22AM +, Rich Felker wrote: > > > At the hardware level, the J-Core PIT is integrated with the interrupt > > >

Re: [PATCH v8 6/6] mfd: lpc_ich: Add support for Intel Apollo Lake GPIO pinctrl in non-ACPI system

2016-10-12 Thread Andy Shevchenko
On Wed, 2016-10-12 at 14:51 +0800, Tan Jui Nee wrote: > This driver uses the P2SB hide/unhide mechanism cooperatively > to pass the PCI BAR address to the gpio platform driver. > Almost minor issues below. > --- a/drivers/mfd/Makefile > +++ b/drivers/mfd/Makefile > @@ -161,6 +161,10 @@

Re: [PATCH v8 4/6] mfd: move enum lpc_chipsets into lpc_ich.h

2016-10-12 Thread Andy Shevchenko
On Wed, 2016-10-12 at 14:51 +0800, Tan Jui Nee wrote: > Move the enum's definition into a standalone header file which can be > used > wherever its definition is needed. > > --- a/include/linux/mfd/lpc_ich.h > +++ b/include/linux/mfd/lpc_ich.h > @@ -43,4 +43,75 @@ struct lpc_ich_info { >   u8

Re: [PATCH] mm: page_alloc: Use KERN_CONT where appropriate

2016-10-12 Thread Joe Perches
(resending as lkml bounced) On Wed, 2016-10-12 at 11:10 +0200, Michal Hocko wrote: > On Tue 11-10-16 19:24:55, Joe Perches wrote: > > Recent changes to printk require KERN_CONT uses to continue logging > > messages. So add KERN_CONT where necessary. > > > > I was really wondering what

Re: [PATCH v3 4/4] MIPS: Deprecate VPE Loader

2016-10-12 Thread Hauke Mehrtens
This interface is currently used by the Intel / Lantiq voice Firmware. This firmware is used by all Intel / Lantiq MIPS SoCs when they should support analog voice. What is the proposed timeline for the removal of this interface? Hauke On 10/11/2016 03:42 PM, Matt Redfearn wrote: > The MIPS

Re: [PATCH RESEND] ARM: dts: keystone-k2*: Increase SPI Flash partition size for U-Boot

2016-10-12 Thread Russell King - ARM Linux
On Wed, Oct 12, 2016 at 04:30:28PM +0530, Vignesh R wrote: > Hi, > > On Monday 10 October 2016 08:01 PM, Russell King - ARM Linux wrote: > > On Mon, Oct 10, 2016 at 07:41:41PM +0530, Vignesh R wrote: > >> U-Boot SPI Boot image is now more than 512KB for Keystone2 devices and > >> cannot fit into

Re: [linux-sunxi] [PATCH 4/5] ARM: dts: sun6i: add pinmux for PWM0

2016-10-12 Thread Chen-Yu Tsai
On Wed, Oct 12, 2016 at 12:20 PM, Icenowy Zheng wrote: > PWM0 is used by sun6i tablets as the backlight PWM. > > Add pinmux for it. > > Signed-off-by: Icenowy Zheng > --- > arch/arm/boot/dts/sun6i-a31.dtsi | 7 +++ > 1 file changed, 7 insertions(+) > >

Re: [PATCH v5 15/17] dax: add struct iomap based DAX PMD support

2016-10-12 Thread Jan Kara
On Tue 11-10-16 16:51:30, Ross Zwisler wrote: > On Tue, Oct 11, 2016 at 10:31:52AM +0200, Jan Kara wrote: > > On Fri 07-10-16 15:09:02, Ross Zwisler wrote: > > > diff --git a/fs/dax.c b/fs/dax.c > > > index ac3cd05..e51d51f 100644 > > > --- a/fs/dax.c > > > +++ b/fs/dax.c > > > @@ -281,7 +281,7 @@

  1   2   3   4   5   6   7   >