[PATCH] regulator: core: use regulator name for sysfs

2013-02-20 Thread Shawn Joo
regulator is named by numbering on sysfs, e.g. regulator.0, regulator.1 it confuses to find desired regulator before counting the order. add option for regulator name by use_name_onsysfs. if it is true and name is not NULL, desc's name will be the name. e.g. if name in desc is "LDO0", then

Re: [PATCH v4 00/32] ldisc patchset

2013-02-20 Thread Sebastian Andrzej Siewior
On 02/20/2013 09:02 PM, Peter Hurley wrote: > Sebastian, please re-test your g_nokia+dummy_hcd testcase with > this series. I've seen your first series but I did not have the time yet. I hope this will change this weekend. Sebastian -- To unsubscribe from this list: send the line "unsubscribe

Re: prctl(PR_SET_MM)

2013-02-20 Thread Amnon Shiloh
Cyrill Gorcunov wrote: >> Another possibility is to have a dual #if: >> >> #if defined(CONFIG_CHECKPOINT_RESTORE) || defined(CONFIG_MM_FIELDS_SETTING) > > Thus this approach looks preferred. And MM_FIELDS_SETTING will be y by > default. > Mind to cook a patch and lets see if community accept it?

Re: [PATCH 01/11] ARM: disable virt_to_bus/virt_to_bus almost everywhere

2013-02-20 Thread Vineet Gupta
>> I guess you'll have to do something similar for arch/metag, and Vineet >> will do it for arch/arc. After getting the tip-bot msg about Stephen's patch for -mm, I never saw it in -next and thus was not sure how when it will start showing up in -next. > > Yes, I have a little series of patches

Re: io_apic.c --> "nr_ioapics" not initialized !

2013-02-20 Thread Armin Steinhoff
Thomas Gleixner wrote: On Wed, 20 Feb 2013, Armin Steinhoff wrote: after a walk through the module "io_apic.c" in "/usr/src/linux/arch/x86/kernel/apic" I got the impression that the variable "nr_ioapics" is used but isn't initialized ! Could it be the source of boot problems ? Well no, unless

[PATCH V2] spi: tegra114: add spi driver

2013-02-20 Thread Laxman Dewangan
Add SPI driver for NVIDIA's Tegra114 SPI controller. This controller is different than the older SoCs SPI controller in internal design as well as register interface. This driver supports the: - non DMA based transfer for smaller transfer i.e. less than FIFO depth. - APB DMA based transfer for

Re: [Bug fix PATCH 0/2] Make whatever node kernel resides in un-hotpluggable.

2013-02-20 Thread Tang Chen
Hi Andrew, Please see below. :) On 02/21/2013 05:36 AM, Andrew Morton wrote: Also, please review the changelogging for these: page_alloc-add-movable_memmap-kernel-parameter.patch page_alloc-add-movable_memmap-kernel-parameter-fix.patch

Re: [PATCH 7/7] ACPI / scan: Make memory hotplug driver use struct acpi_scan_handler

2013-02-20 Thread Yasuaki Ishimatsu
Hi Vasilis, 2013/02/20 19:42, Vasilis Liaskovitis wrote: Hi Yasuaki, On Wed, Feb 20, 2013 at 12:35:48PM +0900, Yasuaki Ishimatsu wrote: Hi Vasilis, 2013/02/20 3:11, Vasilis Liaskovitis wrote: Hi, On Sun, Feb 17, 2013 at 04:27:18PM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-20 Thread Michael Wang
On 02/21/2013 02:11 PM, Mike Galbraith wrote: > On Thu, 2013-02-21 at 12:51 +0800, Michael Wang wrote: >> On 02/20/2013 06:49 PM, Ingo Molnar wrote: >> [snip] [snip] >> >> if wake_affine() >> new_cpu = select_idle_sibling(curr_cpu) >> else >> new_cpu =

Re: [PATCH 17/16 V2] virtio-scsi: use virtqueue_add_sgs for command buffers

2013-02-20 Thread Rusty Russell
Asias He writes: > On 02/20/2013 05:47 PM, Wanlong Gao wrote: >> Using the new virtqueue_add_sgs function lets us simplify the queueing >> path. In particular, all data protected by the tgt_lock is just gone >> (multiqueue will find a new use for the lock). >> >> Signed-off-by: Paolo Bonzini

Re: [PATCH 04/16] virtio-blk: use virtqueue_start_buf on bio path

2013-02-20 Thread Rusty Russell
Asias He writes: > On 02/19/2013 03:56 PM, Rusty Russell wrote: >> (This is a respin of Paolo Bonzini's patch, but it calls >> virtqueue_add_sgs() instead of his multi-part API). ... > (This subject needs to be changed to reflect using of virtqueue_add_sgs) Thanks, done. >> -static inline int

Re: [PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings)

2013-02-20 Thread Rusty Russell
Ohad Ben-Cohen writes: > Hi Sjur, > > On Tue, Feb 12, 2013 at 1:49 PM, wrote: >> From: Sjur Brændeland >> >> Add functions for creating, deleting and kicking host-side virtio rings. >> >> The host ring is not integrated with virtiqueues and cannot be managed >> through virtio-config. > > Is

Re: [PATCH 10/16] virtio_net: use virtqueue_add_sgs[] for command buffers.

2013-02-20 Thread Rusty Russell
Wanlong Gao writes: > On 02/19/2013 03:56 PM, Rusty Russell wrote: >> It's a bit cleaner to hand multiple sgs, rather than one big one. >> >> Signed-off-by: Rusty Russell ... >> +BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ)); >> >> -ctrl.class = class; >> -ctrl.cmd =

Re: [PATCH 00/16] virtio ring rework.

2013-02-20 Thread Rusty Russell
Paolo Bonzini writes: > Il 19/02/2013 08:56, Rusty Russell ha scritto: >> OK, this is (ab)uses some of Paolo's patches. The first 7 are >> candidates for this merge window (maybe), the rest I'm not so sure >> about. > > Cool, thanks. > >> Thanks, >> Rusty. >> >> Paolo Bonzini (3): >>

Re: [RFC] arm: use built-in byte swap function

2013-02-20 Thread Kim Phillips
On Wed, 20 Feb 2013 23:29:58 -0500 Nicolas Pitre wrote: > On Wed, 20 Feb 2013, Kim Phillips wrote: > > > On Wed, 20 Feb 2013 10:43:18 -0500 > > Nicolas Pitre wrote: > > > > > On Wed, 20 Feb 2013, Woodhouse, David wrote: > > > > On Wed, 2013-02-20 at 09:06 -0500, Nicolas Pitre wrote: > > > > >

Re: [PATCH] pci: do not try to assign irq 255

2013-02-20 Thread Hannes Reinecke
On 02/20/2013 05:57 PM, Yinghai Lu wrote: On Tue, Feb 19, 2013 at 11:58 PM, Hannes Reinecke wrote: Apparently this device is meant to use MSI _only_ so the BIOS developer didn't feel the need to assign an INTx here. According to PCI-3.0, section 6.8 (Message Signalled Interrupts): It is

Re: [PATCH] tools: usb: ffs-test: Fix build failure

2013-02-20 Thread Michal Nazarewicz
On Thu, Feb 21 2013, Maxin B. John wrote: > Hi, > > On Thu, Feb 21, 2013 at 2:06 AM, Greg KH wrote: >> On Thu, Feb 21, 2013 at 01:57:51AM +0200, maxin.j...@gmail.com wrote: >>> From: "Maxin B. John" >>> >>> Fixes this build failure: >>> gcc -Wall -Wextra -g -lpthread -I../include -o testusb

Re: [PATCH] tools: usb: ffs-test: Fix build failure

2013-02-20 Thread Michal Nazarewicz
On Thu, Feb 21 2013, maxin.j...@gmail.com wrote: > From: "Maxin B. John" > > Fixes this build failure: > gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c > gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c > In file included from ffs-test.c:41:0: >

RE: linux-next: build failure after merge of the xen-two tree

2013-02-20 Thread Liu, Jinsong
Konrad Rzeszutek Wilk wrote: commit 3757b94802fb65d8f696597a74053cf21738da0b Author: Rafael J. Wysocki Date: Wed Feb 13 14:36:47 2013 +0100 ACPI / hotplug: Fix concurrency issues and memory leaks after which acpi_bus_scan() and acpi_bus_trim() have to be

Re: [PATCH 2/2] block: partition: optimize memory allocation in check_partition

2013-02-20 Thread Yasuaki Ishimatsu
2013/02/21 14:22, Ming Lei wrote: > Currently, sizeof(struct parsed_partitions) may be 64KB in 32bit arch, > so it is easy to trigger page allocation failure by check_partition, > especially in hotplug block device situation(such as, USB mass storage, > MMC card, ...), and Felipe Balbi has

PATCH: freezer: add fake signal clearing back when thaw task

2013-02-20 Thread Lianwei Wang
Hi Tejun Heo and all, The commit of "34b087e freezer: kill unused set_freezable_with_signal()" remove recalc_sigpending*() calls in freezer, so the user tasks get TIF_SIGPENDING fake signal that is set when freezing userspace process. It left the fake signal to userspcae which cause the userspace

Re: [resend] Timer broadcast question

2013-02-20 Thread Santosh Shilimkar
On Tuesday 19 February 2013 11:51 PM, Daniel Lezcano wrote: On 02/19/2013 07:10 PM, Thomas Gleixner wrote: On Tue, 19 Feb 2013, Daniel Lezcano wrote: I am working on identifying the different wakeup sources from the interrupts and I have a question regarding the timer broadcast. The broadcast

Re: [PATCH v2] X.509: Support parse long form of length octets in Authority Key Identifier

2013-02-20 Thread Rusty Russell
joeyli writes: > 於 三,2013-02-20 於 12:49 +,David Howells 提到: >> Acked-by: David Howells >> > > Thanks for David's review and confirm. Should this be CC stable? Thanks, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-20 Thread Jason Liu
2013/2/20 Thomas Gleixner : > On Wed, 20 Feb 2013, Jason Liu wrote: >> void arch_idle(void) >> { >> >> clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, ); >> >> enter_the_wait_mode(); >> >> clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, ); >> } >> >> when the broadcast timer

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-20 Thread Mike Galbraith
On Thu, 2013-02-21 at 12:51 +0800, Michael Wang wrote: > On 02/20/2013 06:49 PM, Ingo Molnar wrote: > [snip] > > > > The changes look clean and reasoable, any ideas exactly *why* it > > speeds up? > > > > I.e. are there one or two key changes in the before/after logic > > and scheduling

Re: linux-next: manual merge of the signal tree with the powerpc tree

2013-02-20 Thread Benjamin Herrenschmidt
On Thu, 2013-02-21 at 15:52 +1100, Stephen Rothwell wrote: > Hi Al, > > Today's linux-next merge of the signal tree got conflicts in > arch/powerpc/kernel/signal_32.c and arch/powerpc/kernel/signal_64.c > between commit 2b0a576d15e0 ("powerpc: Add new transactional memory state > to the signal

Re: [PATCH v3 2/2] cpufreq: Convert the cpufreq_driver_lock to use the rcu

2013-02-20 Thread Viresh Kumar
On 21 February 2013 05:26, Nathan Zimmer wrote: > In general rwlocks are discourged so we are moving it to use the rcu instead. > This does require a bit of care since the cpufreq_driver_lock protects both > the cpufreq_driver and the cpufreq_cpu_data array. > Also since many of the function

Re: [PATCH] spi: tegra114: add spi driver

2013-02-20 Thread Laxman Dewangan
On Wednesday 20 February 2013 11:30 PM, Stephen Warren wrote: On 02/20/2013 10:57 AM, Mark Brown wrote: On Wed, Feb 20, 2013 at 10:36:41AM -0700, Stephen Warren wrote: On 02/20/2013 10:31 AM, Mark Brown wrote: Since we can extend the list of clocks it doesn't seem like there's much issue

Re: [patch 2/2] arm: Wire up kcmp syscall

2013-02-20 Thread Cyrill Gorcunov
On Wed, Feb 20, 2013 at 03:17:23PM -0800, Andrew Morton wrote: > On Tue, 19 Feb 2013 11:07:03 +0400 > Cyrill Gorcunov wrote: > > > From: Alexander Kartashov > > Subject: arm: Wire up kcmp syscall > > > > Signed-off-by: Alexander Kartashov > > Cc: Russell King > > This should have had

[PATCH 2/2] block: partition: optimize memory allocation in check_partition

2013-02-20 Thread Ming Lei
Currently, sizeof(struct parsed_partitions) may be 64KB in 32bit arch, so it is easy to trigger page allocation failure by check_partition, especially in hotplug block device situation(such as, USB mass storage, MMC card, ...), and Felipe Balbi has observed the failure. This patch does below

[PATCH 1/2] block: partitions: mac: obey the state->limit constraint

2013-02-20 Thread Ming Lei
It isn't necessary to read the information of partitions whose No. is equal and more than state->limit since only maximum state->limit partitions will be added inside rescan_partitions(). That is also what other kind of partitions are doing. Signed-off-by: Ming Lei --- block/partitions/mac.c |

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-20 Thread Michael Wang
On 02/20/2013 10:05 PM, Mike Galbraith wrote: > On Wed, 2013-02-20 at 14:32 +0100, Peter Zijlstra wrote: >> On Wed, 2013-02-20 at 11:49 +0100, Ingo Molnar wrote: >> >>> The changes look clean and reasoable, >> >> I don't necessarily agree, note that O(n^2) storage requirement that >> Michael

[GIT PULL] exynos-dp updates for v3.9

2013-02-20 Thread Jingoo Han
Hi Linus, Florian, the fbdev maintainer, has been very busy lately, so I send the pull request for exynos-dp for this merge window. The following changes since commit 19f949f52599ba7c3f67a5897ac6be14bfcb1200: Linux 3.8 (Mon Feb 18 15:58:34 2013 -0800) are available in the git repository at:

[GIT PULL] samsung-fb updates for v3.9

2013-02-20 Thread Jingoo Han
Hi Linus, Florian, the fbdev maintainer, has been very busy lately, so I send the pull request for samsung-fb for this merge window. The following changes since commit 19f949f52599ba7c3f67a5897ac6be14bfcb1200: Linux 3.8 (Mon Feb 18 15:58:34 2013 -0800) are available in the git repository at:

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-20 Thread Michael Wang
On 02/20/2013 09:32 PM, Peter Zijlstra wrote: > On Wed, 2013-02-20 at 11:49 +0100, Ingo Molnar wrote: > >> The changes look clean and reasoable, > > I don't necessarily agree, note that O(n^2) storage requirement that > Michael failed to highlight ;-) Forgive me for not explain this point in

Re: general protection fault in do_msgrcv [3.8]

2013-02-20 Thread Stanislav Kinsbursky
20.02.2013 22:24, Dave Jones пишет: On Wed, Feb 20, 2013 at 12:23:22PM +0400, Stanislav Kinsbursky wrote: > > Pid: 887, comm: trinity-child2 Not tainted 3.8.0+ #57 Gigabyte Technology Co., Ltd. GA-MA78GM-S2H/GA-MA78GM-S2H > > RIP: 0010:[] [] do_msgrcv+0x22a/0x670 > > ... > > Looks

Re: [PATCH linux-next] cpufreq: ondemand: Calculate gradient of CPU load to early increase frequency

2013-02-20 Thread Viresh Kumar
Hi Stratos, On Thu, Feb 21, 2013 at 2:20 AM, Stratos Karafotis wrote: > Instead of checking only the absolute value of CPU load_freq to increase > frequency, we detect forthcoming CPU load rise and increase frequency > earlier. > > Every sampling rate, we calculate the gradient of load_freq. >

Re: [RFC PATCH v3 1/3] sched: schedule balance map foundation

2013-02-20 Thread Michael Wang
On 02/20/2013 09:25 PM, Peter Zijlstra wrote: > On Tue, 2013-01-29 at 17:09 +0800, Michael Wang wrote: >> +struct sched_balance_map { >> + struct sched_domain **sd[SBM_MAX_TYPE]; >> + int top_level[SBM_MAX_TYPE]; >> + struct sched_domain *affine_map[NR_CPUS]; >> +}; > > Argh..

Re: [RFC PATCH v3 1/3] sched: schedule balance map foundation

2013-02-20 Thread Michael Wang
On 02/20/2013 09:21 PM, Peter Zijlstra wrote: > On Tue, 2013-01-29 at 17:09 +0800, Michael Wang wrote: >> + for_each_possible_cpu(cpu) { >> + sbm = _cpu(sbm_array, cpu); >> + node = cpu_to_node(cpu); >> + size = sizeof(struct sched_domain *) *

linux-next: manual merge of the signal tree with the powerpc tree

2013-02-20 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the signal tree got conflicts in arch/powerpc/kernel/signal_32.c and arch/powerpc/kernel/signal_64.c between commit 2b0a576d15e0 ("powerpc: Add new transactional memory state to the signal context") from the powerpc tree and commit 7cce246557bf ("powerpc: switch

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-20 Thread Michael Wang
On 02/20/2013 06:49 PM, Ingo Molnar wrote: [snip] > > The changes look clean and reasoable, any ideas exactly *why* it > speeds up? > > I.e. are there one or two key changes in the before/after logic > and scheduling patterns that you can identify as causing the > speedup? Hi, Ingo Thanks

Re: [RFC] arm: use built-in byte swap function

2013-02-20 Thread Nicolas Pitre
On Wed, 20 Feb 2013, Kim Phillips wrote: > On Wed, 20 Feb 2013 10:43:18 -0500 > Nicolas Pitre wrote: > > > On Wed, 20 Feb 2013, Woodhouse, David wrote: > > > On Wed, 2013-02-20 at 09:06 -0500, Nicolas Pitre wrote: > > > > ... in which case there is no harm shipping a .c file and trivially > >

Re: [GIT] Networking

2013-02-20 Thread Paul Gortmaker
On Wed, Feb 20, 2013 at 10:05 PM, Linus Torvalds wrote: > On Wed, Feb 20, 2013 at 2:09 PM, David Miller wrote: >> >> 15) Orphan and delete a bunch of pre-historic networking drivers from >> Paul Gortmaker. > > Nooo You killed the 3c501 and 3c503 drivers! Snif. Not true! They were dead

Re: [RFC] arm: use built-in byte swap function

2013-02-20 Thread Kim Phillips
On Wed, 20 Feb 2013 10:43:18 -0500 Nicolas Pitre wrote: > On Wed, 20 Feb 2013, Woodhouse, David wrote: > > On Wed, 2013-02-20 at 09:06 -0500, Nicolas Pitre wrote: > > > ... in which case there is no harm shipping a .c file and trivially > > > enforcing -O2, the rest being equal. > > > > For

Re: [PATCH 6/6] ubifs: Wait for page writeback to provide stable pages

2013-02-20 Thread Darrick J. Wong
On Wed, Jan 23, 2013 at 01:43:12PM -0800, Andrew Morton wrote: > On Fri, 18 Jan 2013 17:13:16 -0800 > "Darrick J. Wong" wrote: > > > When stable pages are required, we have to wait if the page is just > > going to disk and we want to modify it. Add proper callback to > > ubifs_vm_page_mkwrite().

[GIT PULL] Please pull NFS client bugfixes

2013-02-20 Thread Myklebust, Trond
Hi Linus, The following changes since commit 88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7: Linux 3.8-rc6 (2013-02-01 12:08:14 +1100) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-3.9-1 for you to fetch changes up to

Re: [GIT] Networking

2013-02-20 Thread David Miller
From: Linus Torvalds Date: Wed, 20 Feb 2013 19:12:37 -0800 > On Wed, Feb 20, 2013 at 7:05 PM, Linus Torvalds > wrote: >> >> Nooo You killed the 3c501 and 3c503 drivers! Snif. > > .. but thank gods, the 3c509 still exists in the tree. I was worried > for a minute. Don't worry, the 3c509

Re: [PATCH v2] X.509: Support parse long form of length octets in Authority Key Identifier

2013-02-20 Thread joeyli
於 三,2013-02-20 於 12:49 +,David Howells 提到: > Chun-Yi Lee wrote: > > > Per X.509 spec in 4.2.1.1 section, the structure of Authority Key > > Identifier Extension is: > > > >AuthorityKeyIdentifier ::= SEQUENCE { > > keyIdentifier [0] KeyIdentifier OPTIONAL, > >

RE: [PATCH V3] i2c: davinci: update to devm_* API

2013-02-20 Thread Vishwanathrao Badarkhe, Manish
Hi Wolfram On Sat, Feb 16, 2013 at 00:39:43, Wolfram Sang wrote: > On Thu, Feb 07, 2013 at 06:22:00PM +0530, Vishwanathrao Badarkhe, Manish > wrote: > > Update the code to use devm_* API so that driver core will manage > > resources. > > Also, if "devm_request_and_ioremap" fails return

Re: [PATCH v4] lockdep: check that no locks held at freeze time

2013-02-20 Thread Mandeep Singh Baines
On Wed, Feb 20, 2013 at 4:42 PM, Andrew Morton wrote: > On Wed, 20 Feb 2013 16:28:07 -0800 > Mandeep Singh Baines wrote: > >> > Backtraces aren't *that* bad. We'll easily be able to tell which of >> > the two callsites triggered the trace. >> > >> >> Let's say there was a try_to_freeze() that

[PATCH v5] lockdep: check that no locks held at freeze time

2013-02-20 Thread Mandeep Singh Baines
We shouldn't try_to_freeze if locks are held. Changes since v1: * LKML: <20130215111635.ga26...@gmail.com> Ingo Molnar * Added a msg string that gets passed in. * LKML: <20130215154449.gd30...@redhat.com> Oleg Nesterov * Check PF_NOFREEZE in try_to_freeze(). Changes since v2: * LKML:

Re: [GIT] Networking

2013-02-20 Thread Linus Torvalds
On Wed, Feb 20, 2013 at 7:05 PM, Linus Torvalds wrote: > > Nooo You killed the 3c501 and 3c503 drivers! Snif. .. but thank gods, the 3c509 still exists in the tree. I was worried for a minute. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [GIT] Networking

2013-02-20 Thread Linus Torvalds
On Wed, Feb 20, 2013 at 2:09 PM, David Miller wrote: > > 15) Orphan and delete a bunch of pre-historic networking drivers from > Paul Gortmaker. Nooo You killed the 3c501 and 3c503 drivers! Snif. I wonder if they still worked.. Linus -- To unsubscribe from this list: send

Re: [Bug fix PATCH 0/2] Make whatever node kernel resides in un-hotpluggable.

2013-02-20 Thread Tang Chen
On 02/21/2013 05:36 AM, Andrew Morton wrote: On Wed, 20 Feb 2013 19:00:54 +0800 Tang Chen wrote: As mentioned by HPA before, when we are using movablemem_map=acpi, if all the memory in SRAT is hotpluggable, then the kernel will have no memory to use, and will fail to boot. Before parsing

Re: [PATCH] DMI: Always call dmi_present with DMI structure

2013-02-20 Thread Zhenzhong Duan
Hi Ben had sent a patch fixing this issue. Would you like to test his patch? https://lkml.org/lkml/2013/2/16/102 zduan On 2013-02-21 02:12, H.J. Lu wrote: Hi, This patch: commit 9f9c9cbb60576a1518d0bf93fb8e499cffccf377 Author: Zhenzhong Duan Date: Thu Dec 20 15:05:14 2012 -0800

[GIT PULL] dlm updates for 3.9

2013-02-20 Thread David Teigland
Hi Linus, Please pull dlm updates from tag: git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git dlm-3.9 This includes a single patch to avoid excessive and unnecessary scanning of rsbs to free. Patch copied below. Thanks, Dave dlm: avoid scanning unchanged toss lists Keep

[PATCH 4/4] tracing/syscalls: Annotate field-defining functions with __init

2013-02-20 Thread Li Zefan
These two functions are called during kernel boot only. Signed-off-by: Li Zefan --- kernel/trace/trace_syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 5329e13..a70fa19 100644 ---

[PATCH 3/4] tracing: Annotate event field-defining functions with __init

2013-02-20 Thread Li Zefan
Those functions are called either during kernel boot or module init. Before: $ dmesg | grep 'Freeing unused kernel memory' Freeing unused kernel memory: 1208k freed Freeing unused kernel memory: 1360k freed Freeing unused kernel memory: 1960k freed After: $ dmesg | grep 'Freeing unused kernel

Re: [PATCH v4 00/32] ldisc patchset

2013-02-20 Thread Shawn Guo
On Wed, Feb 20, 2013 at 03:02:47PM -0500, Peter Hurley wrote: > [-cc Alan Cox] > > Sebastian, please re-test your g_nokia+dummy_hcd testcase with > this series. > > Sasha and Dave, my trinity testbeds die in other areas right now; > I would really appreciate if you would please re-test this

[PATCH 2/4] tracing: Add a helper function for event print functions

2013-02-20 Thread Li Zefan
Move duplicate code in event print functions to a helper function. This shrinks the size of the kernel by ~13K. textdata bss dec hex filename 6596137 1743966 1013867218478775119f6b7 vmlinux.o.old 6583002 1743849 1013867218465523119c2f3

[PATCH 1/4] tracing/syscalls: Anotate some functions static

2013-02-20 Thread Li Zefan
Signed-off-by: Li Zefan --- kernel/trace/trace_syscalls.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 7609dd6..5329e13 100644 --- a/kernel/trace/trace_syscalls.c +++

[PATCH] staging: fix all sparse warnings in silicom/bypasslib/

2013-02-20 Thread Randy Dunlap
From: Randy Dunlap Fix all sparse warning in drivers/staging/silicom/bypasslib/, e.g.: drivers/staging/silicom/bypasslib/bypass.c:471:21: warning: non-ANSI function declaration of function 'init_lib_module' drivers/staging/silicom/bypasslib/bypass.c:478:25: warning: non-ANSI function

Re: What does the PG_swapbacked of page flags actually mean?

2013-02-20 Thread common An
On Wed, Feb 20, 2013 at 6:43 PM, common An wrote: > PG_swapbacked is a bit for page->flags. > > In kernel code, its comment is "page is backed by RAM/swap". But I couldn't > understand it. > 1. Does the RAM mean DRAM? How page is backed by RAM? > 2. When the page is page-out to swap file, the bit

Re: linux-next: build failure after merge of the tip tree

2013-02-20 Thread Stephen Rothwell
Hi all, On Thu, 14 Feb 2013 13:30:16 +1100 Stephen Rothwell wrote: > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > drivers/thermal/intel_powerclamp.c: In function 'clamp_thread': > drivers/thermal/intel_powerclamp.c:360:21: error:

[PATCH] ALSA: usb: Fix Processing Unit Descriptor parsers

2013-02-20 Thread Pawel Moll
Commit 99fc86450c439039d2ef88d06b222fd51a779176 "ALSA: usb-mixer: parse descriptors with structs" introduced a set of useful parsers for descriptors. Unfortunately the parses for the Processing Unit Descriptor came with a very subtle bug... Functions uac_processing_unit_iProcessing() and

linux-next: manual merge of the net-next tree with the mips tree

2013-02-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in include/linux/ssb/ssb_driver_gige.h between commit 111bd981e221 ("MIPS: BCM47XX: add bcm47xx prefix in front of nvram function names") from the mips tree and commit 180996c30517 ("ssb: get mac address from sprom struct for

RE: [PATCH] libertas sdio: remove CMD_FUNC_INIT call

2013-02-20 Thread Bing Zhao
Hi Lubomir, > > > @@ -825,20 +825,6 @@ static void if_sdio_finish_power_on(struct > > > if_sdio_card *card) > > > > > > sdio_release_host(func); > > > > > > - /* > > > - * FUNC_INIT is required for SD8688 WLAN/BT multiple functions > > > - */ > > > - if (card->model == MODEL_8688) { > > > -

[PATCH] x86: mm: Fix vmalloc_fault oops during lazy MMU updates

2013-02-20 Thread Samu Kallio
In paravirtualized x86_64 kernels, vmalloc_fault may cause an oops when lazy MMU updates are enabled, because set_pgd effects are being deferred. One instance of this problem is during process mm cleanup with memory cgroups enabled. The chain of events is as follows: - zap_pte_range enables lazy

Re: [patch v5 04/15] sched: add sched balance policies in kernel

2013-02-20 Thread Alex Shi
On 02/20/2013 11:41 PM, Ingo Molnar wrote: > > * Alex Shi wrote: > >> Now there is just 2 types policy: performance and >> powersaving(with 2 degrees, powersaving and balance). > > I don't think we really want to have 'degrees' to the policies > at this point - we want each policy to be

Re: [PATCH v2 8/9] pps: Use a single cdev

2013-02-20 Thread Peter Hurley
On Tue, 2013-02-12 at 02:02 -0500, George Spelvin wrote: > One per device just seems wasteful, when we already manintain a > data structure to map minor numbers to devices, and we already have > a PPS_MAX_SOURCES #define. > > This is also a more comprehensive fix to the use-after-free bug > that

Re: [patch v5 06/15] sched: log the cpu utilization at rq

2013-02-20 Thread Alex Shi
On 02/20/2013 11:20 PM, Peter Zijlstra wrote: > On Wed, 2013-02-20 at 22:33 +0800, Alex Shi wrote: >>> There's generally a better value than 100 when using computers.. >> seeing >>> how 100 is 64+32+4. >> >> I didn't find a good example for this. and no idea of your suggestion, >> would you like

Re: [PATCH] of/i2c: don't register disabled devices

2013-02-20 Thread Dmitry Eremin-Solenikov
On 20/02/13 23:09, Rob Herring wrote: > On 02/20/2013 12:28 PM, Dmitry Eremin-Solenikov wrote: >> Don't register i2c slave device tree nodes which have >> status = "disabled" property. >> > > This is already in 3.8. Ah, true. Sorry for the noise then. -- With best wishes Dmitry -- To

Re: [patch v5 11/15] sched: add power/performance balance allow flag

2013-02-20 Thread Alex Shi
On 02/20/2013 11:22 PM, Borislav Petkov wrote: > On Wed, Feb 20, 2013 at 10:20:19PM +0800, Alex Shi wrote: > >> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > >> index 2e8131d..0047856 100644 > >> --- a/kernel/sched/fair.c > >> +++ b/kernel/sched/fair.c > >> @@

Re: [Update][PATCH 2/7] ACPI / scan: Introduce common code for ACPI-based device hotplug

2013-02-20 Thread Toshi Kani
On Wed, 2013-02-20 at 23:49 +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki : > + > +/** > + * acpi_bus_hot_remove_device: hot-remove a device and its children > + * @context: struct acpi_eject_event pointer (freed in this func) > + * > + * Hot-remove a device and its children. This

Re: [PATCH EDAC 03/13] ghes: add the needed hooks for EDAC error report

2013-02-20 Thread Huang Ying
Sorry for late! On Fri, 2013-02-15 at 10:44 -0200, Mauro Carvalho Chehab wrote: > In order to allow reporting errors via EDAC, add hooks for: > > 1) register an EDAC driver; > 2) unregister an EDAC driver; > 3) report errors via EDAC. > > As the EDAC driver will need to access the ghes

Re: [PATCH 0/3] posix timers: Extend kernel API to report more info about timers

2013-02-20 Thread Matthew Helsley
On Thu, Feb 14, 2013 at 8:18 AM, Pavel Emelyanov wrote: > Hi. > > I'm working on the checkpoint-restore project (http://criu.org), briefly > it's aim is to collect information about process' state and saving it so > that later it is possible to recreate the processes in the very same state > as

Re: [PATCH 1/4] pci: Add PCI_BUS() and PCI_DEVID() interfaces to return bus number and device id

2013-02-20 Thread Bjorn Helgaas
On Mon, Feb 11, 2013 at 4:00 PM, Shuah Khan wrote: > pci defines PCI_DEVFN(), PCI_SLOT(), and PCI_FUNC() interfaces, however, > it doesn't have interfaces to return PCI bus and PCI device id. Drivers > (AMD IOMMU, and AER) implement module specific definitions for PCI_BUS() > and AMD_IOMMU driver

[GIT PULL] KVM updates for the 3.9 merge window

2013-02-20 Thread Marcelo Tosatti
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/kvm-3.9-1 to receive the KVM updates for the 3.9 merge window, including x86 real mode emulation fixes, stronger memory slot interface restrictions, mmu_lock spinlock hold time reduction, improved handling of large

Re: [PATCH v2] vt: add init_hide parameter to suppress boot output

2013-02-20 Thread Greg Kroah-Hartman
On Wed, Feb 20, 2013 at 02:08:25PM -0800, Andy Ross wrote: > On 02/20/2013 12:57 PM, Pavel Machek wrote: > >I'm sure something creative can be done with fake init that shuts > >the console up then execs previous init. No need to add more kernel > >knobs, I'd say. > > Fair enough, but some last

Re: [PATCH] Documentation: update top level 00-INDEX file with new additions

2013-02-20 Thread Rob Landley
On 02/18/2013 09:57:36 AM, Randy Dunlap wrote: On 02/18/13 01:39, Jiri Kosina wrote: > On Thu, 14 Feb 2013, Paul Gortmaker wrote: > >> It seems there are about 80 new, but undocumented addtions at >> the top level Documentation directory. This fixes up the top >> level 00-INDEX by adding new

Re: [PATCH v4] lockdep: check that no locks held at freeze time

2013-02-20 Thread Andrew Morton
On Wed, 20 Feb 2013 16:28:07 -0800 Mandeep Singh Baines wrote: > > Backtraces aren't *that* bad. We'll easily be able to tell which of > > the two callsites triggered the trace. > > > > Let's say there was a try_to_freeze() that got inlined indirectly > (multiple levels of inline) into

[GIT PULL] user namespace and namespace infrastructure changes for 3.9

2013-02-20 Thread Eric W. Biederman
Linus, Please pull the for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git for-linus HEAD: 139321c65c0584cd65c4c87a5eb3fdb4fdbd0e19 cifs: Enable building with user namespaces enabled. This tree is against v3.8-rc1 with the first few

Re: sched: Fix signedness bug in yield_to()

2013-02-20 Thread Shuah Khan
On Tue, Feb 19, 2013 at 7:27 PM, Linux Kernel Mailing List wrote: > Gitweb: > http://git.kernel.org/linus/;a=commit;h=c3c186403c6abd32e719f005f0af950155a9e54d > Commit: c3c186403c6abd32e719f005f0af950155a9e54d > Parent: e0a79f529d5ba2507486d498b25da40911d95cf6 > Author: Dan

Re: Corrupt packets with ath5k

2013-02-20 Thread JA Magallón
On 02/20/2013 08:58 PM, JA Magallón wrote: Hi all... I have a strange problem with latest kernels. When I update my netbook I get many "Installation failed, bad rpms:" mesages. First I thougt that the oldie cheap ssd was failing (it is an Aspire AOA110). But the updates work always fine when

Re: [PATCH v4] lockdep: check that no locks held at freeze time

2013-02-20 Thread Mandeep Singh Baines
On Wed, Feb 20, 2013 at 4:20 PM, Andrew Morton wrote: > On Wed, 20 Feb 2013 16:17:39 -0800 > Mandeep Singh Baines wrote: > >> On Wed, Feb 20, 2013 at 3:24 PM, Andrew Morton >> wrote: >> > On Wed, 20 Feb 2013 15:17:16 -0800 >> > Mandeep Singh Baines wrote: >> > >> >> We shouldn't try_to_freeze

Re: [PATCH] tools: usb: ffs-test: Fix build failure

2013-02-20 Thread Maxin B. John
Hi, On Thu, Feb 21, 2013 at 2:06 AM, Greg KH wrote: > On Thu, Feb 21, 2013 at 01:57:51AM +0200, maxin.j...@gmail.com wrote: >> From: "Maxin B. John" >> >> Fixes this build failure: >> gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c >> gcc -Wall -Wextra -g -lpthread -I../include

Re: [PATCH v4] lockdep: check that no locks held at freeze time

2013-02-20 Thread Andrew Morton
On Wed, 20 Feb 2013 16:17:39 -0800 Mandeep Singh Baines wrote: > On Wed, Feb 20, 2013 at 3:24 PM, Andrew Morton > wrote: > > On Wed, 20 Feb 2013 15:17:16 -0800 > > Mandeep Singh Baines wrote: > > > >> We shouldn't try_to_freeze if locks are held. > >> > >> ... > >> > >> @@ -43,6 +44,9 @@

Re: [PATCH v4] lockdep: check that no locks held at freeze time

2013-02-20 Thread Mandeep Singh Baines
On Wed, Feb 20, 2013 at 3:24 PM, Andrew Morton wrote: > On Wed, 20 Feb 2013 15:17:16 -0800 > Mandeep Singh Baines wrote: > >> We shouldn't try_to_freeze if locks are held. >> >> ... >> >> @@ -43,6 +44,9 @@ extern void thaw_kernel_threads(void); >> >> + if (!(current->flags & PF_NOFREEZE)) >>

Re: [tip:x86/urgent] x86, efi: Make "noefi" really disable EFI runtime serivces

2013-02-20 Thread Yinghai Lu
On Wed, Feb 20, 2013 at 3:25 PM, tip-bot for Matt Fleming wrote: > Commit-ID: fb834c7acc5e140cf4f9e86da93a66de8c0514da > Gitweb: http://git.kernel.org/tip/fb834c7acc5e140cf4f9e86da93a66de8c0514da > Author: Matt Fleming > AuthorDate: Wed, 20 Feb 2013 20:36:12 + > Committer: H. Peter

Re: Wonky PS2-USB converter issues...

2013-02-20 Thread Valdis . Kletnieks
On Wed, 20 Feb 2013 16:07:49 -0800, Greg Kroah-Hartman said: > PS-2 connectors can not normally handle hotplugging, the protocol > doesn't allow it, and for some unlucky devices, it could actually fry > the motherboard or the PS-2 device. > > So that's probably the issue here, the device just

Re: Wonky PS2-USB converter issues...

2013-02-20 Thread Greg Kroah-Hartman
On Wed, Feb 20, 2013 at 05:48:38PM -0500, Valdis Kletnieks wrote: > Quite some time ago, I posted about a problematic PS2-USB converter > that I used to connect an old PS2-connector keyboard to my laptop > dock, where the keyboard wouldn't be recognized at boot unless > I unplugged and reconnected

Re: [PATCH] tools: usb: ffs-test: Fix build failure

2013-02-20 Thread Greg KH
On Thu, Feb 21, 2013 at 01:57:51AM +0200, maxin.j...@gmail.com wrote: > From: "Maxin B. John" > > Fixes this build failure: > gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c > gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c > In file included from

[PATCH v3 1/2] cpufreq: Convert the cpufreq_driver_lock to a rwlock

2013-02-20 Thread Nathan Zimmer
This eliminates the contention I am seeing in __cpufreq_cpu_get. It also nicely stages the lock to be replaced by the rcu. Cc: Viresh Kumar Cc: "Rafael J. Wysocki" Signed-off-by: Nathan Zimmer --- drivers/cpufreq/cpufreq.c | 52 +++ 1 file changed,

[PATCH v3 2/2] cpufreq: Convert the cpufreq_driver_lock to use the rcu

2013-02-20 Thread Nathan Zimmer
In general rwlocks are discourged so we are moving it to use the rcu instead. This does require a bit of care since the cpufreq_driver_lock protects both the cpufreq_driver and the cpufreq_cpu_data array. Also since many of the function pointers on cpufreq_driver may sleep when called we have to

[PATCH v3 0/2] cpufreq: cpufreq_driver_lock is hot on large systems

2013-02-20 Thread Nathan Zimmer
I am noticing the cpufreq_driver_lock is quite hot. On an idle 512 system perf shows me most of the system time is spent on this lock. This is quite significant as top shows 5% of time in system time. My solution was to first convert the lock to a rwlock and then to the rcu. v2: Rebase v3: Read

[PATCH] tools: usb: ffs-test: Fix build failure

2013-02-20 Thread maxin . john
From: "Maxin B. John" Fixes this build failure: gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c In file included from ffs-test.c:41:0: ../../include/linux/usb/functionfs.h:4:39: fatal error:

Re: [PATCH] x86, efi: Make "noefi" really disable EFI runtime serivces

2013-02-20 Thread H. Peter Anvin
On 02/20/2013 03:46 PM, Satoru Takeuchi wrote: > > Sorry, my patch was imperfect. This patch looks good to me. > Perfection is something very rarely achieved. That's why we work with gradual improvements. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH] x86, efi: Make "noefi" really disable EFI runtime serivces

2013-02-20 Thread Satoru Takeuchi
Hi Matt, (2013/02/21 5:36), Matt Fleming wrote: > From: Matt Fleming > > commit 1de63d60cd5b ("efi: Clear EFI_RUNTIME_SERVICES rather than > EFI_BOOT by "noefi" boot parameter") attempted to make "noefi" true to > its documentation and disable EFI runtime services to prevent the > bricking bug

Re: [PATCH V5 4/5] drivers/amba: add support for a PCI bridge

2013-02-20 Thread H. Peter Anvin
On 02/20/2013 03:35 PM, Russell King - ARM Linux wrote: > On Wed, Feb 20, 2013 at 02:50:17PM -0800, H. Peter Anvin wrote: >> On 02/20/2013 02:45 PM, Alessandro Rubini wrote: >>> [meanwhile I posted V6 with the acked-by of linusw and others, that >>> were missing in V5] >>> >>> rmk: > I'm happy

[PATCH] idr: explain WARN_ON_ONCE() on negative IDs out-of-range ID

2013-02-20 Thread Tejun Heo
Until recently, when an negative ID is specified, idr functions used to ignore the sign bit and proceeded with the operation with the rest of bits, which is bizarre and error-prone. The behavior recently got changed so that negative IDs are treated as invalid but we're triggering WARN_ON_ONCE()

  1   2   3   4   5   6   7   8   9   10   >