Comments
Patch
===================================================================
@@ -48,7 +48,7 @@
* 0x0 for Refresh Disabled (Self Refresh)
* 0x1 for Refresh interval 15.6 us for 133MHz
* 0x2 for Refresh interval 7.8 us for 133MHz
- * 0x7 /* Refresh interval 128 Clocks. (Fast Refresh Mode)
+ * 0x7 for Refresh interval 128 Clocks. (Fast Refresh Mode)
*/
#define RAM_COMMAND_REFRESH 0x1
===================================================================
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <bitops.h>
+#include <boot/tables.h>
#include "chip.h"
#include "i82830.h"
@@ -88,6 +89,18 @@
return tolm;
}
+/* IDG memory */
+uint64_t uma_memory_base=0, uma_memory_size=0;
+
+int add_northbridge_resources(struct lb_memory *mem)
+{
+ printk_debug("Adding UMA memory area\n");
+ lb_add_memory_range(mem, LB_MEM_RESERVED,
+ uma_memory_base, uma_memory_size);
+
+ return 0;
+}
+
#if CONFIG_WRITE_HIGH_TABLES==1
#define HIGH_TABLES_SIZE 64 // maximum size of high tables in KB
extern uint64_t high_tables_base, high_tables_size;
@@ -115,9 +128,14 @@
* i.e. 1 means 32MB.
*/
tomk = ((unsigned long)pci_read_config8(mc_dev, DRB + 3)) << 15;
+ printk_debug("%dM UMA\n", igd_memory >> 10);
tomk -= igd_memory;
- printk_debug("Memory detected: %ldKB RAM\n", tomk);
+ /* For reserving UMA memory in the memory map */
+ uma_memory_base = tomk * 1024ULL;
+ uma_memory_size = igd_memory * 1024ULL;
+ printk_debug("Available memory: %dKB\n", tomk);
+
/* Compute the top of low memory. */
tolmk = pci_tolm >> 10;
if (tolmk >= tomk) {
===================================================================
@@ -10,6 +10,7 @@
select UDELAY_TSC
select BOARD_ROMSIZE_KB_512
select HAVE_SMI_HANDLER
+ select GFXUMA
config MAINBOARD_DIR
string
===================================================================
@@ -10,6 +10,7 @@
select UDELAY_TSC
select BOARD_ROMSIZE_KB_512
select HAVE_SMI_HANDLER
+ select GFXUMA
config MAINBOARD_DIR
string
This patch adds support for gfxuma memory region for i82830 onboard graphics. Signed-off-by: Joseph Smith <joe@settoplinux.org>