[LinuxBIOS] status update - K8T890/VT8237

Rudolf Marek r.marek at assembler.cz
Thu Jul 12 12:43:27 CEST 2007


> Great news!

Yeah but I will need some help!

I have still problems with the RAM versus PCI MMIO. I think I found the problem:

LinuxBIOSv2/src/northbridge/amd/amdk8/northbridge.c:559

       resource->base = 0xa0000;
         resource->size = 0x20000;

         /* write the resource to the hardware */
         reg  = resource->index & 0xfc;
         base  = f1_read_config32(reg);
         limit = f1_read_config32(reg + 0x4);
         base  &= 0x000000f0;
         base  |= (resource->base >> 8) & 0xffffff00;
         base  |= 3;
     limit &= 0x00000048;
         limit |= ((resource->base + resource->size) >> 8) & 0xffffff00;
         limit |= (resource->index & 3) << 4;
         limit |= (nodeid & 7);
         f1_write_config32(reg + 0x4, limit);
         f1_write_config32(reg, base);

I think there is missing -1

((resource->base + resource->size - 1) >> 8) & 0xffffff00;

After this fix the MMIO for VGA is from A0000 to BFFFF

BUT! The VGA ROM seems to be mapped to C8000! How is this possible? Why is 
linuxbios claiming that the RAM is from C0000-EFFFF???

Where/what is wrong? How got the ROM there anyway? (MTRRs? VGA chip? PCI config???)

Thank you,

Rudolf







More information about the coreboot mailing list