drm/amdgpu: Fix preferred typo
authorKent Russell <kent.russell@amd.com>
Tue, 8 Aug 2017 11:58:01 +0000 (07:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2017 18:46:16 +0000 (14:46 -0400)
Change "prefered" to "preferred"

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h

index 75c6107eaccf5d5ab36dd4943e2bad7ab18a709d..59089e027f4d8ac386f1174fe47eea5622ec182d 100644 (file)
@@ -156,11 +156,11 @@ static int amdgpu_bo_list_set(struct amdgpu_device *adev,
                entry->tv.bo = &entry->robj->tbo;
                entry->tv.shared = !entry->robj->prime_shared_count;
 
-               if (entry->robj->prefered_domains == AMDGPU_GEM_DOMAIN_GDS)
+               if (entry->robj->preferred_domains == AMDGPU_GEM_DOMAIN_GDS)
                        gds_obj = entry->robj;
-               if (entry->robj->prefered_domains == AMDGPU_GEM_DOMAIN_GWS)
+               if (entry->robj->preferred_domains == AMDGPU_GEM_DOMAIN_GWS)
                        gws_obj = entry->robj;
-               if (entry->robj->prefered_domains == AMDGPU_GEM_DOMAIN_OA)
+               if (entry->robj->preferred_domains == AMDGPU_GEM_DOMAIN_OA)
                        oa_obj = entry->robj;
 
                total_size += amdgpu_bo_size(entry->robj);
index 69806c5bcd01d82b799b1f149333fe6144559da1..8c462b091aff6f74bdf7a64e28390a56d458b559 100644 (file)
@@ -166,7 +166,7 @@ static int amdgpu_cgs_gmap_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t h
        r = amdgpu_bo_reserve(obj, true);
        if (unlikely(r != 0))
                return r;
-       r = amdgpu_bo_pin_restricted(obj, obj->prefered_domains,
+       r = amdgpu_bo_pin_restricted(obj, obj->preferred_domains,
                                     min_offset, max_offset, mcaddr);
        amdgpu_bo_unreserve(obj);
        return r;
index da8209945ef2c7ac0e0cd97cfac059c0f4e08ae1..c05479ec825ab2ba80bcdca60c4ddbfb1dd594ed 100644 (file)
@@ -348,11 +348,11 @@ static int amdgpu_cs_bo_validate(struct amdgpu_cs_parser *p,
                         * that.
                         */
                        if (p->bytes_moved_vis < p->bytes_moved_vis_threshold)
-                               domain = bo->prefered_domains;
+                               domain = bo->preferred_domains;
                        else
                                domain = bo->allowed_domains;
                } else {
-                       domain = bo->prefered_domains;
+                       domain = bo->preferred_domains;
                }
        } else {
                domain = bo->allowed_domains;
index 86a88a025b17c3555c5e611fb7435b51405e64c9..81127ffcefb223049dab05935eb06619344372f5 100644 (file)
@@ -306,7 +306,7 @@ int amdgpu_gem_userptr_ioctl(struct drm_device *dev, void *data,
                return r;
 
        bo = gem_to_amdgpu_bo(gobj);
-       bo->prefered_domains = AMDGPU_GEM_DOMAIN_GTT;
+       bo->preferred_domains = AMDGPU_GEM_DOMAIN_GTT;
        bo->allowed_domains = AMDGPU_GEM_DOMAIN_GTT;
        r = amdgpu_ttm_tt_set_userptr(bo->tbo.ttm, args->addr, args->flags);
        if (r)
@@ -693,7 +693,7 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,
 
                info.bo_size = robj->gem_base.size;
                info.alignment = robj->tbo.mem.page_alignment << PAGE_SHIFT;
-               info.domains = robj->prefered_domains;
+               info.domains = robj->preferred_domains;
                info.domain_flags = robj->flags;
                amdgpu_bo_unreserve(robj);
                if (copy_to_user(out, &info, sizeof(info)))
@@ -711,10 +711,10 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,
                        amdgpu_bo_unreserve(robj);
                        break;
                }
-               robj->prefered_domains = args->value & (AMDGPU_GEM_DOMAIN_VRAM |
+               robj->preferred_domains = args->value & (AMDGPU_GEM_DOMAIN_VRAM |
                                                        AMDGPU_GEM_DOMAIN_GTT |
                                                        AMDGPU_GEM_DOMAIN_CPU);
-               robj->allowed_domains = robj->prefered_domains;
+               robj->allowed_domains = robj->preferred_domains;
                if (robj->allowed_domains == AMDGPU_GEM_DOMAIN_VRAM)
                        robj->allowed_domains |= AMDGPU_GEM_DOMAIN_GTT;
 
index 16f31cbd91473a8d2039ce19c153b8f7f6458ac0..6e72fe7901ecc73a33ce20a0dcbaf9c8a2ae0d67 100644 (file)
@@ -391,13 +391,13 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev,
        }
        INIT_LIST_HEAD(&bo->shadow_list);
        INIT_LIST_HEAD(&bo->va);
-       bo->prefered_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM |
+       bo->preferred_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM |
                                         AMDGPU_GEM_DOMAIN_GTT |
                                         AMDGPU_GEM_DOMAIN_CPU |
                                         AMDGPU_GEM_DOMAIN_GDS |
                                         AMDGPU_GEM_DOMAIN_GWS |
                                         AMDGPU_GEM_DOMAIN_OA);
-       bo->allowed_domains = bo->prefered_domains;
+       bo->allowed_domains = bo->preferred_domains;
        if (!kernel && bo->allowed_domains == AMDGPU_GEM_DOMAIN_VRAM)
                bo->allowed_domains |= AMDGPU_GEM_DOMAIN_GTT;
 
@@ -606,7 +606,7 @@ int amdgpu_bo_validate(struct amdgpu_bo *bo)
        if (bo->pin_count)
                return 0;
 
-       domain = bo->prefered_domains;
+       domain = bo->preferred_domains;
 
 retry:
        amdgpu_ttm_placement_from_domain(bo, domain);
index b6d8be84b884c2758dd9653f1a9fa37df1fc3094..9b7b4fcb047bb9cc413d1a5e9934d54f0638de10 100644 (file)
@@ -65,7 +65,7 @@ struct amdgpu_bo_va {
 
 struct amdgpu_bo {
        /* Protected by tbo.reserved */
-       u32                             prefered_domains;
+       u32                             preferred_domains;
        u32                             allowed_domains;
        struct ttm_place                placements[AMDGPU_GEM_DOMAIN_MAX + 1];
        struct ttm_placement            placement;
index 509f7a63d40ce86679ccf071eb6639798180727b..9ab58245e5188c5d81290977f4c565f7c292328e 100644 (file)
@@ -105,12 +105,12 @@ TRACE_EVENT(amdgpu_bo_create,
                           __entry->bo = bo;
                           __entry->pages = bo->tbo.num_pages;
                           __entry->type = bo->tbo.mem.mem_type;
-                          __entry->prefer = bo->prefered_domains;
+                          __entry->prefer = bo->preferred_domains;
                           __entry->allow = bo->allowed_domains;
                           __entry->visible = bo->flags;
                           ),
 
-           TP_printk("bo=%p, pages=%u, type=%d, prefered=%d, allowed=%d, visible=%d",
+           TP_printk("bo=%p, pages=%u, type=%d, preferred=%d, allowed=%d, visible=%d",
                       __entry->bo, __entry->pages, __entry->type,
                       __entry->prefer, __entry->allow, __entry->visible)
 );