Re: [PATCH/RFCv4 0/6] The Contiguous Memory Allocator framework

2010-08-25 Thread Andrew Morton
On Fri, 20 Aug 2010 15:15:10 +0200 Peter Zijlstra pet...@infradead.org wrote: On Fri, 2010-08-20 at 11:50 +0200, Michal Nazarewicz wrote: Hello everyone, The following patchset implements a Contiguous Memory Allocator. For those who have not yet stumbled across CMA an excerpt from

Re: mmotm 2010-10-13 - GSPCA SPCA561 webcam driver broken

2010-10-15 Thread Andrew Morton
On Fri, 15 Oct 2010 10:45:45 +0200 Hans Verkuil hverk...@xs4all.nl wrote: On Thursday, October 14, 2010 22:06:29 valdis.kletni...@vt.edu wrote: On Wed, 13 Oct 2010 17:13:25 PDT, a...@linux-foundation.org said: The mm-of-the-moment snapshot 2010-10-13-17-13 has been uploaded to

Re: Can you review or ack this patch?

2011-09-07 Thread Andrew Morton
On Tue, 23 Aug 2011 08:33:25 +0200 Hans Verkuil hverk...@xs4all.nl wrote: (and resent again, this time with the correct linux-fsdevel mail address) (Resent as requested by Andrew Morton since this is still stuck) Hi Al, Andrew, Can you take a look at this patch and send an Ack or review

Re: 3.0.1. imon locking issues?

2011-09-09 Thread Andrew Morton
(cc's added) On Sun, 04 Sep 2011 21:02:41 +0200 Anders aerikss...@gmail.com wrote: Found this oops produced by kdump here. It seems imon related. ... 4[ 278.893189] Restarting tasks ... done. 6[ 278.994452] usb 5-1: USB disconnect, device number 2 3[ 278.995191] imon:send_packet:

Re: [RFCv4 PATCH 0/6]: add poll_requested_events() function

2011-10-05 Thread Andrew Morton
On Wed, 5 Oct 2011 09:47:09 +0200 Hans Verkuil hverk...@xs4all.nl wrote: On Thursday 29 September 2011 09:44:06 Hans Verkuil wrote: This is the fourth version of this patch series, incorporating the comments from Andrew Morton: I've split up the multiple-assignment line and added a comment

Re: [PATCHv16 0/9] Contiguous Memory Allocator

2011-10-10 Thread Andrew Morton
On Fri, 7 Oct 2011 18:27:06 +0200 Arnd Bergmann a...@arndb.de wrote: On Thursday 06 October 2011, Marek Szyprowski wrote: Once again I decided to post an updated version of the Contiguous Memory Allocator patches. This version provides mainly a bugfix for a very rare issue that might

Re: [PATCHv16 0/9] Contiguous Memory Allocator

2011-10-14 Thread Andrew Morton
On Tue, 11 Oct 2011 15:52:04 +0200 Arnd Bergmann a...@arndb.de wrote: On Tuesday 11 October 2011, Andrew Morton wrote: Russell's going to hate me, but... I do know that he had substantial objections to at least earlier versions of this, and he is a guy who knows of what he speaks

Re: [PATCH 1/9] mm: move some functions from memory_hotplug.c to page_isolation.c

2011-10-14 Thread Andrew Morton
On Thu, 06 Oct 2011 15:54:41 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Memory hotplug is a logic for making pages unused in the specified range of pfn. So, some of core logics can be used for other purpose as allocating a

Re: [PATCH 2/9] mm: alloc_contig_freed_pages() added

2011-10-14 Thread Andrew Morton
On Thu, 06 Oct 2011 15:54:42 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com This commit introduces alloc_contig_freed_pages() function The freed seems redundant to me. Wouldn't alloc_contig_pages be a better name? which

Re: [PATCH 3/9] mm: alloc_contig_range() added

2011-10-14 Thread Andrew Morton
On Thu, 06 Oct 2011 15:54:43 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: From: Michal Nazarewicz m.nazarew...@samsung.com This commit adds the alloc_contig_range() function which tries to allocate given range of pages. It tries to migrate all already allocated pages that fall in

Re: [PATCH 4/9] mm: MIGRATE_CMA migration type added

2011-10-14 Thread Andrew Morton
On Thu, 06 Oct 2011 15:54:44 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: From: Michal Nazarewicz m.nazarew...@samsung.com The MIGRATE_CMA migration type has two main characteristics: (i) only movable pages can be allocated from MIGRATE_CMA pageblocks and (ii) page allocator will

Re: [PATCH 6/9] drivers: add Contiguous Memory Allocator

2011-10-14 Thread Andrew Morton
On Thu, 06 Oct 2011 15:54:46 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: The Contiguous Memory Allocator is a set of helper functions for DMA mapping framework that improves allocations of contiguous memory chunks. CMA grabs memory on system boot, marks it with CMA_MIGRATE_TYPE

Re: [PATCH 2/9] mm: alloc_contig_freed_pages() added

2011-10-16 Thread Andrew Morton
On Sun, 16 Oct 2011 10:01:36 +0200 Michal Nazarewicz min...@mina86.com wrote: Still, as I think of it now, maybe alloc_contig_free_range() would be better? Nope. Of *course* the pages were free. Otherwise we couldn't (re)allocate them. I still think the free part is redundant. What could

Re: [PATCH 2/9] mm: alloc_contig_freed_pages() added

2011-10-17 Thread Andrew Morton
On Mon, 17 Oct 2011 14:21:07 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: + +void free_contig_pages(unsigned long pfn, unsigned nr_pages) +{ + struct page *page = pfn_to_page(pfn); + + while (nr_pages--) { + __free_page(page); + ++pfn; +

Re: [Security] [PATCH 00/20] world-writable files in sysfs and debugfs

2011-03-14 Thread Andrew Morton
On Sat, 12 Mar 2011 23:23:06 +0300 Vasiliy Kulikov seg...@openwall.com wrote: Vasiliy Kulikov (20): mach-ux500: mbox-db5500: world-writable sysfs fifo file leds: lp5521: world-writable sysfs engine* files leds: lp5523: world-writable engine* sysfs files misc: ep93xx_pwm:

Re: [PATCHv11 0/8] Contiguous Memory Allocator

2011-07-06 Thread Andrew Morton
On Tue, 5 Jul 2011 14:07:17 +0200 Arnd Bergmann a...@arndb.de wrote: On Tuesday 05 July 2011, Marek Szyprowski wrote: This is yet another round of Contiguous Memory Allocator patches. I hope that I've managed to resolve all the items discussed during the Memory Management summit at Linaro

Re: USB DVB unplug: kernel BUG at kernel/module.c:912!

2009-04-07 Thread Andrew Morton
On Tue, 31 Mar 2009 14:28:45 +0200 (CEST) Geert Uytterhoeven geert.uytterhoe...@sonycom.com wrote: When unplugging a Sony PlayTV USB DVB adaptor from a PS3, I get | kernel BUG at kernel/module.c:912! on 2.6.29-06608-g15f7176. Insert Sony PlayTV USB: Mar 31 13:41:57 ps3 kernel: [

Fw: PROBLEM: crashes or unstability while watching tv with MPlayer from pci bttv card

2009-04-19 Thread Andrew Morton
Begin forwarded message: Date: Wed, 15 Apr 2009 06:31:46 -0500 From: Alejandro VĂ©lez null...@gmail.com To: linux-ker...@vger.kernel.org Subject: PROBLEM: crashes or unstability while watching tv with MPlayer from pci bttv card [1.] One line summary of the problem: General system

Re: + drivers-media-video-saa7134-add-tuner-support-for-avermedia-studio-505.patch added to -mm tree

2009-04-21 Thread Andrew Morton
On Wed, 22 Apr 2009 01:21:18 +0200 hermann pitton hermann-pit...@arcor.de wrote: Hmm, do we try to fix/improve it on Andrew's tree or take it over to mercurial v4l-dvb and send back from there? I'll drop the patch which I have. Please don't lose it! -- To unsubscribe from this list: send the

Re: [PATCH] dvb-core: Fix potential mutex_unlock without mutex_lock in dvb_dvr_read

2009-04-30 Thread Andrew Morton
On Thu, 30 Apr 2009 22:42:06 +0100 Simon Arlott si...@fire.lp0.eu wrote: diff --git a/drivers/media/dvb/dvb-core/dmxdev.c b/drivers/media/dvb/dvb-core/dmxdev.c index c35fbb8..d6d098a 100644 --- a/drivers/media/dvb/dvb-core/dmxdev.c +++ b/drivers/media/dvb/dvb-core/dmxdev.c @@ -247,7

Re: [patch 1/3] mm: introduce follow_pte()

2009-05-05 Thread Andrew Morton
On Mon, 4 May 2009 11:54:32 +0200 Johannes Weiner han...@cmpxchg.org wrote: A generic readonly page table lookup helper to map an address space and an address from it to a pte. umm, OK. Is there actually some point to these three patches? If so, what is it? -- To unsubscribe from this list:

Re: [patch 1/3] mm: introduce follow_pte()

2009-05-05 Thread Andrew Morton
On Tue, 5 May 2009 22:38:07 +0200 Johannes Weiner han...@cmpxchg.org wrote: On Tue, May 05, 2009 at 12:24:42PM -0700, Andrew Morton wrote: On Mon, 4 May 2009 11:54:32 +0200 Johannes Weiner han...@cmpxchg.org wrote: A generic readonly page table lookup helper to map an address space

Re: [PATCH] videobuf-dma-contig: zero copy USERPTR support V3

2009-05-08 Thread Andrew Morton
On Fri, 08 May 2009 17:53:10 +0900 Magnus Damm magnus.d...@gmail.com wrote: From: Magnus Damm d...@igel.co.jp This is V3 of the V4L2 videobuf-dma-contig USERPTR zero copy patch. Since videobuf-dma-contig is designed to handle physically contiguous memory, this patch modifies the

Fw: tua6100_sleep: i2c error when trying to tune saa7146 based DVB card

2009-05-13 Thread Andrew Morton
Begin forwarded message: Date: Tue, 12 May 2009 09:42:35 +0200 From: Marc Haber mh+linux-ker...@zugschlus.de To: linux-ker...@vger.kernel.org Subject: tua6100_sleep: i2c error when trying to tune saa7146 based DVB card Recently, my entertainment PC has begun to refuse tuning to my favorite

Re: [Bugme-new] [Bug 13316] New: task khubd:281 blocked for more than 120 seconds

2009-05-28 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Fri, 15 May 2009 17:46:49 GMT bugzilla-dae...@bugzilla.kernel.org wrote: http://bugzilla.kernel.org/show_bug.cgi?id=13316 Summary: task khubd:281 blocked for more than 120

Re: [patch 1/6] radio-mr800.c: missing mutex include

2009-06-10 Thread Andrew Morton
On Thu, 11 Jun 2009 03:21:36 +0400 Alexey Klimov klimov.li...@gmail.com wrote: On Wed, Jun 10, 2009 at 11:44 PM, a...@linux-foundation.org wrote: From: Alessio Igor Bogani abog...@texware.it radio-mr800.c uses struct mutex, so while linux/mutex.h seems to be pulled in indirectly by one

drivers/media/video/gspca/ov534.c warning

2009-12-03 Thread Andrew Morton
drivers/media/video/gspca/ov534.c: In function 'setsharpness_96': drivers/media/video/gspca/ov534.c:1539: warning: comparison is always false due to limited range of data type this code can't ever have worked. -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of

linux-next i386 allmodconfig

2009-12-03 Thread Andrew Morton
ERROR: __divdf3 [drivers/media/dvb/frontends/atbm8830.ko] undefined! ERROR: __adddf3 [drivers/media/dvb/frontends/atbm8830.ko] undefined! ERROR: __fixunsdfsi [drivers/media/dvb/frontends/atbm8830.ko] undefined! ERROR: __udivdi3 [drivers/media/dvb/frontends/atbm8830.ko] undefined! ERROR:

Re: [Fwd: [patch] media video cx23888 driver: ported to new kfifo API]

2009-12-18 Thread Andrew Morton
On Fri, 18 Dec 2009 22:57:22 +0100 Stefani Seibold stef...@seibold.net wrote: But kfifo_len() did not requiere a lock in my opinion. It is save to use without a look. What do you mean by this? Safe in general, or safe in this particular driver? In either case: why? -- To unsubscribe from

Fw: PROBLEM: linux server halts while restarting VLC

2010-04-19 Thread Andrew Morton
Begin forwarded message: Date: Wed, 14 Apr 2010 12:36:18 +0400 From: Alexander Kolesnik linux-ker...@abisoft.biz To: linux-ker...@vger.kernel.org Subject: PROBLEM: linux server halts while restarting VLC Hello, We have a video camera which is connected to a capture card in a linux server

Re: [Bugme-new] [Bug 15826] New: WARNING: at fs/proc/generic.c:317 __xlate_proc_name+0xbd/0xe0()

2010-04-26 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Wed, 21 Apr 2010 12:21:18 GMT bugzilla-dae...@bugzilla.kernel.org wrote: https://bugzilla.kernel.org/show_bug.cgi?id=15826 Summary: WARNING: at fs/proc/generic.c:317

Re: [Bugme-new] [Bug 16050] New: The ibmcam driver is not working

2010-05-28 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Tue, 25 May 2010 23:02:23 GMT bugzilla-dae...@bugzilla.kernel.org wrote: https://bugzilla.kernel.org/show_bug.cgi?id=16050 URL:

Re: [Bugme-new] [Bug 16077] New: Drop is video frame rate in kernel .34

2010-06-02 Thread Andrew Morton
On Sun, 30 May 2010 14:29:55 GMT bugzilla-dae...@bugzilla.kernel.org wrote: https://bugzilla.kernel.org/show_bug.cgi?id=16077 2.6.33 - 2.6.34 performance regression in dvb webcam frame rates. -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to

Re: [Bugme-new] [Bug 12768] New: usb_alloc_urb() leaks memory together with uvcvideo driver

2009-02-24 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Mon, 23 Feb 2009 22:08:37 -0800 (PST) bugme-dae...@bugzilla.kernel.org wrote: http://bugzilla.kernel.org/show_bug.cgi?id=12768 There's additional info at the link. Summary:

Fw: oops in pwc_reset_buffers

2009-03-05 Thread Andrew Morton
Begin forwarded message: Date: Thu, 05 Mar 2009 14:53:17 +0100 From: strawks stra...@yahoo.fr To: linux-ker...@vger.kernel.org Subject: oops in pwc_reset_buffers Hi all, On 2.6.29-rc6, when resuming from suspend to RAM I got the following oops when motion tried to open /dev/video0. Just ask

Re: [PATCH -next] dvb/frontends: fix duplicate 'debug' symbol

2009-03-06 Thread Andrew Morton
On Fri, 06 Mar 2009 13:24:46 -0800 Randy Dunlap randy.dun...@oracle.com wrote: It would also be Good if arch/x86/kernel/entry_32.S didn't have a non-static 'debug' symbol. OTOH, it helps catch things like this one. heh, yes, it's a feature. We should put it in init/main.c, along with 100-odd

Re: [PATCHv19 00/15] Contiguous Memory Allocator

2012-01-27 Thread Andrew Morton
On Thu, 26 Jan 2012 15:31:40 + Arnd Bergmann a...@arndb.de wrote: On Thursday 26 January 2012, Marek Szyprowski wrote: Welcome everyone! Yes, that's true. This is yet another release of the Contiguous Memory Allocator patches. This version mainly includes code cleanups requested

Re: [RFCv7 PATCH 0/4] Add poll_requested_events() function.

2012-02-02 Thread Andrew Morton
On Thu, 2 Feb 2012 11:26:53 +0100 Hans Verkuil hverk...@xs4all.nl wrote: The first version of this patch was posted July 1st, 2011. I really hope that it won't take another six months to get a review from a fs developer. As this LWN article (http://lwn.net/Articles/450658/) said: 'There has

Re: [RFCv7 PATCH 2/4] poll: add poll_requested_events() and poll_does_not_wait() functions

2012-02-02 Thread Andrew Morton
On Thu, 2 Feb 2012 11:26:55 +0100 Hans Verkuil hverk...@xs4all.nl wrote: From: Hans Verkuil hans.verk...@cisco.com In some cases the poll() implementation in a driver has to do different things depending on the events the caller wants to poll for. An example is when a driver needs to start

Re: [PATCHv22 14/16] X86: integrate CMA with DMA-mapping subsystem

2012-02-21 Thread Andrew Morton
On Fri, 17 Feb 2012 20:30:34 +0100 Marek Szyprowski m.szyprow...@samsung.com wrote: This patch adds support for CMA to dma-mapping subsystem for x86 architecture that uses common pci-dma/pci-nommu implementation. This allows to test CMA on KVM/QEMU and a lot of common x86 boxes. ... ---

Re: [PATCHv24 00/16] Contiguous Memory Allocator

2012-04-19 Thread Andrew Morton
On Tue, 03 Apr 2012 16:10:05 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: This is (yet another) update of CMA patches. Looks OK to me. It's a lot of code. Please move it into linux-next, and if all is well, ask Linus to pull the tree into 3.5-rc1. Please be sure to cc me on that

Re: [PATCH v3] scatterlist: add sg_alloc_table_from_pages function

2012-05-22 Thread Andrew Morton
On Mon, 21 May 2012 16:01:50 +0200 Tomasz Stanislawski t.stanisl...@samsung.com wrote: +int sg_alloc_table_from_pages(struct sg_table *sgt, + struct page **pages, unsigned int n_pages, + unsigned long offset, unsigned long size, + gfp_t gfp_mask) I guess a 32-bit n_pages is OK. A

Re: [PATCH v3 1/9] string: introduce memweight

2012-06-11 Thread Andrew Morton
On Sat, 9 Jun 2012 09:50:30 +0900 Akinobu Mita akinobu.m...@gmail.com wrote: memweight() is the function that counts the total number of bits set in memory area. Unlike bitmap_weight(), memweight() takes pointer and size in bytes to specify a memory area which does not need to be aligned to

Re: [Bugme-new] [Bug 15087] New: hauppauge nova-t 500 remote controller cause usb halt with Via usb controller

2010-01-25 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Mon, 18 Jan 2010 21:06:57 GMT bugzilla-dae...@bugzilla.kernel.org wrote: http://bugzilla.kernel.org/show_bug.cgi?id=15087 Summary: hauppauge nova-t 500 remote controller cause

Re: [PATCH v2 0/3] radio: Add support for SAA7706H Car Radio DSP

2010-01-26 Thread Andrew Morton
On Fri, 22 Jan 2010 10:08:43 +0100 Richard R__jfors richard.rojf...@pelagicore.com wrote: These sets of patches added support for the SAA7706H Car Radio DSP. Patch 2 is updated after feedback from Hans Verkuil. Thanks Hans! Patch 1: Add The saa7706h to the v4l2-chip-ident.h Patch 2: Add

Re: [patch 2/5] drivers/media/video: move dereference after NULL test

2010-03-11 Thread Andrew Morton
On Thu, 11 Mar 2010 16:38:21 -0600 Karicheri, Muralidharan m-kariche...@ti.com wrote: diff -puN drivers/media/video/davinci/vpif_display.c~drivers-media-video- move-dereference-after-null-test drivers/media/video/davinci/vpif_display.c ---

Re: [PATCH] drivers/media/video: avoid NULL dereference

2010-03-23 Thread Andrew Morton
On Sun, 21 Mar 2010 22:31:06 +0100 (CET) Julia Lawall ju...@diku.dk wrote: From: Julia Lawall ju...@diku.dk If ov is NULL, it will not be possible to take the lock in the first place, so move the test up earlier. ... --- a/drivers/media/video/ov511.c +++ b/drivers/media/video/ov511.c

Re: [Bugme-new] [Bug 13709] New: b2c2-flexcop: no frontend driver found for this B2C2/FlexCop adapter w/ kernel-2.6.31-rc2

2009-07-20 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). Guys, this is reportedly a post-2.6.30 regression - I'll ask Rafael to add it to the regression tracking list. btw, does the flexcop driver have a regular maintainer? Or someone who wants to

Re: [Bugme-new] [Bug 13709] New: b2c2-flexcop: no frontend driver found for this B2C2/FlexCop adapter w/ kernel-2.6.31-rc2

2009-07-20 Thread Andrew Morton
On Mon, 20 Jul 2009 13:21:33 -0700 (PDT) Trent Piepho xy...@speakeasy.org wrote: On Mon, 20 Jul 2009, Andrew Morton wrote: (switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). Guys, this is reportedly a post-2.6.30 regression - I'll ask

Re: [Bugme-new] [Bug 13709] New: b2c2-flexcop: no frontend driver found for this B2C2/FlexCop adapter w/ kernel-2.6.31-rc2

2009-07-22 Thread Andrew Morton
On Wed, 22 Jul 2009 00:19:00 -0700 (PDT) Trent Piepho xy...@speakeasy.org wrote: On Mon, 20 Jul 2009, Andrew Morton wrote: On Mon, 20 Jul 2009 13:21:33 -0700 (PDT) Trent Piepho xy...@speakeasy.org wrote: On Mon, 20 Jul 2009, Andrew Morton wrote: I produced a patch that fixed

Re: [patch] drivers/media/video/zoran_card.c: en/decoder loading

2009-07-22 Thread Andrew Morton
(cc linux-media) On Sun, 27 Jan 2008 19:01:29 +0100 Martin Samuelsson sam.linux.ker...@gmail.com wrote: This enables the avs6eyes to load the bt866 and ks0127 drivers automatically. Signed-off-by: Martin Samuelsson sam.linux.ker...@gmail.com --- zoran_card.c |6 ++ 1 file

Re: [patch] drivers/media/video/zoran_card.c: en/decoder loading

2009-07-22 Thread Andrew Morton
On Wed, 22 Jul 2009 13:57:57 -0700 Andrew Morton a...@linux-foundation.org wrote: (cc linux-media) On Sun, 27 Jan 2008 19:01:29 +0100 oops Martin Samuelsson sam.linux.ker...@gmail.com wrote: This enables the avs6eyes to load the bt866 and ks0127 drivers automatically. Signed

Re: [Bug 13708] Aiptek DV-T300 support is incomplete

2009-07-23 Thread Andrew Morton
On Mon, 20 Jul 2009 22:37:08 +0200 Bal__zs H__morszky bal...@gmail.com wrote: I don't have my kernel tree with me (I'm at vacation atm.). The patch is made with only the -uN options, but I can make a new one on Friday (if needed). The patch doesn't apply to current kernels and fixing it

Re: [Bugme-new] [Bug 13951] New: in function device_authorization mutex is not released on error path.

2009-08-10 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Mon, 10 Aug 2009 08:16:08 GMT bugzilla-dae...@bugzilla.kernel.org wrote: http://bugzilla.kernel.org/show_bug.cgi?id=13951 Summary: in function device_authorization mutex is not

Re: [Bugme-new] [Bug 14174] New: floppy drive not usable more than one time after reboot - kernel panic with active DVB

2009-09-14 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Sun, 13 Sep 2009 15:08:21 GMT bugzilla-dae...@bugzilla.kernel.org wrote: http://bugzilla.kernel.org/show_bug.cgi?id=14174 Summary: floppy drive not usable more than one time

Re: [PATCH] nommu: remap_pfn_range: fix addr parameter check

2012-09-13 Thread Andrew Morton
On Thu, 13 Sep 2012 10:40:57 +0800 Bob Liu lliu...@gmail.com wrote: The addr parameter may not page aligned eg. when it's come from vfb_mmap():vma-vm_start in video driver. This patch fix the check in remap_pfn_range() else some driver like v4l2 will fail in this function while calling

Re: [PATCH] Fix _IOC_TYPECHECK sparse error

2014-05-09 Thread Andrew Morton
On Fri, 09 May 2014 09:43:58 +0200 Hans Verkuil hverk...@xs4all.nl wrote: Andrew, can you merge this for 3.15 or 3.16 (you decide)? While it fixes a sparse error for the media subsystem, it is not really appropriate to go through our media tree. Thanks, Hans When running

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-06-02 Thread Andrew Morton
On Tue, 2 Jun 2015 17:23:00 +0200 Jan Kara j...@suse.cz wrote: That's a lump of new code which many kernels won't be needing. Can we put all this in a new .c file and select it within drivers/media Kconfig? So the attached patch should do what you had in mind. OK? lgtm.

Re: [PATCH 0/9] Helper to abstract vma handling in media layer

2015-06-22 Thread Andrew Morton
On Wed, 10 Jun 2015 06:20:43 -0300 Mauro Carvalho Chehab mche...@osg.samsung.com wrote: I received this patch series with a new set of helper functions for mm, together with changes for media and DRM drivers. As this stuff is actually mm code, I prefer if this got merged via your tree.

Re: [PATCH 0/9] Helper to abstract vma handling in media layer

2015-06-11 Thread Andrew Morton
On Thu, 11 Jun 2015 11:08:47 +0200 Hans Verkuil hverk...@xs4all.nl wrote: I discovered a regression on a prerequisite patch merged in the media tree that until solved prevents parts of this patch series from going in. See: http://www.mail-archive.com/linux-media@vger.kernel.org/msg89538.html

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-05-28 Thread Andrew Morton
On Wed, 13 May 2015 15:08:08 +0200 Jan Kara j...@suse.cz wrote: Provide new function get_vaddr_frames(). This function maps virtual addresses from given start and fills given array with page frame numbers of the corresponding pages. If given start belongs to a normal vma, the function grabs

Re: [RFC PATCH v2] lib: scatterlist: add sg splitting function

2015-08-03 Thread Andrew Morton
On Sat, 1 Aug 2015 15:17:13 +0200 Robert Jarzmik robert.jarz...@free.fr wrote: Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each one filling a part of it. A

Re: [RFC PATCH v2] lib: scatterlist: add sg splitting function

2015-08-04 Thread Andrew Morton
On Tue, 04 Aug 2015 19:04:36 +0200 Robert Jarzmik robert.jarz...@free.fr wrote: Andrew Morton a...@linux-foundation.org writes: include/linux/scatterlist.h | 5 ++ lib/scatterlist.c | 189 2 files changed, 194 insertions

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-07-17 Thread Andrew Morton
this. I think I already acked this but it got lost. Acked-by: Andrew Morton a...@linux-foundation.org -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] lib: scatterlist: add sg splitting function

2015-08-24 Thread Andrew Morton
On Mon, 24 Aug 2015 14:15:08 -0600 Jens Axboe ax...@kernel.dk wrote: On 08/08/2015 02:44 AM, Robert Jarzmik wrote: Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each

Re: [PATCH] remove lots of IS_ERR_VALUE abuses

2016-05-27 Thread Andrew Morton
On Fri, 27 May 2016 23:23:25 +0200 Arnd Bergmann wrote: > Most users of IS_ERR_VALUE() in the kernel are wrong, as they > pass an 'int' into a function that takes an 'unsigned long' > argument. This happens to work because the type is sign-extended > on 64-bit architectures before

Re: [PATCH] string.h: work around for increased stack usage

2017-12-05 Thread Andrew Morton
On Tue, 5 Dec 2017 22:51:19 +0100 Arnd Bergmann wrote: > The hardened strlen() function causes rather large stack usage in at > least one file in the kernel, in particular when CONFIG_KASAN is enabled: > > drivers/media/usb/em28xx/em28xx-dvb.c: In function 'em28xx_dvb_init': >