[PATCH resend] DMA: add cpu_relax() to busy-loop in dma_sync_wait()

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH] DMA: add cpu_relax() to busy-loop in dma_sync_wait() Removal of the busy-loop from dma_sync_wait() is not a trivial task so just add cpu_relax() to the loop for now. Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej

[PATCH resend] DMA: remove unused support for MEMSET operations

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH] DMA: remove unused support for MEMSET operations There have never been any real users of MEMSET operations since they have been introduced in January 2007 (commit 7405f74badf46b5d023c5d2b670b4471525f6c91 "dmaengine: refactor dmaengine around

[PATCH resend] async_tx: fix checking of dma_wait_for_async_tx() return value

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH] async_tx: fix checking of dma_wait_for_async_tx() return value dma_wait_for_async_tx() can also return DMA_PAUSED (which should be considered as error). Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej Zolnierkiewicz

[PATCH resend 2/2] DMA: remove dma_async_memcpy_complete() macro

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH 2/2] DMA: remove dma_async_memcpy_complete() macro Just use dma_async_is_tx_complete() directly. Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park ---

[PATCH resend 1/2] DMA: remove dma_async_memcpy_issue_pending() macro

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH 1/2] DMA: remove dma_async_memcpy_issue_pending() macro Just use dma_async_issue_pending() directly. Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park ---

Re: Wrong length / buffer overlow by the syslog syscall

2012-12-05 Thread Sylvain Munaut
Hi, > It happens on several machines and this only seem to happen if there > was a wrap around in the log buffer (it's a first observation on a > limited number of sample so it might be a coincidence) I think the culprit is print_time and has nothing to do with wrap around, just the uptime.

[PATCH] scatterlist: add a warning if sg_virt() is used on highmem pages

2012-12-05 Thread Sebastian Andrzej Siewior
sg_virt() on highmem pages won't work. This WARN_ON() should catch some that still try. Signed-off-by: Sebastian Andrzej Siewior --- include/linux/scatterlist.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index

Re: [PATCH v3 3/4] sta2x11_vip: convert to videobuf2 and control framework

2012-12-05 Thread Mauro Carvalho Chehab
Hi Federico, Em 04-12-2012 23:12, Federico Vaga escreveu: On Tuesday 04 December 2012 14:15:15 Mauro Carvalho Chehab wrote: Em 24-09-2012 07:58, Federico Vaga escreveu: This patch re-write the driver and use the videobuf2 interface instead of the old videobuf. Moreover, it uses also the

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

2012-12-05 Thread Terje Bergström
On 05.12.2012 13:13, Thierry Reding wrote: > What I propose is to move the client registration code that is currently > in drivers/gpu/drm/tegra/host1x.c to the host1x driver, which may or may > not end up in drivers/gpu/host1x. Ok. > >> host1x hardware access must be encapsulated in host1x

Re: [PATCH v5 5/8] fat: restructure export_operations

2012-12-05 Thread Namjae Jeon
2012/12/5, OGAWA Hirofumi : > Namjae Jeon writes: > Let me think, if ‘subtree’ checking is enabled then we should check the length condition over here also? Please share if there are any other comments also. >>> >>> I'm not sure what did you mean. Where is "subtree" check you are

[PATCH RFC v2] media: v4l2-ctrl: Add gain controls

2012-12-05 Thread Prabhakar Lad
From: Lad, Prabhakar add support for per color component digital/analog gain controls and also their corresponding offset. Signed-off-by: Lad, Prabhakar Cc: Sakari Ailus Cc: Laurent Pinchart Cc: Kyungmin Park Cc: Guennadi Liakhovetski Cc: Sylwester Nawrocki Cc: Hans Verkuil Cc: Hans de

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-05 Thread Namjae Jeon
2012/12/5, OGAWA Hirofumi : > Namjae Jeon writes: > > This became much better than before. However, we have to consolidate > the > code with fat_search_long() finally. > > E.g. this version is having the issue already fixed. If there is > corruption in fat cluster-chain,

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

2012-12-05 Thread Lucas Stach
Am Mittwoch, den 05.12.2012, 13:47 +0200 schrieb Terje Bergström: [...] > > > The problem that this solves is that the DRM driver needs to be bound to > > a specific platform device. None of the DRM subdevices are suitable > > because they are only part of the whole DRM device. I think that

Re: [PATCH 019/270] jbd: Fix assertion failure in commit code due to lacking transaction credits

2012-12-05 Thread Jan Kara
On Mon 26-11-12 14:55:09, Herton Ronaldo Krzesinski wrote: > 3.5.7u1 -stable review patch. If anyone has any objections, please let me > know. Note that this fix causes another problem which is fixed by 25389bb207987b5774182f763b9fb65ff08761c8 upstream.

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

2012-12-05 Thread Daniel Vetter
On Wed, Dec 5, 2012 at 12:47 PM, Terje Bergström wrote: > You're right in that binding to a sub-device is not a nice way. DRM > framework just needs a "struct device" to bind to. exynos seems to solve > this by introducing a virtual device and bind to that. I'm not sure if > this is the best way,

Re: [PATCH v3 1/3] mtd: nand: omap2: Update nerrors using ecc.strength

2012-12-05 Thread Sekhar Nori
Hi Avinash, On 11/29/2012 5:16 PM, Philip, Avinash wrote: > Update number of errors using nand ecc strength. > Also add macro definitions BCH8_ERROR_MAX & BCH4_ERROR_MAX Can you please describe why the original method of setting nerrors was incorrect? Was it causing any issues in any particular

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

2012-12-05 Thread Thierry Reding
On Wed, Dec 05, 2012 at 01:47:38PM +0200, Terje Bergström wrote: > On 05.12.2012 13:13, Thierry Reding wrote: [...] > > Oh well, at the time nobody from NVIDIA was involved so I wrote that > > code in preparation for proper host1x support that I thought I would > > have to add myself at some

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

2012-12-05 Thread Daniel Vetter
On Wed, Dec 5, 2012 at 1:03 PM, Daniel Vetter wrote: > On Wed, Dec 5, 2012 at 12:47 PM, Terje Bergström > wrote: >> You're right in that binding to a sub-device is not a nice way. DRM >> framework just needs a "struct device" to bind to. exynos seems to solve >> this by introducing a virtual

Re: [RFC PATCH v3 0/3] acpi: Introduce prepare_remove device operation

2012-12-05 Thread Hanjun Guo
On 2012/12/5 7:23, Toshi Kani wrote: > On Tue, 2012-12-04 at 17:16 +0800, Hanjun Guo wrote: >> On 2012/12/4 8:10, Toshi Kani wrote: >>> On Mon, 2012-12-03 at 12:25 +0800, Hanjun Guo wrote: On 2012/11/30 6:27, Toshi Kani wrote: > On Thu, 2012-11-29 at 12:48 +0800, Hanjun Guo wrote: >>

Re: [PATCH v5 5/8] fat: restructure export_operations

2012-12-05 Thread OGAWA Hirofumi
Namjae Jeon writes: >> I can understand what is doing. I'm asking why there is difference. >> >> 1) generic_fh_to_dentry() allows (*_PARENT && fh_len == 2). >> 2) fat_fh_to_dentry_nostale() doesn't allows (*_PARENT && fh_len == 3). >> >> Why does logic has difference? > > When we consider the

Re: [PATCH 4/4] ext3: Warn if mounting rw on a disk requiring stable page writes

2012-12-05 Thread Jan Kara
On Mon 26-11-12 18:17:40, Darrick J. Wong wrote: > On Thu, Nov 22, 2012 at 10:12:40AM +0100, Jan Kara wrote: > > On Wed 21-11-12 17:47:55, Darrick J. Wong wrote: > > > On Thu, Nov 22, 2012 at 08:47:13AM +1100, NeilBrown wrote: > > > > On Wed, 21 Nov 2012 22:33:33 +0100 Jan Kara wrote: > > > > >

Re: [PATCH RFC v2] media: v4l2-ctrl: Add gain controls

2012-12-05 Thread Hans Verkuil
(resend without HTML formatting) On Wed 5 December 2012 12:49:29 Prabhakar Lad wrote: > From: Lad, Prabhakar > > add support for per color component digital/analog gain controls > and also their corresponding offset. Some obvious questions below... > > Signed-off-by: Lad, Prabhakar > Cc:

Re: [PATCH v3 3/4] sta2x11_vip: convert to videobuf2 and control framework

2012-12-05 Thread Federico Vaga
Thank you Mauro for the good explanation > Yeah, there are many changes there that justifies adding you at its > authorship, and that's ok. Also, anyone saying the size of your patch > will recognize your and ST efforts to improve the driver. > > However, as some parts of the code were

[PATCH] perf test: Add a test case for hists__{match,link}

2012-12-05 Thread Namhyung Kim
As they are used from diff and event group report, add a test case to verify their behaviors. In this test I made a fake machine and two evsel. Each evsel got 10 samples (so hist entries) - 5 are common and the rests are not. So after hists__match() both of them will have 5 entries with pair

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

2012-12-05 Thread Thierry Reding
On Wed, Dec 05, 2012 at 01:03:14PM +0100, Daniel Vetter wrote: > On Wed, Dec 5, 2012 at 12:47 PM, Terje Bergström > wrote: > > You're right in that binding to a sub-device is not a nice way. DRM > > framework just needs a "struct device" to bind to. exynos seems to solve > > this by introducing

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

2012-12-05 Thread Daniel Vetter
On Wed, Dec 5, 2012 at 1:22 PM, Thierry Reding wrote: > Maybe something more elaborate could help, though. Suppose we add > functionality to DRM to instantiate a DRM device. We could call such a > function from the host1x driver to add a device which the tegra-drm > driver could bind to. This

Re: [PATCH 2/2] New driver: Xillybus generic interface for FPGA (programmable logic)

2012-12-05 Thread Pavel Machek
Hi! > >Agreed. If I understand you correctly though, your approach is specific > >to a particular hardware implementation (Zynq) on the user interface layer, > >which I think is exactly what we should avoid. Obviously, there is > >always a driver involved that is specific to the IP block you load

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread David Howells
Takashi Iwai wrote: > From: Takashi Iwai > Subject: [PATCH v2] MODSIGN: Avoid using .incbin in C source > > Using the asm .incbin statement in C sources breaks any gcc wrapper which > assumes that preprocessed C source is self-contained. Use a separate .S > file to include the siging key and

Re: [RFC PATCH 01/10] CPU hotplug: Introduce "stable" cpu online mask, for atomic hotplug readers

2012-12-05 Thread Srivatsa S. Bhat
On 12/05/2012 03:40 AM, Andrew Morton wrote: > On Tue, 04 Dec 2012 14:23:41 +0530 > "Srivatsa S. Bhat" wrote: > >> From: Michael Wang >> >> There are places where preempt_disable() is used to prevent any CPU from >> going offline during the critical section. Let us call them as "atomic >>

Re: [RFC PATCH 02/10] smp, cpu hotplug: Fix smp_call_function_*() to prevent CPU offline properly

2012-12-05 Thread Srivatsa S. Bhat
On 12/05/2012 03:47 AM, Andrew Morton wrote: > On Tue, 04 Dec 2012 14:24:28 +0530 > "Srivatsa S. Bhat" wrote: > >> From: Michael Wang >> >> With stop_machine() gone from the CPU offline path, we can't depend on >> preempt_disable() to prevent CPUs from going offline from under us. >> >> Use the

Re: [PATCH] ACPI / PM: Fix header of acpi_dev_pm_detach() in acpi.h

2012-12-05 Thread Mika Westerberg
On Wed, Dec 05, 2012 at 12:08:12PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The header of acpi_dev_pm_detach() in include/linux/acpi.h has an > incorrect return type, which should be void. Fix that. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Mika Westerberg >

RE: [PATCH v3 1/3] mtd: nand: omap2: Update nerrors using ecc.strength

2012-12-05 Thread Philip, Avinash
On Wed, Dec 05, 2012 at 17:33:37, Nori, Sekhar wrote: > Hi Avinash, > > On 11/29/2012 5:16 PM, Philip, Avinash wrote: > > Update number of errors using nand ecc strength. > > Also add macro definitions BCH8_ERROR_MAX & BCH4_ERROR_MAX > > Can you please describe why the original method of setting

Re: [RFC PATCH 02/10] smp, cpu hotplug: Fix smp_call_function_*() to prevent CPU offline properly

2012-12-05 Thread Srivatsa S. Bhat
On 12/05/2012 05:09 AM, Rusty Russell wrote: > "Srivatsa S. Bhat" writes: >> From: Michael Wang >> >> With stop_machine() gone from the CPU offline path, we can't depend on >> preempt_disable() to prevent CPUs from going offline from under us. > > Minor gripe: I'd prefer this paragraph to use

Re: [PATCH v3 2/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-12-05 Thread Federico Vaga
On Tuesday 04 December 2012 14:04:22 Mauro Carvalho Chehab wrote: > Em 24-09-2012 09:44, Marek Szyprowski escreveu: > > Hello, > > > > On Monday, September 24, 2012 12:59 PM Federico Vaga wrote: > >> The DMA streaming allocator is similar to the DMA contig but it use the > >> DMA streaming

Re: [PATCH 0/5] Alter steal time reporting in KVM

2012-12-05 Thread Glauber Costa
I am deeply sorry. I was busy first time I read this, so I postponed answering and ended up forgetting. Sorry >> >> include/linux/sched.h: >> unsigned long long run_delay; /* time spent waiting on a runqueue */ >> >> So if you are out of the runqueue, you won't get steal time accounted, >> and

Re: Partialy mapped page stays in page cache after unmap

2012-12-05 Thread chrubis
Hi! > I've seen the LTP open posix mmap/{11-4,11-5} issues in the past myself > and was something I wanted to discuss on the lists myself. Thanks for > bringing this up. > > Jut to reiterate: the expectations are > > 1. zero filling of unmapped (trailing) partial page > 2. NO Writeout (to disk)

[PATCH -next 2/2] tty: Correct tty buffer flush.

2012-12-05 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of "NULL pointer dereference". Main idea of the patch, this is never free last (struct tty_buffer) in the active buffer. Only flush the data for

[PATCH] mfd: tps80031: Add terminating entry for tps80031_id_table

2012-12-05 Thread Axel Lin
The i2c_device_id table is supposed to be zero-terminated. Signed-off-by: Axel Lin --- drivers/mfd/tps80031.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/tps80031.c b/drivers/mfd/tps80031.c index f64005e..10b51f7 100644 --- a/drivers/mfd/tps80031.c +++

Re: [PATCH V5 2/2] mfd: stmpe: Update DT support in stmpe driver

2012-12-05 Thread Viresh Kumar
Ping!!! On 1 December 2012 00:33, Viresh Kumar wrote: > On 30 November 2012 21:15, Lee Jones wrote: >> But ... I don't see how the changes in the -i2c and -spi files >> are of benefit either. When I boot without the ID table I still >> get "stmpe-i2c 0-0040: stmpe1601 detected, chip id: 0x212".

Re: [PATCH v3 3/4] sta2x11_vip: convert to videobuf2 and control framework

2012-12-05 Thread Mauro Carvalho Chehab
Em 05-12-2012 10:24, Federico Vaga escreveu: Thank you Mauro for the good explanation Yeah, there are many changes there that justifies adding you at its authorship, and that's ok. Also, anyone saying the size of your patch will recognize your and ST efforts to improve the driver. However, as

Re: PTRACE_SYSCALL && vsyscall (Was: arch_check_bp_in_kernelspace: fix the range check)

2012-12-05 Thread u3557
Dear Jan, > x86 debug registers are already very scarce. Besides that userland > applications know they have 4 of them available so it would also break > them. If a userland application wants to cheat, then it has no need to bypass the debug registers: even if there were 4096 of them, covering

Re: [PATCH V5 2/2] mfd: stmpe: Update DT support in stmpe driver

2012-12-05 Thread Lee Jones
> Ping!!! Documentation/development-process/2.Process: - Avoid top-posting (the practice of putting your answer above the quoted text you are responding to). It makes your response harder to read and makes a poor impression. :) > On 1 December 2012 00:33, Viresh Kumar wrote: > > On 30

[PATCH] mfd: tps80031: MFD_TPS80031 needs to select REGMAP_IRQ

2012-12-05 Thread Axel Lin
This driver uses regmap_irq APIs, thus need to select REGMAP_IRQ. IRQ_DOMAIN will be selected if select REGMAP_IRQ, thus remove it here. This fixes below build errors: drivers/built-in.o: In function `tps80031_remove': drivers/mfd/tps80031.c:534: undefined reference to `regmap_del_irq_chip'

Re: [PATCH v3 3/4] sta2x11_vip: convert to videobuf2 and control framework

2012-12-05 Thread Federico Vaga
> > Ok, I understand. I will write something like this. > > > > * Copyright (C) 2012 ST Microelectronics > > * author: Federico Vaga > > * Copyright (C) 2010 WindRiver Systems, Inc. > > * authors: Andreas Kies > > * Vlad Lungu > > Sounds perfect

Re: [PATCH V5 2/2] mfd: stmpe: Update DT support in stmpe driver

2012-12-05 Thread Viresh Kumar
On 5 December 2012 18:49, Lee Jones wrote: >> Ping!!! > > Documentation/development-process/2.Process: > > - Avoid top-posting (the practice of putting your answer above the quoted > text you are responding to). It makes your response harder to read and > makes a poor impression. Yes, i

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

2012-12-05 Thread Thierry Reding
On Wed, Dec 05, 2012 at 01:31:54PM +0100, Daniel Vetter wrote: > On Wed, Dec 5, 2012 at 1:22 PM, Thierry Reding > wrote: > > Maybe something more elaborate could help, though. Suppose we add > > functionality to DRM to instantiate a DRM device. We could call such a > > function from the host1x

Re: [PATCH v3 3/4] sta2x11_vip: convert to videobuf2 and control framework

2012-12-05 Thread Mauro Carvalho Chehab
Em 05-12-2012 11:27, Federico Vaga escreveu: Ok, I understand. I will write something like this. * Copyright (C) 2012 ST Microelectronics * author: Federico Vaga * Copyright (C) 2010 WindRiver Systems, Inc. * authors: Andreas Kies * Vlad

Re: [PATCH v3 3/4] sta2x11_vip: convert to videobuf2 and control framework

2012-12-05 Thread Federico Vaga
> Not sure if you got my point: the main point of removing MODULE_AUTHOR > and other copyright stuff is that such patch may easily be doing something > that could be considered a copyright violation, being bad not only to > the affected driver, but to the entire Kernel. > > So, we need to handle

[PATCH] fs: Fix imbalance in freeze protection in mark_files_ro()

2012-12-05 Thread Jan Kara
File descriptors (even those for writing) do not hold freeze protection. Thus mark_files_ro() must call __mnt_drop_write() to only drop protection against remount read-only. Calling mnt_drop_write_file() as we do now results in: [ BUG: bad unlock balance detected! ] 3.7.0-rc6-00028-g88e75b6 #101

[RFC] printk: Fix print_time length computation when no buffer is given

2012-12-05 Thread Sylvain Munaut
The "%5lu" part of the sprintf only guarantees a minimum length, not a maximum one. This patch should make it correct for any possible timestamp. Signed-off-by: Sylvain Munaut --- kernel/printk.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git

Re: [PATCH for 3.2.34] memcg: do not trigger OOM from add_to_page_cache_locked

2012-12-05 Thread Michal Hocko
On Wed 05-12-12 02:36:44, azurIt wrote: > >The following should print the traces when we hand over ENOMEM to the > >caller. It should catch all charge paths (migration is not covered but > >that one is not important here). If we don't see any traces from here > >and there is still global OOM

[PATCH] Round the calculated scale factor in set_cyc2ns_scale()

2012-12-05 Thread Bernd Faust
During some experiments with an external clock (in a FPGA), we saw that the TSC clock drifted approx. 2.5ms per second. This drift was caused by the current way of calculating the scale. In our case cpu_khz had a value of 3292725. This resulted in a scale value of 310. But when doing the

Re: [PATCH 2/2] Staging: android: ashmem: Add support for 32bit ashmem calls in a 64bit kernel

2012-12-05 Thread Serban Constantinescu
On 04/12/12 11:45, Dan Carpenter wrote: I don't understand this, and I'm going to embarrass myself by displaying my ignorance for all to see. Why is this code so different from all the other 32 bit compat code that we have in the kernel? On Tue, Dec 04, 2012 at 10:44:14AM +, Serban

Re: switcheroo registration vs switching race...

2012-12-05 Thread Daniel J Blueman
On 5 December 2012 00:04, Takashi Iwai wrote: > At Tue, 4 Dec 2012 23:54:39 +0800, > Daniel J Blueman wrote: >> >> On 4 December 2012 23:03, Takashi Iwai wrote: >> > At Tue, 4 Dec 2012 22:46:47 +0800, >> > Daniel J Blueman wrote: >> >> >> >> On 4 December 2012 21:55, Takashi Iwai wrote: >> >> >

Re: [PATCH v3 2/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-12-05 Thread Mauro Carvalho Chehab
Em 05-12-2012 10:50, Federico Vaga escreveu: On Tuesday 04 December 2012 14:04:22 Mauro Carvalho Chehab wrote: Em 24-09-2012 09:44, Marek Szyprowski escreveu: Hello, On Monday, September 24, 2012 12:59 PM Federico Vaga wrote: The DMA streaming allocator is similar to the DMA contig but it

Re: Look Ma, da kernel is b0rken

2012-12-05 Thread Borislav Petkov
On Wed, Dec 05, 2012 at 08:09:01AM +0100, Andreas Mohr wrote: > Hi, > > drivers/pnp/pnpacpi/core.c: In function 'ispnpidacpi': > drivers/pnp/pnpacpi/core.c:65:2: warning: logical 'or' of collectively > exhaustive tests is always true [-Wlogical-op] > drivers/pnp/pnpacpi/core.c:66:2: warning:

[PATCH v3] drivers: cma: represent physical addresses as phys_addr_t

2012-12-05 Thread Vitaly Andrianov
This commit changes the CMA early initialization code to use phys_addr_t for representing physical addresses instead of unsigned long. Without this change, among other things, dma_declare_contiguous() simply discards any memory regions whose address is not representable as unsigned long. This is

Re: [PATCH 1/2] Staging: android: binder: Add support for 32bit binder calls in a 64bit kernel

2012-12-05 Thread Serban Constantinescu
On 04/12/12 16:17, Greg KH wrote: On Tue, Dec 04, 2012 at 10:44:13AM +, Serban Constantinescu wrote: Android's IPC, Binder, does not support calls from a 32-bit userspace in a 64 bit kernel. This patch adds support for syscalls coming from a 32-bit userspace in a 64-bit kernel. Most of the

Re: [PATCH v7 2/3] aerdrv: Enhanced AER logging

2012-12-05 Thread Borislav Petkov
On Tue, Dec 04, 2012 at 02:03:12PM -0700, Lance Ortiz wrote: > This patch will provide a more reliable and easy way for user-space > applications to have access to AER logs rather than reading them from the > message buffer. It also provides a way to notify user-space when an AER > event occurs. >

Re: [PATCH] fs:ext3: remove lock_buffer in bclean() and setup_new_group_blocks

2012-12-05 Thread Jan Kara
On Sun 02-12-12 01:40:28, Cong Ding wrote: > it's not necessary to lock the buffers because no one touches them > beyond the file system. Although I agree those locks are not strictly necessary, I prefer to keep them because the general rula is buffer contents should be changed under buffer lock

Re: [PATCH v7 3/3] aerdrv: Cleanup log output for CPER based AER

2012-12-05 Thread Mauro Carvalho Chehab
Em Tue, 04 Dec 2012 14:03:18 -0700 Lance Ortiz escreveu: Hmm... I did a reply to v6 of this patch, but i pressed the wrong button and it went only to Joe. Excuse-me for that. Let me resend the comments to everybody: On Tue, 2012-12-04 at 16:33 -0200, Mauro Carvalho Chehab wrote: > Em Tue, 04

Re: [PATCH v7 3/3] aerdrv: Cleanup log output for CPER based AER

2012-12-05 Thread Borislav Petkov
On Tue, Dec 04, 2012 at 02:03:18PM -0700, Lance Ortiz wrote: > These changes make cper_print_aer more consistent with aer_print_error > which is called in the AER interrupt case. The string in the variable > 'prefix' is printed at the beginning of each print statement in > cper_print_aer(). The

Re: [PATCH 1/2] Staging: android: binder: Add support for 32bit binder calls in a 64bit kernel

2012-12-05 Thread Serban Constantinescu
On 05/12/12 00:26, Arve Hjønnevåg wrote: On Tue, Dec 4, 2012 at 2:44 AM, Serban Constantinescu wrote: Android's IPC, Binder, does not support calls from a 32-bit userspace in a 64 bit kernel. This patch adds support for syscalls coming from a 32-bit userspace in a 64-bit kernel. It also

[PATCH v3] HDA: Add PCI device prefix for clarity

2012-12-05 Thread Daniel J Blueman
When printing, use a prefix of the PCI domain, bus, device and function as in other drivers, to differentiate multiple devices. Important for reporting and debugging. A future step is to tidy this up with dev_printk et al. v2: Move conversion specifier into call site, preventing build issues v3:

Re: [PATCH] net/macb: increase RX buffer size for GEM

2012-12-05 Thread Nicolas Ferre
On 12/04/2012 07:22 PM, David Miller : > From: Nicolas Ferre > Date: Mon, 3 Dec 2012 13:15:43 +0100 > >> Macb Ethernet controller requires a RX buffer of 128 bytes. It is >> highly sub-optimal for Gigabit-capable GEM that is able to use >> a bigger DMA buffer. Change this constant and associated

Re: [PATCH 1/2] Staging: android: binder: Add support for 32bit binder calls in a 64bit kernel

2012-12-05 Thread Greg KH
On Wed, Dec 05, 2012 at 02:31:02PM +, Serban Constantinescu wrote: > -- IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the >

Re: [PATCH v3] HDA: Add PCI device prefix for clarity

2012-12-05 Thread Takashi Iwai
At Wed, 5 Dec 2012 23:04:21 +0800, Daniel J Blueman wrote: > > When printing, use a prefix of the PCI domain, bus, device and function > as in other drivers, to differentiate multiple devices. > > Important for reporting and debugging. A future step is to tidy this up with > dev_printk et al. >

Re: [PATCH v2] net/macb: Use non-coherent memory for rx buffers

2012-12-05 Thread Nicolas Ferre
On 12/05/2012 10:35 AM, David Laight : >> If I understand well, you mean that the call to: >> >> dma_sync_single_range_for_device(>pdev->dev, phys, >> pg_offset, frag_len, DMA_FROM_DEVICE); >> >> in the rx path after having copied the data to skb is not

Re: Look Ma, da kernel is b0rken

2012-12-05 Thread Alan Cox
On Wed, 5 Dec 2012 15:29:35 +0100 Borislav Petkov wrote: > On Wed, Dec 05, 2012 at 08:09:01AM +0100, Andreas Mohr wrote: > > Hi, > > > > drivers/pnp/pnpacpi/core.c: In function 'ispnpidacpi': > > drivers/pnp/pnpacpi/core.c:65:2: warning: logical 'or' of collectively > > exhaustive tests is

RE: [PATCH v2] net/macb: Use non-coherent memory for rx buffers

2012-12-05 Thread David Laight
> Well, for the 10/100 MACB interface, I am stuck with 128 Bytes buffers! > So this use of pages seems sensible. If you have dma coherent memory you can make the rx buffer space be an array of short buffers referenced by adjacent ring entries (possibly with the last one slightly short to allow

[BUGFIX PATCH] rtc: eliminate extra call of ida_simple_remove()

2012-12-05 Thread Lothar Waßmann
Unbinding an RTC chip driver from its device leads to the error message: |ida_remove called for id=0 which is not allocated. This is caused by a redundant call to ida_simple_remove() in rtc_device_unregister(). Eliminate the call in rtc_device_unregister() and only call the function in

Re: Look Ma, da kernel is b0rken

2012-12-05 Thread Borislav Petkov
On Wed, Dec 05, 2012 at 03:27:56PM +, Alan Cox wrote: > On Wed, 5 Dec 2012 15:29:35 +0100 > Borislav Petkov wrote: > > > On Wed, Dec 05, 2012 at 08:09:01AM +0100, Andreas Mohr wrote: > > > Hi, > > > > > > drivers/pnp/pnpacpi/core.c: In function 'ispnpidacpi': > > >

kernel BUG at /build/buildd/linux-2.6.32/mm/mempolicy.c

2012-12-05 Thread Bokhan Artem
Hello. We have several servers with mongodb running. Each server has several mongodb instances. Mongodb dataset is larger then availiable memory (mongodb uses memory-mapped files for all disk I/O). 2.6.32 and 2.6.38 kernels periodically crash and crash happens only with mongodb servers.

Re: Debugging system freezes on filesystem writes

2012-12-05 Thread Jan Kara
On Tue 27-11-12 18:14:42, Marcus Sundman wrote: > On 22.11.2012 01:30, Jan Kara wrote: > >On Fri 16-11-12 03:11:22, Marcus Sundman wrote: > >>On 13.11.2012 15:51, Jan Kara wrote: > >>>On Fri 09-11-12 15:12:43, Marcus Sundman wrote: > On 09.11.2012 01:41, Marcus Sundman wrote: > >On

[PATCH] pwm: i.MX: eliminate build warning

2012-12-05 Thread Lothar Waßmann
compiling the i.MX pwm driver produces the following warning: |drivers/pwm/pwm-imx.c: In function 'imx_pwm_probe': |drivers/pwm/pwm-imx.c:281:7: warning: assignment discards qualifiers from pointer target type Apply a 'const' attribute to the affected variable declaration. Signed-off-by: Lothar

Re: [PATCH v2 1/3] leds: leds-pwm: Convert to use devm_get_pwm

2012-12-05 Thread Peter Ujfalusi
On 12/04/2012 06:34 PM, Bryan Wu wrote: > What's best thing I can do is I can merge these patchset into my > -devel branch, after 3.8 merge window close I will move this -devel > branch to my for-next branch for 3.9 merge window. > > Does this make sense to you? Not sure if I can get changes

Re: Look Ma, da kernel is b0rken

2012-12-05 Thread Alan Cox
> Hillarious! > > Andrew, would you please pick up Alan's patch? It clearly fixes an > ancient bug in the pnpacpi code. And yes btw we should turn this option on in -next, and get these sort of things out of the tree for good. More importantly it'll mean anyone adding another one gets a whine on

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

2012-12-05 Thread Terje Bergström
On 05.12.2012 14:04, Thierry Reding wrote: > On Wed, Dec 05, 2012 at 01:47:38PM +0200, Terje Bergström wrote: > Yes, but there's more. For instance I went to great lengths to make sure > there's no global data whatsoever. So all the data is bound to the > host1x device in the current code. I know

Re: [PATCH v2 4/5] page_alloc: Make movablecore_map has higher priority

2012-12-05 Thread Jiang Liu
If we make "movablecore_map" take precedence over "movablecore/kernelcore", the logic could be simplified. I think it's not so attractive to support both "movablecore_map" and "movablecore/kernelcore" at the same time. On 11/23/2012 06:44 PM, Tang Chen wrote: > If kernelcore or movablecore is

Re: [PATCH 2/2] New driver: Xillybus generic interface for FPGA (programmable logic)

2012-12-05 Thread Greg KH
On Tue, Dec 04, 2012 at 08:43:18PM +, Arnd Bergmann wrote: > On Tuesday 04 December 2012, Eli Billauer wrote: > > I'm currently writing some documentation which will cover the API and > > also help reading the code, I hope. It takes some time... > > > > Until it's done, let's look at a usage

Re: [PATCH, 3.7-rc7, RESEND] fs: revert commit bbdd6808 to fallocate UAPI

2012-12-05 Thread Linus Torvalds
On Wed, Dec 5, 2012 at 2:48 AM, Martin Steigerwald wrote: > > Linus, while I am interested in an answer I think that Dave and Christoph > as Linux filesystem developers actually deserve one (instead of silently > being ignored which is also a decision in this matter). > > I did not see an answer

Re: [PATCH v2 3/5] page_alloc: Introduce zone_movable_limit[] to keep movable limit for nodes

2012-12-05 Thread Jiang Liu
On 11/23/2012 06:44 PM, Tang Chen wrote: > This patch introduces a new array zone_movable_limit[] to store the > ZONE_MOVABLE limit from movablecore_map boot option for all nodes. > The function sanitize_zone_movable_limit() will find out to which > node the ranges in movable_map.map[] belongs,

Re: kernel BUG at /build/buildd/linux-2.6.32/mm/mempolicy.c

2012-12-05 Thread Borislav Petkov
On Wed, Dec 05, 2012 at 10:22:08PM +0700, Bokhan Artem wrote: > Hello. > > We have several servers with mongodb running. Each server has > several mongodb instances. Mongodb dataset is larger then availiable > memory (mongodb uses memory-mapped files for all disk I/O). > 2.6.32 and 2.6.38 kernels

Re: kernel BUG at /build/buildd/linux-2.6.32/mm/mempolicy.c

2012-12-05 Thread Bokhan Artem
On 05.12.2012 22:53, Borislav Petkov wrote: On Wed, Dec 05, 2012 at 10:22:08PM +0700, Bokhan Artem wrote: Hello. We have several servers with mongodb running. Each server has several mongodb instances. Mongodb dataset is larger then availiable memory (mongodb uses memory-mapped files for all

Build regressions/improvements in v3.7-rc8

2012-12-05 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v3.7-rc8[1] compared to v3.6[2]. To make this mail fit in the lkml limit, I deleted - 6016 lines about __mcount_loc on sparc64 - all error and warning improvements Summarized: - build errors: +13/-952 - build warnings:

Re: [PATCH 4/8] srcu: srcu_read_lock() can be called from offline cpu

2012-12-05 Thread Paul E. McKenney
On Thu, Nov 29, 2012 at 04:46:05PM +0800, Lai Jiangshan wrote: > SRCU is based on its own statemachine and it doesn't > relies on normal RCU now, its read critical section can be used in > offline cpu, so we remove the check and the comments. > > It partially reverts c0d6d01b(the part for SRCU).

Re: Look Ma, da kernel is b0rken

2012-12-05 Thread Borislav Petkov
On Wed, Dec 05, 2012 at 03:47:49PM +, Alan Cox wrote: > > Hillarious! > > > > Andrew, would you please pick up Alan's patch? It clearly fixes an > > ancient bug in the pnpacpi code. > > And yes btw we should turn this option on in -next, and get these sort of > things out of the tree for

[ANNOUNCE] 3.6.9-rt21

2012-12-05 Thread Thomas Gleixner
Dear RT Folks, I'm pleased to announce the 3.6.9-rt21 release. 3.6.7-rt18, 3.6.8-rt19 and 3.6.9-rt20 are not announced updates to the respective 3.6.y stable releases without any RT changes Changes since 3.6.9-rt20: * Fix the PREEMPT_LAZY implementation on ARM * Fix the RCUTINY issues

[PATCH v2 01/44] asm-generic/io.h: remove asm/cacheflush.h include

2012-12-05 Thread James Hogan
Including from prevents cacheflush.h being able to use I/O functions like readl and writel due to circular include dependencies. It doesn't appear as if anything from cacheflush.h is actually used by the generic io.h, so remove the include. I've compile tested a defconfig compilation of

[PATCH v2 03/44] Add CONFIG_HAVE_64BIT_ALIGNED_STRUCT for taskstats

2012-12-05 Thread James Hogan
On 64 bit architectures with no efficient unaligned access, taskstats has to add some padding to a reply to prevent unaligned access warnings. However this also needs to apply to 32 bit architectures with 64 bit struct alignment such as metag (which has 64 bit memory accesses). This is solved by

[PATCH v2 05/44] Revert some of "binfmt_elf: cleanups"

2012-12-05 Thread James Hogan
The commit "binfmt_elf: cleanups" (f670d0ecda73b7438eec9ed108680bc5f5362ad8) removed an ifndef elf_map but this breaks compilation for metag which does define elf_map. This adds the ifndef back in as it was before, but does not affect the other cleanups made by that patch. Signed-off-by: James

[PATCH v2 06/44] of/vendor-prefixes: add Imagination Technologies

2012-12-05 Thread James Hogan
The "powervr" prefix which is currently described as "Imagination Technologies" isn't really appropriate for non-PowerVR hardware, so deprecate it, changing the description of "powervr" to "PowerVR (deprecated, use img)", and add a separate "img" prefix for "Imagination Technologies Ltd.".

[PATCH v2 21/44] metag: ptrace

2012-12-05 Thread James Hogan
The ptrace interface for metag provides access to some core register sets using the PTRACE_GETREGSET and PTRACE_SETREGSET operations. The details of the internal context structures is abstracted into user API structures to both ease use and allow flexibility to change the internal context layouts.

[PATCH v2 35/44] mm: define VM_GROWSUP for CONFIG_METAG

2012-12-05 Thread James Hogan
Commit cc2383ec06be093789469852e1fe96e1148e9a2c ("mm: introduce arch-specific vma flag VM_ARCH_1") merged in v3.7-rc1. The above commit combined several arch-specific vma flags into one, and in the process it changed the VM_GROWSUP definition to depend on specific architectures rather than

[PATCH v2 36/44] Add metag to various Kconfig dependency lists

2012-12-05 Thread James Hogan
Add [!]METAG to various Kconfig dependencies in generic code, as described below: - Kconfig.debug: don't allow stack utilization instrumentation on metag, and allow building with frame pointers. - char: don't build rtc or genrtc on METAG The metag architecture doesn't have a PC

[PATCH v2 44/44] fs: imgdafs: Add IMG DAFS filesystem for metag

2012-12-05 Thread James Hogan
Add the IMG Debug Adapter File System (DAFS) for metag, which uses SWITCH operations to communicate with a file server on a host computer via a JTAG debug adapter. Signed-off-by: James Hogan Cc: Alexander Viro Cc: linux-fsde...@vger.kernel.org --- MAINTAINERS |1 +

[PATCH v2 43/44] tty/metag_da: Add metag DA TTY driver

2012-12-05 Thread James Hogan
Add a TTY driver for communicating over a Meta DA (Debug Adapter) channel using the bios channel SWITCH operation. Signed-off-by: James Hogan Cc: Greg Kroah-Hartman --- MAINTAINERS|1 + arch/metag/Kconfig |4 +-

[PATCH v2 42/44] metag: Add JTAG Debug Adapter (DA) support

2012-12-05 Thread James Hogan
Add basic JTAG Debug Adapter (DA) support so that drivers which communicate with the DA can detect whether one is actually present (otherwise the target will halt indefinitely). Signed-off-by: James Hogan --- arch/metag/Kconfig |9 ++

[PATCH v2 41/44] metag: OProfile

2012-12-05 Thread James Hogan
Add oprofile support for metag. Signed-off-by: James Hogan --- arch/metag/Kconfig|1 + arch/metag/Makefile |2 + arch/metag/oprofile/Makefile | 16 ++ arch/metag/oprofile/backtrace.c | 134 ++

[PATCH v2 40/44] scripts/checkstack.pl: Add metag support

2012-12-05 Thread James Hogan
Adapt checkstack.pl so that it works for metag. Signed-off-by: James Hogan --- scripts/checkstack.pl |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 17e3843..544aa56 100755 --- a/scripts/checkstack.pl +++

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