VRAM detection in controlfb.c
I recently added another 2MB of VRAM to my PM8500 with control video, and was dismayed when linux wouldn't recognize it. I remembered some discussion on this issue about a month ago, but I haven't seen anything since then.
I got the most recent version of the stable kernel, 2.2.15_pre20, and poked around a bit to try to understand what was going on. In the end, I just hardcoded the value of bank2 after line 725 in controlfb.c to 1, to override the kernel's failure to detect the memory in bank 2. It worked; I can now drive my 17" monitor at 1280x1024 @16bpp.
My question is, is the problem only with detecting the VRAM, or could there be problems addressing the VRAM as well if the kernel isn't able to detect it on its own.
(On a slightly unrelated issue, is control capable of resolutions greater than 1280x1024? I've never seen any documentation on it. MacOS doesn't give me the option of going higher, but I'm not sure if that means anything.)
Clint Hepner
Dartmouth College
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 15 lines · Clint Hepner
I recently added another 2MB of VRAM to my PM8500 with control video, and was dismayed when linux wouldn't recognize it. I remembered some discussion on this issue about a month ago, but I haven't seen anything since then.
I got the most recent version of the stable kernel, 2.2.15_pre20, and poked around a bit to try to understand what was going on. In the end, I just hardcoded the value of bank2 after line 725 in
controlfb.cto 1, to override the kernel's failure to detect the memory in bank 2. It worked; I can now drive my 17" monitor at 1280x1024 @16bpp.
Quoted 3 lines
My question is, is the problem only with detecting the VRAM, or could there be problems addressing the VRAM as well if the kernel isn't able to detect it on its own.
No, there shouldn't be any problems.
Two things: pre20 from Linus or from Cort's tree or from one of the others? Also, could I persuade you to see if 2.3 detects the memory properly?
I may just support a boot parameter for this if I can't figure it out...
Quoted 4 lines
(On a slightly unrelated issue, is control capable of resolutions greater than 1280x1024? I've never seen any documentation on it. MacOS doesn't give me the option of going higher, but I'm not sure if that means anything.)
I doubt it. If it is, Linux doesn't know how.
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| SCS Class of 2002 | | Debian GNU/Linux Developer __ Carnegie Mellon University | | [email protected] | | [email protected] | \--------------------------------/ \--------------------------------/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 21 lines · Daniel Jacobowitz
Quoted 15 lines · Clint Hepner
I recently added another 2MB of VRAM to my PM8500 with control video, and was dismayed when linux wouldn't recognize it. I remembered some discussion on this issue about a month ago, but I haven't seen anything since then.
I got the most recent version of the stable kernel, 2.2.15_pre20, and poked around a bit to try to understand what was going on. In the end, I just hardcoded the value of bank2 after line 725 in
controlfb.cto 1, to override the kernel's failure to detect the memory in bank 2. It worked; I can now drive my 17" monitor at 1280x1024 @16bpp.Quoted 3 lines
My question is, is the problem only with detecting the VRAM, or could there be problems addressing the VRAM as well if the kernel isn't able to detect it on its own.
Quoted 5 lines
No, there shouldn't be any problems.
Two things: pre20 from Linus or from Cort's tree or from one of the others? Also, could I persuade you to see if 2.3 detects the memory properly?
I got pre20 from Paul's tree, at linuxcare.com.au. I can try a 2.3 kernel, but probably not until Monday.
Clint Hepner
Dartmouth College
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi all,
On 28 Apr, this message from Daniel Jacobowitz echoed through cyberspace:
Quoted 5 lines · Clint Hepner
Quoted 3 lines
I recently added another 2MB of VRAM to my PM8500 with control video, and was dismayed when linux wouldn't recognize it.
Let me guess: you're running 2.2 kernel on an 8x00 machine....
Quoted 5 lines
Quoted 3 lines
My question is, is the problem only with detecting the VRAM, or could there be problems addressing the VRAM as well if the kernel isn't able to detect it on its own.
No, there shouldn't be any problems.
The problem lies in the detection. 2.2 and 2.3 kernels have different versions of the detection code; 2.2 will not work with 4MB on 8x00 machines, and 2.3 will not work with 4MB on 7x00 machines. So none of the two versions is what we need :-(
Quoted 2 lines
I may just support a boot parameter for this if I can't figure it out...
Considering that fewer and fewer people will use affected machines (they're starting to get old...), adding a boot parameter may be the right solution, except if by any magic we get at documentation from Apple. I'm no magician, however ;-)
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art. 23, Rue Paul Henkes | Ask Questions. Make Mistakes. L-1710 Luxembourg | email [email protected] | http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/