diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-30 11:03:00 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-30 11:03:00 -0400 |
| commit | e15daf6cdf59fd76c0c5d396ccd1426567305750 (patch) | |
| tree | bd8702d19899673f9363fb83a644f0bd9062057b /drivers/gpu/drm/radeon/rs600.c | |
| parent | 07892acf37d98bcf1e5f2df9e23d414ded830b61 (diff) | |
| parent | f0ed1f655aa0375e2abba84cc4e8e6c853d48555 (diff) | |
Merge branch 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
* 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (25 commits)
drm/radeon/kms: Convert R520 to new init path and associated cleanup
drm/radeon/kms: Convert RV515 to new init path and associated cleanup
drm: fix radeon DRM warnings when !CONFIG_DEBUG_FS
drm: fix drm_fb_helper warning when !CONFIG_MAGIC_SYSRQ
drm/r600: fix memory leak introduced with 64k malloc avoidance fix.
drm/kms: make fb helper work for all drivers.
drm/radeon/r600: fix offset handling in CS parser
drm/radeon/kms/r600: fix forcing pci mode on agp cards
drm/radeon/kms: fix for the extra pages copying.
drm/radeon/kms/r600: add support for vline relocs
drm/radeon/kms: fix some bugs in vline reloc
drm/radeon/kms/r600: clamp vram to aperture size
drm/kms: protect against fb helper not being created.
drm/r600: get values from the passed in IB not the copy.
drm: create gitignore file for radeon
drm/radeon/kms: remove unneeded master create/destroy functions.
drm/kms: start adding command line interface using fb.
fb: change rules for global rules match.
drm/radeon/kms: don't require up to 64k allocations. (v2)
drm/radeon/kms: enable dac load detection by default.
...
Trivial conflicts in drivers/gpu/drm/radeon/radeon_asic.h due to adding
'->vga_set_state' function pointers.
Diffstat (limited to 'drivers/gpu/drm/radeon/rs600.c')
| -rw-r--r-- | drivers/gpu/drm/radeon/rs600.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c index 0e791e26def3..4a4fe1cb131c 100644 --- a/drivers/gpu/drm/radeon/rs600.c +++ b/drivers/gpu/drm/radeon/rs600.c | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | #include "drmP.h" | 28 | #include "drmP.h" |
| 29 | #include "radeon_reg.h" | 29 | #include "radeon_reg.h" |
| 30 | #include "radeon.h" | 30 | #include "radeon.h" |
| 31 | #include "avivod.h" | ||
| 32 | 31 | ||
| 33 | #include "rs600_reg_safe.h" | 32 | #include "rs600_reg_safe.h" |
| 34 | 33 | ||
| @@ -45,7 +44,6 @@ void r420_pipes_init(struct radeon_device *rdev); | |||
| 45 | */ | 44 | */ |
| 46 | void rs600_gpu_init(struct radeon_device *rdev); | 45 | void rs600_gpu_init(struct radeon_device *rdev); |
| 47 | int rs600_mc_wait_for_idle(struct radeon_device *rdev); | 46 | int rs600_mc_wait_for_idle(struct radeon_device *rdev); |
| 48 | void rs600_disable_vga(struct radeon_device *rdev); | ||
| 49 | 47 | ||
| 50 | 48 | ||
| 51 | /* | 49 | /* |
| @@ -198,7 +196,7 @@ void rs600_mc_disable_clients(struct radeon_device *rdev) | |||
| 198 | "programming pipes. Bad things might happen.\n"); | 196 | "programming pipes. Bad things might happen.\n"); |
| 199 | } | 197 | } |
| 200 | 198 | ||
| 201 | radeon_avivo_vga_render_disable(rdev); | 199 | rv515_vga_render_disable(rdev); |
| 202 | 200 | ||
| 203 | tmp = RREG32(AVIVO_D1VGA_CONTROL); | 201 | tmp = RREG32(AVIVO_D1VGA_CONTROL); |
| 204 | WREG32(AVIVO_D1VGA_CONTROL, tmp & ~AVIVO_DVGA_CONTROL_MODE_ENABLE); | 202 | WREG32(AVIVO_D1VGA_CONTROL, tmp & ~AVIVO_DVGA_CONTROL_MODE_ENABLE); |
| @@ -346,20 +344,6 @@ u32 rs600_get_vblank_counter(struct radeon_device *rdev, int crtc) | |||
| 346 | /* | 344 | /* |
| 347 | * Global GPU functions | 345 | * Global GPU functions |
| 348 | */ | 346 | */ |
| 349 | void rs600_disable_vga(struct radeon_device *rdev) | ||
| 350 | { | ||
| 351 | unsigned tmp; | ||
| 352 | |||
| 353 | WREG32(0x330, 0); | ||
| 354 | WREG32(0x338, 0); | ||
| 355 | tmp = RREG32(0x300); | ||
| 356 | tmp &= ~(3 << 16); | ||
| 357 | WREG32(0x300, tmp); | ||
| 358 | WREG32(0x308, (1 << 8)); | ||
| 359 | WREG32(0x310, rdev->mc.vram_location); | ||
| 360 | WREG32(0x594, 0); | ||
| 361 | } | ||
| 362 | |||
| 363 | int rs600_mc_wait_for_idle(struct radeon_device *rdev) | 347 | int rs600_mc_wait_for_idle(struct radeon_device *rdev) |
| 364 | { | 348 | { |
| 365 | unsigned i; | 349 | unsigned i; |
| @@ -385,7 +369,7 @@ void rs600_gpu_init(struct radeon_device *rdev) | |||
| 385 | { | 369 | { |
| 386 | /* FIXME: HDP same place on rs600 ? */ | 370 | /* FIXME: HDP same place on rs600 ? */ |
| 387 | r100_hdp_reset(rdev); | 371 | r100_hdp_reset(rdev); |
| 388 | rs600_disable_vga(rdev); | 372 | rv515_vga_render_disable(rdev); |
| 389 | /* FIXME: is this correct ? */ | 373 | /* FIXME: is this correct ? */ |
| 390 | r420_pipes_init(rdev); | 374 | r420_pipes_init(rdev); |
| 391 | if (rs600_mc_wait_for_idle(rdev)) { | 375 | if (rs600_mc_wait_for_idle(rdev)) { |
