aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorRoy Spliet <r.spliet@student.tudelft.nl>2010-09-17 17:17:24 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-10-04 19:57:32 -0400
commit7760fcb020b41352af4e675ce65a6aa0e93c170f (patch)
treed978de4a7f9d53f152c944f7254fdd0d90901b47 /drivers/gpu/drm/nouveau/nouveau_drv.h
parent5b32165b044f7d2486e2815456b1b2894aaab4ee (diff)
drm/nouveau: Import initial memory timing work
This isn't correct everywhere yet, but since we don't use the data yet it's perfectly safe to push in, and the information we gain from logs will help to fix the remaining issues. v2 (Ben Skeggs <bskeggs@redhat.com>): - fixed up formatting - free parsed timing info on takedown - switched timing table printout to debug loglevel Signed-off-by: Roy Spliet <r.spliet@student.tudelft.nl> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 799cd149745d..e1fb2c95eb90 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -401,10 +401,28 @@ struct nouveau_pm_threshold_temp {
401 s16 fan_boost; 401 s16 fan_boost;
402}; 402};
403 403
404struct nouveau_pm_memtiming {
405 u32 reg_100220;
406 u32 reg_100224;
407 u32 reg_100228;
408 u32 reg_10022c;
409 u32 reg_100230;
410 u32 reg_100234;
411 u32 reg_100238;
412 u32 reg_10023c;
413};
414
415struct nouveau_pm_memtimings {
416 bool supported;
417 struct nouveau_pm_memtiming *timing;
418 int nr_timing;
419};
420
404struct nouveau_pm_engine { 421struct nouveau_pm_engine {
405 struct nouveau_pm_voltage voltage; 422 struct nouveau_pm_voltage voltage;
406 struct nouveau_pm_level perflvl[NOUVEAU_PM_MAX_LEVEL]; 423 struct nouveau_pm_level perflvl[NOUVEAU_PM_MAX_LEVEL];
407 int nr_perflvl; 424 int nr_perflvl;
425 struct nouveau_pm_memtimings memtimings;
408 struct nouveau_pm_temp_sensor_constants sensor_constants; 426 struct nouveau_pm_temp_sensor_constants sensor_constants;
409 struct nouveau_pm_threshold_temp threshold_temp; 427 struct nouveau_pm_threshold_temp threshold_temp;
410 428