Re: [RFC PATCH 2/2] arm64: dts: enable the MUSB controller of Pine64 in host-only mode

2016-11-24 Thread Maxime Ripard
On Wed, Nov 23, 2016 at 12:59:02AM +0800, Icenowy Zheng wrote: > A64 has a MUSB controller wired to the USB PHY 0, which is connected > to the upper USB Type-A port of Pine64. > > As the port is a Type-A female port, enable it in host-only mode in the > device tree, which makes devices with USB Ty

[tip:x86/core] x86: Enable Intel Turbo Boost Max Technology 3.0

2016-11-24 Thread tip-bot for Tim Chen
Commit-ID: 5e76b2ab36b40ca33023e78725bdc69eafd63134 Gitweb: http://git.kernel.org/tip/5e76b2ab36b40ca33023e78725bdc69eafd63134 Author: Tim Chen AuthorDate: Tue, 22 Nov 2016 12:23:55 -0800 Committer: Thomas Gleixner CommitDate: Thu, 24 Nov 2016 20:44:19 +0100 x86: Enable Intel Turbo Boo

[PATCH v4 2/7] misc: minimal mux subsystem and gpio-based mux controller

2016-11-24 Thread Peter Rosin
Add a new minimalistic subsystem that handles multiplexer controllers. When multiplexers are used in various places in the kernel, and the same multiplexer controller can be used for several independent things, there should be one place to implement support for said multiplexer controller. A singl

Re: [PATCH v2] i2c: i2c-mux-gpio: update mux with gpiod_set_array_value_cansleep

2016-11-24 Thread Wolfram Sang
> Yes, I never liked that include, but I don't know how to get > from struct gpio_desc * to the relevant struct device * > without it... Looks to me like we should ask the GPIO maintainers if they are willing to export this value? I am probably not as good as you in explaining the details why, th

[tip:x86/core] x86/topology: Define x86's arch_update_cpu_topology

2016-11-24 Thread tip-bot for Tim Chen
Commit-ID: 7d25127cef44924f1013d119ba385095ca4b4a83 Gitweb: http://git.kernel.org/tip/7d25127cef44924f1013d119ba385095ca4b4a83 Author: Tim Chen AuthorDate: Tue, 22 Nov 2016 12:23:54 -0800 Committer: Thomas Gleixner CommitDate: Thu, 24 Nov 2016 20:44:19 +0100 x86/topology: Define x86's

[PATCH 1/1 linux-next] ext4: add compatibility flag check

2016-11-24 Thread Fabian Frederick
data=journal mount option should disable O_DIRECT access (See Documentation/filesystems/ext4.txt) but open operations using O_CREAT|O_RDWR|O_DIRECT|O_SYNC have no warning in return and file is being created. This patch adds vfs super_operations compatibility flag function returning -EPERM in such a

Re: [PATCH 0/4] core-api ReST: assoc_array, atomic_ops, local_ops

2016-11-24 Thread Mauro Carvalho Chehab
Em Thu, 24 Nov 2016 13:42:16 +0100 Silvio Fricke escreveu: > Hi, > > Some more ReSTification of core-api's: assoc_array, atomic_ops and local_ops. > A > fourth patch removes a warning about a bullet list without ending at > firmware_class.c > > Thanks for review. Could you please resend, usin

Re: [PATCH 2/6] dax: remove leading space from labels

2016-11-24 Thread Dan Williams
On Thu, Nov 24, 2016 at 1:11 AM, Jan Kara wrote: > On Wed 23-11-16 11:44:18, Ross Zwisler wrote: >> No functional change. >> >> As of this commit: >> >> commit 218dd85887da (".gitattributes: set git diff driver for C source code >> files") >> >> git-diff and git-format-patch both generate diffs wh

Re: [PATCH] arm64: mm: Fix memmap to be initialized for the entire section

2016-11-24 Thread Ard Biesheuvel
On 24 November 2016 at 19:26, Robert Richter wrote: > Ard, > >> > >> On 24 November 2016 at 13:51, Robert Richter >> > >> wrote: >> > >> > On 24.11.16 13:44:31, Ard Biesheuvel wrote: > >> > >> Regions containing firmware tables are owned by the firmware, and it >> > >> is the firmware that tells

Re: [PATCH v2 2/2] staging: slicoss: remove UPDATE_STATS_GB macro and inline code

2016-11-24 Thread Markus Böhme
On 11/24/2016 08:21 PM, Sergio Paracuellos wrote: > This patch removes UPDATE_STATS_GB macro in slic.h header file > and just inline code. This improve readability. > > Signed-off-by: Sergio Paracuellos > --- > drivers/staging/slicoss/slic.h| 5 > drivers/staging/slicoss/slicoss.c | 52

Re: [PATCH 5/7] efi: Get the secure boot status [ver #3]

2016-11-24 Thread James Bottomley
On Wed, 2016-11-23 at 12:54 +, David Howells wrote: > Get the firmware's secure-boot status in the kernel boot wrapper and > stash it somewhere that the main kernel image can find. > > The efi_get_secureboot() function is extracted from the arm stub and > (a) generalised so that it can be ca

RE: [PATCH 04/14] perf/x86: output side-band events overhead

2016-11-24 Thread Liang, Kan
> > On Wed, Nov 23, 2016 at 04:44:42AM -0500, kan.li...@intel.com wrote: > > From: Kan Liang > > > > Iterating all events which need to receive side-band events also bring > > some overhead. > > Save the overhead information in task context or CPU context, > > whichever context is available. >

RE: [PATCH 02/14] perf/x86: output NMI overhead

2016-11-24 Thread Liang, Kan
> > @@ -1492,8 +1507,10 @@ perf_event_nmi_handler(unsigned int cmd, > struct pt_regs *regs) > > start_clock = sched_clock(); > > ret = x86_pmu.handle_irq(regs); > > finish_clock = sched_clock(); > > + clock = finish_clock - start_clock; > > > > - perf_sample_event_took(finish_cloc

Re: [PATCH] x86: fix kaslr and memmap collision

2016-11-24 Thread Dan Williams
On Wed, Nov 23, 2016 at 4:04 PM, Dave Chinner wrote: > On Tue, Nov 22, 2016 at 11:01:32AM -0800, Dan Williams wrote: >> On Tue, Nov 22, 2016 at 10:54 AM, Kees Cook wrote: >> > On Tue, Nov 22, 2016 at 9:26 AM, Dan Williams >> > wrote: >> >> No, you're right, we need to handle multiple ranges. S

Early boot hang on i5-660 in todays 4.9-rc6+git (gcc 6.2 trouble?)

2016-11-24 Thread Meelis Roos
I tried todays 4.9.0-rc6-00133-g10b9dd5 on my Ironlake i5 PC (HP Compaq 8100 Elite SFF PC with i5 660 CPU). The booting hangs after "Booting the kernel." line, no lines from the kernel at all. 4.9.0-rc6-00113-g23400ac was working fine. Bisecting shows all tested kernels are bad so maybe somethi

Re: [PATCH 8/9] MODSIGN: Import certificates from UEFI Secure Boot

2016-11-24 Thread James Bottomley
On Mon, 2016-11-21 at 11:25 -0500, Josh Boyer wrote: > On Mon, Nov 21, 2016 at 11:16 AM, Ard Biesheuvel > wrote: > > On 16 November 2016 at 18:11, David Howells > > wrote: > > > From: Josh Boyer > > > > > > Secure Boot stores a list of allowed certificates in the 'db' > > > variable. This impo

[PATCH v2 1/2] staging: slicoss: remove not used UPDATE_STATS macro

2016-11-24 Thread Sergio Paracuellos
This patch remove UPDATE_STATS macro from header slic.h which is not being used. Signed-off-by: Sergio Paracuellos --- drivers/staging/slicoss/slic.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/slicoss/slic.h b/drivers/staging/slicoss/slic.h index 1f6562c..2c05868

[PATCH v2 2/2] staging: slicoss: remove UPDATE_STATS_GB macro and inline code

2016-11-24 Thread Sergio Paracuellos
This patch removes UPDATE_STATS_GB macro in slic.h header file and just inline code. This improve readability. Signed-off-by: Sergio Paracuellos --- drivers/staging/slicoss/slic.h| 5 drivers/staging/slicoss/slicoss.c | 52 +++ 2 files changed, 25 in

[PATCH v2 0/2] staging: slicoss: minor changes to clean some code

2016-11-24 Thread Sergio Paracuellos
This patchset clean some code in slicoss driver: * Removes not used macro. * Remove a macro and just inline code. Changes in v2: * Remove inline function into inline code. Sergio Paracuellos (2): staging: slicoss: remove not used UPDATE_STATS macro staging: slicoss: remove UPDATE_STATS_GB ma

Re: [PATCH 8/9] MODSIGN: Import certificates from UEFI Secure Boot

2016-11-24 Thread James Bottomley
On Mon, 2016-11-21 at 16:16 +, Ard Biesheuvel wrote: > On 16 November 2016 at 18:11, David Howells > wrote: > > From: Josh Boyer > > > > Secure Boot stores a list of allowed certificates in the 'db' > > variable. This imports those certificates into the system trusted > > keyring. This a

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread Greg KH
On Thu, Nov 24, 2016 at 02:10:36PM -0500, Mark Lord wrote: > On 16-11-24 02:00 PM, Greg KH wrote: > > On Thu, Nov 24, 2016 at 01:34:08PM -0500, Mark Lord wrote: > >> One thought: bulk data streams are byte streams, not packets. > >> Scheduling on the USB bus can break up larger transfers across >

[PATCH] Input: Change msleep to usleep_range for small msecs

2016-11-24 Thread Aniroop Mathur
msleep(1~20) may not do what the caller intends, and will often sleep longer. (~20 ms actual sleep for any value given in the 1~20ms range) This is not the desired behaviour for many cases like device resume time, device suspend time, device enable time, data reading time, etc. Thus, change msleep

[PATCH 0/8] irda: w83977af_ir: Neatening

2016-11-24 Thread Joe Perches
On top of Arnd's overly long udelay patch because I noticed a misindented block. Even though I haven't turned on the netwinder in a box in in the garage in who knows how long, if this device is still used somewhere, might as well neaten the code too. Joe Perches (8): irda: w83977af_ir: whitespa

[PATCH 7/8] irda: w83977af_ir: Neaten logging

2016-11-24 Thread Joe Perches
Use more common logging style, standardize function output logging use. Miscellanea: o Add and use pr_fmt o Convert printks to pr_ Signed-off-by: Joe Perches --- drivers/net/irda/w83977af_ir.c | 48 -- 1 file changed, 23 insertions(+), 25 deletions(-) d

[PATCH 8/8] irda: w83977af_ir: Fix misindented block

2016-11-24 Thread Joe Perches
One indent level too many is too many. Signed-off-by: Joe Perches --- drivers/net/irda/w83977af_ir.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c index 19b171af0e81..b865e93f01a0 100644 --- a/

[PATCH 4/8] irda: w83977af_ir: Neaten pointer comparisons

2016-11-24 Thread Joe Perches
Convert pointer comparisons to NULL. Signed-off-by: Joe Perches --- drivers/net/irda/w83977af_ir.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c index 5aa61413aea8..ac481303e3ab 1

[PATCH 6/8] irda: w83977af_ir: Parenthesis alignment

2016-11-24 Thread Joe Perches
Neaten function declaration and definition arguments. Signed-off-by: Joe Perches --- drivers/net/irda/w83977af_ir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c index 5d776fb716f4..9c5b780b1d39 100644 ---

[PATCH 1/8] irda: w83977af_ir: whitespace neatening

2016-11-24 Thread Joe Perches
Remove leading and trailing whitespace. git diff -w shows no differences. Signed-off-by: Joe Perches --- drivers/net/irda/w83977af_ir.c | 392 - 1 file changed, 196 insertions(+), 196 deletions(-) diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/

[PATCH 3/8] irda: w83977af_ir: Remove unnecessary blank lines

2016-11-24 Thread Joe Perches
These just add unnecessary vertical whitespace. Signed-off-by: Joe Perches --- drivers/net/irda/w83977af_ir.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c index 4ad91f4f867f..5aa61413aea8 100644 --- a/driv

[PATCH 2/8] irda: w83977af_ir: More whitespace neatening

2016-11-24 Thread Joe Perches
Add spaces around operators. git diff -w shows no differences. Signed-off-by: Joe Perches --- drivers/net/irda/w83977af_ir.c | 232 - 1 file changed, 116 insertions(+), 116 deletions(-) diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977

[PATCH 5/8] irda: w83977af_ir: Use the common brace style

2016-11-24 Thread Joe Perches
Add braces where appropriate and remove an unnecessary else. Signed-off-by: Joe Perches --- drivers/net/irda/w83977af_ir.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c index ac481303e3ab.

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread Mark Lord
On 16-11-24 02:00 PM, Greg KH wrote: > On Thu, Nov 24, 2016 at 01:34:08PM -0500, Mark Lord wrote: >> One thought: bulk data streams are byte streams, not packets. >> Scheduling on the USB bus can break up larger transfers across >> multiple in-kernel buffers. A "real" URB buffer on USB2 is max 51

Re: [PATCH 01/14] perf/x86: Introduce PERF_RECORD_OVERHEAD

2016-11-24 Thread Peter Zijlstra
On Thu, Nov 24, 2016 at 11:02:16AM -0800, Andi Kleen wrote: > > Sure, but that's a tool thing, totally irrelevant for the kernel. > > It requires enabling the overhead records by default. by the tool, not the kernel.

Re: [PATCH 6/7] ovl: intercept mmap

2016-11-24 Thread Amir Goldstein
On Thu, Nov 24, 2016 at 8:03 PM, Amir Goldstein wrote: > On Thu, Nov 24, 2016 at 3:25 PM, Amir Goldstein wrote: >> On Thu, Nov 24, 2016 at 12:55 PM, Miklos Szeredi wrote: >>> ... in order to handle the corner case when the file is copied up after >>> being opened read-only and mapped shared. >>>

Re: [PATCH net-next 1/4] net: mvneta: Convert to be 64 bits compatible

2016-11-24 Thread Florian Fainelli
Le 24/11/2016 à 07:01, Gregory CLEMENT a écrit : > Hi Arnd, > > On jeu., nov. 24 2016, Arnd Bergmann wrote: > >> On Thursday, November 24, 2016 4:37:36 PM CET Jisheng Zhang wrote: >>> solB (a SW shadow cookie) perhaps gives a better performance: in hot path, >>> such as mvneta_rx(), the driver

Re: [PATCH 02/14] perf/x86: output NMI overhead

2016-11-24 Thread Peter Zijlstra
On Thu, Nov 24, 2016 at 04:19:09PM +, Mark Rutland wrote: > > static void > > event_sched_out(struct perf_event *event, > > struct perf_cpu_context *cpuctx, > > - struct perf_event_context *ctx) > > + struct perf_event_context *ctx, > > + bool

Re: [PATCH 01/14] perf/x86: Introduce PERF_RECORD_OVERHEAD

2016-11-24 Thread Andi Kleen
On Thu, Nov 24, 2016 at 07:58:49PM +0100, Peter Zijlstra wrote: > On Thu, Nov 24, 2016 at 10:28:22AM -0800, Andi Kleen wrote: > > On Thu, Nov 24, 2016 at 02:50:43PM +0100, Peter Zijlstra wrote: > > > On Thu, Nov 24, 2016 at 01:45:28PM +, Liang, Kan wrote: > > > > > I think we should make this o

Re: wl1251 & mac address & calibration data

2016-11-24 Thread Aaro Koskinen
Hi, On Thu, Nov 24, 2016 at 04:20:45PM +0100, Pali Rohár wrote: > Proprietary, signed and closed bootloader NOLO does not support DT. So > for booting you need to append DTS file to kernel image. > > U-Boot is optional and can be used as intermediate bootloader between > NOLO and kernel. But stil

Re: [PATCH 2/2] staging: slicoss: replace UPDATE_STATS_GB macro into an inline function

2016-11-24 Thread Sergio Paracuellos
On Wed, Nov 23, 2016 at 11:32 PM, Markus Böhme wrote: > On 11/23/2016 08:00 PM, Markus Böhme wrote: >> On 11/23/2016 07:10 PM, Sergio Paracuellos wrote: >>> This patch replaces UPDATE_STATS_GB macro in slic.h header file >>> into an inline function. This provides type safety and readability. >>> >

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread Greg KH
On Thu, Nov 24, 2016 at 01:34:08PM -0500, Mark Lord wrote: > One thought: bulk data streams are byte streams, not packets. > Scheduling on the USB bus can break up larger transfers across > multiple in-kernel buffers. A "real" URB buffer on USB2 is max 512 bytes. > The driver is providing 16384-b

Re: [PATCH 01/14] perf/x86: Introduce PERF_RECORD_OVERHEAD

2016-11-24 Thread Peter Zijlstra
On Thu, Nov 24, 2016 at 10:28:22AM -0800, Andi Kleen wrote: > On Thu, Nov 24, 2016 at 02:50:43PM +0100, Peter Zijlstra wrote: > > On Thu, Nov 24, 2016 at 01:45:28PM +, Liang, Kan wrote: > > > > I think we should make this optional/configurable like the rest of the > > > > aux > > > > events, l

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread Mark Lord
On 16-11-24 01:42 PM, Greg KH wrote: > > Have you tried using usbmon? This system is running rootfs over NFS, so usbmon isn't realistically going to be usable in that scenario without a lot of reconfiguration of the setup (which in itself might obscure the original problem). There is a hardware U

Re: [RFC][PATCH 4/4] futex: Rewrite FUTEX_UNLOCK_PI

2016-11-24 Thread Peter Zijlstra
On Thu, Nov 24, 2016 at 06:56:53PM +0100, Thomas Gleixner wrote: > > I'm stumped on REQUEUE_PI.. this relies on attach_to_pi_owner() and > > You mean LOCK_PI, right? > > > fixup_owner() being in the same function. But this is not the case for > > requeue. WAIT_REQUEUE has the fixup, as its retur

[PATCH v4 7/7] i2c: i2c-mux-simple: new driver

2016-11-24 Thread Peter Rosin
This is a generic simple i2c mux that uses the generic multiplexer subsystem to do the muxing. The user can select if the mux is to be mux-locked and parent-locked as described in Documentation/i2c/i2c-topology. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/Kconfig | 13 +++ driver

Re: [PATCH net v2 5/5] net: qcom/emac: fix of_node and phydev leaks

2016-11-24 Thread Timur Tabi
Johan Hovold wrote: Make sure to drop the reference taken by of_phy_find_device() during probe on probe errors and on driver unbind. Also drop the of_node reference taken by of_parse_phandle() in the same path. Fixes: b9b17debc69d ("net: emac: emac gigabit ethernet controller driver") Signed-of

[PATCH v4 5/7] iio: multiplexer: new iio category and iio-mux driver

2016-11-24 Thread Peter Rosin
When a multiplexer changes how an iio device behaves (for example by feeding different signals to an ADC), this driver can be used create one virtual iio channel for each multiplexer state. Depends on the generic multiplexer subsystem. Cache any ext_info values from the parent iio channel, creati

[PATCH v4 1/7] dt-bindings: document devicetree bindings for mux-controllers and mux-gpio

2016-11-24 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../devicetree/bindings/misc/mux-controller.txt| 106 + .../devicetree/bindings/misc/mux-gpio.txt | 78 +++ MAINTAINERS| 5 + 3 files changed, 189 insertions(+) create mode 1006

[PATCH v4 0/7] mux controller abstraction and iio/i2c muxes

2016-11-24 Thread Peter Rosin
Hi! v3 -> v4 changes - rebased onto next-20161122 (depends on recent _available iio changes). - added support for having the mux-controller in a child node of a mux-consumer if it is a sole consumer, to hopefully even further satisfy the complaint from Rob (and later Lars-Peter) about dt compl

[PATCH 1/1 linux-next] vfs: fix comment typos

2016-11-24 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- fs/namei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 1669c93d..ca829b4 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3119,12 +3119,12 @@ static int lookup_open(struct nameidata *nd, struct path *path,

Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node`

2016-11-24 Thread Donald Buczek
On 24.11.2016 11:15, Michal Hocko wrote: On Mon 21-11-16 16:35:53, Donald Buczek wrote: [...] Hello, thanks a lot for looking into this! Let me add some information from the reporting site: * We've tried the patch from Paul E. McKenney (the one posted Wed, 16 Nov 2016) and it doesn't shut u

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread Mark Lord
On 16-11-24 01:34 PM, Mark Lord wrote: >From tracing through the powerpc arch code, this is the buffer that > is being directly DMA'd into. And the USB layer does an invalidate_dcache > on that entire buffer before initiating the DMA (confirmed via printk). Slight correction: the invalidate_dcac

Re: [PATCH 9/9] arm64: Documentation - Expose CPU feature registers

2016-11-24 Thread Catalin Marinas
Hi Suzuki, On Thu, Nov 24, 2016 at 01:40:09PM +, Suzuki K. Poulose wrote: > --- /dev/null > +++ b/Documentation/arm64/cpu-feature-registers.txt > @@ -0,0 +1,198 @@ > + ARM64 CPU Feature Registers > + === > + > +Author: Suzuki K Poulose > + > + >

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread Greg KH
On Thu, Nov 24, 2016 at 11:43:53AM -0500, Mark Lord wrote: > On 16-11-24 11:21 AM, David Miller wrote: > > From: Hayes Wang > > Date: Thu, 24 Nov 2016 13:26:55 + > > > > > I don't think the garbage results from our driver or device. > > This is my impression with what has been presented so fa

Re: [PATCH] Add IDT 89HPESx EEPROM/CSR driver

2016-11-24 Thread Serge Semin
On Sun, Oct 30, 2016 at 09:53:58AM -0400, Greg KH wrote: > On Mon, Oct 03, 2016 at 02:13:45AM +0300, Serge Semin wrote: > > Hello linux folks, > > > > This driver primarily is developed to give an access to EEPROM of IDT > > PCIe-switches. Such switches provide a simple SMBus interface to p

Re: wl1251 & mac address & calibration data

2016-11-24 Thread Pali Rohár
On Thursday 24 November 2016 19:11:39 Sebastian Reichel wrote: > Hi, > > On Thu, Nov 24, 2016 at 05:49:33PM +0100, Pali Rohár wrote: > > On Thursday 24 November 2016 17:08:30 Sebastian Reichel wrote: > > > On Thu, Nov 24, 2016 at 04:20:45PM +0100, Pali Rohár wrote: > > > > On Thursday 24 November

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread Mark Lord
On 16-11-24 12:11 PM, David Miller wrote: > From: Mark Lord > Date: Thu, 24 Nov 2016 11:43:53 -0500 > >> So even if this were a platform memory coherency issue, one should >> still never see ASCII data at the beginning of an rx buffer. > > I'm not so convinced, since this is the kind of random c

Re: [PATCH 01/14] perf/x86: Introduce PERF_RECORD_OVERHEAD

2016-11-24 Thread Andi Kleen
On Thu, Nov 24, 2016 at 02:50:43PM +0100, Peter Zijlstra wrote: > On Thu, Nov 24, 2016 at 01:45:28PM +, Liang, Kan wrote: > > > I think we should make this optional/configurable like the rest of the aux > > > events, like below.. > > > > > > > The overhead logging only happens when event is g

[PATCH net v2 3/5] net: fsl/fman: fix phydev reference leak

2016-11-24 Thread Johan Hovold
Make sure to drop the reference taken by of_phy_find_device() during initialisation when later freeing the struct fman_mac. Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support") Signed-off-by: Johan Hovold --- drivers/net/ethernet/freescale/fman/fman_memac.c | 3 +++ 1 file changed, 3 insertion

[PATCH net v2 1/5] net: dsa: fix fixed-link-phy device leaks

2016-11-24 Thread Johan Hovold
Make sure to drop the reference taken by of_phy_find_device() when registering and deregistering the fixed-link PHY-device. Fixes: 39b0c705195e ("net: dsa: Allow configuration of CPU & DSA port speeds/duplex") Signed-off-by: Johan Hovold --- net/dsa/dsa.c | 5 - 1 file changed, 4 insertions(

[PATCH net v2 5/5] net: qcom/emac: fix of_node and phydev leaks

2016-11-24 Thread Johan Hovold
Make sure to drop the reference taken by of_phy_find_device() during probe on probe errors and on driver unbind. Also drop the of_node reference taken by of_parse_phandle() in the same path. Fixes: b9b17debc69d ("net: emac: emac gigabit ethernet controller driver") Signed-off-by: Johan Hovold --

[PATCH net v2 0/5] net: fix phydev reference leaks

2016-11-24 Thread Johan Hovold
This series fixes a number of phydev reference leaks (and one of_node leak) due to failure to put the reference taken by of_phy_find_device(). Note that I did not try to fix drivers/net/phy/xilinx_gmii2rgmii.c which still leaks a reference. Against net but should apply just as fine to net-next.

[PATCH net v2 2/5] net: bcmgenet: fix phydev reference leak

2016-11-24 Thread Johan Hovold
Make sure to drop the reference taken by of_phy_find_device() when initialising MOCA PHYs. Fixes: 6ac9de5f6563 ("net: bcmgenet: Register link_update callback for all MoCA PHYs") Signed-off-by: Johan Hovold --- drivers/net/ethernet/broadcom/genet/bcmmii.c | 4 +++- 1 file changed, 3 insertions(+)

[PATCH net v2 4/5] net: fsl/fman: fix fixed-link-phydev reference leak

2016-11-24 Thread Johan Hovold
Make sure to drop the reference taken by of_phy_find_device() when looking up a fixed-link phydev during probe. Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support") Signed-off-by: Johan Hovold --- drivers/net/ethernet/freescale/fman/mac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/d

Re: [PATCH] pinctrl: imx: fix imx_pinctrl_desc initialization

2016-11-24 Thread Gary Bisson
Hi all, Just resending this email since there was a typo in Shawn's e-mail address. Regards, Gary On Thu, Nov 24, 2016 at 07:11:51PM +0100, Gary Bisson wrote: > Was introduced by: > 6e408ed pinctrl: imx: fix initialization of imx_pinctrl_desc > > Signed-off-by: Gary Bisson > --- > drivers/pin

Re: wl1251 & mac address & calibration data

2016-11-24 Thread Sebastian Reichel
Hi, On Thu, Nov 24, 2016 at 05:49:33PM +0100, Pali Rohár wrote: > On Thursday 24 November 2016 17:08:30 Sebastian Reichel wrote: > > On Thu, Nov 24, 2016 at 04:20:45PM +0100, Pali Rohár wrote: > > > On Thursday 24 November 2016 16:13:17 Sebastian Reichel wrote: > > > > On Thu, Nov 24, 2016 at 09:3

[PATCH] pinctrl: imx: fix imx_pinctrl_desc initialization

2016-11-24 Thread Gary Bisson
Was introduced by: 6e408ed pinctrl: imx: fix initialization of imx_pinctrl_desc Signed-off-by: Gary Bisson --- drivers/pinctrl/freescale/pinctrl-imx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/freescale/pinctrl-imx.c b/drivers/pinctrl/freescale/

Re: [PATCH] net: stmmac: enable tx queue 0 for gmac4 IPs synthesized with multiple TX queues

2016-11-24 Thread Alexandre Torgue
Hi Niklas, On 11/24/2016 03:36 PM, Niklas Cassel wrote: From: Niklas Cassel The dwmac4 IP can synthesized with 1-8 number of tx queues. On an IP synthesized with DWC_EQOS_NUM_TXQ > 1, all txqueues are disabled by default. For these IPs, the bitfield TXQEN is R/W. Always enable tx queue 0. The

Re: Enabling peer to peer device transactions for PCIe devices

2016-11-24 Thread Logan Gunthorpe
On 24/11/16 09:42 AM, Jason Gunthorpe wrote: > There are three cases to worry about: > - Coherent long lived page table mirroring (RDMA ODP MR) > - Non-coherent long lived page table mirroring (RDMA MR) > - Short lived DMA mapping (everything else) > > Like you say below we have to handle sho

Re: [PATCH v8 3/8] drivers:input:tsc2007: add iio interface to read external ADC input and temperature

2016-11-24 Thread H. Nikolaus Schaller
> Am 24.11.2016 um 18:38 schrieb Jonathan Cameron : > > > > On 22 November 2016 14:02:30 GMT+00:00, "H. Nikolaus Schaller" > wrote: >> The tsc2007 chip not only has a resistive touch screen controller but >> also an external AUX adc imput which can be used for an ambient >> light sensor, batt

[GIT PULL] one more EFI patch for v4.10

2016-11-24 Thread Ard Biesheuvel
The following changes since commit 9110bc036062fcd31994a35540d63f8deed22efa: thunderbolt: Use Device ROM retrieved from EFI (2016-11-12 21:14:43 +) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-next for you to fetch changes up

Re: [PATCH 6/7] ovl: intercept mmap

2016-11-24 Thread Amir Goldstein
On Thu, Nov 24, 2016 at 3:25 PM, Amir Goldstein wrote: > On Thu, Nov 24, 2016 at 12:55 PM, Miklos Szeredi wrote: >> ... in order to handle the corner case when the file is copied up after >> being opened read-only and mapped shared. >> >> Can be verified with the following script: >> >> - 8< - -

[PATCH] efi/libstub: Make efi_random_alloc() allocate below 4 GB on 32-bit

2016-11-24 Thread Ard Biesheuvel
The UEFI stub executes in the context of the firmware, which identity maps the available system RAM, which implies that only memory below 4 GB can be used for allocations on 32-bit architectures, even on [L]PAE capable hardware. So ignore any reported memory above 4 GB in efi_random_alloc(). This

Re: [RFC][PATCH 4/4] futex: Rewrite FUTEX_UNLOCK_PI

2016-11-24 Thread Thomas Gleixner
On Thu, 24 Nov 2016, Peter Zijlstra wrote: > On Wed, Nov 23, 2016 at 08:20:05PM +0100, Peter Zijlstra wrote: > > > + if (oldowner == &init_task && uval != 0) { > > > + raw_spin_lock(&pi_state->owner->pi_lock); > > > + list_del_init(&pi_state->list); > > > + raw_spin_unlock(&

Re: [PATCH 4/4] net: stmmac: stmmac_platform: use correct setup function for gmac4

2016-11-24 Thread Alexandre Torgue
Hi Niklas, On 11/23/2016 03:25 PM, Niklas Cassel wrote: From: Niklas Cassel devicetree binding for stmmac states: - compatible: Should be "snps,dwmac-", "snps,dwmac" For backwards compatibility: "st,spear600-gmac" is also supported. Previously, when specifying "snps,dwmac-4.10a", "snp

Re: Enabling peer to peer device transactions for PCIe devices

2016-11-24 Thread Logan Gunthorpe
Hey, On 24/11/16 02:45 AM, Christian König wrote: > E.g. it can happen that PCI device A exports it's BAR using ZONE_DEVICE. > Not PCI device B (a SATA device) can directly read/write to it because > it is on the same bus segment, but PCI device C (a network card for > example) can't because it is

Re: [patch] iio: tsl2583: make array large enough

2016-11-24 Thread Brian Masney
On Thu, Nov 24, 2016 at 05:54:17PM +0100, walter harms wrote: > > > Am 24.11.2016 16:48, schrieb Brian Masney: > > On Thu, Nov 24, 2016 at 04:38:07PM +0300, Dan Carpenter wrote: > >> This array is supposed to have 10 elements. Smatch complains that with > >> the current code we can have n == max

Re: [PATCH 02/29] fscrypt: Allow fscrypt_decrypt_page() to function with non-writeback pages

2016-11-24 Thread David Gstir
Eric, > On 15.11.2016, at 19:19, Eric Biggers wrote: > > On Sun, Nov 13, 2016 at 10:20:45PM +0100, Richard Weinberger wrote: >> /** >> * f2crypt_decrypt_page() - Decrypts a page in-place >> - * @page: The page to decrypt. Must be locked. >> + * @inode: The encrypted inode to decrypt. >> + * @pa

Re: [PATCH 1/4] bindings: net: stmmac: correct note about TSO

2016-11-24 Thread Alexandre Torgue
Hi Niklas, On 11/23/2016 03:24 PM, Niklas Cassel wrote: From: Niklas Cassel snps,tso was previously placed under AXI BUS Mode parameters, suggesting that the property should be in the stmmac-axi-config node. TSO (TCP Segmentation Offloading) has nothing to do with AXI BUS Mode parameters, and

Re: [PATCH v8 3/8] drivers:input:tsc2007: add iio interface to read external ADC input and temperature

2016-11-24 Thread Jonathan Cameron
On 22 November 2016 14:02:30 GMT+00:00, "H. Nikolaus Schaller" wrote: >The tsc2007 chip not only has a resistive touch screen controller but >also an external AUX adc imput which can be used for an ambient >light sensor, battery voltage monitoring or any general purpose. > >Additionally it can

Re: [PATCH] Lock down drivers that can have io ports, io mem, irqs and dma changed

2016-11-24 Thread David Howells
Dominik Brodowski wrote: > > > - Abort in drivers/pcmcia/cistpl.c::pccard_store_cis() or remove > > > write access to the "cis" file in > > > drivers/pcmcia/cistpl.c::pccard_cis_attr > > > > What is that doing? Allowing the device to be reconfigured? > > Exactly. It is a different in

perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-24 Thread Vince Weaver
This is on a skylake machine, linus git as of yesterday after the various kasan-related fixes went in. Not sure if there were any that hadn't hit upstream yet. Anyway I can't tell from this one what the actual trigger is. After this mess the fuzzer process was locked, udev started complainin

[PATCH] MIPS: Add support for ARCH_MMAP_RND_{COMPAT_}BITS

2016-11-24 Thread Matt Redfearn
arch_mmap_rnd() uses hard-coded limits of 16MB for the randomisation of mmap within 32bit processes and 256MB in 64bit processes. Since v4.4 other arches support tuning this value in /proc/sys/vm/mmap_rnd_bits. Add support for this to MIPS. Set the minimum(default) number of bits randomisation for

Re: [PATCH 3/6] dax: add tracepoint infrastructure, PMD tracing

2016-11-24 Thread Al Viro
On Wed, Nov 23, 2016 at 11:44:19AM -0700, Ross Zwisler wrote: > Tracepoints are the standard way to capture debugging and tracing > information in many parts of the kernel, including the XFS and ext4 > filesystems. Create a tracepoint header for FS DAX and add the first DAX > tracepoints to the PM

Re: [RFC PATCH net v2 0/3] Fix OdroidC2 Gigabit Tx link issue

2016-11-24 Thread Martin Blumenstingl
On Thu, Nov 24, 2016 at 5:01 PM, Jerome Brunet wrote: > On Thu, 2016-11-24 at 15:40 +0100, Martin Blumenstingl wrote: >> Hi Jerome, >> >> On Mon, Nov 21, 2016 at 4:35 PM, Jerome Brunet >> wrote: >> > >> > This patchset fixes an issue with the OdroidC2 board (DWMAC + >> > RTL8211F). >> > Initially

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-24 Thread Radim Krčmář
2016-11-24 11:55-0500, Paolo Bonzini: >> irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it >> just complicated the code. >> Add kvm->arch.irqchip_kvm that matches kvm->arch.irqchip_split. >> (Turning them into an exclusive type would be nicer.) > > Then do it. ;) It is hard

Re: [PATCH v2] i2c: i2c-mux-gpio: update mux with gpiod_set_array_value_cansleep

2016-11-24 Thread Peter Rosin
On 2016-11-24 16:14, Wolfram Sang wrote: > Hi Peter, > >> +int values[mux->data.n_gpios]; > > Hmm, my code checkers complain about this line: > > CHECK drivers/i2c/muxes/i2c-mux-gpio.c > SPARSE > drivers/i2c/muxes/i2c-mux-gpio.c:29:29: warning: Variable length array is > used. >

Re: What exactly do 32-bit x86 exceptions push on the stack in the CS slot?

2016-11-24 Thread Andy Lutomirski
On Mon, Nov 21, 2016 at 1:21 PM, Linus Torvalds wrote: > On Mon, Nov 21, 2016 at 10:26 AM, H. Peter Anvin wrote: >> On 11/21/16 10:00, Linus Torvalds wrote: >>> >>> I'd much rather we go back to just making the "cs" entry explicitly >>> 16-bit, and have a separate padding entry, the way we used t

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread David Miller
From: Mark Lord Date: Thu, 24 Nov 2016 12:00:15 -0500 > It seems I am being overly helpful here. Either you want to cry or you want to keep helping us track down this problem. It is your choice, and your choice alone. Please do not pretend otherwise, everyone else in this thread is operating w

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread David Miller
From: Mark Lord Date: Thu, 24 Nov 2016 11:43:53 -0500 > So even if this were a platform memory coherency issue, one should > still never see ASCII data at the beginning of an rx buffer. I'm not so convinced, since this is the kind of random corruption one would expect to see when dealing with vi

FPU warning on x86_32 on Skylake

2016-11-24 Thread Andy Lutomirski
I gett this when booting a 32-bit 4.9-rc6-ish on Skylake: [0.564506] [ cut here ] [0.564994] WARNING: CPU: 0 PID: 1 at ./arch/x86/include/asm/fpu/internal.h:368 fpu__restore+0x203/0x210 [0.565737] Modules linked in: [0.566040] CPU: 0 PID: 1 Comm: sh Not tain

Re: [dm-devel] [RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-11-24 Thread Mikulas Patocka
On Thu, 24 Nov 2016, Michal Hocko wrote: > On Wed 23-11-16 16:11:59, Mikulas Patocka wrote: > [...] > > Hi Michal > > > > So, here Google developers hit a stacktrace where a block device driver is > > being throttled in the memory management: > > > > https://www.redhat.com/archives/dm-devel/2

Re: [PATCH] z3fold: use %z modifier for format string

2016-11-24 Thread Joe Perches
On Thu, 2016-11-24 at 17:31 +0100, Arnd Bergmann wrote: > Printing a size_t requires the %zd format rather than %d: > > mm/z3fold.c: In function ‘init_z3fold’: > include/linux/kern_levels.h:4:18: error: format ‘%d’ expects argument of type > ‘int’, but argument 2 has type ‘long unsigned int’ [-We

Re: Enabling peer to peer device transactions for PCIe devices

2016-11-24 Thread Serguei Sagalovitch
On 2016-11-24 11:26 AM, Jason Gunthorpe wrote: On Thu, Nov 24, 2016 at 10:45:18AM +0100, Christian König wrote: Am 24.11.2016 um 00:25 schrieb Jason Gunthorpe: There is certainly nothing about the hardware that cares about ZONE_DEVICE vs System memory. Well that is clearly not so simple. When

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-24 Thread Mark Lord
On 16-11-24 11:43 AM, Mark Lord wrote: .. But how does this ASCII data end up at offset zero of the rx buffer?? Not possible -- this isn't even stale data, because only an rx_desc could be at that offset in that buffer. Answering my own question here, I suspect it ends up there as a result of o

Re: [PATCH 0/6] KVM: x86: minor irqchip improvements (API change)

2016-11-24 Thread Paolo Bonzini
- Original Message - > From: "Radim Krčmář" > To: linux-kernel@vger.kernel.org, k...@vger.kernel.org > Cc: "Paolo Bonzini" > Sent: Thursday, November 24, 2016 5:31:28 PM > Subject: [PATCH 0/6] KVM: x86: minor irqchip improvements (API change) > > There are two API changes: > 1) [1/6] f

Re: [RFC][PATCHv4 3/6] printk: introduce per-cpu safe_print seq buffer

2016-11-24 Thread Petr Mladek
On Fri 2016-10-28 00:49:30, Sergey Senozhatsky wrote: > This patch extends the idea of NMI per-cpu buffers to regions > that may cause recursive printk() calls and possible deadlocks. > Namely, printk() can't handle printk calls from schedule code > or printk() calls from lock debugging code (spin_

[PATCH v8] mtd: spi-nor: Add support for S3AN spi-nor devices

2016-11-24 Thread Ricardo Ribalda Delgado
Xilinx Spartan-3AN FPGAs contain an In-System Flash where they keep their configuration data and (optionally) some user data. The protocol of this flash follows most of the spi-nor standard. With the following differences: - Page size might not be a power of two. - The address calculation (defaul

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-24 Thread Paolo Bonzini
> irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it > just complicated the code. > Add kvm->arch.irqchip_kvm that matches kvm->arch.irqchip_split. > (Turning them into an exclusive type would be nicer.) Then do it. ;) Paolo > Signed-off-by: Radim Krčmář > --- > arch/x86

[PATCH v4 3/7] iio: inkern: api for manipulating ext_info of iio channels

2016-11-24 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Signed-off-by: Peter Rosin --- drivers/iio/inkern.c | 60 include/linux/iio/consumer.h | 37 +++ 2 files changed, 97 insertions(+)

[PATCH v4 6/7] dt-bindings: i2c: i2c-mux-simple: document i2c-mux-simple bindings

2016-11-24 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../devicetree/bindings/i2c/i2c-mux-simple.txt | 76 ++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-mux-simple.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-simple.txt b/Do

<    1   2   3   4   5   6   7   8   9   >