git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30867 a95241bf-73f2-0310-859d-f6bbb57e9c96

This commit is contained in:
Rudolf Cornelissen 2009-05-26 18:34:05 +00:00
parent 2dc3fd4652
commit aeb4bf93d4
2 changed files with 16 additions and 6 deletions

View File

@ -106,11 +106,21 @@ status_t nv_acc_init_dma()
}
/* setup PTIMER: */
//fixme? how about NV28 setup as just after coldstarting? (see nv_info.c)
/* set timer numerator to 8 (in b0-15) */
ACCW(PT_NUMERATOR, 0x00000008);
/* set timer denominator to 3 (in b0-15) */
ACCW(PT_DENOMINATR, 0x00000003);
LOG(4,("ACC_DMA: timer numerator $%08x, denominator $%08x\n", ACCR(PT_NUMERATOR), ACCR(PT_DENOMINATR)));
/* The NV28 BIOS programs PTIMER like this (see coldstarting in nv_info.c) */
//ACCW(PT_NUMERATOR, (si->ps.std_engine_clock * 20));
//ACCW(PT_DENOMINATR, 0x00000271);
/* Nouveau (march 2009) mentions something like: writing 8 and 3 to these regs breaks the timings
* on the LVDS hardware sequencing microcode. A correct solution involves calculations with the GPU PLL. */
/* For now use BIOS pre-programmed values if there */
if (!ACCR(PT_NUMERATOR) || !ACCR(PT_DENOMINATR)) {
/* set timer numerator to 8 (in b0-15) */
ACCW(PT_NUMERATOR, 0x00000008);
/* set timer denominator to 3 (in b0-15) */
ACCW(PT_DENOMINATR, 0x00000003);
}
/* disable timer-alarm INT requests (b0) */
ACCW(PT_INTEN, 0x00000000);

View File

@ -92,7 +92,7 @@ status_t nv_general_powerup()
{
status_t status;
LOG(1,("POWERUP: Haiku nVidia Accelerant 0.90 running.\n"));
LOG(1,("POWERUP: Haiku nVidia Accelerant 0.91 running.\n"));
/* log VBLANK INT usability status */
if (si->ps.int_assigned)