Re: [PATCH 6/6 v11] gpio: Add block gpio to several gpio drivers

2012-12-20 Thread Wolfgang Grandegger
On 12/20/2012 08:08 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 22:22 Wed 19 Dec , Roland Stigge wrote: This patch adds block GPIO support to several gpio drivers. This implements block GPIO only for some selected drivers since block GPIO is an optional feature which may not be

[GIT PULL] UBI changes for 3.8-rc1

2012-12-20 Thread Artem Bityutskiy
Hi Linus, please, pull UBI changes. The following changes since commit 6f0c0580b70c89094b3422ba81118c7b959c7556: Linux 3.7-rc2 (2012-10-20 12:11:32 -0700) are available in the git repository at: git://git.infradead.org/linux-ubi.git tags/upstream-3.8-rc1 for you to fetch changes up to

Re: [RFC Patch v1 45/55] ARC: unaligned access emulation

2012-12-20 Thread Vineet Gupta
On Monday 12 November 2012 07:30 PM, Arnd Bergmann wrote: On Monday 12 November 2012, vineet.gup...@synopsys.com wrote: + +config ARC_MISALIGN_ACCESS + bool Emulate unaligned memory access (userspace only) + default N + help + This enables misaligned 16 32 bit

Re: [PATCH RESEND] Documentation: kernel-parameters.txt remove capability.disable

2012-12-20 Thread Rob Landley
On 12/18/2012 11:25:01 AM, Josh Boyer wrote: Remove the documentation for capability.disable. The code supporting this parameter was removed with: commit 5915eb53861c5776cfec33ca4fcc1fd20d66dd27 Author: Miklos Szeredi mszer...@suse.cz Date: Thu Jul 3 20:56:05 2008

[PATCH] net: ipv4: route: fixed a coding style issues net: ipv4: tcp: fixed a coding style issues

2012-12-20 Thread Stefan Hasko
Fix a coding style issues. Signed-off-by: Stefan Hasko hasko.st...@gmail.com --- net/ipv4/route.c | 125 ++- net/ipv4/tcp.c | 218 +++--- 2 files changed, 200 insertions(+), 143 deletions(-) diff --git

Re: [patch 00/16] sched: per-entity load-tracking

2012-12-20 Thread Jassi Brar
On Thu, Dec 20, 2012 at 1:09 PM, Stephen Boyd sb...@codeaurora.org wrote: On 11/26/2012 5:08 AM, Jassi Brar wrote: The patchset introduces 64-bit atomic ops, which would need init_atomic64_lock() already called, but that is an initcall made too late. Should we consider calling

[PATCH v2] pinctrl/nomadik: add device tree support

2012-12-20 Thread Linus Walleij
From: Gabriel Fernandez gabriel.fernan...@stericsson.com This implements pin multiplexing and pin configuration for the Nomadik pin controller using the device tree. Signed-off-by: Gabriel Fernandez gabriel.fernan...@stericsson.com Reviewed-by: Philippe Langlais philippe.langl...@stericsson.com

Re: [PATCH 2/3] perf x86: Add precise sysfs attribute

2012-12-20 Thread Namhyung Kim
On Wed, Dec 19, 2012 at 04:07:21PM +0100, Jiri Olsa wrote: Adding sysfs precise attribute for cpu device (/sys/devices/cpu) to show the maximum value for perf event precise attribute. This will be initialy used for automated precise event perf test and could be helpful otherwise. Arnaldo

[PATCH v2] usb: phy: using kzalloc instead of kmalloc

2012-12-20 Thread Venu Byravarasu
As Tegra PHY driver open is using kmalloc, changing it to kzalloc. Signed-off-by: Venu Byravarasu vbyravar...@nvidia.com --- This patch is v2 patch for the patch discussed at http://marc.info/?l=linux-usbm=135593869431766w=2 drivers/usb/phy/tegra_usb_phy.c |2 +- 1 files changed, 1

RE: [PATCH] usb: phy: tegra: Using devm API for memory allocation

2012-12-20 Thread Venu Byravarasu
-Original Message- From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Wednesday, December 19, 2012 11:08 PM To: Venu Byravarasu Cc: ba...@ti.com; gre...@linuxfoundation.org; linux- ker...@vger.kernel.org; linux-...@vger.kernel.org Subject: Re: [PATCH] usb: phy: tegra: Using

Re: [RFC Patch v1 45/55] ARC: unaligned access emulation

2012-12-20 Thread Arnd Bergmann
On Thursday 20 December 2012, Vineet Gupta wrote: Are you OK if we keep this support build time - provided that once it is build time enabled - we have the additional runtime sysctl based toggle-ability as you suggested. Yes, sounds good. Only one of our customers need this feature and this

RE: [Xen-devel] [PATCH] xen/swiotlb: Exchange to contiguous memory for map_sg hook

2012-12-20 Thread Jan Beulich
On 20.12.12 at 02:23, Xu, Dongxiao dongxiao...@intel.com wrote: Sorry, maybe I am still not describing this issue clearly. No, at least I understood you the way you re-describe below. Take the libata case as an example, the static DMA buffer locates (dev-link-ap-sector_buf , here we use

[PATCH] mfd: support stmpe1801 18 bits enhanced port expander

2012-12-20 Thread Jean-Nicolas Graux
Provides support for 1801 variant of stmpe gpio port expanders. This chip has 18 gpios configurable as GPI, GPO, keypad matrix, special key or dedicated key function. Note that special/dedicated key function is not supported yet. Signed-off-by: Jean-Nicolas Graux

[PATCH 3/5] perf tools: Add bitmap filed to thread_map to support new threads aware.

2012-12-20 Thread chenggang
During a target thread's life cycle, it may be fork many threads. But in the current version of 'perf top{record} -p $pid', the new forked threads can not be apperceived by perf. The content of thread_map and other related structures need to be refreshed on-the-fly to apperceive the threads' fork

[PATCH 5/5] perf top: Add the function to make 'perf top -p $pid' could be aware of new forked thread.

2012-12-20 Thread chenggang
This patch implemnet a fork function and a exit function in perf_top-tool to respond to PERF_RECORD_FORK PERF_RECORD_EXIT events. In the fork function (perf_top__process_event_fork), the information of the new thread is added into thread_map. The fd and mmap of the new thread are created in

[v1][PATCH 1/6] powerpc/book3e: load critical/machine/debug exception stack

2012-12-20 Thread Tiejun Chen
We always alloc critical/machine/debug check exceptions. This is different from the normal exception. So we should load these exception stack properly like we did for booke. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- arch/powerpc/kernel/exceptions-64e.S | 40

[v1][PATCH 0/6] powerpc/book3e: make kgdb to work well

2012-12-20 Thread Tiejun Chen
v1: * Copy thread info only when we are from !user mode since we'll get kernel stack coming from usr directly. * remove save/restore EX_R14/EX_R15 since DBG_EXCEPTION_PROLOG already covered this. * use CURRENT_THREAD_INFO() conveniently to get thread. * fix some typos * add a patch to make

[v1][PATCH 2/6] powerpc/book3e: store critical/machine/debug exception thread info

2012-12-20 Thread Tiejun Chen
We need to store thread info to these exception thread info like something we already did for PPC32. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- arch/powerpc/kernel/exceptions-64e.S | 15 +++ 1 file changed, 15 insertions(+) diff --git

[v1][PATCH 3/6] book3e/kgdb: update thread's dbcr0

2012-12-20 Thread Tiejun Chen
gdb always need to generate a single step properly to invoke a kgdb state. But with lazy interrupt, book3e can't always trigger a debug exception with a single step since the current is blocked for handling those pending exception, then we miss that expected dbcr configuration at last to generate

[v1][PATCH 6/6] kgdb/kgdbts: support ppc64

2012-12-20 Thread Tiejun Chen
We can't look up the address of the entry point of the function simply via that function symbol for all architectures. For PPC64 ABI, actually there is a function descriptors structure. A function descriptor is a three doubleword data structure that contains the following values: * The

[v1][PATCH 5/6] powerpc/book3e: support kgdb for kernel space

2012-12-20 Thread Tiejun Chen
Currently we need to skip this for supporting KGDB. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- arch/powerpc/kernel/exceptions-64e.S |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64e.S

[v1][PATCH 4/6] book3e/kgdb: Fix a single stgep case of lazy IRQ

2012-12-20 Thread Tiejun Chen
When we're in kgdb_singlestep(), we have to work around to get thread_info by copying from the kernel stack before calling kgdb_handle_exception(), then copying it back afterwards. But for PPC64, we have a lazy interrupt implementation. So after copying thread info frome kernle stack, if we need

[PATCH 0/5] perf top: Add the function that make the 'perf top -p $pid' can be aware of the new threads.

2012-12-20 Thread chenggang
This patch set add the function that make the 'perf top -p $pid' could be aware of the dynamic fork threads. The perf top{record} tools are not aware of the new threads that forked by the target threads, while we use 'perf top{record} -p $pid' model. Some critical structures, such as, thread_map,

[PATCH 1/5] perf tools: Add some functions to bitops.h to support more bitmap operations.

2012-12-20 Thread chenggang
Add bitmap_copy() find_first_zero_bit() to the 'util/include/linux/bitops.h'. These functions could be need if we want to change the thread_map or any other mechanism with bitmap. Cc: David Ahern dsah...@gmail.com Cc: Arjan van de Ven ar...@linux.intel.com Cc: Namhyung Kim namhy...@gmail.com Cc:

Re: [PATCH 6/6 v11] gpio: Add block gpio to several gpio drivers

2012-12-20 Thread Roland Stigge
On 12/20/2012 09:07 AM, Wolfgang Grandegger wrote: On 12/20/2012 08:08 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 22:22 Wed 19 Dec , Roland Stigge wrote: This patch adds block GPIO support to several gpio drivers. This implements block GPIO only for some selected drivers since block

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-20 Thread Terje Bergström
On 16.12.2012 14:16, Thierry Reding wrote: Okay, so we're back on the topic of using globals. I need to assert again that this is not an option. If we were to use globals, then we could just as well leave out the dummy device and just do all of that in the tegra-drm driver's initialization

[PATCH 2/5] perf tools: Add xyarray__realloc function in xyarray.c to expend xyarray.

2012-12-20 Thread chenggang
xyarray__realloc() could be used if we wish extend the evsel-fd, evsel-sample_id or any other xyarray on-the-fly. Cc: David Ahern dsah...@gmail.com Cc: Arjan van de Ven ar...@linux.intel.com Cc: Namhyung Kim namhy...@gmail.com Cc: Yanmin Zhang yanmin.zh...@intel.com Cc: Wu Fengguang

Re: [PATCH 1/3] powerpc/book3e: load critical/machine/debug exception stack

2012-12-20 Thread tiejun.chen
On 12/19/2012 06:10 AM, Tabi Timur-B04825 wrote: On Thu, Oct 25, 2012 at 1:43 AM, Tiejun Chen tiejun.c...@windriver.com wrote: We always alloc critical/machine/debug check exceptions. This is different from the normal exception. So we should load these exception stack properly like we did for

Re: [PATCH] mfd: db8500-prcmu: fix irqdomain usage

2012-12-20 Thread Linus Walleij
On Thu, Dec 20, 2012 at 8:50 AM, Lee Jones lee.jo...@linaro.org wrote: On Thu, 20 Dec 2012, Grant Likely wrote: This looks wrong. It probably works at the moment, but calling irq_create_mapping when trying to process an IRQ is backwards. There certainly shouldn't be any processing of an irq

Re: at91sam9260 MACB problem with IP fragmentation

2012-12-20 Thread Erwin Rol
Hallo Nicolas, On 6-12-2012 14:27, Nicolas Ferre wrote: Erwin, On 12/06/2012 12:32 PM, Erwin Rol : Hello Nicolas, Havard, all, I have a very obscure problem with a at91sam9260 board (almost 1 to 1 copy of the Atmel EK). The MACB seems to stall when I use large (2 * MTU) UDP datagrams.

[PATCH v2] mfd: db8500-prcmu: fix irqdomain usage

2012-12-20 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org This fixes two issues with the DB8500 PRCMU irqdomain: - You have to state the irq base 0 to get a linear domain for the DT case from irq_domain_add_simple() - The irqdomain was not used to translate the initial irq request using

Re: [PATCH] mfd: support stmpe1801 18 bits enhanced port expander

2012-12-20 Thread Linus Walleij
On Thu, Dec 20, 2012 at 9:57 AM, Jean-Nicolas Graux jean-nicolas.gr...@stericsson.com wrote: Provides support for 1801 variant of stmpe gpio port expanders. This chip has 18 gpios configurable as GPI, GPO, keypad matrix, special key or dedicated key function. Note that special/dedicated key

Re: [PATCH v2 3/3] gpio: twl4030: TODO comment to remove the PWMA/B (LEDA/B) handling

2012-12-20 Thread Peter Ujfalusi
On 12/19/2012 06:07 PM, Grant Likely wrote: On Thu, 6 Dec 2012 11:52:07 +0100, Peter Ujfalusi peter.ujfal...@ti.com wrote: This GPIO driver should not configure anything else then GPIOs. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com I'm not sure if this is the right direction. I

Re: [PATCH] mm/swap: add independed bio pool for swap

2012-12-20 Thread Konstantin Khlebnikov
Andrew Morton wrote: On Mon, 17 Dec 2012 20:45:13 -0800 (PST) Hugh Dickinshu...@google.com wrote: On Fri, 14 Dec 2012, Konstantin Khlebnikov wrote: This bio pool guarantees reclaiming progress for anonymous pages. All avaliable bio in fs_bio_set may be borrowed by writeback which may never

[PATCH v4 RESEND] pwm: atmel: add Timer Counter Block PWM driver

2012-12-20 Thread Boris BREZILLON
Hi, Sorry for resend. The previous version still has alignment issues on atmel_tcb_pwm_set_polarity, atmel_tcb_pwm_request and atmel_tcb_pwm_config function parameters. This patch adds a PWM driver based on Atmel Timer Counter Block. Timer Counter Block is used in Waveform generator mode. A

[GIT PULL] sound fixes for 3.8-rc1

2012-12-20 Thread Takashi Iwai
Linus, please pull sound fixes for v3.8-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.8 The topmost commit is cb99864d40e46dea9c2aa3eaa97517b776f91024 Sound fixes for 3.8-rc1 This update

Re: 3.7.X vs 3.6.11 HP Folio 9470m brightness regression?

2012-12-20 Thread Fabio Coatti
In data mercoledì 19 dicembre 2012 17:10:29, hai scritto: - Original Message - From: Fabio Coatti fabio.coa...@gmail.com To: linux-kernel@vger.kernel.org Sent: Wednesday, 19 December, 2012 5:01:30 PM Subject: 3.7.X vs 3.6.11 HP Folio 9470m brightness regression? Hi, I'm

Re: [PATCH v2] RTC: MAX77686: Add Maxim 77686 driver

2012-12-20 Thread devendra.aaru
Hello, Sorry for commenting on your V2, i would have done it for the first one :( but these are all small ones, if you would like me to do it after this merged, i will be glad to do so. + +static int max77686_rtc_probe(struct platform_device *pdev) +{ + struct max77686_dev *max77686 =

Re: Inconsistency in clk framework

2012-12-20 Thread Russell King - ARM Linux
On Thu, Dec 20, 2012 at 05:13:37PM +1300, Tony Prisk wrote: On Wed, 2012-12-19 at 19:08 +, Russell King - ARM Linux wrote: On Thu, Dec 20, 2012 at 08:00:49AM +1300, Tony Prisk wrote: On Thu, 2012-12-20 at 06:34 +1300, Tony Prisk wrote: On Wed, 2012-12-19 at 09:26 +, Russell King

[PATCH v3] gpio: twl4030: Cache the direction and output states in private data

2012-12-20 Thread Peter Ujfalusi
Use more coherent locking in the driver. Use bitfield to store the GPIO direction and if the pin is configured as output store the status also in a bitfiled. In this way we can just look at these bitfields when we need information about the pin status and only reach out to the chip when it is

[PATCH 0/9] ARM: Initial support for Tegra 114 SoC.

2012-12-20 Thread Hiroshi Doyu
Hi, This patchset adds initial support for the NVIDIA's new Tegra 114 SoC (T114) based on the ARM Cortex-A15 MP. It has the minimal support to allow the kernel to boot up into shell console. This can be used as a basis for adding other device drivers for this SoC. Currently there are 2 evaluation

[PATCH 1/9] ARM: tegra: fuse: Add chipid TEGRA114 0x35

2012-12-20 Thread Hiroshi Doyu
Add tegra_chip_id TEGRA114 0x35 Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/fuse.h |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-tegra/fuse.h b/arch/arm/mach-tegra/fuse.h index ff1383d..da78434 100644 --- a/arch/arm/mach-tegra/fuse.h +++

[PATCH 4/9] clocksource: tegra: Reorganize funcs by clock functionarities

2012-12-20 Thread Hiroshi Doyu
Relocate functions by clock functionarities{RTC, TMR}. Also created some new functions as helper. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- drivers/clocksource/tegra20_timer.c | 160 +++ 1 file changed, 86 insertions(+), 74 deletions(-) diff --git

[PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Hiroshi Doyu
Add platform enabler for ARM arch_timer(TSC). TSC is more fine grained timer than TMR0. If it's available, it will be used for clock source and sched_clock. Otherwise, TMR0 is used. In any case TMR0 is necessary for clock event. Signed-off-by: Hiroshi Doyu hd...@nvidia.com ---

[PATCH 6/9] ARM: dt: tegra114: Add new SoC base, Tegra 114 SoC

2012-12-20 Thread Hiroshi Doyu
Initial support for Tegra 114 SoC. This is expected to be included in the board DTS files, Tegra 114 SoC based evaluation board family. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/tegra114.dtsi | 89 +++ 1 file changed, 89

Re: [PATCH v2 3/3] gpio: twl4030: TODO comment to remove the PWMA/B (LEDA/B) handling

2012-12-20 Thread Grant Likely
On Thu, Dec 20, 2012 at 9:23 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: On 12/19/2012 06:07 PM, Grant Likely wrote: On Thu, 6 Dec 2012 11:52:07 +0100, Peter Ujfalusi peter.ujfal...@ti.com wrote: This GPIO driver should not configure anything else then GPIOs. Signed-off-by: Peter

[PATCH 3/9] ARM: tegra: # of CPU cores detection w/ w/o HAVE_ARM_SCU

2012-12-20 Thread Hiroshi Doyu
The method to detect the number of CPU cores on Cortex-A9 MPCore and Cortex-A15 MPCore is different. On Cortex-A9 MPCore we can get this information from the Snoop Control Unit(SCU). On Cortex-A15 MPCore we have to read it from the system coprocessor(CP15), because the SCU on Cortex-A15 MPCore

[PATCH 8/9] ARM: dt: tegra114: Add new board, Pluto

2012-12-20 Thread Hiroshi Doyu
Add a new evaluation board, Pluto for Tegra 114 family. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/Makefile |3 ++- arch/arm/boot/dts/tegra114-pluto.dts | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644

[PATCH 7/9] ARM: dt: tegra114: Add new board, Dalmore

2012-12-20 Thread Hiroshi Doyu
Add a new evaluation board, Dalmore for Tegra 114 family. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/Makefile |3 ++- arch/arm/boot/dts/tegra114-dalmore.dts | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644

[PATCH 2/9] HACK: ARM: tegra: Use CLK_IGNORE_UNUSED for Tegra 114 SoC

2012-12-20 Thread Hiroshi Doyu
Use CLK_IGNORE_UNUSED for the Tegra 114 SoC to ensure clk_disable_unused() is not called. Otherwise the system will die, because the usecount of the clocks is incorrect. This patch will be reverted once the Tegra 114 clocks are implemented. Signed-off-by: Hiroshi Doyu hd...@nvidia.com ---

[PATCH 9/9] ARM: tegra: Add initial support for Tegra 114 SoC.

2012-12-20 Thread Hiroshi Doyu
Add new Tegra 114 SoC support. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/Kconfig | 10 +++ arch/arm/mach-tegra/Makefile|1 + arch/arm/mach-tegra/board-dt-tegra114.c | 48 +++ arch/arm/mach-tegra/common.c

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

2012-12-20 Thread Vipul Pandya
On 20-12-2012 05:52, Roland Dreier wrote: On Wed, Dec 19, 2012 at 2:44 PM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi all, After merging the infiniband tree, today's linux-next build (x86_64_ allmodconfig) failed like this: In file included from

Re: [PATCH] mfd: db8500-prcmu: fix irqdomain usage

2012-12-20 Thread Lee Jones
On Thu, 20 Dec 2012, Linus Walleij wrote: On Thu, Dec 20, 2012 at 8:50 AM, Lee Jones lee.jo...@linaro.org wrote: On Thu, 20 Dec 2012, Grant Likely wrote: This looks wrong. It probably works at the moment, but calling irq_create_mapping when trying to process an IRQ is backwards. There

Re: [PATCH/TRIVIAL] blackfin: time-ts: Remove duplicate assignment

2012-12-20 Thread Bob Liu
On Wed, Dec 19, 2012 at 7:01 AM, Stephen Boyd sb...@codeaurora.org wrote: It seems that this assignment is done twice in a row. Remove the duplicate assignment. That's right. Will be applied, thanks. Signed-off-by: Stephen Boyd sb...@codeaurora.org Cc: Steven Miao real...@gmail.com Cc:

Re: [PATCH 3/9] ARM: tegra: # of CPU cores detection w/ w/o HAVE_ARM_SCU

2012-12-20 Thread Felipe Balbi
Hi, On Thu, Dec 20, 2012 at 11:44:01AM +0200, Hiroshi Doyu wrote: The method to detect the number of CPU cores on Cortex-A9 MPCore and Cortex-A15 MPCore is different. On Cortex-A9 MPCore we can get this information from the Snoop Control Unit(SCU). On Cortex-A15 MPCore we have to read it from

[PATCH 4/5] perf tools: Change some interfaces of evlist evsel to support thread's creation and destroy with thread_map's bitmap.

2012-12-20 Thread chenggang
Based on the [PATCH 3/5], this patch changed the related interfaces in evlist evsel to support the operations to thread_map's bitmap. Then, we can use these interfaces to insert a new forked thread into or remove a exited trhead from thread_map and other related data structures. Cc: David Ahern

[PATCH] mm: compaction: count compaction events only if compaction is enabled

2012-12-20 Thread Jiri Kosina
On configs which have CONFIG_CMA but no CONFIG_COMPACTION, isolate_migratepages_range() and isolate_freepages_block() must not account for COMPACTFREE_SCANNED and COMPACTISOLATED events (those constants are even undefined in such case, causing a build error). Signed-off-by: Jiri Kosina

Re: [PATCH v2] linux/kernel.h: Fix DIV_ROUND_CLOSEST with unsigned divisors

2012-12-20 Thread Jean Delvare
Hi Guenter, On Wed, 19 Dec 2012 14:41:22 -0800, Guenter Roeck wrote: On Wed, Dec 19, 2012 at 01:47:21PM -0800, Andrew Morton wrote: The changelog didn't describe the end-user visible effects of the bug. Please always include this information. Because... One observed effect is that the

Re: [PATCH v2] mm: limit mmu_gather batching to fix soft lockups on !CONFIG_PREEMPT

2012-12-20 Thread Mel Gorman
On Wed, Dec 19, 2012 at 01:13:16PM -0800, Andrew Morton wrote: On Wed, 19 Dec 2012 16:04:37 +0100 Michal Hocko mho...@suse.cz wrote: Since e303297 (mm: extended batches for generic mmu_gather) we are batching pages to be freed until either tlb_next_batch cannot allocate a new batch or

Re: [PATCH 2/3] perf x86: Add precise sysfs attribute

2012-12-20 Thread Jiri Olsa
On Wed, Dec 19, 2012 at 09:34:30PM -0800, Greg KH wrote: On Wed, Dec 19, 2012 at 04:07:21PM +0100, Jiri Olsa wrote: Adding sysfs precise attribute for cpu device (/sys/devices/cpu) to show the maximum value for perf event precise attribute. This will be initialy used for automated

Re: [RFC Patch v1 45/55] ARC: unaligned access emulation

2012-12-20 Thread Vineet Gupta
On Thursday 20 December 2012 12:29 PM, Vineet Gupta wrote: On Monday 12 November 2012 07:30 PM, Arnd Bergmann wrote: On Monday 12 November 2012, vineet.gup...@synopsys.com wrote: + +config ARC_MISALIGN_ACCESS + bool Emulate unaligned memory access (userspace only) + default N +

[PATCH] xen-blkback: do not leak mode property

2012-12-20 Thread Jan Beulich
be-mode is obtained from xenbus_read(), which does a kmalloc() for the message body. The short string is never released, so do it along with freeing be itself, and make sure the string isn't kept when backend_changed() doesn't complete successfully (which made it desirable to slightly re-structure

Re: [PATCH v2] linux/kernel.h: Fix DIV_ROUND_CLOSEST with unsigned divisors

2012-12-20 Thread Juergen Beisert
Hi Jean, Jean Delvare wrote: On Wed, 19 Dec 2012 14:41:22 -0800, Guenter Roeck wrote: On Wed, Dec 19, 2012 at 01:47:21PM -0800, Andrew Morton wrote: The changelog didn't describe the end-user visible effects of the bug. Please always include this information. Because... One observed

Re: [RFC Patch v1 45/55] ARC: unaligned access emulation

2012-12-20 Thread Geert Uytterhoeven
On Thu, Dec 20, 2012 at 11:30 AM, Vineet Gupta vineet.gup...@synopsys.com wrote: Sorry for a naive patch submitter question (yes I've already read SubmittingPatches and googled much already). A lot of times, I see the Cc: ... lines, just below the Signed-off-by: lines in the patch - e.g.

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-20 Thread Zhang, Lin-Bao (Linux Kernel RD)
Hi Yinghai, Maybe two days ago, mis-understand the usage of MSR. Today, I carefully researched Intel? 64 Architecture x2APIC Specification which is open for all people. I think current core argument is our BIOS did following judgement , but Linux kernel did not(Linux seems just judge

Re: [PATCH] compaction: fix build error in CMA !COMPACTION

2012-12-20 Thread Mel Gorman
On Thu, Dec 20, 2012 at 02:25:30PM +0900, Minchan Kim wrote: isolate_freepages_block and isolate_migratepages_range is used for CMA as well as compaction so it breaks build for CONFIG_CMA !CONFIG_COMPACTION. This patch fixes it. Cc: Mel Gorman mgor...@suse.de Cc: Marek Szyprowski

Re: [PATCH] mm: compaction: count compaction events only if compaction is enabled

2012-12-20 Thread Mel Gorman
On Thu, Dec 20, 2012 at 11:21:34AM +0100, Jiri Kosina wrote: On configs which have CONFIG_CMA but no CONFIG_COMPACTION, isolate_migratepages_range() and isolate_freepages_block() must not account for COMPACTFREE_SCANNED and COMPACTISOLATED events (those constants are even undefined in such

Re: [PATCH v2] linux/kernel.h: Fix DIV_ROUND_CLOSEST with unsigned divisors

2012-12-20 Thread Jean Delvare
Hi Juergen, On Thu, 20 Dec 2012 11:30:38 +0100, Juergen Beisert wrote: Hi Jean, Jean Delvare wrote: On Wed, 19 Dec 2012 14:41:22 -0800, Guenter Roeck wrote: One observed effect is that the s2c_hwmon driver reports a value of 4198403 instead of 0 if the ADC reads 0. Other impact

Re: [PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Marc Zyngier
On 20/12/12 09:44, Hiroshi Doyu wrote: Add platform enabler for ARM arch_timer(TSC). TSC is more fine grained timer than TMR0. If it's available, it will be used for clock source and sched_clock. Otherwise, TMR0 is used. In any case TMR0 is necessary for clock event. Signed-off-by: Hiroshi

Re: resend--[PATCH] improve read ahead in kernel

2012-12-20 Thread Roman Gushchin
Hi Simon, 20.12.2012, 10:21, Simon Jeons simon.je...@gmail.com: On Sun, 2012-12-16 at 02:15 +, Eric Wong wrote:  xtu4 xiaobing...@intel.com wrote:  resend it, due to format error  Subject: [PATCH] when system in low memory scenario, imaging there is a mp3   play, ora video play, we

Re: [PATCH 05/19] shrinker: convert superblock shrinkers to new API

2012-12-20 Thread Glauber Costa
On 11/28/2012 03:14 AM, Dave Chinner wrote: +static long super_cache_count(struct shrinker *shrink, struct shrink_control *sc) +{ + struct super_block *sb; + longtotal_objects = 0; + + sb = container_of(shrink, struct super_block, s_shrink); + + if

[GIT PULL] UAPI disintegration for H8/300 arch

2012-12-20 Thread David Howells
Hi Linus, Could you pull my UAPI disintegration for the H8/300 arch branch please? I haven't been able to get hold of the maintainer to push it through their tree. Thanks, David --- The following changes since commit 752451f01c4567b506bf4343082682dbb8fb30dd: Merge branch

[GIT PULL] UAPI disintegration for the M32R arch

2012-12-20 Thread David Howells
Hi Linus, Could you pull my UAPI disintegration for the M32R arch branch please? I haven't been able to get hold of the maintainer to push it through their tree. Thanks, David --- The following changes since commit 752451f01c4567b506bf4343082682dbb8fb30dd: Merge branch

Re: [PATCH] mm: do not sleep in balance_pgdat if there's no i/o congestion

2012-12-20 Thread Mel Gorman
On Thu, Dec 20, 2012 at 12:17:07AM +0100, Zlatko Calusic wrote: On a 4GB RAM machine, where Normal zone is much smaller than DMA32 zone, the Normal zone gets fragmented in time. This requires relatively more pressure in balance_pgdat to get the zone above the required watermark. Unfortunately,

Re: [PATCH 3/3] perf tool: Add non arch events for SandyBridge microarchitecture

2012-12-20 Thread Jiri Olsa
On Wed, Dec 19, 2012 at 01:55:43PM -0800, Andi Kleen wrote: Jiri Olsa jo...@redhat.com writes: Adding non architectural event aliases for Sandy Bridge microarchitecture. SandyBridge is not necessarily unique. There are flavours of sandy bridge with slightly different events (e.g. in

[PATCH] sysctl: convert arch specific unaligned access regulators to generic ones

2012-12-20 Thread Vineet.Gupta1
From: Vineet Gupta vgu...@synopsys.com * parisc: /proc/sys/kernel/unaligned-trap = SYSCTL_ARCH_UNALIGN_ALLOW * ia64: /proc/sys/kernel/ignore-unaligned-usertrap = SYSCTL_ARCH_UNALIGN_NO_WARN This allows other architectures, specifically ARC to reuse these

Re: [PATCH] sched: numa: ksm: fix oops in task_numa_placment()

2012-12-20 Thread Mel Gorman
On Wed, Dec 19, 2012 at 05:42:16PM -0800, Hugh Dickins wrote: task_numa_placement() oopsed on NULL p-mm when task_numa_fault() got called in the handling of break_ksm() for ksmd. That might be a peculiar case, which perhaps KSM could takes steps to avoid? but it's more robust if

[GIT PULL] UAPI disintegration for the Score arch

2012-12-20 Thread David Howells
/kernel/git/davem/sparc (2012-12-19 20:31:02 -0800) are available in the git repository at: git://git.infradead.org/users/dhowells/linux-headers.git tags/disintegrate-score-20121220 for you to fetch changes up to d66d8c7187989cedae43cb349626a7f304c60ec6: UAPI: (Scripted) Disintegrate arch

Re: [PATCH 3/9] ARM: tegra: # of CPU cores detection w/ w/o HAVE_ARM_SCU

2012-12-20 Thread Marc Zyngier
On 20/12/12 09:44, Hiroshi Doyu wrote: The method to detect the number of CPU cores on Cortex-A9 MPCore and Cortex-A15 MPCore is different. On Cortex-A9 MPCore we can get this information from the Snoop Control Unit(SCU). On Cortex-A15 MPCore we have to read it from the system

Re: [PATCH] ksm: make rmap walks more scalable

2012-12-20 Thread Mel Gorman
On Wed, Dec 19, 2012 at 05:44:29PM -0800, Hugh Dickins wrote: The rmap walks in ksm.c are like those in rmap.c: they can safely be done with anon_vma_lock_read(). Signed-off-by: Hugh Dickins hu...@google.com Acked-by: Mel Gorman mgor...@suse.de I'm assuming these are going to go through

Re: [PATCH 2/3] perf x86: Add precise sysfs attribute

2012-12-20 Thread Jiri Olsa
On Thu, Dec 20, 2012 at 05:39:25PM +0900, Namhyung Kim wrote: On Wed, Dec 19, 2012 at 04:07:21PM +0100, Jiri Olsa wrote: Adding sysfs precise attribute for cpu device (/sys/devices/cpu) to show the maximum value for perf event precise attribute. This will be initialy used for automated

Re: [PATCH 09/19] list_lru: per-node list infrastructure

2012-12-20 Thread Glauber Costa
On 11/28/2012 03:14 AM, Dave Chinner wrote: From: Dave Chinner dchin...@redhat.com Now that we have an LRU list API, we can start to enhance the implementation. This splits the single LRU list into per-node lists and locks to enhance scalability. Items are placed on lists according to the

Re: [PATCH 3/9] ARM: tegra: # of CPU cores detection w/ w/o HAVE_ARM_SCU

2012-12-20 Thread Hiroshi Doyu
Felipe Balbi ba...@ti.com wrote @ Thu, 20 Dec 2012 11:06:25 +0100: ... @@ -149,7 +154,26 @@ done: */ static void __init tegra_smp_init_cpus(void) { - unsigned int i, ncores = scu_get_core_count(scu_base); + unsigned int i, cpu_id, ncores; + u32 l2ctlr; + phys_addr_t pa;

Re: [PATCH 3/9] ARM: tegra: # of CPU cores detection w/ w/o HAVE_ARM_SCU

2012-12-20 Thread Hiroshi Doyu
Marc Zyngier marc.zyng...@arm.com wrote @ Thu, 20 Dec 2012 12:17:08 +0100: On 20/12/12 09:44, Hiroshi Doyu wrote: The method to detect the number of CPU cores on Cortex-A9 MPCore and Cortex-A15 MPCore is different. On Cortex-A9 MPCore we can get this information from the Snoop Control

Re: [PATCH 6/9] ARM: dt: tegra114: Add new SoC base, Tegra 114 SoC

2012-12-20 Thread Marc Zyngier
On 20/12/12 09:44, Hiroshi Doyu wrote: Initial support for Tegra 114 SoC. This is expected to be included in the board DTS files, Tegra 114 SoC based evaluation board family. Signed-off-by: Hiroshi Doyu hd...@nvidia.com You definitely need to add some cpu nodes here, or get someone to merge

Re: [PATCH 3/9] ARM: tegra: # of CPU cores detection w/ w/o HAVE_ARM_SCU

2012-12-20 Thread Marc Zyngier
On 20/12/12 11:26, Hiroshi Doyu wrote: Marc Zyngier marc.zyng...@arm.com wrote @ Thu, 20 Dec 2012 12:17:08 +0100: On 20/12/12 09:44, Hiroshi Doyu wrote: The method to detect the number of CPU cores on Cortex-A9 MPCore and Cortex-A15 MPCore is different. On Cortex-A9 MPCore we can get this

[PATCH] x86, efi: Allow slash in file path of initrd

2012-12-20 Thread Lee, Chun-Yi
When initrd file didn't put at the same place with stub kernel, we need give the file path of initrd, but need use backslash to separate directory and file. It's not friendly to unix/linux user, and not so intuitive for bootloader forward paramters to efi stub kernel by chainloading. This patch

Re: [PATCH] n_gsm.c: add tx_lock in gsm_send

2012-12-20 Thread Alan Cox
On Thu, 20 Dec 2012 08:38:40 +0800 Xiao Jin jin.x...@intel.com wrote: From: xiaojin jin.x...@intel.com Date: Wed, 19 Dec 2012 11:53:43 +0800 Subject: [PATCH] n_gsm.c: add tx_lock in gsm_send All the call to gsm-output should be in the tx_lock, that could avoid potential race from MUX

Re: [PATCH] time: create __getnstimeofday for WARNless calls

2012-12-20 Thread Thomas Gleixner
On Mon, 17 Dec 2012, John Stultz wrote: From: Kees Cook keesc...@chromium.org Hey Thomas, Wanted to see if maybe there was still time for this for 3.8? thanks -john The pstore RAM backend can get called during resume, and must be defensive against a suspended time source. Expose

Re: [RFC, PATCH 00/19] Numa aware LRU lists and shrinkers

2012-12-20 Thread Glauber Costa
On 11/28/2012 03:14 AM, Dave Chinner wrote: Hi Glauber, Here's a working version of my patchset for generic LRU lists and NUMA-aware shrinkers. There are several parts to this patch set. The NUMA aware shrinkers are based on having a generic node-based LRU list implementation, and there

Re: [PATCH v2] linux/kernel.h: Fix DIV_ROUND_CLOSEST with unsigned divisors

2012-12-20 Thread Jean Delvare
On Wed, 19 Dec 2012 15:01:44 -0800, Guenter Roeck wrote: On Wed, Dec 19, 2012 at 11:21:15PM +0100, Jean Delvare wrote: Hi Guenter, On Wed, 19 Dec 2012 06:40:15 -0800, Guenter Roeck wrote: Commit 263a523 fixes a warning seen with W=1 due to change in DIV_ROUND_CLOSEST. Unfortunately,

Re: [PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Hiroshi Doyu
Marc Zyngier marc.zyng...@arm.com wrote @ Thu, 20 Dec 2012 12:01:15 +0100: On 20/12/12 09:44, Hiroshi Doyu wrote: Add platform enabler for ARM arch_timer(TSC). TSC is more fine grained timer than TMR0. If it's available, it will be used for clock source and sched_clock. Otherwise, TMR0 is

Re: [PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Marc Zyngier
On 20/12/12 11:57, Hiroshi Doyu wrote: Marc Zyngier marc.zyng...@arm.com wrote @ Thu, 20 Dec 2012 12:01:15 +0100: On 20/12/12 09:44, Hiroshi Doyu wrote: Add platform enabler for ARM arch_timer(TSC). TSC is more fine grained timer than TMR0. If it's available, it will be used for clock source

RE: [PATCH] n_gsm.c: add tx_lock in gsm_send

2012-12-20 Thread Xiao, Jin
Alan, Thanks. But the comment makes me confused. As we see, gsm-output is called by gsm_data_kick too, and it's in the tx_lock... Best regards, Jin Xiao From: xiaojin jin.x...@intel.com Date: Wed, 19 Dec 2012 11:53:43 +0800 Subject: [PATCH] n_gsm.c: add tx_lock in gsm_send All the call

Re: [PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Peter De Schrijver
+ + /* CNTFRQ */ + asm(mcr p15, 0, %0, c14, c0, 0\n : : r (freq)); + asm(mrc p15, 0, %0, c14, c0, 0\n : =r (val)); + BUG_ON(val != freq); This is scary. CNTFRQ is only writable from secure mode, and will explode in any other situation. Also, writing to CNTFRQ doesn't change the

[PATCH] libata: Shut up annoying native_sectors warning

2012-12-20 Thread Borislav Petkov
I'm getting this drivers/ata/libata-core.c: In function ‘ata_hpa_resize’: drivers/ata/libata-core.c:1397:3: warning: ‘native_sectors’ may be used uninitialized in this function [-Wmaybe-uninitialized] for a couple of kernel releases now with gcc (Debian 4.7.2-4) 4.7.2. And the warning is bogus

[PATCH 0/5] fuse: close file synchronously

2012-12-20 Thread Maxim Patlasov
Hi, There is a long-standing demand for syncronous behaviour of fuse_release: http://sourceforge.net/mailarchive/message.php?msg_id=19343889 http://sourceforge.net/mailarchive/message.php?msg_id=29814693 A few months ago Avati and me explained why such a feature would be useful:

[PATCH 1/5] fuse: add close_wait flag to fuse_conn

2012-12-20 Thread Maxim Patlasov
The feature will be governed by fc-close_wait. Userspace can enable it in the same way as auto_inval_data or any other kernel fuse capability. Signed-off-by: Maxim Patlasov mpatla...@parallels.com --- fs/fuse/fuse_i.h |3 +++ fs/fuse/inode.c |5 -

[PATCH 2/5] fuse: cosmetic rework of fuse_send_readpages

2012-12-20 Thread Maxim Patlasov
The patch change arguments of fuse_send_readpages to give it access to inode (will be used in the next patch of patch-set). The change is cosmetic, no logic changed. Signed-off-by: Maxim Patlasov mpatla...@parallels.com --- fs/fuse/file.c | 20 +++- 1 files changed, 11

[PATCH 3/5] fuse: wait for end of IO on release

2012-12-20 Thread Maxim Patlasov
There are two types of I/O activity that can be in progress at the time of fuse_release() execution: asynchronous read-ahead and write-back. The patch ensures that they are completed before fuse_release_common sends FUSE_RELEASE to userspace. So far as fuse_release() waits for end of async I/O,

  1   2   3   4   5   6   7   8   9   10   >