Skip to contentSkip to conversation

amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED flag

PATCH In review Flora Cui 2 participants 3 messages Jul 22, 2016 2 messages not in the archive DRM drivers

lore
Share & tools
lore

Flora Cui

author
#0 lore raw

PATCH 1/1 amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED flag

With this flag specified, VARM buffer will be cleared at allocation time.

Change-Id Ic587ed7e524a3bfc3862a57b42aa95ff458fe880
---
 include/drm/amdgpu_drm.h | 2 ++
 1 file changed, 2 insertions(+)
include/drm/amdgpu_drm.h +2 -0
index fbdd118..d43895e 100644
@@ -73,6 +73,8 @@
 #define AMDGPU_GEM_CREATE_NO_CPU_ACCESS		(1 << 1)
 /* Flag that USWC attributes should be used for GTT */
 #define AMDGPU_GEM_CREATE_CPU_GTT_USWC		(1 << 2)
+/* Flag that the memory should be in VRAM and cleared */
+#define AMDGPU_GEM_CREATE_VRAM_CLEARED		(1 << 3)
 
 struct drm_amdgpu_gem_create_in  {
 	/** the requested memory size */
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1469160128-4287-1-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Hi Flora. I suppose this addition preceeds AMDGPU_GEM_CREATE_VRAM_CLEARED's usage that will be introduced in upcoming patches?

Could you fix the commit message VARM -> VRAM?

With that fixed, you can add my Reviewed-by: Alexandre Demers <[email protected]>

Alexandre Demers

Quoted 14 lines · Flora Cui

With this flag specified, VARM buffer will be cleared at allocation time.

Change-Id Ic587ed7e524a3bfc3862a57b42aa95ff458fe880
---
  include/drm/amdgpu_drm.h | 2 ++
  1 file changed, 2 insertions(+)
include/drm/amdgpu_drm.h +0 -0
index fbdd118..d43895e 100644

include/drm/amdgpu_drm.h line 80

Quoted 8 lines
include/drm/amdgpu_drm.h +2 -0
@@ -73,6 +73,8 @@
  #define AMDGPU_GEM_CREATE_NO_CPU_ACCESS		(1 << 1)
  /* Flag that USWC attributes should be used for GTT */
  #define AMDGPU_GEM_CREATE_CPU_GTT_USWC		(1 << 2)
+/* Flag that the memory should be in VRAM and cleared */
+#define AMDGPU_GEM_CREATE_VRAM_CLEARED		(1 << 3)
 
  struct drm_amdgpu_gem_create_in  {
  	/** the requested memory size */

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 8eefdfb7-b752-e60d-f986-c698afad1ced-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#4 lore raw

Forget my question, I just saw your other patches. ;)

Alexandre Demers

Quoted 18 lines · Alexandre Demers

Hi Flora. I suppose this addition preceeds AMDGPU_GEM_CREATE_VRAM_CLEARED's usage that will be introduced in upcoming patches?

Could you fix the commit message VARM -> VRAM?

With that fixed, you can add my Reviewed-by: Alexandre Demers <[email protected]>

Alexandre Demers

Quoted 9 lines · Flora Cui

With this flag specified, VARM buffer will be cleared at allocation time.

Change-Id Ic587ed7e524a3bfc3862a57b42aa95ff458fe880
---
  include/drm/amdgpu_drm.h | 2 ++
  1 file changed, 2 insertions(+)
Quoted 13 lines

include/drm/amdgpu_drm.h line 79

Quoted 12 lines
include/drm/amdgpu_drm.h +2 -0
index fbdd118..d43895e 100644
@@ -73,6 +73,8 @@
  #define AMDGPU_GEM_CREATE_NO_CPU_ACCESS        (1 << 1)
  /* Flag that USWC attributes should be used for GTT */
  #define AMDGPU_GEM_CREATE_CPU_GTT_USWC        (1 << 2)
+/* Flag that the memory should be in VRAM and cleared */
+#define AMDGPU_GEM_CREATE_VRAM_CLEARED        (1 << 3)
    struct drm_amdgpu_gem_create_in  {
      /** the requested memory size */

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx