diff options
author | Dave Airlie <airlied@redhat.com> | 2012-02-14 09:16:00 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-14 09:16:00 -0500 |
commit | cdbe8b5426e71d09882212073c27c9dcf25a71b6 (patch) | |
tree | 5ff82cebd1875ac91f64f337388c8845bcbc69e8 /drivers/gpu/drm/i915/i915_reg.h | |
parent | 285484e2d55e76031b45926720c10b1aec8b782a (diff) | |
parent | 172975aa746e155533cb386c7159c2d6510e2bc8 (diff) |
Merge tag 'drm-intel-next-2012-02-07' of git://people.freedesktop.org/~danvet/drm-intel into drm-core-next
* tag 'drm-intel-next-2012-02-07' of git://people.freedesktop.org/~danvet/drm-intel: (29 commits)
drm/i915: Handle unmappable buffers during error state capture
drm/i915: rewrite shmem_pread_slow to use copy_to_user
drm/i915: rewrite shmem_pwrite_slow to use copy_from_user
drm/i915: fall through pwrite_gtt_slow to the shmem slow path
drm/i915: add debugfs file for swizzling information
drm/i915: fix swizzle detection for gen3
drm/i915: Remove the upper limit on the bo size for mapping into the CPU domain
drm/i915: add per-ring fault reg to error_state
drm/i915: reject GTT domain in relocations
drm/i915: remove the i915_batchbuffer_info debugfs file
drm/i915: capture error_state also for stuck rings
drm/i915: refactor debugfs create functions
drm/i915: refactor debugfs open function
drm/i915: don't trash the gtt when running out of fences
drm/i915: Separate fence pin counting from normal bind pin counting
drm/i915/ringbuffer: kill snb blt workaround
drm/i915: collect more per ring error state
drm/i915: refactor ring error state capture to use arrays
drm/i915: switch ring->id to be a real id
drm/i915: set AUD_CONFIG N_value_index for DisplayPort
...
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index c3afb783cb9d..f9607387c00c 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -319,6 +319,8 @@ | |||
319 | #define RING_HWS_PGA(base) ((base)+0x80) | 319 | #define RING_HWS_PGA(base) ((base)+0x80) |
320 | #define RING_HWS_PGA_GEN6(base) ((base)+0x2080) | 320 | #define RING_HWS_PGA_GEN6(base) ((base)+0x2080) |
321 | #define RENDER_HWS_PGA_GEN7 (0x04080) | 321 | #define RENDER_HWS_PGA_GEN7 (0x04080) |
322 | #define RING_FAULT_REG(ring) (0x4094 + 0x100*(ring)->id) | ||
323 | #define DONE_REG 0x40b0 | ||
322 | #define BSD_HWS_PGA_GEN7 (0x04180) | 324 | #define BSD_HWS_PGA_GEN7 (0x04180) |
323 | #define BLT_HWS_PGA_GEN7 (0x04280) | 325 | #define BLT_HWS_PGA_GEN7 (0x04280) |
324 | #define RING_ACTHD(base) ((base)+0x74) | 326 | #define RING_ACTHD(base) ((base)+0x74) |
@@ -352,6 +354,12 @@ | |||
352 | #define IPEIR_I965 0x02064 | 354 | #define IPEIR_I965 0x02064 |
353 | #define IPEHR_I965 0x02068 | 355 | #define IPEHR_I965 0x02068 |
354 | #define INSTDONE_I965 0x0206c | 356 | #define INSTDONE_I965 0x0206c |
357 | #define RING_IPEIR(base) ((base)+0x64) | ||
358 | #define RING_IPEHR(base) ((base)+0x68) | ||
359 | #define RING_INSTDONE(base) ((base)+0x6c) | ||
360 | #define RING_INSTPS(base) ((base)+0x70) | ||
361 | #define RING_DMA_FADD(base) ((base)+0x78) | ||
362 | #define RING_INSTPM(base) ((base)+0xc0) | ||
355 | #define INSTPS 0x02070 /* 965+ only */ | 363 | #define INSTPS 0x02070 /* 965+ only */ |
356 | #define INSTDONE1 0x0207c /* 965+ only */ | 364 | #define INSTDONE1 0x0207c /* 965+ only */ |
357 | #define ACTHD_I965 0x02074 | 365 | #define ACTHD_I965 0x02074 |
@@ -365,14 +373,6 @@ | |||
365 | #define INSTDONE 0x02090 | 373 | #define INSTDONE 0x02090 |
366 | #define NOPID 0x02094 | 374 | #define NOPID 0x02094 |
367 | #define HWSTAM 0x02098 | 375 | #define HWSTAM 0x02098 |
368 | #define VCS_INSTDONE 0x1206C | ||
369 | #define VCS_IPEIR 0x12064 | ||
370 | #define VCS_IPEHR 0x12068 | ||
371 | #define VCS_ACTHD 0x12074 | ||
372 | #define BCS_INSTDONE 0x2206C | ||
373 | #define BCS_IPEIR 0x22064 | ||
374 | #define BCS_IPEHR 0x22068 | ||
375 | #define BCS_ACTHD 0x22074 | ||
376 | 376 | ||
377 | #define ERROR_GEN6 0x040a0 | 377 | #define ERROR_GEN6 0x040a0 |
378 | 378 | ||
@@ -391,7 +391,7 @@ | |||
391 | 391 | ||
392 | #define MI_MODE 0x0209c | 392 | #define MI_MODE 0x0209c |
393 | # define VS_TIMER_DISPATCH (1 << 6) | 393 | # define VS_TIMER_DISPATCH (1 << 6) |
394 | # define MI_FLUSH_ENABLE (1 << 11) | 394 | # define MI_FLUSH_ENABLE (1 << 12) |
395 | 395 | ||
396 | #define GFX_MODE 0x02520 | 396 | #define GFX_MODE 0x02520 |
397 | #define GFX_MODE_GEN7 0x0229c | 397 | #define GFX_MODE_GEN7 0x0229c |
@@ -3742,4 +3742,16 @@ | |||
3742 | */ | 3742 | */ |
3743 | #define GEN7_SO_WRITE_OFFSET(n) (0x5280 + (n) * 4) | 3743 | #define GEN7_SO_WRITE_OFFSET(n) (0x5280 + (n) * 4) |
3744 | 3744 | ||
3745 | #define IBX_AUD_CONFIG_A 0xe2000 | ||
3746 | #define CPT_AUD_CONFIG_A 0xe5000 | ||
3747 | #define AUD_CONFIG_N_VALUE_INDEX (1 << 29) | ||
3748 | #define AUD_CONFIG_N_PROG_ENABLE (1 << 28) | ||
3749 | #define AUD_CONFIG_UPPER_N_SHIFT 20 | ||
3750 | #define AUD_CONFIG_UPPER_N_VALUE (0xff << 20) | ||
3751 | #define AUD_CONFIG_LOWER_N_SHIFT 4 | ||
3752 | #define AUD_CONFIG_LOWER_N_VALUE (0xfff << 4) | ||
3753 | #define AUD_CONFIG_PIXEL_CLOCK_HDMI_SHIFT 16 | ||
3754 | #define AUD_CONFIG_PIXEL_CLOCK_HDMI (0xf << 16) | ||
3755 | #define AUD_CONFIG_DISABLE_NCTS (1 << 3) | ||
3756 | |||
3745 | #endif /* _I915_REG_H_ */ | 3757 | #endif /* _I915_REG_H_ */ |