[GIT PULL] Renesas ARM Based SoC SH Drivers Fixes for v4.5

2016-02-25 Thread Simon Horman
Hi Linus, Please consider this Renesas ARM based SoC SH drivers fix for v4.5. This corrects a regression for some SuperH platforms which was introduced in v4.4. The regression may lead to driver failures due to clocks not being enabled when needed. The following changes since commit 92e963f50fc

[PATCH 0/4] MSR: MSR: MSR Whitelist and Batch Introduction

2016-02-25 Thread Marty McFadden
This patch addresses the following two problems: 1. The current msr module grants all-or-nothing access to MSRs, thus making user-level runtime performance adjustments problematic, particularly for power-constrained HPC systems. 2. The current msr module requires a separate system

[PATCH 1/4] MSR: Prep for separating msr.c into three files

2016-02-25 Thread Marty McFadden
DEPENDENCY: Compilation depends upon next commit. This commit only does the rename of msr.c --> msr_entry.c. Separated in to two commits so that "git am" would work without complaint. No functional change (yet). Just preparation for splitting the MSR k

[PATCH 2/4] MSR: Prep for separating msr.c into three files

2016-02-25 Thread Marty McFadden
No functional change (yet). Just updated Makefile to successfully build msr_entry.c instead of msr.c. This is in preparation for splitting the MSR kernel module into three separate implementation files: 1) msr_entry.c - Original msr driver and entry (now) 2) msr_whitelist.c - MSR Whitelist i

[PATCH 4/4] MSR: msr Batch processing feature

2016-02-25 Thread Marty McFadden
Provides a new ioctl interface through /dev/cpu/msr_batch. This implementation will cause an Inter Processor Interrupt to be sent to each destination processor and will wait until all processors have finished processing their respective batch of MSR operations before returning. Implementation Not

linux-next: manual merge of the net-next tree with the net tree

2016-02-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: include/uapi/linux/bpf.h between commit: 2da897e51d7f ("bpf: fix csum setting for bpf_set_tunnel_key") from the net tree and commit: d5a3b1f69186 ("bpf: introduce BPF_MAP_TYPE_STACK_TRACE") from the net-next tree.

[PATCH 3/4] MSR: msr Whitelist Implementation

2016-02-25 Thread Marty McFadden
Allows the administrator to configure a set of bit masks for MSRs where access is permitted. Whitelist Administration: To configure whitelist (as root): cat whitelistfile > /dev/cpu/msr_whitelist This operation will cause the previous whitelist to be replaced by the specified whitelist.

Re: linux-next: manual merge of the net-next tree with the net tree

2016-02-25 Thread Daniel Borkmann
On 02/26/2016 01:13 AM, Stephen Rothwell wrote: [...] I fixed it up (see below) and can carry the fix as necessary (no action is required). Looks good to me, thanks Stephen! Best, Daniel

[PATCH v2 0/2] arm64/efi: query Secure Boot status according to UEFI spec

2016-02-25 Thread Linn Crosetto
This series modifies the function that queries the status of UEFI Secure Boot in the EFI stub to match the UEFI specification, and allow the caller to determine if it is enabled, disabled, or in an unknown state due to an unexpected error from GetVariable(). v2: - Add return values for unexpecte

[PATCH v2 1/2] arm64/efi: report unexpected errors when determining Secure Boot status

2016-02-25 Thread Linn Crosetto
Certain code in the boot path may require the ability to determine whether UEFI Secure Boot is definitely enabled, for example printing status to the console. Other code may need to know when UEFI Secure Boot is definitely disabled, for example restricting use of kernel parameters. If an unexpecte

[PATCH v2 2/2] arm64/efi: check SetupMode when determining Secure Boot status

2016-02-25 Thread Linn Crosetto
According to the UEFI specification (version 2.5 Errata A, page 87): The platform firmware is operating in secure boot mode if the value of the SetupMode variable is 0 and the SecureBoot variable is set to 1. A platform cannot operate in secure boot mode if the SetupMode variable i

[PATCH] bsp: add SoC device to brcmstb

2016-02-25 Thread Justin Chen
From: Justin Chen Added SoC driver at drivers/soc/brcmstb/common.c. Added two helper functions for getting family/product ID located at include/linux/soc/brcmstb/brcmstb.h. Assigned the values of soc_dev_attribute accordingly: family = chip family id soc_id = product id revision = product revisi

[RFC][PATCH v2] thermal: add sysfs_notify on some attributes

2016-02-25 Thread Srikar Srimath Tirumala
Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ cur_state whenever any trip is triggered or cur state is changed. This change allows usermode apps to register themselves to get notified, when certain thermal conditions occur and reduce their workload. This workload throttling allows

Re: [RFC][PATCH] thermal: add sysfs_notify on some attributes

2016-02-25 Thread Srikar Srimath Tirumala
On 02/24/2016 12:24 PM, Pandruvada, Srinivas wrote: On Tue, 2016-02-23 at 20:11 -0800, Srikar Srimath Tirumala wrote: Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ cur_state whenever a passive or critical trip is triggered. This change allows usermode apps to register itself to

Re: [Devel] [PATCH] fs/pnode.c: treat zero mnt_group_id-s as unequal

2016-02-25 Thread Andrew Vagin
On Tue, Feb 16, 2016 at 11:07:32PM -0800, Maxim Patlasov wrote: > On 02/16/2016 11:54 AM, Al Viro wrote: > >On Tue, Feb 16, 2016 at 11:45:33AM -0800, Maxim Patlasov wrote: > >>propagate_one(m) calculates "type" argument for copy_tree() like this: > >> > >>>if (m->mnt_group_id == last_dest->mnt_

Re: [PATCH] arm64: defconfig: Enable exynos thermal config

2016-02-25 Thread Krzysztof Kozlowski
On 25.02.2016 12:34, Alim Akhtar wrote: > This patch enables exynos thermal and related configs for the > TMU found on exynos7 SoC. This also enables thermal emulation > mode to test trip points. > > Signed-off-by: Alim Akhtar > --- > arch/arm64/configs/defconfig |3 +++ > 1 file changed, 3

Re: [RFCv7 PATCH 03/10] sched: scheduler-driven cpu frequency selection

2016-02-25 Thread Steve Muckle
On 02/24/2016 07:55 PM, Rafael J. Wysocki wrote: > Hi, > > I promised a review and here it goes. Thanks Rafael for your detailed review. > > Let me focus on this one as the rest seems to depend on it. > > On Monday, February 22, 2016 05:22:43 PM Steve Muckle wrote: >> From: Michael Turquette

[PATCH 2/3] lkdtm: Update WRITE_AFTER_FREE test

2016-02-25 Thread Laura Abbott
The SLUB allocator may use the first word of a freed block to store the freelist information. This may make it harder to test poisoning features. Change the WRITE_AFTER_FREE test to better match what the READ_AFTER_FREE test does and also print out a big more information. Signed-off-by: Kees Cook

[PATCHv4 1/3] lkdtm: Add READ_AFTER_FREE test

2016-02-25 Thread Laura Abbott
In a similar manner to WRITE_AFTER_FREE, add a READ_AFTER_FREE test to test free poisoning features. Sample output when no sanitization is present: # echo READ_AFTER_FREE > /sys/kernel/debug/provoke-crash/DIRECT [ 17.542473] lkdtm: Performing direct entry READ_AFTER_FREE [ 17.543866] lkdtm:

[PATCHv2 3/3] lkdtm: Add read/write after free tests for buddy memory

2016-02-25 Thread Laura Abbott
The current tests for read/write after free work on slab allocated memory. Memory straight from the buddy allocator may behave slightly differently and have a different set of parameters to test. Add tests for those cases as well. On a basic x86 boot: # echo WRITE_BUDDY_AFTER_FREE > /sys/kernel

[PATCHv2 0/3] LKDTM use after free test updates

2016-02-25 Thread Laura Abbott
Hi, This is v2 of the LKDTM test update. This is mostly taking the updates Kees gave for the previous series and bringing it in. Laura Abbott (3): lkdtm: Add READ_AFTER_FREE test lkdtm: Update WRITE_AFTER_FREE test lkdtm: Add read/write after free tests for buddy memory drivers/misc/lkdtm

Re: BUG: unable to handle kernel paging request from pty_write [was: Linux 4.4.2]

2016-02-25 Thread Linus Torvalds
On Thu, Feb 25, 2016 at 1:32 PM, Jiri Slaby wrote: > > Interestingly, RBP contains address inside try_to_wake_up -- > 810a535a (dunno why) which is: > 810a5355: e8 66 a0 ff ff callq 8109f3c0 > > 810a535a: e9 9d fe ff ff jmpq fff

Re: BUG: unable to handle kernel paging request from pty_write [was: Linux 4.4.2]

2016-02-25 Thread Peter Hurley
On 02/25/2016 02:33 PM, Peter Hurley wrote: > On 02/25/2016 01:32 PM, Jiri Slaby wrote: >> On 02/25/2016, 09:51 PM, Linus Torvalds wrote: >>> Jiri, can you check your try_to_wake_up() disassembly for some >>> indirect "jmp" instructions? >> >> Nope, there is none. >> >> I will reply to all your que

Re: [RESPIN/PATCH] arm64: dts: Add tmu node for exynos7

2016-02-25 Thread Krzysztof Kozlowski
On 25.02.2016 18:05, Alim Akhtar wrote: > This patch adds tmu node, related temprature sensor and triping > point data for Atlas cpu core found on exynos7 SoC. > > Signed-off-by: Alim Akhtar > --- > Change log: > * no changes, just sending back from my email id. All my comments from previous sub

Re: [PATCH v13] x86, mce: Add memcpy_trap()

2016-02-25 Thread Linus Torvalds
On Thu, Feb 25, 2016 at 2:11 PM, Andy Lutomirski wrote: > > do_machine_check uses IST, the memory failure code can sleep, and you > can't sleep in IST context. There's a special escape that lets > memory_failure sleep *if* it came from user mode. So? Just save it away in a list (we've got the N

[PATCH v4 2/2] mm/page_ref: add tracepoint to track down page reference manipulation

2016-02-25 Thread js1304
From: Joonsoo Kim CMA allocation should be guaranteed to succeed by definition, but, unfortunately, it would be failed sometimes. It is hard to track down the problem, because it is related to page reference manipulation and we don't have any facility to analyze it. This patch adds tracepoints t

[PATCH v3 00/52] mtd: rework ECC layout definition

2016-02-25 Thread Boris Brezillon
Hello, This patchset aims at getting rid of the nand_ecclayout limitations. struct nand_ecclayout is defining fixed eccpos and oobfree arrays which can only be increased by modifying the MTD_MAX_ECCPOS_ENTRIES_LARGE and MTD_MAX_OOBFREE_ENTRIES_LARGE macros. This approach forces us to modify the ma

[PATCH v3 10/52] mtd: nand: gpmi: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/gpmi-na

[PATCH v3 05/52] mtd: add mtd_ooblayout_xxx() helper functions

2016-02-25 Thread Boris Brezillon
In order to make the ecclayout definition completely dynamic we need to rework the way the OOB layout are defined and iterated. Create a few mtd_ooblayout_xxx() helpers to ease OOB bytes manipulation and hide ecclayout internals to their users. Signed-off-by: Boris Brezillon --- drivers/mtd/mtd

[PATCH v3 09/52] mtd: nand: fsl_ifc: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsl_ifc

[PATCH v3 04/52] mtd: nand: simplify nand_bch_init() usage

2016-02-25 Thread Boris Brezillon
nand_bch_init() requires several arguments which could directly be deduced from the mtd device. Get rid of those useless parameters. nand_bch_init() is also requiring the caller to provide a proper eccbytes value, while this value could be deduced from the ecc.size and ecc.strength value. Fallback

[PATCH v3 08/52] mtd: nand: atmel: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/atmel_n

[PATCH v3 02/52] mtd: create an mtd_oobavail() helper and make use of it

2016-02-25 Thread Boris Brezillon
Currently, all MTD drivers/sublayers exposing an OOB area are doing the same kind of test to extract the available OOB size based on the mtd_info and mtd_oob_ops structures. Move this common logic into an inline function and make use of it. Signed-off-by: Boris Brezillon Suggested-by: Priit Laes

[PATCH v3 03/52] mtd: mtdswap: remove useless if (!mtd->ecclayout) test

2016-02-25 Thread Boris Brezillon
If the MTD device does not have OOB, the mtd->oobsize and mtd->oobavail fields are set to zero, and we are testing those values in the following test. Remove the useless if (!mtd->ecclayout) test. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdswap.c | 8 1 file changed, 8 deletions(

[PATCH v3 11/52] mtd: nand: lpc32xx: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/lpc32xx

[PATCH v3 07/52] mtd: nand: core: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_ba

Re: [RFCv7 PATCH 02/10] cpufreq: introduce cpufreq_driver_is_slow

2016-02-25 Thread Michael Turquette
Quoting Rafael J. Wysocki (2016-02-22 17:31:09) > On Tue, Feb 23, 2016 at 2:22 AM, Steve Muckle wrote: > > From: Michael Turquette > > > > Some architectures and platforms perform CPU frequency transitions > > through a non-blocking method, while some might block or sleep. Even > > when frequency

[PATCH v3 12/52] mtd: nand: omap2: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/omap2.c

[PATCH v3 17/52] mtd: onenand: use mtd_set_ecclayout() where appropriate

2016-02-25 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon --- drivers/mtd/onenand/onenand_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_b

[PATCH v3 19/52] mtd: create an mtd_ooblayout_ops struct to ease ECC layout definition

2016-02-25 Thread Boris Brezillon
ECC layout definitions are currently exposed using the nand_ecclayout struct which embeds oobfree and eccpos arrays with predefined size. This approach was acceptable when NAND chips were providing relatively small OOB regions, but MLC and TLC now provide OOB regions of several hundreds of bytes, w

[PATCH v3 18/52] mtd: docg3: use mtd_set_ecclayout() where appropriate

2016-02-25 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon Acked-by: Robert Jarzmik --- drivers/mtd/devices/docg3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/device

[PATCH v3 16/52] mtd: nand: use mtd_set_ecclayout() where appropriate

2016-02-25 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 17504f2

[PATCH v3 14/52] mtd: add mtd_set_ecclayout() helper function

2016-02-25 Thread Boris Brezillon
Add an mtd_set_ecclayout() helper function to avoid direct accesses to the mtd->ecclayout field. This will ease future reworks of ECC layout definition. Signed-off-by: Boris Brezillon --- include/linux/mtd/mtd.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/mtd/mtd.h b/

[PATCH v3 13/52] mtd: onenand: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon --- drivers/mtd/onenand/onen

[PATCH v3 15/52] mtd: use mtd_set_ecclayout() where appropriate

2016-02-25 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdconcat.c | 2 +- drivers/mtd/mtdpart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdco

[PATCH v3 20/52] mtd: docg3: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon Acked-by: Robert Jarzmik --- drivers/mtd/devices/docg3.c | 46 ++--- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/drive

[PATCH v3 21/52] mtd: nand: implement the default mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Replace the default nand_ecclayout definitions for large and small page devices with the equivalent mtd_ooblayout_ops. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 148 --- include/linux/mtd/nand.h | 3 + 2 files changed, 99 inse

[PATCH v3 22/52] mtd: nand: bch: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_bch.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/drivers/mtd/nand/nand_bch.c b/drivers/mtd/n

[PATCH v3 23/52] mtd: nand: sharpsl: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- arch/arm/mach-pxa/spitz.c | 55 - drivers/mtd/nand/sharpsl.c | 2 +- include/linux/mtd/sharpsl.h | 2 +- 3 file

[PATCH v3 25/52] mtd: nand: atmel: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/atmel_nand.c | 84 --- 1 file changed, 38 insertions(+), 46 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 24/52] mtd: nand: jz4740: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- arch/mips/include/asm/mach-jz4740/jz4740_nand.h | 2 +- arch/mips/jz4740/board-qi_lb60.c| 87 +++-- drivers/mtd/nand/jz4740

[PATCH v3 27/52] mtd: nand: brcm: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/brcmnand/brcmnand.c | 258 +-- 1 file changed, 157 insertions(+), 101 deletions(-) diff --git a/drivers/mtd/na

[PATCH v3 26/52] mtd: nand: bf5xx: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/bf5xx_nand.c | 51 --- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 28/52] mtd: nand: cafe: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/cafe_nand.c | 45 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 29/52] mtd: nand: davinci: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/davinci_nand.c | 118 +++- 1 file changed, 44 insertions(+), 74 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 30/52] mtd: nand: denali: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/denali.c | 51 +-- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 31/52] mtd: nand: diskonchip: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/diskonchip.c | 60 --- 1 file changed, 45 insertions(+), 15 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 32/52] mtd: nand: docg4: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/docg4.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/nand/docg4.c b/drive

[PATCH v3 34/52] mtd: nand: fsl_ifc: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsl_ifc_nand.c | 231 1 file changed, 67 insertions(+), 164 deletions(-) diff --git a/drivers/mtd/nan

Re: [PATCH 3/4] MSR: msr Whitelist Implementation

2016-02-25 Thread kbuild test robot
Hi Marty, [auto build test WARNING on tip/x86/core] [also build test WARNING on v4.5-rc5 next-20160225] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Marty-McFadden/MSR-MSR-MSR-Whitelist-and

[PATCH] MSR: fix badzero.cocci warnings

2016-02-25 Thread kbuild test robot
arch/x86/kernel/msr_whitelist.c:200:18-19: WARNING comparing pointer to 0 arch/x86/kernel/msr_whitelist.c:203:27-28: WARNING comparing pointer to 0 Compare pointer-typed values to NULL rather than 0 Semantic patch information: This makes an effort to choose between !x and x == NULL. !x is used

[PATCH v3 33/52] mtd: nand: fsl_elbc: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsl_elbc_nand.c | 83 +++- 1 file changed, 47 insertions(+), 36 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 35/52] mtd: nand: fsmc: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsmc_nand.c | 298 --- 1 file changed, 82 insertions(+), 216 deletions(-) diff --git a/drivers/mtd/nan

[PATCH v3 39/52] mtd: nand: jz4780: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/jz4780_nand.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/mtd/nand/jz4780_nand.c b/drivers

[PATCH v3 40/52] mtd: nand: lpc32xx: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/lpc32xx_mlc.c | 50 -- drivers/mtd/nand/lpc32xx_slc.c | 41 +++--- 2 files

Re: rcu_preempt self-detected stall on CPU from 4.5-rc3, since 3.17

2016-02-25 Thread Paul E. McKenney
On Thu, Feb 25, 2016 at 04:13:11PM +1100, Ross Green wrote: > On Wed, Feb 24, 2016 at 8:28 AM, Ross Green wrote: > > On Wed, Feb 24, 2016 at 7:55 AM, Paul E. McKenney > > wrote: [ . . . ] > >> Still working on getting decent traces... And I might have succeeded, see below. > >> > >>

Re: [PATCH] dmaengine: omap-dma: Do not call omap_dma_callback() from tx_status()

2016-02-25 Thread Russell King - ARM Linux
On Thu, Feb 25, 2016 at 10:28:59AM +0200, Peter Ujfalusi wrote: > When based on the CCR_ENABLE bit the channel is stopped we should not call > omap_dma_callback(), only change the return value to DMA_COMPLETE. Client > drivers will do the right thing to clean up the channel after the transfer > has

[PATCH v3 41/52] mtd: nand: mxc: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/mxc_nand.c | 212 ++-- 1 file changed, 105 insertions(+), 107 deletions(-) diff --git a/drivers/mtd/na

[PATCH v3 44/52] mtd: nand: s3c2410: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/s3c2410.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/nand/s3c2410.c b/dr

[PATCH v3 43/52] mtd: nand: pxa3xx: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/pxa3xx_nand.c | 104 + 1 file changed, 64 insertions(+), 40 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 42/52] mtd: nand: omap2: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/omap2.c | 194 +++ 1 file changed, 113 insertions(+), 81 deletions(-) diff --git a/drivers/mtd/nan

Re: [alsa-devel] [PATCH] ASoC: rt5640: add master clock handling for rt5640

2016-02-25 Thread Mark Brown
On Wed, Feb 24, 2016 at 10:10:05AM -0600, Pierre-Louis Bossart wrote: > On 2/23/16 9:32 PM, Mark Brown wrote: > >That said we really do need x86 to transition to use the clock API > >in order to integrate with external devices, where the machine driver > >does manage clocks we want that to move to

[PATCH v2 5/6] staging: lustre: make module_init/exit naming consistent

2016-02-25 Thread James Simmons
From: Andreas Dilger Make the name of the module_init()/_exit() functions consistently {module_name}_init and {module_name}_exit. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6204 Reviewed-on: http://review.whamcloud.com/16787 Reviewed-by: John L. Hammond R

[PATCH v3 45/52] mtd: nand: sh_flctl: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sh_flctl.c | 87 ++--- 1 file changed, 67 insertions(+), 20 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 47/52] mtd: nand: sunxi: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 114 +++--- 1 file changed, 52 insertions(+), 62 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 50/52] staging: mt29f_spinand: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 48 +-- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/drivers/staging/mt29f_spinand/m

[PATCH v3 49/52] mtd: onenand: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Modify the onenand drivers to switch to this approach. Signed-off-by: Boris Brezillon --- drivers/mtd/onenand/onenand_base.c | 162 ++--- include/linux/mtd/onenand

[PATCH v3 52/52] mtd: kill the nand_ecclayout struct

2016-02-25 Thread Boris Brezillon
Now that all MTD drivers have moved to the mtd_ooblayout_ops model we can safely remove the struct nand_ecclayout definition, and all the remaining places where it was still used. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdchar.c | 12 ++--- drivers/mtd/mtdcore.c | 117

[PATCH v3 48/52] mtd: nand: vf610: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/vf610_nfc.c | 34 -- 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/drivers/mtd/nand/vf610_nfc.

[PATCH v3 46/52] mtd: nand: sm_common: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sm_common.c | 93 1 file changed, 77 insertions(+), 16 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v3 51/52] mtd: nand: kill the ecc->layout field

2016-02-25 Thread Boris Brezillon
Now that all NAND drivers have switch to mtd_ooblayout_ops, we can kill the ecc->layout field. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 7 --- drivers/mtd/nand/nand_bch.c | 9 - include/linux/mtd/nand.h | 2 -- 3 files changed, 18 deletions(-) diff --gi

[PATCH v2 2/6] staging: lustre: add missing MODULE_AUTHOR for LNet selftest module

2016-02-25 Thread James Simmons
From: Andreas Dilger For LNet selftest module the MODULE_AUTHOR was missing. Add proper OpenSFS authorship. Broken out of patch http://review.whamcloud.com/16787. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6204 Reviewed-on: http://review.whamcloud.com/1678

Re: [RESEND PATCH 1/8] clk: rockchip: add id of the tsadc clock found on rk3228 SoCs

2016-02-25 Thread Heiko Stuebner
Am Montag, 15. Februar 2016, 15:33:26 schrieb Caesar Wang: > This patch adds 'SCLK_TSADC' and 'PCLK_TSADC' id found on rk3228 SoCs. > That will be needed by TSADC controller. > > Signed-off-by: Caesar Wang applied to my clk-branch with Mike's Ack Thanks Heiko

[PATCH v2 6/6] staging: lustre: update comment for lnet_lib_init/exit

2016-02-25 Thread James Simmons
From: Andreas Dilger The documentation about the return values for lnet_lib_init and lnet_lib_exit was in the old style format. Bring it in sync with the rest of the LNet core. Broken out of patch 16787. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6204 Revi

Re: [RESEND PATCH 2/8] clk: rockchip: add the tsadc clocks found on rk3228 SoCs

2016-02-25 Thread Heiko Stuebner
Am Montag, 15. Februar 2016, 15:33:27 schrieb Caesar Wang: > This patch adds the needed clocks for rk3228 tsadc. > > Signed-off-by: Caesar Wang applied to my clk-branch with Mike's Ack Thanks Heiko

[PATCH v2 3/6] staging: lustre: update the MODULE_VERSION for all lustre modules

2016-02-25 Thread James Simmons
For several lustre modules the MODULE_VERSION has the wrong value, located in the wrong place in the source code, or completely missing. This patch brings it up to date. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6204 Reviewed-on: http://review.whamcloud.com/

[PATCH v3 38/52] mtd: nand: hisi504: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/hisi504_nand.c | 26 +++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/hisi504_nand.c

[PATCH v2 1/6] staging: lustre: move module info to end of libcfs module.c file

2016-02-25 Thread James Simmons
Move the MODULE_* field in module.c that belongs to libcfs to the end of the file like it is done for other kernel drivers. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/libcfs/module.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/stagin

Re: [RFCv7 PATCH 02/10] cpufreq: introduce cpufreq_driver_is_slow

2016-02-25 Thread Rafael J. Wysocki
On Thursday, February 25, 2016 04:50:29 PM Michael Turquette wrote: > Quoting Rafael J. Wysocki (2016-02-22 17:31:09) > > On Tue, Feb 23, 2016 at 2:22 AM, Steve Muckle > > wrote: > > > From: Michael Turquette > > > > > > Some architectures and platforms perform CPU frequency transitions > > > th

Re: [PATCH v1 0/4] Add clock ids for RK3228 HDMI/VOP modules

2016-02-25 Thread Heiko Stuebner
Am Mittwoch, 24. Februar 2016, 18:05:03 schrieb Yakir Yang: > Add clocks ids for RK3228 HDMI/VOP modules which driver already have been > posted. > > RK3228 HDMI driver: https://patchwork.kernel.org/patch/7974671 > RK3228 VOP driver: https://patchwork.kernel.org/patch/7952591 > > Yakir Yang (4):

[PATCH v3 36/52] mtd: nand: fsmc: get rid of the fsmc_nand_eccplace struct

2016-02-25 Thread Boris Brezillon
Now that mtd_ooblayout_ecc() returns the ECC byte position using the OOB free method, we can get rid of the fsmc_nand_eccplace struct. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsmc_nand.c | 60 +++- include/linux/mtd/fsmc.h | 18

[PATCH v2 4/6] staging: lustre: update the MODULE_DESCRIPTION for all lustre modules

2016-02-25 Thread James Simmons
From: Andreas Dilger Fixup the MODULE_DESCRIPTION for several lustre modules. Some wrongly place the version in the string or they are not descriptive enough. Broken out of patch http://review.whamcloud.com/16787. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU

Re: [RESEND PATCH] clk: rockchip: include downstream muxes into fractional dividers on rk3368

2016-02-25 Thread Heiko Stuebner
Am Mittwoch, 24. Februar 2016, 08:44:11 schrieb Elaine Zhang: > During the initial conversion to the newly introduced combined fractional > dividers+muxes the rk3368 clocks were left out, so convert them now. > > Signed-off-by: Elaine Zhang applied to my clk-branch Thanks Heiko

Re: [PATCH] of/overlay: add of overlay notifications

2016-02-25 Thread atull
On Thu, 25 Feb 2016, Alan Tull wrote: > This patch add of overlay notifications. > > When DT overlays are being added, some drivers/subsystems > need to see device tree overlays before the changes go into > the live tree. > > This is distinct from reconfig notifiers that are > post-apply or post

[PATCH v2 0/6] staging: lustre: update modinfo data

2016-02-25 Thread James Simmons
The module information for Lustre is stale or in some cases completely missing. This collection of patches brings the modinfo up to date as well as filling in any missing information. This patch set has been redone to rebase it on Oleg's latest patch set to avoid collisons in merging. Andreas Dilg

[PATCH v3 37/52] mtd: nand: gpmi: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 52 ++ 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/drivers/mtd/nand

Re: [RFCv7 PATCH 02/10] cpufreq: introduce cpufreq_driver_is_slow

2016-02-25 Thread Steve Muckle
On 02/25/2016 04:50 PM, Michael Turquette wrote: >> > Something more sophisticated than this is needed, because one driver >> > may actually be able to do "fast" switching in some cases and may not >> > be able to do that in other cases. > > Those drivers can set the flag dynamically when they prob

Re: [RESEND PATCH 0/8] Support and fixes the rk3228 SoCS for thermal

2016-02-25 Thread Heiko Stuebner
Am Dienstag, 16. Februar 2016, 00:25:39 schrieb Heiko Stuebner: > Am Montag, 15. Februar 2016, 15:33:25 schrieb Caesar Wang: > > 1a6f334 clk: rockchip: add id of the tsadc clock found on rk3228 SoCs > > 8cf2d1b clk: rockchip: add the tsadc clocks found on rk3228 SoCs > > bdc79c0 ARM: dts: rockchip:

[PATCH v3 06/52] mtd: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdchar.c |

[PATCH v3 01/52] mtd: kill the ecclayout->oobavail field

2016-02-25 Thread Boris Brezillon
ecclayout->oobavail is just redundant with the mtd->oobavail field. Moreover, it prevents static const definition of ecc layouts since the NAND framework is calculating this value based on the ecclayout->oobfree field. Signed-off-by: Boris Brezillon --- drivers/mtd/devices/docg3.c

<    3   4   5   6   7   8   9   10   >