diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-10-08 10:16:48 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-11-05 14:47:06 -0800 |
commit | 97f5ab6651a996ecefed73e41684422f3b29d9a8 (patch) | |
tree | 3a78cd25b38419df94fa5b2f91793f47b5d99b68 /drivers/gpu/drm/i915/i915_reg.h | |
parent | d8a2d0e00c0d5a0d55e14b884bff034205015e51 (diff) | |
download | lwn-97f5ab6651a996ecefed73e41684422f3b29d9a8.tar.gz lwn-97f5ab6651a996ecefed73e41684422f3b29d9a8.zip |
drm/i915: add render standby support
Render standy allows the GPU to power down the render unit when idle.
In order for this to work, it needs a page of graphics memory to save
state. This patch allocates that page and enables the feature on
supported chipsets.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 1687edf68795..51fd152f47f3 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -260,6 +260,8 @@ #define HWS_PGA 0x02080 #define HWS_ADDRESS_MASK 0xfffff000 #define HWS_START_ADDRESS_SHIFT 4 +#define PWRCTXA 0x2088 /* 965GM+ only */ +#define PWRCTX_EN (1<<0) #define IPEIR 0x02088 #define IPEHR 0x0208c #define INSTDONE 0x02090 @@ -769,7 +771,8 @@ /** GM965 GM45 render standby register */ #define MCHBAR_RENDER_STANDBY 0x111B8 - +#define RCX_SW_EXIT (1<<23) +#define RSX_STATUS_MASK 0x00700000 #define PEG_BAND_GAP_DATA 0x14d68 /* |