Re: [PATCH] pwm_backlight: Add device tree support for Low Threshold Brightness

2012-07-29 Thread Thierry Reding
On Wed, Jul 25, 2012 at 05:54:02PM +0530, Philip, Avinash wrote: > Low Threshold Brightness should be configured to have a linear relation > in brightness scale. This patch adds device tree support for low > threshold brightness as optional one for pwm_backlight. I think this should be more explic

Re: [GIT PULL] GPIO changes for v3.6

2012-07-29 Thread NeilBrown
On Thu, 26 Jul 2012 00:48:57 +0200 Linus Walleij wrote: > Hi Linus, > > in Grants absence, these are my queued and -next-tested changes > for v3.6, please pull them in. Grants "merge" branch prior to his > absence was merged in as a base for this patch series. > > The following is the same info

Re: [PATCH 10/18] ARM: ux500: Enable HIGHMEM on all mop500 platforms

2012-07-29 Thread Lee Jones
On 29/07/12 21:45, Mark Brown wrote: On Fri, Jul 27, 2012 at 01:45:54PM +0100, Lee Jones wrote: The current kernel commandline for ux500 based devices includes hard-coded allocations for things like mali and hwmem, which actually run over lowmem. Here we enable highmem in order to avoid memory c

Re: [PATCH 05/18] ASoC: Ux500: Enable ux500 MSP driver for Device Tree

2012-07-29 Thread Lee Jones
On 29/07/12 21:42, Mark Brown wrote: On Fri, Jul 27, 2012 at 01:45:49PM +0100, Lee Jones wrote: + if (of_get_property(np, "stericsson,use-pinctrl", NULL)) + msp->use_pinctrl = true; + else + msp->use_pinctrl = false; I don't recall seeing any response t

Re: [Bisected] commit 71574865 (vfs: do_last(): common slow lookup) breaks CUPS printing

2012-07-29 Thread Al Viro
On Sat, Jul 28, 2012 at 12:43:16PM +0200, Markus Trippelsdorf wrote: > Printing with CUPS is broken on the current git tree. Whenever I print a page > the job just sits in the CUPS queue showing "processing". But it never reaches > the printer. (My CUPS version is 1.5.2. Filesystem is xfs.) > > I

Re: [PATCH] MMC/omap_hsmmc: handle failure of regulator_get better.

2012-07-29 Thread NeilBrown
On Mon, 30 Jul 2012 12:07:09 +0530 Rajendra Nayak wrote: > On Monday 30 July 2012 11:54 AM, NeilBrown wrote: > > On Mon, 30 Jul 2012 10:50:36 +0530 Rajendra Nayak wrote: > > > >> On Monday 30 July 2012 05:42 AM, NeilBrown wrote: > >>> > >>> 1/ if regulator_get fails, return an error. This is im

[PATCH] drivers: net: irda: bfin_sir: fix compile error

2012-07-29 Thread Bob Liu
From: Sonic Zhang Bit IREN is replaced by UMOD_IRDA and UMOD_MASK since blackfin 60x added, but this driver didn't update which will cause bfin_sir build error: drivers/net/irda/bfin_sir.c:161:9: error: 'IREN' undeclared (first use in this function) drivers/net/irda/bfin_sir.c:435:18: error: 'IR

Re: [PATCH] MMC/omap_hsmmc: handle failure of regulator_get better.

2012-07-29 Thread Rajendra Nayak
On Monday 30 July 2012 11:54 AM, NeilBrown wrote: On Mon, 30 Jul 2012 10:50:36 +0530 Rajendra Nayak wrote: On Monday 30 July 2012 05:42 AM, NeilBrown wrote: 1/ if regulator_get fails, return an error. This is important if it failed with EPROBE_DEFER, as the probe needs to be defer

[GIT] security subsystem bugfixes

2012-07-29 Thread James Morris
Please pull these fixes for your curren tree. The following changes since commit f7da9cdf45cbbad5029d4858dcbc0134e06084ed: Linus Torvalds (1): Merge git://git.kernel.org/.../davem/net are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-

[PATCH] power_supply: Add new power supply properties CHARGE_CURRENT/VOLTAGE_MAX

2012-07-29 Thread Ramakrishna Pallala
There are different types of chargers avalibale like AC, Solar, USB, etc.. Even in USB we have different types SDP/DCP/CDP/ACA and all these chargers have different o/p ratings. For example SDP supports only 500mA of charge current whereas AC charger can support upto 8A or more. Similarly batterie

Re: kernel BUG at fs/buffer.c:2886! Linux 3.5.0

2012-07-29 Thread Joel Becker
On Sat, Jul 28, 2012 at 12:18:30AM +0200, Vincent ETIENNE wrote: > Hello > > Get this on first write made ( by deliver sending mail to inform of the > restart of services ) > Home partition (the one receiving the mail) is based on ocfs2 created > from drbd block device in primary/primary mode > T

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

2012-07-29 Thread Paolo Bonzini
Il 29/07/2012 22:40, Michael S. Tsirkin ha scritto: >> > Did you set the affinity manually in your experiments, or perhaps there >> > is a difference between scsi and networking... (interrupt mitigation?) > > You need to run irqbalancer in guest to make it actually work. Do you? Yes, of course, n

[PATCH v3] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list

2012-07-29 Thread Wang Sen
When using the commands below to write some data to a virtio-scsi LUN of the QEMU guest(32-bit) with 1G physical memory(qemu -m 1024), the qemu will crash. # sudo mkfs.ext4 /dev/sdb (/dev/sdb is the virtio-scsi LUN.) # sudo mount /dev/sdb /mnt # dd if=/dev/zero of=/mnt/fil

Re: [PATCH V4 3/3] virtio-blk: Add bio-based IO path for virtio-blk

2012-07-29 Thread Asias He
Hello Sasha, On 07/28/2012 02:35 PM, Sasha Levin wrote: On 07/28/2012 04:21 AM, Asias He wrote: This patch introduces bio-based IO path for virtio-blk. Compared to request-based IO path, bio-based IO path uses driver provided ->make_request_fn() method to bypasses the IO scheduler. It handles

Re: [PATCH] MMC/omap_hsmmc: handle failure of regulator_get better.

2012-07-29 Thread NeilBrown
On Mon, 30 Jul 2012 10:50:36 +0530 Rajendra Nayak wrote: > On Monday 30 July 2012 05:42 AM, NeilBrown wrote: > > > > 1/ if regulator_get fails, return an error. This is important > > if it failed with EPROBE_DEFER, as the probe needs to be > > deferred. > > > > 2/ Don't set .set_power un

Re: [REPOST #3 PATCH v2] Input: atkbd - make repeat period more accurate.

2012-07-29 Thread Dmitry Torokhov
On Thu, Jul 26, 2012 at 11:15:24AM -0400, George Spelvin wrote: > Thanks for the response! I'd been checking mailing list archive sites > to see if my submissions were making it out to the list. > > >> In addition to a slightly inaccurate lookup table, the > >> old code would round up to the next

RE: drivers/mfd/tps65090.c: duplicated TPS65090_INT_STS tests

2012-07-29 Thread Venu Byravarasu
Thanks for catching typo. Plz push a patch with fix. Thanks, Venu > -Original Message- > From: Fengguang Wu [mailto:fengguang...@intel.com] > Sent: Saturday, July 28, 2012 6:05 PM > To: Venu Byravarasu > Cc: Samuel Ortiz; Axel Lin; kernel-janit...@vger.kernel.org; LKML > Subject: drivers

Re: [RFC ebeam PATCH 3/3] input: misc: New USB eBeam input driver.

2012-07-29 Thread Dmitry Torokhov
On Sat, Jul 28, 2012 at 11:02:13AM +0200, Yann Cantin wrote: > Hi Dmitry, > > >> +config INPUT_EBEAM_USB_CLASSIC > >> + bool "eBeam Classic Projection support" > >> + depends on INPUT_EBEAM_USB > >> + default y > > > > Will there be support for other eBean devices (are there any)? If there > >

Re: [PATCH] fixed coding style issues

2012-07-29 Thread Dmitry Torokhov
Hi Baodong, On Wed, Jul 25, 2012 at 03:11:17PM +0800, Baodong Chen wrote: > Fexed coding style issues from scripts/checkpatch.pl in drivers/input > Thank you for your patch. I picked up the parts that made sense and dropped the rest. Thanks. -- Dmitry -- To unsubscribe from this list: send th

Re: [PATCH] Input: gpio_keys - Report wakeup events if device may wakeup

2012-07-29 Thread Dmitry Torokhov
Hi Benson, On Wed, Jul 25, 2012 at 11:11:53PM -0700, Benson Leung wrote: > If a button is configured to wake the system, report a pm wakeup event. > Thank you for your patch, however I applied more complete patch sent by NeilBrown. > Signed-off-by: Benson Leung > --- > drivers/input/keyboard/

Re: [PATCH 0/2] Report wake_events for some button presses.

2012-07-29 Thread Dmitry Torokhov
On Mon, Jul 30, 2012 at 11:09:01AM +1000, NeilBrown wrote: > To avoid racing with suspend, we need to report wakeup events to the > pm subsystem when they happen. > These two patches do this for gpio_keys and twl4030-pwrbutton. > > --- > > NeilBrown (2): > Input: twl4030-pwrbutton: report a

Re: [PATCH] sctp: Make "Invalid Stream Identifier" ERROR follows SACK when bundling

2012-07-29 Thread Xufeng Zhang
On 7/30/12, Xufeng Zhang wrote: > On 7/28/12, Vlad Yasevich wrote: >> here is an untested prototype of what I was talking about. This should >> handle multiple data chunks. > > Yes, it works if only the end of the DATA chunk in a packet has > invalid stream identifier > and I have verified this

[git pull] Input updates for 3.6-rc0 (2nd set)

2012-07-29 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive 2nd set of updates for the input subsystem for the 3.6 merge window. You will get a new driver for FT5x06 based EDT displays and a couple of other driver changes. Changelog: ---

Re: rcu: INFO: rcu_preempt detected stalls on CPUs/tasks on v3.6

2012-07-29 Thread Avi Kivity
On 07/30/2012 12:05 AM, Sasha Levin wrote: > On 07/29/2012 02:48 PM, Avi Kivity wrote: > > On 07/27/2012 02:27 PM, Sasha Levin wrote: > >> On 07/26/2012 01:42 PM, Avi Kivity wrote: > >>> On 07/24/2012 08:10 PM, Sasha Levin wrote: > [ 215.026612] NMI backtrace for cpu 1 > [ 215.026612] C

Re: [PATCH] MMC/omap_hsmmc: handle failure of regulator_get better.

2012-07-29 Thread Rajendra Nayak
On Monday 30 July 2012 05:42 AM, NeilBrown wrote: 1/ if regulator_get fails, return an error. This is important if it failed with EPROBE_DEFER, as the probe needs to be deferred. 2/ Don't set .set_power until the regulator has been found, or the deferred probe will not bother calli

[git pull] drm exynos pull for -rc1

2012-07-29 Thread Dave Airlie
Hi Linus, So I totally missed Inki's pull request for -next, its fully exynos self contained. Regards, Dave. The following changes since commit 98c7b42375011ec37251e6fc85a0471cfe499eea: Merge branch 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel into drm-next (2012-07-

Re: [net-next RFC V5 4/5] virtio_net: multiqueue support

2012-07-29 Thread Jason Wang
On 07/29/2012 05:50 PM, Michael S. Tsirkin wrote: On Mon, Jul 23, 2012 at 01:48:35PM +0800, Jason Wang wrote: + } - if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ)) { + ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks, +

Re: [PATCH] sctp: Make "Invalid Stream Identifier" ERROR follows SACK when bundling

2012-07-29 Thread Xufeng Zhang
On 7/28/12, Vlad Yasevich wrote: > here is an untested prototype of what I was talking about. This should > handle multiple data chunks. Yes, it works if only the end of the DATA chunk in a packet has invalid stream identifier and I have verified this patch by my test case, but what happens if t

RE: [PATCH 2/2] lp8727_charger: unregister power supply at error path of lp8727_register_psy

2012-07-29 Thread Pallala, Ramakrishna
> if (power_supply_register(pchg->dev, &psy->usb)) > - goto err_psy; > + goto err_psy_ac; "err_psy_ac" label name is confusing. Why can't you use err_psy_usb > if (power_supply_register(pchg->dev, &psy->batt)) > - goto err_psy; > + goto

Re: [PATCH V3 3/3] virtio-blk: Add bio-based IO path for virtio-blk

2012-07-29 Thread Asias He
On 07/28/2012 02:42 PM, Paolo Bonzini wrote: I'm not sure what the correct behavior for bio & cacheflush is, if any. REQ_FLUSH is not supported in the bio path. Ouch, that's correct: @@ -414,7 +529,7 @@ static void virtblk_update_cache_mode(struct virtio_device *vdev) u8 writeback =

Re: [PATCH V4 3/3] virtio-blk: Add bio-based IO path for virtio-blk

2012-07-29 Thread Asias He
On 07/29/2012 07:11 PM, Michael S. Tsirkin wrote: On Sat, Jul 28, 2012 at 10:21:05AM +0800, Asias He wrote: This patch introduces bio-based IO path for virtio-blk. Compared to request-based IO path, bio-based IO path uses driver provided ->make_request_fn() method to bypasses the IO scheduler.

linux-next: Tree for July 30

2012-07-29 Thread Stephen Rothwell
Hi all, Please do not add anything to linux-next included branches/series that is destined for v3.7 until after v3.6-rc1 is released. Reminder: do not rebase your branches before asking Linus to pull them ... Changes since 20120727: Linus' tree lost its build failure. The vfs tree gained confl

boot panic regression introduced in 3.5-rc7

2012-07-29 Thread CAI Qian
The bisecting pointed out this patch caused one of dell servers boot panic. 5baefd6d84163443215f4a99f6a20f054ef11236 hrtimer: Update hrtimer base offsets each hrtimer_interrupt [2.971092] WARNING: at kernel/time/clockevents.c:209 clockevents_program_event+0x10a/0x120() [2.971092] Har

Re: [RFC PATCH v5 19/19] memory-hotplug: remove sysfs file of node

2012-07-29 Thread Wen Congyang
At 07/27/2012 06:45 PM, Yasuaki Ishimatsu Wrote: > Hi Wen, > > 2012/07/27 19:36, Wen Congyang wrote: >> From: Yasuaki Ishimatsu >> >> The patch adds node_set_offline() and unregister_one_node() to >> remove_memory() >> for removing sysfs file of node. >> >> CC: David Rientjes >> CC: Jiang Liu >

Re: [net-next RFC V5 2/5] virtio_ring: move queue_index to vring_virtqueue

2012-07-29 Thread Jason Wang
On 07/26/2012 04:20 PM, Paolo Bonzini wrote: Il 05/07/2012 13:40, Sasha Levin ha scritto: @@ -275,7 +274,7 @@ static void vm_del_vq(struct virtqueue *vq) vring_del_virtqueue(vq); /* Select and deactivate the queue */ - writel(info->queue_index, vm_dev->base + VIRTIO_MMIO

Re: [net-next RFC V5 4/5] virtio_net: multiqueue support

2012-07-29 Thread Jason Wang
On 07/23/2012 05:28 PM, Sasha Levin wrote: On 07/23/2012 07:54 AM, Jason Wang wrote: On 07/21/2012 08:02 PM, Sasha Levin wrote: On 07/20/2012 03:40 PM, Michael S. Tsirkin wrote: -err = init_vqs(vi); +if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) +vi->has_cvq = true; + H

Re: [net-next RFC V5 4/5] virtio_net: multiqueue support

2012-07-29 Thread Jason Wang
On 07/29/2012 05:44 PM, Michael S. Tsirkin wrote: On Sat, Jul 21, 2012 at 02:02:58PM +0200, Sasha Levin wrote: On 07/20/2012 03:40 PM, Michael S. Tsirkin wrote: - err = init_vqs(vi); + if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) + vi->has_cvq = true; + How ab

Re: selinux_inode_setxattr oops.

2012-07-29 Thread James Morris
On Wed, 25 Jul 2012, Dave Jones wrote: > Did this get queued up anywhere ? > I just stumbled across this still sitting in my tree. I've not seen the spew > from fuzzing since adding it, so I guess I can add my Tested-by: there. Thanks -- I don't know if it's in Eric's tree (he's away). -- Jame

Re: Gethering power management/policy hw drivers under drivers/power/? (Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences)

2012-07-29 Thread 함명주
> On Mon, Jul 30, 2012 at 10:51:42AM +0900, Alex Courbot wrote: > [...] > > On the other hand I have just noticed that the apparently unrelated > > Adaptive Voltage Scaling driver just appeared in drivers/power/avs. > > So if Anton and David are ok with this, maybe I could put the power > > sequenc

[PATCH] perf kvm: use strtol for walking guestmount directory

2012-07-29 Thread David Ahern
Only want to process directories under the guestmnount directory that have a pid as a name (ie, all digits). Other entries in the guestmount directory should be ignored. There is already a check that requires the first character of each entry to be a digit, but atoi is used to convert the director

Re: [PATCH v5 0/3] Export offsets of VMCS fields as note information for kdump

2012-07-29 Thread Zhang Yanfei
Hello Avi, Do you have any comments about this version of the patch set? 于 2012年07月12日 17:54, Zhang Yanfei 写道: > This patch set exports offsets of VMCS fields as note information for > kdump. We call it VMCSINFO. The purpose of VMCSINFO is to retrieve > runtime state of guest machine image, such

linux-next: manual merge of the arm-soc tree with Linus' tree

2012-07-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/watchdog/orion_wdt.c between commit 0dd6e4847ed8 ("watchdog: orion_wdt: Convert driver to watchdog core") from Linus' tree and commit 1e7bad0f5b91 ("ARM: Orion: DTify the watchdog timer") from the arm-soc tree. Just co

[PATCH] perf tool: save cmdline from user in file header vs what is passed to record

2012-07-29 Thread David Ahern
A number of builtin commands process some user args and then pass the rest to cmd_record. cmd_record then saves argc/argv that it receives into the header of the perf data file. But this loses the arguments handled by the first command -- ie., the real command line from the user. This patch saves t

[PATCH] perf top: error handling for counter creation should parallel perf-record

2012-07-29 Thread David Ahern
5a7ed29 fixed up perf-record but not perf-top. Similar argument holds for it -- fallback to PMU only if it does not exist and handle invalid attributes separately. Signed-off-by: David Ahern Cc: Arnaldo Carvalho de Melo Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Frederic Weisbecker C

Gethering power management/policy hw drivers under drivers/power/? (Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences)

2012-07-29 Thread Anton Vorontsov
On Mon, Jul 30, 2012 at 10:51:42AM +0900, Alex Courbot wrote: [...] > On the other hand I have just noticed that the apparently unrelated > Adaptive Voltage Scaling driver just appeared in drivers/power/avs. > So if Anton and David are ok with this, maybe I could put the power > sequences code in i

Re: [PATCH] x86: don't ever patch back to UP if we unplug cpus.

2012-07-29 Thread Rusty Russell
On Fri, 27 Jul 2012 13:28:29 -0700, Suresh Siddha wrote: > if (!noreplace_smp && (num_present_cpus() == 1 || setup_max_cpus <= 1)) > > also, to be consistent with other checks, may be just use > "num_possible_cpus() == 1" check instead of "setup_max_cpus <= 1". Actually, if you specify "m

[PATCH v2] x86: don't ever patch back to UP if we unplug cpus.

2012-07-29 Thread Rusty Russell
We still patch SMP instructions to UP variants if we boot with a single CPU, but not at any other time. In particular, not if we unplug CPUs to return to a single cpu. Paul McKenney points out: mean offline overhead is 6251/48=130.2 milliseconds. If I remove the alternatives_smp_switch() from

Re: [PATCH V4 3/3] virtio-blk: Add bio-based IO path for virtio-blk

2012-07-29 Thread Rusty Russell
On Sun, 29 Jul 2012 14:11:15 +0300, "Michael S. Tsirkin" wrote: > On Sat, Jul 28, 2012 at 10:21:05AM +0800, Asias He wrote: > > This patch introduces bio-based IO path for virtio-blk. > > > > Compared to request-based IO path, bio-based IO path uses driver > > provided ->make_request_fn() method

Re: [PATCH RESEND] Ext4: No need to add inode to orphan list during hole punch

2012-07-29 Thread Zheng Liu
On Wed, Jul 25, 2012 at 07:53:34PM +0530, Ashish Sangwan wrote: > While performing punch hole for an inode, i_disksize is not changed. > So, there is no need to add the inode to orphan list. > > Signed-off-by: Ashish Sangwan > Signed-off-by: Namjae Jeon Acked-by: Zheng Liu Regards, Zheng > -

[PATCH RESEND v2] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-29 Thread Kyungsik Lee
It is expected that Extended CSD register(the size of this register is larger than CID/CSD) will be referenced more frequently as more fields have been added to Extended CSD and it seems that it is not a good option to double the memory used. This patch is intended to avoid the use of bounce buffe

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

2012-07-29 Thread Cong Wang
On Fri, 2012-07-27 at 08:50 -0700, Stephen Hemminger wrote: > On Fri, 27 Jul 2012 23:38:01 +0800 > Cong Wang wrote: > > > When a bridge interface deletes its underlying ports, it should > > notify netconsole too, like what bonding interface does. > > > > Cc: "David S. Miller" > > Signed-off-by:

Re: [RFC PATCH v5 19/19] memory-hotplug: remove sysfs file of node

2012-07-29 Thread Wen Congyang
At 07/27/2012 06:45 PM, Yasuaki Ishimatsu Wrote: > Hi Wen, > > 2012/07/27 19:36, Wen Congyang wrote: >> From: Yasuaki Ishimatsu >> >> The patch adds node_set_offline() and unregister_one_node() to >> remove_memory() >> for removing sysfs file of node. >> >> CC: David Rientjes >> CC: Jiang Liu >

Re: [PATCH for stable] cx25821: Remove bad strcpy to read-only char*

2012-07-29 Thread Ben Hutchings
On Tue, 2012-07-24 at 13:59 -0300, Ezequiel Garcia wrote: > Hi Greg, > > This patch is already in Linus' tree and I really think it should go into > stable > as well. You will find this bug in every kernel from the moment cx25821 went > out of staging. > > I just read Documentation/stable_kernel

Re: [RFC PATCH v5 05/19] memory-hotplug: check whether memory is present or not

2012-07-29 Thread Wen Congyang
At 07/28/2012 04:17 AM, Tony Luck Wrote: > On Fri, Jul 27, 2012 at 3:28 AM, Wen Congyang wrote: >> +static inline int pfns_present(unsigned long pfn, unsigned long nr_pages) >> +{ >> + int i; >> + for (i = 0; i < nr_pages; i++) { >> + if (pfn_present(pfn + 1)) > > Typo?

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

2012-07-29 Thread Alex Courbot
On 07/28/2012 03:19 AM, Greg Kroah-Hartman wrote: On Fri, Jul 27, 2012 at 09:05:48PM +0900, Alexandre Courbot wrote: Some device drivers (panel backlights especially) need to follow precise sequences for powering on and off, involving gpios, regulators, PWMs with a precise powering order and del

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

2012-07-29 Thread Cong Wang
On Fri, 2012-07-27 at 14:40 -0400, Neil Horman wrote: > Here, and above I see you using an rcu_head to defer cleanup, until after all > pointer uses are dropped, but I don't see any modification of code points that > dereference any struct netpoll pointers to include > rcu_read_lock()/rcu_read_unlo

Re: [PATCH 0/4] ideapad: patches for v3.6 merge window

2012-07-29 Thread Ike Panhc
On 07/28/2012 12:08 PM, Matthew Garrett wrote: > This tree also seems to have ARM stuff in it? > Just a public tree. If I need to publish patches for someone to pull. I will push a new branch onto it -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

Re: [ 000/108] 3.2.24-stable review

2012-07-29 Thread Ben Hutchings
On Mon, 2012-07-23 at 10:26 +0800, 王金浦 wrote: > Hi Ben, > > > Thanks for your great work. > And I found you may miss one fix ([SCSI] Fix NULL dereferences in > scsi_cmd_to_driver commit 222a806af830fda34ad1f6bc991cd226916de060)I > once encountered on 3.2.22. [...] Although it was cc'd to stable

[PATCH] RTC: Avoid races between RTC alarm wakeup and suspend.

2012-07-29 Thread NeilBrown
If an RTC alarm fires just as suspend is happening, it is possible for suspend to complete and the alarm to be missed. To avoid the race, we must register the event with the PM core. As the event is made visible to userspace through a thread which is only scheduled by the interrupt, we need a pm

Re: [PATCH] x86: don't ever patch back to UP if we unplug cpus.

2012-07-29 Thread Rusty Russell
On Fri, 27 Jul 2012 13:28:29 -0700, Suresh Siddha wrote: > On Fri, 2012-07-27 at 17:08 +0930, Rusty Russell wrote: > > Paul McKenney points out: > > > > mean offline overhead is 6251/48=130.2 milliseconds. > > > > If I remove the alternatives_smp_switch() from the offline > > path [...] the

[GIT PULL] hwmon fixes for 3.6-rc1

2012-07-29 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux 3.6-rc1 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus The branch is based on an arbitrary commit in your tree. This was necessary because one of the patches fixes a newly introduced build w

Re: [PATCH 00/34] Memory management performance backports for -stable V2

2012-07-29 Thread Ben Hutchings
On Mon, 2012-07-23 at 14:38 +0100, Mel Gorman wrote: > Changelog since V1 > o Expand some of the notes (jrnieder) > o Correct upstream commit SHA1 (hugh) > > This series is related to the new addition to stable_kernel_rules.txt > >

[PATCH 2/2] Input: twl4030-pwrbutton: report a wakeup_event on button press.

2012-07-29 Thread NeilBrown
As the power button causes a wake from suspend, we need to register the event with the pm sustem to avoid racing with suspend. As the input event is reported in the interrupt handler, as simple pm_wakeup_event() is sufficient. Signed-off-by: NeilBrown --- drivers/input/misc/twl4030-pwrbutton.c

[PATCH 1/2] Input: gpio_keys: report a wakeup_event for a button press on a wake_up button.

2012-07-29 Thread NeilBrown
In order to avoid races with suspend, a wakeup event must register as such by calling pm_wakeup_event() or pm_stay_awake(). This will ensure that the current suspend cycle aborts. When the user-space visible event is created in the interrupt handler (gpio_keys_irq_isr), a simple pm_wakeup_event()

[PATCH 0/2] Report wake_events for some button presses.

2012-07-29 Thread NeilBrown
To avoid racing with suspend, we need to report wakeup events to the pm subsystem when they happen. These two patches do this for gpio_keys and twl4030-pwrbutton. --- NeilBrown (2): Input: twl4030-pwrbutton: report a wakeup_event on button press. Input: gpio_keys: report a wakeup_even

[PATCH v3] create sun sysfs file

2012-07-29 Thread Yasuaki Ishimatsu
Even if a device has _SUN method, there is no way to know the slot unique-ID. Thus the patch creates "sun" file in sysfs so that we can recognize it. Signed-off-by: Yasuaki Ishimatsu --- drivers/acpi/scan.c | 25 + include/acpi/acpi_bus.h |1 + 2 files changed,

Re: [PATCH v2] create sun sysfs file

2012-07-29 Thread Yasuaki Ishimatsu
Hi Toshi, 2012/07/28 7:25, Toshi Kani wrote: On Fri, 2012-07-27 at 12:03 +0900, Yasuaki Ishimatsu wrote: Even if a device has _SUN method, there is no way to know the slot unique-ID. Thus the patch creates "sun" file in sysfs so that we can recognize it. Hi Yasuaki, Thanks for the update. T

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

2012-07-29 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in drivers/usb/gadget/storage_common.c between commit d6e16a89578f ("usb: gadget: mass_storage: fail fsg_store_file() early if colud not open file") from Linus' tree and commit 20818a0caa84 ("gadgetfs: clean up") from the vfs tree. Co

Re: Re: [RFC PATCH] fs/direct-io.c: Set bi_rw when alloc bio.

2012-07-29 Thread majianpeng
On 2012-07-27 22:21 Jeff Moyer Wrote: >majianpeng writes: > >> When exec bio_alloc, the bi_rw is zero.But after calling bio_add_page, >> it will use bi_rw. >> Fox example, in functiion __bio_add_page,it will call merge_bvec_fn(). >> The merge_bvec_fn of raid456 will use the bi_rw to judge the mer

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

2012-07-29 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in drivers/staging/gdm72xx/usb_boot.c between commit d67030d215ac ("staging/gdm72xx: return PTR_ERR rather -ENOENT") from Linus' tree and commit 09fada5b5f1f ("slightly reduce lossage in gdm72xx") from the vfs tree. Just context chang

[GIT PULL for v3.5] EDAC updates

2012-07-29 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac.git master for the EDAC patches for 3.5. This series includes: - the second part of the EDAC rework: - Add the sysfs nodes that exports the real memory layout,

[PATCH] OMAP/serial: Add support for driving a GPIO as DTR.

2012-07-29 Thread NeilBrown
Hi all, this is my current patch which answers my question from May: Question: How to power-manage UART-attached devices. It teaches omap2/serial about the possibility of a GPIO which is to be driven as a DTR line. This allows me to power on/off devices that are accessed via a serial p

[RFC v2 2/2] net: Add support for NTB virtual ethernet device

2012-07-29 Thread Jon Mason
A virtual ethernet device that uses the NTB transport API to send/receive data. Signed-off-by: Jon Mason --- drivers/net/Kconfig |4 + drivers/net/Makefile |1 + drivers/net/ntb_netdev.c | 417 ++ 3 files changed, 422 insertions(+), 0

[RFC v2 0/2] PCI-Express Non-Transparent Bridge Support

2012-07-29 Thread Jon Mason
Version 2 of the patch that adds support for PCI-Express Non-Transparent Bridges in Linux. This version incorporates the changes suggested by Stephen Hemminger Greg KH chetan loke Jiri Pirko Thanks, Jon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body o

Re: [ 36/40] mm: vmscan: convert global reclaim to per-memcg LRU lists

2012-07-29 Thread Ben Hutchings
On Thu, 2012-07-26 at 14:29 -0700, Greg Kroah-Hartman wrote: > From: Greg KH > > 3.0-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Johannes Weiner > > commit b95a2f2d486d0d768a92879c023a03757b9c7e58 upstream - WARNING: this is a > su

Re: [PATCH V3 3/3] virtio-blk: Add bio-based IO path for virtio-blk

2012-07-29 Thread Asias He
On 07/29/2012 08:59 PM, Michael S. Tsirkin wrote: On Sat, Jul 28, 2012 at 10:38:41AM +0800, Asias He wrote: On 07/27/2012 08:33 AM, Rusty Russell wrote: On Fri, 13 Jul 2012 16:38:51 +0800, Asias He wrote: Add 'virtio_blk.use_bio=1' to kernel cmdline or 'modprobe virtio_blk use_bio=1' to enabl

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-29 Thread Rusty Russell
On Fri, 27 Jul 2012 10:11:26 +0200, Paolo Bonzini wrote: > Il 27/07/2012 08:27, Rusty Russell ha scritto: > >> > +int virtqueue_add_buf_sg(struct virtqueue *_vq, > >> > + struct scatterlist *sg_out, > >> > + unsigned int out, > >> > +

Re: Infinite looping in omap2430.c USB driver

2012-07-29 Thread NeilBrown
Hi Felipe, have you had a chance to look at this problem in omap2430_mbus_set_vbus yet? Are you the person responsible? thanks, NeilBrown On Mon, 9 Jul 2012 01:32:33 -0700 Tony Lindgren wrote: > * NeilBrown [120706 15:44]: > > > > Hello `./scripts/get_maintainer.pl -f drivers/usb/musb/omap

Re: [PATCH] Documentation: fix DOCBOOKS=... building

2012-07-29 Thread Mauro Carvalho Chehab
Em 28-07-2012 21:33, Rob Landley escreveu: > On 07/28/2012 10:05 AM, Randy Dunlap wrote: >> On 07/28/2012 04:26 AM, Johannes Berg wrote: >> >>> On Fri, 2012-07-27 at 15:29 -0700, Randy Dunlap wrote: On 06/13/2012 01:43 AM, Johannes Berg wrote: > From: Johannes Berg > > Prior

[PATCH] MMC/omap_hsmmc: handle failure of regulator_get better.

2012-07-29 Thread NeilBrown
1/ if regulator_get fails, return an error. This is important if it failed with EPROBE_DEFER, as the probe needs to be deferred. 2/ Don't set .set_power until the regulator has been found, or the deferred probe will not bother calling omap_hsmmc_reg_get(). Signed-off-by: NeilBrown di

[PATCH] regulator: core: Add intermediate cast to uintptr_t before casting to pointer

2012-07-29 Thread Axel Lin
This is to address the following warning during compilation time: CC drivers/regulator/core.o drivers/regulator/core.c: In function '_regulator_do_set_voltage': drivers/regulator/core.c:2183:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by:

[GIT PULL 2/2] ARM: arm-soc board updates, take 2

2012-07-29 Thread Olof Johansson
This branch contains board updates, mostly for shmobile, but also a couple for PXA. The shmobile platforms are still in the early stages of DT enablement, so there's a bit more updates here than we'd ideally want to see: - regulator updates to provide some fixed regulators on several boards - gpio

[GIT PULL 1/2] ARM: arm-soc soc updates, take 2

2012-07-29 Thread Olof Johansson
This is the second batch of SoC updates for the 3.6 merge window, containing parts that arrived close to the merge window opening and thus needed to sit in linux-next for a while. Most contents is updates of Renesas shmobile, with a couple of Samsung Exynos patches in the mix. ---

[GIT PULL 0/2] ARM: (small) second batch of updates

2012-07-29 Thread Olof Johansson
Linus, Here are two pull requests for branches that arrived to us pretty close to when the merge window opened, so we wanted to let them sit in -next for a bit before sending them in. Most of it is Renesas shmobile updates, but also a few Exynos and PXA patches. In addition to this, we have thre

RE: [PATCH 00/17] drivers: hv: kvp

2012-07-29 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, July 24, 2012 11:54 AM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > virtualizat...@lists.osdl.org; o...@aepfle.de; a...@canonical.com; > net...@vger.kernel.

Re: [PATCH 01/17] perf: Unified API to record selective sets of arch registers

2012-07-29 Thread Paul Mackerras
On Thu, Jul 26, 2012 at 02:51:04PM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Jul 22, 2012 at 02:14:24PM +0200, Jiri Olsa escreveu: > > This brings a new API to help the selective dump of registers on > > event sampling, and its implementation for x86 arch. > > > > Added HAVE_PERF_REGS confi

Re: [PATCH] apple-gmux: Restore switch registers on suspend/resume

2012-07-29 Thread David Woodhouse
On Sun, 2012-07-29 at 09:46 +0200, Andreas Heider wrote: > The gmux code you're using is a bit outdated, but if you use > git://kernel.ubuntu.com/sforshee/linux.git gmux-switcheroo and connect > an external display (I tested it with a DP one) you should be able to > boot to DIS and switch to the

/dev/kmem BUG on mmap

2012-07-29 Thread Sasha Levin
Hi all, I was poking around /dev/kmem related code, and noticed the following in mmap_kmem(): /* Turn a kernel-virtual address into a physical page frame */ pfn = __pa((u64)vma->vm_pgoff << PAGE_SHIFT) >> PAGE_SHIFT; Which looked odd since vm_pgoff is the offset into the mapping

[PATCH] perf: Remove brace expansion from clean target

2012-07-29 Thread Palmer Cox
The clean target uses brace expansion to remove some generated files. However, the default shells on many systems do not support this feature resulting in some generated files not being removed by clean. Signed-off-by: Palmer Cox --- tools/perf/Makefile |3 ++- 1 file changed, 2 insertions(+

Re: [PATCH] Fix priority of non-BAR ROM data

2012-07-29 Thread Matthew Garrett
On Sun, Jul 29, 2012 at 10:49:42PM +0100, David Woodhouse wrote: > + * Some devices may provide ROMs via a source other than the BAR > + */ > + if (pdev->rom && pdev->romlen) { > + *size = pdev->romlen; > + return phys_to_virt(pdev->rom); Needs casting. My mis

[PATCH] Fix priority of non-BAR ROM data

2012-07-29 Thread David Woodhouse
If we've obtained the ROM data through other means (such as from EFI), we don't want to ignore it just because the IORESOURCE_ROM_SHADOW bit has got set. This fixes the Radeon ROM handling on my MacBookPro8,3 when booted via grub1-efi. Signed-off-by: David Woodhouse --- This fixes patch 3/4 'PCI:

Re: rcu: INFO: rcu_preempt detected stalls on CPUs/tasks on v3.6

2012-07-29 Thread Sasha Levin
On 07/29/2012 02:48 PM, Avi Kivity wrote: > On 07/27/2012 02:27 PM, Sasha Levin wrote: >> On 07/26/2012 01:42 PM, Avi Kivity wrote: >>> On 07/24/2012 08:10 PM, Sasha Levin wrote: [ 215.026612] NMI backtrace for cpu 1 [ 215.026612] CPU 1 [ 215.026612] Pid: 2395, comm: pageattr-test

Re: [PATCH 2/3] regmap: implement irq chip suspend/resume operations

2012-07-29 Thread Mark Brown
On Fri, Jul 27, 2012 at 01:01:55PM -0600, Stephen Warren wrote: > When suspending, we set up the wake mask registers as required. Some > chips don't have separate wake mask registers, so they set mask_base > equal to wake_base. In that case, when resuming, we re-program the No, they shouldn't be

Re: [PATCH] apple-gmux: Restore switch registers on suspend/resume

2012-07-29 Thread Matthew Garrett
On Sun, Jul 29, 2012 at 09:52:51PM +0100, David Woodhouse wrote: > On Sun, 2012-07-29 at 20:39 +0100, Matthew Garrett wrote: > > And it looks like intel_lvds->edid is only set during intel_lvds_init(). > > That seems less than ideal. How about something like this entirely > > untested patch? >

Re: [PATCH 14/15] workqueue: use mod_delayed_work() instead of cancel + queue

2012-07-29 Thread Anton Vorontsov
On Fri, Jul 27, 2012 at 04:55:07PM -0700, Tejun Heo wrote: > Convert delayed_work users doing [__]cancel_delayed_work() + > queue_delayed_work() to mod_delayed_work(). > > Most conversions are straight-forward. Ones worth mentioning are, > > * drivers/edac/edac_mc.c: edac_mc_workq_setup() conver

Re: [PATCH] apple-gmux: Restore switch registers on suspend/resume

2012-07-29 Thread David Woodhouse
On Sun, 2012-07-29 at 20:39 +0100, Matthew Garrett wrote: > And it looks like intel_lvds->edid is only set during intel_lvds_init(). > That seems less than ideal. How about something like this entirely > untested patch? Actually, it works if I write 'MIGD' first and then 'IGD'. Looks like we ar

Re: [PATCH 17/18] ARM: ux500: Add all encompassing Sound node to DB8500 Device Tree

2012-07-29 Thread Mark Brown
On Fri, Jul 27, 2012 at 01:46:01PM +0100, Lee Jones wrote: > arch/arm/boot/dts/db8500.dtsi |8 This is a generic DT include file but... > + sound { > + compatible = "stericsson,snd-soc-mop500"; > + > + stericsson,platform-pcm-dma =

Re: [PATCH 13/18] ARM: ux500: Add ux500 PCM to DB8500 Device Tree

2012-07-29 Thread Mark Brown
On Fri, Jul 27, 2012 at 01:45:57PM +0100, Lee Jones wrote: > Nothing special here. We're only providing a compatible string > to ensure the driver is probed using a Device Tree boot. > + pcm: ux500-pcm { > + compatible = "stericsson,ux500-pcm"; > + }; >

Re: [PATCH 10/18] ARM: ux500: Enable HIGHMEM on all mop500 platforms

2012-07-29 Thread Mark Brown
On Fri, Jul 27, 2012 at 01:45:54PM +0100, Lee Jones wrote: > The current kernel commandline for ux500 based devices includes > hard-coded allocations for things like mali and hwmem, which > actually run over lowmem. Here we enable highmem in order to > avoid memory corruption errors. This appears

Re: [GIT PULL] x86/build change for v3.6

2012-07-29 Thread Sam Ravnborg
On Thu, Jul 26, 2012 at 08:55:06AM +0200, Ingo Molnar wrote: > > * Sam Ravnborg wrote: > > > > > > > No, the reason for the odd looking diff is that lots of lines in > > > arch/x86/Makefile have 8-space tabs for histerical reasons but > > > new code (such as this one) has proper tabs. > > >

  1   2   3   >