Re: [PATCH 13/24] xen/arm: get privilege status

2012-07-27 Thread Stefano Stabellini
On Fri, 27 Jul 2012, Ian Campbell wrote: > On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: > > Use Xen features to figure out if we are privileged. > > > > XENFEAT_dom0 was introduced by 23735 in xen-unstable.hg. > > > > Signed-off-by: Stefano Stabellini > > --- > >

Re: [BUG] NTFS code doesn't sanitize folder names sufficiently

2012-07-27 Thread Calvin Walton
On Thu, 2012-07-26 at 20:18 +0200, Marian Beermann wrote: > Hello everyone, > > today I noticed some very odd behaviour, which could lead people to > believe a loss of data, because it is possible to create directories > with backslashes in them. > > I am currently running kernel 3.5. > > To

Re: [GIT PULL] New TPM driver and features

2012-07-27 Thread Kent Yoder
Hi, On Thu, Jul 26, 2012 at 02:46:25PM -0700, H. Peter Anvin wrote: > On 07/26/2012 07:31 AM, Kent Yoder wrote: > > hw_random: add support for the TPM chip as a hardware RNG source > > Could you clarify this? rngd (the user of /dev/hw_random) already > has support for the TPM... is this

Re: [PATCH 13/24] xen/arm: get privilege status

2012-07-27 Thread Ian Campbell
On Fri, 2012-07-27 at 15:25 +0100, Stefano Stabellini wrote: > On Fri, 27 Jul 2012, Ian Campbell wrote: > > On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: > > > Use Xen features to figure out if we are privileged. > > > > > > XENFEAT_dom0 was introduced by 23735 in xen-unstable.hg.

Re: [PATCH] kernel/watchdog.c : fix smp_processor_id() warning

2012-07-27 Thread Don Zickus
On Fri, Jul 27, 2012 at 08:38:21AM +0800, Ming Lei wrote: > On Fri, Jul 27, 2012 at 3:43 AM, Don Zickus wrote: > > On Wed, Jul 25, 2012 at 12:39:45PM +0800, Ming Lei wrote: > >> Use raw_smp_processor_id in lockup_detector_bootcpu_resume() > >> because it is enough when non-boot CPUs are offline.

Re: [Xen-devel] [PATCH 02/24] xen/arm: hypercalls

2012-07-27 Thread Stefano Stabellini
On Fri, 27 Jul 2012, Russell King - ARM Linux wrote: > On Fri, Jul 27, 2012 at 02:02:18PM +0100, Stefano Stabellini wrote: > > > > > +/** > > > > > + * hypercall.h > > > > > + * > > > > > + * Linux-specific hypervisor

Re: [net-next RFC V5 3/5] virtio: intorduce an API to set affinity for a virtqueue

2012-07-27 Thread Paolo Bonzini
Il 05/07/2012 12:29, Jason Wang ha scritto: > Sometimes, virtio device need to configure irq affiniry hint to maximize the > performance. Instead of just exposing the irq of a virtqueue, this patch > introduce an API to set the affinity for a virtqueue. > > The api is best-effort, the affinity

Re: [Xen-devel] [PATCH 02/24] xen/arm: hypercalls

2012-07-27 Thread Ian Campbell
On Fri, 2012-07-27 at 15:21 +0100, Russell King - ARM Linux wrote: > On Fri, Jul 27, 2012 at 02:02:18PM +0100, Stefano Stabellini wrote: > > > > > +/** > > > > > + * hypercall.h > > > > > + * > > > > > + * Linux-specific

Re: [PATCH 1/2] sched: recover SD_WAKE_AFFINE in select_task_rq_fair and code clean up

2012-07-27 Thread Alex Shi
On 07/27/2012 04:32 PM, Peter Zijlstra wrote: > On Fri, 2012-07-27 at 09:47 +0800, Alex Shi wrote: > >> From 610515185d8a98c14c7c339c25381bc96cd99d93 Mon Sep 17 00:00:00 2001 >> From: Alex Shi >> Date: Thu, 26 Jul 2012 08:55:34 +0800 >> Subject: [PATCH 1/3] sched: recover SD_WAKE_AFFINE in

Re: Direct I/O bug in kernel

2012-07-27 Thread Hillf Danton
On Wed, Jul 25, 2012 at 1:28 AM, Victor Meyerson wrote: > > Still different checksums and I used the same random-file from my first test. > Then try the fix at https://lkml.org/lkml/2012/7/27/54 Good Weekend Hillf -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 07/24] xen/arm: Xen detection and shared_info page mapping

2012-07-27 Thread Stefano Stabellini
On Fri, 27 Jul 2012, Ian Campbell wrote: > On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: > > Check for a "/xen" node in the device tree, if it is present set > > xen_domain_type to XEN_HVM_DOMAIN and continue initialization. > > > > Map the real shared info page using

Re: [PATCH 1/2] tpm: Move tpm_get_random api into the TPM device driver

2012-07-27 Thread Kent Yoder
On Thu, Jul 26, 2012 at 03:12:19PM -0700, H. Peter Anvin wrote: > On 06/07/2012 11:47 AM, Kent Yoder wrote: > >Move the tpm_get_random api from the trusted keys code into the TPM > >device driver itself so that other callers can make use of it. Also, > >change the api slightly so that the number

Re: [PATCH 07/24] xen/arm: Xen detection and shared_info page mapping

2012-07-27 Thread Ian Campbell
On Fri, 2012-07-27 at 15:48 +0100, Stefano Stabellini wrote: > On Fri, 27 Jul 2012, Ian Campbell wrote: > > On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: > > > Check for a "/xen" node in the device tree, if it is present set > > > xen_domain_type to XEN_HVM_DOMAIN and continue

Re: [2/3][PATCH][v2] TDM Framework

2012-07-27 Thread Russell King - ARM Linux
On Fri, Jul 27, 2012 at 07:35:38PM +0530, sand...@freescale.com wrote: > +static DEFINE_MUTEX(tdm_core_lock); > +static DEFINE_IDR(tdm_adapter_idr); > +/* List of TDM adapters registered with TDM framework */ > +LIST_HEAD(adapter_list); > + > +/* List of TDM clients registered with TDM framework

Re: [PATCH 1/2] tpm: Move tpm_get_random api into the TPM device driver

2012-07-27 Thread Kent Yoder
On Thu, Jul 26, 2012 at 05:10:44PM -0700, H. Peter Anvin wrote: > On 06/07/2012 11:47 AM, Kent Yoder wrote: > >Move the tpm_get_random api from the trusted keys code into the TPM > >device driver itself so that other callers can make use of it. Also, > >change the api slightly so that the number

Re: [Xen-devel] [PATCH 02/24] xen/arm: hypercalls

2012-07-27 Thread Russell King - ARM Linux
On Fri, Jul 27, 2012 at 03:39:31PM +0100, Ian Campbell wrote: > On Fri, 2012-07-27 at 15:21 +0100, Russell King - ARM Linux wrote: > > On Fri, Jul 27, 2012 at 02:02:18PM +0100, Stefano Stabellini wrote: > > > > > > +/** >

Re: [GIT PULL] New TPM driver and features

2012-07-27 Thread H. Peter Anvin
On 07/27/2012 07:29 AM, Kent Yoder wrote: Hi, On Thu, Jul 26, 2012 at 02:46:25PM -0700, H. Peter Anvin wrote: On 07/26/2012 07:31 AM, Kent Yoder wrote: hw_random: add support for the TPM chip as a hardware RNG source Could you clarify this? rngd (the user of /dev/hw_random) already

Re: [PATCH 1/2] tpm: Move tpm_get_random api into the TPM device driver

2012-07-27 Thread H. Peter Anvin
On 07/27/2012 07:49 AM, Kent Yoder wrote: case Opt_new: - ret = my_get_random(payload->key, payload->key_len); + ret = tpm_get_random(TPM_ANY_NUM, payload->key, +>key_len); payload->key_len is unsigned int, not size_t;

Re: [ 39/40] cpuset: mm: reduce large amounts of memory barrier related damage v3

2012-07-27 Thread Herton Ronaldo Krzesinski
On Thu, Jul 26, 2012 at 02:29:57PM -0700, Greg Kroah-Hartman wrote: > From: Greg KH > > 3.0-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Mel Gorman > > commit cc9a6c8776615f9c194ccf0b63a0aa5628235545 upstream. > > Stable note: Not

Re: [PATCH 1/4] EFI: Stash ROMs if they're not in the PCI BAR

2012-07-27 Thread Seth Forshee
On Thu, Jul 26, 2012 at 06:02:46PM -0400, Matthew Garrett wrote: > + rom->data.next = NULL; Noticed today that I'm getting an "assignment makes integer from pointer without a cast" warning from this line. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH 3/4] PCI: Add support for non-BAR ROMs

2012-07-27 Thread Seth Forshee
On Thu, Jul 26, 2012 at 06:02:48PM -0400, Matthew Garrett wrote: > + return phys_to_virt(pdev->rom); This line is giving me a "makes integer from pointer without a cast" warning. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [ 39/40] cpuset: mm: reduce large amounts of memory barrier related damage v3

2012-07-27 Thread Mel Gorman
> > --- a/mm/slub.c > > +++ b/mm/slub.c > > @@ -1457,6 +1457,7 @@ static struct page *get_any_partial(stru > > struct zone *zone; > > enum zone_type high_zoneidx = gfp_zone(flags); > > struct page *page; > > + unsigned int cpuset_mems_cookie; > > > > /* > > * The defrag

[PATCH 4/7] bridge: call NETDEV_RELEASE notifier in br_del_if()

2012-07-27 Thread Cong Wang
When a bridge interface deletes its underlying ports, it should notify netconsole too, like what bonding interface does. Cc: "David S. Miller" Signed-off-by: Cong Wang --- net/bridge/br_if.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/net/bridge/br_if.c

[PATCH 3/7] netconsole: do not release spin_lock before calling __netpoll_cleanup

2012-07-27 Thread Cong Wang
With the previous patch applied, __netpoll_cleanup() is non-block now, so we don't need to release the spin_lock before calling it. Cc: "David S. Miller" Signed-off-by: Cong Wang --- drivers/net/netconsole.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git

[PATCH 1/7] netpoll: use GFP_ATOMIC in slave_enable_netpoll() and __netpoll_setup()

2012-07-27 Thread Cong Wang
slave_enable_netpoll() and __netpoll_setup() may be called with read_lock() held, so should use GFP_ATOMIC to allocate memory. Cc: "David S. Miller" Reported-by: Dan Carpenter Signed-off-by: Cong Wang --- drivers/net/bonding/bond_main.c |2 +- net/core/netpoll.c |2 +- 2

[PATCH 5/7] netpoll: take rcu_read_lock_bh() in netpoll_rx()

2012-07-27 Thread Cong Wang
In __netpoll_rx(), it dereferences ->npinfo without rcu_dereference_bh(), this patch fixes it by using the 'npinfo' passed from netpoll_rx() where it is already dereferenced with rcu_dereference_bh(). Cc: "David S. Miller" Signed-off-by: Cong Wang --- include/linux/netpoll.h |4 ++--

Re: [2/3][PATCH][v2] TDM Framework

2012-07-27 Thread Francois Romieu
sand...@freescale.com : [...] > The main functions of this Framework are: > - provides interface to TDM clients to access TDM functionalities. > - provides standard interface for TDM drivers to hook with the framework. > - handles various data handling stuff and buffer management. > > In

[PATCH 7/7] netpoll: take rcu_read_lock_bh() in netpoll_send_skb_on_dev()

2012-07-27 Thread Cong Wang
This patch fixes several problems in the call path of netpoll_send_skb_on_dev(): 1. We already disable IRQ's before calling netpoll_send_skb_on_dev(), so we don't need to disable IRQ's again. 2. All the callees of netpoll_send_skb_on_dev() should use rcu_dereference_bh() to dereference

[PATCH 6/7] netpoll: use netpoll_rx_on() in netpoll_rx()

2012-07-27 Thread Cong Wang
The logic of the code is same, just call netpoll_rx_on(). Cc: "David S. Miller" Signed-off-by: Cong Wang --- include/linux/netpoll.h | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index

[PATCH 2/7] netpoll: make __netpoll_cleanup non-block

2012-07-27 Thread Cong Wang
Like the previous patch, slave_disable_netpoll() and __netpoll_cleanup() may be called with read_lock() held too, so we should make them non-block, by moving the cleanup and kfree() to call_rcu_bh() callbacks. Cc: "David S. Miller" Signed-off-by: Cong Wang --- drivers/net/bonding/bond_main.c |

[RFC PATCH 0/5] cputime: Generic virtual based cputime accounting

2012-07-27 Thread Frederic Weisbecker
So, This is a proposition to handle the cputime accounting without the tick to prepare for stopping the tick further idle. I have managed to reuse and generalize the kernel/user boundary hooks used by RCU. This way we can minimize the changes in archs that don't support virtual cputime and we

[PATCH 1/5] user_hooks: New user hooks subsystem

2012-07-27 Thread Frederic Weisbecker
Create a new subsystem that handles the hooks on kernel/user boundaries currently used by RCU for its userspace extended quiescent state. We need to pull this up from RCU into this new level of indirection because these hooks are also going to be used to implement an "on demand" generic virtual

[PATCH 2/5] cputime: Don't allow virtual and irq finegrained cputime accounting simultaneously

2012-07-27 Thread Frederic Weisbecker
We may soon be able to run both at the same time. But we need to rework a bit the irq finegrained accounting before that. Just do a mutual exclusion for now. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter

[PATCH 4/5] cputime: Rename account_system_vtime to account_vtime

2012-07-27 Thread Frederic Weisbecker
account_system_vtime() can be called from random places: hard/softirq entry/exit, kvm guest entry/exit, and even context switches on powerpc. Rename it to the even more generic account_vtime() name, this reflect well that we are in a random place in the kernel where we have either system, idle or

[PATCH 5/5] cputime: Generic on-demand virtual cputime accounting

2012-07-27 Thread Frederic Weisbecker
If we want to stop the tick further idle, we need to be able to account the cputime without using the tick. Virtual based cputime accounting solves that problem by hooking into kernel/user boundaries. However implementing CONFIG_VIRT_CPU_ACCOUNTING requires to set low level hooks and involves

[PATCH 3/5] cputime: Allow dynamic switch between tick/virtual based cputime accounting

2012-07-27 Thread Frederic Weisbecker
Allow to dynamically switch between tick and virtual based cputime accounting. This way we can provide a kind of "on-demand" virtual based cputime accounting. In this mode, the kernel will rely on the user hooks subsystem to dynamically hook on kernel boundaries. This is in preparation for beeing

Re: [PATCH] ivtv: Declare MODULE_FIRMWARE usage

2012-07-27 Thread Tim Gardner
On 07/26/2012 04:21 PM, Andy Walls wrote: > On Thu, 2012-07-26 at 12:26 -0600, Tim Gardner wrote: >> Cc: Andy Walls >> Cc: Mauro Carvalho Chehab >> Cc: ivtv-de...@ivtvdriver.org >> Cc: linux-me...@vger.kernel.org >> Signed-off-by: Tim Gardner >> --- >> drivers/media/video/ivtv/ivtv-firmware.c

Re: [PATCH 0/3] add new API to sysfs and device core code

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 12:02:40PM +0800, Bryan Wu wrote: > Send out a uevent when create file in sysfs, which is required by userspace > application such udev in Android There is no such thing as "udev in Android" the last time I looked. Has this changed? -- To unsubscribe from this list: send

Re: [PATCH 4/7] bridge: call NETDEV_RELEASE notifier in br_del_if()

2012-07-27 Thread Stephen Hemminger
On Fri, 27 Jul 2012 23:38:01 +0800 Cong Wang wrote: > When a bridge interface deletes its underlying ports, it should > notify netconsole too, like what bonding interface does. > > Cc: "David S. Miller" > Signed-off-by: Cong Wang > --- > net/bridge/br_if.c |1 + > 1 files changed, 1

Re: [PATCH 1/3] sysfs: introduce a sysfs_create_file_uevent new API

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 12:02:41PM +0800, Bryan Wu wrote: > Send a uevent notification whenever a new sysfs file is created to allow > userspace processes such as udev to modify permissions on the new files. This makes no sense, why not just call kobject_uevent after creating the file when

Re: [PATCH 12/24] xen/arm: Introduce xen_guest_init

2012-07-27 Thread Stefano Stabellini
On Fri, 27 Jul 2012, Ian Campbell wrote: > On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: > > We used to rely on a core_initcall to initialize Xen on ARM, however > > core_initcalls are actually called after early consoles are initialized. > > That means that hvc_xen.c is going to be

pull request: wireless 2012-07-27

2012-07-27 Thread John W. Linville
commit 28ea499ac5b90f6266a24b826c6d469fc503758c Dave, These fixes are intended for the 3.6 stream. Hauke Mehrtens provides a pair of bcma fixes, one to fix a build regression on mips and another to correct a pair of missing iounmap calls. Thomas Huehn offers a mac80211_hwsim fix to avoid a

[GIT PULL] kmap_atomic final cleanups for 3.6

2012-07-27 Thread Cong Wang
Hi, Linus, Please pull my kmap_atomic cleanup's for 3.6, git://github.com/congwang/linux.git kmap_atomic this should be the final round of cleanup, as the definitions of enum km_type finally get removed from the whole tree. The patches stay in linux-next for a long time. Thanks!

Re: [PATCH v3 2/4] ACPI: Update CPU hotplug messages

2012-07-27 Thread Bjorn Helgaas
On Thu, Jul 26, 2012 at 8:39 PM, Toshi Kani wrote: > On Thu, 2012-07-26 at 13:23 -0600, Bjorn Helgaas wrote: >> On Wed, Jul 25, 2012 at 5:12 PM, Toshi Kani wrote: >> > @@ -560,8 +565,7 @@ static int __cpuinit acpi_processor_add(struct >> > acpi_device *device) >> > */ >> > if

Re: [PATCH 12/24] xen/arm: Introduce xen_guest_init

2012-07-27 Thread Ian Campbell
On Fri, 2012-07-27 at 16:54 +0100, Stefano Stabellini wrote: > On Fri, 27 Jul 2012, Ian Campbell wrote: > > On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: > > > We used to rely on a core_initcall to initialize Xen on ARM, however > > > core_initcalls are actually called after early

Re: lockdep trace from posix timers

2012-07-27 Thread Dave Jones
On Tue, Jul 24, 2012 at 04:36:13PM -0400, Dave Jones wrote: > Linus tree as of 5fecc9d8f59e765c2a48379dd7c6f5cf88c7d75a > > Dave > > == > [ INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected ] > 3.5.0+ #122 Not tainted >

Re: [PATCH 18/24] xen/arm: compile blkfront and blkback

2012-07-27 Thread Stefano Stabellini
On Fri, 27 Jul 2012, Ian Campbell wrote: > On Thu, 2012-07-26 at 16:34 +0100, Stefano Stabellini wrote: > > > > +#define XEN_IO_PROTO_ABI_ARM"arm-abi" > > I wonder if we ought to call this arm-aarch32-abi or something? So aarch64 has just been renamed to arm64 and you want to rename

Re: [PATCH RFC/RFT] i2c/busses: Fix build error if CONFIG_I2C_DESIGNWARE_PLATFORM=y && CONFIG_I2C_DESIGNWARE_PCI=y

2012-07-27 Thread Jean Delvare
Hi Axel, On Wed, 13 Jun 2012 20:51:37 +0800, Axel Lin wrote: > This patch adds config I2C_DESIGNWARE_CORE in Kconfig, and let > I2C_DESIGNWARE_PLATFORM and I2C_DESIGNWARE_PCI select I2C_DESIGNWARE_CORE. > > Because both I2C_DESIGNWARE_PLATFORM and I2C_DESIGNWARE_PCI can be built as > built-in or

Re: [PATCH 1/5] user_hooks: New user hooks subsystem

2012-07-27 Thread Paul E. McKenney
On Fri, Jul 27, 2012 at 05:40:30PM +0200, Frederic Weisbecker wrote: > Create a new subsystem that handles the hooks on kernel/user > boundaries currently used by RCU for its userspace extended > quiescent state. > > We need to pull this up from RCU into this new level of indirection > because

[PATCH v3] cx18: Declare MODULE_FIRMWARE usage

2012-07-27 Thread Tim Gardner
Cc: Andy Walls Cc: Mauro Carvalho Chehab Cc: ivtv-de...@ivtvdriver.org Cc: linux-me...@vger.kernel.org Signed-off-by: Tim Gardner --- drivers/media/video/cx18/cx18-av-firmware.c |2 ++ drivers/media/video/cx18/cx18-driver.c |1 + drivers/media/video/cx18/cx18-dvb.c |6

[PATCH v2 1/2] hw_random: mxc-rnga: Adapt clocks to new i.mx clock framework

2012-07-27 Thread Fabio Estevam
Adapt clocks to the new i.mx clock framework and fix the following warning: [ cut here ] WARNING: at drivers/clk/clk.c:511 __clk_enable+0x9c/0xac() Modules linked in:

[PATCH v2 2/2] hw_random: mxc-rnga: Access data via structure

2012-07-27 Thread Fabio Estevam
In current driver, everytime we need to access the rng clock (,ie to enable or disable it) a call to clk_get is done. This is not correct and the preferred way is to provide a rng data structure that could be used for accessing rng resources. Cc: Theodore Ts'o Cc: Herbert Xu Cc:

Re: [Xen-devel] [PATCH 06/24] xen: missing includes

2012-07-27 Thread Stefano Stabellini
On Fri, 27 Jul 2012, Jan Beulich wrote: > >>> On 26.07.12 at 17:33, Stefano Stabellini > >>> wrote: > > --- a/include/xen/interface/xen.h > > +++ b/include/xen/interface/xen.h > > @@ -10,7 +10,10 @@ > > #define __XEN_PUBLIC_XEN_H__ > > > > #include > > +#include > > +#ifdef CONFIG_X86 > >

Re: [Xen-devel] [PATCH 10/24] xen: do not compile manage, balloon, pci, acpi and cpu_hotplug on ARM

2012-07-27 Thread Stefano Stabellini
On Fri, 27 Jul 2012, Jan Beulich wrote: > >>> On 26.07.12 at 17:33, Stefano Stabellini > >>> wrote: > > --- a/drivers/xen/Makefile > > +++ b/drivers/xen/Makefile > > @@ -1,11 +1,15 @@ > > -obj-y += grant-table.o features.o events.o manage.o balloon.o > > +ifneq ($(CONFIG_ARM),y) > > +obj-y

[PATCH V2 3/4] PCI: Add support for non-BAR ROMs

2012-07-27 Thread Matthew Garrett
Platforms may provide their own mechanisms for obtaining ROMs. Add support for using data provided by the platform in that case. Signed-off-by: Matthew Garrett Tested-by: Seth Forshee --- drivers/pci/rom.c |9 - include/linux/pci.h |2 ++ 2 files changed, 10 insertions(+), 1

[PATCH v2] ene_ub6250: Use macros for firmware names

2012-07-27 Thread Tim Gardner
Advertise firmware files using MODULE_FIRMWARE macros. Fix a debug string: SD_RDWR_PATTERN --> SD_RW_PATTERN Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: usb-stor...@lists.one-eyed-alien.net Signed-off-by: Tim Gardner --- drivers/usb/storage/ene_ub6250.c | 28

Re: [PATCH 1/2] hw_random: mxc-rnga: Adapt clocks to new i.mx clock framework

2012-07-27 Thread Fabio Estevam
On Mon, Jul 9, 2012 at 4:41 AM, Sascha Hauer wrote: > Uhh, that's a driver bug that should be fixed. Although right now there > is no reference counting for clocks, the driver should keep the clk > internally instead of simply calling clk_get whenever it needs access to > a clk. Yes, I just

[PATCH V2 4/4] X86: Use PCI setup data

2012-07-27 Thread Matthew Garrett
EFI can provide PCI ROMs out of band via boot services, which may not be available after boot. Add support for using the data handed off to us by the boot stub or bootloader. Signed-off-by: Matthew Garrett Tested-by: Seth Forshee --- arch/x86/pci/common.c | 33

[PATCH V2 2/4] PCI: Add pcibios_add_device

2012-07-27 Thread Matthew Garrett
Platforms may want to provide architecture-specific functionality during PCI enumeration. Add a pcibios_add_device() call that architectures can override to do so. Signed-off-by: Matthew Garrett Tested-by: Seth Forshee --- drivers/pci/bus.c |5 + drivers/pci/pci.c | 13

[PATCH V2 1/4] EFI: Stash ROMs if they're not in the PCI BAR

2012-07-27 Thread Matthew Garrett
EFI provides support for providing PCI ROMs via means other than the ROM BAR. This support vanishes after we've exited boot services, so add support for stashing copies of the ROMs in setup_data if they're not otherwise available. Signed-off-by: Matthew Garrett Tested-by: Seth Forshee ---

Re: [PATCH 1/5] user_hooks: New user hooks subsystem

2012-07-27 Thread Frederic Weisbecker
On Fri, Jul 27, 2012 at 09:40:54AM -0700, Paul E. McKenney wrote: > On Fri, Jul 27, 2012 at 05:40:30PM +0200, Frederic Weisbecker wrote: > > Create a new subsystem that handles the hooks on kernel/user > > boundaries currently used by RCU for its userspace extended > > quiescent state. > > > > We

[PATCH] efifb: Skip DMI checks if the bootloader knows what it's doing

2012-07-27 Thread Matthew Garrett
The majority of the DMI checks in efifb are for cases where the bootloader has provided invalid information. However, on some machines the overrides may do more harm than good due to configuration differences between machines with the same machine identifier. It turns out that it's possible for

Re: [PATCH] Add Etron XHCI quirk to avoid warning spam

2012-07-27 Thread Sarah Sharp
On Fri, Jul 27, 2012 at 02:40:56PM +0800, Daniel J Blueman wrote: > On 27 July 2012 14:14, Sarah Sharp wrote: > > On Fri, Jul 27, 2012 at 12:03:44PM +0800, Daniel J Blueman wrote: > >> When various USB3 devices with Etron XHCI controllers, we see a bunch of > >> warnings: > >> xhci_hcd

Re: [PATCH 1/2] Revert "hugetlb: avoid taking i_mmap_mutex in unmap_single_vma() for hugetlb"

2012-07-27 Thread Aneesh Kumar K.V
Mel Gorman writes: > This reverts the patch "hugetlb: avoid taking i_mmap_mutex in > unmap_single_vma() for hugetlb" from mmotm. > > This patch is possibly a mistake and blocks the merging of a hugetlb fix > where page tables can get corrupted (https://lkml.org/lkml/2012/7/24/93). > The

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Andrew Stiegmann
Hi Sam, - Original Message - > From: "Sam Ravnborg" > To: "Andrew Stiegmann (stieg)" > Cc: linux-kernel@vger.kernel.org, virtualizat...@lists.linux-foundation.org, > pv-driv...@vmware.com, > vm-crosst...@vmware.com, csch...@vmware.com, gre...@linuxfoundation.org > Sent: Friday, July

Re: [PATCH v3 2/4] ACPI: Update CPU hotplug messages

2012-07-27 Thread Toshi Kani
On Fri, 2012-07-27 at 10:05 -0600, Bjorn Helgaas wrote: > On Thu, Jul 26, 2012 at 8:39 PM, Toshi Kani wrote: > > On Thu, 2012-07-26 at 13:23 -0600, Bjorn Helgaas wrote: > >> On Wed, Jul 25, 2012 at 5:12 PM, Toshi Kani wrote: > > >> > @@ -560,8 +565,7 @@ static int __cpuinit

Re: [PATCH] uprobes: don't enable/disable signle step if the user did it

2012-07-27 Thread Sebastian Andrzej Siewior
On 07/26/2012 07:31 PM, Oleg Nesterov wrote: Well. I agree, this needs changes. To begin with, uprobe should avoid user_enable_single_step() which does access_process_vm(). And I suspect uprobes have the problems with TIF_FORCED_TF logic. Why? Shouldn't wee keep the trap flag if the

Re: [Xen-devel] [PATCH 5/7] xen/p2m: Add logic to revector a P2M tree to use __va leafs.

2012-07-27 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 12:47:47PM +0100, Jan Beulich wrote: > >>> On 27.07.12 at 13:18, Stefano Stabellini > >>> wrote: > > On Thu, 26 Jul 2012, Konrad Rzeszutek Wilk wrote: > >> 1) All P2M lookups instead of using the __ka address would > >> use the __va address. This means we can safely

Re: [Xen-devel] [PATCH 7/7] xen/mmu: Remove from __ka space PMD entries for pagetables.

2012-07-27 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 12:31:17PM +0100, Stefano Stabellini wrote: > On Thu, 26 Jul 2012, Konrad Rzeszutek Wilk wrote: > > Please first read the description in "xen/mmu: Copy and revector the > > P2M tree." > > > > At this stage, the __ka address space (which is what the old > > P2M tree was

Re: [Xen-devel] [PATCH 3/7] xen/mmu: Release the Xen provided L4 (PGD) back.

2012-07-27 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 12:37:24PM +0100, Stefano Stabellini wrote: > On Thu, 26 Jul 2012, Konrad Rzeszutek Wilk wrote: > > Since we are not using it and somebody else could use it. > > make sense except it is almost entirely rewritten by the following > patch... Yeah, I should squash them. > >

Re: [Xen-devel] [PATCH 4/7] xen/mmu: Recycle the Xen provided L4, L3, and L2 pages

2012-07-27 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 12:45:38PM +0100, Stefano Stabellini wrote: > On Thu, 26 Jul 2012, Konrad Rzeszutek Wilk wrote: > > As we are not using them. We end up only using the L1 pagetables > > and grafting those to our page-tables. > > > > Signed-off-by: Konrad Rzeszutek Wilk > > --- > >

Re: [Xen-devel] [PATCH 2/4] xen/x86: Use memblock_reserve for sensitive areas.

2012-07-27 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 11:49:02AM +0100, Stefano Stabellini wrote: > On Thu, 26 Jul 2012, Konrad Rzeszutek Wilk wrote: > > instead of a big memblock_reserve. This way we can be more > > selective in freeing regions (and it also makes it easier > > to understand where is what). > > > > [v1: Move

Re: [Xen-devel] [PATCH 1/2] xen/swiotlb: If iommu=soft was not passed in on > 4GB, don't turn it on.

2012-07-27 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 08:27:39AM +0100, Jan Beulich wrote: > >>> On 26.07.12 at 22:43, Konrad Rzeszutek Wilk > >>> wrote: > > If we boot a 64-bit guest with more than 4GB memory, the SWIOTLB > > gets turned on: > > PCI-DMA: Using software bounce buffering for IO (SWIOTLB) > > software IO TLB

Re: [Xen-devel] [PATCH 1/2] xen/swiotlb: If iommu=soft was not passed in on > 4GB, don't turn it on.

2012-07-27 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 12:06:27PM +0100, Stefano Stabellini wrote: > On Thu, 26 Jul 2012, Konrad Rzeszutek Wilk wrote: > > If we boot a 64-bit guest with more than 4GB memory, the SWIOTLB > > gets turned on: > > PCI-DMA: Using software bounce buffering for IO (SWIOTLB) > > software IO TLB [mem

[RESEND PATCH 3/4 v3] mm: fix return value in __alloc_contig_migrate_range()

2012-07-27 Thread Joonsoo Kim
migrate_pages() can return positive value while at the same time emptying the list of pages it was called with. Such situation means that it went through all the pages on the list some of which failed to be migrated. If that happens, __alloc_contig_migrate_range()'s loop may finish without

An Andre To Remember

2012-07-27 Thread Jeff Garzik
An Andre To Remember July 2012 Linux lost a friend and advocate this month. Though never a household name, Andre Hedrick had a positive impact on everyone today running Linux, or using a website, with any form of IDE (ATA) or SCSI storage -- that means millions upon millions of

[RESEND PATCH 1/4 v3] mm: correct return value of migrate_pages() and migrate_huge_pages()

2012-07-27 Thread Joonsoo Kim
migrate_pages() should return number of pages not migrated or error code. When unmap_and_move return -EAGAIN, outer loop is re-execution without initialising nr_failed. This makes nr_failed over-counted. So this patch correct it by initialising nr_failed in outer loop. migrate_huge_pages() is

[RESEND PATCH 2/4 v3] mm: fix possible incorrect return value of migrate_pages() syscall

2012-07-27 Thread Joonsoo Kim
do_migrate_pages() can return the number of pages not migrated. Because migrate_pages() syscall return this value directly, migrate_pages() syscall may return the number of pages not migrated. In fail case in migrate_pages() syscall, we should return error value. So change err to -EBUSY

[RESEND PATCH 4/4 v3] mm: fix possible incorrect return value of move_pages() syscall

2012-07-27 Thread Joonsoo Kim
move_pages() syscall may return success in case that do_move_page_to_node_array return positive value which means migration failed. This patch changes return value of do_move_page_to_node_array for not returning positive value. It can fix the problem. Signed-off-by: Joonsoo Kim Cc: Brice Goglin

Re: [2/3][PATCH][v2] TDM Framework

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 07:35:38PM +0530, sand...@freescale.com wrote: > +/* Data structures required for sysfs */ > +static struct tdm_sysfs attr = { > + .attr.name = "use_latest_data", > + .attr.mode = 0664, > + .cmd_type = TDM_LATEST_DATA, > +}; What is this for? > +int

Re: [PATCH] uprobes: don't enable/disable signle step if the user did it

2012-07-27 Thread Oleg Nesterov
On 07/27, Sebastian Andrzej Siewior wrote: > > On 07/26/2012 07:31 PM, Oleg Nesterov wrote: >> Well. I agree, this needs changes. To begin with, uprobe should avoid >> user_enable_single_step() which does access_process_vm(). And I suspect >> uprobes have the problems with TIF_FORCED_TF logic. > >

[PATCH] hwmon: (applesmc) Decode and act on read/write status codes

2012-07-27 Thread Henrik Rydberg
The behavior of the SMC has changed several times over the years, causing read failures in the driver. It seems the problem can be explained by a shift in SMC speed combined with improper action on status codes. We should first wait for the SMC to settle, which was the most frequent response on

Re: [2/3][PATCH][v2] TDM Framework

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 07:35:38PM +0530, sand...@freescale.com wrote: > +static struct kobj_type tdm_type = { > + .sysfs_ops = _ops, > + .default_attrs = tdm_attr, > +}; Ah, also, as per the documentation in the kernel (go look, it's there), I now get to publicly mock you for ignoring

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Matthew Wilcox
On Fri, Jul 27, 2012 at 10:44:18AM -0600, Keith Busch wrote: > Registers a character device for the nvme module and creates character > files as /dev/nvmeN for each nvme device probed, where N is the device > instance. The character devices support nvme admin ioctl commands so > that nvme devices

Re: [Pv-drivers] [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Dmitry Torokhov
Hi Alan, On Fri, Jul 27, 2012 at 10:53:57AM +0100, Alan Cox wrote: > > +enum { > > + VMCI_SUCCESS_QUEUEPAIR_ATTACH = 5, > > + VMCI_SUCCESS_QUEUEPAIR_CREATE = 4, > > + VMCI_SUCCESS_LAST_DETACH= 3, > > + VMCI_SUCCESS_ACCESS_GRANTED = 2, > > + VMCI_SUCCESS_ENTRY_DEAD =

[GIT PULL] New TPM driver, hwrng driver and fixes

2012-07-27 Thread Kent Yoder
Hi James, Please pull from this new branch and ignore the 7-25-12 branch. This new branch includes fixes for comments by hpa. I've also included one additional patch from [1] to close a race and prevent possibly sensitive data from being free'd before being zeroed. I'm attaching this entire diff

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 10:20:43AM -0700, Andrew Stiegmann wrote: > > The kernel style is to use lower_case for everything. > > So this would become: > > > > vmci_device_get() > > > > This is obviously a very general comment and applies everywhere. > > I wish I could lower case these

[PATCH] smb347_charger: Add support for battery power supply attributes registration

2012-07-27 Thread Ramakrishna Pallala
This patch adds the support to use power supply attributes registration mechanism for battery properties. This will be useful if the platform has a main/primary battery and it relies on smb347 driver to get some critical battery attributes. Anton, I have to rework on this patch once we get an

[PATCH] max17042_battery: add support for battery STATUS and CHARGE_TYPE

2012-07-27 Thread Ramakrishna Pallala
This patch adds the support to report the battery power supply attributes STATUS and CHARGE_TYPE. This patch makes use of power_supply_get_external_attr() API to get these attributes through power supply core. Signed-off-by: Ramakrishna Pallala --- drivers/power/max17042_battery.c | 19

[PATCH 4/4] zcache: promote to drivers/mm/

2012-07-27 Thread Seth Jennings
This patchset promtes the zcache driver from staging to drivers/mm/. zcache captures swap pages via frontswap and pages that fall out of the page cache via cleancache and compress them in RAM, providing a compressed RAM swap and a compressed second-chance page cache. Signed-off-by: Seth Jennings

[PATCH 3/4] drivers: add memory management driver class

2012-07-27 Thread Seth Jennings
This patchset creates a new driver class under drivers/ for memory management related drivers, like zcache. This driver class would be for drivers that don't actually enabled a hardware device, but rather augment the memory manager in some way. In-tree candidates for this driver class are

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-27 Thread Greg Kroah-Hartman
On Fri, Jul 27, 2012 at 09:05:48PM +0900, Alexandre Courbot wrote: > Some device drivers (panel backlights especially) need to follow precise > sequences for powering on and off, involving gpios, regulators, PWMs > with a precise powering order and delays to respect between each steps. > These

[PATCH 2/4] zsmalloc: promote to mm/

2012-07-27 Thread Seth Jennings
This patch promotes the slab-based zsmalloc memory allocator from the staging tree to mm/ zcache depends on this allocator for storing compressed RAM pages in an efficient way under system wide memory pressure where high-order (greater than 0) page allocation are very likely to fail. For more

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-27 Thread Greg Kroah-Hartman
On Fri, Jul 27, 2012 at 09:05:48PM +0900, Alexandre Courbot wrote: > +++ b/include/linux/power_seq.h > @@ -0,0 +1,139 @@ > +/* > + * power_seq.h > + * > + * Simple interpreter for defining power sequences as platform data or device > + * tree properties. Initially designed for use with backlight

Re: [PATCH/RFC] platform: Add support for automatic device IDs

2012-07-27 Thread Greg Kroah-Hartman
On Fri, Jul 27, 2012 at 01:46:25PM +0200, Jean Delvare wrote: > Right now we have support for explicit platform device IDs, as well as > ID-less platform devices when a given device type can only have one > instance. However there are cases where multiple instances of a device > type can exist,

Re: [PATCH] staging/olpc_dcon: fix checkpatch warnings

2012-07-27 Thread Andres Salomon
Looks fine to me, thanks. Acked-by: Andres Salomon On Fri, 27 Jul 2012 20:45:52 +0900 Toshiaki Yamane wrote: > fixed some checkpatch warnings. > (Excluding -WARNING: msleep < 20ms can sleep for up to 20ms-) > > $ find drivers/staging/olpc_dcon/ -name > "*.[ch]"|xargs ./scripts/checkpatch.pl

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 02:12:12PM -0400, Matthew Wilcox wrote: > On Fri, Jul 27, 2012 at 10:44:18AM -0600, Keith Busch wrote: > > Registers a character device for the nvme module and creates character > > files as /dev/nvmeN for each nvme device probed, where N is the device > > instance. The

Re: [GIT PULL] New TPM driver, hwrng driver and fixes

2012-07-27 Thread H. Peter Anvin
On 07/27/2012 11:14 AM, Kent Yoder wrote: > Hi James, > > Please pull from this new branch and ignore the 7-25-12 branch. This > new branch includes fixes for comments by hpa. I've also included one > additional patch from [1] to close a race and prevent possibly sensitive > data from being

[PATCH 0/4] promote zcache from staging

2012-07-27 Thread Seth Jennings
/MM this year on zcache: http://oss.oracle.com/projects/tmem/dist/documentation/presentations/LSFMM12-zcache-final.pdf This patchset is based on next-20120727 + 3-part zsmalloc patchset below https://lkml.org/lkml/2012/7/18/353 The zsmalloc patchset is already acked and will be integrated by Greg

RE: [PATCH v2] power_supply: Added support for power supply attribute sources

2012-07-27 Thread Pallala, Ramakrishna
Hi Anton, > On Thu, Jul 26, 2012 at 08:47:24PM +0530, Ramakrishna Pallala wrote: > > On some platforms one driver(or HW chip) may not be able to provide > > all the necessary attributes of the power supply connected to the > > platform or may provide very limited info which can be used by

<    3   4   5   6   7   8   9   10   >