[PATCH 3/3] audit: clean up refcounting in audit-tree

2012-08-21 Thread Miklos Szeredi
From: Miklos Szeredi Drop the initial reference by fsnotify_init_mark early instead of audit_tree_freeing_mark() at destroy time. In the cases we destroy the mark before we drop the initial reference we need to get rid of the get_mark that balances the put_mark in audit_tree_freeing_mark(). Sig

[PATCH 1/3] audit: don't free_chunk() after fsnotify_add_mark()

2012-08-21 Thread Miklos Szeredi
From: Miklos Szeredi Don't do free_chunk() after fsnotify_add_mark(). That one does a delayed unref via the destroy list and this results in use-after-free. Signed-off-by: Miklos Szeredi Acked-by: Eric Paris CC: sta...@vger.kernel.org --- kernel/audit_tree.c |6 +++--- 1 files changed, 3

[PATCH 0/3] audit-tree fixes

2012-08-21 Thread Miklos Szeredi
Linus, The audit subsystem maintainers (Al and Eric) are not responding to repeated resends. Eric did ack them a while ago, but no response since then. So I'm sending these directly to you. Git tree is here: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git audit-fixes Thanks,

Re: [PATCH v3] SUNRPC: protect service sockets lists during per-net shutdown

2012-08-21 Thread J. Bruce Fields
On Thu, Aug 16, 2012 at 03:29:03PM -0400, J. Bruce Fields wrote: > Looking back at this: > > - adding the sv_lock looks like the right thing to do anyway > independent of containers, because svc_age_temp_xprts may > still be running. This is what I've been testing with. Or

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 02:28:20PM -0300, Rafael Aquini wrote: > On Tue, Aug 21, 2012 at 09:24:32AM -0700, Paul E. McKenney wrote: > > On Tue, Aug 21, 2012 at 05:20:11PM +0200, Peter Zijlstra wrote: > > > On Tue, 2012-08-21 at 09:47 -0300, Rafael Aquini wrote: > > > > + mapping = rcu_access_p

Re: Using random in interrupts for RT

2012-08-21 Thread Ben Hutchings
On Tue, Aug 21, 2012 at 02:12:13PM -0400, Steven Rostedt wrote: > On Tue, 2012-08-14 at 10:30 -0400, Steven Rostedt wrote: > > Thomas, > > > > Ben Hutchings asked me if we still need "genirq: Disable random call on > > preempt-rt" for -rt? With commit 902c098a366 "random: use lockless > > techniqu

Re: Q:pt_base in COMPAT mode offset by two pages. Was:Re: [Xen-devel] [PATCH 02/11] xen/x86: Use memblock_reserve for sensitive areas.

2012-08-21 Thread Konrad Rzeszutek Wilk
On Tue, Aug 21, 2012 at 01:27:32PM -0400, Konrad Rzeszutek Wilk wrote: > On Mon, Aug 20, 2012 at 10:13:05AM -0400, Konrad Rzeszutek Wilk wrote: > > On Fri, Aug 17, 2012 at 06:35:12PM +0100, Stefano Stabellini wrote: > > > On Thu, 16 Aug 2012, Konrad Rzeszutek Wilk wrote: > > > > instead of a big me

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 02:55:03PM -0300, Rafael Aquini wrote: > On Tue, Aug 21, 2012 at 04:52:23PM +0300, Michael S. Tsirkin wrote: > > > + * address_space_operations utilized methods for ballooned pages: > > > + * .migratepage- used to perform balloon's page migration (as is) > > > + * .l

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-21 Thread Christopher Covington
On 08/14/2012 01:52 PM, Catalin Marinas wrote: > From: Marc Zyngier > > This patch adds support for the ARM generic timers with A64 instructions > for accessing the timer registers. It uses the physical counter as the > clock source and the virtual counter as sched_clock. > > The timer frequency

Re: lockdep warning on rt_mutex_lock()

2012-08-21 Thread Paul E. McKenney
On Sat, Aug 18, 2012 at 12:59:08PM +0800, Fengguang Wu wrote: > On Fri, Aug 17, 2012 at 07:44:37AM -0700, Paul E. McKenney wrote: > > On Fri, Aug 17, 2012 at 10:02:40PM +0800, Fengguang Wu wrote: > > > On Fri, Aug 17, 2012 at 06:43:28AM -0700, Paul E. McKenney wrote: > > > > On Fri, Aug 17, 2012 at

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Rafael Aquini
On Tue, Aug 21, 2012 at 10:13:30PM +0300, Michael S. Tsirkin wrote: > > > > I believe rcu_dereference_protected() is what I want/need here, since this > > code > > is always called for pages which we hold locked (PG_locked bit). > > It would only help if we locked the page while updating the map

RE: [RFC][PATCH v3 2/3] efi_pstore: Introducing workqueue updating sysfs entries

2012-08-21 Thread Seiji Aguchi
> > efivars_exit(void) > > { > > if (efi_enabled) { > > + cancel_work_sync(&efivar_work); > > Please move this cancel_work_sync() to be before the efi_enabled test. > efi_enabled here means that we registered __efivars. There may be another > driver (gsmi) using the efiv

Re: [ 00/46] 3.5.3-stable review

2012-08-21 Thread Sven Joachim
I would like to see commit 2064db725cc6d4ea19a24c138bc37939b63e3ae6 (drm/nv86/fifo: suspend fix) cherry-picked to the 3.5 kernel series, it makes suspend work again on my machine. Could you please queue this up for 3.5.4? Apologies for thread hijacking, my attempts to directly send the request to

Re: [tip:timers/core] timer: Implement TIMER_IRQSAFE

2012-08-21 Thread Tejun Heo
On Tue, Aug 21, 2012 at 09:43:07AM -0700, tip-bot for Tejun Heo wrote: > Commit-ID: c5f66e99b7cb091e3d51ae8e8156892e8feb7fa3 > Gitweb: http://git.kernel.org/tip/c5f66e99b7cb091e3d51ae8e8156892e8feb7fa3 > Author: Tejun Heo > AuthorDate: Wed, 8 Aug 2012 11:10:28 -0700 > Committer: Thomas G

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 02:42:52PM -0300, Rafael Aquini wrote: > On Tue, Aug 21, 2012 at 06:41:42PM +0300, Michael S. Tsirkin wrote: > > On Tue, Aug 21, 2012 at 05:16:06PM +0200, Peter Zijlstra wrote: > > > On Tue, 2012-08-21 at 16:52 +0300, Michael S. Tsirkin wrote: > > > > > + rcu_rea

[PATCH v9 0/2] kvm: level irqfd support

2012-08-21 Thread Alex Williamson
Here's the much anticipated re-write of support for level irqfds. As Michael suggested, I've rolled the eoi/ack notification fd into KVM_IRQFD as a new mode. For lack of a better name, as there seems to be objections to associating this specifically with an EOI or an ACK, I've name this OADN or "

[PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Alex Williamson
KVM_IRQFD currently uses the reserved KVM_USERSPACE_IRQ_SOURCE_ID which is also shared with userspace injection methods like KVM_IRQ_LINE. This can cause a conflict if an irqfd triggers on a GSI asserted through KVM_IRQ_LINE. Move irqfd to it's own reserved IRQ source ID. Add a capability for us

[PATCH v9 2/2] kvm: On Ack, De-assert & Notify KVM_IRQFD extension

2012-08-21 Thread Alex Williamson
For VFIO based device assignment we'd like a mechanism to allow level triggered interrutps to be directly injected into KVM. KVM_IRQFD already allows this for edge triggered interrupts, but for level, we need to watch for acknowledgement of the interrupt from the guest to provide us a hint when to

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 04:23:58PM -0300, Rafael Aquini wrote: > On Tue, Aug 21, 2012 at 10:13:30PM +0300, Michael S. Tsirkin wrote: > > > > > > I believe rcu_dereference_protected() is what I want/need here, since > > > this code > > > is always called for pages which we hold locked (PG_locked b

Re: [PATCH 2/2] spi: Add SPI master controller for OCTEON SOCs.

2012-08-21 Thread David Daney
On 05/19/2012 10:46 PM, Grant Likely wrote: On Fri, 11 May 2012 14:34:46 -0700, David Daney wrote: From: David Daney Add the driver, link it into the kbuild system and provide device tree binding documentation. Signed-off-by: David Daney Some comments below, but you can add my a-b: Acked

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Rafael Aquini
On Tue, Aug 21, 2012 at 10:16:12PM +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 02:55:03PM -0300, Rafael Aquini wrote: > > On Tue, Aug 21, 2012 at 04:52:23PM +0300, Michael S. Tsirkin wrote: > > > > + * address_space_operations utilized methods for ballooned pages: > > > > + * .migr

Re: inux-next: Tree for Aug 21 (usb_speed_string)

2012-08-21 Thread Guenter Roeck
On Tue, Aug 21, 2012 at 11:06:39AM -0700, Randy Dunlap wrote: > On 08/20/2012 11:04 PM, Stephen Rothwell wrote: > > > Hi all, > > > > Changes since 20120820: > > > > > on x86_64: > > ERROR: "usb_speed_string" [drivers/usb/core/usbcore.ko] undefined! > > > CONFIG_USB_SUPPORT is not enabled >

Re: [PATCH 3/3] audit: clean up refcounting in audit-tree

2012-08-21 Thread Linus Torvalds
On Tue, Aug 21, 2012 at 12:03 PM, Miklos Szeredi wrote: > + /* > +* We are guaranteed to have at least one reference to the mark from > +* either the inode or the caller of fsnotify_destroy_mark(). > +*/ > + BUG_ON(atomic_read(&entry->refcnt) < 1); I pulled, bu

[PATCH RESEND] compat_ioctl: Add RS-485 IOCTLs to the list

2012-08-21 Thread Jaeden Amero
The RS-485 TIOCSRS485 and TIOCGRS485 ioctls are 32-bit compatible, so in order to call them on 64-bit systems from 32-bit user mode, we add them to the ioctl pointer list as compatible ioctls. Signed-off-by: Jaeden Amero --- fs/compat_ioctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[RFC 5/5 v2] uprobes: add global breakpoints

2012-08-21 Thread Sebastian Andrzej Siewior
By setting an uprobe tracepoint, one learns whenever a certain point within a program is reached / passed. This is recorded and the application continues. This patch adds the ability to hold the program once this point has been passed and the user may attach to the program via ptrace. First, setup

Re: [2/2] spi: Add SPI master controller for OCTEON SOCs.

2012-08-21 Thread Guenter Roeck
On Fri, May 11, 2012 at 08:34:46PM -, David Daney wrote: > From: David Daney > > Add the driver, link it into the kbuild system and provide device tree > binding documentation. > > Signed-off-by: David Daney > Acked-by: Grant Likely > [ ... ] > + > +static int __devexit octeon_spi_remove

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 01:29:06PM -0600, Alex Williamson wrote: > KVM_IRQFD currently uses the reserved KVM_USERSPACE_IRQ_SOURCE_ID > which is also shared with userspace injection methods like > KVM_IRQ_LINE. This can cause a conflict if an irqfd triggers on > a GSI asserted through KVM_IRQ_LINE.

RE: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread Yu, Fenghua
> -Original Message- > From: Borislav Petkov [mailto:b...@amd64.org] > Sent: Monday, August 20, 2012 1:20 PM > To: H. Peter Anvin > Cc: Yu, Fenghua; Henrique de Moraes Holschuh; Ingo Molnar; Thomas > Gleixner; Mallick, Asit K; Tigran Aivazian; Andreas Herrmann; Borislav > Petkov; linux-kern

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Alex Williamson
On Tue, 2012-08-21 at 22:58 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 01:29:06PM -0600, Alex Williamson wrote: > > KVM_IRQFD currently uses the reserved KVM_USERSPACE_IRQ_SOURCE_ID > > which is also shared with userspace injection methods like > > KVM_IRQ_LINE. This can cause a co

Re: [PATCH v2 17/31] arm64: System calls handling

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Catalin Marinas wrote: > > > +asmlinkage long sys_mmap(unsigned long addr, unsigned long len, > > > +unsigned long prot, unsigned long flags, > > > +unsigned long fd, off_t off) > > > +{ > > > + if (offset_in_page(off) != 0) > > >

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread H. Peter Anvin
On 08/21/2012 01:05 PM, Yu, Fenghua wrote: > > We might name the cpio directory as: > > kernel/x86/microcode/GenuineIntel.bin > kernel/x86/microcode/AuthenticAMD.bin > kernel/x86/acpi/... > etc. > > This is expendable for the future usage. > > Plus I will add a doc on the cpio directory, suppo

Re: [PATCH v2 16/31] arm64: ELF definitions

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Catalin Marinas wrote: > On Thu, Aug 16, 2012 at 01:37:53PM +0100, Arnd Bergmann wrote: > > On Thursday 16 August 2012, Will Deacon wrote: > > > > This looks wrong: PER_LINUX/PER_LINUX32 decides over the output of the > > > > uname system call, while TIF_32BIT decides ove

[tip:x86/apic] x86: dt: Use linear irq domain for ioapic(s)

2012-08-21 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: ece3234a77ebcd5bbeea6b829c9798328d290cae Gitweb: http://git.kernel.org/tip/ece3234a77ebcd5bbeea6b829c9798328d290cae Author: Sebastian Andrzej Siewior AuthorDate: Mon, 13 Aug 2012 22:23:33 +0200 Committer: Thomas Gleixner CommitDate: Tue, 21 Aug 2012 22:16:57 +0200 x86: dt: U

Re: [PATCHSET] workqueue: use irqsafe timer in delayed_work

2012-08-21 Thread Tejun Heo
On Wed, Aug 08, 2012 at 02:37:55PM -0700, Tejun Heo wrote: > This patchset makes delayed_work use the irqsafe timer added by the > pending "timer: clean up initializers and implement irqsafe timers" > patchset[1]. This enables try_to_grab_pending() to be used from any > context which in turn makes

[RFC][PATCH v4 0/3] make efivars/efi_pstore interrupt-safe

2012-08-21 Thread Seiji Aguchi
Changelog v3 -> v4 - Patch 2/3 Move cancel_work_sync() above an efi_enabled test in efivars_exit(). v2 -> v3 - Patch 1/3 Replace spin_lock_irqsave/spin_unlock_irqrestore with spin_lock_irq/spin_unlock_irq in efivars_unregister(), efivar_create(), efivar_store_raw() and efivar_dele

[RFC][PATCH v4 1/3] efivars: Disable external interrupt while holding efivars->lock

2012-08-21 Thread Seiji Aguchi
[Problem] Currently, efivars doesn't disable interrupt while taking efivars->lock. So, there is a risk to be deadlocking in a write callback of efi_pstore if kernel panics in interrupt context while taking efivars->lock. [Patch Description] This patch disables an external interruption while ho

[PATCH v2 5/5] X86/XEN: Add few lines explaining simple semantic for x86_init.paging.pagetable_init setup function

2012-08-21 Thread Attilio Rao
- Explain the purpose of the hook - Report execution constraints Signed-off-by: Attilio Rao --- arch/x86/include/asm/x86_init.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h index 995ea5c..7ea4186 10

[PATCH v2 0/5] X86/XEN: Merge x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done setup functions and document its semantic

2012-08-21 Thread Attilio Rao
Currently the definition of x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done is twisted and not really well defined (in terms of prototypes desired). More specifically: pagetable_setup_start: * cleans up the boot time page table in the x86_32 case * it is a nop for t

[RFC][PATCH v4 2/3] efi_pstore: Introducing workqueue updating sysfs entries

2012-08-21 Thread Seiji Aguchi
[Problem] efi_pstore creates sysfs entries ,which enable users to access to NVRAM, in a write callback. If a kernel panic happens in interrupt contexts, pstore may fail because it could sleep due to dynamic memory allocations during creating sysfs entries. [Patch Description] This patch r

[PATCH] PM / Freezer: Fix small typo "regrigerator"

2012-08-21 Thread Sedat Dilek
Noticed when digging into a suspend issue in linux-next (next-20120821). For more details see <http://marc.info/?t=13455470802&r=1&w=2>. Signed-off-by: Sedat Dilek --- kernel/power/process.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/pow

Re: [PATCH v9 2/2] kvm: On Ack, De-assert & Notify KVM_IRQFD extension

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 01:29:14PM -0600, Alex Williamson wrote: > For VFIO based device assignment we'd like a mechanism to allow level > triggered interrutps to be directly injected into KVM. KVM_IRQFD > already allows this for edge triggered interrupts, but for level, we > need to watch for ack

[RFC][PATCH v4 3/3] efi_pstore: Skiping scheduling a workqueue in cases other than oops

2012-08-21 Thread Seiji Aguchi
[Problem] efi_pstore creates sysfs files when logging kernel messages to NVRAM. Currently, the sysfs files are updated in a workqueue which is registered in a write callback. On the other hand, situations which users needs the sysfs files are when they erase entries or oops happen because a

[PATCH v2 3/5] X86/XEN: Allow setup function x86_init.paging.pagetable_init to setup kernel pagetables

2012-08-21 Thread Attilio Rao
Currently, x86_init.paging.pagetable_init relies on callers to setup the kernel pagetable. In order to unify the functionality of x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done allow the new setup function to perform the operation itself. Signed-off-by: Attilio Rao

[PATCH v2 4/5] X86/XEN: Move content of xen_pagetable_setup_done() into xen_pagetable_init() and retire now unused x86_init.paging.pagetable_setup_done

2012-08-21 Thread Attilio Rao
At this stage x86_init.paging.pagetable_setup_done is only used in the XEN case. Move its content in the x86_init.paging.pagetable_init setup function and remove the now unused x86_init.paging.pagetable_setup_done remaining infrastructure. Signed-off-by: Attilio Rao --- arch/x86/include/asm/pgta

Re: [2/2] spi: Add SPI master controller for OCTEON SOCs.

2012-08-21 Thread David Daney
On 08/21/2012 12:49 PM, Guenter Roeck wrote: On Fri, May 11, 2012 at 08:34:46PM -, David Daney wrote: From: David Daney Add the driver, link it into the kbuild system and provide device tree binding documentation. Signed-off-by: David Daney Acked-by: Grant Likely [ ... ] + +static i

[PATCH v2 2/5] X86/XEN: Rename pagetable_setup_start() setup functions into pagetable_init()

2012-08-21 Thread Attilio Rao
In preparation for unifying the pagetable_setup_start() and pagetable_setup_done() setup functions, rename appropriately all the infrastructure related to pagetable_setup_start(). Signed-off-by: Attilio Rao --- arch/x86/include/asm/pgtable_types.h |4 ++-- arch/x86/include/asm/x86_init.h

[PATCH v2 1/5] X86/XEN: Remove the base argument from x86_init.paging.pagetable_setup_start

2012-08-21 Thread Attilio Rao
x86_init.paging.pagetable_setup_start for native will however use swapper_pg_dir in the single place where it is used and for native the argument is simply unused. Aditionally, the comments already point to swapper_pg_dir as the sole base touched. Finally, this will help with further merging of x86

Re: [PATCH 3/5] X86/XEN: Introduce the x86_init.paging.pagetable_init PVOPS

2012-08-21 Thread Attilio Rao
On 21/08/12 16:44, Thomas Gleixner wrote: On Tue, 21 Aug 2012, Attilio Rao wrote: This new PVOPS is responsible to setup the kernel pagetables and replace entirely x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done PVOPS work. For performance the x86

Re: [PATCH] task_work: add a scheduling point in task_work_run()

2012-08-21 Thread Mimi Zohar
On Tue, 2012-08-21 at 15:05 +0200, Eric Dumazet wrote: > From: Eric Dumazet > > It seems commit 4a9d4b02 (switch fput to task_work_add) reintroduced > the problem addressed in commit 944be0b2 (close_files(): add scheduling > point) > > If a server process with a lot of files (say 2 million tcp s

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 02:06:19PM -0600, Alex Williamson wrote: > On Tue, 2012-08-21 at 22:58 +0300, Michael S. Tsirkin wrote: > > On Tue, Aug 21, 2012 at 01:29:06PM -0600, Alex Williamson wrote: > > > KVM_IRQFD currently uses the reserved KVM_USERSPACE_IRQ_SOURCE_ID > > > which is also shared wit

[PATCH -next] HID: picoLCD: Add missing #include

2012-08-21 Thread Geert Uytterhoeven
m68k/allmodconfig: drivers/hid/hid-picolcd_debugfs.c: In function ‘picolcd_debug_reset_write’: drivers/hid/hid-picolcd_debugfs.c:54: error: implicit declaration of function ‘copy_from_user’ drivers/hid/hid-picolcd_debugfs.c: In function ‘picolcd_debug_eeprom_read’: drivers/hid/hid-picolcd_debugfs

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Rafael Aquini
On Tue, Aug 21, 2012 at 10:30:31PM +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 04:23:58PM -0300, Rafael Aquini wrote: > > On Tue, Aug 21, 2012 at 10:13:30PM +0300, Michael S. Tsirkin wrote: > > > > > > > > I believe rcu_dereference_protected() is what I want/need here, since > > >

[PATCHv3 7/9] arm: vt8500: doc: Add device tree bindings for arch-vt8500 devices

2012-08-21 Thread Tony Prisk
Bindings for gpio, interrupt controller, power management controller, timer, realtime clock, serial uart, ehci and uhci controllers and framebuffer controllers used on the arch-vt8500 platform. Framebuffer binding also specifies a 'display' node which is required for determining the lcd panel data

[PATCHv3 8/9] arm: vt8500: gpio: Devicetree support for arch-vt8500

2012-08-21 Thread Tony Prisk
Converted the existing arch-vt8500 gpio to a platform_device. Added support for WM8505 and WM8650 GPIO controllers. Signed-off-by: Tony Prisk --- drivers/gpio/Kconfig |6 + drivers/gpio/Makefile |1 + drivers/gpio/gpio-vt8500.c | 313 ++

[PATCHv3 1/9] arm: vt8500: Add device tree files for VIA/Wondermedia SoC's

2012-08-21 Thread Tony Prisk
Add device tree files for VT8500, WM8505 and WM8650 SoC's and reference boards. Signed-off-by: Tony Prisk --- arch/arm/boot/dts/vt8500-bv07.dts | 31 + arch/arm/boot/dts/vt8500.dtsi | 100 +++ arch/arm/boot/dts/wm8505-ref.dts | 31 + arch/arm/boo

[PATCHv3 2/9] rtc: vt8500: Add devicetree support for vt8500-rtc

2012-08-21 Thread Tony Prisk
Signed-off-by: Tony Prisk --- drivers/rtc/rtc-vt8500.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c index 9e94fb1..07bf193 100644 --- a/drivers/rtc/rtc-vt8500.c +++ b/drivers/rtc/rtc-vt8500.c @@ -23,6 +23,7 @@

[PATCHv3 0/9] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-21 Thread Tony Prisk
This patchset updates arch-vt8500 to devicetree and removes all the old-style code. Support for WM8650 has also been added. Example dts/dtsi files are given for the three currently supported models. Major changes: GPIO code has been converted to a platform_device and rewritten as WM8505 support

[PATCHv3 5/9] video: vt8500: Add devicetree support for vt8500-fb and wm8505-fb

2012-08-21 Thread Tony Prisk
Update vt8500-fb, wm8505-fb and wmt-ge-rops to support device tree bindings. Small change in wm8505-fb.c to support WM8650 framebuffer color format. Signed-off-by: Tony Prisk --- drivers/video/Kconfig |6 +-- drivers/video/vt8500lcdfb.c | 79 ++- drive

[PATCHv3 4/9] usb: vt8500: Add devicetree support for vt8500-ehci and -uhci.

2012-08-21 Thread Tony Prisk
Add devicetree support for vt8500-ehci. Convert vt8500-uhci to a generic non-pci platform-uhci with device tree support. Signed-off-by: Tony Prisk --- drivers/usb/host/Kconfig |4 +- drivers/usb/host/ehci-vt8500.c | 25 -- drivers/usb/host/uhci-hcd.c |5 ++ drivers/u

[PATCHv3 3/9] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-21 Thread Tony Prisk
Signed-off-by: Tony Prisk --- drivers/tty/serial/vt8500_serial.c | 37 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/vt8500_serial.c b/drivers/tty/serial/vt8500_serial.c index 2be006f..72e32db 100644 --- a/drivers/tty/ser

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread Borislav Petkov
On Tue, Aug 21, 2012 at 01:13:26PM -0700, H. Peter Anvin wrote: > I don't know what Borislav was suggesting with "BIOS overrides", is > that another CPU-specific thing? Not CPU- but rather platform-specific. It is Thomas Renninger's mechanism to override BIOS tables. -- Regards/Gruss, Boris. Ad

[PATCHv3 9/9] arm: vt8500: clk: Add Common Clock Framework support

2012-08-21 Thread Tony Prisk
This patch adds common clock framework support for arch-vt8500. Support for PLL and device clocks on VT8500, WM8505 and WM8650 are included. Signed-off-by: Tony Prisk --- drivers/clk/Makefile |1 + drivers/clk/clk-vt8500.c | 496 ++ 2 files ch

RE: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread Yu, Fenghua
> -Original Message- > From: Borislav Petkov [mailto:b...@amd64.org] > Sent: Tuesday, August 21, 2012 1:49 PM > To: H. Peter Anvin > Cc: Yu, Fenghua; Henrique de Moraes Holschuh; Ingo Molnar; Thomas > Gleixner; Mallick, Asit K; Tigran Aivazian; Andreas Herrmann; Borislav > Petkov; linux-ker

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread H. Peter Anvin
On 08/21/2012 01:48 PM, Borislav Petkov wrote: > On Tue, Aug 21, 2012 at 01:13:26PM -0700, H. Peter Anvin wrote: >> I don't know what Borislav was suggesting with "BIOS overrides", is >> that another CPU-specific thing? > > Not CPU- but rather platform-specific. It is Thomas Renninger's > mechanis

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread H. Peter Anvin
On 08/21/2012 01:52 PM, Yu, Fenghua wrote: >> -Original Message- >> From: Borislav Petkov [mailto:b...@amd64.org] >> Sent: Tuesday, August 21, 2012 1:49 PM >> To: H. Peter Anvin >> Cc: Yu, Fenghua; Henrique de Moraes Holschuh; Ingo Molnar; Thomas >> Gleixner; Mallick, Asit K; Tigran Aivazia

[RFC] Move kfree outside pde_unload_lock

2012-08-21 Thread Nathan Zimmer
I am currently tracking a hotlock reported by a customer on a large, 512 cores, system, I am currently running 3.6.0 rc1 but the issue looks like it has been this way for a very long time. The offending lock is proc_dir_entry->pde_unload_lock. In proc_reg_release we are doing a kfree under the

RE: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread Yu, Fenghua
> -Original Message- > From: H. Peter Anvin [mailto:h...@zytor.com] > Sent: Tuesday, August 21, 2012 1:54 PM > To: Yu, Fenghua > Cc: Borislav Petkov; Henrique de Moraes Holschuh; Ingo Molnar; Thomas > Gleixner; Mallick, Asit K; Tigran Aivazian; Andreas Herrmann; Borislav > Petkov; linux-ker

Re: [PATCH v9 2/2] kvm: On Ack, De-assert & Notify KVM_IRQFD extension

2012-08-21 Thread Alex Williamson
On Tue, 2012-08-21 at 23:37 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 01:29:14PM -0600, Alex Williamson wrote: > > For VFIO based device assignment we'd like a mechanism to allow level > > triggered interrutps to be directly injected into KVM. KVM_IRQFD > > already allows this for

Re: [PATCH 0/4] fat: fix ESTALE errors

2012-08-21 Thread Bastien ROUCARIES
On Tue, Aug 21, 2012 at 8:41 AM, OGAWA Hirofumi wrote: > Namjae Jeon writes: > >> And.. Hi Ogawa. >> I checked other filesystem about unlink - inode issue. but I found >> Ext4 have same issue. >> Although other filesysm is having this issue, Can we think It could be >> only FAT issue ? > > (I ass

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Alex Williamson
On Tue, 2012-08-21 at 23:41 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 02:06:19PM -0600, Alex Williamson wrote: > > On Tue, 2012-08-21 at 22:58 +0300, Michael S. Tsirkin wrote: > > > On Tue, Aug 21, 2012 at 01:29:06PM -0600, Alex Williamson wrote: > > > > KVM_IRQFD currently uses th

Re: [PATCH v2 0/5] X86/XEN: Merge x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done setup functions and document its semantic

2012-08-21 Thread Thomas Gleixner
On Tue, 21 Aug 2012, Attilio Rao wrote: > Differences with v1: > - The patch serie is re-arranged in a way that it helps reviews, following > a plan by Thomas Gleixner > - The PVOPS nomenclature is not used as it is not correct > - The front-end message is adjusted with feedback by Thomas Gleixne

[PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread J. Bruce Fields
From: "J. Bruce Fields" I've seen a couple examples recently where we've gotten this wrong. Maybe something like this would help? Is there some better way? (Approximation due to Jim Rees). Signed-off-by: J. Bruce Fields --- include/linux/string.h |6 ++ net/sunrpc/cache.c |2

Re: [PATCH] task_work: add a scheduling point in task_work_run()

2012-08-21 Thread Eric Dumazet
On Tue, 2012-08-21 at 16:37 -0400, Mimi Zohar wrote: > We're here, because fput() called schedule_work() to delay the last > fput(). The execution needs to take place before the syscall returns to > userspace. Need to read __schedule()... Do you know if cond_resched() > can guarantee that it wi

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread Jim Rees
J. Bruce Fields wrote: From: "J. Bruce Fields" I've seen a couple examples recently where we've gotten this wrong. Maybe something like this would help? Is there some better way? (Approximation due to Jim Rees). Please add Suggested-by: Jim Rees . I'm thinking of patenting the al

Re: [PATCH v2 1/4] pinctrl: add samsung pinctrl and gpiolib driver

2012-08-21 Thread Stephen Warren
On 08/21/2012 05:25 AM, Linus Walleij wrote: > On Wed, Aug 15, 2012 at 9:57 PM, Thomas Abraham > wrote: > >> Add a new device tree enabled pinctrl and gpiolib driver for Samsung >> SoC's. ... >> + The child node can also optionally specify one or more of the pin >> + configuration that should b

Re: [PATCH v6 3/4] cgroup: add xattr support

2012-08-21 Thread Lennart Poettering
Heya, (sorry for the late reply) On 16.08.2012 22:00, Tejun Heo wrote: On Thu, Aug 16, 2012 at 01:44:56PM -0400, a...@redhat.com wrote: Attaching meta information to services, in an easily discoverable way. For example, in systemd we create one cgroup for each service, and could then store d

Re: [PATCH 0/5] Memory policy corruption fixes V2

2012-08-21 Thread Andi Kleen
> I tested this with trinity with CONFIG_DEBUG_SLAB enabled and it passed. I > did not test LTP such as Josh reported a problem with or with a database that > used shared policies like Andi tested. The series is almost all Kosaki's > work of course. If he has a revised series that simply got delaye

Re: [PATCH v6 3/4] cgroup: add xattr support

2012-08-21 Thread Tejun Heo
Hello, On Tue, Aug 21, 2012 at 11:43:44PM +0200, Lennart Poettering wrote: > >I'm not against this but unsure whether using kmem is enough for the > >suggested use case. Lennart, would this suit systemd? How much > >metadata are we talking about? > > Just small things, like values, PIDs, i.e. a

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-21 Thread Greg Thelen
On Thu, Aug 09 2012, Glauber Costa wrote: > This patch introduces infrastructure for tracking kernel memory pages to > a given memcg. This will happen whenever the caller includes the flag > __GFP_KMEMCG flag, and the task belong to a memcg other than the root. > > In memcontrol.h those functions

[PATCH] perf: do not flush maps on COMM for perf report

2012-08-21 Thread Luigi Semenzato
This fixes a long-standing bug caused by the lack of separate COMM and EXEC record types, which makes "perf report" lose track of symbols when a process renames itself. With this fix (suggested by Stephane Eranian), a COMM (rename) no longer flushes the maps, which is the correct behavior. An EXEC

Re: [PATCH] ide: fix generic_ide_suspend/resume Oops

2012-08-21 Thread David Miller
From: Miklos Szeredi Date: Tue, 21 Aug 2012 17:20:30 +0200 > From: Miklos Szeredi > > This patch fixes a regresion introduced by commit 0998d063 (device-core: > Ensure > drvdata = NULL when no driver is bound). > > Suspend oopses in generic_ide_suspend() because dev_get_drvdata() > returns NU

Re: [MMTests] dbench4 async on ext3

2012-08-21 Thread Jan Kara
On Mon 23-07-12 22:21:46, Mel Gorman wrote: > Configuration:global-dhp__io-dbench4-async-ext3 > Result: > http://www.csn.ul.ie/~mel/postings/mmtests-20120424/global-dhp__io-dbench4-async-ext3 > Benchmarks: dbench4 > > Summary > === > > In general there was a massive drop in t

Re: [PATCH v2 17/31] arm64: System calls handling

2012-08-21 Thread Catalin Marinas
On Tue, Aug 21, 2012 at 09:14:01PM +0100, Arnd Bergmann wrote: > On Tuesday 21 August 2012, Catalin Marinas wrote: > > > > +asmlinkage long sys_mmap(unsigned long addr, unsigned long len, > > > > +unsigned long prot, unsigned long flags, > > > > +unsigned lon

Re: [RFC] Move kfree outside pde_unload_lock

2012-08-21 Thread Alexey Dobriyan
On Tue, Aug 21, 2012 at 03:54:54PM -0500, Nathan Zimmer wrote: > I am currently tracking a hotlock reported by a customer on a large, 512 > cores, > system, I am currently running 3.6.0 rc1 but the issue looks like it has been > this way for a very long time. > The offending lock is proc_dir_entry

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread Al Viro
On Tue, Aug 21, 2012 at 05:22:27PM -0400, Jim Rees wrote: > J. Bruce Fields wrote: > > From: "J. Bruce Fields" > > I've seen a couple examples recently where we've gotten this wrong. > Maybe something like this would help? Is there some better way? > > (Approximation due to Jim Ree

Re: [PATCHv3 3/9] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-21 Thread Alan Cox
On Wed, 22 Aug 2012 08:47:32 +1200 Tony Prisk wrote: > Signed-off-by: Tony Prisk > --- > drivers/tty/serial/vt8500_serial.c | 37 > > 1 file changed, 33 insertions(+), 4 deletions(-) Can we have a comment attached to a change this size. In particular one

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread J. Bruce Fields
On Tue, Aug 21, 2012 at 11:06:13PM +0100, Al Viro wrote: > On Tue, Aug 21, 2012 at 05:22:27PM -0400, Jim Rees wrote: > > J. Bruce Fields wrote: > > > > From: "J. Bruce Fields" > > > > I've seen a couple examples recently where we've gotten this wrong. > > Maybe something like this would

[PATCH 0/2] console_lock debug improvements

2012-08-21 Thread Daniel Vetter
Hi all, After Dave Airlie blew through a few days to track down a deadlock at boot-up when handing over from the firmware fb to the kms/drm framebuffer driver (1), I've figured that lockdep /should/ have caught this. And indeed, by adding proper annotations to the console_lock it complains about

[PATCH 2/2] console: implement lockdep support for console_lock

2012-08-21 Thread Daniel Vetter
Dave Airlie recently discovered a locking bug in the fbcon layer, where a timer_del_sync (for the blinking cursor) deadlocks with the timer itself, since both (want to) hold the console_lock: https://lkml.org/lkml/2012/8/21/36 Unfortunately the console_lock isn't a plain mutex and hence has no lo

[PATCH 1/2] console: use might_sleep in console_lock

2012-08-21 Thread Daniel Vetter
Instead of BUG_ON(in_interrupt()), since that doesn't check for all the newfangled stuff like preempt. Note that this is valid since the console_sem is essentially used like a real mutex with only two twists: - we allow trylock from hardirq context - across suspend/resume we lock the logical conso

Re: [RFC PATCH 2/2] mm: Batch page_check_references in shrink_page_list sharing the same i_mmap_mutex

2012-08-21 Thread Tim Chen
On Tue, 2012-08-21 at 09:21 -0400, Matthew Wilcox wrote: > > The only clunky bit would seem to be this bit: > > > if (page_mapped(page) && mapping) { > > - switch (try_to_unmap(page, TTU_UNMAP)) { > > + switch (try_to_unmap(page, TTU_UNMAP, > > +

Re: [PATCH RT 2/2] fix printk flush of messages

2012-08-21 Thread Frank Rowand
added recipients... On 08/21/12 07:30, Michael Thalmeier wrote: > Frank Rowand am.sony.com> writes: > >> >> >> Updates console-make-rt-friendly.patch >> >> #ifdef CONFIG_PREEMPT_RT_FULL, printk() output is never flushed by >> printk() because: >> ... >> >> On system boot some printk() output is

[PATCH] tools lib traceevent: Modify header to work in C++ programs

2012-08-21 Thread Steven Rostedt
Arnaldo, As the libtraceevent library is also used by powertop, and that is written in *cough* C++ *cough*, we need to make sure that the headers do not have any C++ reserved words. Please apply this patch. Thanks. -- Steve Steven Rostedt (1): tools lib traceevent: Modify header to work

Re: [PATCH v6 3/4] cgroup: add xattr support

2012-08-21 Thread Hugh Dickins
On Tue, 21 Aug 2012, Tejun Heo wrote: > On Tue, Aug 21, 2012 at 11:43:44PM +0200, Lennart Poettering wrote: > > >I'm not against this but unsure whether using kmem is enough for the > > >suggested use case. Lennart, would this suit systemd? How much > > >metadata are we talking about? > > > > Ju

[GIT] Networking

2012-08-21 Thread David Miller
A couple weeks of bug fixing in there. The largest chunk is all the broken crap Amerigo Wang found in the netpoll layer. 1) netpoll and it's users has several serious bugs: a) uses GFP_KERNEL with locks held b) interfaces requiring interrupts disabled are called with them enabled

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-21 Thread Rusty Russell
On Wed, 15 Aug 2012 14:28:51 +0300, "Michael S. Tsirkin" wrote: > On Wed, Aug 15, 2012 at 12:16:51PM +0100, Mel Gorman wrote: > > I was thinking of exactly that page->mapping == balloon_mapping check. As I > > do not know how many active balloon drivers there might be I cannot guess > > in advanc

Re: [PATCH 00/25] Crypto keys and module signing

2012-08-21 Thread Rusty Russell
On Thu, 16 Aug 2012 02:34:05 +0100, David Howells wrote: > > Hi Rusty, > > I've posted new versions of my module signing patches to my GIT trees. Now I get to punt this discussion to KS. I knew it was good for something! Cheers, Rusty. -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH 0/4] PCI/PM: PCI D3cold support fixes for 3.6-rc1

2012-08-21 Thread Bjorn Helgaas
On Sun, Aug 19, 2012 at 6:09 PM, huang ying wrote: > Hi, Bjorn, > > Could you please merge this patchset? They fix real bugs. I assume you wanted the updated "[PATCH 3/4] PCI/PM: Fix config reg access ..." patch posted Aug 15. I merged these (with the updated 3/4 patch) to my "for-linus" branc

[GIT PULL for v3.6-rc3] media fixes

2012-08-21 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media v4l_for_linus For bug fixes, at soc_camera, si470x, uvcvideo, iguanaworks IR driver, radio_shark Kbuild fixes, and at the V4L2 core (radio fixes). Thank you! Mauro - The following changes since co

[PATCH 1/1] tcp: Wrong timeout for SYN segments

2012-08-21 Thread Alex Bergmann
Hi David, I'm not 100% sure, but it looks like I found an RFC mismatch with the current default values of the TCP implementation. Alex >From 8b854a525eb45f64ad29dfab16f9d9f681e84495 Mon Sep 17 00:00:00 2001 From: Alexander Bergmann Date: Wed, 22 Aug 2012 00:29:08 +0200 Subject: [PATCH 1/1] tcp

  1   2   3   4   5   6   7   8   >