# HG changeset patch # User nick # Date 1012652151 0 # Node ID dc9d7686ea4a67b649d8822528fdd5c97a4dcecb # Parent 0d9a096cfd465b4e94cb7cc05078a45cd5bd36bf using MTRR diff -r 0d9a096cfd46 -r dc9d7686ea4a vidix/drivers/radeon_vid.c --- a/vidix/drivers/radeon_vid.c Sat Feb 02 12:14:56 2002 +0000 +++ b/vidix/drivers/radeon_vid.c Sat Feb 02 12:15:51 2002 +0000 @@ -679,6 +679,7 @@ int vixInit( void ) { + int err; if(!probed) { printf(RADEON_MSG" Driver was not probed but is being initializing\n"); @@ -692,6 +693,8 @@ memset(&besr,0,sizeof(bes_registers_t)); radeon_vid_make_default(); printf(RADEON_MSG" Video memory = %uMb\n",radeon_ram_size/0x100000); + err = mtrr_set_type(pci_info.base0,radeon_ram_size,MTRR_TYPE_WRCOMB); + if(!err) printf(RADEON_MSG" Set write-combining type of video memory\n"); return 0; }