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

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

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: [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 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) > +{ > +

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

[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 and instead. Note that -Iarch/foo/include/uapi

[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 . If this actually wants posting to userspace, then it will need a headers-y line adding to the Kbuild file. Signed-off-by: David Howells ---

[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 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 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 --- tools/Makefile

[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

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

[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 --- Documentation/RCU/listRCU.txt |2 +- Documentation/RCU/whatisRCU.txt | 13 +++-- 2 files changed, 12

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

2012-10-19 Thread Andi Kleen
From: Andi Kleen 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 extends the

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 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 = event->hw.config; >

Re: [PATCH V2] PWM: Add SPEAr PWM chip driver support

2012-10-19 Thread shiraz hashim
Hi Viresh, On Fri, Oct 19, 2012 at 7:14 PM, Viresh Kumar wrote: > On 19 October 2012 15:45, Shiraz Hashim wrote: >> diff --git a/Documentation/devicetree/bindings/pwm/spear-pwm.txt >> b/Documentation/devicetree/bindings/pwm/spear-pwm.txt >> +pwm: pwm@a800 { >> +

Re: [RFC PATCH v3 00/16] DMA Engine support for AM33XX

2012-10-19 Thread Matt Porter
On Fri, Oct 19, 2012 at 12:02:42PM +, Bedia, Vaibhav wrote: > On Fri, Oct 19, 2012 at 16:45:58, Porter, Matt wrote: > > On Fri, Oct 19, 2012 at 10:26:20AM +, Bedia, Vaibhav wrote: > [...] > > > > > > I didn't see all the patches that you posted on edma-dmaengine-v3 > > > but I do seem

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

2012-10-19 Thread Borislav Petkov
On Fri, Oct 19, 2012 at 01:45:28PM +0800, Tang Chen wrote: > cmci_rediscover() used set_cpus_allowed_ptr() to change the current process's > running cpu, and migrate itself to the dest cpu. But worker processes are not > allowed to be migrated. If current is a worker, the worker will be migrated

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-19 Thread Yinghai Lu
On Fri, Oct 19, 2012 at 9:24 AM, Stefano Stabellini wrote: > On Thu, 18 Oct 2012, Yinghai Lu wrote: >> Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. >> then use mapped pages to map more range below, and keep looping until >> all pages get mapped. >> >> alloc_low_page

Re: [PATCH v2 1/2] Replace if statement with WARN_ON_ONCE() in cmci_rediscover().

2012-10-19 Thread Borislav Petkov
On Fri, Oct 19, 2012 at 01:45:27PM +0800, Tang Chen wrote: > cmci_rediscover() is only called by the CPU_POST_DEAD event handler, > which means the corresponding cpu has already dead. As a result, it > won't be accessed in the for_each_online_cpu loop. > So, we could change the if(cpu == dying)

Re: question on NUMA page migration

2012-10-19 Thread Peter Zijlstra
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 does: follow_page(FOLL_GET) +1

Re: [ath9k-devel] [PATCH net-next 00/21] treewide: Use consistent api style for address testing

2012-10-19 Thread Joe Perches
(cc list trimmed) On Fri, 2012-10-19 at 11:55 -0400, Pavel Roskin wrote: > On Fri, 19 Oct 2012 09:04:14 +0200 > Eric Dumazet wrote: > > > Yes they are some names discrepancies, thats a big deal. > > > > And we have alloc_skb() / kfree_skb() / skb_clone() > > > > Why not skb_alloc() /

Re: [PATCH 5/5] xen-kbdfront: handle backend CLOSED without CLOSING

2012-10-19 Thread Dmitry Torokhov
On Fri, Oct 19, 2012 at 09:00:59AM -0400, Konrad Rzeszutek Wilk wrote: > On Thu, Oct 18, 2012 at 11:03:38AM +0100, David Vrabel wrote: > > From: David Vrabel > > > > Backend drivers shouldn't transistion to CLOSED unless the frontend is > > CLOSED. If a backend does transition to CLOSED too

Re: weird use-after-free bug in module_put

2012-10-19 Thread Dmitry Torokhov
Hi Dave, On Fri, Oct 19, 2012 at 11:34:52AM -0400, Dave Jones wrote: > On Fri, Oct 19, 2012 at 10:43:51AM -0400, Dave Jones wrote: > > I've hit this twice in the last two days while fuzz testing. > > (Both times on i686 only, my x86-64 tests aren't hitting it > > for some reason). > > > >

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

2012-10-19 Thread Stephane Eranian
On Fri, Oct 19, 2012 at 6:27 PM, Peter Zijlstra 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 = event->hw.config; >> + /* >> +* for INST_RETIRED.PREC_DIST to work correctly

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Stephen Warren
On 10/19/2012 09:35 AM, Felipe Balbi wrote: > Hi, > > On Fri, Oct 19, 2012 at 04:08:05PM +0530, Venu Byravarasu wrote: >> NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. In >> order to support USB PHY drivers on these SoCs, existing PHY >> driver is split into SoC agnostic common USB

Re: MAINTAINERS: Add Rafael's address to ACPI maintainers

2012-10-19 Thread Len Brown
> ACPI > M: Len Brown > +M: Rafael J. Wysocki Acked-by: Len Brown -- 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 http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: [PATCH v2 0/3] acpi,memory-hotplug : implement framework for hot removing memory

2012-10-19 Thread Rafael J. Wysocki
On Friday 19 of October 2012 18:03:57 we...@cn.fujitsu.com wrote: > From: Wen Congyang > > The patch-set implements a framework for hot removing memory. > > 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 > > In the

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 16:52 +0200, Stephane Eranian wrote: > +static int intel_pebs_aliases_snb(struct perf_event *event) > +{ > + u64 cfg = event->hw.config; > + /* > +* for INST_RETIRED.PREC_DIST to work correctly with PEBS, it must > +* be measured alone on SNB

Re: [PULL REQ] IXP4xx changes for Linux 3.7

2012-10-19 Thread Jason Cooper
On Thu, Oct 18, 2012 at 12:01:17AM +0200, Krzysztof Halasa wrote: ... > Unfortunately, as I already explained to you in > https://lkml.org/lkml/2012/9/29/37, my resources for IXP4xx are very > limited (and this isn't a paid job) and I'm in no way able to do what > you require. This, coupled with

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-19 Thread Stefano Stabellini
On Thu, 18 Oct 2012, Yinghai Lu wrote: > Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. > then use mapped pages to map more range below, and keep looping until > all pages get mapped. > > alloc_low_page will use page from BRK at first, after that buff is used up, > will

Re: [PATCH] pinctrl/nomadik: use irq_create_mapping()

2012-10-19 Thread Stephen Warren
On 10/19/2012 09:09 AM, Linus Walleij wrote: > From: Linus Walleij > > Since in the DT case, the linear domain path will not allocate > descriptors for the IRQs, we need to use irq_create_mapping() > for mapping hwirqs to Linux IRQs, so these descriptors get > created on-the-fly in this case. >

Re: [PATCH v2 1/7] swiotlb: Make io_tlb_end a physical address instead of a virtual one

2012-10-19 Thread Alexander Duyck
On 10/19/2012 07:18 AM, Konrad Rzeszutek Wilk wrote: > On Thu, Oct 18, 2012 at 08:53:33AM -0700, Alexander Duyck wrote: >> end to be physical instead of virtual. I reviewed the code and realized >> that I wasn't saving anything by removing it since the overall code was >> larger as a result so I

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

2012-10-19 Thread Stephen Warren
On 10/19/2012 07:05 AM, Linus Walleij wrote: > From: Linus Walleij > > This switches the way that pins are reserved for multiplexing: > > We used to do this when the map was parsed, at the creation of > the settings inside the pinctrl handle, in pinmux_map_to_setting(). > > However this does

[PATCH] devfreq: exynos4_bus.c: Fixed an alignment of the func call args.

2012-10-19 Thread Sangho Yi
I fixed the following check item (via checkpatch.pl --strict option): CHECK: Alignment should match open parenthesis Signed-off-by: Sangho Yi --- drivers/devfreq/exynos4_bus.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/exynos4_bus.c

Re: [PATCH 4/4 v2] gpio/tegra: convert to use linear irqdomain

2012-10-19 Thread Stephen Warren
On 10/19/2012 04:54 AM, Linus Walleij wrote: > The Tegra driver tries to do the work of irq_domain_add_linear() > by reserving a bunch of descriptors somewhere and keeping track > of the base offset, then calling irq_domain_add_legacy(). Let's > stop doing that and simply use the linear IRQ

[PATCH] kvm, async_pf: exit idleness when handling KVM_PV_REASON_PAGE_NOT_PRESENT

2012-10-19 Thread Sasha Levin
KVM_PV_REASON_PAGE_NOT_PRESENT kicks cpu out of idleness, but we haven't marked that spot as an exit from idleness. Not doing so can cause RCU warnings such as: [ 732.788386] === [ 732.789803] [ INFO: suspicious RCU usage. ] [ 732.790032] 3.7.0-rc1-next-20121019

Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Jiri Olsa
On Fri, Oct 19, 2012 at 08:46:10AM -0700, Andi Kleen wrote: > > That's what I thought too, but then I don't understand why it was at > > eight before and not > > seven: One instance of each letter, + a second for pp (precise=2). Or > > am I missing > > something here? > > The number is pretty

Re: [PATCH 3/4] Use devm_request_irq to avoid some checks

2012-10-19 Thread Lars-Peter Clausen
On 10/19/2012 04:44 PM, Marcos Souza wrote: > Hi Lars, > > 2012/10/19 Lars-Peter Clausen : >> On 10/19/2012 01:41 AM, Marcos Paulo de Souza wrote: >>> With this we can remove a lot of checks. >>> >>> Signed-off-by: Marcos Paulo de Souza >> >> This one is a bit more tricky and the driver

Re: process hangs on do_exit when oom happens

2012-10-19 Thread Michal Hocko
On Wed 17-10-12 18:23:34, gaoqiang wrote: > I looked up nothing useful with google,so I'm here for help.. > > when this happens: I use memcg to limit the memory use of a > process,and when the memcg cgroup was out of memory, > the process was oom-killed however,it cannot really complete the >

Re: [PATCH] pstore/ram: fix undefined usage of rounddown_pow_of_two.

2012-10-19 Thread Kees Cook
On Fri, Oct 19, 2012 at 4:59 AM, Florian Fainelli wrote: > From: Maxime Bizon > > record_size / console_size / ftrace_size can be 0 (this is how you > disable the feature), but rounddown_pow_of_two(0) is undefined. This problem > has been present since commit 1894a253 (ramoops: Move to

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: > 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: http://www.fritha.org/crash.jpg Reverting this one fixes it: >

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 Konrad Rzeszutek Wilk
> 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 month we document various APIs, man-pages, etc so that

Re: [PATCH v7 2/3] pwm_backlight: use power sequences

2012-10-19 Thread Stephen Warren
On 10/19/2012 03:20 AM, Tony Prisk wrote: > On Fri, 2012-10-19 at 18:06 +0900, Alexandre Courbot wrote: >> Make use of the power sequences specified in the device tree or platform >> data to control how the backlight is powered on and off. Tony, please do cut down the amount of the patch that you

Re: [PATCH 3/5] ARM: tegra: fix clock entry of slink controller

2012-10-19 Thread Stephen Warren
On 10/19/2012 03:13 AM, Laxman Dewangan wrote: > On Friday 19 October 2012 04:13 AM, Stephen Warren wrote: >>> +OF_DEV_AUXDATA("nvidia,tegra20-slink", TEGRA_SLINK1_BASE, >>> "spi-tegra-slink.0", NULL), >> Here, can't we just use the existing device names in the clock files... >> >> So we can

Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Stephane Eranian
On Fri, Oct 19, 2012 at 5:53 PM, Jiri Olsa wrote: > On Fri, Oct 19, 2012 at 05:47:11PM +0200, Stephane Eranian wrote: >> On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa wrote: >> > On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: >> >> On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra

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

2012-10-19 Thread Stephane Eranian
On Fri, Oct 19, 2012 at 5:49 PM, Andi Kleen wrote: >> + /* >> + * for INST_RETIRED.PREC_DIST to work correctly with PEBS, it must >> + * be measured alone on SNB (exclusive PMU access) as per Intel SDM. >> + */ >> + if ((cfg & INTEL_ARCH_EVENT_MASK) == 0x01c0 &&

Re: [PATCH 2/5] ARM: tegra: dts: add slink controller dt entry

2012-10-19 Thread Stephen Warren
On 10/19/2012 03:10 AM, Laxman Dewangan wrote: > On Friday 19 October 2012 04:11 AM, Stephen Warren wrote: >> On 10/18/2012 04:56 AM, Laxman Dewangan wrote: >>> Add slink controller details in the dts file of >>> Tegra20 and Tegra30. >>> diff --git a/arch/arm/boot/dts/tegra20.dtsi >>>

Re: [PATCH V3 1/6]: PVH: basic and header changes, elfnote changes, ...

2012-10-19 Thread Stefano Stabellini
On Fri, 19 Oct 2012, Konrad Rzeszutek Wilk wrote: > > > diff --git a/include/xen/interface/physdev.h > > > b/include/xen/interface/physdev.h > > > index 9ce788d..3b9d5b6 100644 > > > --- a/include/xen/interface/physdev.h > > > +++ b/include/xen/interface/physdev.h > > > @@ -258,6 +258,16 @@

question on NUMA page migration

2012-10-19 Thread Rik van Riel
Hi Andrea, Peter, I have a question on page refcounting in your NUMA page migration code. In Peter's case, I wonder why you introduce a new MIGRATE_FAULT migration mode. If the normal page migration / compaction logic can do without taking an extra reference count, why does your code need it?

Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Jiri Olsa
On Fri, Oct 19, 2012 at 05:47:11PM +0200, Stephane Eranian wrote: > On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa wrote: > > On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: > >> On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra > >> wrote: > >> > On Fri, 2012-10-19 at 16:52 +0200,

[tip:x86/urgent] x86, MCE: Remove bios_cmci_threshold sysfs attribute

2012-10-19 Thread tip-bot for Borislav Petkov
Commit-ID: 5bc66170dc486556a1e36fd384463536573f4b82 Gitweb: http://git.kernel.org/tip/5bc66170dc486556a1e36fd384463536573f4b82 Author: Borislav Petkov AuthorDate: Thu, 18 Oct 2012 15:10:56 +0200 Committer: Borislav Petkov CommitDate: Fri, 19 Oct 2012 15:22:29 +0200 x86, MCE: Remove

Re: [RFC PATCH 0/5] printk: Make it usable on nohz CPUs

2012-10-19 Thread Frederic Weisbecker
2012/10/12 Frederic Weisbecker : > Hi, > > So here is a proposition on what we can do to make printk > correctly working on a tickless CPU. > > Although it's targeted to be part of the adaptive tickmess > implemetation, it's pretty standalone and generic and also > works for printk() calls in

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

2012-10-19 Thread Andi Kleen
> + /* > + * for INST_RETIRED.PREC_DIST to work correctly with PEBS, it must > + * be measured alone on SNB (exclusive PMU access) as per Intel SDM. > + */ > + if ((cfg & INTEL_ARCH_EVENT_MASK) == 0x01c0 && !event->attr.exclusive) { > + pr_info("perf:

Re: new execve/kernel_thread design

2012-10-19 Thread Al Viro
On Tue, Oct 16, 2012 at 11:35:08PM +0100, Al Viro wrote: > 1. Basic rules for process lifetime. > Except for the initial process (init_task, eventual idle thread on the boot > CPU) all processes are created by do_fork(). There are three classes of > those: kernel threads, userland

Re: [PATCH] ARM: dt: tegra: ventana: define pinmux for ddc

2012-10-19 Thread Stephen Warren
On 10/18/2012 11:58 PM, Mark Zhang wrote: > Define pinmux for DDC. The DDC pinmux in Ventana is 2 pins in I2C2. > +++ b/arch/arm/boot/dts/tegra20-ventana.dts > - ddc { > - nvidia,pins = "ddc", "owc", "spdi", "spdo", > -

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

2012-10-19 Thread Vivek Goyal
On Thu, Oct 18, 2012 at 04:24:04PM -0700, Tejun Heo wrote: > Hello, Vivek. > > On Wed, Oct 17, 2012 at 09:49:45AM -0400, Vivek Goyal wrote: > > Can you explain a bit more. Whe do you mean by "total number queued". I > > think throttle.io_queued will total number of bios queued in the cgroup > >

Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Stephane Eranian
On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa wrote: > On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: >> On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra wrote: >> > On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: >> >> -modifier_event [ukhpGH]{1,8} >> >>

Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Andi Kleen
> That's what I thought too, but then I don't understand why it was at > eight before and not > seven: One instance of each letter, + a second for pp (precise=2). Or > am I missing > something here? The number is pretty useless imho (it's unlikely to catch any real user error) and most likely

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 04:08:05PM +0530, Venu Byravarasu wrote: > NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. > In order to support USB PHY drivers on these SoCs, existing > PHY driver is split into SoC agnostic common USB PHY driver > and Tegra20-specific USB phy driver.

Re: [PATCH RFC] sched: boost throttled entities on wakeups

2012-10-19 Thread Vladimir Davydov
Thank you for the answer. On Oct 19, 2012, at 6:24 PM, Peter Zijlstra wrote: > its a quick hack similar to existing hacks done for rt, preferably we'd > do smarter things though. If you have any ideas how to fix this in a better way, please share. -- To unsubscribe from this list: send the

Re: [PATCH RFC] function probe_roms accessing improper addresses

2012-10-19 Thread H. Peter Anvin
On 10/19/2012 08:30 AM, Matthew Garrett wrote: I don't think DMI checking is going to work, since (a) as you say, there's a risk that the ID will inadvertantly change over the lifecycle of the machine, and (b) there may be other machines. So if it's not possible to handle this by catching the

Re: weird use-after-free bug in module_put

2012-10-19 Thread Dave Jones
On Fri, Oct 19, 2012 at 10:43:51AM -0400, Dave Jones wrote: > I've hit this twice in the last two days while fuzz testing. > (Both times on i686 only, my x86-64 tests aren't hitting it > for some reason). > > BUG: unable to handle kernel paging request at 6b6b6ce3 > IP: []

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

2012-10-19 Thread Mikulas Patocka
On Fri, 19 Oct 2012, Peter Zijlstra wrote: > On Thu, 2012-10-18 at 15:28 -0400, Mikulas Patocka wrote: > > > > On Thu, 18 Oct 2012, Oleg Nesterov wrote: > > > > > Ooooh. And I just noticed include/linux/percpu-rwsem.h which does > > > something similar. Certainly it was not in my tree when I

Re: [PATCH 4/7] gpio/mxs: convert to use linear irqdomain

2012-10-19 Thread Shawn Guo
On 19 October 2012 18:22, Linus Walleij wrote: > No, which defconfig shall I use for this driver? > mxs_defconfig Shawn -- 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: [PATCH RFC] function probe_roms accessing improper addresses

2012-10-19 Thread Matthew Garrett
I don't think DMI checking is going to work, since (a) as you say, there's a risk that the ID will inadvertantly change over the lifecycle of the machine, and (b) there may be other machines. So if it's not possible to handle this by catching the MCE, I think we have two options: 1) Declare

Re: [PATCH RT] slab: Fix up stable merge of slab init_lock_keys()

2012-10-19 Thread Steven Rostedt
On Fri, 19 Oct 2012, Peter Zijlstra wrote: Could you just confirm that my fix is correct. We forever keep getting that issue wrong it seems.. so I'd not put too much trust into whatever my sleep addled brain thinks today :/ I wasn't expecting a reply till next week ;-) Looks about

Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Jiri Olsa
On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: > On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra wrote: > > On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: > >> -modifier_event [ukhpGH]{1,8} > >> +modifier_event [ukhpGHx]{1,8} > > > > wouldn't the max modifier sting

Re: [PATCH RFC] function probe_roms accessing improper addresses

2012-10-19 Thread Randy Wright
I would like to summarize progress I have made on this issue in the past few days, and then appeal for help in evaluating the options. Matthew and H. Peter Anvin, I would appreciate your additional input especially. The general idea under consideration here is to avoid access to the legacy

Re: [PATCH v1 0/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-19 Thread Vivek Goyal
On Fri, Oct 19, 2012 at 12:20:54PM +0900, HATAYAMA Daisuke wrote: [..] > > Instead of capturing the dump of whole memory, isn't it more efficient > > to capture the crash dump of VM in question and then if need be just > > take filtered crash dump of host kernel. > > > > I think that trying to

Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Stephane Eranian
On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra wrote: > On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: >> -modifier_event [ukhpGH]{1,8} >> +modifier_event [ukhpGHx]{1,8} > > wouldn't the max modifier sting length grow by adding another possible > modifier? That's what I thought too,

Re: [PATCH v4 00/24] Prep work for immutable bio vecs

2012-10-19 Thread Mike Snitzer
On Thu, Oct 18 2012 at 9:14pm -0400, Tejun Heo wrote: > Hello, > > On Mon, Oct 15, 2012 at 01:08:34PM -0700, Kent Overstreet wrote: > > Since last time - split bio integrity stuff out into its own 2 patch series. > > > > Also changed bio_advance() a bit - it now explicitly special cases

Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Peter Zijlstra
On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: > -modifier_event [ukhpGH]{1,8} > +modifier_event [ukhpGHx]{1,8} wouldn't the max modifier sting length grow by adding another possible modifier? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCH] pinctrl/nomadik: use irq_create_mapping()

2012-10-19 Thread Linus Walleij
From: Linus Walleij Since in the DT case, the linear domain path will not allocate descriptors for the IRQs, we need to use irq_create_mapping() for mapping hwirqs to Linux IRQs, so these descriptors get created on-the-fly in this case. Cc: Lee Jones Signed-off-by: Linus Walleij ---

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

2012-10-19 Thread Stephane Eranian
On all Intel SandyBridge processors, the INST_RETIRED:PREC_DIST when used with PEBS must be measured alone. That means no other event can be active on the PMU at the same time as per Intel SDM Vol3b. This is what the exclusive mode of perf_events provides. However, it was not enforced for that

[PATCH 1/2] perf tools: add event modifier to request exclusive PMU access

2012-10-19 Thread Stephane Eranian
This patch adds the x modifier for events. It allows users to request exclusive PMU access (attr->exclusive): perf stat -e cycles:x .. or perf stat -e cpu/cycles/x Exclusive mode is a feature of perf_events which was not yet supported by the perf tool. Some events may require exclusive

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

2012-10-19 Thread Stephane Eranian
From: Stephane Eranian The following patch set enforces exclusive PMU access for Intel SandyBridge INST_REITRED:PREC_DIST event when used with PEBS as described in the SDM Vol 3b. Without this, the sample distribution may not be correct. The kernel now rejects PEBS + INST_RETIRED:PREC_DIST on

Re: [PATCH] kconfig/menuconfig: use TAILQ instead of CIRCLEQ

2012-10-19 Thread Michal Marek
On 19.10.2012 14:10, Tetsuo Handa wrote: > Yann E. MORIN wrote: >> So, switch to using TAILQ instead, which are more portable. [...] > Excuse me, but your patch does not solve my problem because kconfig started > using macros which does not exist in "@(#)queue.h 8.3 (Berkeley) 12/13/93". > Kconfig

Re: [PATCH] Fix use-after-free of q->root_blkg and q->root_rl.blkg

2012-10-19 Thread Vivek Goyal
On Thu, Oct 18, 2012 at 02:20:53PM -0700, Tejun Heo wrote: > Hey, Vivek. > > On Thu, Oct 18, 2012 at 09:31:49AM -0400, Vivek Goyal wrote: > > Tejun, for the sake of readability, are you fine with keeping the original > > check and original patch which I had acked. > > Can you please send another

Re: [PATCH 1/2] mmc: core: bus.c: removed unnecessary NULL check for kfree(...)

2012-10-19 Thread Philip Rakity
On 19 Oct 2012, at 14:58, Sangho Yi wrote: > kfree(NULL) is safe so I removed the if statements for NULL check. > > Signed-off-by: Sangho Yi > --- > drivers/mmc/core/bus.c |3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mmc/core/bus.c

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

2012-10-19 Thread Jean-Nicolas GRAUX
Tested-by: Jean Nicolas Graux Le 10/19/2012 03:05 PM, Linus WALLEIJ a écrit : From: Linus Walleij This switches the way that pins are reserved for multiplexing: We used to do this when the map was parsed, at the creation of the settings inside the pinctrl handle, in pinmux_map_to_setting().

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Alan Stern
On Fri, 19 Oct 2012, Venu Byravarasu wrote: > NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. > In order to support USB PHY drivers on these SoCs, existing > PHY driver is split into SoC agnostic common USB PHY driver > and Tegra20-specific USB phy driver. This will facilitate > easy

Re: [PATCH 3/4] Use devm_request_irq to avoid some checks

2012-10-19 Thread Marcos Souza
Hi Lars, 2012/10/19 Lars-Peter Clausen : > On 10/19/2012 01:41 AM, Marcos Paulo de Souza wrote: >> With this we can remove a lot of checks. >> >> Signed-off-by: Marcos Paulo de Souza > > This one is a bit more tricky and the driver currently gets it (partially > wrong). The issue is that since

weird use-after-free bug in module_put

2012-10-19 Thread Dave Jones
I've hit this twice in the last two days while fuzz testing. (Both times on i686 only, my x86-64 tests aren't hitting it for some reason). BUG: unable to handle kernel paging request at 6b6b6ce3 IP: [] module_put+0x1e/0x160 *pdpt = 25a4b001 *pde = Oops: [#1]

Re: [tip:numa/core] sched/numa/mm: Improve migration

2012-10-19 Thread Peter Zijlstra
On Fri, 2012-10-19 at 09:51 -0400, Johannes Weiner wrote: > It's slightly ugly that migrate_page_copy() actually modifies the > existing page (deactivation, munlock) when you end up having to revert > back to it. The worst is actually calling copy_huge_page() on a THP.. it seems to work though

Re: [tip:numa/core] sched/numa/mm: Improve migration

2012-10-19 Thread Peter Zijlstra
On Fri, 2012-10-19 at 09:51 -0400, Johannes Weiner wrote: > Right now, unlike the traditional migration path, this breaks COW for > every migration, but maybe you don't care about shared pages in the > first place. And fixing that should be nothing more than grabbing the > anon_vma lock and using

Re: [PATCH] mm: Fix XFS oops due to dirty pages without buffers on s390

2012-10-19 Thread Martin Schwidefsky
On Tue, 9 Oct 2012 16:21:24 -0700 (PDT) Hugh Dickins wrote: > > > > I am seriously tempted to switch to pure software dirty bits by using > > page protection for writable but clean pages. The worry is the number of > > additional protection faults we would get. But as we do software dirty > >

Re: [3.6.2] oops @ opteron server: mgag200 Fatal error during GPU init

2012-10-19 Thread Don Morris
On 10/19/2012 04:53 AM, Paweł Sikora wrote: > Hi, > > on the new opteron server i'm observing an oops during matrox video > initialization. > here's the dmesg from pure 3.6.2 kernel: I haven't owned a G200 based Matrox in years, but based on code analysis and your output, it looks to me like

Re: [tip:numa/core] sched/numa/mm: Improve migration

2012-10-19 Thread Peter Zijlstra
On Fri, 2012-10-19 at 09:51 -0400, Johannes Weiner wrote: > Of course I'm banging my head into a wall for not seeing earlier > through the existing migration path how easy this could be. There's a reason I keep promoting the idea of 'someone' rewriting all that page-migration code :-) I forever

Re: [PATCH v2 1/7] swiotlb: Make io_tlb_end a physical address instead of a virtual one

2012-10-19 Thread Konrad Rzeszutek Wilk
On Thu, Oct 18, 2012 at 08:53:33AM -0700, Alexander Duyck wrote: > On 10/18/2012 05:41 AM, Konrad Rzeszutek Wilk wrote: > > On Mon, Oct 15, 2012 at 08:43:28AM -0700, Alexander Duyck wrote: > >> On 10/13/2012 05:52 AM, Hillf Danton wrote: > >>> Hi Alexander, > >>> > >>> On Fri, Oct 12, 2012 at 4:34

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

2012-10-19 Thread joseph . salisbury
From: Joseph Salisbury BugLink: https://bugs.launchpad.net/bugs/1060372 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. == Test Case == A test kernel was built with this patch and

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

2012-10-19 Thread joseph . salisbury
From: Joseph Salisbury Signed-off-by: Joseph Salisbury --- sound/pci/hda/patch_realtek.c |1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 739f968..18fce01 100644 --- a/sound/pci/hda/patch_realtek.c +++

[PATCH] USB: ehci-fsl: Return valid error in ehci_fsl_setup_phy

2012-10-19 Thread Ben Collins
ehci_fsl_setup_phy is supposed to return an int, but had a void return value in the case of controller_ver being invalid. Signed-off-by: Ben Collins Cc: Shengzhou Liu --- drivers/usb/host/ehci-fsl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH RT] slab: Fix up stable merge of slab init_lock_keys()

2012-10-19 Thread Peter Zijlstra
On Thu, 2012-10-18 at 09:40 -0400, Steven Rostedt wrote: > Peter, > > There was a little conflict with my merge of 3.4.14 due to the backport > of this patch: > > commit 947ca1856a7e60aa6d20536785e6a42dff25aa6e > Author: Michael Wang > Date: Wed Sep 5 10:33:18 2012 +0800 > > slab: fix

Bug: Thinkpad SL510 integrated webcam not working in >3.5

2012-10-19 Thread Stephan Menzel
Dear kernel guys, I got a bug report here, hope all the info is correct. [1.] One line summary of the problem: The integrated webcam in my Lenovo Thinkpad SL510 is not working in kernels later than 3.5. [2.] Full description of the problem/report: After upgrading to 3.6 and following I

Re: [PATCH] mm: Simplify for_each_populated_zone()

2012-10-19 Thread Srivatsa S. Bhat
On 10/19/2012 07:24 PM, Johannes Weiner wrote: > On Fri, Oct 19, 2012 at 04:25:47PM +0530, Srivatsa S. Bhat wrote: >> Move the check for populated_zone() to the control statement of the >> 'for' loop and get rid of the odd looking if/else block. >> >> Signed-off-by: Srivatsa S. Bhat >> --- >> >>

[PATCH v5 08/18] memcg: infrastructure to match an allocation to the right cache

2012-10-19 Thread Glauber Costa
The page allocator is able to bind a page to a memcg when it is allocated. But for the caches, we'd like to have as many objects as possible in a page belonging to the same cache. This is done in this patch by calling memcg_kmem_get_cache in the beginning of every allocation function. This

RE: [RFC][PATCH 1/2] efi_pstore: hold multiple logs

2012-10-19 Thread Seiji Aguchi
Mike, Thank you for reviewing my patch. Here is my comment. > > - Write callback > > - Check if there are enough spaces to write logs with > > QueryVariableInfo() > > to avoid handling out of space situation. (It is suggested by > > Matthew Garrett.) > > > > I would prefer to see

[PATCH v5 17/18] slub: slub-specific propagation changes.

2012-10-19 Thread Glauber Costa
SLUB allows us to tune a particular cache behavior with sysfs-based tunables. When creating a new memcg cache copy, we'd like to preserve any tunables the parent cache already had. This can be done by tapping into the store attribute function provided by the allocator. We of course don't need to

<    1   2   3   4   5   6   7   8   9   10   >