<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jake,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>That is exactly what I needed. Patch
34113 worked like a charm.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks for the help!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jonathan<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Here ya go Jonathan,<br>
<a href="http://patchwork.ozlabs.org/patch/34047/">http://patchwork.ozlabs.org/patch/34047/</a><br>
<a href="http://patchwork.ozlabs.org/patch/34113/">http://patchwork.ozlabs.org/patch/34113/</a><br>
<br>
Both patches work for my situation, but I went with the second set as a final
patch(34113).<br>
<br>
- Jake Magee<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Thu, Oct 22, 2009 at 3:57 PM, Jonathan Haws <<a
href="mailto:Jonathan.Haws@sdl.usu.edu">Jonathan.Haws@sdl.usu.edu</a>>
wrote:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>All,<br>
<br>
I am using a 405EX CPU on a custom board. The layout and hardware is very
similar to the AMCC Kilauea board. Here is the output of uname -a:<br>
<br>
Linux (none) 2.6.30.3-wolverine-dirty #3 PREEMPT Thu Sep 10 11:41:37 MDT 2009
ppc unknown<br>
<br>
I am getting the following BUG output when my program exits:<br>
<br>
BUG: Bad page map in process main pte:980005d7 pmd:0d840400<br>
addr:48000000 vm_flags:400844fb anon_vma:(null) mapping:cd8454f8 index:98000<br>
vma->vm_file->f_op->mmap: fpga_mmap+0x0/0x178 [fpgaDriver]<br>
Call Trace:<br>
[cd84dc40] [c0006f0c] show_stack+0x44/0x16c (unreliable)<br>
[cd84dc80] [c00ba314] print_bad_pte+0x140/0x1d0<br>
[cd84dcb0] [c00ba3ec] vm_normal_page+0x48/0x50<br>
[cd84dcc0] [c00bb2ec] unmap_vmas+0x214/0x614<br>
[cd84dd40] [c00bffe0] exit_mmap+0xd0/0x1b4<br>
[cd84dd70] [c0031e40] mmput+0x50/0x134<br>
[cd84dd80] [c0036470] exit_mm+0x114/0x13c<br>
[cd84ddb0] [c0037d80] do_exit+0xc0/0x68c<br>
[cd84de00] [c0038390] do_group_exit+0x44/0xd8<br>
[cd84de10] [c0044468] get_signal_to_deliver+0x1f8/0x430<br>
[cd84de70] [c0008224] do_signal+0x54/0x29c<br>
[cd84df40] [c0010d5c] do_user_signal+0x74/0xc4<br>
<br>
I have an FPGA on the PCIe bus that I am mapping BAR0 to user space with a call
to mmap(). The mapping works just fine and I can access all the registers
in the BAR without a problem. However, on exit this comes up.<br>
<br>
A Google search showed tons of people with similar problems in standard
distributions (Ubuntu primarily), but no resolutions.<br>
<br>
Has anyone seen this crop up before and know what the issue is? I include
any source code, if that is required.<br>
<br>
Thanks!<br>
<br>
Jonathan<br>
<br>
<br>
<br>
_______________________________________________<br>
Linuxppc-dev mailing list<br>
<a href="mailto:Linuxppc-dev@lists.ozlabs.org">Linuxppc-dev@lists.ozlabs.org</a><br>
<a href="https://lists.ozlabs.org/listinfo/linuxppc-dev" target="_blank">https://lists.ozlabs.org/listinfo/linuxppc-dev</a><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>