Re: [PATCH 6/6] wl1251: Set generated MAC address back to NVS data

2017-01-26 Thread Kalle Valo
Pali Rohár writes: > In case there is no valid MAC address kernel generates random one. This > patch propagate this generated MAC address back to NVS data which will be > uploaded to wl1251 chip. So HW would have same MAC address as linux kernel > uses. > > Signed-off-by: Pali Rohár Why? What i

Re: [GIT PULL] soc: samsung: Drivers for v4.11

2017-01-26 Thread Krzysztof Kozlowski
On Thu, Jan 26, 2017 at 04:59:45PM +0100, Linus Walleij wrote: > On Fri, Jan 20, 2017 at 7:13 PM, Krzysztof Kozlowski wrote: > > > The following changes since commit 0c744ea4f77d72b3dcebb7a8f2684633ec79be88: > > > > Linux 4.10-rc2 (2017-01-01 14:31:53 -0800) > > > > are available in the git rep

Re: [PATCH 5/6] wl1251: Parse and use MAC address from supplied NVS data

2017-01-26 Thread Kalle Valo
Pali Rohár writes: > This patch implements parsing MAC address from NVS data which are sent to > wl1251 chip. Calibration NVS data could contain valid MAC address and it > will be used instead randomly generated. > > This patch also move code for requesting NVS data from userspace to driver > ini

Re: [v3 PATCH 04/10] x86/insn-kernel: Add a function to obtain register offset in ModRM

2017-01-26 Thread Masami Hiramatsu
On Wed, 25 Jan 2017 22:07:16 -0800 Ricardo Neri wrote: > Hi Masami, > > On Thu, 2017-01-26 at 11:11 +0900, Masami Hiramatsu wrote: > > On Wed, 25 Jan 2017 12:23:47 -0800 > > Ricardo Neri wrote: > > > > > The function insn_get_reg_offset requires a type to indicate whether > > > the returned of

Re: [Xen-devel] [PATCH v2] xen, input: try to read screen resolution for xen-kbdfront

2017-01-26 Thread Oleksandr Andrushchenko
On 01/27/2017 09:46 AM, Juergen Gross wrote: On 27/01/17 08:21, Oleksandr Andrushchenko wrote: On 01/27/2017 09:12 AM, Juergen Gross wrote: Instead of using the default resolution of 800*600 for the pointing device of xen-kbdfront try to read the resolution of the (virtual) framebuffer device.

Re: [PATCH 2/2] base/memory, hotplug: fix a kernel oops in show_valid_zones()

2017-01-26 Thread gre...@linuxfoundation.org
On Thu, Jan 26, 2017 at 10:26:23PM +, Kani, Toshimitsu wrote: > On Thu, 2017-01-26 at 13:52 -0800, Andrew Morton wrote: > > On Thu, 26 Jan 2017 14:44:15 -0700 Toshi Kani > > wrote: > > > > > Reading a sysfs memoryN/valid_zones file leads to the following > > > oops when the first page of a ra

Re: [PATCH v4 3/3] p54: convert to sysdata API

2017-01-26 Thread Greg KH
On Thu, Jan 26, 2017 at 10:50:05PM +0100, Luis R. Rodriguez wrote: > On Thu, Jan 19, 2017 at 05:27:51PM +0100, Luis R. Rodriguez wrote: > > On Thu, Jan 19, 2017 at 12:38:57PM +0100, Greg KH wrote: > > > On Thu, Jan 12, 2017 at 07:02:44AM -0800, Luis R. Rodriguez wrote: > > > > --- > > > > drivers/

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2017-01-26 Thread Kalle Valo
Pali Rohár writes: > NVS calibration data for wl1251 are model specific. Every one device with > wl1251 chip has different and calibrated in factory. > > Not all wl1251 chips have own EEPROM where are calibration data stored. And > in that case there is no "standard" place. Every device has store

Re: [PATCH v2 0/4] USB support for Broadcom NSP SoC

2017-01-26 Thread Kishon Vijay Abraham I
Hi, On Thursday 26 January 2017 10:57 PM, Florian Fainelli wrote: > On 01/26/2017 07:34 AM, Kishon Vijay Abraham I wrote: >> >> >> On Tuesday 17 January 2017 09:44 PM, Yendapally Reddy Dhananjaya Reddy wrote: >>> This patch set contains the usb support for Broadcom NSP SoC. The >>> usb3 phy is int

Re: [PATCH] drm/ttm: Make sure BOs being swapped out are cacheable

2017-01-26 Thread Daniel Vetter
On Fri, Jan 27, 2017 at 07:23:58AM +0100, Thomas Hellstrom wrote: > On 01/27/2017 03:29 AM, Michel Dänzer wrote: > > On 26/01/17 09:46 AM, Sinclair Yeh wrote: > >> On Wed, Jan 25, 2017 at 10:49:33AM +0100, Christian König wrote: > >>> Am 25.01.2017 um 10:25 schrieb Thomas Hellstrom: > On 01/25

Re: mm, vmscan: commit makes PAE kernel crash nightly (bisected)

2017-01-26 Thread Michal Hocko
On Thu 26-01-17 17:18:58, Trevor Cordes wrote: > On 2017-01-24 Michal Hocko wrote: > > On Sun 22-01-17 18:45:59, Trevor Cordes wrote: > > [...] > > > Also, completely separate from your patch I ran mhocko's 4.9 tree > > > with mem=2G to see if lower ram amount would help, but it didn't. > > > Even

Re: [PATCH] ARM: dts: Odroid XU4: fix USB3.0 ports

2017-01-26 Thread Richard Genoud
On 25/01/2017 15:17, Krzysztof Kozlowski wrote: > On Wed, Jan 25, 2017 at 3:48 PM, Marek Szyprowski > wrote: >> Hi Krzysztof, >> >> On 2017-01-25 08:55, Krzysztof Kozlowski wrote: >>> >>> On Wed, Jan 25, 2017 at 7:51 AM, Anand Moon wrote: On 24 January 2017 at 19:18, Richard Genoud >>>

Re: [PATCH] staging: octeon-usb: Fix coding style issues

2017-01-26 Thread Greg Kroah-Hartman
On Thu, Jan 26, 2017 at 10:46:02PM -0500, William Blough wrote: > Wrap lines that exceed 80 characters. > > Signed-off-by: William Blough > --- > drivers/staging/octeon-usb/octeon-hcd.c | 18 -- > 1 file changed, 12 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/

Re: [Xen-devel] [PATCH v2] xen, input: try to read screen resolution for xen-kbdfront

2017-01-26 Thread Oleksandr Andrushchenko
On 01/27/2017 09:12 AM, Juergen Gross wrote: Instead of using the default resolution of 800*600 for the pointing device of xen-kbdfront try to read the resolution of the (virtual) framebuffer device. Use the default as fallback only. Signed-off-by: Juergen Gross --- V2: get framebuffer resoluti

[PATCH v2] xen,input: try to read screen resolution for xen-kbdfront

2017-01-26 Thread Juergen Gross
Instead of using the default resolution of 800*600 for the pointing device of xen-kbdfront try to read the resolution of the (virtual) framebuffer device. Use the default as fallback only. Signed-off-by: Juergen Gross --- V2: get framebuffer resolution only if CONFIG_FB (Dmitry Torokhov) --- dri

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

2017-01-26 Thread Guenter Roeck
On 01/26/2017 07:39 PM, Zhang Rui wrote: On Thu, 2017-01-26 at 18:03 -0800, Guenter Roeck wrote: On 01/26/2017 05:37 PM, Zhang Rui wrote: On Wed, 2017-01-25 at 13:09 +0100, Pali Rohár wrote: On Wednesday 25 January 2017 12:12:33 Pavel Machek wrote: Hi! Right. Before rever

Re: [PATCH 3/3] powerpc: enable support for GCC plugins

2017-01-26 Thread Andrew Donnellan
On 09/12/16 21:59, PaX Team wrote: the specific problem addressed here can (and IMHO should) be solved in another way: remove the inclusion of the offending headers in gcc-common.h as neither tm.h nor c-common.h are needed by existing plugins. for background, We can't build without tm.h: http:/

Re: [PATCH 2/2] tpm2-space: add handling for global session exhaustion

2017-01-26 Thread Jarkko Sakkinen
On Thu, Jan 26, 2017 at 04:45:52PM -0800, James Bottomley wrote: > On Thu, 2017-01-26 at 14:56 +0200, Jarkko Sakkinen wrote: > > On Mon, Jan 23, 2017 at 09:38:33PM -0800, James Bottomley wrote: > > > In a TPM2, sessions can be globally exhausted once there are > > > TPM_PT_ACTIVE_SESSION_MAX of the

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-26 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Thu, Jan 26, 2017 at 05:01:05PM +0100, Ingo Molnar wrote: > > > > > > > > I.e. if there's any polling component then it would be reasonable to > > > > add an error > > > > component: poll the status and if it goes 'disconnected' then disable > > > > early-printk

Re: [PATCH 1/2] tpm2: add session handle context saving and restoring to the space code

2017-01-26 Thread Jarkko Sakkinen
On Thu, Jan 26, 2017 at 08:26:19AM -0800, James Bottomley wrote: > On Thu, 2017-01-26 at 14:51 +0200, Jarkko Sakkinen wrote: > [...] > > > diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h > > > index c48255e..b77fc60 100644 > > > --- a/drivers/char/tpm/tpm.h > > > +++ b/drivers/char/tpm

Re: [PATCH] tpm: fix RC value check in tpm2_seal_trusted

2017-01-26 Thread Jarkko Sakkinen
On Thu, Jan 26, 2017 at 11:32:52AM -0700, Jason Gunthorpe wrote: > On Thu, Jan 26, 2017 at 01:27:14PM +0200, Jarkko Sakkinen wrote: > > > "The error code handling is bogus as any error code that has the bits > > set that TPM_RC_HASH could pass. Implemented tpm2_rc_value() helper to > > parse the e

Re: [tpmdd-devel] [PATCH RFC v3 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-26 Thread Jarkko Sakkinen
On Thu, Jan 26, 2017 at 04:29:02PM -0800, James Bottomley wrote: > On Wed, 2017-01-25 at 15:40 +0200, Jarkko Sakkinen wrote: > > On Mon, Jan 23, 2017 at 02:16:37PM -0800, James Bottomley wrote: > > > On Mon, 2017-01-23 at 23:42 +0200, Jarkko Sakkinen wrote: > > > > On Mon, Jan 23, 2017 at 06:58:23P

Re: [PATCH RFC] tpm: define a command filter

2017-01-26 Thread Jarkko Sakkinen
On Thu, Jan 26, 2017 at 11:05:06AM -0700, Jason Gunthorpe wrote: > On Thu, Jan 26, 2017 at 01:14:03PM +0200, Jarkko Sakkinen wrote: > > On Wed, Jan 25, 2017 at 03:11:36PM -0700, Jason Gunthorpe wrote: > > > On Wed, Jan 25, 2017 at 10:21:37PM +0200, Jarkko Sakkinen wrote: > > > > > > > There should

Re: [PATCH 1/2] tpm2: add session handle context saving and restoring to the space code

2017-01-26 Thread Jarkko Sakkinen
On Thu, Jan 26, 2017 at 07:18:49AM -0800, James Bottomley wrote: > On Thu, 2017-01-26 at 14:51 +0200, Jarkko Sakkinen wrote: > > On Mon, Jan 23, 2017 at 09:37:11PM -0800, James Bottomley wrote: > > > sessions are different from transient objects in that their handles > > > may not be virtualized (b

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

2017-01-26 Thread Mateusz Guzik
On Thu, Jan 26, 2017 at 09:11:07PM -0800, Cong Wang wrote: > On Thu, Jan 26, 2017 at 3:29 PM, Mateusz Guzik wrote: > > On Tue, Jan 17, 2017 at 01:21:48PM -0800, Cong Wang wrote: > >> On Mon, Jan 16, 2017 at 1:32 AM, Dmitry Vyukov wrote: > >> > On Fri, Dec 9, 2016 at 7:41 AM, Al Viro wrote: > >>

[PATCH] spi: qup: Fix runtime and system PM callbacks.

2017-01-26 Thread Pramod Gurav
The SPI clocks were being turned on every suspend/resume cycle. This was increamenting the prepare/enable count after every resume. Fix the same. Signed-off-by: Pramod Gurav --- Tested on db410c drivers/spi/spi-qup.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff

Re: [tpmdd-devel] [PATCH v6 1/2] tpm: implement TPM 2.0 capability to get active PCR banks

2017-01-26 Thread Jarkko Sakkinen
On Thu, Jan 26, 2017 at 07:23:15AM -0500, Stefan Berger wrote: > On 01/20/2017 12:05 PM, Nayna Jain wrote: > > This patch implements the TPM 2.0 capability TPM_CAP_PCRS to > > retrieve the active PCR banks from the TPM. This is needed > > to enable extending all active banks as recommended by TPM 2

Re: [PATCH v4 2/4] phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips

2017-01-26 Thread Vivek Gautam
On 01/26/2017 11:45 PM, Bjorn Andersson wrote: On Tue 24 Jan 01:19 PST 2017, Kishon Vijay Abraham I wrote: On Monday 23 January 2017 03:43 PM, Vivek Gautam wrote: On Wed, Jan 18, 2017 at 11:33 PM, Bjorn Andersson [..] Yes, that's correct. The QMP and QUSB2 phy init sequences are a bunch of

Re: [PATCH] drm/ttm: Make sure BOs being swapped out are cacheable

2017-01-26 Thread Thomas Hellstrom
On 01/27/2017 03:29 AM, Michel Dänzer wrote: > On 26/01/17 09:46 AM, Sinclair Yeh wrote: >> On Wed, Jan 25, 2017 at 10:49:33AM +0100, Christian König wrote: >>> Am 25.01.2017 um 10:25 schrieb Thomas Hellstrom: On 01/25/2017 09:21 AM, Michel Dänzer wrote: > From: Michel Dänzer > >

Re: [PATCH 8/8] Revert "ext4: fix wrong gfp type under transaction"

2017-01-26 Thread Theodore Ts'o
On Thu, Jan 26, 2017 at 08:44:55AM +0100, Michal Hocko wrote: > > > I'm convinced the current series is OK, only real life will tell us > > > whether > > > we missed something or not ;) > > > > I would like to extend the changelog of "jbd2: mark the transaction > > context with the scope GFP_NOFS

Re: [PATCH] xen,input: try to read screen resolution for xen-kbdfront

2017-01-26 Thread Juergen Gross
On 24/01/17 19:47, Dmitry Torokhov wrote: > On Tue, Jan 24, 2017 at 01:09:55PM +0100, Juergen Gross wrote: >> Instead of using the default resolution of 800*600 for the pointing >> device of xen-kbdfront try to read the resolution of the (virtual) >> framebuffer device. Use the default as fallback

Re: [PATCH v3] gpio: aspeed: Add banks Y, Z, AA, AB and AC

2017-01-26 Thread Joel Stanley
On Fri, Jan 27, 2017 at 3:24 PM, Andrew Jeffery wrote: > This is less straight-forward than one would hope, as some banks only > have 4 pins rather than 8, others are output only, yet more (W and > X, already supported) are input-only, and in the case of the g4 SoC bank > AC doesn't exist. > > Add

Re: [PATCH 3/3] powerpc: enable support for GCC plugins

2017-01-26 Thread Andrew Donnellan
On 27/01/17 16:52, Andrew Donnellan wrote: basic-block.h includes tm.h, and I don't believe we can remove that. I'm not convinced there's a way around this. Includes via function.h, I should say. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia

Re: [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM

2017-01-26 Thread Harini Katakam
Hi Rafal, On Thu, Jan 26, 2017 at 8:45 PM, Rafal Ozieblo wrote: >> -Original Message- >> From: Andrei Pistirica [mailto:andrei.pistir...@microchip.com] >> Sent: 19 stycznia 2017 16:56 >> Subject: [PATCH net-next v2] macb: Common code to enable ptp support for >> MACB/GEM >> >> >> +static

hi

2017-01-26 Thread cputrdoc
hi http://www.mobilam.net/education.php?death=2afxa279semd4a cputrdoc

Re: [PATCH v4 3/4] dt-bindings: phy: Add support for QMP phy

2017-01-26 Thread Vivek Gautam
On 01/27/2017 05:13 AM, Stephen Boyd wrote: On 01/24, Vivek Gautam wrote: Below is one binding that works for me. phy@34000 { compatible = "qcom,msm8996-qmp-pcie-phy"; reg = <0x034000 0x488>;

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

2017-01-26 Thread Cong Wang
On Thu, Jan 26, 2017 at 3:29 PM, Mateusz Guzik wrote: > On Tue, Jan 17, 2017 at 01:21:48PM -0800, Cong Wang wrote: >> On Mon, Jan 16, 2017 at 1:32 AM, Dmitry Vyukov wrote: >> > On Fri, Dec 9, 2016 at 7:41 AM, Al Viro wrote: >> >> On Thu, Dec 08, 2016 at 10:32:00PM -0800, Cong Wang wrote: >> >> >

Re: [PATCH 1/5] DT: mfd: axp20x: Add AXP806 to list of current AXP20x family members

2017-01-26 Thread Chen-Yu Tsai
On Fri, Jan 27, 2017 at 5:23 AM, Rask Ingemann Lambertsen wrote: > An entry for the AXP806 was forgotten, so add one. > > Signed-off-by: Rask Ingemann Lambertsen > Fixes: 204ae2963e10 ("mfd: axp20x: Add bindings for AXP806 PMIC") Acked-by: Chen-Yu Tsai

Re: [PATCH 0/3] ata: add m68k/Atari Falcon PATA support

2017-01-26 Thread Michael Schmitz
Hi Finn, Am 26.01.2017 um 21:47 schrieb Finn Thain: >> I hadn't considered that. Can PDMA for Falcon SCSI coexist with >> interrupt-using DMA for TT SCSI in the same driver (i.e. as runtime >> options)? > > Sure, why not? > >> How much overhead and latency would polling for DMA completion ad

[PATCH] staging: octeon-usb: Fix coding style issues

2017-01-26 Thread William Blough
Wrap lines that exceed 80 characters. Signed-off-by: William Blough --- drivers/staging/octeon-usb/octeon-hcd.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index 9a7858a

[PATCH v3] gpio: aspeed: Add banks Y, Z, AA, AB and AC

2017-01-26 Thread Andrew Jeffery
This is less straight-forward than one would hope, as some banks only have 4 pins rather than 8, others are output only, yet more (W and X, already supported) are input-only, and in the case of the g4 SoC bank AC doesn't exist. Add some structs to describe the varying properties of different banks

Re: [PATCH 2/3] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
On 01/27/2017 03:58 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jan 26, 2017 at 06:35:38PM +0900, Taeung Song escreveu: Currently perf ftrace command will select 'function_graph' or 'function'. So add ftrace.tracer config option to select tracer # cat ~/.perfconfig [ftrace] tr

[PATCH] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
Currently perf ftrace command will select 'function_graph' or 'function'. So add ftrace.tracer config option to select tracer # cat ~/.perfconfig [ftrace] tracer = function # perf ftrace usleep 123456 | head -10 <...>-14450 [002] d... 10089.284231: finish_task_switch <-_

GIT PULL] Thermal management updates for v4.10-rc6

2017-01-26 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for-rc to receive the latest Thermal Management updates for v4.10-rc6 with top-most commit 3feb479cea37fc623cf4e705631b2e679cbfbd7a:   Revert "thermal: thermal_hwmon: Convert to hwmon_device_register_wit

Re: [v3 PATCH 05/10] x86/insn-kernel: Add support to resolve 16-bit addressing encodings

2017-01-26 Thread Ricardo Neri
On Thu, 2017-01-26 at 09:05 -0800, Andy Lutomirski wrote: > On Wed, Jan 25, 2017 at 9:50 PM, Ricardo Neri > wrote: > > On Wed, 2017-01-25 at 13:58 -0800, Andy Lutomirski wrote: > >> On Wed, Jan 25, 2017 at 12:23 PM, Ricardo Neri > >> wrote: > >> > Tasks running in virtual-8086 mode will use 16-bi

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

2017-01-26 Thread Zhang Rui
On Thu, 2017-01-26 at 18:03 -0800, Guenter Roeck wrote: > On 01/26/2017 05:37 PM, Zhang Rui wrote: > > > > On Wed, 2017-01-25 at 13:09 +0100, Pali Rohár wrote: > > > > > > On Wednesday 25 January 2017 12:12:33 Pavel Machek wrote: > > > > > > > > > > > > Hi! > > > > > > > > > > > > > > > > >

Re: [v3 PATCH 05/10] x86/insn-kernel: Add support to resolve 16-bit addressing encodings (fwd)

2017-01-26 Thread Ricardo Neri
0day-ci/linux/commits/Ricardo-Neri/x86-Enable-User-Mode-Instruction-Prevention/20170126-043345 > :: branch date: 51 minutes ago > :: commit date: 51 minutes ago > > >> arch/x86/lib/insn-kernel.c:267:6-9: WARNING: Unsigned expression compared > >> with zero: s

[PATCHv5 4/5] arm: mvebu: Add device tree for 98DX3236 SoCs

2017-01-26 Thread Chris Packham
The Marvell 98DX3236, 98DX3336, 98DX4521 and variants are switch ASICs with integrated CPUs. They are similar to the Armada XP SoCs but have different I/O interfaces. Signed-off-by: Chris Packham Acked-by: Rob Herring --- Notes: Changes in v2: - Update devicetree binding documentation t

[PATCHv5 0/5] Support for Marvell switches with integrated CPUs

2017-01-26 Thread Chris Packham
The 98DX3236, 98DX3336 and 98DX4251 are a set of switch ASICs with integrated CPUs. They CPU block is common within these product lines and (as far as I can tell/have been told) is based on the Armada XP. There are a few differences due to the fact they have to squeeze the CPU into the same package

[PATCHv5 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-26 Thread Chris Packham
From: Kalyan Kinthada This pinctrl driver supports the 98DX3236, 98DX3336 and 98DX4251 SoCs from Marvell. Signed-off-by: Kalyan Kinthada Signed-off-by: Chris Packham Acked-by: Rob Herring Acked-by: Sebastian Hesselbarth --- Notes: Changes in v2: - include sdio support for the 98DX42

[PATCHv5 2/5] arm: mvebu: support for SMP on 98DX3336 SoC

2017-01-26 Thread Chris Packham
Compared to the armada-xp the 98DX3336 uses different registers to set the boot address for the secondary CPU so a new enable-method is needed. This will only work if the machine definition doesn't define an overall smp_ops because there is not currently a way of overriding this from the device tre

[PATCHv5 5/5] arm: mvebu: Add device tree for db-dxbc2 and db-xc3-24g4xg boards

2017-01-26 Thread Chris Packham
These boards are Marvell's evaluation boards for the 98DX4251 and 98DX3336 SoCs. Signed-off-by: Chris Packham --- Notes: Changes in v5: - update license text - use node labels arch/arm/boot/dts/db-dxbc2.dts | 151 arch/arm/boot/dts/db-xc3-2

[PATCHv5 1/5] clk: mvebu: support for 98DX3236 SoC

2017-01-26 Thread Chris Packham
The 98DX3236, 98DX3336, 98DX4521 and variants have a different TCLK from the Armada XP (200MHz vs 250MHz). The CPU core clock is fixed at 800MHz. The clock gating options are a subset of those on the Armada XP. The core clock divider is different to the Armada XP also. Signed-off-by: Chris Packh

Re: [PATCH 2/3] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
Hi, Arnaldo :) On 01/27/2017 03:58 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jan 26, 2017 at 06:35:38PM +0900, Taeung Song escreveu: Currently perf ftrace command will select 'function_graph' or 'function'. So add ftrace.tracer config option to select tracer # cat ~/.perfconfig [ftra

[Resend PATCH] x86/e820: break the loop when the region is less then current region

2017-01-26 Thread Wei Yang
e820_all_mapped() iterates the e820 table to check whether a region is mapped or not. Since the e820 table is sorted, when the region is less than the current region, no need to continue the iteration. The patch breaks the loop accordingly. Signed-off-by: Wei Yang --- arch/x86/kernel/e820.c | 8

Re: ibmvtpm byteswapping inconsistency

2017-01-26 Thread Benjamin Herrenschmidt
On Thu, 2017-01-26 at 17:42 -0800, Tyrel Datwyler wrote: > On 01/26/2017 12:22 PM, Michal Suchánek wrote: > > Hello, > > > > building ibmvtpm I noticed gcc warning complaining that second word > > of > > struct ibmvtpm_crq in tpm_ibmvtpm_suspend is uninitialized. > > > > The structure is defined

Re: [PATCH] drm/ttm: Make sure BOs being swapped out are cacheable

2017-01-26 Thread Michel Dänzer
On 26/01/17 09:46 AM, Sinclair Yeh wrote: > On Wed, Jan 25, 2017 at 10:49:33AM +0100, Christian König wrote: >> Am 25.01.2017 um 10:25 schrieb Thomas Hellstrom: >>> On 01/25/2017 09:21 AM, Michel Dänzer wrote: From: Michel Dänzer The current caching state may not be tt_cached, even

Re: [PATCH v2 1/3] zh_CN/CodingStyle: improve translation

2017-01-26 Thread Andy Deng
2017-01-27 6:40 GMT+08:00 Jonathan Corbet : > OK, I've applied the whole set, thanks. Thanks for applying! > One thing, though: your messages came through with this header: > > Content-Type: text/plain; charset=y > > The screwy "charset=y" puts "git am" into a severely uncooperative mood

Re: [PATCH 12/13] mmc: bcm2835: move timeout to thread context

2017-01-26 Thread Shawn Lin
On 2017/1/27 7:37, Gerd Hoffmann wrote: Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index fc2d02f..82caddc 100644 --- a/drivers/mm

Re: [PATCH linux v4 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-01-26 Thread kbuild test robot
Hi Edward, [auto build test ERROR on hwmon/hwmon-next] [also build test ERROR on v4.10-rc5 next-20170125] [cannot apply to linux/master] [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/eajames-ib

Re: [PATCH 04/13] mmc: bcm2835: add bcm2835_check_data_error

2017-01-26 Thread Shawn Lin
On 2017/1/27 7:37, Gerd Hoffmann wrote: Factor out common code. Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 6f9fb12

Re: [PATCH 01/13] mmc: bcm2835: add bcm2835_read_wait_sdcmd

2017-01-26 Thread Shawn Lin
On 2017/1/27 7:37, Gerd Hoffmann wrote: Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 9744517..ceee4cf 100644 --- a/drivers/mmc/host/bc

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

2017-01-26 Thread Guenter Roeck
On 01/26/2017 05:37 PM, Zhang Rui wrote: On Wed, 2017-01-25 at 13:09 +0100, Pali Rohár wrote: On Wednesday 25 January 2017 12:12:33 Pavel Machek wrote: Hi! Right. Before reverting, can you please try if this patch works or not? Not really. Revert now. Sorry. Are you sure? This do

[git pull] drm fixes for 4.10-rc6

2017-01-26 Thread Dave Airlie
Hi Linus, This is the main request for rc6, since really the one earlier was the rc5 one :-) The main thing are the nouveau specific race fixes for the connector locking bug we fixed in -next and reverted here as it has quite large prereqs. These two fixes should solve the problem at that level a

[PATCH 1/2] mm/memblock: use NUMA_NO_NODE instead of MAX_NUMNODES as default node_id

2017-01-26 Thread Wei Yang
According to commit ('mm/memblock: switch to use NUMA_NO_NODE instead of MAX_NUMNODES'), MAX_NUMNODES is not preferred as an node_id indicator. This patch use NUMA_NO_NODE as the default node_id for memblock. Signed-off-by: Wei Yang --- arch/x86/mm/numa.c | 6 +++--- mm/memblock.c | 8 +++

[PATCH 2/2] mm/memblock: switch to use NUMA_NO_NODE instead of MAX_NUMNODES in for_each_mem_pfn_range()

2017-01-26 Thread Wei Yang
As in commit '(mm/memblock: switch to use NUMA_NO_NODE instead of MAX_NUMNODES)', NUMA_NO_NODE is recommended to be the selector of the nid. This patch does the same thing. Signed-off-by: Wei Yang --- include/linux/memblock.h | 2 +- mm/memblock.c| 6 +- 2 files changed, 6 inse

Re: [tpmdd-devel] [PATCH RFC v3 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-26 Thread James Bottomley
On Wed, 2017-01-25 at 15:40 +0200, Jarkko Sakkinen wrote: > On Mon, Jan 23, 2017 at 02:16:37PM -0800, James Bottomley wrote: > > On Mon, 2017-01-23 at 23:42 +0200, Jarkko Sakkinen wrote: > > > On Mon, Jan 23, 2017 at 06:58:23PM +0200, Jarkko Sakkinen wrote: > > > > On Mon, Jan 23, 2017 at 04:09:42P

Re: [PATCH 0/3] ata: add m68k/Atari Falcon PATA support

2017-01-26 Thread Finn Thain
On Thu, 26 Jan 2017, Geert Uytterhoeven wrote: > Hi Finn, > > On Thu, Jan 26, 2017 at 9:47 AM, Finn Thain > wrote: > > The difficulty will be arranging for disabled FDC & IDE interrupt > > sources during SCSI DMA, and disabled SCSI & IDE interrupt sources > > during FDC DMA. (Not all 5380 in

Re: [PATCH v2 2/2] gpio: aspeed: Add banks Y, Z, AA, AB and AC

2017-01-26 Thread Andrew Jeffery
On Thu, 2017-01-26 at 14:51 +0100, Linus Walleij wrote: > > On Tue, Jan 24, 2017 at 7:16 AM, Andrew Jeffery wrote: > > > This is less straight-forward than one would hope, as some banks only > > have 4 pins rather than 8, others are output only, yet more (W and > > X, already supported) are input

Re: ibmvtpm byteswapping inconsistency

2017-01-26 Thread Tyrel Datwyler
On 01/26/2017 12:22 PM, Michal Suchánek wrote: > Hello, > > building ibmvtpm I noticed gcc warning complaining that second word of > struct ibmvtpm_crq in tpm_ibmvtpm_suspend is uninitialized. > > The structure is defined as > > struct ibmvtpm_crq { > u8 valid; > u8 msg; >

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

2017-01-26 Thread Zhang Rui
On Wed, 2017-01-25 at 13:09 +0100, Pali Rohár wrote: > On Wednesday 25 January 2017 12:12:33 Pavel Machek wrote: > > > > Hi! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Right. > > > > > > > > > > > > > > Before reverting, can you please try if this patch works > > >

[RFC v2 05/10] KVM: arm/arm64: Initialize the emulated EL1 physical timer

2017-01-26 Thread Jintack Lim
Initialize the emulated EL1 physical timer with the default irq number. Signed-off-by: Jintack Lim --- arch/arm/kvm/reset.c | 9 - arch/arm64/kvm/reset.c | 9 - include/kvm/arm_arch_timer.h | 3 ++- virt/kvm/arm/arch_timer.c| 9 +++-- 4 files changed, 25 ins

[RFC v2 01/10] KVM: arm/arm64: Abstract virtual timer context into separate structure

2017-01-26 Thread Jintack Lim
Abstract virtual timer context into a separate structure and change all callers referring to timer registers, irq state and so on. No change in functionality. This is about to become very handy when adding the EL1 physical timer. Signed-off-by: Jintack Lim Acked-by: Christoffer Dall --- includ

[RFC v2 07/10] KVM: arm/arm64: Set a background timer to the earliest timer expiration

2017-01-26 Thread Jintack Lim
When scheduling a background timer, consider both of the virtual and physical timer and pick the earliest expiration time. Signed-off-by: Jintack Lim --- arch/arm/kvm/arm.c| 3 ++- virt/kvm/arm/arch_timer.c | 55 --- 2 files changed, 44 insert

[RFC v2 06/10] KVM: arm/arm64: Update the physical timer interrupt level

2017-01-26 Thread Jintack Lim
Now that we maintain the EL1 physical timer register states of VMs, update the physical timer interrupt level along with the virtual one. Note that the emulated EL1 physical timer is not mapped to any hardware timer, so we call a proper vgic function. Signed-off-by: Jintack Lim --- virt/kvm/arm

[RFC v2 09/10] KVM: arm64: Add the EL1 physical timer access handler

2017-01-26 Thread Jintack Lim
KVM traps on the EL1 phys timer accesses from VMs, but it doesn't handle those traps. This results in terminating VMs. Instead, set a handler for the EL1 phys timer access, and inject an undefined exception as an intermediate step. Signed-off-by: Jintack Lim --- arch/arm64/kvm/sys_regs.c | 34 ++

[RFC v2 02/10] KVM: arm/arm64: Move cntvoff to each timer context

2017-01-26 Thread Jintack Lim
Make cntvoff per each timer context. This is helpful to abstract kvm timer functions to work with timer context without considering timer types (e.g. physical timer or virtual timer). This also would pave the way for ever doing adjustments of the cntvoff on a per-CPU basis if that should ever make

[RFC v2 10/10] KVM: arm/arm64: Emulate the EL1 phys timer register access

2017-01-26 Thread Jintack Lim
Emulate read and write operations to CNTP_TVAL, CNTP_CVAL and CNTP_CTL. Now VMs are able to use the EL1 physical timer. Signed-off-by: Jintack Lim --- arch/arm64/kvm/sys_regs.c| 32 +--- include/kvm/arm_arch_timer.h | 2 ++ virt/kvm/arm/arch_timer.c| 2 +- 3

[RFC v2 08/10] KVM: arm/arm64: Set up a background timer for the physical timer emulation

2017-01-26 Thread Jintack Lim
Set a background timer for the EL1 physical timer emulation while VMs are running, so that VMs get the physical timer interrupts in a timely manner. Schedule the background timer on entry to the VM and cancel it on exit. This would not have any performance impact to the guest OSes that currently u

[RFC v2 04/10] KVM: arm/arm64: Add the EL1 physical timer context

2017-01-26 Thread Jintack Lim
Add the EL1 physical timer context. Signed-off-by: Jintack Lim --- include/kvm/arm_arch_timer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h index d921d20..69f648b 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm

[RFC v2 03/10] KVM: arm/arm64: Decouple kvm timer functions from virtual timer

2017-01-26 Thread Jintack Lim
Now that we have a separate structure for timer context, make functions general so that they can work with any timer context, not just the virtual timer context. This does not change the virtual timer functionality. Signed-off-by: Jintack Lim --- arch/arm/kvm/arm.c | 2 +- include/kv

[RFC v2 00/10] Provide the EL1 physical timer to the VM

2017-01-26 Thread Jintack Lim
The ARM architecture defines the EL1 physical timer and the virtual timer, and it is reasonable for an OS to expect to be able to access both. However, the current KVM implementation does not provide the EL1 physical timer to VMs but terminates VMs on access to the timer. This patch series enables

Re: [PATCH 2/2] tpm2-space: add handling for global session exhaustion

2017-01-26 Thread James Bottomley
On Thu, 2017-01-26 at 14:56 +0200, Jarkko Sakkinen wrote: > On Mon, Jan 23, 2017 at 09:38:33PM -0800, James Bottomley wrote: > > In a TPM2, sessions can be globally exhausted once there are > > TPM_PT_ACTIVE_SESSION_MAX of them (even if they're all context > > saved). The Strategy for handling thi

[PATCH 3/5] ARM: dts: qcom-msm8974: Add HS usb node and OTG detection mechanisms

2017-01-26 Thread Stephen Boyd
This USB controller has two phys, so add them both underneath the ULPI bus, but only enable one of them based on the board configuration. To get OTG to work, we need to add the id and vbus detection info and also populate the regulators for the vbus supply. Signed-off-by: Stephen Boyd --- arch/a

[PATCH 4/5] ARM: dts: qcom-apq8064: Collapse usb support into one node

2017-01-26 Thread Stephen Boyd
We currently have three device nodes for the same USB hardware block, as evident by the reuse of the same reg address multiple times. Now that the chipidea driver fully supports OTG with the MSM wrapper we can collapse the three nodes into one USB device node, reflecting the true nature of the hard

[PATCH 5/5] arm64: dts: qcom: Collapse usb support into one node

2017-01-26 Thread Stephen Boyd
We currently have three device nodes for the same USB hardware block, as evident by the reuse of the same reg address multiple times. Now that the chipidea driver fully supports OTG with the MSM wrapper we can collapse all these nodes into one USB device node, reflecting the true nature of the hard

[PATCH 0/5] Updated qcom dts for new USB driver

2017-01-26 Thread Stephen Boyd
This set of patches updates the existing usb chipidea bindings for the newly merged usb driver. It allows us to move away from the split ehci-msm and ci_hdrc_msm drivers, and unify them with one chipidea driver. I've left out HSIC, so it can be sent seperately. Bird, Tim (1): ARM: dts: qcom: ad

[PATCH 2/5] ARM: dts: qcom: add charger otg regulator

2017-01-26 Thread Stephen Boyd
From: "Bird, Tim" Add the otg regulator provided by the charger block. Signed-off-by: Tim Bird Reviewed-by: Bjorn Andersson [stephen.b...@linaro.org: Fix otg supply property name] Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/qcom-pm8941.dtsi | 4 1 file changed, 4 insertions(+) di

[PATCH 1/5] ARM: dts: qcom: Remove s4/5vs1,2 from RPM pm8941 control

2017-01-26 Thread Stephen Boyd
These regulators are controlled by the SPMI regulator driver instead of the RPM regulator driver in the downstream android kernel sources. Let's remove them from the DTS here because they'll never be used by the RPM regulator driver. Cc: Bjorn Andersson Signed-off-by: Stephen Boyd --- arch/arm/

Re: cxl: drop unused header asm/pnv-pci.h

2017-01-26 Thread Michael Ellerman
On Thu, 2017-01-19 at 10:50:10 UTC, Greg Kurz wrote: > The kernel API does not use anything from this header file. > > Signed-off-by: Greg Kurz > Reviewed-by: Andrew Donnellan > Acked-by: Frederic Barrat Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/0e17166d377e74164e4067a

Re: powerpc/powernv/pci: Use kmalloc_array() in two functions

2017-01-26 Thread Michael Ellerman
On Wed, 2016-08-24 at 20:36:54 UTC, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 24 Aug 2016 22:26:37 +0200 > > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus reuse the corresponding function

Re: powerpc/mm: Return directly after a failed __copy_from_user() in sys_subpage_prot()

2017-01-26 Thread Michael Ellerman
On Sat, 2017-01-21 at 15:24:58 UTC, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 21 Jan 2017 16:10:50 +0100 > > * Return directly after a call of the function "__copy_from_user" > failed here. > > This issue was detected by using the Coccinelle software. > > * Delete the jum

Re: powerpc/sstep: Return directly after a failed address_ok() in emulate_step()

2017-01-26 Thread Michael Ellerman
On Sat, 2017-01-21 at 14:45:19 UTC, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 21 Jan 2017 15:30:15 +0100 > > * Return directly after a call of the function "address_ok" failed > in a case block. > > This issue was detected by using the Coccinelle software. > > * Delete tw

Re: [PATCH v2] clk: samsung: mark s3c...._clk_sleep_init() as __init

2017-01-26 Thread Stephen Boyd
On 01/25, mar...@kaiser.cx wrote: > From: Martin Kaiser > > These functions are referencing s3c_clk_regs[], which are marked as > __initdata. When compiling with CONFIG_DEBUG_SECTION_MISMATCH=y, this > produces warnings like > > WARNING: vmlinux.o(.text+0x198350): > Section mismatch in refer

Re: [RFC PATCH] rtc/nxp: add FTM alarm driver as the wakeup source

2017-01-26 Thread Alexandre Belloni
Hi, On 24/10/2016 at 09:42:16 +0800, Meng Yi wrote: > For the platforms including LS1021A, LS1043A that has the > flextimer module, implementing alarm functions within RTC > subsystem to wakeup the system when system going to sleep. > Only Ftm0 can be used to wakeup the system. > > Signed-off-by:

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

2017-01-26 Thread Stephen Boyd
On 01/23, Pierre-Louis Bossart wrote: > 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) fo

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

2017-01-26 Thread Stephen Boyd
On 01/23, Pierre-Louis Bossart wrote: > s/Acumulate/Accumulate/ > > Signed-off-by: Pierre-Louis Bossart > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

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

2017-01-26 Thread Stephen Boyd
On 01/23, Pierre-Louis Bossart wrote: > 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) fo

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

2017-01-26 Thread Stephen Boyd
On 01/23, Pierre-Louis Bossart wrote: > 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 > --- Applied to clk-next -- Qualcomm Innovation Center, In

Re: [PATCH v2] clk: hisilicon: fix lock assignment

2017-01-26 Thread Stephen Boyd
On 01/21, Leo Yan wrote: > In clock driver initialize phase the spinlock is missed to assignment > to struct clkgate_separated, finally there have no locking to protect > exclusive accessing for clock registers. > > This bug introduces the console has no output after enable coresight > driver on 9

  1   2   3   4   5   6   7   8   >