* [PATCH] replaced io_remap_page_range() with io_remap_pfn_range()
@ 2006-02-17 14:53 Freddy Spierenburg
2006-02-17 17:34 ` Jordan Crouse
0 siblings, 1 reply; 5+ messages in thread
From: Freddy Spierenburg @ 2006-02-17 14:53 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1.1: Type: text/plain, Size: 464 bytes --]
Hi,
Replaced the no longer existing io_remap_page_range() routine
with the io_remap_pfn_range() routine. Did not have a chance yet
to test the functionality of the driver, but at least the kernel
compiles cleanly again.
--
$ cat ~/.signature
Freddy Spierenburg <freddy@dusktilldawn.nl> http://snarl.nl/~freddy/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1 E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!
[-- Attachment #1.2: fb.patch --]
[-- Type: text/plain, Size: 691 bytes --]
diff -Naur master.orig/drivers/video/au1100fb.c master.good/drivers/video/au1100fb.c
--- master.orig/drivers/video/au1100fb.c 2006-02-17 10:57:28.000000000 +0000
+++ master.good/drivers/video/au1100fb.c 2006-02-17 14:05:58.000000000 +0000
@@ -50,6 +50,7 @@
#include <linux/interrupt.h>
#include <linux/ctype.h>
#include <linux/dma-mapping.h>
+#include <linux/platform_device.h>
#include <asm/mach-au1x00/au1000.h>
@@ -407,7 +408,7 @@
vma->vm_flags |= VM_IO;
- if (io_remap_page_range(vma, vma->vm_start, off,
+ if (io_remap_pfn_range(vma, vma->vm_start, off >> PAGE_SHIFT,
vma->vm_end - vma->vm_start,
vma->vm_page_prot)) {
return -EAGAIN;
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: replaced io_remap_page_range() with io_remap_pfn_range()
2006-02-17 14:53 [PATCH] replaced io_remap_page_range() with io_remap_pfn_range() Freddy Spierenburg
@ 2006-02-17 17:34 ` Jordan Crouse
2006-02-17 18:31 ` Freddy Spierenburg
0 siblings, 1 reply; 5+ messages in thread
From: Jordan Crouse @ 2006-02-17 17:34 UTC (permalink / raw)
To: Freddy Spierenburg; +Cc: linux-mips
I do believe that this fix is already upstream. Are you playing
with the latest kernel?
--
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: replaced io_remap_page_range() with io_remap_pfn_range()
2006-02-17 17:34 ` Jordan Crouse
@ 2006-02-17 18:31 ` Freddy Spierenburg
2006-02-17 20:09 ` Jordan Crouse
0 siblings, 1 reply; 5+ messages in thread
From: Freddy Spierenburg @ 2006-02-17 18:31 UTC (permalink / raw)
To: Jordan Crouse; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]
Hi Jordan,
On Fri, Feb 17, 2006 at 10:34:48AM -0700, Jordan Crouse wrote:
> I do believe that this fix is already upstream. Are you playing
> with the latest kernel?
I played with the latest git repository which I did got from:
$ git clone rsync://ftp.linux-mips.org/pub/scm/linux.git linux.git
and which I today updated using:
$ git pull git://ftp.linux-mips.org/pub/scm/linux.git
And just to make sure it's not upstream I checked out:
$ cg-clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
and just to be 100% sure linux-2.6.15.4.tar.bz2 with
patch-2.6.16-rc3.bz2 too.
I now think I covered it all, or am I still missing something?
Anyway, I did not find the problem fixed in any of these
repositories or tarballs so hence I shall send the patch to
Antonino Daplas later tonight or tomorrow.
--
$ cat ~/.signature
Freddy Spierenburg <freddy@dusktilldawn.nl> http://snarl.nl/~freddy/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1 E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: replaced io_remap_page_range() with io_remap_pfn_range()
2006-02-17 18:31 ` Freddy Spierenburg
@ 2006-02-17 20:09 ` Jordan Crouse
2006-02-18 8:49 ` Freddy Spierenburg
0 siblings, 1 reply; 5+ messages in thread
From: Jordan Crouse @ 2006-02-17 20:09 UTC (permalink / raw)
To: Freddy Spierenburg; +Cc: linux-mips
On 17/02/06 19:31 +0100, Freddy Spierenburg wrote:
> I now think I covered it all, or am I still missing something?
> Anyway, I did not find the problem fixed in any of these
> repositories or tarballs so hence I shall send the patch to
> Antonino Daplas later tonight or tomorrow.
Well, won't hurt, but don't be surprised if he says its fixed. I'm
looking at the lmo tree right now, and its very definately fixed at
au1200fb.c:1280. Either way, thanks for the patch.
Jordan
--
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: replaced io_remap_page_range() with io_remap_pfn_range()
2006-02-17 20:09 ` Jordan Crouse
@ 2006-02-18 8:49 ` Freddy Spierenburg
0 siblings, 0 replies; 5+ messages in thread
From: Freddy Spierenburg @ 2006-02-18 8:49 UTC (permalink / raw)
To: Jordan Crouse; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 669 bytes --]
Hi Jordan,
On Fri, Feb 17, 2006 at 01:09:44PM -0700, Jordan Crouse wrote:
> I'm looking at the lmo tree right now, and its very definately
> fixed at au1200fb.c:1280.
You are right when you say that au1200fb.c is fixed.That one was
fixed in all my source too. But I'm talking about au1100fb.c,
which was probably forgotten. Maybe I should have stated that in
my email, that it's about au1100fb.c. Sorry for the confusion!
--
$ cat ~/.signature
Freddy Spierenburg <freddy@dusktilldawn.nl> http://snarl.nl/~freddy/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1 E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-18 8:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-17 14:53 [PATCH] replaced io_remap_page_range() with io_remap_pfn_range() Freddy Spierenburg
2006-02-17 17:34 ` Jordan Crouse
2006-02-17 18:31 ` Freddy Spierenburg
2006-02-17 20:09 ` Jordan Crouse
2006-02-18 8:49 ` Freddy Spierenburg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.