Skip to contentSkip to conversation

can't access video memory?

DISCUSSION Zack Smith 2 participants 2 messages Sep 9, 2005 – Sep 10, 2005 Framebuffer layer

lore
Share & tools
lore

Zack Smith

author
#0 lore raw

Hi all,

As an experiment I tried accessing a part of (shared) video memory on my system that is not being used for display data, and this caused the kernel to crash. I have 6 megs of space and the display is using only half, but accessing above the 3 meg mark causes the problem. Accessing the lower 3 megs works fine.

Does anyone know what might cause this?

Thanks,
Zack Smith

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

#1 lore raw
Quoted 9 lines · Zack Smith

Hi all,

As an experiment I tried accessing a part of (shared) video memory on my system that is not being used for display data, and this caused the kernel to crash. I have 6 megs of space and the display is using only half, but accessing above the 3 meg mark causes the problem. Accessing the lower 3 megs works fine.

Does anyone know what might cause this?

Depends on the driver. It's possible that the driver did not ioremap the entire graphics aperture (ie ioremapped only the first 3 megs). Or the driver set info->fix.smem_len to only 3 MB instead of 6.

Some drivers are now differentiating between remapped size vs actual physical size (radeonfb). info->screen_size, if not zero, tells the amount of the remapped size while info->fix.smem_len, the actual physical size.

Tony

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf