/[linux-patches]/genpatches-2.6/trunk/2.6.37/2800_ttm-bo-init-retry-after-failure.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.37/2800_ttm-bo-init-retry-after-failure.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1836 - (show annotations) (download)
Wed Dec 1 17:08:49 2010 UTC (7 years, 7 months ago) by mpagano
File size: 647 byte(s)
Creating 2.6.37 branch from 2.6.36
1 --- a/drivers/gpu/drm/radeon/radeon_object.c 2010-11-30 19:36:43.003461127 -0500
2 +++ b/drivers/gpu/drm/radeon/radeon_object.c 2010-11-30 19:44:48.197516895 -0500
3 @@ -102,6 +102,8 @@ int radeon_bo_create(struct radeon_devic
4 type = ttm_bo_type_device;
5 }
6 *bo_ptr = NULL;
7 +
8 +retry:
9 bo = kzalloc(sizeof(struct radeon_bo), GFP_KERNEL);
10 if (bo == NULL)
11 return -ENOMEM;
12 @@ -109,8 +111,6 @@ int radeon_bo_create(struct radeon_devic
13 bo->gobj = gobj;
14 bo->surface_reg = -1;
15 INIT_LIST_HEAD(&bo->list);
16 -
17 -retry:
18 radeon_ttm_placement_from_domain(bo, domain);
19 /* Kernel allocation are uninterruptible */
20 mutex_lock(&rdev->vram_mutex);

  ViewVC Help
Powered by ViewVC 1.1.20