Re: [PATCH 2/2] perf: SNB exclusive PMU access for INST_RETIRED:PREC_DIST

2012-10-19 Thread Peter Zijlstra
On Fri, 2012-10-19 at 18:31 +0200, Stephane Eranian wrote: On Fri, Oct 19, 2012 at 6:27 PM, Peter Zijlstra pet...@infradead.org wrote: On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: +static int intel_pebs_aliases_snb(struct perf_event *event) +{ + u64 cfg =

[PATCH] MM: Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB v6

2012-10-19 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com There was some desire in large applications using MAP_HUGETLB/SHM_HUGETLB to use 1GB huge pages on some mappings, and stay with 2MB on others. This is useful together with NUMA policy: use 2MB interleaving on some mappings, but 1GB on local mappings. This

[PATCH] RCU: update docs to include kfree_rcu()

2012-10-19 Thread Kees Cook
Mention kfree_rcu() in the call_rcu() section. Additionally fix the example code for list replacement that used the wrong structure element. Signed-off-by: Kees Cook keesc...@chromium.org --- Documentation/RCU/listRCU.txt |2 +- Documentation/RCU/whatisRCU.txt | 13 +++-- 2 files

Re: [PATCHSET cgroup/for-3.8] cgroup_freezer: allow migration regardless of freezer state and update locking

2012-10-19 Thread Rafael J. Wysocki
On Tuesday 16 of October 2012 15:28:39 Tejun Heo wrote: Hello, This patchset updates cgroup_freezer so that * Unfreezable kernel tasks don't prevent a cgroup from transitioning into FROZEN from FREEZING. There's nothing userland can do with or about such tasks. * Tasks can be

[RFC][PATCH 0/5] tools, perf: Fix up for x86 UAPI disintegration

2012-10-19 Thread David Howells
Here are some potential fix ups for perf and other tools. They need to be applied on top of the x86 UAPI disintegration patch. There are five patches: (1) Use a makefile $(call ...) function in tools/Makefile to make it easier to deal with. [NOTE! I think the rule for

[PATCH 1/5] tools: Define a Makefile function to do subdir processing

2012-10-19 Thread David Howells
Define a Makefile function that can be called with $(call ...) to wrap the subdir make invocations in tools/Makefile. This will allow us in the next patch to insert bits in there to honour O= flags when called from the top-level Makefile. Signed-off-by: David Howells dhowe...@redhat.com ---

[PATCH 2/5] tools: Honour the O= flag when tool build called from a higher Makefile

2012-10-19 Thread David Howells
Honour the O= flag that was passed to a higher level Makefile and then passed down as part of a tool build. To make this work, the top-level Makefile passes the original O= flag and subdir=tools to the tools/Makefile, and that in turn passes subdir=$(O)/$(subdir)/foodir when building tool foo in

[PATCH 4/5] x86: Disintegrate asm/svm.h and asm/vmx.h to produce UAPI components for perf

2012-10-19 Thread David Howells
Disintegrate asm/svm.h and asm/vmx.h to produce UAPI components for perf to use: (1) The bits outside of the __KERNEL__ guards are moved to an equivalently named header under arch/x86/include/uapi/. (2) #includes are placed into the remnant files to include the UAPI files. (3) The

[PATCH 5/5] x86: UAPI Disintegrate asm/perf_regs.h

2012-10-19 Thread David Howells
Disintegrate x86's asm/perf_regs.h for UAPI. This just entails moving it to the uapi directory. With this, the #inclusion in perf's perf_regs.h can use asm/perf_regs.h. If this actually wants posting to userspace, then it will need a headers-y line adding to the Kbuild file. Signed-off-by:

[PATCH 3/5] perf: Make perf build for x86 with UAPI disintegration applied

2012-10-19 Thread David Howells
Make perf build for x86 once the UAPI disintegration patches for that arch have been applied by adding the appropriate -I flags - in the right order - and then converting some #includes that use ../.. notation to find main kernel headerfiles to use asm/foo.h and linux/foo.h instead. Note that

Re: [PATCH 0/1] ALSA: hda - add quirk for Thinkpad T430

2012-10-19 Thread Jonathan Nieder
Hi Joseph, joseph.salisb...@canonical.com wrote: [Subject: [PATCH 0/1] ALSA: hda - add quirk for Thinkpad T430]] [...] This patch is to enable audio on T430 Thinkpads. There is no audo from the headphone jack without this patch. This patch adds a quirk for the T430 model. Please don't

Re: [PATCH 2/3] kconfig: add a function to get the CONFIG_ prefix

2012-10-19 Thread Michal Marek
On 18.10.2012 21:50, Yann E. MORIN wrote: -#ifndef CONFIG_ -#define CONFIG_ CONFIG_ +/* Those two defines copied from include/linux/stringify.h */ +#define __stringify_1(x...) #x +#define __stringify(x...)__stringify_1(x) +static inline const char *CONFIG_prefix(void) +{ + return

Re: [RFC][PATCH] perf: Add a few generic stalled-cycles events

2012-10-19 Thread Sukadev Bhattiprolu
Stephane Eranian [eran...@google.com] wrote: | So all in all, I think this is not a very good idea. You have to put | this into the tool or a library that auto-detects the | host CPU and programs the right set of events. | | We've had that discussion many times. Just reiterating my personal |

Re: [PATCH v2] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-19 Thread Konrad Rzeszutek Wilk
On Thu, Oct 18, 2012 at 02:00:58PM -0600, Shuah Khan wrote: Enhance the document to discuss the importance of dma mapping error checks after dma_map_single() and dma_map_page() calls. Also added usage examples that include unmap examples in error paths when dma mapping error is returned.

Re: weird use-after-free bug in module_put

2012-10-19 Thread Al Viro
On Fri, Oct 19, 2012 at 09:33:18AM -0700, Dmitry Torokhov wrote: We are now removing instance of character device corresponding to input device when input device disappears. Ah, I know... cdev is embedded in evdev, but lives longer.. I do want to keep cdev embedded as it allows me to easily

RE: [PATCH] qla3xxx: Ensure request/response queue addr writes to the registers

2012-10-19 Thread Jitendra Kalsaria
From: Joe Jin [mailto:joe@oracle.com] Sent: Thursday, October 18, 2012 6:25 PM To: Ron Mercer; Dept-Eng Linux Driver; Jitendra Kalsaria; Joe Jin Cc: netdev; linux-kernel; Greg Marsden Subject: [PATCH] qla3xxx: Ensure request/response queue addr writes to the registers Before use the

Re: question on NUMA page migration

2012-10-19 Thread Rik van Riel
On 10/19/2012 12:39 PM, Peter Zijlstra wrote: On Fri, 2012-10-19 at 11:53 -0400, Rik van Riel wrote: If we do need the extra refcount, why is normal page migration safe? :) Its mostly a matter of how convoluted you make the code, regular page migration is about as bad as you can get Normal

RE: new execve/kernel_thread design

2012-10-19 Thread Luck, Tony
Surprisingly enough, ia64 one seems to work on actual hardware; I have sent Tony an incremental patch cleaning copy_thread() up, waiting for results of testing that on SMP box. Tiny bit faster than plain 3.7-rc1. lmbench3 reports fork+execve test at between 558 to 567 usec with the new code,

Re: [PATCH 2/2] perf: SNB exclusive PMU access for INST_RETIRED:PREC_DIST

2012-10-19 Thread Andi Kleen
This isn't limited to admin, right? So the above turns into a DoS on the console. Ok, so how about a WARN_ON_ONCE() instead? That should be fine I guess ;-) imho there is need for a generic mechanism to return an error string to the user program without such hacks. -Andi --

RE: [PATCH v2 2/2] Do not change worker's running cpu in cmci_rediscover().

2012-10-19 Thread Luck, Tony
In this case, the following BUG_ON in try_to_wake_up_local() will be triggered: BUG_ON(rq != this_rq()); Logically this looks OK - what is the test case to trigger this? I've done a moderate amount of testing of cpu online/offline while injecting corrected errors (when testing the CMCI

[GIT PULL] parisc high code motion changes for 3.7-rc1

2012-10-19 Thread James Bottomley
This is a couple of high code motion patches (all within arch/parisc) I'd like to apply at -rc1 to avoid conflicts with anything else. One moves us on to the generated instead of included asm file model and the other is a pull request from David Howells for UAPI disintegration. The patches are

Re: new execve/kernel_thread design

2012-10-19 Thread Al Viro
On Fri, Oct 19, 2012 at 05:16:50PM +, Luck, Tony wrote: Surprisingly enough, ia64 one seems to work on actual hardware; I have sent Tony an incremental patch cleaning copy_thread() up, waiting for results of testing that on SMP box. Tiny bit faster than plain 3.7-rc1. lmbench3 reports

Re: pm_qos request for 0 cpu_dma_latency is ignored on Linus master

2012-10-19 Thread Simon Farnsworth
Sorry for the noise. I've just found it's my code at fault - we changed to a 10,000 usec PM request for most platforms a while ago. Simon On Friday 19 October 2012 18:28:18 Simon Farnsworth wrote: (please cc me on replies - I'm not directly subscribed to linux-kernel or linux-pm) I'm

Re: weird use-after-free bug in module_put

2012-10-19 Thread Dmitry Torokhov
On Fri, Oct 19, 2012 at 06:09:51PM +0100, Al Viro wrote: On Fri, Oct 19, 2012 at 09:33:18AM -0700, Dmitry Torokhov wrote: We are now removing instance of character device corresponding to input device when input device disappears. Ah, I know... cdev is embedded in evdev, but lives

Re: [PATCH 1/1] ALSA: hda - add quirk for Thinkpad T430

2012-10-19 Thread Greg KH
On Fri, Oct 19, 2012 at 10:32:30AM -0400, joseph.salisb...@canonical.com wrote: From: Joseph Salisbury joseph.salisb...@canonical.com Signed-off-by: Joseph Salisbury joseph.salisb...@canonical.com --- sound/pci/hda/patch_realtek.c |1 + 1 file changed, 1 insertion(+) formletter

Re: [PATCH 1/2] brw_mutex: big read-write mutex

2012-10-19 Thread Peter Zijlstra
On Fri, 2012-10-19 at 11:32 -0400, Mikulas Patocka wrote: So if you can do an alternative implementation without RCU, show it. Uhm,,. no that's not how it works. You just don't push through crap like this and then demand someone else does it better. But using preempt_{disable,enable} and using

Re: [PATCH 1/3] lp8788-charger: use consumer device name on setting IIO channels

2012-10-19 Thread Jonathan Cameron
On 10/18/2012 07:11 AM, Kim, Milo wrote: To get the ADC value for the battery voltage and temperature, LP8788 ADC driver is used. LP8788 charger driver is the consumer of LP8788 ADC driver. Thus, specific ADC driver name is required on getting the channel using iio_channel_get().

Re: [PATCH 1/1] usb: gadget: Don't attempt to dequeue requests for a disabled USB endpoint on Freescale hardware

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 06:19:26PM +0100, Simon Haggett wrote: Some gadget drivers may attempt to dequeue requests for an endpoint that has already been disabled. For example, in the UVC gadget driver, uvc_function_set_alt() will call usb_ep_disable() when alt setting 0 is selected. When

radeon: RFC speed cap detection on ppc64

2012-10-19 Thread Lucas Kannebley Tavares
The radeon driver does speed cap detection on the root PCI device for the maximum speed with which the adapter can communicate. On ppc64 systems, however, the root device belongs to the Hypervisor, so the current code would case a null pointer dereference. I propose to look for the outmost

Re: [PATCH 2/3] lp8788-charger: fix ADC channel names

2012-10-19 Thread Jonathan Cameron
On 10/18/2012 07:11 AM, Kim, Milo wrote: LP8788 IIO ADC driver and platform data have specific naming convention for ADC channels. That is using prefix 'lp8788_'. To keep this rule, ADC channel names are changed. It's a little unusual to name the consumer side of the map so specifically.

Re: Is: Xen architecture document. Was: Re: [Xen-devel] Is: axe read_tscp pvops call. Was: Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-19 Thread H. Peter Anvin
On 10/19/2012 08:48 AM, Konrad Rzeszutek Wilk wrote: paravirtualized architectures out there which are perfectly well documented and supportable, but Xen has resisted doing that for years, and all we ever get are vague future promises. There is no resistance - and it is being done. Every

Re: [ 60/76] drm/nouveau/bios: fix shadowing of ACPI ROMs larger than 64KiB

2012-10-19 Thread Greg Kroah-Hartman
On Fri, Oct 19, 2012 at 06:01:03PM +0200, Heinz Diehl wrote: On 19.10.2012, Greg Kroah-Hartman wrote: 3.6-stable review patch. If anyone has any objections, please let me know. While 3.6.2 is fine. 3.6.3-rc1 crashes my machine (Asus U45-JC) at boot. A screenshot of the output is here:

Re: [PATCH 1/2] brw_mutex: big read-write mutex

2012-10-19 Thread Oleg Nesterov
On 10/19, Mikulas Patocka wrote: synchronize_rcu() is way slower than msleep(1) - This depends, I guess. but this doesn't mmatter, so I don't see a reason why should it be complicated to avoid msleep(1). I don't think this really needs complications. Please look at this patch for example.

Re: weird use-after-free bug in module_put

2012-10-19 Thread Al Viro
On Fri, Oct 19, 2012 at 10:36:39AM -0700, Dmitry Torokhov wrote: On Fri, Oct 19, 2012 at 06:09:51PM +0100, Al Viro wrote: On Fri, Oct 19, 2012 at 09:33:18AM -0700, Dmitry Torokhov wrote: We are now removing instance of character device corresponding to input device when input device

[PATCH 1/1] usb: gadget: Don't attempt to dequeue requests for a disabled USB endpoint on Freescale hardware

2012-10-19 Thread Simon Haggett
Some gadget drivers may attempt to dequeue requests for an endpoint that has already been disabled. For example, in the UVC gadget driver, uvc_function_set_alt() will call usb_ep_disable() when alt setting 0 is selected. When the userspace application subsequently issues the VIDIOC_STREAMOFF

Re: question on NUMA page migration

2012-10-19 Thread Peter Zijlstra
On Fri, 2012-10-19 at 13:13 -0400, Rik van Riel wrote: Would it make sense to have the normal page migration code always work with the extra refcount, so we do not have to introduce a new MIGRATE_FAULT migration mode? On the other hand, compaction does not take the extra reference...

Re: [PATCH 1/2] brw_mutex: big read-write mutex

2012-10-19 Thread Oleg Nesterov
On 10/19, Peter Zijlstra wrote: But using preempt_{disable,enable} and using synchronize_sched() would be better (for PREEMPT_RCU) although it wouldn't fix anything fundamental. BTW, I agree. I didn't even notice percpu-rwsem.h uses _rcu, not _sched. Fine goal, although somewhat arch

Re: [PATCH v2] acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-19 Thread Greg Kroah-Hartman
On Fri, Oct 19, 2012 at 06:29:52AM +0200, Rafael J. Wysocki wrote: On Thursday 11 of October 2012 19:12:28 Yasuaki Ishimatsu wrote: acpi_bus_trim() stops removing devices, when acpi_bus_remove() return error number. But acpi_bus_remove() cannot return error number correctly.

Re: [PATCH 2/3] kconfig: add a function to get the CONFIG_ prefix

2012-10-19 Thread Yann E. MORIN
Michal, All, On Friday 19 October 2012 Michal Marek wrote: On 18.10.2012 21:50, Yann E. MORIN wrote: -#ifndef CONFIG_ -#define CONFIG_ CONFIG_ +/* Those two defines copied from include/linux/stringify.h */ +#define __stringify_1(x...)#x +#define __stringify(x...)

Re: new execve/kernel_thread design

2012-10-19 Thread Tony Luck
On Fri, Oct 19, 2012 at 10:30 AM, Al Viro v...@zeniv.linux.org.uk wrote: IIRC, the lack of comments on function with unusual calling conventions was the last remaining issue... Stylistically other asm functions have huge block header comments detailing register usage. But typically those are

Re: [PATCH RFC 02/15 v5] gpio: Add sysfs support to block GPIO API

2012-10-19 Thread Greg KH
On Thu, Oct 18, 2012 at 12:07:39PM +0200, Roland Stigge wrote: On 10/17/2012 09:05 PM, Greg KH wrote: +static int gpio_block_value_unexport(struct gpio_block *block) +{ + struct device *dev; + int i; + + dev = class_find_device(gpio_block_class, NULL, block,

Re: [GIT PULL] Please pull the Hexagon branch

2012-10-19 Thread Linus Torvalds
On Thu, Oct 18, 2012 at 5:16 PM, Richard Kuo r...@codeaurora.org wrote: Please pull the following small changes for the Hexagon arch. It includes the Hexagon UAPI changes from David Howells and some CR marking changes for the transition from Code Aurora to Linux Foundation. Can you please

Re: [PATCH v2] pinctrl: reserve pins when states are activated

2012-10-19 Thread Tony Lindgren
* Linus Walleij linus.wall...@stericsson.com [121019 06:09]: Instead: let use reserve the pins when the state is activated and drop them when the state is disabled, i.e. when we move to another state. This way different devices/functions can use the same pins at different times. Hmm doesn't

Re: [PATCH v4 2/2] block: Convert integrity to bvec_alloc_bs()

2012-10-19 Thread Vivek Goyal
On Mon, Oct 15, 2012 at 01:09:02PM -0700, Kent Overstreet wrote: This adds a pointer to the bvec array to struct bio_integrity_payload, instead of the bvecs always being inline; then the bvecs are allocated with bvec_alloc_bs(). Changed bvec_alloc_bs() and bvec_free_bs() to take a pointer to

Re: [RESEND PATCH v2 1/2] update mem= option's spec according to its implementation

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 6:16 AM, we...@cn.fujitsu.com wrote: From: Wen Congyang we...@cn.fujitsu.com Current mem= implementation seems buggy because specification and implementation doesn't match. Current mem= has been working for many years and it's not buggy, it works as expected. So we

Re: weird use-after-free bug in module_put

2012-10-19 Thread Dmitry Torokhov
On Fri, Oct 19, 2012 at 06:50:46PM +0100, Al Viro wrote: On Fri, Oct 19, 2012 at 10:36:39AM -0700, Dmitry Torokhov wrote: On Fri, Oct 19, 2012 at 06:09:51PM +0100, Al Viro wrote: On Fri, Oct 19, 2012 at 09:33:18AM -0700, Dmitry Torokhov wrote: We are now removing instance of

Re: [PATCH 1/4] acpi,memory-hotplug : add memory offline code to acpi_memory_device_remove()

2012-10-19 Thread KOSAKI Motohiro
Hmm, IIRC, if the memory is recognized from kerenl before driver initialization, the memory device is not managed by the driver acpi_memhotplug. Yup. I think we should also deal with REMOVAL_NORMAL here now. Otherwise it will cause some critical problem: we unbind the device from the

[GIT PATCH] USB patches for 3.7-rc2

2012-10-19 Thread Greg KH
The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14:41:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.7-rc1 for you to fetch changes up to

[GIT PATCH] TTY patches for 3.7-rc2

2012-10-19 Thread Greg KH
The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14:41:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-3.7-rc1 for you to fetch changes up to

Re: [PATCH v2 1/3] acpi,memory-hotplug: call acpi_bus_trim() to remove memory device

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 6:03 AM, we...@cn.fujitsu.com wrote: From: Wen Congyang we...@cn.fujitsu.com The memory device has been ejected and powoffed, so we can call acpi_bus_trim() to remove the memory device from acpi bus. CC: David Rientjes rient...@google.com CC: Jiang Liu

Re: question on NUMA page migration

2012-10-19 Thread Rik van Riel
On 10/19/2012 01:53 PM, Peter Zijlstra wrote: On Fri, 2012-10-19 at 13:13 -0400, Rik van Riel wrote: Another alternative might be to do the put_page inside do_prot_none_numa(). That would be analogous to do_wp_page disposing of the old page for the caller. It'd have to be inside

Re: [PATCH 1/10] memory-hotplug : check whether memory is offline or not when removing memory

2012-10-19 Thread KOSAKI Motohiro
I think it again, and found that this check is necessary. Because we only lock memory hotplug when offlining pages. Here is the steps to offline and remove memory: 1. lock memory hotplug 2. offline a memory section 3. unlock memory hotplug 4. repeat 1-3 to offline all memory sections 5.

Re: new execve/kernel_thread design

2012-10-19 Thread Al Viro
On Fri, Oct 19, 2012 at 11:01:53AM -0700, Tony Luck wrote: On Fri, Oct 19, 2012 at 10:30 AM, Al Viro v...@zeniv.linux.org.uk wrote: IIRC, the lack of comments on function with unusual calling conventions was the last remaining issue... Stylistically other asm functions have huge block

[GIT PULL] hwmon fixes for 3.7-rc2

2012-10-19 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux 3.7-rc2 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus Thanks, Guenter -- The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14

Re: [PATCH] percpu-rwsem: use barrier in unlock path

2012-10-19 Thread Linus Torvalds
On Thu, Oct 18, 2012 at 9:00 AM, Mikulas Patocka mpato...@redhat.com wrote: What is the procedure for making changes that require support of architectures? It is trivial to make a patch that moves this into arch-specific includes, the problem is that the patch break all the architectures - I

Re: [GIT PULL] Please pull the Hexagon branch

2012-10-19 Thread Richard Kuo
On Fri, Oct 19, 2012 at 11:08:40AM -0700, Linus Torvalds wrote: On Thu, Oct 18, 2012 at 5:16 PM, Richard Kuo r...@codeaurora.org wrote: Please pull the following small changes for the Hexagon arch. It includes the Hexagon UAPI changes from David Howells and some CR marking changes for

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-19 Thread Andrew Morton
On Fri, 19 Oct 2012 10:10:16 +0100 Will Deacon will.dea...@arm.com wrote: On Thu, Oct 18, 2012 at 11:05:02PM +0100, Andrew Morton wrote: On Wed, 17 Oct 2012 16:54:02 +0100 Will Deacon will.dea...@arm.com wrote: On x86 memory accesses to pages without the ACCESSED flag set result in

[GIT PULL] xtensa patches

2012-10-19 Thread Chris Zankel
Hi Linus, Could you please pull the changes from the Xtensa repository. They are all limited to the xtensa subtree and include some important changes (adding long missing system calls for newer libc versions and other fixes) and the UAPI changes. Thanks, -Chris The following changes since

pm_qos request for 0 cpu_dma_latency is ignored on Linus master

2012-10-19 Thread Simon Farnsworth
(please cc me on replies - I'm not directly subscribed to linux-kernel or linux-pm) I'm trying to track down why a Sandybridge system with a PCIe to PCI riser has problems after enabling GPU RC6, and I've reduced my problem to the menu cpuidle governor selecting high C-states from intel_idle,

Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-19 Thread Konrad Rzeszutek Wilk
On Wed, Oct 17, 2012 at 02:00:29PM -0400, Ben Guthro wrote: I'm not sure it matters, but I'm testing against a changeset about a week old: http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=1c4a5b37b55c56e49135e65728137f54288d1fe6 I was able to reproduce it with Xen 4.2 so found the culprit.

Re: [PATCH V3 0/3] PNP: Allow PNP resources to be disabled (interface)

2012-10-19 Thread Witold Szczeponik
On 18/09/12 23:42, Rafael J. Wysocki wrote: Hi, On Sunday, September 16, 2012, Witold Szczeponik wrote: Hi Rafael, what about the patches 1 and 3 which do not make any changes to the ABI? The first patch simplifies the code, while the third patch fixes a problem in the PNP resource

Re: [PATCH 2/3] staging/sbe-2t3e3: Use netdev_ or dev_ or pr_ printks in module.c

2012-10-19 Thread Greg Kroah-Hartman
On Thu, Sep 27, 2012 at 10:59:10PM +0900, YAMANE Toshiaki wrote: fixed below checkpatch warning. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... and add pr_fmt. Signed-off-by: YAMANE Toshiaki yamaneto...@gmail.com ---

Re: [PATCH 1/3] staging/sbe-2t3e3: Use netdev_ printks in main.c

2012-10-19 Thread Greg Kroah-Hartman
On Thu, Sep 27, 2012 at 10:57:51PM +0900, YAMANE Toshiaki wrote: fixed below checkpatch warning. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki yamaneto...@gmail.com Your coding style cleanup patch

Re: [ 60/76] drm/nouveau/bios: fix shadowing of ACPI ROMs larger than 64KiB

2012-10-19 Thread Heinz Diehl
On 19.10.2012, Greg Kroah-Hartman wrote: Does Linus's 3.7 git tree also crash for you this way? Yes, it crashes in the same way with latest linus git 3.7. Here's the screenshot: http://www.fritha.org/crash-linus-git.jpg -- To unsubscribe from this list: send the line unsubscribe linux-kernel

[PATCH] xen/hvm: If we fail to fetch an HVM parameter print out which flag it is.

2012-10-19 Thread Konrad Rzeszutek Wilk
Makes it easier to troubleshoot in the field. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- include/xen/hvm.h | 31 +-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/include/xen/hvm.h b/include/xen/hvm.h index b193fa2..c2a4238

Re: [patch for-3.7 v3] mm, mempolicy: hold task-mempolicy refcount while reading numa_maps.

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 4:35 AM, Kamezawa Hiroyuki kamezawa.hir...@jp.fujitsu.com wrote: (2012/10/19 5:03), David Rientjes wrote: On Thu, 18 Oct 2012, Kamezawa Hiroyuki wrote: @@ -132,7 +162,7 @@ static void *m_start(struct seq_file *m, loff_t *pos) tail_vma =

[PATCH v2 RESEND] ACPI: Add ACPI CPU hot-remove support

2012-10-19 Thread Toshi Kani
Added CPU hot-remove support through an ACPI eject notification. It calls acpi_bus_hot_remove_device(), which shares the same code path with the sysfs eject operation. acpi_os_hotplug_execute() serializes hot-remove operations between ACPI hot-remove and sysfs eject requests. Signed-off-by:

Re: [E1000-devel] [PATCH] RX initialization sequence fixed - enable RX after corresponding ring initialization only

2012-10-19 Thread Richard Davies
Jeff Kirsher wrote: Dmitry Fleytman wrote: Reported-by: Chris Webb chris.w...@elastichosts.com Reported-by: Richard Davies richard.dav...@elastichosts.com Signed-off-by: Dmitry Fleytman dmi...@daynix.com --- drivers/net/ethernet/intel/e1000/e1000_ethtool.c |9 +

[3.6.x][e1000e] - Regression - Unable to receive packets if MTU == 1500

2012-10-19 Thread Shawn Starr
Hello kernel folks, I recently decided to reinstall my Lenovo W500 laptop and found I wasn't able to get DHCP leases, I wasn't able to install over PXE (when getting the IP a second time within the OS) Fedora is currently using kernel-3.6.2-2.fc18.x86_64 (Pre-beta) The only difference I

Re: [PATCH v2 2/3] acpi,memory-hotplug: introduce a mutex lock to protect the list in acpi_memory_device

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 6:03 AM, we...@cn.fujitsu.com wrote: From: Wen Congyang we...@cn.fujitsu.com The memory device can be removed by 2 ways: 1. send eject request by SCI 2. echo 1 /sys/bus/pci/devices/PNP0C80:XX/eject This 2 events may happen at the same time, so we may touch

Re: MAX_LOCKDEP_ENTRIES too low (called from ioc_release_fn)

2012-10-19 Thread Dave Jones
On Fri, Oct 19, 2012 at 02:49:32PM +0200, Peter Zijlstra wrote: Of course, if you do run out of lock classes, the next thing to do is to find the offending lock classes. First, the following command gives you the number of lock classes currently in use along with the maximum:

Re: [PATCH v5 04/18] slab: don't preemptively remove element from list in cache destroy

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Glauber Costa wrote: I, however, see no reason why we need to do so, since we are now locked during the whole deletion (which wasn't necessarily true before). I propose a simplification in which we delete it only when there is no more going back, so we don't need to add

Re: [E1000-devel] [PATCH] RX initialization sequence fixed - enable RX after corresponding ring initialization only

2012-10-19 Thread Dmitry Fleytman
Exactly. This patch is incorrect and should be ignored. Dmitry. On Fri, Oct 19, 2012 at 9:19 PM, Richard Davies richard.dav...@elastichosts.com wrote: Jeff Kirsher wrote: Dmitry Fleytman wrote: Reported-by: Chris Webb chris.w...@elastichosts.com Reported-by: Richard Davies

Re: [PATCH V3] block/throttle: Add IO throttled information in blkio.throttle

2012-10-19 Thread Tejun Heo
Hello, Vivek. On Fri, Oct 19, 2012 at 11:00:11AM -0400, Vivek Goyal wrote: That way we can stick to the usual stats facility. So how does this help? Because it is a monotonically increasing value we can use per cpu stats without extra locking? Or somthing else? It's generally much simpler

Re: [PATCH V3] block/throttle: Add IO throttled information in blkio.throttle

2012-10-19 Thread Vivek Goyal
On Fri, Oct 19, 2012 at 12:36:00PM -0700, Tejun Heo wrote: Hello, Vivek. On Fri, Oct 19, 2012 at 11:00:11AM -0400, Vivek Goyal wrote: That way we can stick to the usual stats facility. So how does this help? Because it is a monotonically increasing value we can use per cpu stats

Re: [PATCH cgroup/for-3.7-fixes 1/2] Revert cgroup: Remove task_lock() from cgroup_post_fork()

2012-10-19 Thread Frederic Weisbecker
2012/10/19 Tejun Heo t...@kernel.org: On Fri, Oct 19, 2012 at 09:35:26AM -0400, Frederic Weisbecker wrote: 2012/10/18 Tejun Heo t...@kernel.org: From d935a5d6832a264ce52f4257e176f4f96cbaf048 Mon Sep 17 00:00:00 2001 From: Tejun Heo t...@kernel.org Date: Thu, 18 Oct 2012 17:40:30 -0700

Re: [PATCH v5 10/18] sl[au]b: always get the cache from its page in kfree

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Glauber Costa wrote: struct page already have this information. If we start chaining caches, this information will always be more trustworthy than whatever is passed into the function Yes it does but the information is not standardized between the allocators yet. Coul you

Re: [PATCH v5 11/18] sl[au]b: Allocate objects from memcg cache

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Glauber Costa wrote: We are able to match a cache allocation to a particular memcg. If the task doesn't change groups during the allocation itself - a rare event, this will give us a good picture about who is the first group to touch a cache page. No that the

Re: [PATCH v5 14/18] memcg/sl[au]b: shrink dead caches

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Glauber Costa wrote: An unlikely branch is used to make sure this case does not affect performance in the usual slab_free path. The slab allocator has a time based reaper that would eventually get rid of the objects, but we can also call it explicitly, since dead caches

Re: [PATCH 3/6] memcg: Simplify mem_cgroup_force_empty_list error handling

2012-10-19 Thread Tejun Heo
Hello, Michal. On Fri, Oct 19, 2012 at 03:24:38PM +0200, Michal Hocko wrote: Maybe convert to proper /** function comment while at it? these are internal functions and we usually do not create kerneldoc for them. But I can surely change it - it would deserve a bigger clean up then.

Re: [PATCH v5 15/18] Aggregate memcg cache values in slabinfo

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Glauber Costa wrote: + +/* + * We use suffixes to the name in memcg because we can't have caches + * created in the system with the same name. But when we print them + * locally, better refer to them with the base name + */ +static inline const char *cache_name(struct

Re: [PATCH v5 16/18] slab: propagate tunables values

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Glauber Costa wrote: SLAB allows us to tune a particular cache behavior with tunables. When creating a new memcg cache copy, we'd like to preserve any tunables the parent cache already had. SLAB and SLUB allow tuning. Could you come up with some way to put these things

Re: [PATCH] mm: memmap_init_zone() performance improvement

2012-10-19 Thread Mike Yoknis
On Tue, 2012-10-09 at 08:56 -0600, Mike Yoknis wrote: On Mon, 2012-10-08 at 16:16 +0100, Mel Gorman wrote: On Wed, Oct 03, 2012 at 08:56:14AM -0600, Mike Yoknis wrote: memmap_init_zone() loops through every Page Frame Number (pfn), including pfn values that are within the gaps between

Re: [PATCH v2 1/1] ALSA: hda - add quirk for Thinkpad T430

2012-10-19 Thread Jonathan Nieder
joseph.salisb...@canonical.com wrote: This patch adds a quirk to enable headphone jack audio on T430 Thinkpads. Signed-off-by: Joseph Salisbury joseph.salisb...@canonical.com Cc: sta...@vger.kernel.org Thanks --- this is a little better. One more nit: it looks like this was reported,

Re: RFC: sign the modules at install time

2012-10-19 Thread Linus Torvalds
On Thu, Oct 18, 2012 at 6:23 PM, Rusty Russell ru...@rustcorp.com.au wrote: Smerged them together: no point moving the x509keyid script now. I dropped the optional dst arg, since we don't use it. Thanks, Rusty. === From: Rusty Russell ru...@rustcorp.com.au Subject: [PATCH] kbuild: sign

Re: [PATCHSET cgroup/for-3.8] cgroup_freezer: allow migration regardless of freezer state and update locking

2012-10-19 Thread Tejun Heo
Hey, Matt. On Thu, Oct 18, 2012 at 06:29:45PM -0700, Matt Helsley wrote: Yeah, that would be a nice cleanup too. I guess the ultra-careful way to remove this feature would be something like: Add an internal migration restriction (which may or may not be exported as a

Re: [PATCHSET cgroup/for-3.8] cgroup_freezer: allow migration regardless of freezer state and update locking

2012-10-19 Thread Tejun Heo
On Fri, Oct 19, 2012 at 06:54:42PM +0200, Rafael J. Wysocki wrote: git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-cgroup_freezer-locking It seems that no one has any comments. :-) Are you going to prepare a branch for me to pull from? I'm waiting for Oleg to poke

[PATCH 1/2] cpufreq: return early from __cpufreq_driver_getavg()

2012-10-19 Thread Viresh Kumar
There is no need to do cpufreq_get_cpu() and cpufreq_put_cpu() for drivers that don't support getavg() routine. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/cpufreq/cpufreq.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c

Re: [PATCH 4/6] cgroups: forbid pre_destroy callback to fail

2012-10-19 Thread Tejun Heo
On Fri, Oct 19, 2012 at 05:33:18PM +0800, Li Zefan wrote: On 2012/10/17 21:30, Michal Hocko wrote: Now that mem_cgroup_pre_destroy callback doesn't fail finally we can safely move on and forbit all the callbacks to fail. The last missing piece is moving cgroup_call_pre_destroy after

Re: [PATCH 4/6] cgroups: forbid pre_destroy callback to fail

2012-10-19 Thread Tejun Heo
Hello, Michal. On Fri, Oct 19, 2012 at 03:32:45PM +0200, Michal Hocko wrote: On Thu 18-10-12 15:41:48, Tejun Heo wrote: Hello, Michal. On Wed, Oct 17, 2012 at 03:30:46PM +0200, Michal Hocko wrote: Now that mem_cgroup_pre_destroy callback doesn't fail finally we can safely move on

Re: [PATCH v4 1/2] block: Fix a buffer overrun in bio_integrity_split()

2012-10-19 Thread Tejun Heo
On Mon, Oct 15, 2012 at 01:09:01PM -0700, Kent Overstreet wrote: bio_integrity_split() seemed to be confusing pointers and arrays - bip_vec in bio_integrity_payload was an array appended to the end of the payload, so the bio_vecs in struct bio_pair should have come after the

Re: [PATCH v5 06/14] memcg: kmem controller infrastructure

2012-10-19 Thread David Rientjes
On Fri, 19 Oct 2012, Glauber Costa wrote: What about gfp __GFP_FS? Do you intend to prevent or allow OOM under that flag? I personally think that anything that accepts to be OOM-killed should have GFP_WAIT set, so that ought to be enough. The oom killer in the page allocator

Re: [PATCH v2 01/26] block: Convert integrity to bvec_alloc_bs(), and a bugfix

2012-10-19 Thread Tejun Heo
On Mon, Oct 15, 2012 at 01:09:04PM -0700, Kent Overstreet wrote: This adds a pointer to the bvec array to struct bio_integrity_payload, instead of the bvecs always being inline; then the bvecs are allocated with bvec_alloc_bs(). This is needed eventually for immutable bio vecs - immutable

Re: [PATCH v2 01/26] block: Convert integrity to bvec_alloc_bs(), and a bugfix

2012-10-19 Thread Tejun Heo
On Fri, Oct 19, 2012 at 01:34:21PM -0700, Tejun Heo wrote: On Mon, Oct 15, 2012 at 01:09:04PM -0700, Kent Overstreet wrote: This adds a pointer to the bvec array to struct bio_integrity_payload, instead of the bvecs always being inline; then the bvecs are allocated with bvec_alloc_bs().

Re: [PATCH 1/1] Update acpi_root_bridge_list in container hotplug path.

2012-10-19 Thread Yinghai Lu
On Fri, Oct 19, 2012 at 1:49 AM, Tang Chen tangc...@cn.fujitsu.com wrote: Is it just container and pci_root_bridge hot-remove need to call acpi_bus_trim() twice ? For normal device without sub-device, I think it is OK to call acpi_bus_trim(device, 1). The reason why I'm asking this question

[PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-19 Thread Chris Metcalf
Also provide an optimized current_pt_regs() while we're at it. Signed-off-by: Chris Metcalf cmetc...@tilera.com --- arch/tile/Kconfig |2 + arch/tile/include/asm/processor.h |3 ++ arch/tile/include/asm/switch_to.h |5 +- arch/tile/kernel/entry.S | 11

[PATCH] arch/tile: avoid generating .eh_frame information in modules

2012-10-19 Thread Chris Metcalf
The tile tool chain uses the .eh_frame information for backtracing. The vmlinux build drops any .eh_frame sections at link time, but when present in kernel modules, it causes a module load failure due to the presence of unsupported pc-relative relocations. When compiling to use compiler feedback

[PATCH] arch/tile: avoid build warnings from duplicate ELF_R_xxx #defines

2012-10-19 Thread Chris Metcalf
These are now provided in asm-generic/module.h, so clean up warning by not re-defining them in module.c. Signed-off-by: Chris Metcalf cmetc...@tilera.com --- arch/tile/kernel/module.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/tile/kernel/module.c

[PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-19 Thread Chris Metcalf
Also provide an optimized current_pt_regs() while we're at it. Signed-off-by: Chris Metcalf cmetc...@tilera.com --- [Re-sending to correct linus-arch / linux-arch typo.] arch/tile/Kconfig |2 + arch/tile/include/asm/processor.h |3 ++ arch/tile/include/asm/switch_to.h |

Re: [PATCH v2 1/1] ALSA: hda - add quirk for Thinkpad T430

2012-10-19 Thread Takashi Iwai
At Fri, 19 Oct 2012 12:54:21 -0700, Jonathan Nieder wrote: joseph.salisb...@canonical.com wrote: This patch adds a quirk to enable headphone jack audio on T430 Thinkpads. Signed-off-by: Joseph Salisbury joseph.salisb...@canonical.com Cc: sta...@vger.kernel.org Thanks --- this is a

<    5   6   7   8   9   10   11   12   >