Re: For review: user_namespaces(7) man page

2013-03-15 Thread Serge Hallyn
Hi, you mention that after creating a new user namespace you at first have all capabilities in the new ns. You don't explicitly mention (or I missed it - I did see the mention of securebits) that if you want to keep those capabilities after doing an exec, you need to first have something mapped t

Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt responses)

2013-03-15 Thread Jiri Kosina
On Fri, 15 Mar 2013, Greg KH wrote: > > > I have the same problem on my Lenovo T500. I think the graphics card is > > > involved. > > > > > > This laptop has "hybrid graphics" - one Intel GMA 4500MHD and one ATI > > > Mobility Radeon HD 3650. When I boot with the Intel card, I get "irq 16: > > >

[PATCH] i2c: tegra: check the clk_prepare_enable() return value

2013-03-15 Thread Laxman Dewangan
NVIDIA's Tegra SoC allows read/write of controller register only if controller clock is enabled. System hangs if read/write happens to registers without enabling clock. clk_prepare_enable() can be fail due to unknown reason and hence adding check for return value of this function. If this function

Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt responses)

2013-03-15 Thread Greg KH
On Fri, Mar 15, 2013 at 02:33:13PM +0100, Jiri Kosina wrote: > On Fri, 15 Mar 2013, Harald Arnesen wrote: > > > I have the same problem on my Lenovo T500. I think the graphics card is > > involved. > > > > This laptop has "hybrid graphics" - one Intel GMA 4500MHD and one ATI > > Mobility Radeon H

[PATCH] [TRIVIAL] Fix comment typo "CONFIG_IIO_RING_BUFFER"

2013-03-15 Thread Paul Bolle
Signed-off-by: Paul Bolle --- Entirely untested. include/linux/iio/gyro/itg3200.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/iio/gyro/itg3200.h b/include/linux/iio/gyro/itg3200.h index c53f169..2a82085 100644 --- a/include/linux/iio/gyro/itg3200.h +++ b/inc

pull request: wireless 2013-03-15

2013-03-15 Thread John W. Linville
Dave, Please pull these fixes for the 3.9 stream. On the NFC bits, Samuel says: "With this one we have: - A fix for properly decreasing socket ack log. - A timer and works cleanup upon NFC device removal. - A monitoroing socket cleanup round from llcp_socket_release. - A proper error report to

[PATCH 5/5] KVM: MMU: fast invalid all mmio sptes

2013-03-15 Thread Xiao Guangrong
This patch tries to introduce a very simple and scale way to invalid all mmio sptes - it need not walk any shadow pages and hold mmu-lock KVM maintains a global mmio invalid generation-number which is stored in kvm->arch.mmio_invalid_gen and every mmio spte stores the current global generation-num

[PATCH 4/5] KVM: MMU: store generation-number into mmio spte

2013-03-15 Thread Xiao Guangrong
Store the generation-number into bit3 ~ bit11 and bit52 ~ bit61, totally 19 bits can be used, it should be enough for nearly all most common cases In this patch, the generation-number is always 0, it will be changed in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c

[PATCH 3/5] KVM: MMU: retain more available bits available on mmio spte

2013-03-15 Thread Xiao Guangrong
Let mmio spte only use bit62 and bit63 on upper 32 bits, then bit 52 ~ bit 61 can be used for other purposes Signed-off-by: Xiao Guangrong --- arch/x86/kvm/vmx.c |4 ++-- arch/x86/kvm/x86.c |8 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/a

[PATCH 2/5] Revert "KVM: MMU: Mark sp mmio cached when creating mmio spte"

2013-03-15 Thread Xiao Guangrong
This reverts commit 95b0430d1a53541076ffbaf453f8b49a547cceba. Will use a better way to zap all mmio shadow pages Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h |1 - arch/x86/kvm/mmu.c |3 --- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/

[PATCH 1/5] Revert "KVM: x86: Optimize mmio spte zapping when, creating/moving memslot"

2013-03-15 Thread Xiao Guangrong
This reverts commit 982b3394dd23eec6e5a2f7871238435a167b63cc. This way is not scale, will use a simple and scale way to zap all mmio sptes later Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h |1 - arch/x86/kvm/mmu.c | 18 -- arch/x86/kvm/x86

[PATCH 0/5] KVM: MMU: fast invalid all mmio sptes

2013-03-15 Thread Xiao Guangrong
The current way is holding hot mmu-lock and walking all shadow pages, this is not scale. This patchset tries to introduce a very simple and scale way to fast invalid all mmio sptes - it need not walk any shadow pages and hold any locks. The idea is simple: KVM maintains a global mmio invalid gener

[PATCH v2 01/23] usb: phy: nop: Add some parameters to platform data

2013-03-15 Thread Roger Quadros
Add clk_rate parameter to platform data. If supplied, the NOP phy driver will program the clock to that rate during probe. Also add 2 flags, needs_vcc and needs_reset. If the flag is set and the regulator couldn't be found then the driver will bail out with -EPROBE_DEFER. Signed-off-by: Roger Qua

[PATCH] misc: Remove max8997-muic.o Makefile line again

2013-03-15 Thread Paul Bolle
Commit 20259849bb1ac1ffb0156eb359810e8b99cb644d ("VMCI: Some header and config files.") readded this Makefile line. Remove it again. Signed-off-by: Paul Bolle --- Bravely untested. drivers/misc/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/Makefile b/drivers/misc/Make

Re: lgetxattr()/getxattr() return different values on a file labelled with selinux disabled

2013-03-15 Thread Thomas COUDRAY
2013/3/15 Stephen Smalley : > f is truly a regular file and not a symlink pointing to a regular file? f is a truly regular file. > before_t and after_t are both defined in the policy? Only before_t was defined in the policy. When I define after_t in the policy, both commands return the same labe

[PATCH v2 03/23] ARM: OMAP2+: omap4panda: Provide USB Host's PHY platform data

2013-03-15 Thread Roger Quadros
Add platform device and data for 'nop-usb-xceiv'. This will be used as PHY for HS USB port 1, so provide binding information for it. Get rid of managing the PHY clock as it will be done by the PHY driver. For that to work we create a clock alias that links the PHY clock name to the PHY device name

[PATCH v2 02/23] ARM: OMAP2+: omap-usb-host: Add usbhs_init_phys()

2013-03-15 Thread Roger Quadros
This helper allows board support code to add the PHY's VCC and RESET regulators which are GPIO controlled. It also links the "vcc" and "reset" supplies to the PHY's device ID that is supplied in the struct usbhs_phy_data argument. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/usb-host.c

[PATCH v2 05/23] ARM: OMAP3: Beagle: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add platform device for 'nop-usb-xceiv'. This will be used as a PHY for HS USB Port 2, so provide binding information for it. Use usbhs_init_phys() to register the PHY's VCC and RESET regulators. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3beagle.c | 44 +++

[PATCH v2 07/23] ARM: OMAP3: 3630SDP: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add 2 platform devices for 'nop-usb-xceiv'. These will be used as PHYs for HS USB ports 1 and 2 so provide binding information for them. Use usbhs_init_phys() to register the PHY's RESET regulators. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-3630sdp.c | 48

[PATCH v2 09/23] ARM: OMAP: AM3517evm: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add 2 platform devices for 'nop-usb-xceiv'. These will be used as a PHY for HS USB Port 1 and 2, so provide binding information for them. Use usbhs_init_phys() to register the PHY's RESET regulators. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-am3517evm.c | 41 +

[PATCH v2 11/23] ARM: OMAP3: cm-t3517: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add 2 platform devices for 'nop-usb-xceiv'. These will be used as PHYs for HS USB ports 1 and 2 so provide binding information for them. Use usbhs_init_phys() to register the PHY's RESET regulators. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-cm-t3517.c | 45 +++

[PATCH v2 12/23] ARM: OMAP: devkit8000: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add platform device for 'nop-usb-xceiv'. This will be used as a PHY for HS USB Port 1, so provide binding information for it. Signed-off-by: Roger Quadros Acked-by: Felipe Balbi --- arch/arm/mach-omap2/board-devkit8000.c | 20 1 files changed, 12 insertions(+), 8 deletion

[PATCH] nouveau: nv10_fence.c: avoid sparse warning

2013-03-15 Thread Laurent Navet
fix this warning : sparse: symbol 'nv10_fence_context_new' was not declared. Should it be static? Signed-off-by: Laurent Navet --- drivers/gpu/drm/nouveau/nouveau_fence.h |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.h b/drivers/gpu/drm/nouveau/nou

[PATCH v2 08/23] ARM: OMAP: AM3517crane: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add platform device for 'nop-usb-xceiv'. This will be used as a PHY for HS USB Port 1, so provide binding information for it. Use usbhs_init_phys() to register the PHY's VCC and RESET regulators. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-am3517crane.c | 38 +++

[PATCH v2 06/23] ARM: OMAP3: 3430SDP: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add 2 platform devices for 'nop-usb-xceiv'. These will be used as PHYs for HS USB ports 1 and 2 so provide binding information for them. Use usbhs_init_phys() to register the PHY's RESET regulators. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-3430sdp.c | 47

[PATCH v2 04/23] ARM: OMAP2+: omap4panda: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's VCC and RESET regulators. The VCC and RESET will then be managed by the PHY driver. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap4panda.c | 37 +-- 1 files changed, 11 insertions(+), 26 deletions(-) dif

[PATCH v2 14/23] ARM: OMAP3: omap3evm: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add platform device for 'nop-usb-xceiv'. This will be used as a PHY for HS USB Port 2, so provide binding information for it. Use usbhs_init_phys() to register the PHY's RESET regulator. VAUX2 supplies the PHY's VCC. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3evm.c | 41 +

[PATCH v2 18/23] ARM: OMAP3: overo: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add platform device for 'nop-usb-xceiv'. This will be used as a PHY for HS USB Port 2, so provide binding information for it. Use usbhs_init_phys() to register the PHY's RESET regulator. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-overo.c | 32 ++--

[PATCH v2 19/23] ARM: OMAP: zoom: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add platform device for 'nop-usb-xceiv'. This will be used as a PHY for HS USB Port 2, so provide binding information for it. Use usbhs_init_phys() to register the PHY's RESET regulator. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-zoom.c | 32 ++-- 1

[PATCH v2 21/23] ARM: dts: omap4-panda: Add USB Host support

2013-03-15 Thread Roger Quadros
Provide the RESET and Power regulators for the USB PHY, the USB Host port mode and the PHY device. Also provide pin multiplexer information for the USB host pins. CC: Benoît Cousson Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap4-panda.dts | 56 +

[PATCH v2 16/23] ARM: OMAP3: omap3stalker: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add platform device for 'nop-usb-xceiv'. This will be used as a PHY for HS USB Port 2, so provide binding information for it. Use usbhs_init_phys() to register the PHY's RESET regulator. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3stalker.c | 29 ++-

[PATCH v2 17/23] ARM: OMAP3: omap3touchbook: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add 2 platform devices for 'nop-usb-xceiv'. These will be used as a PHY for HS USB Ports 1 and 2, so provide binding information for them. Use usbhs_init_phys() to register the PHY's RESET regulator. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3touchbook.c | 38

[PATCH v2 15/23] ARM: OMAP3: omap3pandora: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add platform device for 'nop-usb-xceiv'. This will be used as a PHY for HS USB Port 2, so provide binding information for it. Use usbhs_init_phys() to register the PHY's RESET regulator. VAUX2 supplies the PHY's VCC. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3pandora.c |

[PATCH v2 13/23] ARM: OMAP3: igep0020: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add 2 platform devices for 'nop-usb-xceiv'. These will be used as PHYs for HS USB ports 1 and 2 so provide binding information for them. Use usbhs_init_phys() to register the PHY's RESET regulators. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-igep0020.c | 66 +++

[PATCH v2 22/23] ARM: dts: OMAP3: Add HS USB Host IP nodes

2013-03-15 Thread Roger Quadros
Adds device nodes for HS USB Host module, TLL module, OHCI and EHCI controllers. CC: Benoît Cousson Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap3.dtsi | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap3.dtsi

[PATCH v2 23/23] ARM: dts: omap3-beagle: Add USB Host support

2013-03-15 Thread Roger Quadros
Provide RESET and Power regulators for the USB PHY, the USB Host port mode and the PHY device. Also provide pin multiplexer information for USB host pins. CC: Benoît Cousson Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap3-beagle.dts | 71 1 files

[PATCH v2 20/23] ARM: dts: OMAP4: Add HS USB Host IP nodes

2013-03-15 Thread Roger Quadros
Adds device nodes for HS USB Host module, TLL module, OHCI and EHCI controllers. CC: Benoît Cousson Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap4.dtsi | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap4.dtsi b

[PATCH v2 10/23] ARM: OMAP3: cm-t35: Adapt to ehci-omap changes

2013-03-15 Thread Roger Quadros
Add 2 platform devices for 'nop-usb-xceiv'. These will be used as PHYs for HS USB ports 1 and 2 so provide binding information for them. Use usbhs_init_phys() to register the PHY's RESET regulators. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-cm-t35.c | 45 +

[PATCH v2 00/23] ARM: OMAP2+: Adapt to ehci-omap changes for 3.10

2013-03-15 Thread Roger Quadros
Hi Tony, These patches provide the SoC side code required to support the changes in the OMAP USB Host drivers done in [1], [2] & [3]. Device tree support is added for Beagleboard and Panda. NOTE: The first patch needs to be shared between the OMAP tree and Felipe's USB tree. v2: - Added helper

Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt responses)

2013-03-15 Thread Jiri Kosina
On Fri, 15 Mar 2013, Jiri Kosina wrote: > > I have the same problem on my Lenovo T500. I think the graphics card is > > involved. > > > > This laptop has "hybrid graphics" - one Intel GMA 4500MHD and one ATI > > Mobility Radeon HD 3650. When I boot with the Intel card, I get "irq 16: > > nobody c

Re: + atomic-improve-atomic_inc_unless_negative-atomic_dec_unless_positive .patch added to -mm tree

2013-03-15 Thread Ming Lei
On Fri, Mar 15, 2013 at 9:46 PM, Oleg Nesterov wrote: > On 03/15, Ming Lei wrote: >> >> On Fri, Mar 15, 2013 at 12:24 AM, Oleg Nesterov wrote: >> > static inline int atomic_inc_unless_negative(atomic_t *p) >> > { >> > int v, v1; >> > - for (v = 0; v >= 0; v = v1) { >> > + fo

[PATCH v6 2/2] ARM: davinci: dm365 EVM: add support for VPBE display

2013-03-15 Thread Prabhakar lad
From: Lad, Prabhakar add support for V4L2 video display to DM365 EVM. Support for SD and ED modes is provided, along with Composite and Component outputs. Signed-off-by: Lad, Prabhakar --- arch/arm/mach-davinci/board-dm365-evm.c | 164 ++- 1 files changed, 163 inse

[PATCH v6 1/2] ARM: davinci: dm365: add support for v4l2 video display

2013-03-15 Thread Prabhakar lad
From: Lad, Prabhakar Create platform devices for various video modules like venc,osd, vpbe and v4l2 driver for dm365. Signed-off-by: Lad, Prabhakar --- arch/arm/mach-davinci/board-dm365-evm.c |4 +- arch/arm/mach-davinci/davinci.h |2 +- arch/arm/mach-davinci/dm365.c

[PATCH v6 0/2] ARM: davinci: add support for dm365 vpbe display

2013-03-15 Thread Prabhakar lad
From: Lad, Prabhakar This patch series enables VPBE display driver on DM365. This patch is work on on following pull request from Hans http://davinci-linux-open-source.1494791.n2.nabble.com/GIT-PULL-FOR-v3-10-tvp7002-davinci-blackfin-legacy-cleanups-td7582451.html Changes for v6: 1: Fixed revie

Re: [PATCH] Documentation: Remove text on tracepoint samples

2013-03-15 Thread Mathieu Desnoyers
* Paul Bolle (pebo...@tiscali.nl) wrote: > The tracepoint sample code got removed. Remove a few lines on its usage > too. > > Signed-off-by: Paul Bolle Thanks! Acked-by: Mathieu Desnoyers > --- > Documentation/trace/tracepoints.txt | 15 --- > 1 file changed, 15 deletions(-) > >

Re: [PATCHv2, RFC 08/30] thp, mm: rewrite add_to_page_cache_locked() to support huge pages

2013-03-15 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Fri, Mar 15, 2013 at 9:50 PM, Kirill A. Shutemov > wrote: > > Hillf Danton wrote: > >> On Fri, Mar 15, 2013 at 9:23 PM, Kirill A. Shutemov > >> wrote: > >> > Hillf Danton wrote: > >> >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov > >> >> wrote: > >> >> > +

Re: [BUG]: when printk too more through serial, cpu up is failed.

2013-03-15 Thread Greg KH
On Fri, Mar 15, 2013 at 09:26:26AM +0800, Shuge wrote: > 于 2013年03月14日 22:05, Greg KH 写道: > >On Thu, Mar 14, 2013 at 09:51:34PM +0800, Shuge wrote: > >>Hi all, > >> When the kernel printk too many log, the cpu is failed to come online. > >>The problem is this: > >>For example, cpu0 bring up cpu

[GIT PULL] Sound fixes for 3.9-rc3

2013-03-15 Thread Takashi Iwai
Linus, The following changes since commit 69a4cfdd444d1fe5c24d29b3a063964ac165d2cd: ALSA: ice1712: Initialize card->private_data properly (2013-03-07 15:38:58 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.9 for yo

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

2013-03-15 Thread Greg KH
On Fri, Mar 15, 2013 at 03:13:34PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the staging tree got a conflict in > drivers/staging/ccg/f_fs.c between commit 7f78e0351394 ("fs: Limit > sys_mount to only request filesystem modules") from Linus' tree and > commit 515e6d

Re: Inactive memory keep growing and how to release it?

2013-03-15 Thread Theodore Ts'o
On Fri, Mar 15, 2013 at 04:41:41PM +0800, Simon Jeons wrote: > >This is really an old kernel and also a distribution one which might > >contain a lot of patches on top of the core kernel. I would suggest to > >contact Redhat or try to reproduce the issue with the vanilla and > > What's the meaning

Re: [PATCH 1/1] tty: atmel_serial_probe(): index of atmel_ports[] fix

2013-03-15 Thread Greg KH
On Fri, Mar 15, 2013 at 03:36:38PM +0100, Nicolas Ferre wrote: > On 02/20/2013 05:26 PM, Pawel Wieczorkiewicz : > > From: Pawel Wieczorkiewicz > > > > Index of atmel_ports[ATMEL_MAX_UART] should be smaller > > than ATMEL_MAX_UART. > > > > Signed-off-by: Pawel Wieczorkiewicz > > Acked-by: Nicol

[PATCH] Documentation: Remove text on tracepoint samples

2013-03-15 Thread Paul Bolle
The tracepoint sample code got removed. Remove a few lines on its usage too. Signed-off-by: Paul Bolle --- Documentation/trace/tracepoints.txt | 15 --- 1 file changed, 15 deletions(-) diff --git a/Documentation/trace/tracepoints.txt b/Documentation/trace/tracepoints.txt index c0e1

[PATCH v3] regmap: Cut down on the average # of nodes in the rbtree cache

2013-03-15 Thread Dimitris Papastamos
This patch aims to bring down the average number of nodes in the rbtree cache and increase the average number of registers per node. This should improve general lookup and traversal times. This is achieved by setting the minimum size of a block within the rbnode to the size of the rbnode itself.

Re: [PATCH resend v5] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-15 Thread James Hogan
On 08/03/13 13:02, James Hogan wrote: > Add the IMG Debug Adapter File System (DAFS) for metag, which uses > SWITCH operations to communicate with a file server on a host computer > via a JTAG debug adapter. > > Signed-off-by: James Hogan > Cc: Alexander Viro > --- > This is pretty much a resend

Re: [PATCH 1/1] tty: atmel_serial_probe(): index of atmel_ports[] fix

2013-03-15 Thread Nicolas Ferre
On 02/20/2013 05:26 PM, Pawel Wieczorkiewicz : > From: Pawel Wieczorkiewicz > > Index of atmel_ports[ATMEL_MAX_UART] should be smaller > than ATMEL_MAX_UART. > > Signed-off-by: Pawel Wieczorkiewicz Acked-by: Nicolas Ferre It can be good to include this one in 3.9-rc. I also would like to ad

Re: [PATCH 1/2] task_work: make FIFO task_work list

2013-03-15 Thread Oleg Nesterov
On 03/15, li guang wrote: > > 在 2013-03-14四的 15:40 +0100,Oleg Nesterov写道: > > > --- a/kernel/task_work.c > > > +++ b/kernel/task_work.c > > > @@ -13,11 +13,12 @@ task_work_add(struct task_struct *task, struct > > > callback_head *work, bool notify) > > > head = ACCESS_ONCE(task->task_wor

Re: [PATCH] USB: EHCI: fix for leaking isochronous data

2013-03-15 Thread Alan Stern
On Fri, 15 Mar 2013, Soeren Moch wrote: > > The log shows a 1-1 match between allocations and deallocations, except > > for three excess allocations about 45 lines before the end. I have no > > idea what's up with those. They may be an artifact arising from where > > you stopped copying the log

Re: [PATCH 2/4] usb: musb: gadget: do *unmap_dma_buffer* only for valid DMA addr

2013-03-15 Thread Felipe Balbi
On Fri, Mar 15, 2013 at 06:58:50PM +0530, Kishon Vijay Abraham I wrote: > musb does not use DMA buffer for ep0 but it uses the same giveback > function *musb_g_giveback* for all endpoints (*musb_g_ep0_giveback* calls > *musb_g_giveback*). So for ep0 case request.dma will be '0' > and will result in

Re: [PATCH 1/4] usb: Fix linker errors during build

2013-03-15 Thread Felipe Balbi
On Fri, Mar 15, 2013 at 06:58:49PM +0530, Kishon Vijay Abraham I wrote: > commit 63378a (usb: phy: remove CONFIG_USB_OTG_UTILS) removed > CONFIG_USB_OTG_UTILS from Kconfig but failed to removed from Makefile. > Fixed it here. > > Signed-off-by: Kishon Vijay Abraham I I can fold it in original co

Re: [PATCH] phy: Elimination the forced speed reduction algorithm.

2013-03-15 Thread Kirill Kapranov
15/03/2013 08:35 -0400, David Miller wrote: > From: Kirill Kapranov > Date: Thu, 14 Mar 2013 14:40:52 +0400 > > > @@ -867,7 +821,6 @@ void phy_state_machine(struct work_struct *work) > > netif_carrier_on(phydev->attached_dev); > > } else { > >

[PATCH 2/3] metag: cachepart: take into account small cache bits

2013-03-15 Thread James Hogan
The CORE_CONFIG2 register has bits to indicate that the data or code cache is small, i.e. that the size described in the field should be divided by 64. Take this into account in get_icache_size() and get_dcache_size(). Signed-off-by: James Hogan --- arch/metag/kernel/cachepart.c | 14 ++-

[PATCH 1/3] metag: smp: copy cache partition and enable GCOn

2013-03-15 Thread James Hogan
When starting an SMP hardware thread, copy the cache partition configuration so that the threads share the same cache partitions. Also enable the GCOn bit if running in the local half of the virtual address space to enable coherency of shared local cache partitions. An atomic unlock system event is

[PATCH 0/3] metag: smp / cache changes

2013-03-15 Thread James Hogan
Here are a few Meta SMP and cache changes I have for v3.10. The first one removes the need to have an SMP specific bootloader to configure the cache partitions and coherency for the hardware threads that will run SMP, and the other two are very minor fixes. James Hogan (3): metag: smp: copy cach

[PATCH 3/3] metag: cachepart: fix get_global_dcache_size() typo

2013-03-15 Thread James Hogan
Compilation is broken when the kernel is destined to live in the global part of the virtual address space: arch/metag/kernel/cachepart.c In function 'get_thread_cache_size': arch/metag/kernel/cachepart.c +71 : error: implicit declaration of function 'get_global_dache_size' Fix the typo. Signed-

Re: [PATCHv2, RFC 08/30] thp, mm: rewrite add_to_page_cache_locked() to support huge pages

2013-03-15 Thread Hillf Danton
On Fri, Mar 15, 2013 at 9:50 PM, Kirill A. Shutemov wrote: > Hillf Danton wrote: >> On Fri, Mar 15, 2013 at 9:23 PM, Kirill A. Shutemov >> wrote: >> > Hillf Danton wrote: >> >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov >> >> wrote: >> >> > + page_cache_get(page); >> >> > +

Re: [PATCHv2, RFC 08/30] thp, mm: rewrite add_to_page_cache_locked() to support huge pages

2013-03-15 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Fri, Mar 15, 2013 at 9:23 PM, Kirill A. Shutemov > wrote: > > Hillf Danton wrote: > >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov > >> wrote: > >> > + page_cache_get(page); > >> > + spin_lock_irq(&mapping->tree_lock); > >> > + page->mapping = ma

Re: + atomic-improve-atomic_inc_unless_negative-atomic_dec_unless_positive .patch added to -mm tree

2013-03-15 Thread Oleg Nesterov
On 03/15, Ming Lei wrote: > > On Fri, Mar 15, 2013 at 12:24 AM, Oleg Nesterov wrote: > > static inline int atomic_inc_unless_negative(atomic_t *p) > > { > > int v, v1; > > - for (v = 0; v >= 0; v = v1) { > > + for (v = atomic_read(p); v >= 0; v = v1) { > > v1

[PATCH 3/9] metag: perf: fixes for interrupting perf counters

2013-03-15 Thread James Hogan
The overflow handler needs to read modify write when re-enabling the counter so as not to change the counter value as it may have been changed to ready the next interrupt on overflow. Similarly for interrupting counters metag_pmu_enable_counter needs to leave the counter value unchanged rather than

[PATCH 0/9] metag: perf fixes and OProfile support

2013-03-15 Thread James Hogan
This patchset fixes some issues in the Meta support for perf events (particularly perf counter interrupts), and then adds OProfile support to the Meta architecture based on perf. This is aimed at v3.10. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Rob

[PATCH 2/9] metag: perf: fix wrap handling in delta calculation

2013-03-15 Thread James Hogan
When calculating the delta, mask with MAX_PERIOD (24 bits) to handle wrapping, which particularly happens with periodic sampling since the value is intentionally set so that it will overflow soon. Signed-off-by: James Hogan Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carv

[PATCH v5 1/3] gpio: gpio-generic: Add 16 and 32 bit big endian byte order support

2013-03-15 Thread Andreas Larsson
There is no general support for 64-bit big endian accesses, so that is left unsupported. Signed-off-by: Andreas Larsson --- drivers/gpio/gpio-generic.c | 56 --- include/linux/basic_mmio_gpio.h |1 + 2 files changed, 48 insertions(+), 9 deletions(-)

[PATCH v5 3/3] gpio: grgpio: Add irq support

2013-03-15 Thread Andreas Larsson
The drivers sets up an irq domain and hands out unique virqs to irq capable gpio lines regardless of which underlying irqs maps to which gpio line. Signed-off-by: Andreas Larsson --- .../devicetree/bindings/gpio/gpio-grgpio.txt |5 + drivers/gpio/gpio-grgpio.c |

[PATCH v5 2/3] gpio: grgpio: Add device driver for GRGPIO cores

2013-03-15 Thread Andreas Larsson
This driver supports GRGPIO gpio cores available in the GRLIB VHDL IP core library from Aeroflex Gaisler. Signed-off-by: Andreas Larsson --- .../devicetree/bindings/gpio/gpio-grgpio.txt | 24 +++ drivers/gpio/Kconfig |9 ++ drivers/gpio/Makefile

[PATCH 5/9] metag: perf: fix frequency sampling (dynamic period)

2013-03-15 Thread James Hogan
Frequency sampling mode dynamically adjusts the sample period so as to hit a particular frequency of samples. The sample period starts at just 1 and then gets increased if the interrupt rate is too high. This changed sample period needs handling in metag_pmu_event_set_period to update period_left (

[PATCH 4/9] metag: perf: add missing prev_count updates

2013-03-15 Thread James Hogan
The prev_count needs setting when changing the counter value, otherwise the calculated delta will be wrong, which for frequency sampling (dynamic period sampling) results in sampling at too high a frequency. For non-interrupting performance counters it should also be cleared when enabling the coun

[PATCH v5 0/3] gpio: Add device driver for GRGPIO cores and support custom accessors with gpio-generic

2013-03-15 Thread Andreas Larsson
Differences since v4: - Split out changes to gpio-generic into patch 1 - Make the basic driver without any irq support into patch 2, so that things can be applied so far if more revisions needs to be done for the irq support parts. - Change irq support to use irq domain and put it in patch 3 S

[PATCH 1/9] metag: perf: fix core internal / perf channel mux

2013-03-15 Thread James Hogan
The value written to the PERF_ICOREx or PERF_CHANx register to select the performance events for the core internal and perf channel events was (tmp & 0x0f), but tmp was set to (config & 0xf0) so it would always be 0. Correct it to use config instead of tmp. Signed-off-by: James Hogan Cc: Peter Zi

[PATCH 6/9] metag: perf: use hard_processor_id() to get thread

2013-03-15 Thread James Hogan
Use hard_processor_id() to get the current thread number rather than get_cpu() and the hardware thread mapping. There was no matching put_cpu(), and in any case this should be slightly more efficient. Signed-off-by: James Hogan Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo

[PATCH 9/9] metag: OProfile support

2013-03-15 Thread James Hogan
Add OProfile support for metag, using the perf backend, and falling back to generic timer based sampling if perf counter interrupt support is disabled. The oprofile code prepends "metag/" to the perf pmu name to give "metag/meta2" which is more consistent with other oprofile arch names. The backt

[PATCH 8/9] metag: perf: prepare for use by oprofile

2013-03-15 Thread James Hogan
To allow our perf_events code to work with oprofile the PERF_TYPE_RAW event type attribute is implemented, which allows the internal encoding of events to be used externally (this requires some tweaks so that it handles invalid event types more gracefully), and perf_pmu_name() is adjusted to return

[PATCH 7/9] metag: perf: don't reset TXTACTCYC

2013-03-15 Thread James Hogan
The thread active cycle counter TXTACTCYC is used in __delay so it shouldn't really be reset to zero by perf. Fix perf to just read the value, and instead of clearing it, record the prev_count value in enable_counter so that the delta calculations know about the previous value. Signed-off-by: Jame

Re: [PATCHv2, RFC 19/30] thp, mm: split huge page on mmap file page

2013-03-15 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Fri, Mar 15, 2013 at 9:29 PM, Kirill A. Shutemov > wrote: > > Hillf Danton wrote: > >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov > >> wrote: > >> > > >> > We are not ready to mmap file-backed tranparent huge pages. > >> > > >> It is not on todo list either. > >

Re: [PATCH] isdn: hisax: netjet requires VIRT_TO_BUS

2013-03-15 Thread Arnd Bergmann
On Friday 15 March 2013, David Miller wrote: > The first usage seems reason, but the temtation is going to be quite > strong to misuse to block out drivers when there is "no value" in > spending time necessary to simply make them endian clean instead. Right. I'll let someone else start that discus

Re: [PATCHv2, RFC 13/30] thp, mm: implement grab_cache_huge_page_write_begin()

2013-03-15 Thread Hillf Danton
On Fri, Mar 15, 2013 at 9:35 PM, Kirill A. Shutemov wrote: > Hillf Danton wrote: >> On Fri, Mar 15, 2013 at 9:24 PM, Kirill A. Shutemov >> wrote: >> > Hillf Danton wrote: >> >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov >> >> wrote: >> >> > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE >> >> > +s

Re: [PATCH v3 20/27] PCI, xen: Use for_each_pci_resource() with xen pci

2013-03-15 Thread Konrad Rzeszutek Wilk
On Wed, Mar 13, 2013 at 04:28:15PM -0700, Yinghai Lu wrote: > Signed-off-by: Yinghai Lu > Cc: Konrad Rzeszutek Wilk Reviewed-by: Rzeszutek Wilk > Cc: virtualizat...@lists.linux-foundation.org > --- > drivers/pci/xen-pcifront.c |4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >

Re: [PATCHv2, RFC 19/30] thp, mm: split huge page on mmap file page

2013-03-15 Thread Hillf Danton
On Fri, Mar 15, 2013 at 9:29 PM, Kirill A. Shutemov wrote: > Hillf Danton wrote: >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov >> wrote: >> > >> > We are not ready to mmap file-backed tranparent huge pages. >> > >> It is not on todo list either. > > Actually, following patches implement

[GIT PULL] DMA-mapping updates for v3.9-rc3

2013-03-15 Thread Marek Szyprowski
Hi Linus, I would like to ask You for pulling a fix for ARM dma-mapping subsystem for v3.9-rc3. The following changes since commit 6dbe51c251a327e012439c4772097a13df43c5b8: Linux 3.9-rc1 (2013-03-03 15:11:05 -0800) are available in the git repository at: git://git.linaro.org/people/mszypro

Re: [PATCHv2, RFC 13/30] thp, mm: implement grab_cache_huge_page_write_begin()

2013-03-15 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Fri, Mar 15, 2013 at 9:24 PM, Kirill A. Shutemov > wrote: > > Hillf Danton wrote: > >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov > >> wrote: > >> > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE > >> > +struct page *grab_cache_huge_page_write_begin(struct address_space >

Re: [PATCH v3 0/7] ARM: dts: omap: Add dts data for USB

2013-03-15 Thread kishon
On Friday 15 March 2013 06:11 PM, Benoit Cousson wrote: + Jon Hi Kishon, On 03/07/2013 02:35 PM, Kishon Vijay Abraham I wrote: Hi Benoit, Here are the dt data patches to get usb device functional in OMAP platforms. All the patches deal with modifying arch/arm/boot except one which modifies D

Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt responses)

2013-03-15 Thread Jiri Kosina
On Fri, 15 Mar 2013, Harald Arnesen wrote: > I have the same problem on my Lenovo T500. I think the graphics card is > involved. > > This laptop has "hybrid graphics" - one Intel GMA 4500MHD and one ATI > Mobility Radeon HD 3650. When I boot with the Intel card, I get "irq 16: > nobody cared" dur

Re: [PATCHv2, RFC 16/30] thp: handle file pages in split_huge_page()

2013-03-15 Thread Hillf Danton
On Fri, Mar 15, 2013 at 9:26 PM, Kirill A. Shutemov wrote: > Hillf Danton wrote: >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov >> wrote: >> > -int split_huge_page(struct page *page) >> > +static int split_anon_huge_page(struct page *page) >> > { >> > struct anon_vma *anon_vma; >

Re: [PATCHv2, RFC 00/30] Transparent huge page cache

2013-03-15 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov > wrote: > > > > Here's the second version of the patchset. > > > > The intend of the work is get code ready to enable transparent huge page > > cache for the most simple fs -- ramfs. > > > Where is your git tree including T

[PATCH 4/4] usb: otg: twl4030: fix cold plug on OMAP3

2013-03-15 Thread Kishon Vijay Abraham I
Having twl4030_usb_phy_init() (detects if a cable is connected before twl4030 is probed) in twl4030 probe makes cable connect events to be missed by musb glue, since it gets loaded after twl4030. Having twl4030_usb_phy_init as a usb_phy ops lets twl4030_usb_phy_init to be called when glue is ready.

Re: [PATCHv2, RFC 13/30] thp, mm: implement grab_cache_huge_page_write_begin()

2013-03-15 Thread Hillf Danton
On Fri, Mar 15, 2013 at 9:24 PM, Kirill A. Shutemov wrote: > Hillf Danton wrote: >> On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov >> wrote: >> > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE >> > +struct page *grab_cache_huge_page_write_begin(struct address_space >> > *mapping, >> > +

[PATCH 1/4] usb: Fix linker errors during build

2013-03-15 Thread Kishon Vijay Abraham I
commit 63378a (usb: phy: remove CONFIG_USB_OTG_UTILS) removed CONFIG_USB_OTG_UTILS from Kconfig but failed to removed from Makefile. Fixed it here. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/Ma

[GIT PULL] at91: cleanup + soc for 3.10 #1

2013-03-15 Thread Nicolas Ferre
Arnd, Olof, This is a pull-request targeted to do some cleanup in AT91 Kconfig and board-dt-xxx.c files. It will prepare the coming introduction of our SAMA5D3 family (Atmel new Cortex-A5) that we will stack on top of these modifications soon. Thanks, best regards, The following changes since co

[PATCH 3/4] usb: otg: twl4030: use devres API for regulator get and request irq

2013-03-15 Thread Kishon Vijay Abraham I
Used devres APIs devm_request_threaded_irq and devm_regulator_get for requesting irq and for getting regulator respectively. Signed-off-by: Kishon Vijay Abraham I Tested-by: Grazvydas Ignotas --- drivers/usb/phy/phy-twl4030-usb.c | 28 1 file changed, 8 insertions

Re: [PATCHv2, RFC 25/30] thp, mm: basic huge_fault implementation for generic_file_vm_ops

2013-03-15 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov > wrote: > > > > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE > > +static int filemap_huge_fault(struct vm_area_struct *vma, struct vm_fault > > *vmf) > > +{ > > + struct file *file = vma->vm_file; > > + struct address_s

[PATCH] ARM: samsung: remove "config S3C_BOOT_WATCHDOG"

2013-03-15 Thread Paul Bolle
All users of S3C_BOOT_WATCHDOG got removed in commit 1ff5f55a8c7b011f818434923a93afc48de0b2ee ("ARM: samsung: remove unused arch_decomp_wdog() code"). Remove this symbol too. Signed-off-by: Paul Bolle --- 0) Untested. 1) Commit 1ff5f55a8c7b011f818434923a93afc48de0b2ee stated "that CONFIG_S3C_BOO

[PATCH 2/4] usb: musb: gadget: do *unmap_dma_buffer* only for valid DMA addr

2013-03-15 Thread Kishon Vijay Abraham I
musb does not use DMA buffer for ep0 but it uses the same giveback function *musb_g_giveback* for all endpoints (*musb_g_ep0_giveback* calls *musb_g_giveback*). So for ep0 case request.dma will be '0' and will result in kernel OOPS if tried to *unmap_dma_buffer* for requests in ep0. Fixed it by doi

<    1   2   3   4   5   6   7   >