[PATCH 02/47] mtd: nand: stm_nand_bch: provide Device Tree documentation

2014-05-01 Thread Lee Jones
This is where we describe the different new and generic options used by the ST BCH driver. Cc: devicet...@vger.kernel.org Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/mtd/stm-nand.txt | 123 + 1 file changed, 123 insertions(+) create mode 100644

[PATCH 04/47] mtd: nand: adding ST's BCH NAND Controller driver

2014-05-01 Thread Lee Jones
First introduction of the driver. Includes the basic device struct (some functionality isn't utilised as of yet) and supplies some of the important resources required for basic running of the Controller. Signed-off-by: Lee Jones --- drivers/mtd/nand/Kconfig| 7 ++

[PATCH 01/47] ARM: sti: Add BCH (NAND Flash) Controller support for STiH41x (Orly) SoCs

2014-05-01 Thread Lee Jones
Provide device information and flash layout for the NAND Micron MT29F8G08ABABAWP chip found on the STM B2020 Development Board. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih41x-b2020.dtsi | 39 1 file changed, 39 insertions(+) diff --git

[PATCH 03/47] mtd: nand: add shared register defines for ST's NAND Controller drivers

2014-05-01 Thread Lee Jones
Provide register and bit definitions used by STM's BCH Controller driver. We place these into a shared location as they will be used by other STM NAND Controllers as they appear. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_regs.h | 302 +++ 1 file

[PATCH 06/47] mtd: nand: stm_nand_bch: IRQ support for ST's BCH NAND Controller driver

2014-05-01 Thread Lee Jones
Obtain IRQ number and request IRQ resource via the usual methods. We're also registering an IRQ handler to inform us of any completed tasks. Notice that we're starting to make use of the device struct that we defined before. In keeping with the subject of the patch, we're also adding the related

[PATCH 07/47] mtd: nand: stm_nand_bch: change between BCH and Hamming modes

2014-05-01 Thread Lee Jones
The EMISS is a device which, amongst other things, controls various flash memory modes. We make use of it here merely to flip the HAMMING_NOT_BCH bit dependant on whether we wish to operate in Hamming or BCH modes. The STM BCH driver makes good use of the helper introduced here. Signed-off-by:

[PATCH 09/47] mtd: nand: stm_nand_bch: supply clock support

2014-05-01 Thread Lee Jones
Add support for clocks when, and only when, they are supplied. It is not yet compulsory to provide the BCH and EMI clocks, as Common Clk isn't supported Mainline yet. Until an implementation lands upstream all clocks located on STM boards default to always-on. Signed-off-by: Lee Jones ---

[PATCH 10/47] mtd: nand: stm_nand_bch: introduce and initialise some important data structures

2014-05-01 Thread Lee Jones
Provide some more in-depth structures which will be used heavily within the driver. We also add a convenience function, used to set the default values. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 67 + 1 file changed, 67 insertions(+)

[PATCH 12/47] mtd: nand: stm_nand_bch: add Power Management

2014-05-01 Thread Lee Jones
Populate the standard PM call-backs for; suspend, resume and restore. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index

[PATCH 08/47] mtd: nand: stm_nand_bch: initialise the BCH Controller

2014-05-01 Thread Lee Jones
This call resets the ECC stats, boot-mode controller and the AFM (Advanced Flex Mode) controller, then enables Advanced Flex Mode, configures the DMA plugs and finally enables the NANDi controller IRQs. All required initialisation for clean running of the driver. Signed-off-by: Lee Jones ---

[PATCH 14/47] mtd: nand: stm_nand_bch: provide Device Tree support

2014-05-01 Thread Lee Jones
Fetch platform specific data from Device Tree. Any functions which are useful to other STM NAND Controllers have been separated into a separate file so they can be easily referenced by them as they appear. Signed-off-by: Lee Jones --- drivers/mtd/nand/Kconfig| 7 ++

[PATCH 18/47] mtd: nand: stm_nand_bch: automatically set EEC mode if requested

2014-05-01 Thread Lee Jones
Here we automatically select the strongest ECC scheme compatible with the size of the OOB. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 43 + 1 file changed, 43 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c

[PATCH 17/47] mtd: nand: stm_nand_bch: derive some working variables for latter use

2014-05-01 Thread Lee Jones
A few of the working variables can either be taken or derived from existing knowledge about the connected chip. Rather than attempt to provide each specification manually, here we make assumptions based on information already obtained. Signed-off-by: Lee Jones ---

[PATCH 16/47] mtd: nand: stm_nand_bch: add compatible page size check

2014-05-01 Thread Lee Jones
Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index fdb06517..a1c25d0 100644 --- a/drivers/mtd/nand/stm_nand_bch.c +++ b/drivers/mtd/nand/stm_nand_bch.c

Re: [PATCH v5 2/6] arm64: Introduce VA_BITS and translation level options

2014-05-01 Thread Christoffer Dall
On Thu, May 01, 2014 at 11:33:56AM +0900, Jungseok Lee wrote: > This patch adds virtual address space size and a level of translation > tables to kernel configuration. It facilicates introduction of > different MMU options, such as 4KB + 4 levels, 16KB + 4 levels and > 64KB + 3 levels, easily. >

Re: [PATCH v5 3/6] arm64: Add a description on 48-bit address space with 4KB pages

2014-05-01 Thread Christoffer Dall
On Thu, May 01, 2014 at 11:34:05AM +0900, Jungseok Lee wrote: > This patch adds memory layout and translation lookup information > about 48-bit address space with 4K pages. The description is based > on 4 levels of translation tables. > > Cc: Catalin Marinas > Cc: Steve Capper > Signed-off-by:

[PATCH 20/47] mtd: nand: stm_nand_bch: configure BCH read/write/erase programs

2014-05-01 Thread Lee Jones
Tune BCH programs according to device found and ECC mode. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 121 1 file changed, 121 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index

[PATCH 22/47] mtd: nand: stm_nand_bch: provide shared BCH operations

2014-05-01 Thread Lee Jones
Including one for programming the BCH sequence, taking care not to program two registers marked 'reserved' in the NANDi specification. Failing to take this precaution results in an imprecise data exception on ARM platforms. We also add an operation which waits on a completion timeout (released by

[PATCH 23/47] mtd: nand: stm_nand_bch: erase one block (BCH)

2014-05-01 Thread Lee Jones
Adding a function which simply erases a single flash block. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index 40767b8..6d7ab79

[PATCH 21/47] mtd: nand: stm_nand_bch: initialise working buffers

2014-05-01 Thread Lee Jones
Initialise working buffers, accomodating DMA alignment constraints. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 45 + 1 file changed, 45 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index

[PATCH 1/1] init/main.c: code clean-up

2014-05-01 Thread Fabian Frederick
Fixing some checkpatch warnings(remove global initialization, move __initdata, coalesce formats ...) Cc: Ingo Molnar Cc: Andrew Morton Signed-off-by: Fabian Frederick --- init/main.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/init/main.c

[PATCH 24/47] mtd: nand: stm_nand_bch: check erased page for zeros

2014-05-01 Thread Lee Jones
Detect an erased page, tolerating and correcting up to a specified number of bits at '0'. Downgrade uncorrectable ECC error for an erased page, tolerating 'sectors_per_page' bits at '0'. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 27 +++ 1 file

[PATCH 29/47] mtd: nand: stm_nand_bch: populate IBBT BCH Header

2014-05-01 Thread Lee Jones
The STM NAND BCH Controller driver has extended the IBBT header with some extra convenience properties. This function populates both those and the standard header specified by 'struct nand_ibbt_header'. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 17 + 1 file

[PATCH 26/47] mtd: nand: stm_nand_bch: provide write functionality (BCH)

2014-05-01 Thread Lee Jones
Use DMA to write a single page of data. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 76 + 1 file changed, 76 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index 72c9734..e875446 100644 ---

[PATCH 25/47] mtd: nand: stm_nand_bch: provide read functionality (BCH)

2014-05-01 Thread Lee Jones
Use DMA to read a single page of data. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 96 + 1 file changed, 96 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index 2ff72c9..72c9734 100644

[PATCH 28/47] mtd: nand: stm_nand_bch: bad block marking helpers

2014-05-01 Thread Lee Jones
Bad Block Markers (BBMs) keep track of unusable/unsuitable memory blocks which can prevent unnecessary data loss. These helpers aid in reading and writing to/from the Bad Block Tables (BBTs) where the BBMs are stored. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 29

[PATCH 27/47] mtd: nand: stm_nand_bch: find IBBT signature

2014-05-01 Thread Lee Jones
Scan block for IBBT signature, either "Bbt0" or "1tbB" from pre-specified data block. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 91 + 1 file changed, 91 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c

[PATCH 31/47] mtd: nand: stm_nand_bch: update flash-resident BBT(s)

2014-05-01 Thread Lee Jones
Search for suitable block, erase and write table data to flash. If any errors occur on selected block, mark it as bad and select another one. Keep trying until both the Primary and Mirror BBTs are a) synced and b) written successfully to flash. Signed-off-by: Lee Jones ---

Re: 64bit x86: NMI nesting still buggy?

2014-05-01 Thread Vojtech Pavlik
On Tue, Apr 29, 2014 at 05:24:32PM +0200, Jiri Kosina wrote: > On Tue, 29 Apr 2014, Steven Rostedt wrote: > > > > According to 38.4 of [1], when SMM mode is entered while the CPU is > > > handling NMI, the end result might be that upon exit from SMM, NMIs will > > > be re-enabled and latched

[PATCH 32/47] mtd: nand: stm_nand_bch: add Hamming-FLEX operations

2014-05-01 Thread Lee Jones
Including; a check for Ready/NotBusy (RBn) (i.e. wait for current operation to finish and a method to issue Flex commands to the controller. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 36 1 file changed, 36 insertions(+) diff --git

[PATCH 30/47] mtd: nand: stm_nand_bch: write IBBT to Flash

2014-05-01 Thread Lee Jones
Write BBT contents to the first page of a specified block, then update the IBBT header and write it to last page of the same block. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 29 + 1 file changed, 29 insertions(+) diff --git

[PATCH 35/47] mtd: nand: stm_nand_bch: scan for BBMs and build memory-resident BBT

2014-05-01 Thread Lee Jones
If at start-up time we can't find our own pre-built memory-resident BBT (e.g. at first run) this routine will search for factory set BBMs and duplicate them into our own BBT for local consumption. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 27 +++ 1

[PATCH 36/47] mtd: nand: stm_nand_bch: search for and load flash-resident BBT

2014-05-01 Thread Lee Jones
If a BBT already exists in flash, it's this function's task to locate it and load it into the driver for local consumption. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 87 + 1 file changed, 87 insertions(+) diff --git

[PATCH 37/47] mtd: nand: stm_nand_bch: load flash-resident BBT

2014-05-01 Thread Lee Jones
If load of existing BBT fails (first run), scan device for factory-set BBMs (Bad-Block Markers) and create a new flash-resident. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCH 33/47] mtd: nand: stm_nand_bch: read and write raw (FLEX)

2014-05-01 Thread Lee Jones
Once the correct READ/WRITE(SEQIN) commands and address locations have been sent to the Controller, these calls are able to read/write the requested information from the FLEX_DATA register. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 35 +++ 1

[PATCH 43/47] mtd: nand: stm_nand_bch: read and write buffers (FLEX)

2014-05-01 Thread Lee Jones
read or write in 4 Byte chunks at a time until there is less than 8 Bytes remaining, at which point split down into reading the reset a single Byte at a time. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 72 + 1 file changed, 72

[PATCH 38/47] mtd: nand: stm_nand_bch: dump bad blocks

2014-05-01 Thread Lee Jones
Inform the user of any known bad blocks during initialisation. Conversely, if there aren't any known bad blocks, let the user know the good news. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 24 1 file changed, 24 insertions(+) diff --git

[PATCH 42/47] mtd: nand: stm_nand_bch: MTD mark and check for bad blocks (BCH)

2014-05-01 Thread Lee Jones
Use the local BBM helpers to check for and mark bad blocks. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 49 + 1 file changed, 49 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index

[PATCH 41/47] mtd: nand: stm_nand_bch: MTD erase (BCH)

2014-05-01 Thread Lee Jones
Carry out the normal checks, then attempt to erase a given block. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index e742655..11735ee 100644 ---

[PATCH 44/47] mtd: nand: mtd_nand_bch: add remaining FLEX functions

2014-05-01 Thread Lee Jones
Including a dummy function for selecting chips which isn't supported by our driver, the wait function as requested by the NAND sub system, a read Byte function also requested by NAND and finally a command function which provides a partial implementation of MTD/NAND Interface, based on Hamming-FLEX

[PATCH 40/47] mtd: nand: stm_nand_bch: fetch the bit-flips threshold

2014-05-01 Thread Lee Jones
If none is provided by the platform, the default ECC mode will be used. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index

[PATCH 39/47] mtd: nand: stm_nand_bch: parse partitions and register an MTD device

2014-05-01 Thread Lee Jones
Issue the core parse partitions and register as MTD device call. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index 6aaa118..0f96f75 100644

[PATCH 45/47] mtd: nand: stm_nand_bch: catch unhandled calls to read and write to the OOB

2014-05-01 Thread Lee Jones
The OOB is filled with ECC data which is handled by the hardware controller. It's a mistake for the framework to attempt to read or write to the OOB area. If that happens, we'll BUG() out. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 17 + 1 file changed, 17

[PATCH 46/47] mtd: nand: stm_nand_bch: finalise setup by calling and_scan_tail()

2014-05-01 Thread Lee Jones
Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index bec7e23..e7a4bed 100644 --- a/drivers/mtd/nand/stm_nand_bch.c +++ b/drivers/mtd/nand/stm_nand_bch.c @@

[PATCH 47/47] mtd: nand: catch unsupported framework call-backs

2014-05-01 Thread Lee Jones
Display a BUG() message and return appropriate/expected value. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index

[PATCH 34/47] mtd: nand: stm_nand_bch: scan block for BBM(s) according to specified BBT options

2014-05-01 Thread Lee Jones
Search the specified (first and, second or last) page in a block for the BBT. Support Hamming or Advanced Flex Mode (AFM) BBMs too. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 62 + 1 file changed, 62 insertions(+) diff --git

[PATCH 13/47] mtd: nand: stm_nand_bch: scan for NAND devices

2014-05-01 Thread Lee Jones
Use the core nand_scan_ident() routine to locate connected NAND chips. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index 8a63c4a..2670cec 100644 ---

[PATCH 05/47] mtd: nand: add ONFI NAND Timing Mode Specifications

2014-05-01 Thread Lee Jones
This patch adds a new structure, 'nand_timing_spec', to capture the A/C timing characteristics of NAND devices. Unfortunately, there is no universally accepted standard for defining NAND timing parameters. Different datasheets list different sets of parameters. The ONFI standard gets close, but

[PATCH 15/47] mtd: nand: stm_nand_bch: configure BCH and FLEX by ONFI timing mode

2014-05-01 Thread Lee Jones
This patch adds support for configuring the NAND Controller timing registers according to 'nand_timing_spec' data. Since the stm_nand_bch driver falls back to Hamming FLEX mode for certain operations, it is necessary to configure the timing registers of both the Hamming Controller and the BCH

[PATCH 19/47] mtd: nand: stm_nand_bch: ensure configuration is compatible with this driver

2014-05-01 Thread Lee Jones
Some chip characteristics have known incompatibilities with the function of this driver. Here we check for this characteristics and refuse to run if they are present. Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 39 ++- 1 file changed, 38

[PATCH 11/47] mtd: nand: stm_nand_bch: initialise the Hamming Controller

2014-05-01 Thread Lee Jones
Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index 19d090c..0c6aad2 100644 --- a/drivers/mtd/nand/stm_nand_bch.c +++

My name is Lisa from North Africa .

2014-05-01 Thread Lisa Kuku
-- Hello , My name is Lisa from North Africa . I am a woman seeking for true friendship and partner, please if you don't mind I will like you to respond to my mail so I can send you my pictures and tell you more about myself, Lisa. -- To unsubscribe from this list: send the line "unsubscribe

Re: dcache shrink list corruption?

2014-05-01 Thread Miklos Szeredi
Two points about latest version (dentry_kill-2): - Doing anything with dentry->d_parent in case of DCACHE_DENTRY_KILLED looks seriously wrong. Parent has been dealt with, at that point, by the other caller, no? - "bool foo = flag & FLAG" looks suspicious. Is this guaranteed not to

Re: [PATCH] SCHED: allow wait_on_bit_action functions to support a timeout.

2014-05-01 Thread NeilBrown
On Thu, 1 May 2014 10:04:30 +0200 Peter Zijlstra wrote: > On Thu, May 01, 2014 at 12:41:43PM +1000, NeilBrown wrote: > > diff --git a/include/linux/wait.h b/include/linux/wait.h > > index 438dc6044587..162cbcde9dae 100644 > > --- a/include/linux/wait.h > > +++ b/include/linux/wait.h > > @@ -25,6

RE: [PATCH] net: via-rhine: Fix compiler warning re: pointer casting on 64bit

2014-05-01 Thread David Laight
From: Alexey Charkov [mailto:alch...@gmail.com] ... > This patch removes the cast altogether, and instead stores an actual > pointer to u8 in match->data. All instances of 'revision' are also > unified to u8 instead of an assortment of different integer types, > in line with the definition of

Re: [PATCH] SCHED: remove proliferation of wait_on_bit action functions.

2014-05-01 Thread Peter Zijlstra
On Thu, May 01, 2014 at 07:26:05PM +1000, NeilBrown wrote: > On Thu, 1 May 2014 09:42:57 +0200 Peter Zijlstra wrote: > > > On Thu, May 01, 2014 at 12:37:38PM +1000, NeilBrown wrote: > > > +static inline int > > > +wait_on_bit(void *word, int bit, unsigned mode) > > > +{ > > > + if

[RFC] rtmutex: Do not boost fair tasks each other

2014-05-01 Thread Kirill Tkhai
Higher priority does not provide exclusive privilege of one fair task over the other. In this case priority boosting looks excess. On RT patch with enabled PREEMPT_RT_FULL I see a lot of rt_mutex_setprio() actions like 120 -> 118 118 -> 120 They harm RT tasks. RT patch has lazy

Re: [4/5] IBM Akebono: Add the Akebono platform

2014-05-01 Thread Paul Bolle
On Thu, 2014-03-06 at 14:52 +1100, Alistair Popple wrote: > This patch adds support for the IBM Akebono board. This patch just landed in linux-next (ie, in next-20140501). > Signed-off-by: Alistair Popple >[...] > --- a/arch/powerpc/platforms/44x/Kconfig > +++ b/arch/powerp

Re: [PATCH] SCHED: remove proliferation of wait_on_bit action functions.

2014-05-01 Thread NeilBrown
On Thu, 1 May 2014 09:42:57 +0200 Peter Zijlstra wrote: > On Thu, May 01, 2014 at 12:37:38PM +1000, NeilBrown wrote: > > +static inline int > > +wait_on_bit(void *word, int bit, unsigned mode) > > +{ > > + if (!test_bit(bit, word)) > > + return 0; > > + return

Re: [PATCH] usb: dwc3: gadget: fix burst size corruption

2014-05-01 Thread Zhuang Jin Can
On Wed, Apr 30, 2014 at 03:03:53PM -0500, Felipe Balbi wrote: > On Thu, May 01, 2014 at 03:16:04AM -0400, Zhuang Jin Can wrote: > > endpoint.maxburst may be 0 if a gadget doesn't call config_ep_by_speed() > > to update it from the companion descriptor. > > And endpoint.maxburst - 1 returns 1b

Re: [RFC PATCH 0/4] drivers/base: Generic framework for tracking internal interfaces

2014-05-01 Thread Russell King - ARM Linux
On Thu, May 01, 2014 at 09:04:19AM +0200, Andrzej Hajda wrote: > 2. You replace calls of component_add and component_del with calls > to interface_tracker_ifup(dev, INTERFACE_TRACKER_TYPE_COMPONENT, > _component_ops), > or interface_tracker_ifdown. > Thats all for components. How does the

Re: [PATCH] staging: rtl8188eu: fix potential leak in rtw_set_key()

2014-05-01 Thread Dan Carpenter
On Thu, May 01, 2014 at 10:38:11AM +0200, Christian Engelmayer wrote: > Fix a potential leak in the error path of rtw_set_key(). In case the requested > algorithm is not supported by the driver, the function returns without > enqueuing or freeing the already allocated command and parameter

Re: [PATCH] staging: comedi: fix coding style issues in comedi_fops.c

2014-05-01 Thread Ian Abbott
On 2014/05/01 09:23 AM, Raghavendra Ganiga wrote: > This is a patch to fix coding style > warnings found by checkpatch.pl tool > > Signed-off-by: Raghavendra Chandra Ganiga > --- > drivers/staging/comedi/comedi_fops.c |2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH] word-at-a-time: avoid undefined behaviour in zero_bytemask macro

2014-05-01 Thread Will Deacon
Hi Peter, On Wed, Apr 30, 2014 at 10:22:19PM +0100, H. Peter Anvin wrote: > On 04/23/2014 09:52 AM, Will Deacon wrote: > > diff --git a/include/asm-generic/word-at-a-time.h > > b/include/asm-generic/word-at-a-time.h > > index d3909effd725..d96deb443f18 100644 > > ---

Re: [PATCH] staging: comedi: fix coding style issues in comedi_fops.c

2014-05-01 Thread Ian Abbott
On 2014/04/30 06:34 PM, Raghavendra Ganiga wrote: > This is a patch to fix coding style > warnings found by the checkpatch.pl tool > > Signed-off-by: Raghavendra Chandra Ganiga > --- > drivers/staging/comedi/comedi_fops.c |6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > >

Re: [PATCH v2 02/12] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-05-01 Thread Simon Horman
[ CC linux-sh and Magnus Damm (shmobile co-maintainer) ] On Wed, Apr 30, 2014 at 11:26:37PM -0700, Brian Norris wrote: > These defconfigs contain the CONFIG_M25P80 symbol, which is now > dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to satisfy > the new dependency. > > At the same

[PATCH 02/17] mm: page_alloc: Do not treat a zone that cannot be used for dirty pages as "full"

2014-05-01 Thread Mel Gorman
If a zone cannot be used for a dirty page then it gets marked "full" which is cached in the zlc and later potentially skipped by allocation requests that have nothing to do with dirty zones. Signed-off-by: Mel Gorman Acked-by: Johannes Weiner --- mm/page_alloc.c | 2 +- 1 file changed, 1

[PATCH 03/17] mm: page_alloc: Use jump labels to avoid checking number_of_cpusets

2014-05-01 Thread Mel Gorman
If cpusets are not in use then we still check a global variable on every page allocation. Use jump labels to avoid the overhead. Signed-off-by: Mel Gorman --- include/linux/cpuset.h | 31 +++ kernel/cpuset.c| 8 ++-- mm/page_alloc.c| 3 ++- 3

[PATCH 04/17] mm: page_alloc: Calculate classzone_idx once from the zonelist ref

2014-05-01 Thread Mel Gorman
There is no need to calculate zone_idx(preferred_zone) multiple times or use the pgdat to figure it out. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 55 --- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/mm/page_alloc.c

[PATCH 00/17] Misc page alloc, shmem, mark_page_accessed and page_waitqueue optimisations

2014-05-01 Thread Mel Gorman
I was investigating a performance bug that looked like dd to tmpfs had regressed. The bulk of the problem turned out to be a difference in Kconfig but it got me looking at the unnecessary overhead in tmpfs, mark_page_accessed and parts of the allocator. This series is the result. The patches

[PATCH 05/17] mm: page_alloc: Only check the zone id check if pages are buddies

2014-05-01 Thread Mel Gorman
A node/zone index is used to check if pages are compatible for merging but this happens unconditionally even if the buddy page is not free. Defer the calculation as long as possible. Ideally we would check the zone boundary but nodes can overlap. Signed-off-by: Mel Gorman Acked-by: Johannes

[PATCH 06/17] mm: page_alloc: Only check the alloc flags and gfp_mask for dirty once

2014-05-01 Thread Mel Gorman
Currently it's calculated once per zone in the zonelist. Signed-off-by: Mel Gorman Acked-by: Johannes Weiner --- mm/page_alloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8971953..2e576fd 100644 --- a/mm/page_alloc.c +++

[PATCH 01/17] mm: page_alloc: Do not update zlc unless the zlc is active

2014-05-01 Thread Mel Gorman
The zlc is used on NUMA machines to quickly skip over zones that are full. However it is always updated, even for the first zone scanned when the zlc might not even be active. As it's a write to a bitmap that potentially bounces cache line it's deceptively expensive and most machines will not

[PATCH 08/17] mm: page_alloc: Use word-based accesses for get/set pageblock bitmaps

2014-05-01 Thread Mel Gorman
The test_bit operations in get/set pageblock flags are expensive. This patch reads the bitmap on a word basis and use shifts and masks to isolate the bits of interest. Similarly masks are used to set a local copy of the bitmap and then use cmpxchg to update the bitmap if there have been no other

[PATCH 09/17] mm: page_alloc: Reduce number of times page_to_pfn is called

2014-05-01 Thread Mel Gorman
In the free path we calculate page_to_pfn multiple times. Reduce that. Signed-off-by: Mel Gorman --- include/linux/mmzone.h | 9 +++-- include/linux/pageblock-flags.h | 35 +++ mm/page_alloc.c | 32 ++-- 3

[PATCH 13/17] mm: shmem: Avoid atomic operation during shmem_getpage_gfp

2014-05-01 Thread Mel Gorman
shmem_getpage_gfp uses an atomic operation to set the SwapBacked field before it's even added to the LRU or visible. This is unnecessary as what could it possible race against? Use an unlocked variant. Signed-off-by: Mel Gorman Acked-by: Johannes Weiner --- include/linux/page-flags.h | 1 +

[PATCH 07/17] mm: page_alloc: Take the ALLOC_NO_WATERMARK check out of the fast path

2014-05-01 Thread Mel Gorman
ALLOC_NO_WATERMARK is set in a few cases. Always by kswapd, always for __GFP_MEMALLOC, sometimes for swap-over-nfs, tasks etc. Each of these cases are relatively rare events but the ALLOC_NO_WATERMARK check is an unlikely branch in the fast path. This patch moves the check out of the fast path

[PATCH 10/17] mm: page_alloc: Lookup pageblock migratetype with IRQs enabled during free

2014-05-01 Thread Mel Gorman
get_pageblock_migratetype() is called during free with IRQs disabled. This is unnecessary and disables IRQs for longer than necessary. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index

[PATCH 14/17] mm: Do not use atomic operations when releasing pages

2014-05-01 Thread Mel Gorman
There should be no references to it any more and a parallel mark should not be reordered against us. Use non-locked varient to clear page active. Signed-off-by: Mel Gorman --- mm/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swap.c b/mm/swap.c index

[PATCH 12/17] mm: page_alloc: Convert hot/cold parameter and immediate callers to bool

2014-05-01 Thread Mel Gorman
cold is a bool, make it one. Make the likely case the "if" part of the block instead of the else as according to the optimisation manual this is preferred. Signed-off-by: Mel Gorman --- arch/tile/mm/homecache.c | 2 +- fs/fuse/dev.c| 2 +- include/linux/gfp.h | 4 ++--

[PATCH 11/17] mm: page_alloc: Use unsigned int for order in more places

2014-05-01 Thread Mel Gorman
X86 prefers the use of unsigned types for iterators and there is a tendency to mix whether a signed or unsigned type if used for page order. This converts a number of sites in mm/page_alloc.c to use unsigned int for order where possible. Signed-off-by: Mel Gorman --- include/linux/mmzone.h | 8

[PATCH 17/17] mm: filemap: Avoid unnecessary barries and waitqueue lookup in unlock_page fastpath

2014-05-01 Thread Mel Gorman
From: Nick Piggin This patch introduces a new page flag for 64-bit capable machines, PG_waiters, to signal there are processes waiting on PG_lock and uses it to avoid memory barriers and waitqueue hash lookup in the unlock_page fastpath. This adds a few branches to the fast path but avoids

[PATCH 15/17] mm: Do not use unnecessary atomic operations when adding pages to the LRU

2014-05-01 Thread Mel Gorman
When adding pages to the LRU we clear the active bit unconditionally. As the page could be reachable from other paths we cannot use unlocked operations without risk of corruption such as a parallel mark_page_accessed. This patch test if is necessary to clear the atomic flag before using an atomic

[PATCH 16/17] mm: Non-atomically mark page accessed during page cache allocation where possible

2014-05-01 Thread Mel Gorman
The most obvious example of the problem being tackled is that aops->write_begin may allocate a new page and make it visible only to have mark_page_accessed called almost immediately after. Once the page is visible the atomic operations are necessary which is noticable overhead when writing to an

Re: [PATCH] usb: dwc3: gadget: giveback request if start transfer fail

2014-05-01 Thread Zhuang Jin Can
Hi Balbi, On Wed, Apr 30, 2014 at 02:58:29PM -0500, Felipe Balbi wrote: > On Thu, May 01, 2014 at 02:36:08AM -0400, Zhuang Jin Can wrote: > > At least we should giveback the current request to the > > gadget. Otherwise, the gadget will be stuck without knowing > > anything. > > > > It was

[stable] linux-3.14 nfsd regression

2014-05-01 Thread Johan Hovold
Hi Greg, I noticed that v3.14 broke my development system which relies on nfsroot for embedded targets, but soon found Bruce's fix (which has now been in Linus' tree for a while): 082f31a2169b ("nfsd: revert v2 half of "nfsd: don't return high mode bits") The fix

[PATCH] staging: rtl8188eu: fix potential leak in rtw_set_key()

2014-05-01 Thread Christian Engelmayer
Fix a potential leak in the error path of rtw_set_key(). In case the requested algorithm is not supported by the driver, the function returns without enqueuing or freeing the already allocated command and parameter structs. Use a centralized exit path and make sure that all memory is freed

[rfc][patch] perf,tools: Remove test_attr_* muck from perf.h

2014-05-01 Thread Peter Zijlstra
Hi, I occasionally build the odd program against raw perf and use perf.h for this. Now I find that no longer works because of: 52502bf201a85 ("perf tests: Add framework for automated perf_event_attr tests") So revert the hunk touching on perf.h. Also, it seems to be for snake shit only, and

[PATCH] staging: comedi: fix coding style issues in comedi_fops.c

2014-05-01 Thread Raghavendra Ganiga
This is a patch to fix coding style warnings found by checkpatch.pl tool Signed-off-by: Raghavendra Chandra Ganiga --- drivers/staging/comedi/comedi_fops.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index

[PATCH] spi: Fix hung task timeout when initialization fails

2014-05-01 Thread Ricardo Ribalda Delgado
If kthread_run on spi_init_queue() fails, spi_destroy_queue can lead to hang timeout. Before 786235eeba0e1e85e5cbbb9f97d1087ad03dfa21 kthread: make kthread_create() killable" it was very unlikely that kthread_run would fail, but after that patch a kill to modprobe can lead to this kind of error.

Re: [PATCH] SCHED: allow wait_on_bit_action functions to support a timeout.

2014-05-01 Thread Peter Zijlstra
On Thu, May 01, 2014 at 12:41:43PM +1000, NeilBrown wrote: > diff --git a/include/linux/wait.h b/include/linux/wait.h > index 438dc6044587..162cbcde9dae 100644 > --- a/include/linux/wait.h > +++ b/include/linux/wait.h > @@ -25,6 +25,7 @@ struct wait_bit_key { > void

Re: [PATCH/RFC 3/4] of/clk: Register clocks suitable for Runtime PM with the PM core

2014-05-01 Thread Grant Likely
On Wed, 30 Apr 2014 23:54:37 +0200, Geert Uytterhoeven wrote: > Hi Grant, > > On Tue, Apr 29, 2014 at 3:16 PM, Grant Likely > wrote: > > On Fri, 25 Apr 2014 16:44:58 -0700, Kevin Hilman wrote: > >> Geert Uytterhoeven writes: > >> > >> > When adding a device from DT, check if its clocks are

Re: [PATCH] DMA-API: Change dma_declare_coherent_memory() CPU address to phys_addr_t

2014-05-01 Thread Bjorn Helgaas
On Wed, Apr 30, 2014 at 6:07 PM, Greg Kroah-Hartman wrote: > On Wed, Apr 30, 2014 at 02:33:21PM -0600, Bjorn Helgaas wrote: >> dma_declare_coherent_memory() takes two addresses for a region of memory: a >> "bus_addr" and a "device_addr". I think the intent is that "bus_addr" is >> the physical

Re: [patch] lib: check for strcpy() overflows to fixed length buffers

2014-05-01 Thread Dan Carpenter
Ah. Fantastic. That's all great stuff. I'm on holiday today but I'll send a new later in the week. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH] SCHED: remove proliferation of wait_on_bit action functions.

2014-05-01 Thread Peter Zijlstra
On Thu, May 01, 2014 at 12:37:38PM +1000, NeilBrown wrote: > +static inline int > +wait_on_bit(void *word, int bit, unsigned mode) > +{ > + if (!test_bit(bit, word)) > + return 0; > + return out_of_line_wait_on_bit(word, bit, > +bit_wait, > +

linux-next: Tree for May 1

2014-05-01 Thread Stephen Rothwell
Hi all, This tree still fails (more than usual) the powerpc allyesconfig build. Changes since 20140430: The powerpc tree still had its build failure. The pm tree gained a conflict against the mips tree. The mfd-lj tree lost its build failure. The staging tree gained a conflict against the

Re: [PATCH] dmapool: remove redundant NULL check for dev in dma_pool_create()

2014-05-01 Thread DaeSeok Youn
2014-05-01 6:19 GMT+09:00, Andrew Morton : > On Tue, 29 Apr 2014 11:53:10 +0900 Daeseok Youn > wrote: > >> "dev" cannot be NULL because it is already checked before >> calling dma_pool_create(). >> >> Signed-off-by: Daeseok Youn >> --- >> If dev can be NULL, it has NULL deferencing when

Re: [PATCH 03/15] ARM: dts: kirkwood: add stdout-path property to all boards

2014-05-01 Thread Andrew Lunn
On Wed, Apr 30, 2014 at 10:30:21PM +0200, Arnd Bergmann wrote: > On Wednesday 30 April 2014 22:21:30 Andrew Lunn wrote: > > > Yes, we *can* move it in kirkwood.dtsi, but IMHO we *should* keep it in > > > the board files. I see the "chosen" node and its properties as _the_ > > > board node. > > >

Re: [PATCH v3 0/9] drm/nouveau: support for GK20A, cont'd

2014-05-01 Thread Alexandre Courbot
On 05/01/2014 04:11 PM, Ben Skeggs wrote: On Fri, Apr 25, 2014 at 5:19 PM, Alexandre Courbot wrote: Changes since v2: - Enabled software class - Removed unneeded changes to nouveau_accel_init() - Replaced use of architecture-private pfn_to_dma() and dma_to_pfn() with the portable

[PATCH] block: null_blk: fix use after free

2014-05-01 Thread Ming Lei
entry(cmd->ll_list) may belong to new request once end_cmd() returns, so fix the bug with the patch. Without the change, it is easy to observe oops when doing null_blk(timer) test. Signed-off-by: Ming Lei --- drivers/block/null_blk.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

<    1   2   3   4   5   6   7   8   9   10   >