Bug#508999: more on 508999 (lenny with wrong frequencies on Radeon Xpress 200)

Alex Deucher alexdeucher at gmail.com
Mon Dec 22 01:18:48 PST 2008


On Sat, Dec 20, 2008 at 1:48 PM, Bernhard R. Link <brlink at debian.org> wrote:
> Looking at the radeon_drv sources, it looks like those are only
> accessing 8 bit at RADEON_CLOCK_CNTL_INDEX and not the whole int that
> radeontool is writing, changing that in the driver via
>
> --- xserver-xorg-video-ati-6.9.0/src/radeon_driver.c    2008-12-20 19:06:32.000000000 +0100
> +++ xserver-xorg-video-ati-6.9.0/src/radeon_driver.c    2008-12-20 18:29:24.000000000 +0100
> @@ -544,7 +544,7 @@
>     unsigned char *RADEONMMIO = info->MMIO;
>     uint32_t       data;
>
> -    OUTREG8(RADEON_CLOCK_CNTL_INDEX, addr & 0x3f);
> +    OUTREG(RADEON_CLOCK_CNTL_INDEX, addr & 0x3f);
>     RADEONPllErrataAfterIndex(info);
>     data = INREG(RADEON_CLOCK_CNTL_DATA);
>     RADEONPllErrataAfterData(info);
> @@ -558,7 +558,7 @@
>     RADEONInfoPtr  info       = RADEONPTR(pScrn);
>     unsigned char *RADEONMMIO = info->MMIO;
>
> -    OUTREG8(RADEON_CLOCK_CNTL_INDEX, (((addr) & 0x3f) |
> +    OUTREG(RADEON_CLOCK_CNTL_INDEX, (((addr) & 0x3f) |
>                                      RADEON_PLL_WR_EN));
>     RADEONPllErrataAfterIndex(info);
>     OUTREG(RADEON_CLOCK_CNTL_DATA, data);
>
> fixes my problem (i.e. I get a working display, and it still works after
> switching to virtual console and back and changing resolutions and all those
> things).
>
> I fear that might be the case because it is overwriting some other data
> in there that causes this, but I guess to know this someone with
> knowledge about this registers is needed...

We only use the lower 8 bits because bits 9:8 select the pll dividers
to use; changing it breaks some chips.  Some rv410 chips have a
similar issue.  Does this patch fix it for you?

Alex
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debian508999.diff
Url: http://lists.x.org/archives/xorg-driver-ati/attachments/20081222/2958cff0/attachment.ksh 


More information about the xorg-driver-ati mailing list