Re: [ 017/109] ASoC: dapm: Fix locking during codec shutdown

2012-08-09 Thread Mark Brown
On Wed, Aug 08, 2012 at 06:13:12PM -0300, Herton Ronaldo Krzesinski wrote: Always delete irrelevant text from your quotes. Doesn't build on 3.4: linux-stable/sound/soc/soc-dapm.c: In function 'soc_dapm_shutdown_codec': linux-stable/sound/soc/soc-dapm.c:3226:18: error: 'struct snd_soc_card'

Re: [PATCH 6/6] cpupower tools: Fix warning and a bug with the cpu package count

2012-08-09 Thread Thomas Renninger
On Tuesday 07 August 2012 04:24:48 Palmer Cox wrote: The pkgs member of cpupower_topology is being used as the number of cpu packages. As the comment in get_cpu_topology notes, the package ids are not guaranteed to be contiguous. So, simply setting pkgs to the value of the highest

Re: [PATCH V2 1/3] regulator: add always set/clear masks to regulator_enable_regmap

2012-08-09 Thread Mark Brown
On Wed, Aug 08, 2012 at 03:18:45PM -0600, Stephen Warren wrote: + rdev-desc-enable_mask | + rdev-desc-en_dis_set_mask | + rdev-desc-en_dis_clr_mask, + rdev-desc-enable_mask

RE: [PATCHv2 3/4] modem_shm: u8500-shm: U8500 Shared Memory Driver

2012-08-09 Thread Arun MURTHY
Basically it doesn't suit our protocol of having base addr, read/write pointer, locking etc as the same set of structures and protocol will be used on the modem side implementation. Ok. What happens about endianness or is the modem always the same endianness as the host ? Yes its always

RE: [PATCHv2 1/4] modem_shm: Add Modem Access Framework

2012-08-09 Thread Arun MURTHY
On Wed, Aug 08, 2012 at 05:36:05AM +0200, Arun MURTHY wrote: On Tue, Aug 07, 2012 at 12:24:28PM +0530, Arun Murthy wrote: Adds Modem Access Framework, which allows for registering platform specific modem access mechanisms. The framework also exposes APIs for client

Re: [RFC PATCH 2/6] virtio/console: Add a failback for unstealable pipe buffer

2012-08-09 Thread Amit Shah
On (Thu) 09 Aug 2012 [12:58:13], Avi Kivity wrote: On 08/09/2012 12:55 PM, Amit Shah wrote: On (Thu) 09 Aug 2012 [18:24:58], Masami Hiramatsu wrote: (2012/08/09 18:03), Amit Shah wrote: On (Tue) 24 Jul 2012 [11:37:18], Yoshihiro YUNOMAE wrote: From: Masami Hiramatsu

Re: [PATCH 2/3] iio: adc: add new lp8788 adc driver

2012-08-09 Thread Jonathan Cameron
On 08/09/2012 09:22 AM, Kim, Milo wrote: TI LP8788 has ADC function. The result of LP878 ADC is used in the LP8788 power supply driver. (such like getting the battery voltage, temperature and etc) Hi, This is mostly fine though things have gotten a little confused wrt to the handling

Re: [RFC PATCH 0/6] virtio-trace: Support virtio-trace

2012-08-09 Thread Amit Shah
Hi, On (Tue) 24 Jul 2012 [11:36:57], Yoshihiro YUNOMAE wrote: Hi All, The following patch set provides a low-overhead system for collecting kernel tracing data of guests by a host in a virtualization environment. So I just have one minor comment, please post a non-RFC version of the patch.

Re: [PATCH 04/11] MFD: twl4030-audio: Add DT support

2012-08-09 Thread Peter Ujfalusi
On 08/08/2012 05:49 PM, Mark Brown wrote: That makes sense if the GPIO is actively driven, open drain should be better here, but it's still a generic thing which it'd be nice to extract. Yes, the idea in it's core is generic, but right now I can not think of a generic implementation which

Re: [PATCH] efikamx: reintroduce Genesi Efika MX Smarttop via device tree

2012-08-09 Thread Mark Brown
On Tue, Aug 07, 2012 at 04:46:18PM -0500, Matt Sealey wrote: Yay for indentation! It'd be good to rewrite your DT so you could cut down on that, at the minute it's not good for legibility. + sw1_reg: sw1 { +

Re: [PATCH 1/2] ARM: build ssi-fiq.S in ARM mode to prevent CONFIG_THUMB2_KERNEL build breakage

2012-08-09 Thread Dave Martin
On Wed, Aug 08, 2012 at 12:32:39PM -0500, Matt Sealey wrote: [...] I'm going to do a trapse through and find where Russell nacked Dave's thumb-aware rewrite.. would you mind if you have any of these boards seeing if it really DOES There was no NAK because I didn't get as far as posting the

[PATCH][Update][RFC] PM / Runtime: Introduce pm_runtime_get_and_call()

2012-08-09 Thread Rafael J. Wysocki
Unfortunately, pm_runtime_get() is not a very useful interface, because if the device is not in the active state already, it only queues up a work item supposed to resume the device. Then, the caller doesn't really know when the device is going to be resumed which makes it difficult to

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 10:21:15AM +0200, Takashi Iwai wrote: At Thu, 9 Aug 2012 10:07:13 +0200, Thierry Reding wrote: On Thu, Aug 09, 2012 at 09:42:48AM +0200, Takashi Iwai wrote: At Thu, 9 Aug 2012 09:36:42 +0200, Thierry Reding wrote: On Thu, Aug 09, 2012 at 09:31:30AM

Re: [PATCH 04/11] MFD: twl4030-audio: Add DT support

2012-08-09 Thread Mark Brown
On Thu, Aug 09, 2012 at 01:18:50PM +0300, Peter Ujfalusi wrote: On 08/08/2012 05:49 PM, Mark Brown wrote: That makes sense if the GPIO is actively driven, open drain should be better here, but it's still a generic thing which it'd be nice to extract. To cover all of this in a generic way

How to get the irq flags from the dts file

2012-08-09 Thread Wei Ni
Hi, all I'm working on tegra wlan upstream issue. The tegra board use the Broadcom 4329 as wlan device, and the driver is the brcmfmac. This wlan driver support out-band-interrupt (OOB), I want to add DT support to use this OOB. I can add following lines in the dts file to create platform device

Re: [PATCH 1/7] regulator: Update comment for set_current_limit callback of struct regulator_ops

2012-08-09 Thread Mark Brown
On Wed, Aug 08, 2012 at 08:17:18PM +0800, Axel Lin wrote: The regulators should be tending to the maximum in the available range and consumers should specify the widest range possible. Applied all except 2 and 3. Those are for actual current regulators which are a bit odd here - I'm not really

Re: [PATCH V2 2/3] regulator: add regulator_get_voltage_fixed helper op

2012-08-09 Thread Mark Brown
On Wed, Aug 08, 2012 at 03:18:46PM -0600, Stephen Warren wrote: Fixed regulators always output desc-min_uV. Add a helper get_voltage op to save duplicating this code in drivers. Just use get_voltage_linear() (or convert the existing users). -- To unsubscribe from this list: send the line

Re: [PATCH V2 3/3] regulator: add MAX8907 driver

2012-08-09 Thread Mark Brown
On Wed, Aug 08, 2012 at 03:18:47PM -0600, Stephen Warren wrote: +static struct regulator_desc max8907_regulators[] = { + REG_MBATT(), + REG_LDO(SD1, in-v1, MAX8907_REG_SDCTL1, 65, 2225000, 25000), +#define MATCH(_name, _id) \ + { \ + .name = #_name, \ +

Re: [PATCH 0/3] ARM: dt: tegra: cardhu: add entry for regulators

2012-08-09 Thread Laxman Dewangan
On Wednesday 08 August 2012 10:48 PM, Stephen Warren wrote: On 08/08/2012 12:48 AM, Laxman Dewangan wrote: This patch series add the PMIC and fixed regulators for cardhu board. There is multiple versions of cardhu baord named as A01, A02, A03..and so on. Cardhu A01 and A03 are not supported.

[PATCH] Input: omap4-keypad: Fix the pm_runtime_get_sync return check

2012-08-09 Thread Shubhrajyoti D
A non-zero on pm_runtime_get_sync shouldnt be considered as an error it only means that there was another user. Fix the error check to check for negative values only. This should fix issues like below [ 917.049713] omap4-keypad omap4-keypad: pm_runtime_get_sync() failed [ 917.056457]

Re: [PATCH 0/3] ARM: dt: tegra: cardhu: add entry for regulators

2012-08-09 Thread Laxman Dewangan
On Wednesday 08 August 2012 10:58 PM, Stephen Warren wrote: On 08/08/2012 12:48 AM, Laxman Dewangan wrote: This patch series add the PMIC and fixed regulators for cardhu board. There is multiple versions of cardhu baord named as A01, A02, A03..and so on. Cardhu A01 and A03 are not supported.

[PATCH v2 0/3] ARM: dt: tegra: cardhu: add entry for regulators

2012-08-09 Thread Laxman Dewangan
This patch series add the PMIC and fixed regulators for cardhu board. There is multiple versions of cardhu baord named as A01, A02, A03..and so on. Cardhu A01 and A03 are not supported. Cardhu A02 and A04 have different sets of GPIO for regualtors. The cardhu A04 is compatible for A05, A06 and

[PATCH v2 3/3] ARM: tegra: cardhu: add dt entry for fixed regulators

2012-08-09 Thread Laxman Dewangan
Cadhu have multiple power rails which are controlled by GPIOs. Add support of these power rail control through fixed regulators. Add entry for all fixed regulators for cardhu-a02 and a04. The details are taken from downstream kernel. Some points on this change are: * Add the tps65910-LDO5 entry

[PATCH v2 2/3] ARM: dt: tegra: cardhu: split dts file for support multiple board versions

2012-08-09 Thread Laxman Dewangan
There is multiple version of cardhu starting from A01 to A07. Cardhu A01 and A03 are not supported. Cardhu A02 will have different sets of GPIOs for fixed regulator compare to cardhu A04. The Cardhu A05, A06, A07 are compatibe with A04. Based on cardhu version, the related dts file need to be

[PATCH v2 1/3] ARM: dt: tegra: cardhu: add entry for PMIC TPS65911.

2012-08-09 Thread Laxman Dewangan
Tegra30 based platform cardhu have the power management IC TPS65911 for the regulator. Adding DT entry for this device. Data are chosen from downstream kernel and making the voltage output as require by default for device to operate. The default interrupt line is HIGH from PMIC device and so

Re: Infinite looping in omap2430.c USB driver

2012-08-09 Thread Felipe Balbi
On Sat, Jul 07, 2012 at 08:39:49AM +1000, NeilBrown wrote: Hello `./scripts/get_maintainer.pl -f drivers/usb/musb/omap2430.c` omap2430_musb_set_vbus in omap2430.c contains: while (musb_readb(musb-mregs, MUSB_DEVCTL) 0x80) {

Re: [PATCH] ARM: EXYNOS: Use generic pwm driver in Origen board

2012-08-09 Thread Tushar Behera
+ linux-kernel@vger.kernel.org - linux-ker...@lists.infradead.org On 08/09/2012 02:45 PM, Thierry Reding wrote: On Thu, Aug 09, 2012 at 02:33:55PM +0530, Tushar Behera wrote: Signed-off-by: Tushar Behera tushar.beh...@linaro.org --- arch/arm/mach-exynos/mach-origen.c | 11 +++ 1

Re: [patch v2 1/1] HID:hid-multitouch: Add ELAN prouction request when resume

2012-08-09 Thread Benjamin Tissoires
Hi Scott, we are getting closer. Just a few nitpicks: On Thu, Aug 9, 2012 at 11:22 AM, Scott Liu scott@emc.com.tw wrote: Some of ELAN's production need to with set_idle commmand when reusme. reusme - resume Signed-off-by: Scott Liu scott@emc.com.tw --- drivers/hid/hid-ids.h

[PATCH v2] ARM: EXYNOS: Use generic pwm driver in Origen board

2012-08-09 Thread Tushar Behera
Signed-off-by: Tushar Behera tushar.beh...@linaro.org --- Changes in v2: - Remove creation of s3c24xx-pwm platform device as it is already created in samsung_bl_set(). arch/arm/mach-exynos/mach-origen.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

Re: [PATCH] ARM: EXYNOS: Use generic pwm driver in Origen board

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 04:54:27PM +0530, Tushar Behera wrote: + linux-kernel@vger.kernel.org - linux-ker...@lists.infradead.org On 08/09/2012 02:45 PM, Thierry Reding wrote: On Thu, Aug 09, 2012 at 02:33:55PM +0530, Tushar Behera wrote: Signed-off-by: Tushar Behera

Re: [PATCHv2 1/4] modem_shm: Add Modem Access Framework

2012-08-09 Thread Alan Cox
Maybe tty can do this, but want to have all modem related separately. There are many such hardware and many drivers coming up in near future. tty can't do all this. We have similar things with stuff like CAIF. Modem has gone from pretending to be a serial port (tty) to appearing as a smart

Re: [GIT PULL for 3.6-rc1] media updates part 2

2012-08-09 Thread Mauro Carvalho Chehab
Em 08-08-2012 19:28, David Rientjes escreveu: On Tue, 31 Jul 2012, Mauro Carvalho Chehab wrote: [media] radio-shark: New driver for the Griffin radioSHARK USB radio receiver This one gives me a build warning if CONFIG_LEDS_CLASS is disabled: ERROR: led_classdev_register

Re: [PATCH v2] usb: gadget: composite: parse dt values

2012-08-09 Thread Sebastian Andrzej Siewior
On Tue, Jul 24, 2012 at 10:15:20AM -0300, Alexandre Pereira da Silva wrote: --- /dev/null +++ b/Documentation/devicetree/bindings/usb/gadget.txt @@ -0,0 +1,20 @@ +Usb Gadget DeviceTree bindings + +These optional properties inside the usb device controller node are used to +change some of

Re: How to get the irq flags from the dts file

2012-08-09 Thread Arnd Bergmann
On Thursday 09 August 2012, Wei Ni wrote: In the wlan driver, it will use platform_get_resource() to get the res-irq, res-flags, the irq number is right, but the flags will be IORESOURCE_IRQ, not the 0x04 (IRQF_TRIGGER_HIGH). The wlan driver wish this flags include the IRQF_TRGGER_*

Re: [PATCH v2] usb: gadget: composite: parse dt values

2012-08-09 Thread Felipe Balbi
Hi, On Thu, Aug 09, 2012 at 01:42:42PM +0200, Sebastian Andrzej Siewior wrote: On Tue, Jul 24, 2012 at 10:15:20AM -0300, Alexandre Pereira da Silva wrote: --- /dev/null +++ b/Documentation/devicetree/bindings/usb/gadget.txt @@ -0,0 +1,20 @@ +Usb Gadget DeviceTree bindings + +These

Re: [PATCH v2] usb: gadget: composite: parse dt values

2012-08-09 Thread Alexandre Pereira da Silva
On Thu, Aug 9, 2012 at 8:49 AM, Felipe Balbi ba...@ti.com wrote: Hi, On Thu, Aug 09, 2012 at 01:42:42PM +0200, Sebastian Andrzej Siewior wrote: On Tue, Jul 24, 2012 at 10:15:20AM -0300, Alexandre Pereira da Silva wrote: --- /dev/null +++ b/Documentation/devicetree/bindings/usb/gadget.txt

Re: [PATCH 2/3] mfd: twl6040: Add twl6040-gpio child

2012-08-09 Thread Mark Brown
On Mon, Jul 30, 2012 at 05:13:17PM +0300, Peter Ujfalusi wrote: If the board needs the gpo driver, but in the driver(s) I need to check for the existence of the ti,twl6040-gpo node and check if the status is okay. I think it is easier to just get the value of ti,use-gpo, if it exist and it is

Re: [PATCH v5 00/19] vfs: add the ability to retry on ESTALE to several syscalls

2012-08-09 Thread Namjae Jeon
Hi Jeff. I still found ESTALE error although patching these patch-set. Is test method correct that I try to run estale_test on each nfs server and client at the same time ? ./estale_test chmod: Stale NFS[ 281.72] # send signal from USER, SIG : 2, estale_test(107)-estale_test(102)

Re: [GIT PULL for 3.6-rc1] media updates part 2

2012-08-09 Thread Hans de Goede
Hi, My bad, sorry about this. Mauro's patch looks good. An alternative fix would be to #ifdefify the led code in the drivers themselves. Regards, Hans On 08/09/2012 01:38 PM, Mauro Carvalho Chehab wrote: Em 08-08-2012 19:28, David Rientjes escreveu: On Tue, 31 Jul 2012, Mauro Carvalho

[PATCH] timekeeping: Fix build when generic clockevents are enabled

2012-08-09 Thread Mark Brown
Commit a2c204 (timekeeping: Add suspend and resume of clock event devices) added suspend and resume operations for clockevents but did not provide stubs for these functions, breaking the build when clockevents are not being built. Add the stubs. Signed-off-by: Mark Brown

Re: How to get the irq flags from the dts file

2012-08-09 Thread Mark Brown
On Thu, Aug 09, 2012 at 11:48:42AM +, Arnd Bergmann wrote: On Thursday 09 August 2012, Wei Ni wrote: The wlan driver wish this flags include the IRQF_TRGGER_* information, and it will use this flags to configure other hw settings. If it is wrong, the wlan can't work. You can read the

Re: How to get the irq flags from the dts file

2012-08-09 Thread Arend van Spriel
On 08/09/2012 12:43 PM, Wei Ni wrote: Hi, all I'm working on tegra wlan upstream issue. The tegra board use the Broadcom 4329 as wlan device, and the driver is the brcmfmac. This wlan driver support out-band-interrupt (OOB), I want to add DT support to use this OOB. I can add following

Re: [PATCH 2/3] mfd: twl6040: Add twl6040-gpio child

2012-08-09 Thread Peter Ujfalusi
On 08/09/2012 02:55 PM, Mark Brown wrote: On Mon, Jul 30, 2012 at 05:13:17PM +0300, Peter Ujfalusi wrote: If the board needs the gpo driver, but in the driver(s) I need to check for the existence of the ti,twl6040-gpo node and check if the status is okay. I think it is easier to just get the

Re: [PATCH v5 00/19] vfs: add the ability to retry on ESTALE to several syscalls

2012-08-09 Thread Jeff Layton
On Thu, 9 Aug 2012 20:57:14 +0900 Namjae Jeon linkinj...@gmail.com wrote: Hi Jeff. I still found ESTALE error although patching these patch-set. Is test method correct that I try to run estale_test on each nfs server and client at the same time ? ./estale_test chmod: Stale NFS[

[patch] mmap: feed back correct prev vma when finding vma

2012-08-09 Thread Hillf Danton
After walking rb tree, if vma is determined, prev vma has to be determined based on vma; and rb_prev should be considered only if no vma determined. Signed-off-by: Hillf Danton dhi...@gmail.com --- --- a/mm/mmap.c Fri Aug 3 07:38:10 2012 +++ b/mm/mmap.c Mon Aug 6 20:10:18 2012 @@ -385,9

[PATCH V2 0/6] virtio-trace: Support virtio-trace

2012-08-09 Thread Yoshihiro YUNOMAE
Hi All, The following patch set provides a low-overhead system for collecting kernel tracing data of guests by a host in a virtualization environment. A guest OS generally shares some devices with other guests or a host, so reasons of any problems occurring in a guest may be from other guests or

[PATCH V2 1/6] virtio/console: Add splice_write support

2012-08-09 Thread Yoshihiro YUNOMAE
From: Masami Hiramatsu masami.hiramatsu...@hitachi.com Enable to use splice_write from pipe to virtio-console port. This steals pages from pipe and directly send it to host. Note that this may accelerate only the guest to host path. Changes in v2: - Use GFP_KERNEL instead of GFP_ATOMIC in

[PATCH V2 2/6] virtio/console: Add a failback for unstealable pipe buffer

2012-08-09 Thread Yoshihiro YUNOMAE
From: Masami Hiramatsu masami.hiramatsu...@hitachi.com Add a failback memcpy path for unstealable pipe buffer. If buf-ops-steal() fails, virtio-serial tries to copy the page contents to an allocated page, instead of just failing splice(). Signed-off-by: Masami Hiramatsu

[PATCH V2 3/6] virtio/console: Wait until the port is ready on splice

2012-08-09 Thread Yoshihiro YUNOMAE
From: Masami Hiramatsu masami.hiramatsu...@hitachi.com Wait if the port is not connected or full on splice like as write is doing. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com --- drivers/char/virtio_console.c | 39 +++ 1 files changed,

[PATCH V2 4/6] ftrace: Allow stealing pages from pipe buffer

2012-08-09 Thread Yoshihiro YUNOMAE
From: Masami Hiramatsu masami.hiramatsu...@hitachi.com Use generic steal operation on pipe buffer to allow stealing ring buffer's read page from pipe buffer. Note that this could reduce the performance of splice on the splice_write side operation without affinity setting. Since the ring buffer's

[PATCH V2 5/6] virtio/console: Allocate scatterlist according to the current pipe size

2012-08-09 Thread Yoshihiro YUNOMAE
From: Masami Hiramatsu masami.hiramatsu...@hitachi.com Allocate scatterlist according to the current pipe size. This allows splicing bigger buffer if the pipe size has been changed by fcntl. Changes in v2: - Just a minor fix for avoiding a confliction with previous patch. Signed-off-by: Masami

[PATCH V2 6/6] tools: Add guest trace agent as a user tool

2012-08-09 Thread Yoshihiro YUNOMAE
This patch adds a user tool, trace agent for sending trace data of a guest to a Host in low overhead. This agent has the following functions: - splice a page of ring-buffer to read_pipe without memory copying - splice the page from write_pipe to virtio-console without memory copying - write

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Takashi Iwai
At Thu, 9 Aug 2012 12:34:30 +0200, Thierry Reding wrote: On Thu, Aug 09, 2012 at 10:21:15AM +0200, Takashi Iwai wrote: At Thu, 9 Aug 2012 10:07:13 +0200, Thierry Reding wrote: On Thu, Aug 09, 2012 at 09:42:48AM +0200, Takashi Iwai wrote: At Thu, 9 Aug 2012 09:36:42 +0200,

Re: [PATCH V2 3/3] regulator: add MAX8907 driver

2012-08-09 Thread Laxman Dewangan
On Thursday 09 August 2012 02:48 AM, Stephen Warren wrote: From: Gyungoh Yoojack@maxim-ic.com The MAX8907 is an I2C-based power-management IC containing voltage regulators, a reset controller, a real-time clock, and a touch-screen + for (i = 0; i MAX8907_NUM_REGULATORS; i++) { +

Re: [RFC PATCH 2/6] virtio/console: Add a failback for unstealable pipe buffer

2012-08-09 Thread Steven Rostedt
On Thu, 2012-08-09 at 18:24 +0900, Masami Hiramatsu wrote: Yeah, it is really easy to fix that. But out of curiosity, would that be really a problem? I guess that host can access any guest page if need. If that is right, is that really insecure to leak randomly allocated unused page to the

Re: [RFC PATCH 3/4] ftrace: Do not test frame pointers if -mfentry is used

2012-08-09 Thread Andi Kleen
On Thu, Aug 09, 2012 at 06:45:37AM +0300, Linus Torvalds wrote: On Wed, Aug 8, 2012 at 3:49 PM, Steven Rostedt rost...@goodmis.org wrote: No, CONFIG_HAVE_FENTRY just means fentry is supported, it does not mean that it is being used. It only gets used if CC_USING_FENTRY is set, which is

Re: [PATCH V2 3/3] regulator: add MAX8907 driver

2012-08-09 Thread Mark Brown
On Thu, Aug 09, 2012 at 05:49:49PM +0530, Laxman Dewangan wrote: There may be possibility that some of regulator node is not populated and that case, the idata will be NULL and hence regulator registration can be bypass for that regulator. The driver should just register all the regulators

Re: [GIT PULL for 3.6-rc1] media updates part 2

2012-08-09 Thread Mauro Carvalho Chehab
Em 09-08-2012 09:00, Hans de Goede escreveu: Hi, My bad, sorry about this. Mauro's patch looks good. Hmm... menuconfig NEW_LEDS bool LED Support help Say Y to enable Linux LED support. This allows control of supported LEDs from both userspace and

Re: [PATCH V2 3/3] regulator: add MAX8907 driver

2012-08-09 Thread Laxman Dewangan
On Thursday 09 August 2012 06:08 PM, Mark Brown wrote: On Thu, Aug 09, 2012 at 05:49:49PM +0530, Laxman Dewangan wrote: There may be possibility that some of regulator node is not populated and that case, the idata will be NULL and hence regulator registration can be bypass for that regulator.

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 02:32:38PM +0200, Takashi Iwai wrote: At Thu, 9 Aug 2012 12:34:30 +0200, Thierry Reding wrote: On Thu, Aug 09, 2012 at 10:21:15AM +0200, Takashi Iwai wrote: At Thu, 9 Aug 2012 10:07:13 +0200, Thierry Reding wrote: On Thu, Aug 09, 2012 at 09:42:48AM

[PATCH] tun: don't zeroize sock-file on detach

2012-08-09 Thread Stanislav Kinsbursky
This is a fix for bug, introduced in 3.4 kernel by commit 1ab5ecb90cb6a3df1476e052f76a6e8f6511cb3d, which, among other things, replaced simple sock_put() by sk_release_kernel(). Below is sequence, which leads to oops for non-persistent devices: tun_chr_close() tun_detach()

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

2012-08-09 Thread Hiroshi Doyu
Hi Greg, Felipe, On Wed, 8 Aug 2012 15:34:27 +0200 Greg Kroah-Hartman gre...@linuxfoundation.org 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? Signed-off-by: Hiroshi Doyu hd...@nvidia.com ---

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-09 Thread Andrey Wagin
2012/8/9 Namhyung Kim namhy...@kernel.org: The usage like this is too specific and hard to use IMHO. How about putting it somehow into perf sched or new command? /me don't have an idea though. :-) I'm going to add a script, so the usage will look like this: $ perf script record sched-stat

Re: [PATCH V2 3/3] regulator: add MAX8907 driver

2012-08-09 Thread Mark Brown
On Thu, Aug 09, 2012 at 05:57:03PM +0530, Laxman Dewangan wrote: On Thursday 09 August 2012 06:08 PM, Mark Brown wrote: The driver should just register all the regulators the chip has, it's useful for diagnostic purposes if nothing else. Then probably we need to update our dts file becasue

[PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-09 Thread Glauber Costa
This patch adds the basic infrastructure for the accounting of the slab caches. To control that, the following files are created: * memory.kmem.usage_in_bytes * memory.kmem.limit_in_bytes * memory.kmem.failcnt * memory.kmem.max_usage_in_bytes They have the same meaning of their user memory

[PATCH v2 00/11] Request for Inclusion: kmem controller for memcg.

2012-08-09 Thread Glauber Costa
Hi, This is the first part of the kernel memory controller for memcg. It has been discussed many times, and I consider this stable enough to be on tree. A follow up to this series are the patches to also track slab memory. They are not included here because I believe we could benefit from merging

[PATCH v2 03/11] memcg: change defines to an enum

2012-08-09 Thread Glauber Costa
This is just a cleanup patch for clarity of expression. In earlier submissions, people asked it to be in a separate patch, so here it is. [ v2: use named enum as type throughout the file as well ] Signed-off-by: Glauber Costa glom...@parallels.com CC: Michal Hocko mho...@suse.cz CC: Johannes

[PATCH v2 01/11] memcg: Make it possible to use the stock for more than one page.

2012-08-09 Thread Glauber Costa
From: Suleiman Souhlal ssouh...@freebsd.org We currently have a percpu stock cache scheme that charges one page at a time from memcg-res, the user counter. When the kernel memory controller comes into play, we'll need to charge more than that. This is because kernel memory allocations will also

[PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-09 Thread Glauber Costa
From: Suleiman Souhlal ssouh...@freebsd.org mem_cgroup_do_charge() was written before kmem accounting, and expects three cases: being called for 1 page, being called for a stock of 32 pages, or being called for a hugepage. If we call for 2 or 3 pages (and both the stack and several slabs used in

[PATCH v2 07/11] mm: Allocate kernel pages to the right memcg

2012-08-09 Thread Glauber Costa
When a process tries to allocate a page with the __GFP_KMEMCG flag, the page allocator will call the corresponding memcg functions to validate the allocation. Tasks in the root memcg can always proceed. To avoid adding markers to the page - and a kmem flag that would necessarily follow, as much

[PATCH v2 08/11] memcg: disable kmem code when not in use.

2012-08-09 Thread Glauber Costa
We can use jump labels to patch the code in or out when not used. Because the assignment: memcg-kmem_accounted = true is done after the jump labels increment, we guarantee that the root memcg will always be selected until all call sites are patched (see memcg_kmem_enabled). This guarantees that

[PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-09 Thread Glauber Costa
The current memcg slab cache management fails to present satisfatory hierarchical behavior in the following scenario: - /cgroups/memory/A/B/C * kmem limit set at A, * A and B have no tasks, * span a new task in in C. Because kmem_accounted is a boolean that was not set for C, no accounting

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

2012-08-09 Thread Glauber Costa
This patch introduces infrastructure for tracking kernel memory pages to a given memcg. This will happen whenever the caller includes the flag __GFP_KMEMCG flag, and the task belong to a memcg other than the root. In memcontrol.h those functions are wrapped in inline accessors. The idea is to

[PATCH v2 10/11] memcg: allow a memcg with kmem charges to be destructed.

2012-08-09 Thread Glauber Costa
Because the ultimate goal of the kmem tracking in memcg is to track slab pages as well, we can't guarantee that we'll always be able to point a page to a particular process, and migrate the charges along with it - since in the common case, a page will contain data belonging to multiple processes.

[PATCH v2 11/11] protect architectures where THREAD_SIZE = PAGE_SIZE against fork bombs

2012-08-09 Thread Glauber Costa
Because those architectures will draw their stacks directly from the page allocator, rather than the slab cache, we can directly pass __GFP_KMEMCG flag, and issue the corresponding free_pages. This code path is taken when the architecture doesn't define CONFIG_ARCH_THREAD_INFO_ALLOCATOR (only

[PATCH v2 05/11] Add a __GFP_KMEMCG flag

2012-08-09 Thread Glauber Costa
This flag is used to indicate to the callees that this allocation is a kernel allocation in process context, and should be accounted to current's memcg. It takes numerical place of the of the recently removed __GFP_NO_KSWAPD. Signed-off-by: Glauber Costa glom...@parallels.com CC: Christoph

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Takashi Iwai
At Thu, 9 Aug 2012 14:49:04 +0200, Thierry Reding wrote: On Thu, Aug 09, 2012 at 02:32:38PM +0200, Takashi Iwai wrote: At Thu, 9 Aug 2012 12:34:30 +0200, Thierry Reding wrote: On Thu, Aug 09, 2012 at 10:21:15AM +0200, Takashi Iwai wrote: At Thu, 9 Aug 2012 10:07:13 +0200,

Re: [PATCH V2 3/3] regulator: add MAX8907 driver

2012-08-09 Thread Laxman Dewangan
On Thursday 09 August 2012 06:30 PM, Mark Brown wrote: On Thu, Aug 09, 2012 at 05:57:03PM +0530, Laxman Dewangan wrote: On Thursday 09 August 2012 06:08 PM, Mark Brown wrote: The driver should just register all the regulators the chip has, it's useful for diagnostic purposes if nothing else.

[PATCH 0/2] HD-audio firmware loading fixes

2012-08-09 Thread Takashi Iwai
Hi, this is a series of patches to fix the firmware loading problem. I split the changes to two for making clean what the patches do. Basically it moves request_firmware() to hda_intel.c, then replaces it with request_firmware_nowait(). Through a short testing, it seems working fine here on my

[PATCH 1/2] ALSA: hda - Load firmware in hda_intel.c

2012-08-09 Thread Takashi Iwai
This is a preliminary work for the deferred probing for request_firmware() errors at init. This patch moves the call of request_firmware() to hda_intel.c, and call it in the earlier stage of probing rather than azx_probe_continue(). Signed-off-by: Takashi Iwai ti...@suse.de ---

[PATCH 2/2] ALSA: hda - Deferred probing with request_firmware_nowait()

2012-08-09 Thread Takashi Iwai
For processing the firmware handling properly for built-in kernels, implement an asynchronous f/w loading with request_firmware_nowait(). This means that the codec probing is deferred when the patch option is specified. Signed-off-by: Takashi Iwai ti...@suse.de --- sound/pci/hda/hda_codec.c | 2

Re: [PATCH] bio: Fix potential memory leak in bio_find_or_create_slab()

2012-08-09 Thread Jeff Moyer
Alexey Khoroshilov khoroshi...@ispras.ru writes: Do not leak memory by updating pointer with potentially NULL realloc return value. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru Acked-by: Jeff Moyer jmo...@redhat.com

Re: [PATCH] bio: Fix potential memory leak in bio_find_or_create_slab()

2012-08-09 Thread Jens Axboe
On 08/09/2012 07:52 AM, Alexey Khoroshilov wrote: Do not leak memory by updating pointer with potentially NULL realloc return value. Found by Linux Driver Verification project (linuxtesting.org). Thanks, applied. -- Jens Axboe -- To unsubscribe from this list: send the line unsubscribe

Re: [RFC]block: disable discard request merge temporarily

2012-08-09 Thread Jens Axboe
On 08/09/2012 07:28 AM, Shaohua Li wrote: The SCSI discard request merge never worked, and looks no solution for in future, let's disable it temporarily. Thanks, applied! -- Jens Axboe -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH 7/7] workqueue: deprecate __cancel_delayed_work()

2012-08-09 Thread Jens Axboe
On 08/08/2012 11:38 PM, Tejun Heo wrote: Now that cancel_delayed_work() can be safely called from IRQ handlers, there's no reason to use __cancel_delayed_work(). Use cancel_delayed_work() instead of __cancel_delayed_work() and mark the latter deprecated. Signed-off-by: Tejun Heo

Re: [PATCH 0/2] [RESEND] Remove plugging at buffered write time

2012-08-09 Thread Jens Axboe
On 08/05/2012 10:26 AM, Fengguang Wu wrote: Hi all, It seems this patch was silently forgotten, but the review comments have all been addressed: the patch has been split into two pieces and tests show no performance regressions (nor noticeable gains..). Thanks to Damien for reminding me

Re: [PATCH 2/2] ALSA: hda - Deferred probing with request_firmware_nowait()

2012-08-09 Thread David Henningsson
On 08/09/2012 03:11 PM, Takashi Iwai wrote: @@ -3187,13 +3217,16 @@ static int __devinit azx_probe(struct pci_dev *pci, if (patch[dev] *patch[dev]) { snd_printk(KERN_ERR SFX Applying patch firmware '%s'\n, patch[dev]); - err =

Re: [PATCH 1/3] Documentation: update missing index files in block/00-INDEX

2012-08-09 Thread Jens Axboe
On 08/04/2012 02:07 PM, Namjae Jeon wrote: Update missing index files in block/00-INDEX. Thanks, applied 1-3. -- Jens Axboe -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: NULL pointer dereference in selinux_ip_postroute_compat

2012-08-09 Thread Paul Moore
On Wednesday, August 08, 2012 05:00:26 PM Casey Schaufler wrote: On 8/8/2012 2:54 PM, Eric Dumazet wrote: By the way, once this proved to be an issue that involved more than just SELinux it needed to go onto the LSM list as well. Yes, you're right. On Wed, 2012-08-08 at 16:46 -0400, Paul

Re: [PATCH 2/2] ALSA: hda - Deferred probing with request_firmware_nowait()

2012-08-09 Thread Takashi Iwai
At Thu, 09 Aug 2012 15:26:56 +0200, David Henningsson wrote: On 08/09/2012 03:11 PM, Takashi Iwai wrote: @@ -3187,13 +3217,16 @@ static int __devinit azx_probe(struct pci_dev *pci, if (patch[dev] *patch[dev]) { snd_printk(KERN_ERR SFX Applying patch firmware '%s'\n,

Re: [PATCH 5/7] uprobes: introduce MMF_HAS_UPROBES

2012-08-09 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2012-08-08 19:37:47]: Add the new MMF_HAS_UPROBES flag. It is set by install_breakpoint() and it is copied by dup_mmap(), uprobe_pre_sstep_notifier() checks it to avoid the slow path if the task was never probed. Perhaps it makes sense to check it in

Re: [PATCH 7/7] uprobes: remove verify argument from set_orig_insn()

2012-08-09 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2012-08-08 19:37:52]: Nobody does set_orig_insn(verify = false), and I think nobody will. Remove this argument. IIUC set_orig_insn(verify = false) was needed to single-step without xol area. Signed-off-by: Oleg Nesterov o...@redhat.com Acked-by: Srikar

Re: [PATCH 1/5] [RFC] Add volatile range management code

2012-08-09 Thread Andrea Righi
On Thu, Aug 09, 2012 at 02:46:37AM -0700, Michel Lespinasse wrote: On Fri, Jul 27, 2012 at 8:57 PM, John Stultz john.stu...@linaro.org wrote: v5: * Drop intervaltree for prio_tree usage per Michel Dmitry's suggestions. Actually, I believe the ranges you need to track are

[PATCH 2/2 v2] ALSA: hda - Deferred probing with request_firmware_nowait()

2012-08-09 Thread Takashi Iwai
For processing the firmware handling properly for built-in kernels, implement an asynchronous f/w loading with request_firmware_nowait(). This means that the codec probing is deferred when the patch option is specified. Signed-off-by: Takashi Iwai ti...@suse.de --- v1-v2: drop superfluous

Re: [PATCH] efikamx: reintroduce Genesi Efika MX Smarttop via device tree

2012-08-09 Thread Matt Sealey
On Thu, Aug 9, 2012 at 5:19 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: On Tue, Aug 07, 2012 at 04:46:18PM -0500, Matt Sealey wrote: Yay for indentation! It'd be good to rewrite your DT so you could cut down on that, at the minute it's not good for legibility. +

Re: [RFC PATCH 4/4] ftrace/x86: Add support for -mfentry to x86_64

2012-08-09 Thread Steven Rostedt
Peter and Masami During my final tests, I found that this change breaks the !DYNAMIC_FTRACE config. That is, when we don't do the run-time updates of mcount calls to nops, the compiler will use fentry but the code still uses mcount. I fixed this in the patch below. But as you two have acked and

Re: [RFC PATCH 4/4] ftrace/x86: Add support for -mfentry to x86_64

2012-08-09 Thread Steven Rostedt
On Thu, 2012-08-09 at 09:46 -0400, Steven Rostedt wrote: Peter and Masami During my final tests, I found that this change breaks the !DYNAMIC_FTRACE config. That is, when we don't do the run-time updates of mcount calls to nops, the compiler will use fentry but the code still uses mcount.

[PATCH 1/5] mm: compaction: Update comment in try_to_compact_pages

2012-08-09 Thread Mel Gorman
The comment about order applied when the check was order PAGE_ALLOC_COSTLY_ORDER which has not been the case since [c5a73c3d: thp: use compaction for all allocation orders]. Fixing the comment while I'm in the general area. Signed-off-by: Mel Gorman mgor...@suse.de Reviewed-by: Rik van Riel

[PATCH 3/5] mm: compaction: Capture a suitable high-order page immediately when it is made available

2012-08-09 Thread Mel Gorman
While compaction is migrating pages to free up large contiguous blocks for allocation it races with other allocation requests that may steal these blocks or break them up. This patch alters direct compaction to capture a suitable free page as soon as it becomes available to reduce this race. It

[PATCH 5/5] mm: have order 0 compaction start near a pageblock with free pages

2012-08-09 Thread Mel Gorman
commit [7db8889a: mm: have order 0 compaction start off where it left] introduced a caching mechanism to reduce the amount work the free page scanner does in compaction. However, it has a problem. Consider two process simultaneously scanning free pages

<    4   5   6   7   8   9   10   11   12   13   >