From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Thiel Subject: Re: Neomagic fb driver oopses with linux 2.5 Date: Tue, 12 Aug 2003 10:55:40 +0200 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 Return-path: In-Reply-To: (James Simmons's message of "Fri, 25 Jul 2003 00:51:53 +0100 (BST)") Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: James Simmons Cc: linux-fbdev-devel@sourceforge.net Hello, I think I have narrowed down the problem quite a bit, but I am not sure how to actually fix it. Basically the problem is that for my setup the value of yres_virtual in struct fb_var_screeninfo never changes from the initial value of 30000. As my machine only has 2MB of video memory, I get an oops when var->yoffset becomes larger than about 2048. Searching a bit further I found that the virtual resolution is supposed to be set in neofb_check_var, but this function is never called. Does this help to fix the problem? Alex James Simmons writes: >> The machine is a Sony Vaio PCG-505FX, lspci reports the graphic chip as >> 00:08.0 VGA compatible controller: Neomagic Corporation NM2160 [MagicGraph 128XD] (rev 01) > > My new laptop is a NeoMagic again so I can test it out. > >> Kernel is 2.5.75 compiled with gcc 2.95.4. Here is the decoded oops, >> this one is with the patches applied. >> >> Unable to handle kernel paging request<1>Unable to handle kernel paging request at virtual address c4c011c0 >> c01e2d03 >> *pde = 010d8067 >> Oops: 0002 [#1] >> CPU: 0 >> EIP: 0060:[] Not tainted >> Using defaults from ksymoops -t elf32-i386 -a i386 >> EFLAGS: 00010246 >> eax: 00000000 ebx: 0000004b ecx: c02a9fe0 edx: c4c011c0 >> esi: 00000004 edi: 00000130 ebp: 00000000 esp: c2eeda34 >> ds: 007b es: 007b ss: 0068 >> Stack: c10f8584 c10b8ac6 ffffffff 00000026 00000010 c02da2cc c10b8cb4 c4c011c0 >> 07070707 00000000 c3f53378 c2eeda94 c10b8cda e0eeda9c c01d1b67 c02da2cc >> c2eeda94 c2eeda94 c02da2cc c3f53378 002ea7d7 c02da418 c2eeda94 c8f52288 >> Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] >> Code: 89 02 83 c2 04 89 54 24 1c 85 f6 75 09 be 08 00 00 00 ff 44 >> >> >> >>EIP; c01e2d03 <===== >> >> >>ecx; c02a9fe0 >> >>edx; c4c011c0 <__crc_single_release+39ecce/3f2bab> >> >>esp; c2eeda34 <__crc_xfrm_policy_register_afinfo+2f842/6cfe28> >> >> Trace; c01d1b67 >> Trace; c01e1167 >> Trace; c01d8577 >> Trace; c012627b <__lock_page+a3/ac> >> Trace; c01d939e >> Trace; c01ba538 >> Trace; c0114286 <__call_console_drivers+3e/50> >> Trace; c01142eb <_call_console_drivers+53/58> >> Trace; c01143c9 >> Trace; c01145ae >> Trace; c0114537 >> Trace; c011005b >> Trace; c010fe00 >> Trace; c01e2aad >> Trace; c01e2aad >> Trace; c0108d0d >> Trace; c01e1a2d >> Trace; c01e19d0 >> Trace; c01e1fe3 >> Trace; c01e1167 >> Trace; c01e1107 >> Trace; c01d868b >> Trace; c01da118 >> Trace; c01b6652 >> Trace; c01b7ba0 >> Trace; c01b8f22 >> Trace; c01ba13a >> Trace; c01ba7a6 >> Trace; c01ac1ab >> Trace; c01ae33c >> Trace; c0111484 >> Trace; c0111484 >> Trace; c01a9829 >> Trace; c01ae1f4 >> Trace; c013c0ac >> Trace; c013c159 >> Trace; c0108aa7 >> >> Code; c01e2d03 >> 00000000 <_EIP>: >> Code; c01e2d03 <===== >> 0: 89 02 mov %eax,(%edx) <===== >> Code; c01e2d05 >> 2: 83 c2 04 add $0x4,%edx >> Code; c01e2d08 >> 5: 89 54 24 1c mov %edx,0x1c(%esp,1) >> Code; c01e2d0c >> 9: 85 f6 test %esi,%esi >> Code; c01e2d0e >> b: 75 09 jne 16 <_EIP+0x16> >> Code; c01e2d10 >> d: be 08 00 00 00 mov $0x8,%esi >> Code; c01e2d15 >> 12: ff 44 00 00 incl 0x0(%eax,%eax,1) > > I did a assembly dump of my cfbimgblt.o and I couldn't match the code up. > Strange I can't figure it out. I will try turning of hardware accel on > mine. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01