Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-02-11, 01:26 AM   #1
rprabhu
Registered User
 
Join Date: Jan 2011
Posts: 7
Default [BUG] Ioremap error with nvidia in 2.6.38-rc6

When testing 2.6.38-rc6, while starting xorg I noticed following


===========================================
Code:
Feb 27 21:53:12 localhost kernel: [  622.957621] ioremap error for 0xbbffe000-0xbbfff000, requested 0x10, got 0x0
Feb 27 21:53:12 localhost kernel: [  622.957626] ioremap error for 0xbbffe000-0xbbfff000, requested 0x10, got 0x0
Feb 27 21:53:12 localhost kernel: [  622.957631] ioremap error for 0xbbffe000-0xbbfff000, requested 0x10, got 0x0
Feb 27 21:53:12 localhost kernel: [  622.957636] ioremap error for 0xbbffe000-0xbbfff000, requested 0x10, got 0x0
=======================================

Going by the kernel source, I noticed that request and response are differing over the cacheability of the memory region.

Sifting through the kernel git, I noticed

http://git.kernel.org/?p=linux/kerne...69e069dc2e0b8d

So, this looks like the culprit.

For Intel 9 code, they have made following change,

http://git.kernel.org/?p=linux/kerne...c62f65e0851fd3

Now, looking at the nvidia module source code -- os-interface.c I observed call to os_map_kernel_space being made. The bug may be in calling with wrong mode for opregion (the term used in above commits)

Edit:
Is changing NV_IOREMAP_NOCACHE(vaddr, start, size_bytes) to NV_IOREMAP(vaddr, start, size_bytes) for NV_MEMORY_DEFAULT going to fix this ?
rprabhu is offline   Reply With Quote
Old 03-02-11, 07:26 AM   #2
oyvind
Registered User
 
Join Date: May 2004
Location: Norway
Posts: 117
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

I'm seeing these errors as well, using nvidia 270.29 + 2.6.38-rc6-based kernel (built for Lucid x86-64 by Ubuntu kernel PPA).

[ 10.560094] ioremap error for 0xbf67c000-0xbf67d000, requested 0x10, got 0x0
[ 10.560127] ioremap error for 0xbf76d000-0xbf76e000, requested 0x10, got 0x0
[ 10.560130] ioremap error for 0xbf76d000-0xbf76e000, requested 0x10, got 0x0
[ 10.560133] ioremap error for 0xbf76d000-0xbf76e000, requested 0x10, got 0x0
[ 10.560136] ioremap error for 0xbf76d000-0xbf76e000, requested 0x10, got 0x0
[ 10.560139] ioremap error for 0xbf766000-0xbf767000, requested 0x10, got 0x0
[ 10.560142] ioremap error for 0xbf74d000-0xbf74e000, requested 0x10, got 0x0
oyvind is offline   Reply With Quote
Old 03-13-11, 04:15 PM   #3
gilboa
Linux addict...
 
Join Date: Jan 2004
Posts: 540
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

Seeing the same, 260.19.36, 2.6.38rc6.
Funny thing though, I'm seeing this on an AMD machine, but the same driver/kernel combo works just fine on a Xeon workstation.

rprabhu,

Have you had any luck finding which io*remap call fails?

- Gilboa
__________________
DEV-NG: Intel S2600C0, 2xE52658V2, 32GB, 4x2TB, GTX680, F19/x86_64, Dell U2711.
DEV: Intel S5520SC, 2xX5680, 36GB, 5x320GB, GTX550, F19/x86_64, Dell U2711 (^).
SRV: Tyan Tempest i5400XT, 2xE5335, 8GB, 4x2TB, 9800GTX, F19/x86-64, Dell U2412.
LAP: ASUS N56VJ, i7-3630QM, 16GB, 1TB, 635M, F19/x86_64.
gilboa is offline   Reply With Quote
Old 03-13-11, 04:20 PM   #4
gilboa
Linux addict...
 
Join Date: Jan 2004
Posts: 540
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

FWIW:

$ cat /var/log/messages | grep ioremap
Mar 13 09:21:13 gilboa-wx-dev kernel: [ 93.732328] ioremap error for 0xbfcf3000-0xbfcf4000, requested 0x10, got 0x0
Mar 13 22:53:26 gilboa-wx-dev kernel: [48826.547871] ioremap error for 0xbfcf3000-0xbfcf4000, requested 0x10, got 0x0
$ cat /proc/iomem | grep bfcf3000
bfcf3000-bfcfffff : ACPI Tables
__________________
DEV-NG: Intel S2600C0, 2xE52658V2, 32GB, 4x2TB, GTX680, F19/x86_64, Dell U2711.
DEV: Intel S5520SC, 2xX5680, 36GB, 5x320GB, GTX550, F19/x86_64, Dell U2711 (^).
SRV: Tyan Tempest i5400XT, 2xE5335, 8GB, 4x2TB, 9800GTX, F19/x86-64, Dell U2412.
LAP: ASUS N56VJ, i7-3630QM, 16GB, 1TB, 635M, F19/x86_64.
gilboa is offline   Reply With Quote
Old 03-14-11, 10:27 AM   #5
rprabhu
Registered User
 
Join Date: Jan 2011
Posts: 7
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

Quote:
Originally Posted by gilboa View Post
Seeing the same, 260.19.36, 2.6.38rc6.
Funny thing though, I'm seeing this on an AMD machine, but the same driver/kernel combo works just fine on a Xeon workstation.

rprabhu,

Have you had any luck finding which io*remap call fails?

- Gilboa
It is not related to Intel in anyway. I just quoted the Intel commit to show similarity. You can look at os_map_kernel_space function in os-interface.c to see the callpoints. I think it may require a fix in the closed part of the driver. Also, related to your latter comment, yes, it is related to ACPI (check the other commit in my comment which caused this).
rprabhu is offline   Reply With Quote
Old 03-17-11, 01:50 AM   #6
rprabhu
Registered User
 
Join Date: Jan 2011
Posts: 7
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

Has this bug been fixed ? It seems to be crashing the system last time I used (which was rc8). This is important since .38 has been released and distro packagers will be blocked on this.
rprabhu is offline   Reply With Quote
Old 03-17-11, 10:31 AM   #7
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

A bug has been filed and we'll address the problem in a future release. It shouldn't cause any crashes - the mapping request's memory type is modified to match the kernel's mappings' memory type.
zander is offline   Reply With Quote
Old 03-17-11, 02:24 PM   #8
rprabhu
Registered User
 
Join Date: Jan 2011
Posts: 7
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

Quote:
Originally Posted by zander View Post
A bug has been filed and we'll address the problem in a future release. It shouldn't cause any crashes - the mapping request's memory type is modified to match the kernel's mappings' memory type.
Good to hear that, thanks. I had crash only once with it (of course i switched back to 37 after crash). Another place (and the reason why I presumed the crash was due to it) it caused a nuisance of sorts was when using OSSv4 for sound, it was causing a lot of crackling noise in the speaker while playing music, with ALSA I have had no such issues though (but crash happened when using ALSA).
rprabhu is offline   Reply With Quote

Old 03-19-11, 02:26 PM   #9
rprabhu
Registered User
 
Join Date: Jan 2011
Posts: 7
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

Edit: Correction, The crash was not related to nvidia, but I have seen those Xid messages in my dmesg nevertheless.


My laptop crashed again (hard crash, no sysrq possible, so most probably graphics related).

This may be related

Code:
Mar 19 22:34:35 localhost kernel: [39218.242039] NVRM: Xid (0000:02:00): 56, CMDre 00000003 000000c0 b0ef122d 00000007 00000000
Mar 19 22:34:35 localhost kernel: [39218.242054] NVRM: Xid (0000:02:00): 56, CMDre 00000004 000000c0 b0ef122d 00000007 00000000
Above message was in my kernel log. That looks to be related to nvidia.

I am also attaching a bug report generated from nvidia-bug-report.
Attached Files
File Type: gz nvidia-bug-report.log.gz (52.0 KB, 64 views)

Last edited by rprabhu; 03-21-11 at 09:44 AM.
rprabhu is offline   Reply With Quote
Old 03-21-11, 05:50 AM   #10
gilboa
Linux addict...
 
Join Date: Jan 2004
Posts: 540
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

Thus far, no crashes on my side - only very slow performance. (DRI is enabled)

- Gilboa
__________________
DEV-NG: Intel S2600C0, 2xE52658V2, 32GB, 4x2TB, GTX680, F19/x86_64, Dell U2711.
DEV: Intel S5520SC, 2xX5680, 36GB, 5x320GB, GTX550, F19/x86_64, Dell U2711 (^).
SRV: Tyan Tempest i5400XT, 2xE5335, 8GB, 4x2TB, 9800GTX, F19/x86-64, Dell U2412.
LAP: ASUS N56VJ, i7-3630QM, 16GB, 1TB, 635M, F19/x86_64.
gilboa is offline   Reply With Quote
Old 05-15-11, 02:48 PM   #11
Sky777
Registered User
 
Join Date: May 2007
Posts: 65
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

with 2.6.38 and 270.41.06 I also have the

Quote:
[ 31.774550] ioremap error for 0xffb0000-0xffb1000, requested 0x10, got 0x0
may be due to this my usb wireless keyboard doesn't work
Attached Files
File Type: gz nvidia-bug-report.log.gz (65.1 KB, 60 views)
__________________
PCI Sparkle GeForce 8400 GPU G98 A2 512 MB + AMD Sempron(tm) Processor 2800+ + svn Mplayer + xine-vdpau rev. 279 + vdr 1.7.9 & Nvidia 190.25 + XBMC
Sky777 is offline   Reply With Quote
Old 05-20-11, 04:23 PM   #12
danix
NVIDIA Corporation
 
danix's Avatar
 
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
Default Re: [BUG] Ioremap error with nvidia in 2.6.38-rc6

We fixed some issues that we believe to be related to this in 270.41.19 and 275.09.
danix is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:56 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.