linux-next: build failure after merge of the final tree (net-next tree related)

2012-09-04 Thread Stephen Rothwell
Hi , After merging the final tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: net/built-in.o: In function `tcp_fastopen_ctx_free': tcp_fastopen.c:(.text+0x5cc5c): undefined reference to `crypto_destroy_tfm' net/built-in.o: In function `tcp_fastopen_reset_cipher': (.text

Re: need help on development of linux kernel

2012-09-04 Thread Cong Wang
On 08/30/2012 12:15 PM, Sachin Agarwalla wrote: Dear Sir/Madam, I have some questions on development of linux kernel as follows:- 1.I want to know the location of files in linux kernel source code that contains timer initialization and scheduler part. Scheduler source code is in kernel/sche

[PATCH 2/3] leds-lp5523: add new device id for LP55231

2012-09-04 Thread Kim, Milo
To support LP55231 device, the device id is added. Additionally, the i2c driver name is changed from lp5523 to lp5523x. Signed-off-by: Milo(Woogyom) Kim --- drivers/leds/leds-lp5523.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-lp5523.c b/

[PATCH 1/3] leds-lp5523: support new LP55231 device

2012-09-04 Thread Kim, Milo
New TI LP55231 device has same I2C register layout as LP5523. Therefore, all of LED operations can be shared with the LP5523 driver. To support new LP55231 device explicitly, the device description is added in the configuration file. Signed-off-by: Milo(Woogyom) Kim --- drivers/leds/Kconfig

[PATCH 3/3] leds-lp5523: use the i2c device id rather than fixed name

2012-09-04 Thread Kim, Milo
LP5523 driver supports both LP5523 and LP55231. The i2c device id is one of the two - lp5523 or lp55231. So it's better to use matching i2c device id while enumerating the device and naming LED channels. Signed-off-by: Milo(Woogyom) Kim --- drivers/leds/leds-lp5523.c | 10 ++ 1 fil

Re: [PATCH can-next v6] can: add tx/rx LED trigger support

2012-09-04 Thread Kurt Van Dijck
On Mon, Sep 03, 2012 at 10:54:49PM +0200, Oliver Hartkopp wrote: > On 03.09.2012 20:29, Fabio Baltieri wrote: > > > On Mon, Sep 03, 2012 at 08:13:35PM +0200, Kurt Van Dijck wrote: > >> On Mon, Sep 03, 2012 at 02:40:39PM +0200, Marc Kleine-Budde wrote: > >>> The net->ifindex is unique. But it's onl

linux-next: Tree for Sept 4

2012-09-04 Thread Stephen Rothwell
Hi all, Changes since 20120824: The pci tree gained conflicts against Linus' tree. The v4l-dvb tree gained a conflict against the arm tree. The ubi tree lost its build failure. The scsi tree lost its conflict. The drm tree lost its build failure and conflicts. The sound tree lost its build f

Re: linux-next: manual merge of the pci tree with Linus' tree

2012-09-04 Thread Yuval Mintz
> Today's linux-next merge of the pci tree got a conflict in > drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c between commit > 8eee694c3e66 ("bnx2x: fix unload previous driver flow when flr-capable") > from Linus' tree and commit 2a80eebcbf3e ("bnx2x: Use PCI Express > Capability accessors") from

Re: [PATCH] gpio: Use DEFINE_PCI_DEVICE_TABLE macro

2012-09-04 Thread Linus Walleij
On Sun, Sep 2, 2012 at 2:04 AM, Axel Lin wrote: > Signed-off-by: Axel Lin Applied, thanks! Linus Walleij -- 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 http://vger.kernel.org/majordomo-info

Re: [PATCH] gpio: adp5588: Use module_i2c_driver

2012-09-04 Thread Linus Walleij
On Sun, Sep 2, 2012 at 2:08 AM, Axel Lin wrote: > Signed-off-by: Axel Lin Applied, thanks! Linus Walleij -- 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 http://vger.kernel.org/majordomo-info

Re: [PATCH] Revert "spi/doc: spi_master_put must be followed up by kfree"

2012-09-04 Thread Uwe Kleine-König
On Mon, Sep 03, 2012 at 01:26:26PM -0700, Guenter Roeck wrote: > Actually, spi_master_put() after spi_alloc_master() must _not_ be followed > by kfree(). The memory is already freed with the call to spi_master_put() > through spi_master_class, which registers a release function. Calling both > spi_

Re: [PATCH 1/2] gpio: wm831x: Convert to use devm_kzalloc API

2012-09-04 Thread Linus Walleij
On Sun, Sep 2, 2012 at 5:58 AM, Axel Lin wrote: > Signed-off-by: Axel Lin Applied, thanks! Linus Walleij -- 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 http://vger.kernel.org/majordomo-info

Re: [PATCH 2/2] gpio: wm8350: Convert to use devm_kzalloc API

2012-09-04 Thread Linus Walleij
On Sun, Sep 2, 2012 at 5:58 AM, Axel Lin wrote: > Signed-off-by: Axel Lin Applied, thanks! Linus Walleij -- 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 http://vger.kernel.org/majordomo-info

Re: RCU warning during UBI file system mount

2012-09-04 Thread Artem Bityutskiy
Let's CC LKML and Paul. On Sat, 2012-09-01 at 22:19 -0700, Subodh Nijsure wrote: > Hello, > > I am running 3.6-rc4 kernel on my MX28 based board and every time I > mount UBI file system I see following warning. > Anybody else seen this errors, particularly those running it on MXS > platform?

Re: [PATCH 3/4] drivers/mtd/maps/autcpu12-nvram.c: drop frees of devm_ alloc'd data

2012-09-04 Thread Artem Bityutskiy
On Sat, 2012-09-01 at 18:33 +0200, Julia Lawall wrote: > From: Julia Lawall > > devm free functions should not have to be explicitly used. > > A semantic match that finds this problem is as follows: > (http://coccinelle.lip6.fr/) Pushed to l2-mtd.git, thanks! -- Best Regards, Artem Bityutskiy

Re: [PATCH v2] udf: extent cache implementation for manipulating block map

2012-09-04 Thread Namjae Jeon
2012/9/3, Jan Kara : > Hello, > > On Fri 31-08-12 12:51:58, Namjae Jeon wrote: >> From: Namjae Jeon >> >> While mapping logical blocks of a file to physical blocks on the >> partition, >> everytime UDF read file metadata from the begining which decrease >> preformance. >> The drawback of this sc

Re: [PATCH 1/3] leds-lp5523: support new LP55231 device

2012-09-04 Thread Bryan Wu
On Tue, Sep 4, 2012 at 3:06 PM, Kim, Milo wrote: > New TI LP55231 device has same I2C register layout as LP5523. > Therefore, all of LED operations can be shared with the LP5523 driver. > > To support new LP55231 device explicitly, the device description > is added in the configuration file. >

Re: linux-next: manual merge of the arm-soc tree with the arm-current tree

2012-09-04 Thread Arnd Bergmann
On Tuesday 04 September 2012, Stephen Rothwell wrote: > Today's linux-next merge of the arm-soc tree got a conflict in > arch/arm/mm/mmu.c between commit a849088aa155 ("ARM: Fix ioremap() of > address zero") from the arm-current tree and commit c2794437091a ("ARM: > Add fixed PCI i/o mapping") from

Re: [PATCH 2/3] leds-lp5523: add new device id for LP55231

2012-09-04 Thread Bryan Wu
On Tue, Sep 4, 2012 at 3:06 PM, Kim, Milo wrote: > To support LP55231 device, the device id is added. > Additionally, the i2c driver name is changed from lp5523 to lp5523x. > Applied to my for-next. -Bryan > Signed-off-by: Milo(Woogyom) Kim > --- > drivers/leds/leds-lp5523.c | 10

[PATCH] kernel: limit a value of ns_last_pid to (0, max_pid)

2012-09-04 Thread Andrew Vagin
The kernel doesn't check pid on a negative values, so if you would try to write -2 in /proc/sys/kernel/ns_last_pid, you will get a kernel panic. In this case the next pid is -1, and alloc_pidmap will try to access to a nonexistent pidmap. map = &pid_ns->pidmap[pid/BITS_PER_PAGE]; Cc: Andrew Mort

Re: linux-next: build warnings after merge of the drm tree

2012-09-04 Thread Dave Airlie
> > After merging the drm tree, today's linux-next build (powerpc > > ppc64_defconfig) produced these warnings: > > > > drivers/gpu/drm/udl/Kconfig:1:error: recursive dependency detected! > > drivers/gpu/drm/udl/Kconfig:1: symbol DRM_UDL depends on USB_ARCH_HAS_HCD > > drivers/usb/Kconfig:76: symb

[PATCH 0/8 v2] acpi-cpufreq: Move modern AMD cpufreq support to acpi-cpufreq

2012-09-04 Thread Andre Przywara
Hi, now the second, revised version of the patch set. I now tested loading both drivers after each other in several combinations, after two bug fixes this now works as expected. I added a patch to move messages from powernow-k8 after the initialization phase, so it remains silent if driver loading

[PATCH 5/8 v2] ACPI: Add fixups for AMD P-state figures

2012-09-04 Thread Andre Przywara
From: Matthew Garrett Some AMD systems may round the frequencies in ACPI tables to 100MHz boundaries. We can obtain the real frequencies from MSRs, so add a quirk to fix these frequencies up on AMD systems. Signed-off-by: Matthew Garrett Signed-off-by: Andre Przywara --- arch/x86/include/asm/

[PATCH 3/8 v2] cpufreq: Add warning message to powernow-k8

2012-09-04 Thread Andre Przywara
cpufreq modules are often loaded from init scripts that assume that all recent AMD systems will use powernow-k8. To inform the user of the change of support and ease the transition to acpi-cpufreq, emit a warning message. Signed-off-by: Andre Przywara --- drivers/cpufreq/Kconfig.x86 | 3 ++- d

[PATCH 2/8 v2] acpi-cpufreq: Add quirk to disable _PSD usage on all AMD CPUs

2012-09-04 Thread Andre Przywara
To workaround some Windows specific behavior, the ACPI _PSD table on AMD desktop boards advertises all cores as dependent, meaning that they all can only use the same P-state. acpi-cpufreq strictly obeys this description, instantiating one CPU only and symlinking the others. But the hardware can ha

Re: [PATCH 3/3] leds-lp5523: use the i2c device id rather than fixed name

2012-09-04 Thread Bryan Wu
On Tue, Sep 4, 2012 at 3:06 PM, Kim, Milo wrote: > LP5523 driver supports both LP5523 and LP55231. > The i2c device id is one of the two - lp5523 or lp55231. > So it's better to use matching i2c device id while enumerating the device > and naming LED channels. > Applied, thanks. -Bryan > Sig

[PATCH 8/8 v2] cpufreq: Remove support for hardware P-state chips from powernow-k8

2012-09-04 Thread Andre Przywara
From: Matthew Garrett These chips are now supported by acpi-cpufreq, so we can delete all the code handling them. Andre: Tighten the deprecation warning message. Trigger load of acpi-cpufreq and let the load of the module finally fail. This avoids the problem of users ending up without any cpufr

[PATCH 7/8 v2] acpi-cpufreq: Add compatibility for legacy AMD cpb sysfs knob

2012-09-04 Thread Andre Przywara
The powernow-k8 driver supported a sysfs knob called "cpb", which was instantiated per CPU, but actually acted globally for the whole system. To keep some compatibility with this feature, we re-introduce this behavior here, but: a) only enable it on AMD CPUs and b) protect it with a Kconfig switch

[PATCH 6/8 v2] acpi-cpufreq: Add support for disabling dynamic overclocking

2012-09-04 Thread Andre Przywara
One feature present in powernow-k8 that isn't present in acpi-cpufreq is support for enabling or disabling AMD's core performance boost technology. This patch adds support to acpi-cpufreq, but also includes support for Intel's dynamic acceleration. The original boost disabling sysfs file was per C

[PATCH 1/8 v2] acpi-cpufreq: Add support for modern AMD CPUs

2012-09-04 Thread Andre Przywara
From: Matthew Garrett The programming model for P-states on modern AMD CPUs is very similar to that of Intel and VIA. It makes sense to consolidate this support into one driver rather than duplicating functionality between two of them. This patch adds support for AMDs with hardware P-state contro

Re: [PATCH] USB: ohci-at91: fix PIO handling in relation with number of ports

2012-09-04 Thread Nicolas Ferre
On 08/29/2012 11:49 AM, Nicolas Ferre : > If the number of ports present on the SoC/board is not the maximum > and that the platform data is not filled with all data, there is > an easy way to mess the PIO setup for this interface. > This quick fix addresses mis-configuration in USB host platform d

[PATCH 4/8 v2] powernow-k8: delay info messages until initialization has succeeded

2012-09-04 Thread Andre Przywara
powernow-k8 is quite prematurely crying Hooray and outputs diagnostic messages, although the actual initialization can still fail. Since now we may have acpi-cpufreq already loaded, we move the messages at the end of the init routine to avoid confusing output if the loading of powernow-k8 should no

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-04 Thread Glauber Costa
> >> + of the root memcg, regardless of their positioning in the tree. >> + >> + Use of flat hierarchies is highly discouraged, but has been the >> + default for performance reasons for quite some time. Setting this flag >> + to on will make hierarchical accounting the default

Re: [PATCH 4/4] drivers/mtd/nand/mpc5121_nfc.c: some devm_ cleanups

2012-09-04 Thread Artem Bityutskiy
Aiaiai! :-) [1] [2] I've build-tested this using aiaiai and it reports that this change breaks the build: dedekind@blue:~/git/maintaining$ ./verify ../l2-mtd/ mpc5121_nfc < ~/tmp/julia2.mbox Tested the patch(es) on top of the following commits: ba64756 Quick fixes - applied by aiaiai 651c6fa J

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-04 Thread Glauber Costa
On 09/03/2012 09:08 PM, Michal Hocko wrote: > On Mon 03-09-12 19:46:51, Glauber Costa wrote: >> Here is a new attempt to lay down a path that will allow us to deprecate >> the non-hierarchical mode of operation from memcg. Unlike what I posted >> before, I am making this behavior conditional on a

Re: [PATCH 1/1 v2] leds: Add new LED driver for lm355x chips

2012-09-04 Thread Bryan Wu
On Mon, Sep 3, 2012 at 3:29 PM, G.Shark Jeong wrote: > From: "G.Shark Jeong" > > LM3554 and LM3556 have similar functions but very different register map. > This driver is a general version for lm3554 and lm3556 both,led chips of TI. > lm3556 driver can be replaced by this driver. > > LM3554 : >

[PATCH 0/2] hwmon/lm70: changes to allow 4w with LM70 and add LM71/LM74

2012-09-04 Thread Christophe Leroy
Hello, The two following patches do: 1) Allow the use of NS LM70 with a 4 wire SPI bus too, since the component allows both configuration 2) Adds support for NS LM71 and LM74 Regards Christophe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

[PATCH 1/2] hwmon/lm70: Allow 4wire SPI bus with LM70

2012-09-04 Thread Christophe Leroy
Removing the 3wire limitation on LM70 as the component also allows operation on 4wire SPI bus Signed-off-by: Christophe Leroy diff -u linux-3.5-vanilla/drivers/hwmon/lm70.c linux-3.5/drivers/hwmon/lm70.c --- linux-3.5-vanilla/drivers/hwmon/lm70.c 2012-07-21 22:58:29.0 +0200 +++ lin

[PATCH 2/2] hwmon/lm70: Adds support for LM71 and LM74

2012-09-04 Thread Christophe Leroy
Adding support for LM74 and LM71 chips Signed-off-by: Christophe Leroy diff -u linux-3.5-vanilla/drivers/hwmon/Kconfig linux-3.5/drivers/hwmon/Kconfig --- linux-3.5-vanilla/drivers/hwmon/Kconfig 2012-07-21 22:58:29.0 +0200 +++ linux-3.5/drivers/hwmon/Kconfig 2012-08-25 00:44:05.

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 08:46:12AM +0200, Paolo Bonzini wrote: > Il 04/09/2012 04:21, Nicholas A. Bellinger ha scritto: > >> @@ -112,6 +118,9 @@ static void virtscsi_complete_cmd(struct virtio_scsi > >> *vscsi, void *buf) > >>struct virtio_scsi_cmd *cmd = buf; > >>struct scsi_cmnd *sc = cm

Re: linux page table

2012-09-04 Thread Cong Wang
On 09/03/2012 02:26 AM, Jiri Kosina wrote: On Sun, 2 Sep 2012, Xin Tong wrote: 3. can two different processes have their CR3 being the same value even though they have different first level page tables ? Yes, if they are created by clone(CLONE_VM). In such case they share the same mm_struct,

Re: [PATCH] ARM: ux500: Provide SMSC911x fixed-regulator when not booting DT

2012-09-04 Thread Linus Walleij
On Mon, Sep 3, 2012 at 3:33 PM, Lee Jones wrote: > Author: Lee Jones > Date: Fri Aug 24 12:40:58 2012 +0100 > > ARM: ux500: Provide SMSC911x fixed-regulator when not booting DT > > The SMSC911x Ethernet chip requires a fixed-regulator in order to > function correctly. We have previ

Re: linux-next: build warnings after merge of the drm tree

2012-09-04 Thread Sedat Dilek
On Tue, Sep 4, 2012 at 10:22 AM, Dave Airlie wrote: >> > After merging the drm tree, today's linux-next build (powerpc >> > ppc64_defconfig) produced these warnings: >> > >> > drivers/gpu/drm/udl/Kconfig:1:error: recursive dependency detected! >> > drivers/gpu/drm/udl/Kconfig:1: symbol DRM_UDL de

Re: [PATCH 4/4] drivers/mtd/nand/mpc5121_nfc.c: some devm_ cleanups

2012-09-04 Thread Lars-Peter Clausen
On 09/04/2012 10:42 AM, Artem Bityutskiy wrote: > Aiaiai! :-) [1] [2] > > I've build-tested this using aiaiai and it reports that this change breaks > the build: > > dedekind@blue:~/git/maintaining$ ./verify ../l2-mtd/ mpc5121_nfc < > ~/tmp/julia2.mbox > Tested the patch(es) on top of the foll

Re: linux-next: manual merge of the arm-soc tree with the arm-current tree

2012-09-04 Thread Russell King - ARM Linux
On Tue, Sep 04, 2012 at 08:08:24AM +, Arnd Bergmann wrote: > On Tuesday 04 September 2012, Stephen Rothwell wrote: > > Today's linux-next merge of the arm-soc tree got a conflict in > > arch/arm/mm/mmu.c between commit a849088aa155 ("ARM: Fix ioremap() of > > address zero") from the arm-current

Re: [PATCH v7 4/9] pktcdvd: Switch to bio_kmalloc()

2012-09-04 Thread Jiri Kosina
On Tue, 28 Aug 2012, Tejun Heo wrote: > > This is prep work for killing bi_destructor - previously, pktcdvd had > > its own pkt_bio_alloc which was basically duplication bio_kmalloc(), > > necessitating its own bi_destructor implementation. > > How was this tested? I have now tested it and it wo

Re: [PATCH] ARM: ux500: Provide SMSC911x fixed-regulator when not booting DT

2012-09-04 Thread Lee Jones
On Tue, Sep 04, 2012 at 10:53:32AM +0200, Linus Walleij wrote: > On Mon, Sep 3, 2012 at 3:33 PM, Lee Jones wrote: > > > Author: Lee Jones > > Date: Fri Aug 24 12:40:58 2012 +0100 > > > > ARM: ux500: Provide SMSC911x fixed-regulator when not booting DT > > > > The SMSC911x Ethernet chip

Re: [ASoC] Fix: Revert 'ASoC: imx-ssi: Remove mono support'.

2012-09-04 Thread javier Martin
On 4 September 2012 08:35, Gaëtan Carlier wrote: > Hi Javier, > > On 09/03/2012 10:27 AM, Javier Martin wrote: >> >> The following commit should be reverted: >> 0865a75d4166bddc533fd50831829ceefb94f9b0 >> >> The bug this patch is meant to solve doesn't occur in Visstrim_M10 boards. >> Furthermore,

Re: [PATCH 1/4] i2c: introduce i2c-cbus driver

2012-09-04 Thread Felipe Balbi
Hi, On Mon, Sep 03, 2012 at 11:23:22PM +0300, Aaro Koskinen wrote: > diff --git a/drivers/i2c/busses/i2c-cbus.c b/drivers/i2c/busses/i2c-cbus.c > new file mode 100644 > index 000..bacf2a9 > --- /dev/null > +++ b/drivers/i2c/busses/i2c-cbus.c > @@ -0,0 +1,369 @@ > +/* > + * CBUS I2C driver for

[PATCH] usb: otg: Move phy interface to separate file.

2012-09-04 Thread Venu Byravarasu
As otg.h is containing lots of phy interface related stuff, moving all phy interface related stuff to new file named phy.h Signed-off-by: Venu Byravarasu --- include/linux/usb/otg.h | 198 + include/linux/usb/phy.h | 208 +

Re: [PATCH 3/3] proc: use kzalloc instead of kmalloc and memset

2012-09-04 Thread yan yan
2012/9/4 Ryan Mallon > > On 04/09/12 00:14, yan wrote: > > Signed-off-by: yan > > --- > > fs/proc/generic.c |3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/fs/proc/generic.c b/fs/proc/generic.c > > index 9e8f631..38de015 100644 > > --- a/fs/proc/generic.c > >

Re: [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB

2012-09-04 Thread Wen Congyang
At 07/03/2012 11:57 AM, Jiang Liu Wrote: > Several subsystems, including memory-failure, swap, sparse, DRBD etc, > use PageSlab() to check whether a page is managed by SLAB/SLUB/SLOB. > And they treat slab pages differently from pagecache/anonymous pages. > > But it's unsafe to use PageSlab() to d

Re: [PATCH v2] usb: otg: Move phy interface to separate file.

2012-09-04 Thread Venu Byravarasu
Hi Felipe, On Monday 03 September 2012 07:43 PM, Felipe Balbi wrote: * PGP Signed by an unknown key Hi, On Wed, Aug 29, 2012 at 12:17:01PM +0530, Venu Byravarasu wrote: As otg.h is containing lots of phy interface related stuff, moving all phy interface related stuff to new file named phy.h

Re: need help on development of linux kernel

2012-09-04 Thread Sachin Agarwalla
Dear Sir/Madam, Thank you for your support.I want to know is the linux kernel cpu scheduling part optimized for scalable multi core architecture.If not then what are the scope if improvements?Can you help me? thanking you, waiting for your reply, yours faithfully, sachinagarwalla - Origina

Re: [PATCH 5/7] perf ui/browser: Add a browser for perf script

2012-09-04 Thread Feng Tang
Hi Namhyung, Thanks for your kind and thorough reviews. On Tue, 4 Sep 2012 10:57:35 +0900 Namhyung Kim wrote: > On Mon, 3 Sep 2012 16:14:31 +0800, Feng Tang wrote: > > Create a script browser, so that user can check all the available > > scripts and run them inside the main perf report or anno

Re: [PATCH RESEND 1/2] i2c: pnx: Fix bit definitions

2012-09-04 Thread Wolfram Sang
On Mon, Sep 03, 2012 at 10:16:22PM +0200, Roland Stigge wrote: > Hi Wolfram, > > On 20/08/12 19:55, Wolfram Sang wrote: > >> I've never had my hands on a PNX4008 chip at NXP, but I do > >> believe they are the same IP. That specific I2C IP was used in a > >> number of NXP/Phillips chips besides th

[PATCH 0/7] use interval trees for anon rmap

2012-09-04 Thread Michel Lespinasse
This patch series applies on top of the previous ones currently queued into Andrew's -mm tree (the rbtree, augmented rbtree and interval tree changes). The goal here is to use interval trees to replace the same_anon_vma linked list, and avoid anon rmap scalability issues when a given process has m

[PATCH 2/7] mm: fix potential anon_vma locking issue in mprotect()

2012-09-04 Thread Michel Lespinasse
This change fixes an anon_vma locking issue in the following situation: - vma has no anon_vma - next has an anon_vma - vma is being shrunk / next is being expanded, due to an mprotect call We need to take next's anon_vma lock to avoid races with rmap users (such as page migration) while next is be

[PATCH 5/7] mm rmap: remove vma_address check for address inside vma

2012-09-04 Thread Michel Lespinasse
In file and anon rmap, we use interval trees to find potentially relevant vmas and then call vma_address() to find the virtual address the given page might be found at in these vmas. vma_address() used to include a check that the returned address falls within the limits of the vma, but this check i

[PATCH 7/7] mm: avoid taking rmap locks in move_ptes()

2012-09-04 Thread Michel Lespinasse
During mremap(), the destination VMA is generally placed after the original vma in rmap traversal order: in move_vma(), we always have new_pgoff >= vma->vm_pgoff, and as a result new_vma->vm_pgoff >= vma->vm_pgoff unless vma_merge() merged the new vma with an adjacent one. When the destination VMA

[PATCH 6/7] mm: add CONFIG_DEBUG_VM_RB build option

2012-09-04 Thread Michel Lespinasse
Add a CONFIG_DEBUG_VM_RB build option for the previously existing DEBUG_MM_RB code. Now that Andi Kleen modified it to avoid using recursive algorithms, we can expose it a bit more. Also extend this code to validate_mm() after stack expansion, and to check that the vma's start and last pgoffs have

[PATCH 4/7] mm anon rmap: replace same_anon_vma linked list with an interval tree.

2012-09-04 Thread Michel Lespinasse
When a large VMA (anon or private file mapping) is first touched, which will populate its anon_vma field, and then split into many regions through the use of mprotect(), the original anon_vma ends up linking all of the vmas on a linked list. This can cause rmap to become inefficient, as we have to

Re: [PATCH 1/3] proc: return -ENOMEM when inode allocation failed

2012-09-04 Thread yan yan
2012/9/4 Cong Wang : > On 09/03/2012 10:14 PM, yan wrote: >> >> Signed-off-by: yan > > > Please provide a changelog to explain why we need this patch. I think the title is self explained. >> --- >> fs/proc/generic.c |2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git

[PATCH 3/7] mm anon rmap: remove anon_vma_moveto_tail

2012-09-04 Thread Michel Lespinasse
mremap() had a clever optimization where move_ptes() did not take the anon_vma lock to avoid a race with anon rmap users such as page migration. Instead, the avc's were ordered in such a way that the origin vma was always visited by rmap before the destination. This ordering and the use of page tab

[PATCH 1/7] mm: interval tree updates

2012-09-04 Thread Michel Lespinasse
This commit updates the generic interval tree code that was introduced in "mm: replace vma prio_tree with an interval tree". Changes: - fixed 'endpoing' typo noticed by Andrew Morton - replaced include/linux/interval_tree_tmpl.h, which was used as a template (including it automatically defined

[PATCH] mm: fix mmap overflow checking

2012-09-04 Thread Wanlong Gao
POSIX said that if the file is a regular file and the value of "off" plus "len" exceeds the offset maximum established in the open file description associated with fildes, mmap should return EOVERFLOW. The following test from LTP can reproduce this bug. char tmpfname[256]; void *p

Re: [PATCH] ARM: ux500: Provide SMSC911x fixed-regulator when not booting DT

2012-09-04 Thread Linus Walleij
On Tue, Sep 4, 2012 at 11:08 AM, Lee Jones wrote: > On Tue, Sep 04, 2012 at 10:53:32AM +0200, Linus Walleij wrote: > >> You forgot to add select REGULATOR_FIXED_VOLTAGE to >> the MOP500 Kconfig entry, but I added it when applying. > > I didn't forget. I intentionally left it out because it's > unc

[PATCH] can: rename LED trigger name on netdev renames

2012-09-04 Thread Kurt Van Dijck
The LED trigger name for CAN devices is based on the initial CAN device name, but does never change. The LED trigger name is not guaranteed to be unique in case of hotplugging CAN devices. This patch tries to address this problem by modifying the LED trigger name according to the CAN device name w

Why exported const value modified by another driver not updated in original driver

2012-09-04 Thread Manavendra Nath Manav
Hi, I have declared a static const int variable in one driver and exported that variable symbol. In another driver i am modifying that variable. The other driver prints the modified value but the original driver retains the original value. When both virtual and physical addresses of the variable a

Re: [PATCH 1/4] i2c: introduce i2c-cbus driver

2012-09-04 Thread Aaro Koskinen
On Tue, Sep 04, 2012 at 12:05:07PM +0300, Felipe Balbi wrote: > > + * CBUS I2C driver for Nokia Internet Tablets. [...] > this version misses the entire IRQ handling we already had on linux-omap > tree, so it's quite a regression. There's no interrupts used in plain CBUS protocol/communication I

Re: [PATCH v2 -tip 1/5] x86, MSI: Support multiple MSIs in presense of IRQ remapping

2012-09-04 Thread Alexander Gordeev
On Mon, Sep 03, 2012 at 11:53:39AM -0700, Yinghai Lu wrote: > On Mon, Sep 3, 2012 at 2:17 AM, Alexander Gordeev wrote: > You may update create_irq_nr to be __create_irq_nr, and it could take > extra count. > > and later have create_irq_nr to be __create_irq_nr(,1,) > and create_irqs to be __creat

Re: [PATCH] ARM: ux500: Provide SMSC911x fixed-regulator when not booting DT

2012-09-04 Thread Lee Jones
On Tue, Sep 04, 2012 at 11:29:02AM +0200, Linus Walleij wrote: > On Tue, Sep 4, 2012 at 11:08 AM, Lee Jones wrote: > > On Tue, Sep 04, 2012 at 10:53:32AM +0200, Linus Walleij wrote: > > > >> You forgot to add select REGULATOR_FIXED_VOLTAGE to > >> the MOP500 Kconfig entry, but I added it when appl

[GIT] floppy, pktcdvd

2012-09-04 Thread Jiri Kosina
Jens, please consider pulling from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/linux-block.git for-jens (based on 'master' of your linux-block.git) to receive the changes below. There are a couple of fixes (mostly clenaups) to floppy driver from Herton Ronaldo Krzesinski and Ben Hutc

Re: [PATCH 4/4] drivers/mtd/nand/mpc5121_nfc.c: some devm_ cleanups

2012-09-04 Thread Julia Lawall
On Tue, 4 Sep 2012, Lars-Peter Clausen wrote: > On 09/04/2012 10:42 AM, Artem Bityutskiy wrote: > > Aiaiai! :-) [1] [2] > > > > I've build-tested this using aiaiai and it reports that this change breaks > > the build: > > > > dedekind@blue:~/git/maintaining$ ./verify ../l2-mtd/ mpc5121_nfc < > >

Re: [PATCH 4/4] drivers/mtd/nand/mpc5121_nfc.c: some devm_ cleanups

2012-09-04 Thread Artem Bityutskiy
On Tue, 2012-09-04 at 11:44 +0200, Julia Lawall wrote: > > I've been bitten by the same issue recently, also cause by one of these > > cocci devm patches. devm_clk_get is only available if the generic > > clk_get/clk_put implementation is used. Not all architectures do this and > > some implement t

Re: [PATCH v2] udf: extent cache implementation for manipulating block map

2012-09-04 Thread Jan Kara
On Tue 04-09-12 16:45:42, Namjae Jeon wrote: > 2012/9/3, Jan Kara : > >> +void udf_clear_extent_cache(struct udf_inode_info *iinfo) > >> +{ > >> + if (iinfo->cached_extent.sanity) { > >> + brelse(iinfo->cached_extent.epos.bh); > >> + memset(&iinfo->cached_extent, 0, sizeof(struct

Re: [RFC v8 PATCH 13/20] memory-hotplug: check page type in get_page_bootmem

2012-09-04 Thread Yasuaki Ishimatsu
Hi Wen, 2012/09/04 12:46, Wen Congyang wrote: Hi, isimatu-san At 09/01/2012 05:30 AM, Andrew Morton Wrote: On Tue, 28 Aug 2012 18:00:20 +0800 we...@cn.fujitsu.com wrote: From: Yasuaki Ishimatsu There is a possibility that get_page_bootmem() is called to the same page many times. So when ge

[PATCH v3] UDF: Add support for O_DIRECT

2012-09-04 Thread Ian Abbott
so be called by udf_direct_IO(). Also change the whitespace in udf_aops and udf_adinicb_aops to make them a bit neater. Signed-off-by: Ian Abbott --- v2: Rework error handling in udf_direct_IO to avoid calling deprecated vmtruncate(). v3: Rebased to next-20120904. --- fs/u

Re: [PATCH v2] udf: extent cache implementation for manipulating block map

2012-09-04 Thread Namjae Jeon
2012/9/4 Jan Kara : > On Tue 04-09-12 16:45:42, Namjae Jeon wrote: >> 2012/9/3, Jan Kara : >> >> +void udf_clear_extent_cache(struct udf_inode_info *iinfo) >> >> +{ >> >> + if (iinfo->cached_extent.sanity) { >> >> + brelse(iinfo->cached_extent.epos.bh); >> >> + memset(&iinfo->cac

[RFC] VFS: File System Mount Wide O_DIRECT Support

2012-09-04 Thread Li Wang
For file system created on file-backed loop device, there will be two-levels of page cache present, which typically doubles the memory consumption. In many cases, it is beneficial to turn on the O_DIRECT option while performing the upper file system file IO, to bypass the upper page cache, which

Re: [PATCH 1/1] x86/oprofile: Fix the calltrace upon profiling some specified events with oprofile

2012-09-04 Thread Robert Richter
Wei, see my comments below. On 27.08.12 09:32:13, wei.y...@windriver.com wrote: > From: Wei Yang > > Upon enabling the call-graph functionality of oprofile, A few minutes > later the following calltrace will always occur. > > BUG: unable to handle kernel paging request at 656d6153 > IP: [] pri

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Paolo Bonzini
Il 04/09/2012 10:46, Michael S. Tsirkin ha scritto: +static int virtscsi_queuecommand_multi(struct Scsi_Host *sh, + struct scsi_cmnd *sc) +{ + struct virtio_scsi *vscsi = shost_priv(sh); + struct virtio_scsi_target_state *tgt = vscsi->tgt[s

Re: Why exported const value modified by another driver not updated in original driver

2012-09-04 Thread Manavendra Nath Manav
On Tue, Sep 4, 2012 at 3:00 PM, Manavendra Nath Manav wrote: > Hi, > > I have declared a static const int variable in one driver and exported > that variable symbol. In another driver i am modifying that variable. > The other driver prints the modified value but the original driver > retains the o

[GIT PULL] fbdev fixes for 3.6

2012-09-04 Thread Florian Tobias Schandinat
Hi Linus, please pull the fixes below. Thanks, Florian Tobias Schandinat The following changes since commit fea7a08acb13524b47711625eebea40a0ede69a0: Linux 3.6-rc3 (2012-08-22 13:29:06 -0700) are available in the git repository at: git://github.com/schandinat/linux-2.6.git fbdev-fixes-

[PATCH] perf: allow user to indicate path to objdump in command line

2012-09-04 Thread Maciek Borzecki
When analyzing perf data from hosts of other architecture than one of the local host it's useful to call objdump that is part of a toolchain for that architecture. Instead of calling regular objdump, call one that user specified in command line. Signed-off-by: Maciek Borzecki --- tools/perf/Docu

Re: Why exported const value modified by another driver not updated in original driver

2012-09-04 Thread Julian Andres Klode
On Tue, Sep 04, 2012 at 03:58:20PM +0530, Manavendra Nath Manav wrote: > On Tue, Sep 4, 2012 at 3:00 PM, Manavendra Nath Manav > wrote: > > Hi, > > > > I have declared a static const int variable in one driver and exported > > that variable symbol. In another driver i am modifying that variable.

Re: Why exported const value modified by another driver not updated in original driver

2012-09-04 Thread Alan Cox
On Tue, 4 Sep 2012 15:00:16 +0530 Manavendra Nath Manav wrote: > Hi, > > I have declared a static const int variable in one driver and exported > that variable symbol. In another driver i am modifying that variable. > The other driver prints the modified value but the original driver > retains t

Re: [RFC] VFS: File System Mount Wide O_DIRECT Support

2012-09-04 Thread Christoph Hellwig
On Tue, Sep 04, 2012 at 06:17:47PM +0800, Li Wang wrote: > For file system created on file-backed loop device, there will be two-levels > of > page cache present, which typically doubles the memory consumption. And the right fix is to not use buffer I/O on the backing file instead of hacks like

Re: Why exported const value modified by another driver not updated in original driver

2012-09-04 Thread Manavendra Nath Manav
On Tue, Sep 4, 2012 at 4:09 PM, Julian Andres Klode wrote: > On Tue, Sep 04, 2012 at 03:58:20PM +0530, Manavendra Nath Manav wrote: >> On Tue, Sep 4, 2012 at 3:00 PM, Manavendra Nath Manav >> wrote: >> > Hi, >> > >> > I have declared a static const int variable in one driver and exported >> > tha

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 12:25:03PM +0200, Paolo Bonzini wrote: > Il 04/09/2012 10:46, Michael S. Tsirkin ha scritto: > +static int virtscsi_queuecommand_multi(struct Scsi_Host *sh, > + struct scsi_cmnd *sc) > +{ > +struct virtio_scsi

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Paolo Bonzini
Il 04/09/2012 13:09, Michael S. Tsirkin ha scritto: >> > queuecommand on CPU #0 queuecommand #2 on CPU #1 >> > -- >> > atomic_inc_return(...) == 1 >> >atomic_inc_return(...) == 2 >> >

Re: [RFC 1/2] virtio_console: Add support for DMA memory allocation

2012-09-04 Thread Sjur Brændeland
Hi Michael, >> If an architecture do not support DMA you will get >> a link error: "unknown symbol" for dma_alloc_coherent. > > Yes, it even seems intentional. > But I have a question: can the device work without DMA? The main dependency is actually on the dma-allocation. In my case I do dma_decl

[RFC] [PATCH] HID: remove Paul Walmsley's copyright from places where it shouldn't be

2012-09-04 Thread Jiri Kosina
Paul Walmsley has implemented dynamic quirk handling back in 2007 through commits: 2eb5dc30eb ("USB HID: encapsulate quirk handling into hid-quirks.c") 8222fbe67c ("USB HID: clarify static quirk handling as squirks") 8cef908235 ("USB HID: add support for dynamically-created quirks") 876b9276b9 ("

Re: [PATCH v5 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-04 Thread Shawn Guo
On Tue, Sep 04, 2012 at 11:20:10AM +0800, Dong Aisheng wrote: > + > + anatop_np = of_get_parent(np); > + if (!anatop_np) > + return -ENODEV; > + sreg->anatop = syscon_node_to_regmap(anatop_np); > + if (IS_ERR(sreg->anatop)) > + return PTR_ERR(sreg->anatop); >

Re: [PATCH] gpio-ich: Share ownership of GPIO groups

2012-09-04 Thread Jean Delvare
Hi Sam, On Wed, 1 Aug 2012 12:16:46 +0200, Samuel Ortiz wrote: > Hi Jean, > > On Wed, Aug 01, 2012 at 11:13:59AM +0200, Jean Delvare wrote: > > On Mon, 23 Jul 2012 17:34:15 +0200, Jean Delvare wrote: > > > The ICH chips have their GPIO pins organized in 2 or 3 independent > > > groups of 32 GPIO

[PATCH] sata_fsl: add workaround for data length mismatch on freescale V2 controller

2012-09-04 Thread Shaohui Xie
The freescale V2 SATA controller checks if the received data length matches the programmed length 'ttl', if not, it assumes that this is an error. In ATAPI, the 'ttl' is based on max allocation length and not the actual data transfer length, controller will raise 'DLM' (Data length Mismatch) error

Re: [PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Andi Shyti
Hi Dong, On Tue, Sep 04, 2012 at 11:20:08AM +0800, Dong Aisheng wrote: > +static int __devinit syscon_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; Do we really need this variable? Anyway you are using it only once in the dev_info. > + struct device_node *

Re: [PATCH 1/4] i2c: introduce i2c-cbus driver

2012-09-04 Thread Felipe Balbi
Hi, On Tue, Sep 04, 2012 at 12:31:42PM +0300, Aaro Koskinen wrote: > On Tue, Sep 04, 2012 at 12:05:07PM +0300, Felipe Balbi wrote: > > > + * CBUS I2C driver for Nokia Internet Tablets. > > [...] > > > this version misses the entire IRQ handling we already had on linux-omap > > tree, so it's quit

Re: input0: bad kobj_uevent_env content in show_uevent()

2012-09-04 Thread Jean Delvare
On Sun, 2 Sep 2012 16:34:02 +0800, Fengguang Wu wrote: > It's more than the input device that can trigger the panic. > Here is another trace which panics on accessing dmi/id/uevent: > > [ 32.380795] sysfs_read_file: /sys/devices/virtual/dmi/id/uevent > [ 32.399379] dmi id: uevent 73 env[167772

Re: [PATCH v5 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-04 Thread Dong Aisheng
On Tue, Sep 04, 2012 at 07:34:32PM +0800, Shawn Guo wrote: > On Tue, Sep 04, 2012 at 11:20:10AM +0800, Dong Aisheng wrote: > > + > > + anatop_np = of_get_parent(np); > > + if (!anatop_np) > > + return -ENODEV; > > + sreg->anatop = syscon_node_to_regmap(anatop_np); > > + if (IS_ERR

  1   2   3   4   5   6   7   >