Displaying 4 results from an estimated 4 matches for "byte_align".
2020 Aug 13
2
[PATCH 12/20] drm/radeon: Introduce GEM object functions
..._gem_prime_get_sg_table,
> + .vmap = radeon_gem_prime_vmap,
> + .vunmap = radeon_gem_prime_vunmap,
> +};
> +
Same comment as for amdgpu, please put that into radeon_gem.c instead.
Christian.
> int radeon_bo_create(struct radeon_device *rdev,
> unsigned long size, int byte_align, bool kernel,
> u32 domain, u32 flags, struct sg_table *sg,
> @@ -209,6 +234,7 @@ int radeon_bo_create(struct radeon_device *rdev,
> bo = kzalloc(sizeof(struct radeon_bo), GFP_KERNEL);
> if (bo == NULL)
> return -ENOMEM;
> + bo->tbo.base.funcs = &radeon_g...
2020 Aug 13
0
[PATCH 12/20] drm/radeon: Introduce GEM object functions
...= radeon_gem_prime_export,
+ .pin = radeon_gem_prime_pin,
+ .unpin = radeon_gem_prime_unpin,
+ .get_sg_table = radeon_gem_prime_get_sg_table,
+ .vmap = radeon_gem_prime_vmap,
+ .vunmap = radeon_gem_prime_vunmap,
+};
+
int radeon_bo_create(struct radeon_device *rdev,
unsigned long size, int byte_align, bool kernel,
u32 domain, u32 flags, struct sg_table *sg,
@@ -209,6 +234,7 @@ int radeon_bo_create(struct radeon_device *rdev,
bo = kzalloc(sizeof(struct radeon_bo), GFP_KERNEL);
if (bo == NULL)
return -ENOMEM;
+ bo->tbo.base.funcs = &radeon_gem_object_funcs;
drm_gem_private...
2020 Aug 13
0
[PATCH 12/20] drm/radeon: Introduce GEM object functions
...ere's no good header file to put the declarations, right? I'm asking
because checkpatch warns about declarations in the source files.
Best regards
Thomas
>
> Christian.
>
>> ? int radeon_bo_create(struct radeon_device *rdev,
>> ?????????????? unsigned long size, int byte_align, bool kernel,
>> ?????????????? u32 domain, u32 flags, struct sg_table *sg,
>> @@ -209,6 +234,7 @@ int radeon_bo_create(struct radeon_device *rdev,
>> ????? bo = kzalloc(sizeof(struct radeon_bo), GFP_KERNEL);
>> ????? if (bo == NULL)
>> ????????? return -ENOMEM;
>&g...
2020 Aug 13
28
[PATCH 00/20] Convert all remaining drivers to GEM object functions
The GEM and PRIME related callbacks in struct drm_driver are deprecated in
favor of GEM object functions in struct drm_gem_object_funcs. This patchset
converts the remaining drivers to object functions and removes most of the
obsolete interfaces.
Patches #1 to #18 convert DRM drivers to GEM object functions, one by one.
Each patch moves existing callbacks from struct drm_driver to an instance
of