Re: [PATCH 2/2] powerpc/512x: DMA via LocalPlus Bus testing driver

2013-05-16 Thread Alexander Popov
2013/5/17 Greg Kroah-Hartman : > On Thu, May 02, 2013 at 07:23:15PM +0400, Alexander Popov wrote: >> This module tests Direct Memory Access to some device on LocalPlus Bus >> for Freescale MPC512x. In other words it tests the bundle >> of mpc512x_lpbfifo and mpc512x_dma drivers. >> >> This testing

Re: [PATCH 5/8] pinctrl-tz1090: add TZ1090 pinctrl driver

2013-05-16 Thread Linus Walleij
On Thu, May 16, 2013 at 11:12 AM, James Hogan wrote: > Hi Linus, > On 15/05/13 20:07, Linus Walleij wrote: >> On Tue, May 14, 2013 at 2:22 PM, James Hogan wrote: >> >>> I think that's the other way around, i.e. that's talking about mapping >>> several pingroups to the same function. The next para

Re: [PATCH 20/39] usb: musb: ux500: move channel number knowledge into the driver

2013-05-16 Thread Linus Walleij
On Wed, May 15, 2013 at 10:14 PM, Fabio Baltieri wrote: > On Wed, May 15, 2013 at 07:18:01PM +0200, Linus Walleij wrote: >> On Wed, May 15, 2013 at 11:51 AM, Lee Jones wrote: >> >> > For all ux500 based platforms the maximum number of end-points are used. >> > Move this knowledge into the driver

Re: [PATCH] mm: vmscan: handle any negative return value from scan_objects

2013-05-16 Thread Dave Chinner
On Thu, May 16, 2013 at 02:27:52PM +0200, Oskar Andero wrote: > On 13:52 Thu 16 May , Dave Chinner wrote: > > On Thu, May 16, 2013 at 10:42:16AM +0200, Oskar Andero wrote: > > > The shrinkers must return -1 to indicate that it is busy. Instead, treat > > > any negative value as busy. > > > > W

Re: [PATCH] parisc: avoid WARNING: at kernel/cpu/idle.c:96

2013-05-16 Thread James Bottomley
On Wed, 2013-05-08 at 14:05 -0700, James Bottomley wrote: > On Wed, 2013-05-08 at 22:42 +0200, Helge Deller wrote: > > We need to enable local irqs to avoid this runtime warning. > > > > Signed-off-by: Helge Deller > > > > diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c

[PATCH] MIPS: drivers: fix clk leak

2013-05-16 Thread Libo Chen
when gptu_r32 fail, we should put clk before return Signed-off-by: Libo Chen --- arch/mips/lantiq/xway/gptu.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/mips/lantiq/xway/gptu.c b/arch/mips/lantiq/xway/gptu.c index 9861c86..4fa577c 100644 --- a/arch/mips/lanti

[PATCH] cdrom: gdrom: fix device number leak

2013-05-16 Thread Libo Chen
without this patch, gdrom_major will leak when gd.cd_info alloc faild Signed-off-by: Libo Chen --- drivers/cdrom/gdrom.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index 4afcb65..5980cb9 100644 --- a/drivers/cdrom/gdro

Re: [Linaro-QA-Service] [linux-next] Snowball build broken

2013-05-16 Thread Fathi Boudra
Hi Samuel, On 16 May 2013 12:52, Samuel Ortiz wrote: > Hi Maresh, > > On Wed, May 01, 2013 at 03:15:26PM +0530, Naresh Kamboju wrote: >> Ping. >> >> On 17 April 2013 21:16, Linus Walleij wrote: >> > On Tue, Apr 16, 2013 at 3:48 PM, Naresh Kamboju >> > wrote: >> >> On 12 April 2013 04:07, Linus

Re: [PATCH] tty_buffer: avoid race due to tty_buffer_free_all() being misused

2013-05-16 Thread channing
On Thu, 2013-05-16 at 08:54 -0400, Peter Hurley wrote: > On 05/16/2013 04:59 AM, channing wrote: > > > > In tty_buffer.c, function tty_buffer_free_all() is used to remove > > all buffers for a tty, although it's declared that it mustn't be called > > when the tty is in use, it cannot guarantee that

[PATCH 2/2] clk: exynos5250: Add sclk_mpll to the parent list of mout_cpu clock

2013-05-16 Thread Tushar Behera
'mout_mpll' is added the list of parent clocks for 'mout_cpu'. 'mout_mpll' is an alias to the clock 'sclk_mpll'. Hence 'sclk_mpll' should be added to the list of parent clocks. This results in an error when cpufreq driver for EXYNOS5250 tries to set 'mout_mpll' as a parent for 'mout_cpu'. clk_set

[PATCH 1/2] clk: exynos5250: Update cpufreq related clocks for EXYNOS5250

2013-05-16 Thread Tushar Behera
cpufreq driver for EXYNOS5250 is not a platform driver, hence we cannot currently pass the clock names through a device tree node. Instead, we need to make them available through a global alias. cpufreq driver for EXYNOS5250 requires four clocks - 'armclk', 'mout_cpu', 'mout_mpll' and 'mout_apll'.

[PATCH 0/2] Clock changes for supporting CPUFreq on Exynos5250

2013-05-16 Thread Tushar Behera
With the use of common clock framework, CPUFreq driver on EXYNOS5250 now requires a few changes in clocks. Tested on Exynos5250 based Arndale board. The patches are based on v3.10-rc1. Tushar Behera (2): clk: exynos5250: Update cpufreq related clocks for EXYNOS5250 clk: exynos5250: Add sclk_m

Re: regression: from 3.8 to 3.9: headphones output no sound on Intel HDA, codec VIA VT1802

2013-05-16 Thread Takashi Iwai
At Thu, 16 May 2013 22:10:47 +0200, Alex Riesen wrote: > > On Thu, May 16, 2013 at 1:00 PM, Takashi Iwai wrote: > > So, we need to disable the widgets power control in patch_via.c > > completely as a quick workaround. Could you check whether the patch > > below is OK (except for the possible hea

Re: [PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space

2013-05-16 Thread Pranavkumar Sawargaonkar
On 17 May 2013 05:22, Rusty Russell wrote: > Amit Shah writes: >> On (Mon) 06 May 2013 [17:49:49], Pranavkumar Sawargaonkar wrote: >>> This patch adds an emerg_wr register (writeonly) in config space >>> of virtio console device which can be used for debugging. >>> >>> Signed-off-by: Pranavkumar

Re: is L1 really disabled in iwlwifi

2013-05-16 Thread Emmanuel Grumbach
> > I couldn't imagine that silently ignoring the request to disable ASPM > would be the right thing, but I spent a long time experimenting with > Windows on qemu, and I think you're right. Windows 7 also seems to > ignore the "PciASPMOptOut" directive when we don't have permission > to manage ASP

[Consult] Why need we call device_remove_file() firstly before call device_unregister() ?

2013-05-16 Thread Chen Gang
Hello All: I searched 'arch/*' and 'drivers/*' sub-directory, all of them are 'obey this rule', even in device_unregister() itself, it also firstly calls device_remove_file(), then call kobject_del(). But after read the related code (fs/sysfs/*, drivers/base/core.c), it seems kobject_del() -> sys

Re: [PATCH v6 0/8] kdump, vmcore: support mmap() on /proc/vmcore

2013-05-16 Thread H. Peter Anvin
On 05/16/2013 09:29 PM, Eric W. Biederman wrote: > > Whatever theoretical issues you have with /dev/oldmem and /proc/vmcore > can and should be talked about and addressed independently of these > changes. And they are... last I know Dave Hansen was looking at it. -hpa -- To unsubscribe

Re: [PATCH] ARM: OMAP4: change the device names in usb_bind_phy

2013-05-16 Thread Kishon Vijay Abraham I
Hi, On Thursday 16 May 2013 09:50 PM, Tony Lindgren wrote: * Tomi Valkeinen [130516 09:11]: On 16/05/13 18:58, Tony Lindgren wrote: * Tomi Valkeinen [130515 03:59]: Just checking.. Do you have CONFIG_OMAP_OCP2SCP=y in your .config? Sounds like the some transceivers should depend on that for

[PATCHv6 2/3] net: velocity: Convert to generic dma functions

2013-05-16 Thread Tony Prisk
Remove the pci_* dma functions and replace with the more generic versions. In preparation of adding platform support, a new struct device *dev is added to struct velocity_info which can be used by both the pci and platform code. Signed-off-by: Tony Prisk --- drivers/net/ethernet/via/via-velocit

[PATCHv6 3/3] net: velocity: Add platform device support to VIA velocity driver

2013-05-16 Thread Tony Prisk
Add support for the VIA Velocity network driver to be bound to a OF created platform device. Signed-off-by: Tony Prisk --- .../devicetree/bindings/net/via-velocity.txt | 20 + drivers/net/ethernet/via/Kconfig |3 +- drivers/net/ethernet/via/via-velocity.c

[PATCHv6 1/3] net: velocity: Rename vptr->dev to vptr->netdev

2013-05-16 Thread Tony Prisk
Improve the clarity of the code in preparation for converting the dma functions to generic versions, which require a struct device *. This makes it possible to store a 'struct device *dev' in the velocity_info structure. Signed-off-by: Tony Prisk --- drivers/net/ethernet/via/via-velocity.c |

[PATCHv6 0/3] Add support for velocity network driver on platform devices

2013-05-16 Thread Tony Prisk
v6 changes: Remove more bus specific code from velocity_probe() Make velocity_(suspend/resume) accept a struct device * Simplify PM code to use velocity_(suspend/resume) - remove the individual pci and platform functions. Add a struct pci_dev variable to velocity_get_pci_info() to reduce churn v5

Re: linux-next: build warning after merge of the final tree (in Linus' tree)

2013-05-16 Thread Viresh Kumar
On Wed, May 15, 2013 at 7:02 PM, Eric Paris wrote: > On Wed, 2013-05-15 at 13:20 +1000, Stephen Rothwell wrote: >> Hi , >> >> After merging the final tree, today's linux-next build (i386 defconfig) >> produced this warning: >> >> kernel/auditfilter.c: In function 'audit_data_to_entry': >> kernel/a

Re: [PATCH 1/7] media: davinci: vpif: remove unwanted header includes

2013-05-16 Thread Prabhakar Lad
Hi Laurent, Thanks for the review. On Thu, May 16, 2013 at 6:32 PM, Laurent Pinchart wrote: > Hi Prabhakar, > > Thank you for the patch. > > On Thursday 16 May 2013 18:28:16 Lad Prabhakar wrote: >> From: Lad, Prabhakar >> >> Signed-off-by: Lad, Prabhakar >> --- >> drivers/media/platform/davin

[PATCH 3/3] BusLogic: Use more conventional argument order for logging

2013-05-16 Thread Joe Perches
Subsystem specific logging messages generally use subsystem_(struct subsystem *, fmt, ...) not subsystem_(fmt, struct subsystem *, ...) Convert to use the more generally used kernel style. Signed-off-by: Joe Perches --- drivers/scsi/BusLogic.c | 304 -

Re: [PATCH] ARM: davinci: dma: Convert to devm_* api

2013-05-16 Thread Prabhakar Lad
Hi Sergei, Thanks for the review. On Thu, May 16, 2013 at 6:47 PM, Sergei Shtylyov wrote: > Hello. > > > On 16-05-2013 10:58, Lad Prabhakar wrote: > >> From: Lad, Prabhakar > > >> Use devm_ioremap_resource instead of reques_mem_region()/ioremap() and >> devm_request_irq() instead of request_irq

[PATCH 2/3] BusLogic: Coalesce formats with multiple string fragments

2013-05-16 Thread Joe Perches
Strings fragments coalesced by the compiler are difficult to grep. Coalesce them instead. Signed-off-by: Joe Perches --- drivers/scsi/BusLogic.c | 66 - 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/driv

[PATCH 1/3] BusLogic: Add __printf verification, fix fallout

2013-05-16 Thread Joe Perches
Make format and arguments match. Signed-off-by: Joe Perches --- drivers/scsi/BusLogic.c | 50 - drivers/scsi/BusLogic.h | 1 + 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index

[PATCH 0/3] BusLogic: Message logging neatening

2013-05-16 Thread Joe Perches
If you're going through the trouble to fix this CamelCase stuff and make it work on 64 bit, how about a little more cleanup? Joe Perches (3): BusLogic: Add __printf verification, fix fallout BusLogic: Coalesce formats with multiple string fragments BusLogic: Use more conventional argument or

Re: [PATCH 3/4] ipmi: Improve error messages on failed irq enable

2013-05-16 Thread Joe Perches
On Thu, 2013-05-16 at 22:47 -0500, Corey Minyard wrote: > On 05/16/2013 05:23 PM, Andy Lutomirski wrote: > > > > /* We got the flags from the SMI, now handle them. */ > > smi_info->handlers->get_result(smi_info->si_sm, msg, 4); > > - if (msg[2] != 0)

Re: [PATCH 1/6] media: i2c: ths7303: remove init_enable option from pdata

2013-05-16 Thread Prabhakar Lad
Hi Sakari, Thanks for the review. On Fri, May 17, 2013 at 4:07 AM, Sakari Ailus wrote: > Hi Prabhakar, > > Thanks for the patch! > > On Wed, May 15, 2013 at 05:27:17PM +0530, Lad Prabhakar wrote: >> diff --git a/drivers/media/i2c/ths7303.c b/drivers/media/i2c/ths7303.c >> index 65853ee..8cddcd0

Re: [PATCH 2/5] net: davinci_emac: remove unwanted header inclusion and sort the alphabetically

2013-05-16 Thread Prabhakar Lad
Hi Sergei, Thanks for the review. On Fri, May 17, 2013 at 12:25 AM, Sergei Shtylyov wrote: > On 16-05-2013 11:30, Lad Prabhakar wrote: > >> From: Lad, Prabhakar > > >> This patch removes unwanted header inclusion > > >Why are they unwanted? > The driver builds without this includes. This i

Re: [PATCH] usb: omap2430: fix memleak in err case

2013-05-16 Thread Libo Chen
On 2013/5/15 19:55, Sergei Shtylyov wrote: > Hello. > > On 15-05-2013 5:35, Libo Chen wrote: > >> when omap_get_control_dev fail, we should release relational platform_device > >s/fail/fails/, s/relational/related/? > >> Signed-off-by: Libo Chen > >You've posted this to the wrong mail

Re: [PATCH 5/5] net: davinci_mdio: trivial cleanup

2013-05-16 Thread Prabhakar Lad
Hi Sergei, Thanks for the review. On Fri, May 17, 2013 at 12:28 AM, Sergei Shtylyov wrote: > On 16-05-2013 11:30, Lad Prabhakar wrote: > >> From: Lad, Prabhakar > > >> remove unwanted header inclusion and sort the alphabetically > > >s/the/them/. OK > > >> also guard the davinci_mdio_of_mta

Re: BUG: tty: memory corruption through tty_release/tty_ldisc_release

2013-05-16 Thread Alexander Holler
Am 16.05.2013 23:53, schrieb Peter Hurley: > And the tty layer can't really _prevent_ the tty driver from mishandling > the port kref. > >> Especially since it seemed to have been worked before tty_ports got >> introduced. > > Well, at the time tty_port was introduced to RFCOMM, there was nothin

Re: [PATCH 0/3] CPUFreq Fixes for 3.10-rc2

2013-05-16 Thread Viresh Kumar
On 17 May 2013 02:21, Rafael J. Wysocki wrote: > While I kind of understand why you want [3/3] to go into 3.10, I'm wondering > about the other two patches. Why exactly are they needed now? First one: cpufreq: Add EXPORT_SYMBOL_GPL for have_governor_per_policy is required so that governors c

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-16 Thread Randy Dunlap
On 05/16/13 16:42, Rusty Russell wrote: > Joe Perches writes: >> On Thu, 2013-05-16 at 13:04 +0930, Rusty Russell wrote: >>> Asias He writes: On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote: >> [] Other users are using memcpy_fromiovec and friends outside net. It seems >>>

[PATCH v3] kernel/module.c: need return the first error code to upper caller when error occurs

2013-05-16 Thread Chen Gang
When multiple errors occur, simplify_symbols() will return the last error code to the upper caller. In this case, better to return the first error code to the upper caller. Just like "using compiler": it will print all errors and warnings as much as it can, but the user usually mainly focus on t

[PATCH v3] pinctrl: samsung: fix suspend/resume functionality

2013-05-16 Thread Doug Anderson
The GPIO states need to be restored after s2r and this is not currently supported in the pinctrl driver. This patch saves the gpio states before suspend and restores them after resume. Saving and restoring is done very early using syscore_ops and must happen before pins are released from their pow

Re: [PATCH 4/4] usb: tilegx: fix memleak when create hcd fail

2013-05-16 Thread Libo Chen
Hi Greg, On 2013/5/17 8:34, Greg KH wrote: > On Thu, May 09, 2013 at 12:58:11PM +0800, Libo Chen wrote: >> From: Libo Chen >> >> When usb_create_hcd fail, we should call gxio_usb_host_destroy >> >> Signed-off-by: Libo Chen >> --- >> drivers/usb/host/ohci-tilegx.c |7 +-- >> 1 files chan

Re: [PATCH v6 0/8] kdump, vmcore: support mmap() on /proc/vmcore

2013-05-16 Thread Eric W. Biederman
"H. Peter Anvin" writes: > On 05/16/2013 07:53 PM, Eric W. Biederman wrote: >> >> That is completely and totally orthogonal to this change. >> >> read_oldmem may have problems but in practice on a large systems those >> problems are totally dwarfed by real life performance issues that come >> f

linux-next: Tree for May 17

2013-05-16 Thread Stephen Rothwell
Hi all, Changes since 20130516: I have created today's linux-next tree at git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git (patches at http://www.kernel.org/pub/linux/kernel/next/ ). If yo

Re: [PATCH] Staging: android: sync: fixed a brace coding style issue

2013-05-16 Thread Brandon Height
Actually it looks like this patch is not needed against linux-next. My mistake. On May 16, 2013, at 1:07 PM, Greg KH wrote: > On Thu, May 16, 2013 at 08:42:22AM -1000, bmhei...@gmail.com wrote: >> From: Brandon Height >> >> Fixed a coding style issue. >> >> Signed-off-by: Brandon Height > >

Re: [PATCH] drivers: parport: Use kmemdup

2013-05-16 Thread Greg Kroah-Hartman
On Sun, Apr 28, 2013 at 07:54:38PM +0300, Alexandru Gheorghiu wrote: > Used kmemdup instead of kmalloc and memcpy. > Patch found using coccinelle. > > Signed-off-by: Alexandru Gheorghiu > --- > drivers/parport/parport_gsc.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) This pat

Re: [PATCH 2/2] powerpc/512x: DMA via LocalPlus Bus testing driver

2013-05-16 Thread Greg Kroah-Hartman
On Thu, May 02, 2013 at 07:23:15PM +0400, Alexander Popov wrote: > This module tests Direct Memory Access to some device on LocalPlus Bus > for Freescale MPC512x. In other words it tests the bundle > of mpc512x_lpbfifo and mpc512x_dma drivers. > > This testing driver was multiply used with static

Re: [PATCH 3.9-stable] mmc: dw_mmc: fix fifo access for 64-bit

2013-05-16 Thread Greg KH
On Mon, May 06, 2013 at 01:33:22PM +0900, Jonghwan Choi wrote: > This patch looks like it should be in the 3.9-stable tree, should we apply > it? It doesn't apply to the 3.9 tree, so it's going to be bit hard to do this... sorry, greg k-h -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH 3/4] usb: ohci: fix goto wrong tag in err case

2013-05-16 Thread Greg KH
On Thu, May 09, 2013 at 12:58:10PM +0800, Libo Chen wrote: > From: Libo Chen > > fix goto wrong tag in usb_hcd_nxp_probe > > Signed-off-by: Libo Chen > --- > drivers/usb/host/ohci-nxp.c | 12 ++-- > 1 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/usb/host/o

Re: [PATCH 4/4] usb: tilegx: fix memleak when create hcd fail

2013-05-16 Thread Greg KH
On Thu, May 09, 2013 at 12:58:11PM +0800, Libo Chen wrote: > From: Libo Chen > > When usb_create_hcd fail, we should call gxio_usb_host_destroy > > Signed-off-by: Libo Chen > --- > drivers/usb/host/ohci-tilegx.c |7 +-- > 1 files changed, 5 insertions(+), 2 deletions(-) This patch doe

Re: [PATCH] Allow binding drivers/uio/uio_pdrv_genirq.c to devices using command line option

2013-05-16 Thread Greg KH
On Mon, May 06, 2013 at 12:53:52PM +0200, Pavel Machek wrote: > Hello! > > > This adds ability to bind uio driver to given open firmware device > > using command line option. Thus, userspace driver can be developed and > > used without modifying the kernel. > > > > Signed-off-by: Pavel Machek >

Re: [PATCH v2] usb: ohci: fix goto wrong tag in err case

2013-05-16 Thread Greg KH
On Fri, May 10, 2013 at 02:22:42PM +0800, Libo Chen wrote: > fix goto wrong tag in usb_hcd_nxp_probe > > Signed-off-by: Libo Chen Ah, you redid this, nevermind about the v1 of this patch, sorry... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [PATCH 3/4] ipmi: Improve error messages on failed irq enable

2013-05-16 Thread Corey Minyard
On 05/16/2013 05:23 PM, Andy Lutomirski wrote: /* We got the flags from the SMI, now handle them. */ smi_info->handlers->get_result(smi_info->si_sm, msg, 4); - if (msg[2] != 0) - dev_warn(smi_info->dev, "Could not enable inter

Re: [PATCH v4] usb host: Faraday USB2.0 FUSBH200-HCD driver

2013-05-16 Thread Greg KH
On Fri, Apr 26, 2013 at 09:37:20AM +, Yuan-Hsin Chen wrote: > FUSBH200-HCD is an USB2.0 hcd for Faraday FUSBH200. > FUSBH200 is an ehci-like controller with some differences. > First, register layout of FUSBH200 is incompatible with EHCI. > Furthermore, FUSBH200 is lack of siTDs which means iTD

Re: [PATCH v3] usb: ehci: Only sleep for post-resume handover if devices use persist

2013-05-16 Thread Greg Kroah-Hartman
On Thu, Apr 25, 2013 at 09:08:27AM -0700, Julius Werner wrote: > The current EHCI code sleeps a flat 110ms in the resume path if there > was a USB 1.1 device connected to its companion controller during > suspend, waiting for the device to reappear and reset so that it can be > handed back to the c

Re: [PATCH 2/9] mm: vmscan: Obey proportional scanning requirements for kswapd

2013-05-16 Thread Kamezawa Hiroyuki
(2013/05/13 17:12), Mel Gorman wrote: > Simplistically, the anon and file LRU lists are scanned proportionally > depending on the value of vm.swappiness although there are other factors > taken into account by get_scan_count(). The patch "mm: vmscan: Limit > the number of pages kswapd reclaims" li

[PATCH v6 07/10] mtd: add ECC info for nand_flash_dev{}

2013-05-16 Thread Huang Shijie
Add an instance of an anonymous struct to store the ECC infor for full id nand chips. @ecc.strength_ds: ECC correctability from the datasheet. @ecc.step_ds: ECC size required by the @ecc.strength_ds, These two fields are all from the datasheet. Also add the necessary macros to mak

[PATCH v6 08/10] mtd: parse out the ECC info for the full-id nand chips

2013-05-16 Thread Huang Shijie
Parse out the ECC information for the full-id nand chips. Signed-off-by: Huang Shijie --- drivers/mtd/nand/nand_base.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 355976d..f7b514b 100644 --- a/drivers

[PATCH v6 04/10] mtd: add a helper to get the supported features for ONFI nand

2013-05-16 Thread Huang Shijie
From: Huang Shijie add a helper to get the supported features for ONFI nand. Also add the neccessary macros. Signed-off-by: Huang Shijie --- include/linux/mtd/nand.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/

[PATCH v6 03/10] mtd: add data structures for Extended Parameter Page

2013-05-16 Thread Huang Shijie
Since the ONFI 2.1, the onfi spec adds the Extended Parameter Page to store the ECC info. The onfi spec tells us that if the nand chip's recommended ECC codeword size is not 512 bytes, then the @ecc_bits is 0xff. The host _SHOULD_ then read the Extended ECC information that is part of the extended

[PATCH v6 05/10] mtd: get the ECC info from the Extended Parameter Page

2013-05-16 Thread Huang Shijie
Since the ONFI 2.1, the onfi spec adds the Extended Parameter Page to store the ECC info. The onfi spec tells us that if the nand chip's recommended ECC codeword size is not 512 bytes, then the @ecc_bits is 0xff. The host _SHOULD_ then read the Extended ECC information that is part of the extended

Re: [PATCH] memcg: update TODO list in Documentation

2013-05-16 Thread Kamezawa Hiroyuki
(2013/05/17 12:29), Li Zefan wrote: > hugetlb cgroup has already been implemented. > > Signed-off-by: Li Zefan Acked-by: KAMEZAWA Hiroyuki > --- > Documentation/cgroups/memory.txt | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/Documentation/cgroups/memory.t

[PATCH v6 02/10] mtd: get the ECC info from the parameter page for ONFI nand

2013-05-16 Thread Huang Shijie
>From the ONFI spec, we can just get the ECC info from the @ecc_bits field of the parameter page. Signed-off-by: Huang Shijie --- drivers/mtd/nand/nand_base.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c

[PATCH v6 10/10] mtd: gpmi: set the BCH's geometry with the ecc info

2013-05-16 Thread Huang Shijie
If the nand chip provides us the ECC info, we can use it firstly. The set_geometry_by_ecc_info() will use the ECC info, and calculate the parameters we need. Rename the old code to legacy_set_geometry() which will takes effect when there is no ECC info from the nand chip or we fails in the ECC inf

[PATCH v6 01/10] mtd: add datasheet's ECC information to nand_chip{}

2013-05-16 Thread Huang Shijie
1.) Why add the ECC information to the nand_chip{} ? Each nand chip has its requirement for the ECC correctability, such as "4bit ECC for each 512Byte" or "40bit ECC for each 1024Byte". This ECC info is very important to the nand controller, such as gpmi. Take the Micron MT29F64G08CBAB

[PATCH v6 09/10] mtd: add the ecc info for some full-id nand chips

2013-05-16 Thread Huang Shijie
Add the ecc info for TC58NVG2S0F, TC58NVG3S0F, TC58NVG5D2 and TC58NVG6D2. >From these chips' datasheets, we know that: The TC58NVG2S0F and TC58NVG3S0F require 4bit ECC for per 512byte. The TC58NVG5D2 and TC58NVG6D2 require 40bits ECC for per 1024byte. Signed-off-by: Huang Shijie --- drive

[PATCH v6 06/10] mtd: replace the hardcode with the onfi_feature()

2013-05-16 Thread Huang Shijie
The current code uses the hardcode to detect the 16-bit bus width. Use the onfi_feature() to replace it. Signed-off-by: Huang Shijie --- drivers/mtd/nand/nand_base.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand

[PATCH v6 00/10] mtd: add datasheet's ECC information to nand_chip{}

2013-05-16 Thread Huang Shijie
1.) Why add the ECC information to the nand_chip{} ? Each nand chip has its requirement for the ECC correctability, such as "4bit ECC for each 512Byte" or "40bit ECC for each 1024Byte". This ECC info is very important to the nand controller, such as gpmi. Take the Micron MT29F64G08CBAB

Re: [PATCH] Staging: android: sync: fixed a brace coding style issue

2013-05-16 Thread Greg KH
On Thu, May 16, 2013 at 08:42:22AM -1000, bmhei...@gmail.com wrote: > From: Brandon Height > > Fixed a coding style issue. > > Signed-off-by: Brandon Height This doesn't apply to my tree, can you please redo it against linux-next and resend? thanks, greg k-h -- To unsubscribe from this list:

Re: [PATCH] Staging: Goldfish: goldfish_nand: Fixed all checkpatch errors

2013-05-16 Thread Greg KH
On Sat, May 04, 2013 at 12:55:12PM -0400, jake.champlin...@gmail.com wrote: > From: Jake Champlin > > Fixed all checkpatch errors included inside goldfish_nand.c. > Checkpatch is now clean for goldfish_nand.c > > Signed-off-by: "Jake Champlin" Can you respin this against linux-next as it doesn

Re: [PATCH 1/1] Staging: hv: Fix a bug in get_vp_index()

2013-05-16 Thread Greg KH
On Fri, May 10, 2013 at 08:47:01AM -0700, K. Y. Srinivasan wrote: > Linux' notion of cpuid is different from the Host's notion of CPUID. In the > call to bind the channel interrupts, we should use the host's notion of > CPU Ids. Fix this bug. > > Signed-off-by: K. Y. Srinivasan > Cc: Stable (V3.

[PATCH] memcg: update TODO list in Documentation

2013-05-16 Thread Li Zefan
hugetlb cgroup has already been implemented. Signed-off-by: Li Zefan --- Documentation/cgroups/memory.txt | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index ddf4f93..327acec 100644 --- a/Documentati

Re: [WiP]: aio support for migrating pages (Re: [PATCH V2 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable())

2013-05-16 Thread Tang Chen
Hi Benjamin, Thank you very much for your idea. :) I have no objection to your idea, but seeing from your patch, this only works for aio subsystem because you changed the way to allocate the aio ring pages, with a file mapping. So far as I know, not only aio, but also other subsystems, such CMA

Re: [PATCH v6 0/8] kdump, vmcore: support mmap() on /proc/vmcore

2013-05-16 Thread H. Peter Anvin
On 05/16/2013 07:53 PM, Eric W. Biederman wrote: > > That is completely and totally orthogonal to this change. > > read_oldmem may have problems but in practice on a large systems those > problems are totally dwarfed by real life performance issues that come > from playing too much with the page

Re: linux-next: Tree for May 15 (crypto /crct10dif)

2013-05-16 Thread Xiong Zhou
2013/5/17 Tim Chen : > On Thu, 2013-05-16 at 09:59 -0700, Tim Chen wrote: >> On Thu, 2013-05-16 at 09:22 +0200, Geert Uytterhoeven wrote: >> > On Thu, May 16, 2013 at 5:57 AM, Xiong Zhou >> > wrote: >> > > --- a/crypto/Kconfig >> > > +++ b/crypto/Kconfig >> > > @@ -378,6 +378,7 @@ config CRYPTO_C

Re: linux-next: Tree for May 15 (crypto /crct10dif)

2013-05-16 Thread Xiong Zhou
2013/5/16 Geert Uytterhoeven : > On Thu, May 16, 2013 at 5:57 AM, Xiong Zhou wrote: >> --- a/crypto/Kconfig >> +++ b/crypto/Kconfig >> @@ -378,6 +378,7 @@ config CRYPTO_CRC32_PCLMUL >> >> config CRYPTO_CRCT10DIF >> tristate "CRCT10DIF algorithm" >> + depends on CRC_T10DIF > > This i

RE: [PATCH] staging: lustre: fix return type of lo_release.

2013-05-16 Thread Peng, Tao
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, May 17, 2013 3:02 AM > To: Cyril Roelandt > Cc: kernel-janit...@vger.kernel.org; andreas.dil...@intel.com; Peng, Tao; > de...@driverdev.osuosl.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH

Re: [PATCH v4] watchdog: Add Broadcom BCM2835 watchdog timer driver

2013-05-16 Thread Stephen Warren
On 03/27/2013 10:40 AM, Lubomir Rintel wrote: > This adds a driver for watchdog timer hardware present on Broadcom BCM2835 > SoC, > used in Raspberry Pi and Roku 2 devices. Lubomir, I don't believe this patch was applied for 3.10. Are you planning to fix up any remaining issues and repost for 3.1

Re: [PATCH v6 0/8] kdump, vmcore: support mmap() on /proc/vmcore

2013-05-16 Thread Eric W. Biederman
"H. Peter Anvin" writes: > On 05/15/2013 02:05 AM, HATAYAMA Daisuke wrote: >> Currently, read to /proc/vmcore is done by read_oldmem() that uses >> ioremap/iounmap per a single page. For example, if memory is 1GB, >> ioremap/iounmap is called (1GB / 4KB)-times, that is, 262144 >> times. This caus

Re: [PATCH] kernel/workqueue.c: need call device_remove_file() when failure occurs after called device_create_file()

2013-05-16 Thread Chen Gang
On 05/17/2013 01:50 AM, Tejun Heo wrote: > Hey, > > On Thu, May 16, 2013 at 12:48:43PM +0800, Chen Gang wrote: >> __sysfs_remove_dir() remove all related things, but not deref the count. >> >> For __sysfs_remove_dir() -> >> ... >> sysfs_addrm_start() >> ... >> while() { >> ... >> s

RE: [PATCH] virtio-net: Reporting traffic queue distribution statistics through ethtool

2013-05-16 Thread Narasimhan, Sriram
Thanks for the pointer to the earlier discussion thread. I am open to any consensus format. I would also like to get feedback from Michael on maintaining the stats in the per-queue data structure. Sriram -Original Message- From: Ben Hutchings [mailto:bhutchi...@solarflare.com] Sent: Thu

[PATCH 3/3] watchdog: Remove softlockup_thresh from Documentation

2013-05-16 Thread Li Zefan
The old softlockup detector has been replaced with new lockup detector long ago. Signed-off-by: Li Zefan --- Documentation/sysctl/kernel.txt | 10 -- 1 file changed, 10 deletions(-) diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt index e8fabd6..bcff3f9 100

[PATCH 1/3] watchdog: Disallow setting watchdog_thresh to -1

2013-05-16 Thread Li Zefan
In old kernels, it's allowed to set softlockup_thresh to -1 or 0 to disable softlockup detection. However watchdog_thresh only uses 0 to disable detection, and setting it to -1 just froze my box and nothing I can do but reboot. Signed-off-by: Li Zefan --- kernel/sysctl.c | 3 +-- 1 file changed,

[PATCH 2/3] watchdog: Document watchdog_thresh sysctl

2013-05-16 Thread Li Zefan
Signed-off-by: Li Zefan --- Documentation/sysctl/kernel.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt index ccd4258..e8fabd6 100644 --- a/Documentation/sysctl/kernel.txt +++ b/Documentation/sysctl/kernel.

Re: [Bug] ARM 'perf' regression by commit a43cb95d5

2013-05-16 Thread Ming Lei
On Fri, May 17, 2013 at 10:16 AM, Ming Lei wrote: > diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c > index f219703..89bc3a4 100644 > --- a/arch/arm/kernel/process.c > +++ b/arch/arm/kernel/process.c > @@ -225,7 +225,7 @@ void __show_regs(struct pt_regs *regs) > unsigned

Re: [PATCH] xen: reuse the same pirq allocated when driver load first time

2013-05-16 Thread Zhenzhong Duan
On 2013-05-15 17:41, Stefano Stabellini wrote: On Tue, 14 May 2013, Konrad Rzeszutek Wilk wrote: On Tue, May 14, 2013 at 02:49:50PM +0100, Stefano Stabellini wrote: On Mon, 13 May 2013, Konrad Rzeszutek Wilk wrote: On Mon, May 13, 2013 at 06:24:46PM +0100, Stefano Stabellini wrote: On Mon, 1

Re: [PATCH 2/5] perf: Reorder parameters of strglobmatch

2013-05-16 Thread Masami Hiramatsu
(2013/05/16 23:55), Steven Rostedt wrote: > On Thu, 2013-05-16 at 20:48 +0900, Masami Hiramatsu wrote: >> Reorder parameters of strglobmatch() so that the first >> parameter is the glob pattern as like as regexec(), >> because the subjective parameter of strglobmatch() must >> be the glob pattern,

[Bug] ARM 'perf' regression by commit a43cb95d5

2013-05-16 Thread Ming Lei
Hi, The commit a43cb95d5(dump_stack: unify debug information printed by show_regs()) caused ARM perf regression, then 'perf top' outputs mistakenly, see [1]. The correct output should be [2], which can be got after reverting the commit or doing it partly by the one line change below: diff --git

Re: [PATCH] can: flexcan: allow compilation on arm and powerpc

2013-05-16 Thread Shawn Guo
Hi Marc, On Thu, May 16, 2013 at 03:42:36PM +0200, Marc Kleine-Budde wrote: > This patch removes the Kconfig symbols HAVE_CAN_FLEXCAN and > IMX_HAVE_PLATFORM_FLEXCAN from arch/{arm,powerpc} and allowing compilation on > all arm and powerpc platforms. I'm generally fine with the approach. But wit

Re: [PATCH 16/20] ARM: mxs: Remove init_irq declaration in machine description

2013-05-16 Thread Shawn Guo
On Tue, May 14, 2013 at 05:38:49PM +0200, Maxime Ripard wrote: > Commit ebafed7a ("ARM: irq: Call irqchip_init if no init_irq function is > specified") removed the need to explictly setup the init_irq field in > the machine description when using only irqchip_init. Remove that > declaration for mxs

[git pull] drm fixes

2013-05-16 Thread Dave Airlie
Hi Linus, Fix for radeon nomodeset regression, old radeon interface cliprects fix, 2 qxl crasher fixes, and a couple of minor cleanups. I may have a new AMD hw support branch next week, its one of those doesn't affect anything existing just adds new support, I'll see how it shapes up and I mi

Re: [PATCH v6 0/8] kdump, vmcore: support mmap() on /proc/vmcore

2013-05-16 Thread HATAYAMA Daisuke
(2013/05/17 9:06), H. Peter Anvin wrote: On 05/15/2013 02:05 AM, HATAYAMA Daisuke wrote: Currently, read to /proc/vmcore is done by read_oldmem() that uses ioremap/iounmap per a single page. For example, if memory is 1GB, ioremap/iounmap is called (1GB / 4KB)-times, that is, 262144 times. This c

[PATCH v2 0/2] scsi: Port buslogic driver to 64 bits

2013-05-16 Thread Khalid Aziz
This patchset ports buslogic driver to 64-bit. Current buslogic driver is composed of two components - SCCB manager which communicates with adapter to execute SCSI commands (contained in FlashPoint.c), and Linux driver part that interfaces with rest of the kernel (contained in BusLogic.c). SCCB ma

Re: [PATCH] virtio_console: fix uapi header

2013-05-16 Thread Rusty Russell
"Michael S. Tsirkin" writes: > uapi should use __u32 not u32. > Fix a macro in virtio_console.h which uses u32. > > Signed-off-by: Michael S. Tsirkin Ouch. Added CC:stable, and put into fixes. Mainly because it's embarrassing :) Cheers, Rusty. -- To unsubscribe from this list: send the line "

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-16 Thread Rusty Russell
Joe Perches writes: > On Thu, 2013-05-16 at 13:04 +0930, Rusty Russell wrote: >> Asias He writes: >> > On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote: > [] >> > Other users are using memcpy_fromiovec and friends outside net. It seems >> > a good idea to put it in a util library. e.

Re: V3.10-rc1 memory leak

2013-05-16 Thread Rusty Russell
Catalin Marinas writes: > On Wed, May 15, 2013 at 08:33:01PM +0100, Steven Rostedt wrote: >> On Wed, 2013-05-15 at 15:37 +0100, Catalin Marinas wrote: >> >> > >From 0621c7e1909ea86bf8499a0ffe5ea59d1007ee8c Mon Sep 17 00:00:00 2001 >> > From: Catalin Marinas >> > Date: Wed, 15 May 2013 15:30:46

Re: [PATCH] virtio_pci: fix macro exported in uapi

2013-05-16 Thread Rusty Russell
"Michael S. Tsirkin" writes: > macro VIRTIO_PCI_CONFIG except in the unlikely event userspace > actually has a structure with a field named msix_enabled. > Get the msix_enabled by value instead, to make it useful > for userspace. > > Signed-off-by: Michael S. Tsirkin Macro still isn't usable, be

Re: [PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space

2013-05-16 Thread Rusty Russell
Amit Shah writes: > On (Mon) 06 May 2013 [17:49:49], Pranavkumar Sawargaonkar wrote: >> This patch adds an emerg_wr register (writeonly) in config space >> of virtio console device which can be used for debugging. >> >> Signed-off-by: Pranavkumar Sawargaonkar >> Signed-off-by: Anup Patel >> Sig

Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

2013-05-16 Thread Frederic Weisbecker
On Thu, May 16, 2013 at 12:52:03AM +0200, Frederic Weisbecker wrote: > On Mon, Mar 25, 2013 at 02:14:20PM -0700, Kevin Hilman wrote: > > Gleb Natapov writes: > > > > > On Sun, Mar 24, 2013 at 02:44:26PM +0100, Frederic Weisbecker wrote: > > >> 2013/3/21 Gleb Natapov : > > >> > Isn't is simpler fo

RE: [PATCH] staging: lustre: fix return type of lo_release.

2013-05-16 Thread Peng, Tao
> -Original Message- > From: Cyril Roelandt [mailto:tipec...@gmail.com] > Sent: Friday, May 17, 2013 12:06 AM > To: kernel-janit...@vger.kernel.org; gre...@linuxfoundation.org; > andreas.dil...@intel.com; Peng, Tao; > de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org > Cc: Cyril R

Linux source tree size difference issue

2013-05-16 Thread Chris Jones
I have cloned the Linux kernel source tree locally. It comes in at approx. ~500MB. I have then created another git repository to push the source to for my own work. I rsynced the tree locally to another directory and now I am currently pushing it in to the new repository and it's at 58% and is alre

[WiP]: aio support for migrating pages (Re: [PATCH V2 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable())

2013-05-16 Thread Benjamin LaHaise
On Thu, May 16, 2013 at 01:54:18PM +0800, Tang Chen wrote: ... > OK, I'll try to figure out a proper place to put the callbacks. > But I think we need to add something new to struct page. I'm just > not sure if it is OK. Maybe we can discuss more about it when I send > a RFC patch. ... I ended up

  1   2   3   4   5   6   7   >