diff options
author | Dave Airlie <airlied@redhat.com> | 2009-11-17 06:29:46 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-08 07:33:04 +1000 |
commit | d904ef9b00a4473af16766e99f17bdbb5f0fde65 (patch) | |
tree | e9b5263b223cf5d20f189aad922f79c1ccbfd9c2 /drivers/gpu/drm/radeon/radeon_device.c | |
parent | f84676185368e36c6bc0eeab87ab73ed39042648 (diff) | |
download | lwn-d904ef9b00a4473af16766e99f17bdbb5f0fde65.tar.gz lwn-d904ef9b00a4473af16766e99f17bdbb5f0fde65.zip |
drm/radeon/kms: add support to atom parser for FB read/write
FB read/write really doesn't need to access the actual VRAM, we
can just use a scratch area. This is required for using atom displayport
calls later.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index a014ba4cc97c..60ee6a8b4f7f 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -481,11 +481,13 @@ int radeon_atombios_init(struct radeon_device *rdev) rdev->mode_info.atom_context = atom_parse(atom_card_info, rdev->bios); radeon_atom_initialize_bios_scratch_regs(rdev->ddev); + atom_allocate_fb_scratch(rdev->mode_info.atom_context); return 0; } void radeon_atombios_fini(struct radeon_device *rdev) { + kfree(rdev->mode_info.atom_context->scratch); kfree(rdev->mode_info.atom_context); kfree(rdev->mode_info.atom_card_info); } |