From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161035AbVKQAHQ (ORCPT ); Wed, 16 Nov 2005 19:07:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161031AbVKQAHQ (ORCPT ); Wed, 16 Nov 2005 19:07:16 -0500 Received: from 219-75-232-131.eonet.ne.jp ([219.75.232.131]:13074 "HELO viper2.netfort.gr.jp") by vger.kernel.org with SMTP id S1030576AbVKQAHO (ORCPT ); Wed, 16 Nov 2005 19:07:14 -0500 Date: Thu, 17 Nov 2005 09:07:12 +0900 Message-ID: <87u0ecrvbj.dancerj%dancer@netfort.gr.jp> From: Junichi Uekawa To: "Nickolay V. Shmyrev" Cc: Linux and Kernel Video , Junichi Uekawa , Nick Piggin , Michael Krufky , linux-kernel@vger.kernel.org, debian-amd64@lists.debian.org Subject: Re: [x86_64] 2.6.14-git13 mplayer fails with "v4l2: ioctl queue buffer failed: Bad address" (2 Nov 2005, 11 Nov 2005) In-Reply-To: <1131834172.8368.6.camel@localhost.localdomain> References: <87fyqeicge.dancerj%dancer@netfort.gr.jp> <87wtjg5gh2.dancerj%dancer@netfort.gr.jp> <4373D087.5050908@linuxtv.org> <87psp859sd.dancerj%dancer@netfort.gr.jp> <43740F06.6030504@m1k.net> <87y83vl780.dancerj%dancer@netfort.gr.jp> <87ek5nb9ec.dancerj%dancer@netfort.gr.jp> <1131834172.8368.6.camel@localhost.localdomain> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/21.4 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, Verified that with the following patch, I can run mencoder fine. $ uname -a Linux dancer64 2.6.15-rc1dancer-gf6ff56cd #1 Thu Nov 17 08:18:33 JST 2005 x86_64 GNU/Linux Applied upon linus' git from yesterday: commit f6ff56cd56b83d8edf4b3cffc5c53c56b37a5081 tree 0ec4807d49a602ba785e60e5352b542f1581d4c9 parent fb6d73d3014babb69f5cc2d1d78b31e9d09fc5df parent 5a6f294e43e432bd207a702fea49ebb303ef9b23 author Linus Torvalds Tue Nov 15 16:59:38 UTC 2005 committer Linus Torvalds Tue Nov 15 16:59:38 UTC 2005 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 > > We have even found the hack that fix that problem: > > Index: linux/drivers/media/video/video-buf.c > =================================================================== > RCS file: /cvs/video4linux/v4l-kernel/linux/drivers/media/video/video-buf.c,v > retrieving revision 1.21 > diff -u -p -r1.21 video-buf.c > --- linux/drivers/media/video/video-buf.c 16 Oct 2005 12:13:58 -0000 > +++ linux/drivers/media/video/video-buf.c 12 Nov 2005 22:19:13 -0000 > @@ -1248,7 +1248,7 @@ int videobuf_mmap_mapper(struct videobuf > map->end = vma->vm_end; > map->q = q; > vma->vm_ops = &videobuf_vm_ops; > - vma->vm_flags |= VM_DONTEXPAND | VM_RESERVED; > + vma->vm_flags |= VM_DONTEXPAND; > vma->vm_flags &= ~VM_IO; /* using shared anonymous pages */ > vma->vm_private_data = map; > dprintk(1,"mmap %p: q=%p %08lx-%08lx pgoff %08lx bufs %d-%d\n", > > Somehow since 2.6.15-rc1 VM_RESERVED makes get_user_pages return EFAULT. I don't know the exact reason of > that behavior and the correct way to fix that problem. Just kernel interfaces changed once again, the old > point everyone knows. So if someone can explain it, that would be helpful. > regards, junichi -- dancer@{debian.org,netfort.gr.jp} Debian Project