Re: [PATCH 5/5] ixgbe: add driver set_max_vfs support

2012-10-03 Thread Yinghai Lu
On Wed, Oct 3, 2012 at 11:47 AM, Alexander Duyck wrote: > The ixgbe_set_max_vfs function has several issues. The two big ones are > that this function assumes it can just enable/disable SR-IOV without any > other changes being necessary which is not the case. I would recommend > looking at

Re: Access files from kernel

2012-10-03 Thread Linus Torvalds
On Wed, Oct 3, 2012 at 12:48 PM, Kirill A. Shutemov wrote: > > AFAIK, accessing files on filesystem form kernel directly was no-go for a > long time. What's the new rule here? Oh, we've *always* accessed files from the kernel. What we don't want is random drivers doing so directly and without a

Re: [PATCH] rcu: Remove rcu_switch()

2012-10-03 Thread Paul E. McKenney
On Wed, Oct 03, 2012 at 10:05:43PM +0200, Frederic Weisbecker wrote: > On Wed, Oct 03, 2012 at 11:39:45AM -0700, Paul E. McKenney wrote: > > On Wed, Oct 03, 2012 at 08:21:52PM +0200, Frederic Weisbecker wrote: > > > It's only there to call rcu_user_hooks_switch(). Let's > > > just call

Re: Linux 3.6

2012-10-03 Thread Linus Torvalds
On Wed, Oct 3, 2012 at 1:05 PM, Kees Cook wrote: > > 3.6 introduced link restrictions: Hmm. If this causes problems for others, I suspect we need to turn it off by default. It's a nice security thing, but considering how quickly people started complaining after 3.6 was out, I suspect we'll see

Doom 3 perfect on linux.

2012-10-03 Thread Uwaysi Bin Kareem
At 100hz, shaved kernel, for lowest jitter, and maximal performance, and the following hardwirings in fair.c unsigned int sysctl_sched_min_granularity = 1158500ULL; unsigned int normalized_sysctl_sched_min_granularity = 1158500ULL; unsigned int __read_mostly sysctl_sched_shares_window = 0UL;

[PATCH] i2c: correct struct i2c_driver doc about detection

2012-10-03 Thread Vivien Didelot
s/address_data/address_list/ in addition to c3813d6. Signed-off-by: Vivien Didelot --- include/linux/i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 8e25a91..8d87329 100644 --- a/include/linux/i2c.h +++

Re: [PATCH 1/20] drivers/net/ethernet/dec/tulip/dmfe.c: fix error return code

2012-10-03 Thread Grant Grundler
On Wed, Oct 3, 2012 at 9:17 AM, Peter Senna Tschudin wrote: > From: Peter Senna Tschudin > > Convert a nonnegative error return code to a negative one, as returned > elsewhere in the function. > > A simplified version of the semantic match that finds this problem is as > follows:

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Paul E. McKenney
On Wed, Oct 03, 2012 at 11:43:32AM -0700, Kees Cook wrote: > On Wed, Oct 3, 2012 at 9:47 AM, Paul E. McKenney > wrote: > > On Wed, Oct 03, 2012 at 09:17:02AM -0700, Greg Kroah-Hartman wrote: > >> On Wed, Oct 03, 2012 at 06:25:38AM -0700, Paul E. McKenney wrote: > >> > On Tue, Oct 02, 2012 at

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Paul E. McKenney
On Wed, Oct 03, 2012 at 03:36:53PM -0400, Dave Jones wrote: > On Wed, Oct 03, 2012 at 07:46:18PM +0200, Frederic Weisbecker wrote: > > > it in the kernel tree, unless we wanted people to use the option? > > > > A solution could be to add that option under CONFIG_DEBUG_KERNEL and > specify >

Re: [patch] mm, thp: fix mlock statistics

2012-10-03 Thread Andrew Morton
On Thu, 27 Sep 2012 18:32:33 -0700 (PDT) Hugh Dickins wrote: > So despite my earlier reluctance, please take this as an Ack on that > one too (I was testing them together): it'll be odd if one of them goes > to stable and the other not, but we can sort that out with GregKH later. Yes, all this

Re: [PATCH] rcu: Remove rcu_switch()

2012-10-03 Thread Frederic Weisbecker
On Wed, Oct 03, 2012 at 11:39:45AM -0700, Paul E. McKenney wrote: > On Wed, Oct 03, 2012 at 08:21:52PM +0200, Frederic Weisbecker wrote: > > It's only there to call rcu_user_hooks_switch(). Let's > > just call rcu_user_hooks_switch() directly, we don't need this > > function in the middle. > >

Re: Linux 3.6

2012-10-03 Thread Kees Cook
Hi Nick, 3.6 introduced link restrictions: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=800179c9b8a1e796e441674776d11cd4c05d61d7 It sounds like you've got symlinks in a world-writable directory, and you're following those symlinks across mis-matched uids. You can

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Dave Jones
On Wed, Oct 03, 2012 at 07:46:18PM +0200, Frederic Weisbecker wrote: > > it in the kernel tree, unless we wanted people to use the option? > > A solution could be to add that option under CONFIG_DEBUG_KERNEL and specify > that it must only be enabled by developers for specific reasons

Re: [RFC, PATCH] Extensible AIO interface

2012-10-03 Thread Jeff Moyer
Kent Overstreet writes: > On Tue, Oct 02, 2012 at 01:41:17PM -0400, Jeff Moyer wrote: >> Kent Overstreet writes: >> >> > So, I and other people keep running into things where we really need to >> > add an interface to pass some auxiliary... stuff along with a pread() or >> > pwrite(). >> > >>

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-03 Thread Greg KH
On Wed, Oct 03, 2012 at 10:32:08AM -0700, Linus Torvalds wrote: > On Wed, Oct 3, 2012 at 10:09 AM, Al Viro wrote: > > > > + if (!S_ISREG(inode->i_mode)) > > + return false; > > + size = i_size_read(inode); > > > > Probably better to do vfs_getattr() and check mode and

Re: [PATCH v2] Convert properly UTF-8 to UTF-16

2012-10-03 Thread Steve French
Merged - but doesn't the reverse also have to be added in cifs_from_utf16? ie utf16s_to_utf8s(uni, ... ); I am glad that someone added these multiword handling routines into the kernel for FAT - this has been something we have wanted for a long time in cifs (and smb2/smb3). Note the

Access files from kernel

2012-10-03 Thread Kirill A. Shutemov
On Wed, Oct 03, 2012 at 09:38:52AM -0700, Linus Torvalds wrote: >+static bool fw_get_filesystem_firmware(struct firmware *fw, const char *name) >+{ >+ int i; >+ bool success = false; >+ const char *fw_path[] = { "/lib/firmware/update", "/firmware", >"/lib/firmware" }; >+ char

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-03 Thread Mauro Carvalho Chehab
Em 03-10-2012 13:57, Greg KH escreveu: > On Wed, Oct 03, 2012 at 04:36:53PM +0200, Kay Sievers wrote: >> On Wed, Oct 3, 2012 at 12:12 AM, Greg KH wrote: >> >>> Mauro, what version of udev are you using that is still showing this >>> issue? >>> >>> Kay, didn't you resolve this already? If not,

Re: Linux 3.6

2012-10-03 Thread Nick Bowler
On 2012-09-30 17:38 -0700, Linus Torvalds wrote: > So here it is, 3.6 final. Sure, I'd have been happier with even fewer > changes, but that just never happens. And holding off the release > until people get too bored to send me the small stuff just makes the > next merge window more painful.

Re: Updated: [PATCH] hardening: add PROT_FINAL prot flag to mmap/mprotect

2012-10-03 Thread Hugh Dickins
On Wed, 3 Oct 2012, Ard Biesheuvel wrote: > This patch adds support for the PROT_FINAL flag to > the mmap() and mprotect() syscalls. > > The PROT_FINAL flag indicates that the requested set > of protection bits should be final, i.e., it shall > not be allowed for a subsequent mprotect call to >

Re: [PATCH 2/5] PCI, sys: Use is_visable() with boot_vga attribute for pci_dev

2012-10-03 Thread Greg Kroah-Hartman
On Wed, Oct 03, 2012 at 10:51:32AM -0700, Yinghai Lu wrote: > That could let pci_create_sysfs_dev_files more simple. > > also fix possible fix memleak during removing path. > > Signed-off-by: Yinghai Lu This, combined with the 1/5 patch, looks great, thanks for doing this. Acked-by: Greg

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-03 Thread Al Viro
On Wed, Oct 03, 2012 at 10:32:08AM -0700, Linus Torvalds wrote: > On Wed, Oct 3, 2012 at 10:09 AM, Al Viro wrote: > > > > + if (!S_ISREG(inode->i_mode)) > > + return false; > > + size = i_size_read(inode); > > > > Probably better to do vfs_getattr() and check mode and

[PATCH 3/5] rapidio: run discovery as an asynchronous process

2012-10-03 Thread Alexandre Bounine
Modify mport initialization routine to run the RapidIO discovery process asynchronously. This allows to have an arbitrary order of enumerating and discovering ports in systems with multiple RapidIO controllers without creating a deadlock situation if enumerator port is registered after a

[PATCH 4/5] rapidio/rionet: rework to support multiple RIO master ports

2012-10-03 Thread Alexandre Bounine
Make RIONET driver multi-net safe/capable by introducing per-net lists of RapidIO network peers. Rework registration of network adapters to support all available RIO master port devices. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: David S. Miller --- drivers/net/rionet.c

[PATCH 1/5] rapidio: fix blocking wait for discovery ready

2012-10-03 Thread Alexandre Bounine
Fix blocking wait loop in the RapidIO discovery routine to avoid warning dumps about stalled CPU on x86 platforms. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio/rio-scan.c | 62 ++- 1 files changed, 20 insertions(+),

[PATCH 0/5] rapidio: patches to support multiple master ports

2012-10-03 Thread Alexandre Bounine
The following set of patches provides modifications targeting support of multiple RapidIO master port (mport) devices on a CPU-side of RapidIO-capable board. While the RapidIO subsystem code has definitions suitable for multi-controller/multi-net support, the existing implementation cannot be

[PATCH 2/5] rapidio: use device lists handling on per-net basis

2012-10-03 Thread Alexandre Bounine
Modify handling of device lists to resolve issues caused by using single global list of RIO devices during enumeration/discovery. The most common sign of existing issue is incorrect contents of switch routing tables in systems with multiple mport controllers while single-port configuration

[PATCH 5/5] rapidio: add destination ID allocation mechanism

2012-10-03 Thread Alexandre Bounine
Replace the single global destination ID counter with per-net allocation mechanism to allow independent destID management for each available RapidIO network. Using bitmap based mechanism instead of counters allows destination ID release and reuse in systems that support hot-swap. Signed-off-by:

Re: [PATCH] ARM: mv78xx0: correct addr_map_cfg __initdata annotation

2012-10-03 Thread Andrew Lunn
On Wed, Oct 03, 2012 at 07:06:34PM +, Arnd Bergmann wrote: > The annotation on the addr_map_cfg variable is in the wrong place. > > Without this patch, building mv78xx0_defconfig results in: > > /home/arnd/linux-arm/arch/arm/mach-mv78xx0/addr-map.c:59:2: warning: > initialization from

Re: [PATCH 4/4] mtd: nand: omap2: Add data correction support

2012-10-03 Thread Ivan Djelic
On Wed, Oct 03, 2012 at 03:29:49PM +0100, Philip, Avinash wrote: > ELM module can be used for error correction of BCH 4 & 8 bit. Also > support read & write page in one shot by adding custom read_page & > write_page methods. This helps in optimizing code. > > New structure member "is_elm_used" is

RE: [PATCH 5/5] ixgbe: add driver set_max_vfs support

2012-10-03 Thread Rose, Gregory V
> -Original Message- > From: Don Dutile [mailto:ddut...@redhat.com] > Sent: Wednesday, October 03, 2012 12:03 PM > To: Duyck, Alexander H > Cc: Yinghai Lu; Bjorn Helgaas; Greg Kroah-Hartman; linux- > p...@vger.kernel.org; linux-kernel@vger.kernel.org; yuval...@broadcom.com; >

[PATCH] ARM: footbridge: nw_gpio_lock is raw_spin_lock

2012-10-03 Thread Arnd Bergmann
bd31b85960a "locking, ARM: Annotate low level hw locks as raw" made nw_gpio_lock a raw spinlock, but did not change all the users in device drivers. This fixes the remaining ones. sound/oss/waveartist.c: In function 'vnc_mute_spkr': sound/oss/waveartist.c:1485:2: warning: passing argument 1 of

Re: [PATCH RFC 1/2] gpio: Add a block GPIO API to gpiolib

2012-10-03 Thread Mark Brown
On Thu, Sep 27, 2012 at 11:22:02PM +0200, Roland Stigge wrote: > The recurring task of providing simultaneous access to GPIO lines (especially > for bit banging protocols) needs an appropriate API. > This patch adds a kernel internal "Block GPIO" API that enables simultaneous > access to several

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread david
On Wed, 3 Oct 2012, Kees Cook wrote: OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk? In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :) OK, so the only

[PATCH] ARM: mv78xx0: correct addr_map_cfg __initdata annotation

2012-10-03 Thread Arnd Bergmann
The annotation on the addr_map_cfg variable is in the wrong place. Without this patch, building mv78xx0_defconfig results in: /home/arnd/linux-arm/arch/arm/mach-mv78xx0/addr-map.c:59:2: warning: initialization from incompatible pointer type [enabled by default]

[PATCH] ARM: footbridge: remove RTC_IRQ definition

2012-10-03 Thread Arnd Bergmann
Since commit bd8abc9a32c "ARM: mc146818rtc: remove unnecessary include of mach/irqs.h", building footbridge_defconfig results in this warning: In file included from include/linux/mc146818rtc.h:16:0, from arch/arm/mach-footbridge/isa-rtc.c:21:

Re: [PATCH 5/5] ixgbe: add driver set_max_vfs support

2012-10-03 Thread Don Dutile
On 10/03/2012 02:47 PM, Alexander Duyck wrote: On 10/03/2012 10:51 AM, Yinghai Lu wrote: Need ixgbe guys to close the loop to use set_max_vfs instead kernel parameters. Signed-off-by: Yinghai Lu Cc: Jeff Kirsher Cc: Jesse Brandeburg Cc: Greg Rose Cc: "David S. Miller" Cc: John Fastabend Cc:

Re: [PATCH 3/5] PCI: add set_max_vfs in pci_driver ops

2012-10-03 Thread Don Dutile
On 10/03/2012 01:51 PM, Yinghai Lu wrote: Will use it enable sriov for pci devices. Signed-off-by: Yinghai Lu --- include/linux/pci.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index be1de01..7d70a5e 100644 ---

Re: [PATCH 3/4] ARM: OMAP2: gpmc: Add support for BCH ECC scheme

2012-10-03 Thread Ivan Djelic
On Wed, Oct 03, 2012 at 03:29:48PM +0100, Philip, Avinash wrote: > Add support for BCH ECC scheme to gpmc driver and also enabling multi > sector read/write. This helps in doing single shot NAND page read and > write. > > ECC engine configurations > BCH 4 bit support > 1. write => ECC engine

Re: [PATCH v4] mm, slab: release slab_mutex earlier in kmem_cache_destroy()

2012-10-03 Thread David Rientjes
On Wed, 3 Oct 2012, Jiri Kosina wrote: > Commit 1331e7a1bbe1 ("rcu: Remove _rcu_barrier() dependency on > __stop_machine()") introduced slab_mutex -> cpu_hotplug.lock > dependency through kmem_cache_destroy() -> rcu_barrier() -> > _rcu_barrier() -> get_online_cpus(). > > Lockdep thinks that this

Re: [PATCH 19/20] drivers/net/ethernet/marvell/skge.c: fix error return code

2012-10-03 Thread David Miller
From: Stephen Hemminger Date: Wed, 3 Oct 2012 09:25:08 -0700 > On Wed, 3 Oct 2012 18:18:10 +0200 > Peter Senna Tschudin wrote: > >> From: Peter Senna Tschudin >> >> Convert a nonnegative error return code to a negative one, as returned >> elsewhere in the function. >> >> A simplified

Re: [PATCH] rcu: Remove rcu_switch()

2012-10-03 Thread Paul E. McKenney
On Wed, Oct 03, 2012 at 08:21:52PM +0200, Frederic Weisbecker wrote: > It's only there to call rcu_user_hooks_switch(). Let's > just call rcu_user_hooks_switch() directly, we don't need this > function in the middle. Hello, Frederic! Doesn't this also require an empty definition of

Re: [PATCH 5/5] ixgbe: add driver set_max_vfs support

2012-10-03 Thread Alexander Duyck
On 10/03/2012 10:51 AM, Yinghai Lu wrote: > Need ixgbe guys to close the loop to use set_max_vfs instead > kernel parameters. > > Signed-off-by: Yinghai Lu > Cc: Jeff Kirsher > Cc: Jesse Brandeburg > Cc: Greg Rose > Cc: "David S. Miller" > Cc: John Fastabend > Cc:

Re: [PATCH 5/5] ixgbe: add driver set_max_vfs support

2012-10-03 Thread Dan Carpenter
On Wed, Oct 03, 2012 at 10:51:35AM -0700, Yinghai Lu wrote: > Need ixgbe guys to close the loop to use set_max_vfs instead > kernel parameters. > > Signed-off-by: Yinghai Lu > Cc: Jeff Kirsher > Cc: Jesse Brandeburg > Cc: Greg Rose > Cc: "David S. Miller" > Cc: John Fastabend > Cc:

Re: [PATCH] [ARM] Use AT() in the linker script to create correct program headers

2012-10-03 Thread Jason Gunthorpe
On Wed, Oct 03, 2012 at 11:43:35AM +0100, Dave Martin wrote: > I'm not sure exactly what you mean by linking the DTB into vmlinux. > I don't think this is supported upstream, at least for ARM. It could > be done externally by post-processing vmlinux to add extra sections > and some boot shim

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Kees Cook
On Wed, Oct 3, 2012 at 9:47 AM, Paul E. McKenney wrote: > On Wed, Oct 03, 2012 at 09:17:02AM -0700, Greg Kroah-Hartman wrote: >> On Wed, Oct 03, 2012 at 06:25:38AM -0700, Paul E. McKenney wrote: >> > On Tue, Oct 02, 2012 at 12:50:42PM -0700, Kees Cook wrote: >> > > This config item has not

Re: [PATCH] mm: use %pK for /proc/vmallocinfo

2012-10-03 Thread Kees Cook
On Wed, Oct 3, 2012 at 11:02 AM, David Rientjes wrote: > On Wed, 3 Oct 2012, Kees Cook wrote: > >> > So root does echo 0 > /proc/sys/kernel/kptr_restrict first. Again: what >> > are you trying to protect? >> >> Only CAP_SYS_ADMIN can change the setting. This is, for example, for >> containers,

Re: [PATCH 1/7] string: introduce helper to get base file name from given path

2012-10-03 Thread Nick Bowler
On 2012-10-02 11:12 -0700, Greg KH wrote: > On Tue, Oct 02, 2012 at 08:52:05PM +0300, Andy Shevchenko wrote: > > On Tue, Oct 2, 2012 at 8:34 PM, Greg KH wrote: > > > On Tue, Oct 02, 2012 at 06:00:54PM +0300, Andy Shevchenko wrote: [...] > > >> +/** > > >> + * kbasename - return the last part of a

Re: [PATCH 04/13] x86, mm: Revert back good_end setting for 64bit

2012-10-03 Thread H. Peter Anvin
On 10/03/2012 09:51 AM, Jacob Shin wrote: Any comments, thoughts? hpa? Yinghai? So it seems that during init_memory_mapping Xen needs to modify page table bits and the memory where the page tables live needs to be direct mapped at that time. Since we now call init_memory_mapping for every

Re: [PATCH 09/25] MIPS: Octeon: use ehci-platform driver

2012-10-03 Thread Florian Fainelli
On Wednesday 03 October 2012 09:45:48 David Daney wrote: > On 10/03/2012 08:03 AM, Florian Fainelli wrote: > > Signed-off-by: Florian Fainelli > > --- > > arch/mips/cavium-octeon/octeon-platform.c | 43 - > > 1 file changed, 42 insertions(+), 1 deletion(-) > >

Re: [PATCH] [PATCH v3] mfd: da9052-core: Use regmap_irq_get_virq() and fix the probe

2012-10-03 Thread Mark Brown
On Wed, Oct 03, 2012 at 07:03:13PM +0530, Ashish Jangam wrote: > Fix for da9052-core driver probe fail on a mx53qsb dt-kernel > da9052 1-0048: DA9052 ADC IRQ failed ret=-22 > > Signed-off-by: Ashish Jangam Reviwed-by: Mark Brown -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 6/10] bug.h: Replace __linktime_error with __compiletime_error

2012-10-03 Thread David Rientjes
On Wed, 3 Oct 2012, Daniel Santos wrote: > Thanks. I've actually just reversed the patch order per Josh's > suggestion and added patch comments to it. I can squash them if you > guys prefer. > No need to be so fine-grained in your patches, if you're trying to replace __linktime_error with

Re: [PATCH 3/4] Clean up the long arch list for the DEBUG_BUGVERBOSE config option

2012-10-03 Thread Geert Uytterhoeven
On Wed, Oct 3, 2012 at 6:44 PM, Catalin Marinas wrote: > arch/m68k/Kconfig |1 + Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical

Re: [PATCH 1/4] Clean up the long arch list for the UID16 config option

2012-10-03 Thread Geert Uytterhoeven
On Wed, Oct 3, 2012 at 6:44 PM, Catalin Marinas wrote: > arch/m68k/Kconfig |1 + Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Josh Boyer
On Wed, Oct 3, 2012 at 1:46 PM, Frederic Weisbecker wrote: > On Wed, Oct 03, 2012 at 10:21:42AM -0700, Greg Kroah-Hartman wrote: >> On Wed, Oct 03, 2012 at 09:47:12AM -0700, Paul E. McKenney wrote: >> > On Wed, Oct 03, 2012 at 09:17:02AM -0700, Greg Kroah-Hartman wrote: >> > > On Wed, Oct 03,

[PATCH] rcu: Remove rcu_switch()

2012-10-03 Thread Frederic Weisbecker
It's only there to call rcu_user_hooks_switch(). Let's just call rcu_user_hooks_switch() directly, we don't need this function in the middle. Signed-off-by: Frederic Weisbecker Cc: Josh Triplett Cc: Peter Zijlstra --- include/linux/rcupdate.h |2 ++ include/linux/sched.h|8

Re: [PATCH] slub: init_kmem_cache_cpus() and put_cpu_partial() can be static

2012-10-03 Thread David Rientjes
On Wed, 3 Oct 2012, Christoph Lameter wrote: > > > Acked-by: Glauber Costa > > > Signed-off-by: Fengguang Wu > > > > Acked-by: David Rientjes > > > > I think init_kmem_cache_cpus() would also benefit from just being inlined > > into alloc_kmem_cache_cpus(). > > The compiler will do that if it

Re: [PATCH] dma: tegra: fix interrupt name issue with apb dma.

2012-10-03 Thread Greg KH
On Wed, Oct 03, 2012 at 10:48:07PM +0530, Laxman Dewangan wrote: > When watching the interrupts through /proc/interrupts, > the name of the interrupts are blank or garbage. The > reason is the pointer passed for devname during irq > registration is stack and so it get changed after > dma

[PATCH v2] staging: csr: Replace wakelocks with wakeup interface

2012-10-03 Thread Priit Laes
Wakelocks are an Android-specific API that never made into mainline. Eventually power management wakeup interface appeared, therefore use this interface instead. Signed-off-by: Priit Laes --- drivers/staging/csr/drv.c| 8 drivers/staging/csr/sdio_mmc.c | 23

Re: [PATCH] RFC: Fix AMD Northbridge-ID contiguity assumptions

2012-10-03 Thread Borislav Petkov
On Wed, Oct 03, 2012 at 08:50:51AM -0700, H. Peter Anvin wrote: > On 10/03/2012 08:30 AM, Daniel Blueman wrote: > > > > > > Is that "on NumaScale systems"? If so, please say so rather than trying > > > to make it sound generic; if it is not, can you give some other examples? > > > >It is for

Re: [PATCH v2] mfd: da9052-core: Use regmap_irq_get_virq() and fix the probe

2012-10-03 Thread Mark Brown
On Wed, Oct 03, 2012 at 01:04:33PM -0300, Fabio Estevam wrote: > On Mon, Oct 1, 2012 at 7:22 AM, Mark Brown > > I don't understand what this irq_chip or the custom domain you're adding > > are for? > I declared da9052_irq_chip because I do the following: > irq_set_chip_and_handler(virq,

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-03 Thread Linus Torvalds
On Wed, Oct 3, 2012 at 10:24 AM, Kay Sievers wrote: > > Nothing really "breaks", It's "slow" and it will surely be fixed when > we know what's the right fix, which we haven't sorted out at this > moment. A thirty-second pause at bootup is easily long enough that some people might think the

Re: iwl3945: order 5 allocation during ifconfig up; vm problem?

2012-10-03 Thread David Rientjes
On Wed, 3 Oct 2012, Stanislaw Gruszka wrote: > So, can this problem be solved like on below patch, or I should rather > split firmware loading into chunks similar like was already iwlwifi did? > > diff --git a/drivers/net/wireless/iwlegacy/common.h > b/drivers/net/wireless/iwlegacy/common.h >

Re: [PATCHv2 00/14] perf diff: Factor diff command

2012-10-03 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 03, 2012 at 06:53:42PM +0200, Andi Kleen escreveu: > The problem is with the perf-archive script. After some hacking I got it > running > now. I suspect the perf tool needs to pass its own executable name to > the script to run. > > Also would be nice if another file than perf.data

Re: Netperf UDP_STREAM regression due to not sending IPIs in ttwu_queue()

2012-10-03 Thread Rick Jones
On 10/03/2012 02:47 AM, Mel Gorman wrote: On Tue, Oct 02, 2012 at 03:48:57PM -0700, Rick Jones wrote: On 10/02/2012 01:45 AM, Mel Gorman wrote: SIZE=64 taskset -c 0 netserver taskset -c 1 netperf -t UDP_STREAM -i 50,6 -I 99,1 -l 20 -H 127.0.0.1 -- -P 15895 -s 32768 -S 32768 -m $SIZE -M $SIZE

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Serge Hallyn
Quoting Paul E. McKenney (paul...@linux.vnet.ibm.com): > On Wed, Oct 03, 2012 at 10:21:42AM -0700, Greg Kroah-Hartman wrote: > > On Wed, Oct 03, 2012 at 09:47:12AM -0700, Paul E. McKenney wrote: > > > On Wed, Oct 03, 2012 at 09:17:02AM -0700, Greg Kroah-Hartman wrote: > > > > On Wed, Oct 03, 2012

Re: [PATCH] mm: use %pK for /proc/vmallocinfo

2012-10-03 Thread David Rientjes
On Wed, 3 Oct 2012, Kees Cook wrote: > > So root does echo 0 > /proc/sys/kernel/kptr_restrict first. Again: what > > are you trying to protect? > > Only CAP_SYS_ADMIN can change the setting. This is, for example, for > containers, or other situations where a uid 0 process lacking >

Re: [PATCH] Input: Add new driver into Input Subsystem for Synaptics DS4 touchscreen I2C devices

2012-10-03 Thread Henrik Rydberg
Hi Alexandra, > Hi Henrik/Dmitry, > > We are working on a product specific driver for Synaptics DS4 I2C touchscreen > devices. It was submitted on Sept. 16, 2012, but has not been reviewed. > (http://lkml.org/lkml/2012/9/16/24). > We found several warnings after running script/checkpatch.pl,

Re: [PATCH 5/5] ixgbe: add driver set_max_vfs support

2012-10-03 Thread Yinghai Lu
On Wed, Oct 3, 2012 at 10:51 AM, Yinghai Lu wrote: > Need ixgbe guys to close the loop to use set_max_vfs instead > kernel parameters. Sorry, I should put RFC in the subject line for this one. Thanks Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH] dma: tegra: fix interrupt name issue with apb dma.

2012-10-03 Thread Laxman Dewangan
When watching the interrupts through /proc/interrupts, the name of the interrupts are blank or garbage. The reason is the pointer passed for devname during irq registration is stack and so it get changed after dma registration completes. Allocate the pointer as part of dma channel and pass this

[PATCH 3/5] PCI: add set_max_vfs in pci_driver ops

2012-10-03 Thread Yinghai Lu
Will use it enable sriov for pci devices. Signed-off-by: Yinghai Lu --- include/linux/pci.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index be1de01..7d70a5e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@

[PATCH 5/5] ixgbe: add driver set_max_vfs support

2012-10-03 Thread Yinghai Lu
Need ixgbe guys to close the loop to use set_max_vfs instead kernel parameters. Signed-off-by: Yinghai Lu Cc: Jeff Kirsher Cc: Jesse Brandeburg Cc: Greg Rose Cc: "David S. Miller" Cc: John Fastabend Cc: e1000-de...@lists.sourceforge.net Cc: net...@vger.kernel.org ---

[PATCH 2/5] PCI, sys: Use is_visable() with boot_vga attribute for pci_dev

2012-10-03 Thread Yinghai Lu
That could let pci_create_sysfs_dev_files more simple. also fix possible fix memleak during removing path. Signed-off-by: Yinghai Lu --- drivers/pci/pci-sysfs.c | 21 ++--- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/pci/pci-sysfs.c

[PATCH 4/5] PCI: Add max_vfs in sysfs per pci device where supports

2012-10-03 Thread Yinghai Lu
only pci device that support sriov will have max_vfs show up in /sys when user set value in /sys, driver ops set_max_vfs will be called to enable VF there. Signed-off-by: Yinghai Lu --- drivers/pci/pci-sysfs.c | 51 +++ include/linux/pci.h |

[PATCH 1/5] PCI: Add pci_dev_type

2012-10-03 Thread Yinghai Lu
need to use it for visiable attribute control in syfsfs for pci_dev. Signed-off-by: Yinghai Lu --- drivers/pci/pci-sysfs.c | 24 drivers/pci/pci.h |1 + drivers/pci/probe.c |1 + 3 files changed, 26 insertions(+), 0 deletions(-) diff --git

[PATCH 0/5] PCI: per pci device sysfs set_max_vfs support

2012-10-03 Thread Yinghai Lu
First two patches are old patches in my queue. They introduce pci_dev_type and use it with vga in sysfs. other two will add set_max_vfs in sysfs for device that support siov. last one is draft version for ixgbe, still need ixgbe guys to sort it out. Thanks Yinghai Yinghai Lu (5): PCI: Add

[patch] MODSIGN: Fix build error with strict typechecking

2012-10-03 Thread David Rientjes
"MODSIGN: Provide module signing public keys to the kernel" causes a build error when CONFIG_UIDGID_STRICT_TYPE_CHECKS is enabled: kernel/modsign_pubkey.c: In function 'module_verify_init': kernel/modsign_pubkey.c:47: error: incompatible type for argument 3 of 'key_alloc'

[PATCH] dma: tegra: fix interrupt name issue with apb dma.

2012-10-03 Thread Laxman Dewangan
When watching the interrupts through /proc/interrupts, the name of the interrupts are blank or garbage. The reason is the pointer passed for devname during irq registration is stack and so it get changed after dma registration completes. Allocate the pointer as part of dma channel and pass this

[git pull] FireWire updates post v3.6

2012-10-03 Thread Stefan Richter
Linus, please pull from the tag "firewire-updates" at git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git firewire-updates to receive the following IEEE 1394 (FireWire) subsystem changes: - Feed GUIDs of FireWire nodes to the random pool, - more complete quirk handling

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Paul E. McKenney
On Wed, Oct 03, 2012 at 10:21:42AM -0700, Greg Kroah-Hartman wrote: > On Wed, Oct 03, 2012 at 09:47:12AM -0700, Paul E. McKenney wrote: > > On Wed, Oct 03, 2012 at 09:17:02AM -0700, Greg Kroah-Hartman wrote: > > > On Wed, Oct 03, 2012 at 06:25:38AM -0700, Paul E. McKenney wrote: > > > > On Tue,

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Frederic Weisbecker
On Wed, Oct 03, 2012 at 10:21:42AM -0700, Greg Kroah-Hartman wrote: > On Wed, Oct 03, 2012 at 09:47:12AM -0700, Paul E. McKenney wrote: > > On Wed, Oct 03, 2012 at 09:17:02AM -0700, Greg Kroah-Hartman wrote: > > > On Wed, Oct 03, 2012 at 06:25:38AM -0700, Paul E. McKenney wrote: > > > > On Tue,

Re: [ 008/180] 2.6.32.x: ntp: Fix leap-second hrtimer livelock

2012-10-03 Thread Willy Tarreau
On Wed, Oct 03, 2012 at 06:34:48PM +0100, Ben Hutchings wrote: > On Wed, Oct 03, 2012 at 10:01:13AM -0700, John Stultz wrote: > > On 10/03/2012 09:01 AM, Willy Tarreau wrote: > > >Hi Ben, > > > > > >On Wed, Oct 03, 2012 at 03:50:14PM +0100, Ben Hutchings wrote: > > >>On Tue, 2012-10-02 at 00:52

Re: [ 008/180] 2.6.32.x: ntp: Fix leap-second hrtimer livelock

2012-10-03 Thread Willy Tarreau
On Wed, Oct 03, 2012 at 10:01:13AM -0700, John Stultz wrote: > On 10/03/2012 09:01 AM, Willy Tarreau wrote: > >Hi Ben, > > > >On Wed, Oct 03, 2012 at 03:50:14PM +0100, Ben Hutchings wrote: > >>On Tue, 2012-10-02 at 00:52 +0200, Willy Tarreau wrote: > >>>2.6.32-longterm review patch. If anyone has

RE: [ 001/180] netxen: support for GbE port settings

2012-10-03 Thread Sony Chacko
> -Original Message- > From: Willy Tarreau [mailto:w...@1wt.eu] > Sent: Monday, October 01, 2012 3:52 PM > To: linux-kernel; sta...@vger.kernel.org > Cc: Sony Chacko; zz-930768; David Miller; Jonathan Nieder; Willy Tarreau > Subject: [ 001/180] netxen: support for GbE port settings > >

Re: [RFC 1/3] mfd: da9052-core: Use regmap_irq_get_virq() and fix the probe

2012-10-03 Thread Mark Brown
On Wed, Oct 03, 2012 at 02:06:57PM -0300, Fabio Estevam wrote: > + /* Allocate a virtual IRQ domain to distribute to the regmap domains */ > + da9052->virq = irq_domain_add_linear(NULL, ARRAY_SIZE(da9052_irqs), > + _domain_ops, da9052); > +

Re: [ 008/180] 2.6.32.x: ntp: Fix leap-second hrtimer livelock

2012-10-03 Thread Ben Hutchings
On Wed, Oct 03, 2012 at 10:01:13AM -0700, John Stultz wrote: > On 10/03/2012 09:01 AM, Willy Tarreau wrote: > >Hi Ben, > > > >On Wed, Oct 03, 2012 at 03:50:14PM +0100, Ben Hutchings wrote: > >>On Tue, 2012-10-02 at 00:52 +0200, Willy Tarreau wrote: > >>>2.6.32-longterm review patch. If anyone has

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-03 Thread Linus Torvalds
On Wed, Oct 3, 2012 at 10:09 AM, Al Viro wrote: > > + if (!S_ISREG(inode->i_mode)) > + return false; > + size = i_size_read(inode); > > Probably better to do vfs_getattr() and check mode and size in kstat; if > it's sufficiently hot for that to hurt, we are fucked

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-10-03 Thread Avi Kivity
On 10/03/2012 04:29 PM, Raghavendra K T wrote: > * Avi Kivity [2012-09-27 14:03:59]: > >> On 09/27/2012 01:23 PM, Raghavendra K T wrote: >> >> > [...] >> > 2) looking at the result (comparing A & C) , I do feel we have >> > significant in iterating over vcpus (when compared to even vmexit) >> >

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-03 Thread Kay Sievers
On Wed, Oct 3, 2012 at 6:57 PM, Greg KH wrote: >> It's the same in the current release, we still haven't wrapped our >> head around how to fix it/work around it. > > Ick, as this is breaking people's previously-working machines, shouldn't > this be resolved quickly? Nothing really "breaks",

Re: [PATCH] staging: csr: Replace wakelock code with wakeup sources

2012-10-03 Thread Greg Kroah-Hartman
On Wed, Oct 03, 2012 at 08:14:04PM +0300, Priit Laes wrote: > Signed-off-by: Priit Laes Why? Please be more dscriptive in the changelog entry for the patch, care to redo this and resend it? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Greg Kroah-Hartman
On Wed, Oct 03, 2012 at 09:47:12AM -0700, Paul E. McKenney wrote: > On Wed, Oct 03, 2012 at 09:17:02AM -0700, Greg Kroah-Hartman wrote: > > On Wed, Oct 03, 2012 at 06:25:38AM -0700, Paul E. McKenney wrote: > > > On Tue, Oct 02, 2012 at 12:50:42PM -0700, Kees Cook wrote: > > > > This config item

Re: [ 008/180] 2.6.32.x: ntp: Fix leap-second hrtimer livelock

2012-10-03 Thread John Stultz
On 10/03/2012 09:01 AM, Willy Tarreau wrote: Hi Ben, On Wed, Oct 03, 2012 at 03:50:14PM +0100, Ben Hutchings wrote: On Tue, 2012-10-02 at 00:52 +0200, Willy Tarreau wrote: 2.6.32-longterm review patch. If anyone has any objections, please let me know. [...] No objection, but please remove

[PATCH] staging: csr: Replace wakelock code with wakeup sources

2012-10-03 Thread Priit Laes
Signed-off-by: Priit Laes --- drivers/staging/csr/drv.c| 8 drivers/staging/csr/sdio_mmc.c | 23 +++ drivers/staging/csr/sme_sys.c| 18 +- drivers/staging/csr/unifi_priv.h | 8 4 files changed, 20 insertions(+), 37

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-03 Thread Paul E. McKenney
On Wed, Oct 03, 2012 at 09:17:02AM -0700, Greg Kroah-Hartman wrote: > On Wed, Oct 03, 2012 at 06:25:38AM -0700, Paul E. McKenney wrote: > > On Tue, Oct 02, 2012 at 12:50:42PM -0700, Kees Cook wrote: > > > This config item has not carried much meaning for a while now and is > > > almost always

[PATCH] xen/xen_initial_domain: check that xen_start_info is initialized

2012-10-03 Thread Stefano Stabellini
Since commit commit 4c071ee5268f7234c3d084b6093bebccc28cdcba ("arm: initial Xen support") PV on HVM guests can be xen_initial_domain. However PV on HVM guests might have an unitialized xen_start_info, so check before accessing its fields. Signed-off-by: Stefano Stabellini Acked-by: Ian Campbell

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-03 Thread Al Viro
On Wed, Oct 03, 2012 at 09:38:52AM -0700, Linus Torvalds wrote: > Yeah, that bugzilla shows the problem with Kay as a maintainer too, > not willing to own up to problems he caused. > > Can you actually see the problem? I did add the attached patch as an > attachment to the bugzilla, so the

Re: [Xen-devel] [PATCH] xen: point xen_start_info to a dummy struct for PV on HVM guests

2012-10-03 Thread Stefano Stabellini
On Wed, 3 Oct 2012, Ian Campbell wrote: > On Wed, 2012-10-03 at 17:13 +0100, Ian Campbell wrote: > > On Wed, 2012-10-03 at 17:05 +0100, Stefano Stabellini wrote: > > > On Wed, 3 Oct 2012, Ian Campbell wrote: > > > > On Wed, 2012-10-03 at 16:48 +0100, Stefano Stabellini wrote: > > > > > On Wed, 3

[RFC 3/3] Input: da9052_tsi.c: Use the new da9052 irq functions

2012-10-03 Thread Fabio Estevam
From: Fabio Estevam Currently da9062_tsi does not probe and it fails as follows: da9052 1-0048: Unable to determine device interrupts Use the new da9052 irq functions and allow the driver to probe successfully. Signed-off-by: Fabio Estevam --- Hi, Even though I can get the da9052_tsi driver

[RFC 2/3] mfd: da9052: Introduce da9052-irq.c

2012-10-03 Thread Fabio Estevam
Create a da9052-irq.c file so that it can handle interrupt related operations. Signed-off-by: Fabio Estevam --- drivers/mfd/Makefile |1 + drivers/mfd/da9052-core.c | 323 + drivers/mfd/da9052-irq.c | 304

[RFC 1/3] mfd: da9052-core: Use regmap_irq_get_virq() and fix the probe

2012-10-03 Thread Fabio Estevam
From: Fabio Estevam On a mx53qsb dt-kernel the da9052-core driver fails to probe as follows: da9052 1-0048: DA9052 ADC IRQ failed ret=-22 The reason for the error was due to passing only the offset as the interrupt number in request_threaded_irq(). The recommended approach though is to use

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