Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180123
b: refs/heads/master
c: 4b86628
h: refs/heads/master
i:
  180121: 0d6e6cf
  180119: c62c442
v: v3
  • Loading branch information
Dave Airlie committed Feb 1, 2010
1 parent 6acd562 commit 47dc060
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2dea2e29b9fad48c759aa406b5ea426bff4339af
refs/heads/master: 4b866288be6ffaefaad9cec212cb09e3258a68ee
3 changes: 3 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,13 @@ int radeon_agp_init(struct radeon_device *rdev)

ret = drm_agp_info(rdev->ddev, &info);
if (ret) {
drm_agp_release(rdev->ddev);
DRM_ERROR("Unable to get AGP info: %d\n", ret);
return ret;
}

if (rdev->ddev->agp->agp_info.aper_size < 32) {
drm_agp_release(rdev->ddev);
dev_warn(rdev->dev, "AGP aperture too small (%zuM) "
"need at least 32M, disabling AGP\n",
rdev->ddev->agp->agp_info.aper_size);
Expand Down Expand Up @@ -229,6 +231,7 @@ int radeon_agp_init(struct radeon_device *rdev)
ret = drm_agp_enable(rdev->ddev, mode);
if (ret) {
DRM_ERROR("Unable to enable AGP (mode = 0x%lx)\n", mode.mode);
drm_agp_release(rdev->ddev);
return ret;
}

Expand Down

0 comments on commit 47dc060

Please sign in to comment.