When the discrete graphic in COM21 slot,use it firstly
and the intergrate graphic can not work.
If nothing in pcie-slot(COM21),use the intergrate graphic.
pmon/cmds/bootparam.c: In this file, use the special->resource[0] to
pass the sharevram and vramsize to the kernel.And you must use special->resource[0]
to pass the two values.
NOTICE:
1, This function only work well for ati-card and nvida card do not be supportted.
Now,HD4500,HD4350 and HD5750 have been tested. They are OK.
2, When you open the CONFIG_UMA to use UMA modle in PMON, you can not use the discrete graphic.
Target:Bonito3a780e,Bonito3b780e,Bonito3c780e
When you use AST2050' VGA,you should open USE_BMC and VGA_BASE=0xb4000000 options.
Default:
rs780e vga option has been open:
USE_780E_VGA
VGA_BASE=0xbe000000
Targets: Bonito3aserver
Now support GFXUMA and GFXSP mode includes: SP mode (2G,4G)X(64M,128M),UMA mode
(2G,4G)X(64M,128M,256M,512M). Notice that: In UMA mode, change physical memory
address starting from 0x80000000 in order to satisfy 32-bit pci config address
access to internal gfx device. So This bios can go ok only with the suitable
kernel image in which pysical memory address also begins with 0x80000000. In UMA
mode, if glxgears is running, sometimes black screen will appear, this may be due
to it uses too much system bandwidth. While in SP mode, this problem never occures.
Now video frame buffer size can be assigned in configuration file:Bonito.3a780e,
Changing "VRAM_SIZE=128" means set video memory size to be 128M in UMA or SP mode.
No other code need to be changed. Notice: in GFX_SP mode, max video ram size is 128M
becasue of the graphic memory capacity limit in LS3A780E board at this moment.
Submmited and tested by xiaqichao@ict.ac.cn
Target:Bonito3a780e
Now all the video memory(128M) of the graphic memory chip on LS3A780E board
are availabe. By the way, enlarge usable PCI MEM size from 0x0400000 to
0x40000000, this size shoulde be enough for lots fo bridge chip groups at
this moment. Network, usb device and ps2 keyboard are all normal both in BIOS
and kernle. Thanks xiangy@lemote.com.
NOTICE HERE: the vga bios base address of gpu driver in kernle code should
be changed to 0xc7f00000 from original 0xc7f00000 if this patch is applied,
otherwise no vga or graphic output during boot kernel.
Target: Bonito3a780e
large video frame buffer up to 512M for bridge chip connected with HT bus.
It PASS test only in GUP_SP mode, which is the defalut mode in 3A780e branch of PMON.
Address space between 0x40000000 and 0x7fffffff is map to 1G memory space before, now
system momery size is at leaset 2G, so the space is left free to be used as PCI MEM space.
While PCI IO Space and HT Space is the same as before.
NOTICE: pci mem space base address need to be changed to 0x40000000 in kenrel source code
if this patch is applied, otherwise kernel will boot fail. If the bridge chip is connected
to PCIX controler in Loongson CPU, this patch should be changed to be applied.
Target: Bontio3a780e
1. Add Macro RS780E, USE_780E_VGA to indicate using 780e's vga with macro SERVER_3A to identify this board
2. Now framebuffer can only be accessed through pci mem address for tlb not configured properly
3. Device 2 and Device 3 should not be opened, otherwise VGA could not work
1. Porting the 3A+690E x86emu module to 2G+690e platform and it works
correctly.
2. The HT frequency is adjusted to 800MHz.
3. The start address of PCI IO and memory space are adjusted according
to the 3A+690E platform.
4. The framebuffer address(0xb0000000) doesn't map through TLB. The
pcitlb.c is added in start.S, but it doesn't work.
5. Fix the IO-read/write base from 0xa000_0000 to 0x0000_0000 in
sys/linux/io.h.