From c1a1413c4d1bcad363660262bba841d1fd9f6f18 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Thu, 14 Oct 2004 12:59:40 +0000 Subject: [PATCH] forcing PCI mode before coldstart exec: NV28 starts to show signs of life now... This might fix coldstart trouble on some cards outthere. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9342 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_info.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_info.c b/src/add-ons/accelerants/nvidia/engine/nv_info.c index 1fd3db06c1..a5f8254982 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_info.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_info.c @@ -262,6 +262,12 @@ static status_t coldstart_card(uint8* rom, uint16 init1, uint16 init2, uint16 in nv_crtc2_cursor_hide(); } + /* make sure AGP mode is OFF (confirmed NV28 getting into trouble otherwise!) */ + /* note: + * this _must_ be done _after_ the screens where shut-off as no + * (memory) transactions may be in progress during this command. */ + CFGW(AGPCMD, 0x00000000); + /* execute BIOS coldstart script(s) */ if (init1 || init2) { @@ -338,6 +344,12 @@ static status_t coldstart_card_516_up(uint8* rom, PinsTables tabs, uint16 ram_ta /* set timer denominator to 3 (in b0-15) */ // ACCW(PT_DENOMINATR, 0x00000003); + /* make sure AGP mode is OFF (confirmed NV28 getting into trouble otherwise!) */ + /* note: + * this _must_ be done _after_ the screens where shut-off as no + * (memory) transactions may be in progress during this command. */ + CFGW(AGPCMD, 0x00000000); + /* execute all BIOS coldstart script(s) */ if (tabs.InitScriptTablePtr) {