diff options
author | Dave Airlie <airlied@redhat.com> | 2010-02-18 00:58:36 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-22 18:46:21 -0500 |
commit | f735261baab3a275a273533c391d2d1b86a9e66a (patch) | |
tree | 7e54979f5d13a846866a8a5c477237b43b41198e /drivers/gpu/drm/radeon/avivod.h | |
parent | b4fe945405e477cded91772b4fec854705443dd5 (diff) |
[rfc] drm/radeon/kms: pm debugging check for vbl.
This patch adds a check on avivo chips to see if we are in the VBL
region for the active crtcs when we trigger the engine change.
I appear to have glitches locally on pm transistion (not sure all
fixes are in yet) and this at least seems to be correct here,
maybe others can test on systems with no glitches.
Diffstat (limited to 'drivers/gpu/drm/radeon/avivod.h')
-rw-r--r-- | drivers/gpu/drm/radeon/avivod.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/avivod.h b/drivers/gpu/drm/radeon/avivod.h index d4e6e6e4a938..3c391e7e9fd4 100644 --- a/drivers/gpu/drm/radeon/avivod.h +++ b/drivers/gpu/drm/radeon/avivod.h | |||
@@ -30,11 +30,13 @@ | |||
30 | 30 | ||
31 | #define D1CRTC_CONTROL 0x6080 | 31 | #define D1CRTC_CONTROL 0x6080 |
32 | #define CRTC_EN (1 << 0) | 32 | #define CRTC_EN (1 << 0) |
33 | #define D1CRTC_STATUS 0x609c | ||
33 | #define D1CRTC_UPDATE_LOCK 0x60E8 | 34 | #define D1CRTC_UPDATE_LOCK 0x60E8 |
34 | #define D1GRPH_PRIMARY_SURFACE_ADDRESS 0x6110 | 35 | #define D1GRPH_PRIMARY_SURFACE_ADDRESS 0x6110 |
35 | #define D1GRPH_SECONDARY_SURFACE_ADDRESS 0x6118 | 36 | #define D1GRPH_SECONDARY_SURFACE_ADDRESS 0x6118 |
36 | 37 | ||
37 | #define D2CRTC_CONTROL 0x6880 | 38 | #define D2CRTC_CONTROL 0x6880 |
39 | #define D2CRTC_STATUS 0x689c | ||
38 | #define D2CRTC_UPDATE_LOCK 0x68E8 | 40 | #define D2CRTC_UPDATE_LOCK 0x68E8 |
39 | #define D2GRPH_PRIMARY_SURFACE_ADDRESS 0x6910 | 41 | #define D2GRPH_PRIMARY_SURFACE_ADDRESS 0x6910 |
40 | #define D2GRPH_SECONDARY_SURFACE_ADDRESS 0x6918 | 42 | #define D2GRPH_SECONDARY_SURFACE_ADDRESS 0x6918 |