[PATCH 2/2] :kernel:signal: Fixed coding style issue.

2013-03-04 Thread Alexandru Gheorghiu
Fixed coding style issue by removing trailing whitespaces. Signed-off-by: Alexandru Gheorghiu --- kernel/signal.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c index 2ec870a..fd9a953 100644 --- a/kernel/signal.c +++

Re: [PATCH 2/3] irq: Add hw continuous IRQs map to virtual continuous IRQs support

2013-03-04 Thread Mike Qiu
于 2013/3/5 10:41, Paul Mundt 写道: On Tue, Jan 15, 2013 at 03:38:55PM +0800, Mike Qiu wrote: Adding a function irq_create_mapping_many() which can associate multiple MSIs to a continous irq mapping. This is needed to enable multiple MSI support for pSeries. +int irq_create_mapping_many(struct

Re: [PATCH v2 01/20] vmcore: refer to e_phoff member explicitly

2013-03-04 Thread Zhang Yanfei
于 2013年03月02日 16:35, HATAYAMA Daisuke 写道: > Code around /proc/vmcore currently assumes program header table is > next to ELF header. But future change can break the assumption on > kexec-tools and the 1st kernel. To avoid worst case, now refer to > e_phoff member that indicates position of program

Re: [PATCH linux-next] cpufreq: conservative: Fix sampling_down_factor functionality

2013-03-04 Thread Viresh Kumar
On 5 March 2013 13:22, Stratos Karafotis wrote: > I had the same thoughts, but I saw the comments in the code: > > /* > * Every sampling_rate, we check, if current idle time is less than 20% > * (default), then we try to increase frequency Every sampling_rate * > * sampling_down_factor, we

workqueue panic in 3.4 kernel

2013-03-04 Thread Lei Wen
Hi Tejun, We met one panic issue related workqueue based over 3.4.5 Linux kernel. Panic log as: [153587.035369] Unable to handle kernel NULL pointer dereference at virtual address 0004 [153587.043731] pgd = e1e74000 [153587.046691] [0004] *pgd= [153587.050567] Internal error:

Re: [REGRESSION] [3.9-rc1] BUG: ktpacpi_nvramd/446 still has locks held!

2013-03-04 Thread Aaron Lu
On 03/05/2013 03:55 AM, Maciej Rutecki wrote: > Last known good: 3.8.0 > Bad version: 3.9-rc1 > > [6.116492] = > [6.116614] [ BUG: ktpacpi_nvramd/446 still has locks held! ] > [6.116737] 3.9.0-rc1 #1 Not tainted > [6.116821]

Re: [PATCH 20/24] rtc: rtc-sh: use module_platform_driver_probe()

2013-03-04 Thread Paul Mundt
On Mon, Mar 04, 2013 at 05:05:34PM +0900, Jingoo Han wrote: > This patch uses module_platform_driver_probe() macro which makes > the code smaller and simpler. > > Signed-off-by: Jingoo Han Not sure I see the point, but: Acked-by: Paul Mundt -- To unsubscribe from this list: send the line

Re: [PATCH 2/3] irq: Add hw continuous IRQs map to virtual continuous IRQs support

2013-03-04 Thread Mike Qiu
于 2013/3/5 10:23, Michael Ellerman 写道: On Tue, Jan 15, 2013 at 03:38:55PM +0800, Mike Qiu wrote: Adding a function irq_create_mapping_many() which can associate multiple MSIs to a continous irq mapping. This is needed to enable multiple MSI support for pSeries. Signed-off-by: Mike Qiu ---

Re: [PATCH 1/1 v2] pwm_bl: Add support for backlight enable GPIO

2013-03-04 Thread Thierry Reding
On Mon, Mar 04, 2013 at 08:43:50PM -0800, Andrew Chew wrote: > The backlight enable GPIO is specified in the device tree node for > backlight. > > Signed-off-by: Andrew Chew > --- > I decided to go ahead with disabling/enabling the backlight via GPIO as > needed. Note that I named the new

[PATCH v2 04/20] vmcore: allocate buffer for ELF headers on page-size alignment

2013-03-04 Thread HATAYAMA Daisuke
Allocate buffer for ELF headers on page-size aligned boudary to satisfy mmap() requirement. For this, __get_free_pages() is used instead of kmalloc(). Also, later patch will decrease actually used buffer size for ELF headers, so it's necessary to keep original buffer size and actually used buffer

[PATCH v2 02/20] vmcore: rearrange program headers without assuming consequtive PT_NOTE entries

2013-03-04 Thread HATAYAMA Daisuke
Current code assumes all PT_NOTE headers are placed at the beginning of program header table and they are consequtive. But the assumption could be broken by future changes on either kexec-tools or the 1st kernel. This patch removes the assumption and rearranges program headers as the following

[PATCH v2 01/20] vmcore: refer to e_phoff member explicitly

2013-03-04 Thread HATAYAMA Daisuke
Code around /proc/vmcore currently assumes program header table is next to ELF header. But future change can break the assumption on kexec-tools and the 1st kernel. To avoid worst case, now refer to e_phoff member that indicates position of program header table in file-offset. Signed-off-by:

Re: [PATCH RESEND 1/3] regulator: core: Add enable_is_inverted flag to indicate set enable_mask bits to disable

2013-03-04 Thread Axel Lin
2013/3/5 Mark Brown : > On Tue, Mar 05, 2013 at 02:16:00PM +0800, Axel Lin wrote: >> Add enable_is_inverted flag to indicate set enable_mask bits to disable >> when using regulator_enable_regmap and friends APIs. >> >> Signed-off-by: Axel Lin >> Reviewed-by: Haojian Zhuang >> --- >> This patch

[PATCH v2 06/20] vmcore, procfs: introduce a flag to distinguish objects copied in 2nd kernel

2013-03-04 Thread HATAYAMA Daisuke
The part of dump target memory is copied into the 2nd kernel if it doesn't satisfy mmap()'s page-size boundary requirement. To distinguish such copied object from usual old memory, a flag MEM_TYPE_CURRENT_KERNEL is introduced. If this flag is set, the object is considered being copied into buffer

Re: [PATCH v12 rebased] kvm: notify host when the guest is panicked

2013-03-04 Thread Gleb Natapov
On Mon, Mar 04, 2013 at 05:43:48PM -0300, Marcelo Tosatti wrote: > On Mon, Mar 04, 2013 at 07:49:13PM +0200, Gleb Natapov wrote: > > On Sun, Mar 03, 2013 at 07:29:53PM -0300, Marcelo Tosatti wrote: > > > On Sun, Mar 03, 2013 at 03:00:22PM +0200, Gleb Natapov wrote: > > > > On Fri, Mar 01, 2013 at

[PATCH v2 13/20] kexec, elf: introduce NT_VMCORE_DEBUGINFO note type

2013-03-04 Thread HATAYAMA Daisuke
This patch introduces NT_VMCORE_DEBUGINFO to a unique note type in VMCOREINFO name, which has had no name so far. The name means that it's a kind of note type in vmcoreinfo that contains system kernel's debug information. Signed-off-by: HATAYAMA Daisuke --- include/uapi/linux/elf.h |4

[PATCH v2 18/20] vmcore: round-up offset of vmcore object in page-size boundary

2013-03-04 Thread HATAYAMA Daisuke
To satisfy mmap()'s page-size bounary requirement, round-up offset of each vmcore objects in page-size boundary; each offset is connected to user-space virtual address through mapping of mmap(). Signed-off-by: HATAYAMA Daisuke --- fs/proc/vmcore.c | 18 -- 1 files changed, 8

[PATCH v2 20/20] vmcore: introduce mmap_vmcore()

2013-03-04 Thread HATAYAMA Daisuke
This patch introduces mmap_vmcore(). If flag MEM_TYPE_CURRENT_KERNEL is set, remapped is the buffer on the 2nd kernel. If not set, remapped is some area in old memory. Neither writable nor executable mapping is permitted even with mprotect(). Non-writable mapping is also requirement of

[PATCH v2 19/20] vmcore: count holes generated by round-up operation for vmcore size

2013-03-04 Thread HATAYAMA Daisuke
The previous patch changed offsets of each vmcore objects by round-up operation. vmcore size must count the holes. Signed-off-by: HATAYAMA Daisuke --- fs/proc/vmcore.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c

Re: [PATCH LINUX v5] xen: event channel arrays are xen_ulong_t and not unsigned long

2013-03-04 Thread Ian Campbell
On Tue, 2013-03-05 at 06:55 +, Rob Herring wrote: > Here's a config: Was it truncated? oldconfig is asking a ton of questions, far more than I would expect for something like variance between our HEADs etc. If I just answer the default to all the questions then I get a .config with Xen on

[PATCH v2 17/20] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement

2013-03-04 Thread HATAYAMA Daisuke
If there's some vmcore object that doesn't satisfy page-size boundary requirement, remap_pfn_range() fails to remap it to user-space. Objects that posisbly don't satisfy the requirement are ELF note segments only. The memory chunks corresponding to PT_LOAD entries are guaranteed to satisfy

[PATCH v2 16/20] vmcore: check NT_VMCORE_PAD as a mark indicating the end of ELF note buffer

2013-03-04 Thread HATAYAMA Daisuke
Modern kernel marks the end of ELF note buffer with NT_VMCORE_PAD type note in order to make the buffer satisfy mmap()'s page-size boundary requirement. This patch makes finishing reading each buffer if the note type now being read is NT_VMCORE_PAD type. Signed-off-by: HATAYAMA Daisuke ---

[PATCH v2 15/20] kexec: fill note buffers by NT_VMCORE_PAD notes in page-size boundary

2013-03-04 Thread HATAYAMA Daisuke
Fill both crash_notes and vmcoreinfo_note buffers by NT_VMCORE_PAD note type to make them satisfy mmap()'s page-size boundary requirement. So far, end of note segments has been marked by zero-filled elf header. Instead, this patch writes NT_VMCORE_PAD note in the end of note segments until the

[PATCH v2 14/20] elf: introduce NT_VMCORE_PAD type

2013-03-04 Thread HATAYAMA Daisuke
The NT_VMCORE_PAD type is introduced to make both crash_notes buffer and vmcoreinfo_note buffer satisfy mmap()'s page-size boundary requirement by filling them with this note type. The purpose of this type is just to align the buffer in page-size boundary; it has no meaning in contents, which are

[PATCH v2 12/20] kexec: allocate vmcoreinfo note buffer on page-size boundary

2013-03-04 Thread HATAYAMA Daisuke
To satisfy mmap()'s page-size boundary requirement, specify aligned attribute to vmcoreinfo_note objects to allocate it on page-size boundary. Signed-off-by: HATAYAMA Daisuke --- include/linux/kexec.h |6 -- kernel/kexec.c|2 +- 2 files changed, 5 insertions(+), 3

[PATCH v2 11/20] vmcore: allocate per-cpu crash_notes objects on page-size boundary

2013-03-04 Thread HATAYAMA Daisuke
To satisfy mmap()'s page-size boundary requirement, allocate per-cpu crash_notes objects on page-size boundary. /proc/vmcore on the 2nd kernel checks if each note objects is allocated on page-size boundary. If there's some object not satisfying the page-size boundary requirement, /proc/vmcore

[PATCH v2 10/20] vmcore: read buffers for vmcore objects copied from old memory

2013-03-04 Thread HATAYAMA Daisuke
If flag MEM_TYPE_CURRENT_KERNEL is set, the object is copied in the buffer on the 2nd kernel, then read_vmcore() reads the buffer. If the flag is not set, read_vmcore() reads old memory as usual. Signed-off-by: HATAYAMA Daisuke --- fs/proc/vmcore.c | 15 +++ 1 files changed, 11

[PATCH v2 09/20] vmcore: clean up read_vmcore()

2013-03-04 Thread HATAYAMA Daisuke
Clean up read_vmcore(). Part for objects in vmcore_list can be written uniformly to part for ELF headers. By this change, duplicate and complicated codes are removed, so it's more clear to see what's done there. Also, by this change, map_offset_to_paddr() is no longer used. Remove it.

[PATCH v2 05/20] vmcore: round up buffer size of ELF headers by PAGE_SIZE

2013-03-04 Thread HATAYAMA Daisuke
To satisfy mmap() page-size boundary requirement, round up buffer size of ELF headers by PAGE_SIZE. The resulting value becomes offset of ELF note segments and it's assigned in unique PT_NOTE program header entry. Also, some part that assumes past ELF headers' size is replaced by this new

[PATCH v2 03/20] vmcore, sysfs: export ELF note segment size instead of vmcoreinfo data size

2013-03-04 Thread HATAYAMA Daisuke
p_memsz member of program header entry with PT_NOTE type needs to have size of the corresponding ELF note segment. Currently, vmcoreinfo exports data part only. If vmcoreinfo reachs vmcoreinfo_max_size, then in merge_note_headers_elf{32,64}, empty ELF note header cannot be found or buffer overrun

[PATCH v2 00/20] kdump, vmcore: support mmap() on /proc/vmcore

2013-03-04 Thread HATAYAMA Daisuke
Currently, read to /proc/vmcore is done by read_oldmem() that uses ioremap/iounmap per a single page. For example, if memory is 1GB, ioremap/iounmap is called (1GB / 4KB)-times, that is, 262144 times. This causes big performance degradation. In particular, the current main user of this mmap() is

Re: [PATCH RESEND 1/3] regulator: core: Add enable_is_inverted flag to indicate set enable_mask bits to disable

2013-03-04 Thread Mark Brown
On Tue, Mar 05, 2013 at 02:16:00PM +0800, Axel Lin wrote: > Add enable_is_inverted flag to indicate set enable_mask bits to disable > when using regulator_enable_regmap and friends APIs. > > Signed-off-by: Axel Lin > Reviewed-by: Haojian Zhuang > --- > This patch was sent on

Re: [RFC PATCH v4 5/6] uretprobes: invoke return probe handlers

2013-03-04 Thread Ananth N Mavinakayanahalli
On Mon, Mar 04, 2013 at 03:38:12PM +0100, Anton Arapov wrote: > > diff --git a/arch/x86/include/asm/uprobes.h b/arch/x86/include/asm/uprobes.h > index c353555..fa9d9de 100644 > --- a/arch/x86/include/asm/uprobes.h > +++ b/arch/x86/include/asm/uprobes.h > @@ -56,4 +56,9 @@ extern bool

Re: [PATCH 1/1] pwm_bl: Add support for backlight enable GPIO

2013-03-04 Thread Thierry Reding
On Tue, Mar 05, 2013 at 01:59:06PM +0900, Alex Courbot wrote: > On 03/05/2013 01:48 PM, Andrew Chew wrote: > >I sent out a new patch that enables/disables the backlight enable gpio. > > > >>On 03/05/2013 01:00 PM, Andrew Chew wrote: > >>>I did come to the same conclusion regarding the platform

Re: For review: pid_namespaces(7) man page

2013-03-04 Thread Michael Kerrisk (man-pages)
On Mon, Mar 4, 2013 at 8:27 PM, Rob Landley wrote: > On 03/03/2013 10:03:55 PM, Eric W. Biederman wrote: >> >> Rob Landley writes: >> >> > On 03/01/2013 03:57:40 AM, Michael Kerrisk (man-pages) wrote: >> >> > And yet the glibc guys insist on #define >> >> GNU_GNU_GNU_ALL_HAIL_STALLMAN in >> >> >

Re: [RFC PATCH v2 4/4] timekeeping: utilize the suspend-nonstop clocksource to count suspended time

2013-03-04 Thread Feng Tang
On Tue, Mar 05, 2013 at 02:47:27PM +0800, John Stultz wrote: > On 03/05/2013 02:38 PM, Feng Tang wrote: > >On Tue, Mar 05, 2013 at 02:27:34PM +0800, John Stultz wrote: > > > >> > >>So this might be ok for an initial implementation, as on the > >>non-stop-tsc hardware, the TSC is the best

[PATCH RFT] pinctrl: abx500: Fix checking if pin use AlternateFunction register

2013-03-04 Thread Axel Lin
It's pointless to check "af.alt_bit1 == UNUSED" twice. This looks like a copy-paste bug, I think what we want is to check if *both* af.alt_bit1 and af.alt_bit2 are UNUSED. Signed-off-by: Axel Lin --- Hi, I don't have the datasheet and hw. I'd appreciate if someone can review and test this patch.

[RFC/PATCH 5/5] media: vb2: use FOLL_DURABLE and __get_user_pages() to avoid CMA migration issues

2013-03-04 Thread Marek Szyprowski
V4L2 devices usually grab additional references to user pages for a very long period of time, what causes permanent migration failures if the given page has been allocated from CMA pageblock. By setting FOLL_DURABLE flag, videobuf2 will instruct __get_user_pages() to migrate user pages out of CMA

[RFC/PATCH 1/5] mm: introduce migrate_replace_page() for migrating page to the given target

2013-03-04 Thread Marek Szyprowski
Introduce migrate_replace_page() function for migrating single page to the given target page. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- include/linux/migrate.h |5 mm/migrate.c| 59 +++ 2 files changed,

[RFC/PATCH 3/5] mm: get_user_pages: use NON-MOVABLE pages when FOLL_DURABLE flag is set

2013-03-04 Thread Marek Szyprowski
Ensure that newly allocated pages, which are faulted in in FOLL_DURABLE mode comes from non-movalbe pageblocks, to workaround migration failures with Contiguous Memory Allocator. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- include/linux/highmem.h | 12 ++--

[RFC/PATCH 4/5] mm: get_user_pages: migrate out CMA pages when FOLL_DURABLE flag is set

2013-03-04 Thread Marek Szyprowski
When __get_user_pages() is called with FOLL_DURABLE flag, ensure that no page in CMA pageblocks gets locked. This workarounds the permanent migration failures caused by locking the pages by get_user_pages() call for a long period of time. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin

[RFC/PATCH 0/5] Contiguous Memory Allocator and get_user_pages()

2013-03-04 Thread Marek Szyprowski
Hello, Contiguous Memory Allocator is very sensitive about migration failures of the individual pages. A single page, which causes permanent migration failure can break large conitguous allocations and cause the failure of a multimedia device driver. One of the known issues with migration of CMA

[RFC/PATCH 2/5] mm: get_user_pages: use static inline

2013-03-04 Thread Marek Szyprowski
__get_user_pages() is already exported function, so get_user_pages() can be easily inlined to the caller functions. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- include/linux/mm.h | 74 +--- mm/memory.c| 69

Re: [PATCH LINUX v5] xen: event channel arrays are xen_ulong_t and not unsigned long

2013-03-04 Thread Rob Herring
On 03/04/2013 09:04 PM, Will Deacon wrote: > Hi guys, > > On Mon, Mar 04, 2013 at 02:45:33AM +, Rob Herring wrote: >> On 02/20/2013 05:48 AM, Ian Campbell wrote: >>> On ARM we want these to be the same size on 32- and 64-bit. >>> >>> This is an ABI change on ARM. X86 does not change. >>> >>>

Re: [RFC PATCH v2 4/4] timekeeping: utilize the suspend-nonstop clocksource to count suspended time

2013-03-04 Thread John Stultz
On 03/05/2013 02:38 PM, Feng Tang wrote: On Tue, Mar 05, 2013 at 02:27:34PM +0800, John Stultz wrote: So this might be ok for an initial implementation, as on the non-stop-tsc hardware, the TSC is the best clocksource available. One concern long term is that there may be cases where the

Re: For review: pid_namespaces(7) man page

2013-03-04 Thread Eric W. Biederman
"Michael Kerrisk (man-pages)" writes: > Eric, > > On Mon, Mar 4, 2013 at 6:52 PM, Eric W. Biederman > wrote: >> "Michael Kerrisk (man-pages)" writes: >> >>> On Fri, Mar 1, 2013 at 4:35 PM, Eric W. Biederman > wrote: "Michael Kerrisk (man-pages)" writes: > Hi Rob, > > On

Re: [RFC PATCH v2 4/4] timekeeping: utilize the suspend-nonstop clocksource to count suspended time

2013-03-04 Thread Feng Tang
On Tue, Mar 05, 2013 at 02:27:34PM +0800, John Stultz wrote: > On 03/05/2013 10:27 AM, Feng Tang wrote: > >There are some new processors whose TSC clocksource won't stop during > >suspend. Currently, after system resumes, kernel will use persistent > >clock or RTC to compensate the sleep time, but

Re: [PATCH V2 01/14] MIPS: Build uasm-generated code only once to avoid CPU Hotplug problem

2013-03-04 Thread Huacai Chen
I'm sorry, this is the only patch, please ignore [01/14]. On Tue, Mar 5, 2013 at 12:37 PM, Huacai Chen wrote: > Currently, clear_page()/copy_page() are generated by Micro-assembler > dynamically. But they are unavailable until uasm_resolve_relocs() has > finished because jump labels are illegal

Re: [PATCH 1/1] kernel/pid_namespace.c: Fixing a lack of cleanup (Probable resources leak).

2013-03-04 Thread Eric W. Biederman
"Raphael S.Carvalho" writes: > Starting point: create_pid_namespace() > > Suppose create_pid_cachep() was executed sucessfully, thus: > pcache was allocated by kmalloc(). > cachep received a cache created by kmem_cache_create(). > and pcache->list was added to the list pid_caches_lh. > > So what

[git pull] Please pull powerpc.git merge branch

2013-03-04 Thread Benjamin Herrenschmidt
Hi Linus ! Here are a few powerpc bits & fixes for rc1. A couple of str*cpy fixes, some fixes in handling the FSCR register on Power8 (controls the enabling of processor features), a 32-bit build fix and a couple more nits. Cheers, Ben. The following changes since commit

Re: [RFC PATCH v2 0/4] Add support for S3 non-stop TSC support.

2013-03-04 Thread Feng Tang
On Mon, Mar 04, 2013 at 09:32:03PM -0700, Jason Gunthorpe wrote: > On Tue, Mar 05, 2013 at 11:53:02AM +0800, Feng Tang wrote: > > > You may want to also CC the maintainers of all the ARM subsystems that > > > use read_persistent_clock and check with them to ensure this new > > > interface will

Re: [RFC PATCH v2 4/4] timekeeping: utilize the suspend-nonstop clocksource to count suspended time

2013-03-04 Thread John Stultz
On 03/05/2013 10:27 AM, Feng Tang wrote: There are some new processors whose TSC clocksource won't stop during suspend. Currently, after system resumes, kernel will use persistent clock or RTC to compensate the sleep time, but for those new types of clocksources, we could skip the special

Re: For review: pid_namespaces(7) man page

2013-03-04 Thread Michael Kerrisk (man-pages)
[Resending, since my mobile device turned things into HTML] Eric, On Mon, Mar 4, 2013 at 6:52 PM, Eric W. Biederman wrote: > "Michael Kerrisk (man-pages)" writes: > >> On Fri, Mar 1, 2013 at 4:35 PM, Eric W. Biederman >> wrote: >>> "Michael Kerrisk (man-pages)" writes: >>> Hi Rob,

Re: [RFC PATCH v2 0/4] Add support for S3 non-stop TSC support.

2013-03-04 Thread John Stultz
On 03/05/2013 12:32 PM, Jason Gunthorpe wrote: On Tue, Mar 05, 2013 at 11:53:02AM +0800, Feng Tang wrote: // Drops some small precision along the way but is simple.. static inline u64 cyclecounter_cyc2ns_128(const struct cyclecounter *cc, cycle_t

[PATCH RESEND 3/3] regulator: max8649: Use enable_is_inverted flag with regulator_enable_regmap and friends APIs

2013-03-04 Thread Axel Lin
Signed-off-by: Axel Lin Reviewed-by: Haojian Zhuang --- drivers/regulator/max8649.c | 39 ++- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index 3ca1438..fdb67ff 100644 ---

[PATCH RESEND 2/3] regulator: 88pm8607: Use enable_is_inverted flag with regulator_enable_regmap and friends APIs

2013-03-04 Thread Axel Lin
Signed-off-by: Axel Lin Reviewed-by: Haojian Zhuang --- drivers/regulator/88pm8607.c | 36 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/drivers/regulator/88pm8607.c b/drivers/regulator/88pm8607.c index c79ab84..493948a 100644 ---

[PATCH RESEND 1/3] regulator: core: Add enable_is_inverted flag to indicate set enable_mask bits to disable

2013-03-04 Thread Axel Lin
Add enable_is_inverted flag to indicate set enable_mask bits to disable when using regulator_enable_regmap and friends APIs. Signed-off-by: Axel Lin Reviewed-by: Haojian Zhuang --- This patch was sent on https://lkml.org/lkml/2013/2/16/14. This resend is against linux-next tree (20130305).

[PATCH 02/12] perf annotate: Add a comment on the symbol__parse_objdump_line()

2013-03-04 Thread Namhyung Kim
From: Namhyung Kim The symbol__parse_objdump_line() parses result of the objdump run but it's hard to follow if one doesn't know the output format of the objdump. Add a head comment on the function to help her. Signed-off-by: Namhyung Kim --- tools/perf/util/annotate.c | 20

[PATCH 01/12] perf annotate: Pass evsel instead of evidx on annotation functions

2013-03-04 Thread Namhyung Kim
From: Namhyung Kim Pass evsel instead of evidx. This is a preparation for supporting event group view in annotation and no functional change is intended. Signed-off-by: Namhyung Kim --- tools/perf/builtin-annotate.c | 16 +--- tools/perf/builtin-top.c | 2 +-

[PATCH 04/12] perf annotate: Cleanup disasm__calc_percent()

2013-03-04 Thread Namhyung Kim
From: Namhyung Kim The loop end condition is calculated from next disasm_line or the symbol size if it's the last disasm_line. But it doesn't need to be calculated at every iteration. Moving it out of the function can simplify code a bit. Also the src_line doesn't need to be checked in every

[PATCH 03/12] perf annotate: Factor out disasm__calc_percent()

2013-03-04 Thread Namhyung Kim
From: Namhyung Kim Factor out calculation of histogram of a symbol into disasm__calc_percent. It'll be used for later changes. Signed-off-by: Namhyung Kim --- tools/perf/util/annotate.c | 49 -- 1 file changed, 30 insertions(+), 19 deletions(-)

[PATCH 06/12] perf evsel: Introduce perf_evsel__is_group_event() helper

2013-03-04 Thread Namhyung Kim
From: Namhyung Kim The perf_evsel__is_group_event function is for checking whether given evsel needs event group view support or not. Please note that it's different to the existing perf_evsel__is_group_leader() which checks only the given evsel is a leader or a standalone (i.e. non-group)

[PATCH 08/12] perf annotate: Support event group view for --print-line

2013-03-04 Thread Namhyung Kim
Dynamically allocate source_line_percent according to a number of group members and save nr_pcnt to the struct source_line. This way we can handle multiple events in a general manner. However since the size of struct source_line is not fixed anymore, iterating whole source_line should care about

[PATCH 10/12] perf annotate browser: Use disasm__calc_percent()

2013-03-04 Thread Namhyung Kim
The disasm_line__calc_percent() which was used by annotate browser code almost duplicates disasm__calc_percent. Let's get rid of the code duplication. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/annotate.c | 50 +++ tools/perf/util/annotate.c

[PATCH 12/12] perf annotate/gtk: Support event group view on GTK

2013-03-04 Thread Namhyung Kim
From: Namhyung Kim Add support for event group view to GTK annotation browser. Cc: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/gtk/annotate.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/tools/perf/ui/gtk/annotate.c

[PATCH 07/12] perf annotate: Factor out struct source_line_percent

2013-03-04 Thread Namhyung Kim
From: Namhyung Kim The source_line_percent struct contains percentage value of the symbol histogram. This is a preparation of event group view change. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/annotate.c | 2 +- tools/perf/util/annotate.c| 14 +++---

[PATCH 05/12] perf annotate: Add basic support to event group view

2013-03-04 Thread Namhyung Kim
From: Namhyung Kim Add --group option to enable event grouping. When enabled, all the group members information will be shown with the leader so skip non-leader events. It only supports --stdio output currently. Later patches will extend additional features. $ perf annotate --group --stdio

[PATCH 11/12] perf annotate browser: Support event group view on TUI

2013-03-04 Thread Namhyung Kim
Dynamically allocate browser_disasm_line according to a number of group members and save nr_pcnt to the struct. This way we can handle multiple events in a general manner. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/annotate.c | 67 +-- 1 file

[PATCH 00/12] perf annotate: Add support for event group view (v2)

2013-03-04 Thread Namhyung Kim
Hi all, This patchset implements event group view on perf annotate. It's basically a rebased version and major difference to prior version is the GTK annotation browser support. Here goes an example: $ perf annotate --group --stdio Percent | Source code & Disassembly

[PATCH 09/12] perf annotate browser: Make browser_disasm_line->percent an array

2013-03-04 Thread Namhyung Kim
Make percent field of struct browser_disasm_line an array and move it to the last. This is a preparation of event group view feature. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/annotate.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [PATCH 1/1] kernel/pid_namespace.c: Fixing a lack of cleanup (Probable resources leak).

2013-03-04 Thread Cyrill Gorcunov
On Tue, Mar 05, 2013 at 02:04:45AM -0300, Raphael S Carvalho wrote: > > > > Actually I noticed this problem and I think it is not a BUG. > > Since the pid_cache is created for all pid namespace which have the same > > level. > > Even this pid namespace is failed to create, the pid_cache will not

Re: [PATCH RFC] MIPS: Build uasm-generated code only once to avoid CPU Hotplug problem

2013-03-04 Thread Huacai Chen
I'm sorry, this is the only patch, please ignore [01/14]. On Mon, Mar 4, 2013 at 8:56 PM, Huacai Chen wrote: > Currently, clear_page()/copy_page() are generated by Micro-assembler > dynamically. But they are unavailable until uasm_resolve_relocs() has > finished because jump labels are illegal

Re: BUG: IPv4: Attempt to release TCP socket in state 1

2013-03-04 Thread dormando
On Mon, 4 Mar 2013, Eric Dumazet wrote: > On Tue, 2013-03-05 at 11:47 +0800, Cong Wang wrote: > > (Cc'ing the right netdev mailing list...) > > > > On 03/05/2013 08:01 AM, dormando wrote: > > > Hi! > > > > > > I have a (core lockup?) with 3.7.6+ and 3.8.2 which appears to be under > > > ixgbe.

Re: [ 052/153] idr: idr_for_each_entry() macro

2013-03-04 Thread Ben Hutchings
On Mon, 2013-03-04 at 22:05 +0100, Philipp Reisner wrote: > Sure, here it is: > -- > > From: Philipp Reisner > > commit 9749f30f1a387070e6e8351f35aeb829eacc3ab6 upstream. > > Inspired by the list_for_each_entry() macro > > Signed-off-by: Ben Hutchings > Signed-off-by: Philipp Reisner

Re: [PATCH 2/2] dmi_scan: Refactor dmi_scan_machine(), {smbios,dmi}_present()

2013-03-04 Thread Ben Hutchings
On Mon, 2013-03-04 at 15:09 -0500, tmhik...@gmail.com wrote: > Forgive me for bothering you about this again, I know that -stable > has a policy of only accepting patches once Linus has accepted them > upstream, but I'm curious what's going on here. Is there something I could > help with to

Re: [PATCH linux-next] cpufreq: conservative: Fix sampling_down_factor functionality

2013-03-04 Thread Stratos Karafotis
Hi Viresh, On 03/05/2013 02:23 AM, Viresh Kumar wrote:> Interesting. Because it was removed earlier and no body complained :) > > I got following from Documentation: > > sampling_down_factor: this parameter controls the rate at which the > kernel makes a decision on when to decrease the

Re: [PATCH 1/1 v2] pwm_bl: Add support for backlight enable GPIO

2013-03-04 Thread Alex Courbot
On 03/05/2013 01:43 PM, Andrew Chew wrote: The backlight enable GPIO is specified in the device tree node for backlight. Signed-off-by: Andrew Chew --- I decided to go ahead with disabling/enabling the backlight via GPIO as needed. Note that I named the new functions pwm_backlight_enable()

Re: [PATCH 1/1] pwm_bl: Add support for backlight enable GPIO

2013-03-04 Thread Alex Courbot
On 03/05/2013 01:59 PM, Alex Courbot wrote: Btw, you also want to check if the enable-gpio property exists first because otherwise probe() will fails if no GPIO is specified). That's actually not true - I overlooked the fact that probe() checks for the GPIO validity before requesting it. My

Re: BUG: IPv4: Attempt to release TCP socket in state 1

2013-03-04 Thread Eric Dumazet
On Tue, 2013-03-05 at 11:47 +0800, Cong Wang wrote: > (Cc'ing the right netdev mailing list...) > > On 03/05/2013 08:01 AM, dormando wrote: > > Hi! > > > > I have a (core lockup?) with 3.7.6+ and 3.8.2 which appears to be under > > ixgbe. The machine appears to still be up but network stays in a

Re: [PATCH 1/1] kernel/pid_namespace.c: Fixing a lack of cleanup (Probable resources leak).

2013-03-04 Thread Raphael S Carvalho
On Tue, Mar 5, 2013 at 12:51 AM, Gao feng wrote: > On 2013/03/05 11:26, Eric W. Biederman wrote: >> From: Raphael S.Carvalho >> >> Starting point: create_pid_namespace() >> >> Suppose create_pid_cachep() was executed sucessfully, thus: >> pcache was allocated by kmalloc(). >> cachep received a

Re: [PATCH 1/1] pwm_bl: Add support for backlight enable GPIO

2013-03-04 Thread Alex Courbot
On 03/05/2013 01:48 PM, Andrew Chew wrote: I sent out a new patch that enables/disables the backlight enable gpio. On 03/05/2013 01:00 PM, Andrew Chew wrote: I did come to the same conclusion regarding the platform data breakage. I'm expecting that the use of platform data will go away, at

[PATCH 6/8] watchdog: w83627hf: Add support for additional chips

2013-03-04 Thread Guenter Roeck
W83667HG-B, NCT6775, NCT6776 have the same watchdog registers as the other supported chips but require a slightly different initialization. Signed-off-by: Guenter Roeck --- drivers/watchdog/Kconfig| 18 ++ drivers/watchdog/w83627hf_wdt.c | 29

[PATCH 1/8] watchdog: w83627hf: Convert to watchdog infrastructure

2013-03-04 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/watchdog/Kconfig|1 + drivers/watchdog/w83627hf_wdt.c | 234 --- 2 files changed, 47 insertions(+), 188 deletions(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 9fcc70c..dd462af

[PATCH 7/8] watchdog: w83627hf: Add support for W83697HF and W83697UG

2013-03-04 Thread Guenter Roeck
Major difference is that the watchdog control and counter registers are different on both chips. Signed-off-by: Guenter Roeck --- drivers/watchdog/Kconfig|2 ++ drivers/watchdog/w83627hf_wdt.c | 60 +++ 2 files changed, 50 insertions(+), 12

[PATCH 8/8] watchdog: Remove drivers for W83697HF and W83697UG

2013-03-04 Thread Guenter Roeck
Since both chips are now supported by the w83627hf watchdog driver, the chip specific drivers are no longer needed and can be removed. Signed-off-by: Guenter Roeck --- drivers/watchdog/Kconfig| 30 --- drivers/watchdog/Makefile |2 - drivers/watchdog/w83697hf_wdt.c | 461

[PATCH 3/8] watchdog: w83627hf: Enable watchdog device only if not already enabled

2013-03-04 Thread Guenter Roeck
There is no need to enable the watchdog device if it is already enabled. Also, when enabling the watchdog device, only set the watchdog device enable bit and do not touch other bits; depending on the chip type, those bits may enable other functionality. Signed-off-by: Guenter Roeck ---

[PATCH 5/8] watchdog: w83627hf: Auto-detect IO address and supported chips

2013-03-04 Thread Guenter Roeck
Instead of requiring the user to provide an IO address per module parameter, auto-detect it as well as supported chips. Signed-off-by: Guenter Roeck --- drivers/watchdog/w83627hf_wdt.c | 121 --- 1 file changed, 101 insertions(+), 20 deletions(-) diff --git

[PATCH 2/8] watchdog: w83627hf: Enable watchdog only once

2013-03-04 Thread Guenter Roeck
It is unnecessary to enable the logical device and WDT0 each time the watchdog is accessed. Do it only once during initialization. Signed-off-by: Guenter Roeck --- drivers/watchdog/w83627hf_wdt.c | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff

[PATCH 4/8] watchdog: w83627hf: Use helper functions to access superio registers

2013-03-04 Thread Guenter Roeck
Use helper functions named similar to other drivers to access superio registers. Signed-off-by: Guenter Roeck --- drivers/watchdog/w83627hf_wdt.c | 97 +-- 1 file changed, 52 insertions(+), 45 deletions(-) diff --git a/drivers/watchdog/w83627hf_wdt.c

[PATCH 0/8] watchdog: w83627hf: Convert to watchdog infrastructure

2013-03-04 Thread Guenter Roeck
Convert to watchdog infrastructure, cleanup, add support for additional chips, and merge with W83697HF and W83697UG watchdog drivers. Tested with NCT6775 and NCT6776. I'll be able to test the code with W83627UHG. Additional test feedback, especially for other chips, would be appreciated. -- To

[PATCH] cpufreq: ARM big LITTLE: Add generic cpufreq driver and its DT glue

2013-03-04 Thread Viresh Kumar
big LITTLE is ARM's new Architecture focussing power/performance needs of modern world. More information about big LITTLE can be found here: http://www.arm.com/products/processors/technologies/biglittleprocessing.php http://lwn.net/Articles/481055/ In order to keep cpufreq support for all big

Re: [PATCH V2 01/14] MIPS: Build uasm-generated code only once to avoid CPU Hotplug problem

2013-03-04 Thread 陈华才
I'm sorry, this is the only patch, please ignore [01/14]. > Currently, clear_page()/copy_page() are generated by Micro-assembler > dynamically. But they are unavailable until uasm_resolve_relocs() has > finished because jump labels are illegal before that. Since these > functions are shared by

RE: [PATCH 1/1] pwm_bl: Add support for backlight enable GPIO

2013-03-04 Thread Andrew Chew
I sent out a new patch that enables/disables the backlight enable gpio. > On 03/05/2013 01:00 PM, Andrew Chew wrote: > > I did come to the same conclusion regarding the platform data breakage. > > I'm expecting that the use of platform data will go away, at least on > > ARM, since we are all

[PATCH 3/3] mfd: davinci_voicecodec: use module_platform_driver_probe()

2013-03-04 Thread Jingoo Han
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han --- drivers/mfd/davinci_voicecodec.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/drivers/mfd/davinci_voicecodec.c

[PATCH 2/3] mfd: htc-pasic3: use module_platform_driver_probe()

2013-03-04 Thread Jingoo Han
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han --- drivers/mfd/htc-pasic3.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c index

[PATCH 1/3] mfd: ab3100-otp: use module_platform_driver_probe()

2013-03-04 Thread Jingoo Han
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han --- drivers/mfd/ab3100-otp.c | 14 +- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/drivers/mfd/ab3100-otp.c b/drivers/mfd/ab3100-otp.c index

[PATCH 1/1 v2] pwm_bl: Add support for backlight enable GPIO

2013-03-04 Thread Andrew Chew
The backlight enable GPIO is specified in the device tree node for backlight. Signed-off-by: Andrew Chew --- I decided to go ahead with disabling/enabling the backlight via GPIO as needed. Note that I named the new functions pwm_backlight_enable() and pwm_backlight_disable() (instead of

Re: [PATCH 1/1] pwm_bl: Add support for backlight enable GPIO

2013-03-04 Thread Alex Courbot
On 03/05/2013 01:00 PM, Andrew Chew wrote: I did come to the same conclusion regarding the platform data breakage. I'm expecting that the use of platform data will go away, at least on ARM, since we are all aggressively moving what used to be in platform data into the device tree. Do other

[PATCH V2 01/14] MIPS: Build uasm-generated code only once to avoid CPU Hotplug problem

2013-03-04 Thread Huacai Chen
Currently, clear_page()/copy_page() are generated by Micro-assembler dynamically. But they are unavailable until uasm_resolve_relocs() has finished because jump labels are illegal before that. Since these functions are shared by every CPU, we only call build_clear_page()/ build_copy_page() only

Re: [RFC PATCH v2 0/4] Add support for S3 non-stop TSC support.

2013-03-04 Thread Jason Gunthorpe
On Tue, Mar 05, 2013 at 11:53:02AM +0800, Feng Tang wrote: > > // Drops some small precision along the way but is simple.. > > static inline u64 cyclecounter_cyc2ns_128(const struct cyclecounter *cc, > > cycle_t cycles) > > { > > u64 max =

  1   2   3   4   5   6   7   8   9   10   >