Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-14 Thread Kees Cook
On Tue, Aug 14, 2012 at 8:01 PM, Fengguang Wu wrote: > On Tue, Aug 14, 2012 at 02:16:52PM -0700, Kees Cook wrote: >> On Thu, Aug 9, 2012 at 6:52 PM, Fengguang Wu wrote: >> > On Thu, Aug 09, 2012 at 06:39:34PM -0700, Kees Cook wrote: >> >> Hi, >> >> >> >> So, after taking a closer look at this, I

Re: [PATCH V2 0/5] x86: Create direct mappings for E820_RAM only

2012-08-14 Thread WANG Chao
On 08/15/2012 06:54 AM, Jacob Shin wrote: On Tue, Aug 14, 2012 at 04:34:39PM +0800, Dave Young wrote: On 08/14/2012 05:46 AM, Jacob Shin wrote: Currently kernel direct mappings are created for all pfns between [ 0 to max_low_pfn ) and [ 4GB to max_pfn ). When we introduce memory holes, we end

Re: [PATCH] select GENERIC_ATOMIC64 for c6x/score/unicore32 archs

2012-08-14 Thread guanxuetao
> Sorry I have no compilers for build testing these changes, however the > risk looks low and it's much better than to leave the arch broken, > considering that Eric will do atomic64_t in the core fs/namespace.c code. > > CC: "Eric W. Biederman" > Signed-off-by: Fengguang Wu It looks ok for

Re: [PATCH 1/2] debugfs: Allow debugfs_create_dir() to take data

2012-08-14 Thread Hiroshi Doyu
On Thu, 9 Aug 2012 14:56:24 +0200 Hiroshi Doyu wrote: > Hi Greg, Felipe, > > On Wed, 8 Aug 2012 15:34:27 +0200 > Greg Kroah-Hartman wrote: > > > On Wed, Aug 08, 2012 at 09:24:32AM +0300, Hiroshi Doyu wrote: > > > Add __debugfs_create_dir(), which takes data passed from caller. > > > > Why? >

RE: [PATCH] net: add new QCA alx ethernet driver

2012-08-14 Thread Ren, Cloud
From: David Miller [mailto:da...@davemloft.net] Sent: Wednesday, August 15, 2012 1:33 PM >From: "Ren, Cloud" >Date: Wed, 15 Aug 2012 03:29:26 + > + strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); ... + strcpy(netdev->name, "eth%d"); + retval =

Re: [PATCH] net: add new QCA alx ethernet driver

2012-08-14 Thread David Miller
From: "Ren, Cloud" Date: Wed, 15 Aug 2012 03:29:26 + >>> + strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); >>> ... >>> + strcpy(netdev->name, "eth%d"); >>> + retval = register_netdev(netdev); >> >>The strcpy is unnecessary, alloc_etherdev already sets that. > > The

Re: [PATCH 0/4] cputime: Virtual cputime accounting small cleanups and consolidation v2

2012-08-14 Thread Frederic Weisbecker
On Tue, Aug 14, 2012 at 04:16:46PM +0200, Frederic Weisbecker wrote: > Hi, > > No fundamental change in this release but a rebase to solve conflicts > against latest tip:/sched/core commits. > > Thanks. This can be pulled from: git://github.com/fweisbec/linux-dynticks.git

Re: [PATCH 06/21] userns: Print out socket uids in a user namespace aware fashion.

2012-08-14 Thread Eric W. Biederman
"Rémi Denis-Courmont" writes: > Le lundi 13 août 2012 23:18:20, vous avez écrit : >> From: "Eric W. Biederman" >> >> Cc: David Miller >> Cc: Alexey Kuznetsov >> Cc: James Morris >> Cc: Hideaki YOSHIFUJI >> Cc: Patrick McHardy >> Cc: Arnaldo Carvalho de Melo >> Cc: Vlad Yasevich >> Cc:

Re: [PATCH] UDF: During mount free lvid_bh before rescanning with different blocksize

2012-08-14 Thread Ashish Sangwan
Hi Jan, > Yeah, I don't think this happens in practice but in theory it could. BTW, > did you check whether we don't need to free other information (like VAT > inode etc.) when rescanning the filesystem? I think we do but currently I'm > catching up after a long vacation and this doesn't have

Re: [PATCH] add support bluetooth usb 0489:e046 Foxconn / Hon Hai

2012-08-14 Thread Gustavo Padovan
* aborigines <7aborigin...@gmail.com> [2012-08-12 14:41:44 +0700]: > $ usb-deveices > T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#= 5 Spd=12 MxCh= 0 > D: Ver= 2.00 Cls=ff(vend.) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P: Vendor=0489 ProdID=e046 Rev=01.12 > S: Manufacturer=Broadcom Corp > S:

Re: [ 10/65] ARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+

2012-08-14 Thread Ben Hutchings
On Mon, 2012-08-13 at 15:13 -0700, Greg Kroah-Hartman wrote: > From: Greg KH > > 3.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Will Deacon > > commit a76d7bd96d65fa5119adba97e1b58d95f2e78829 upstream. > > The open-coded mutex

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

2012-08-14 Thread Rusty Russell
On Tue, 14 Aug 2012 11:33:20 +0300, "Michael S. Tsirkin" wrote: > On Tue, Aug 14, 2012 at 09:29:49AM +0930, Rusty Russell wrote: > > On Mon, 13 Aug 2012 11:41:23 +0300, "Michael S. Tsirkin" > > wrote: > > > On Fri, Aug 10, 2012 at 02:55:15PM -0300, Rafael Aquini wrote: > > > > +/* > > > > + *

Re: [PATCH] Init: main: fixed a brace coding style issue

2012-08-14 Thread Rusty Russell
On Tue, 14 Aug 2012 12:24:33 +0200, Valerio Baudo = wrote: > From: Valerio Baudo > > Fixed a coding style issue. > > Signed-off-by: Valerio Baudo Please forward to triv...@kernel.org. Thanks, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH] MIPS: fix module.c build for 32 bit

2012-08-14 Thread Rusty Russell
On Tue, 14 Aug 2012 15:08:10 +0100, David Howells wrote: > Rusty Russell wrote: > > > Yep, thanks. And might as well sent them straight to Linus; since > > linux-next didn't catch this, there's little point baking them there if > > we have some acks. > > > > If he misses it, I'll grab them. >

Re: [PATCH 02/16] user_ns: use new hashtable implementation

2012-08-14 Thread Mathieu Desnoyers
* Eric W. Biederman (ebied...@xmission.com) wrote: > Sasha Levin writes: > > > On 08/15/2012 03:08 AM, Eric W. Biederman wrote: > >>> I can offer the following: I'll write a small module that will hash > >>> 1...1 > >>> > into a hashtable which uses 7 bits (just like user_ns) and post the

RE: [PATCH] net: add new QCA alx ethernet driver

2012-08-14 Thread Ren, Cloud
>> +strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); >> ... >> +strcpy(netdev->name, "eth%d"); >> +retval = register_netdev(netdev); > >The strcpy is unnecessary, alloc_etherdev already sets that. The strcpy is useful. netdev->name is set as pci_name in front. So the

Re: [PATCH 00/13] SCTP: Enable netns

2012-08-14 Thread Vlad Yasevich
On 08/04/2012 05:30 PM, Jan Ariyasu wrote: The following set of patches enable network-namespaces for the SCTP protocol. The multitude of global parameters are stored in a net_generic structure, and the bulk of the patches enable the protocol to access the parameters on a per-namespace basis.

Re: [PATCH 06/21] userns: Print out socket uids in a user namespace aware fashion.

2012-08-14 Thread Vlad Yasevich
On 08/13/2012 04:18 PM, Eric W. Biederman wrote: From: "Eric W. Biederman" Cc: David Miller Cc: Alexey Kuznetsov Cc: James Morris Cc: Hideaki YOSHIFUJI Cc: Patrick McHardy Cc: Remi Denis-Courmont Cc: Arnaldo Carvalho de Melo Cc: Vlad Yasevich Cc: Sridhar Samudrala Acked-by: Serge

Re: [PATCH net-next 0/7] sctp: network namespace support Part 2: per net tunables

2012-08-14 Thread Vlad Yasevich
On 08/07/2012 01:17 PM, Eric W. Biederman wrote: Since I am motivated to get things done, and since there has been much grumbling about my patches not implementing tunables, I have added tunable support on top of my last patchset. I have performed basic testing on the these patches and nothing

Re: [PATCH net-next 1/7] sctp: Add infrastructure for per net sysctls

2012-08-14 Thread Vlad Yasevich
On 08/07/2012 01:23 PM, Eric W. Biederman wrote: Start with an empty sctp_net_table that will be populated as the various tunable sysctls are made per net. Signed-off-by: "Eric W. Biederman" Acked-by: Vlad Yasevich --- include/net/netns/sctp.h |6 +- include/net/sctp/sctp.h |

Re: [PATCH net-next 9/9] sctp: Make the mib per network namespace

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:47 PM, Eric W. Biederman wrote: Signed-off-by: "Eric W. Biederman" Acked-by: Vlad Yasevich --- include/net/netns/sctp.h |3 + include/net/sctp/sctp.h |9 +-- net/sctp/associola.c |2 +- net/sctp/chunk.c |2 +- net/sctp/endpointola.c |

Re: [PATCH net-next 8/9] sctp: Enable sctp in all network namespaces

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:46 PM, Eric W. Biederman wrote: - Fix the sctp_af operations to work in all namespaces - Enable sctp socket creation in all network namespaces. Signed-off-by: "Eric W. Biederman" Acked-by: Vlad Yasevich --- net/sctp/ipv6.c | 12 ++-- net/sctp/protocol.c

Re: [PATCH net-next 7/9] sctp: Make the proc files per network namespace.

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:45 PM, Eric W. Biederman wrote: - Convert all of the files under /proc/net/sctp to be per network namespace. - Don't print anything for /proc/net/sctp/snmp except in the initial network namespaces as the snmp counters still have to be converted to be per network

Re: [PATCH net-next 6/9] sctp: Move the percpu sockets counter out of sctp_proc_init

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:44 PM, Eric W. Biederman wrote: The percpu sctp socket counter has nothing at all to do with the sctp proc files, and having it in the wrong initialization is confusing, and makes network namespace support a pain. Signed-off-by: "Eric W. Biederman" Acked-by: Vlad Yasevich

Re: [PATCH net-next 5/9] sctp: Make the ctl_sock per network namespace

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:43 PM, Eric W. Biederman wrote: - Kill sctp_get_ctl_sock, it is useless now. - Pass struct net where needed so net->sctp.ctl_sock is accessible. Signed-off-by: "Eric W. Biederman" Acked-by: Vlad Yasevich --- include/net/netns/sctp.h |8 +++

Re: [PATCH net-next 4/9] sctp: Make the address lists per network namespace

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:42 PM, Eric W. Biederman wrote: - Move the address lists into struct net - Add per network namespace initialization and cleanup - Pass around struct net so it is everywhere I need it. - Rename all of the global variable references into references to the variables moved into

Re: [PATCH net-next 3/9] sctp: Make the association hashtable handle multiple network namespaces

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:41 PM, Eric W. Biederman wrote: - Use struct net in the hash calculation - Use sock_net(association.base.sk) in the association lookups. - On receive calculate the network namespace from skb->dev. - Pass struct net from receive down to the functions that actually do the

Re: [PATCH net-next 2/9] sctp: Make the endpoint hashtable handle multiple network namespaces

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:40 PM, Eric W. Biederman wrote: - Use struct net in the hash calculation - Use sock_net(endpoint.base.sk) in the endpoint lookups. - On receive calculate the network namespace from skb->dev. Signed-off-by: "Eric W. Biederman" Acked-by: Vlad Yasevich ---

Re: [PATCH net-next 1/9] sctp: Make the port hash table use struct net in it's key.

2012-08-14 Thread Vlad Yasevich
On 08/06/2012 02:39 PM, Eric W. Biederman wrote: - Add struct net into the port hash table hash calculation - Add struct net inot the struct sctp_bind_bucket so there is a memory of which network namespace a port is allocated in. No need for a ref count because sctp_bind_bucket only

Re: [PATCH net-next 0/7] sctp: network namespace support Part 2: per net tunables

2012-08-14 Thread Vlad Yasevich
On 08/14/2012 05:14 PM, David Miller wrote: Come on Vlad, please review this stuff some time this century. If you want inclusion to be dependent upon your review, then the onus is on you to review it in a timely manner. And you are not doing so here. I'm not letting Eric's patches rot in

Re: [PATCH 02/16] user_ns: use new hashtable implementation

2012-08-14 Thread Eric W. Biederman
Sasha Levin writes: > On 08/15/2012 03:08 AM, Eric W. Biederman wrote: >>> I can offer the following: I'll write a small module that will hash >>> 1...1 >>> > into a hashtable which uses 7 bits (just like user_ns) and post the >>> > distribution >>> > we'll get. >> That won't hurt. I

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-14 Thread Fengguang Wu
On Tue, Aug 14, 2012 at 02:16:52PM -0700, Kees Cook wrote: > On Thu, Aug 9, 2012 at 6:52 PM, Fengguang Wu wrote: > > On Thu, Aug 09, 2012 at 06:39:34PM -0700, Kees Cook wrote: > >> Hi, > >> > >> So, after taking a closer look at this, I cannot understand how it's > >> possible. Yama's task_lock

Re: [PATCH] select GENERIC_ATOMIC64 for c6x/score/unicore32 archs

2012-08-14 Thread Fengguang Wu
> -#define L1_CACHE_BYTESL2_CACHE_BYTES > +#define L1_CACHE_SHIFTL2_CACHE_SHIFT > +#define L1_CACHE_BYTES(1 << L2_CACHE_SHIFT) Nitpick: the last line could better be: +#define L1_CACHE_BYTES(1 << L1_CACHE_SHIFT) Reviewed-by: Fengguang Wu Thanks! -- To

Re: [PATCH] select GENERIC_ATOMIC64 for c6x/score/unicore32 archs

2012-08-14 Thread Fengguang Wu
On Tue, Aug 14, 2012 at 12:22:49PM -0400, Mark Salter wrote: > On Tue, 2012-08-14 at 23:34 +0800, Fengguang Wu wrote: > > Sorry I have no compilers for build testing these changes, however the > > risk looks low and it's much better than to leave the arch broken, > > considering that Eric will do

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

2012-08-14 Thread Pallala, Ramakrishna
> On Fri, Jul 27, 2012 at 10:26:21PM +0530, Ramakrishna Pallala wrote: > > 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. > >

RE: [PATCH] smb347_charger: fix battery status reporting logic for charger faults

2012-08-14 Thread Pallala, Ramakrishna
> On Fri, Jul 20, 2012 at 07:22:48PM +0530, Ramakrishna Pallala wrote: > > This patch checks for charger status register for determining the > > battery charging status and reports Discharing/Charging/Not > > Charging/Full accordingly. > > > > This patch also adds the interrupt support for

Re: [PATCH V5 09/18] MIPS: Loongson: Add swiotlb to support big memory (>4GB).

2012-08-14 Thread Huacai Chen
On Tue, Aug 14, 2012 at 1:54 AM, Konrad Rzeszutek Wilk wrote: >> +static void *loongson_dma_alloc_coherent(struct device *dev, size_t size, >> + dma_addr_t *dma_handle, gfp_t gfp, struct >> dma_attrs *attrs) >> +{ >> + void *ret; >> + >> + if

[UPDATE][PATCH -v3 3/4] PCI/PM: Fix config reg access for D3cold and bridge suspending

2012-08-14 Thread Huang Ying
This patch fixes the following bug: http://marc.info/?l=linux-pci=134338059022620=2 Where lspci does not work properly if a device and the corresponding parent bridge (such as PCIe port) is suspended. This is because the device configuration space registers will be not accessible if the

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked\

2012-08-14 Thread Marcelo Tosatti
On Tue, Aug 14, 2012 at 05:59:06PM -0500, Anthony Liguori wrote: > Marcelo Tosatti writes: > > > On Tue, Aug 14, 2012 at 02:35:34PM -0500, Anthony Liguori wrote: > >> Marcelo Tosatti writes: > >> > >> > On Tue, Aug 14, 2012 at 01:53:01PM -0500, Anthony Liguori wrote: > >> >> Marcelo Tosatti

Re: [PATCH 02/16] user_ns: use new hashtable implementation

2012-08-14 Thread Sasha Levin
On 08/15/2012 03:08 AM, Eric W. Biederman wrote: >> I can offer the following: I'll write a small module that will hash 1...1 >> > into a hashtable which uses 7 bits (just like user_ns) and post the >> > distribution >> > we'll get. > That won't hurt. I think 1-100 then 1000-1100 may

[PATCH 5/7] staging: comedi: dnya_pci10xx: move boardinfo values into subdevice setup

2012-08-14 Thread H Hartley Sweeten
There is only one "boardtype" actually supported by this driver. The second entry in the boardinfo is a dummy entry that would result in an unusable device. Remove the boardinfo fields and just use the open coded values in the subdevice setup. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott

[PATCH 7/7] staging: comedi: dnya_pci10xx: remove unused DRV_NAME

2012-08-14 Thread H Hartley Sweeten
This define is not used in the driver. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/dyna_pci10xx.c

[PATCH 6/7] staging: comedi: dnya_pci10xx: remove unneeded boardinfo code

2012-08-14 Thread H Hartley Sweeten
The boardinfo code is not needed by this driver. Only one board type is supported. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 38 ++- 1 file changed, 2 insertions(+), 36 deletions(-) diff

[PATCH 3/7] staging: comedi: dnya_pci10xx: cleanup the analog output range

2012-08-14 Thread H Hartley Sweeten
The analog output channels on this board only support a single range, 0-10V unipolar. This range is available as an exported symbol from the comedi core and "range_unipolar10". Use that instead of duplicating the range in this driver and remove the information from the boardinfo. Signed-off-by: H

[PATCH 4/7] staging: comedi: dnya_pci10xx: remove unused fields in the boardinfo

2012-08-14 Thread H Hartley Sweeten
The *_bits information in the boardinfo is not used by the driver. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 8 1 file changed, 8 deletions(-) diff --git

[PATCH 2/7] staging: comedi: dnya_pci10xx: use attach_pci callback

2012-08-14 Thread H Hartley Sweeten
Convert this PCI driver to use the comedi PCI auto config attach mechanism by adding an attach_pci callback function. Since the driver does not require any external configuration options, disable the legacy attach by making the attach simply return -ENOSYS. This removes the need to walk the pci

[PATCH 1/7] staging: comedi: dnya_pci10xx: remove thisboard and devpriv macros

2012-08-14 Thread H Hartley Sweeten
These macros rely on local variables having a specific name. Replace them with local variables where used. Use the comedi_board() helper to get the thisboard pointer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 23

Re: Re: O_DIRECT to md raid 6 is slow

2012-08-14 Thread kedacomkernel
On 2012-08-15 09:12 Andy Lutomirski Wrote: >Ubuntu's 3.2.0-27-generic. I can test on a newer kernel tomorrow. I guess maybe miss the blk_plug function. Can you add this patch and retest. Move unplugging for direct I/O from around ->direct_IO() down to do_blockdev_direct_IO(). This implicitly

[PATCH 0/7] staging: comedi: dyna_pci10xx: update driver

2012-08-14 Thread H Hartley Sweeten
Update the dyna_pci10xx driver to use the PCI Pnp auto config mechanism of the comedi core and remove the unneeded boardinfo code. H Hartley Sweeten (7): staging: comedi: dnya_pci10xx: remove thisboard and devpriv macros staging: comedi: dnya_pci10xx: use attach_pci callback staging:

Re: O_DIRECT to md raid 6 is slow

2012-08-14 Thread Andy Lutomirski
Ubuntu's 3.2.0-27-generic. I can test on a newer kernel tomorrow. --Andy On Tue, Aug 14, 2012 at 6:07 PM, kedacomkernel wrote: > On 2012-08-15 08:49 Andy Lutomirski Wrote: >>If I do: >># dd if=/dev/zero of=/dev/md0p1 bs=8M >>then iostat -m 5 says: >> >>avg-cpu: %user %nice %system %iowait

Re: [PATCH 02/16] user_ns: use new hashtable implementation

2012-08-14 Thread Eric W. Biederman
Sasha Levin writes: > On 08/15/2012 01:52 AM, Eric W. Biederman wrote: >> Sasha Levin writes: >> >>> Switch user_ns to use the new hashtable implementation. This reduces the >>> amount of >>> generic unrelated code in user_ns. >> >> Two concerns here. >> 1) When adding a new entry you

Re: O_DIRECT to md raid 6 is slow

2012-08-14 Thread kedacomkernel
On 2012-08-15 08:49 Andy Lutomirski Wrote: >If I do: ># dd if=/dev/zero of=/dev/md0p1 bs=8M >then iostat -m 5 says: > >avg-cpu: %user %nice %system %iowait %steal %idle > 0.000.00 26.88 35.270.00 37.85 > >Device:tpsMB_read/sMB_wrtn/sMB_read

Re: [tip:auto-latest 18/37] kernel/sched/core.c:6460:1: error: 'SD_PREFER_LOCAL' undeclared (first use in this function)

2012-08-14 Thread Alex Shi
On 08/15/2012 04:36 AM, Fengguang Wu wrote: > Hi Alex, > > FYI, kernel build failed on > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git auto-latest > head: e42942691c8262b7fe2a7b88577623082b988217 > commit: f03542a7019c600163ac4441d8a826c92c1bd510 [18/37] sched: recover

Re: [PATCH v2 15/31] arm64: SMP support

2012-08-14 Thread Olof Johansson
Hi, On Tue, Aug 14, 2012 at 06:52:16PM +0100, Catalin Marinas wrote: > This patch adds SMP initialisation and spinlocks implementation for > AArch64. The spinlock support uses the new load-acquire/store-release > instructions to avoid explicit barriers. The architecture also specifies > that an

Re: [PATCH 02/19] Input: Improve the events-per-packet estimate

2012-08-14 Thread Ping Cheng
On Tue, Aug 14, 2012 at 2:12 PM, Dmitry Torokhov wrote: > >> On Sun, Aug 12, 2012 at 2:42 PM, Henrik Rydberg > >> wrote: > >> > Many MT devices send a number of keys along with the mt information. > >> > This patch makes sure that there is room for them in the packet > >> > buffer. >> >> So,

Re: [PATCH] efi: add efi_runtime state checking

2012-08-14 Thread H. Peter Anvin
On 06/28/2012 10:02 AM, Olof Johansson wrote: On Wed, Jun 27, 2012 at 2:52 PM, H. Peter Anvin wrote: On 06/27/2012 02:35 PM, Olof Johansson wrote: This adds an efi_runtime variable indicating whether the efi runtime services are available. The only time they are expected to not be available

O_DIRECT to md raid 6 is slow

2012-08-14 Thread Andy Lutomirski
If I do: # dd if=/dev/zero of=/dev/md0p1 bs=8M then iostat -m 5 says: avg-cpu: %user %nice %system %iowait %steal %idle 0.000.00 26.88 35.270.00 37.85 Device:tpsMB_read/sMB_wrtn/sMB_readMB_wrtn sdb 265.20 1.16

Re: [PATCH 02/16] user_ns: use new hashtable implementation

2012-08-14 Thread Sasha Levin
On 08/15/2012 01:52 AM, Eric W. Biederman wrote: > Sasha Levin writes: > >> Switch user_ns to use the new hashtable implementation. This reduces the >> amount of >> generic unrelated code in user_ns. > > Two concerns here. > 1) When adding a new entry you recompute the hash where previously

Re: [PATCH v2 14/31] arm64: DMA mapping API

2012-08-14 Thread Olof Johansson
Hi, On Tue, Aug 14, 2012 at 06:52:15PM +0100, Catalin Marinas wrote: > This patch adds support for the DMA mapping API. It uses dma_map_ops for > flexibility and it currently supports swiotlb. This patch could be > simplified further if the DMA accesses are coherent (not mandated by the >

Re: [PATCH v2 13/31] arm64: Device specific operations

2012-08-14 Thread Olof Johansson
On Tue, Aug 14, 2012 at 06:52:14PM +0100, Catalin Marinas wrote: > This patch adds several definitions for device communication, including > I/O accessors and ioremap(). The __raw_* accessors are implemented as > inline asm to avoid compiler generation of post-indexed accesses (less > efficient to

Re: [PATCH 01/16] hashtable: introduce a small and naive hashtable

2012-08-14 Thread Tejun Heo
Hello, (Sasha, would it be possible to change your MUA so that it breaks long lines. It's pretty difficult to reply to.) On Wed, Aug 15, 2012 at 02:24:49AM +0200, Sasha Levin wrote: > The hashtable uses hlist. hlist provides us with an entire family of > init functions which I'm supposed to

Re: [ 36/44] x86, microcode: Sanitize per-cpu microcode reloading interface

2012-08-14 Thread Henrique de Moraes Holschuh
I believe the patch bellow, which was required on 3.2, will also be necessary. From: Kevin Winchester Subject: [PATCH] x86: Simplify code by removing a !SMP #ifdefs from 'struct cpuinfo_x86' commit 141168c36cdee3ff23d9c7700b0edc47cb65479f and commit 3f806e50981825fa56a7f1938f24c0680816be45

Re: [PATCH 01/16] hashtable: introduce a small and naive hashtable

2012-08-14 Thread Sasha Levin
On 08/15/2012 01:25 AM, NeilBrown wrote: > On Tue, 14 Aug 2012 18:24:35 +0200 Sasha Levin > wrote: > > >> +static inline void hash_init_size(struct hlist_head *hashtable, int bits) >> +{ >> +int i; >> + >> +for (i = 0; i < HASH_SIZE(bits); i++) >> +INIT_HLIST_HEAD(hashtable

Re: [PATCH v2 12/31] arm64: Atomic operations

2012-08-14 Thread Olof Johansson
Hi, On Tue, Aug 14, 2012 at 06:52:13PM +0100, Catalin Marinas wrote: > This patch introduces the atomic, mutex and futex operations. Many > atomic operations use the load-acquire and store-release operations > which imply barriers, avoiding the need for explicit DMB. > > Signed-off-by: Will

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Tejun Heo
Hello, Thomas. On Wed, Aug 15, 2012 at 01:33:09AM +0200, Thomas Gleixner wrote: > To convince me to accept your patches you should start answering my > questions and suggestions seriously in the first place and not > discarding them upfront as lunatic visions. > > As long as you can't provide a

Re: [PATCH 05/11] fblog: register one fblog object per framebuffer

2012-08-14 Thread Ryan Mallon
On 14/08/12 21:01, David Herrmann wrote: > Hi Ryan > > On Mon, Aug 13, 2012 at 1:54 AM, Ryan Mallon wrote: >> On 13/08/12 00:53, David Herrmann wrote: >>> drivers/video/console/fblog.c | 195 >>> ++ >>> 1 file changed, 195 insertions(+) >>> >>> diff

Re: [PATCH v2 08/31] arm64: CPU support

2012-08-14 Thread Olof Johansson
Hi, On Tue, Aug 14, 2012 at 06:52:09PM +0100, Catalin Marinas wrote: > diff --git a/arch/arm64/include/asm/cputype.h > b/arch/arm64/include/asm/cputype.h > new file mode 100644 > index 000..ef54125 > --- /dev/null > +++ b/arch/arm64/include/asm/cputype.h > @@ -0,0 +1,49 @@ > +/* > + *

Re: [patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-14 Thread Al Viro
On Wed, Aug 15, 2012 at 02:21:47AM +0400, Cyrill Gorcunov wrote: > > Hmm, in very first versions I've been using one ->show method, but > > then I thought that this is not very correlate with seq-files idea > > where for each record show/next sequence is called. I'll update (this > > for sure will

Re: pull request: wireless 2012-08-14

2012-08-14 Thread David Miller
From: "John W. Linville" Date: Tue, 14 Aug 2012 15:02:46 -0400 > Alexey Khoroshilov provides a potential memory leak in rndis_wlan. > > Bob Copeland gives us an ath5k fix for a lockdep problem. > > Dan Carpenter fixes a signedness mismatch in at76c50x. > > Felix Fietkau corrects a regression

Re: [PATCH 4/5] drivers/net/ethernet/mellanox/mlx4/mcg.c: fix error return code

2012-08-14 Thread David Miller
From: Julia Lawall Date: Tue, 14 Aug 2012 14:58:34 +0200 > From: Julia Lawall > > Convert a 0 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: (http://coccinelle.lip6.fr/) ...

Re: [PATCH 3/5] drivers/net/ethernet/freescale/fs_enet: fix error return code

2012-08-14 Thread David Miller
From: Julia Lawall Date: Tue, 14 Aug 2012 14:58:33 +0200 > From: Julia Lawall > > Convert a 0 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: (http://coccinelle.lip6.fr/) ...

Re: [PATCH 4/5] drivers/net/ethernet/ti/davinci_cpdma.c: Remove potential NULL dereference

2012-08-14 Thread David Miller
From: Julia Lawall Date: Tue, 14 Aug 2012 17:49:47 +0200 > From: Julia Lawall > > If the NULL test is necessary, the initialization involving a dereference of > the tested value should be moved after the NULL test. > > The sematic patch that fixes this problem is as follows: >

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Tejun Heo
Hello, On Tue, Aug 14, 2012 at 4:46 PM, Thomas Gleixner wrote: > Do you really expect that I follow all of kernel dev posts within a > day of returning from a two weeks vacation? The head message says on what it's based on and the git branch. I can't read your mind or know your current state.

Re: [PATCH 02/16] user_ns: use new hashtable implementation

2012-08-14 Thread Eric W. Biederman
Sasha Levin writes: > Switch user_ns to use the new hashtable implementation. This reduces the > amount of > generic unrelated code in user_ns. Two concerns here. 1) When adding a new entry you recompute the hash where previously that was not done. I believe that will slow down adding of

Re: [PATCH] rtc: tps65910: Add RTC driver for TPS65910 PMIC RTC

2012-08-14 Thread Andrew Morton
On Thu, 26 Jul 2012 12:05:19 +0530 Venu Byravarasu wrote: > TPS65910 PMIC is a MFD with RTC as one of the device. > Adding RTC driver for supporting RTC device present > inside TPS65910 PMIC. > > Only support for RTC alarm is implemented as part of this patch. It needs a build fix:

Re: [PATCH v2 07/31] arm64: Process management

2012-08-14 Thread Olof Johansson
Hi, On Tue, Aug 14, 2012 at 06:52:08PM +0100, Catalin Marinas wrote: > diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c > new file mode 100644 > index 000..c4a4e1c > --- /dev/null > +++ b/arch/arm64/kernel/process.c > @@ -0,0 +1,416 @@ [...] > +/* > + * Function

Re: linux-next: Tree for Aug 14 (drivers/input/touchscreen/edt-ft5x06.c)

2012-08-14 Thread Simon Budig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/14/2012 07:59 PM, Randy Dunlap wrote: > on x86_64, when CONFIG_DEBUG_FS is not enabled: > > drivers/input/touchscreen/edt-ft5x06.c: In function > 'edt_ft5x06_ts_remove': > drivers/input/touchscreen/edt-ft5x06.c:846:14: error: 'struct >

Re: [PATCH v2 03/31] arm64: Exception handling

2012-08-14 Thread Thomas Gleixner
On Tue, 14 Aug 2012, Olof Johansson wrote: > > diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c > > new file mode 100644 > > index 000..8712a8e > > --- /dev/null > > +++ b/arch/arm64/kernel/traps.c > [...] > > +DEFINE_SPINLOCK(die_lock); > > Should probably be static. And

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Thomas Gleixner
Tejun, On Tue, 14 Aug 2012, Tejun Heo wrote: > On Wed, Aug 15, 2012 at 01:12:01AM +0200, Thomas Gleixner wrote: > > Just for the record. The thread evolved from here: > > > > * mod_delayed_work() can't be used from IRQ handlers. > > > > My answer was: > > > > This function does not

[PATCH V3 2/3] PPC64: Add support for instantiating SML from Open Firmware

2012-08-14 Thread Ashley Lai
This patch instantiate Stored Measurement Log (SML) and put the log address and size in the device tree. Signed-off-by: Ashley Lai --- arch/powerpc/kernel/prom_init.c | 62 +++ 1 files changed, 62 insertions(+), 0 deletions(-) diff --git

[PATCH] irqdesc: delete now orphaned references to timer_rand_state

2012-08-14 Thread Paul Gortmaker
In commit c5857ccf293 ("random: remove rand_initialize_irq()") the timer_rand_state was removed from struct irq_desc. Hence we can also remove the forward declaration of it and the kernel doc information now too. Cc: Jiri Kosina Signed-off-by: Paul Gortmaker --- include/linux/irqdesc.h | 2 --

[PATCH V3 3/3] drivers/char/tpm: Add securityfs support for event log

2012-08-14 Thread Ashley Lai
This patch retrieves the event log data from the device tree during file open. The event log data will then displayed through securityfs. Signed-off-by: Ashley Lai --- drivers/char/tpm/Makefile |5 +++ drivers/char/tpm/tpm.h | 12 -- drivers/char/tpm/tpm_eventlog.h |

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Thomas Gleixner
On Tue, 14 Aug 2012, Tejun Heo wrote: > On Wed, Aug 15, 2012 at 12:45:24AM +0200, Thomas Gleixner wrote: > > And we have very well worked out mechanisms regarding cross tree > > changes, i.e. providing minimal trees to pull for other maintainers. > > If you look at the review branches, they're

[PATCH V3 1/3] drivers/char/tpm: Add new device driver to support IBM vTPM

2012-08-14 Thread Ashley Lai
This patch adds a new device driver to support IBM virtual TPM (vTPM) for PPC64. IBM vTPM is supported through the adjunct partition with firmware release 740 or higher. With vTPM support, each lpar is able to have its own vTPM without the physical TPM hardware. This driver provides TPM

Re: [PATCH 0/4] promote zcache from staging

2012-08-14 Thread Minchan Kim
Hi Seth, On Tue, Aug 14, 2012 at 05:18:57PM -0500, Seth Jennings wrote: > On 07/27/2012 01:18 PM, Seth Jennings wrote: > > zcache is the remaining piece of code required to support in-kernel > > memory compression. The other two features, cleancache and frontswap, > > have been promoted to

Re: [PATCH v2 03/31] arm64: Exception handling

2012-08-14 Thread Olof Johansson
Hi, This one is a bit denser, so just a quick first pass with a couple of minor comments. I'll revisit the rest. On Tue, Aug 14, 2012 at 06:52:04PM +0100, Catalin Marinas wrote: > +el1_sp_pc: > + /* > + *Stack or PC alignment exception handling > + */ > + mrs x0, far_el1 >

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Tejun Heo
Hello, Thomas. On Wed, Aug 15, 2012 at 01:12:01AM +0200, Thomas Gleixner wrote: > Just for the record. The thread evolved from here: > > * mod_delayed_work() can't be used from IRQ handlers. > > My answer was: > > This function does not exist. So what? > > Which was completely

Re: [PATCH v7 2/2] kvm: KVM_EOIFD, an eventfd for EOIs

2012-08-14 Thread Alex Williamson
On Wed, 2012-08-15 at 02:04 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 14, 2012 at 04:01:15PM -0600, Alex Williamson wrote: > > On Tue, 2012-08-14 at 15:35 +0300, Avi Kivity wrote: > > > On 08/12/2012 12:33 PM, Michael S. Tsirkin wrote: > > > >> > > > >> Michael, would the interface be more

Re: [PATCH 01/16] hashtable: introduce a small and naive hashtable

2012-08-14 Thread NeilBrown
On Tue, 14 Aug 2012 18:24:35 +0200 Sasha Levin wrote: > +static inline void hash_init_size(struct hlist_head *hashtable, int bits) > +{ > + int i; > + > + for (i = 0; i < HASH_SIZE(bits); i++) > + INIT_HLIST_HEAD(hashtable + i); > +} This seems like an inefficient way to do

Re: [PATCH v2 11/31] arm64: IRQ handling

2012-08-14 Thread Aaro Koskinen
Hi, On Tue, Aug 14, 2012 at 06:52:12PM +0100, Catalin Marinas wrote: > +void handle_IRQ(unsigned int irq, struct pt_regs *regs) > +{ > + struct pt_regs *old_regs = set_irq_regs(regs); > + > + irq_enter(); > + > + /* > + * Some hardware gives randomly wrong interrupts. Rather > +

Re: [PATCH v2 1/2] ARM: kirkwood: DT board setup for Seagate FreeAgent Dockstar

2012-08-14 Thread Jason Cooper
On Tue, Aug 14, 2012 at 10:43:41PM +0200, Sebastian Hesselbarth wrote: > This add a DT compatible board specific setup for the Seagate > FreeAgent Dockstar. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell King > Cc:

[PATCH V3 0/3] tpm: Add new vTPM device driver for PPC64

2012-08-14 Thread Ashley Lai
Change log V3: - Replaced TPM_NO_EVENT_LOG macro with stubs - Removed tpm_noeventlog.c file - Called of_node_put() before return in tpm_of.c Change log V2: - Removed unnecessary tpm_bios_log_setup and tpm_bios_log_teardown functions in tpm_eventlog.h (patch 3/3). - Added more descriptions on

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Thomas Gleixner
Tejun, On Tue, 14 Aug 2012, Tejun Heo wrote: > On Tue, Aug 14, 2012 at 10:43:30PM +0200, Thomas Gleixner wrote: > > > It makes the workqueue users messy. It's difficult to get completely > > > correct and subtle errors are difficult to detect / verify. > > > > Ah, the function which does not

[PATCH][RFC][Update] PM / Runtime: Introduce driver runtime PM work routine

2012-08-14 Thread Rafael J. Wysocki
On Tuesday, August 14, 2012, Rafael J. Wysocki wrote: > On Monday, August 13, 2012, Alan Stern wrote: > > On Mon, 13 Aug 2012, Rafael J. Wysocki wrote: > > > > > > I guess the best we can say is that if you call pm_runtime_barrier() > > > > after updating the dev_pm_ops method pointers then

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-14 Thread Olof Johansson
Hi, On Tue, Aug 14, 2012 at 06:52:03PM +0100, Catalin Marinas wrote: > +Before jumping into the kernel, the following conditions must be met: > + > +- Quiesce all DMA capable devices so that memory does not get > + corrupted by bogus network packets or disk data. This will save > + you many

Re: [PATCH v7 2/2] kvm: KVM_EOIFD, an eventfd for EOIs

2012-08-14 Thread Michael S. Tsirkin
On Tue, Aug 14, 2012 at 04:01:15PM -0600, Alex Williamson wrote: > On Tue, 2012-08-14 at 15:35 +0300, Avi Kivity wrote: > > On 08/12/2012 12:33 PM, Michael S. Tsirkin wrote: > > >> > > >> Michael, would the interface be more acceptable to you if we added > > >> separate ioctls to allocate and

Re: [patch net-next v2 01/15] net: introduce upper device lists

2012-08-14 Thread Stephen Hemminger
On Tue, 14 Aug 2012 23:33:44 +0100 Ben Hutchings wrote: > On Tue, 2012-08-14 at 17:05 +0200, Jiri Pirko wrote: > > This lists are supposed to serve for storing pointers to all upper devices. > > Eventually it will replace dev->master pointer which is used for > > bonding, bridge, team but it

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Tejun Heo
Hello, Thomas. On Wed, Aug 15, 2012 at 12:45:24AM +0200, Thomas Gleixner wrote: > And we have very well worked out mechanisms regarding cross tree > changes, i.e. providing minimal trees to pull for other maintainers. If you look at the review branches, they're actually structured that way so

Re: Backports mailing list

2012-08-14 Thread Luis R. Rodriguez
On Tue, Aug 14, 2012 at 9:33 AM, Luis R. Rodriguez wrote: > On Tue, Aug 14, 2012 at 9:00 AM, Luis R. Rodriguez > wrote: >> For more details please see: >> >> http://www.do-not-panic.com/2012/08/automatically-backporting-linux-kernel.html >>

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked

2012-08-14 Thread Anthony Liguori
Marcelo Tosatti writes: > On Tue, Aug 14, 2012 at 02:35:34PM -0500, Anthony Liguori wrote: >> Marcelo Tosatti writes: >> >> > On Tue, Aug 14, 2012 at 01:53:01PM -0500, Anthony Liguori wrote: >> >> Marcelo Tosatti writes: >> >> >> >> > On Tue, Aug 14, 2012 at 05:55:54PM +0300, Yan Vugenfirer

  1   2   3   4   5   6   7   8   9   10   >