Skip to contentSkip to conversation

drm/amdgpu/gfx9: move define to header file

PATCH In review Alex Deucher 3 participants 3 messages May 4, 2017 – May 5, 2017 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/gfx9: move define to header file

rather than defining it locally.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 --
 drivers/gpu/drm/amd/amdgpu/soc15d.h   | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -2
index d364536..b246d22 100644
@@ -2977,8 +2977,6 @@ static void gfx_v9_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
         amdgpu_ring_write(ring, control);
 }
 
-#define	INDIRECT_BUFFER_VALID                   (1 << 23)
-
 static void gfx_v9_0_ring_emit_ib_compute(struct amdgpu_ring *ring,
                                           struct amdgpu_ib *ib,
                                           unsigned vm_id, bool ctx_switch)
drivers/gpu/drm/amd/amdgpu/soc15d.h +1 -0
index 9e1b9e9..e46e249 100644
@@ -132,6 +132,7 @@
 		 * 1 - pfp
 		 */
 #define	PACKET3_INDIRECT_BUFFER				0x3F
+#define		INDIRECT_BUFFER_VALID                   (1 << 23)
 #define		INDIRECT_BUFFER_CACHE_POLICY(x)         ((x) << 28)
 		/* 0 - LRU
 		 * 1 - Stream
Signature · 6 lines
2.5.5

_______________________________________________
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): 1493908399-22631-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org

Reviewed-by Junwei Zhang
#2 lore raw
Quoted 3 lines · Alex Deucher

rather than defining it locally.

Quoted 24 lines
---
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 --
  drivers/gpu/drm/amd/amdgpu/soc15d.h   | 1 +
  2 files changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -2
index d364536..b246d22 100644
@@ -2977,8 +2977,6 @@ static void gfx_v9_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
          amdgpu_ring_write(ring, control);
  }
 
-#define	INDIRECT_BUFFER_VALID                   (1 << 23)
-
  static void gfx_v9_0_ring_emit_ib_compute(struct amdgpu_ring *ring,
                                            struct amdgpu_ib *ib,
                                            unsigned vm_id, bool ctx_switch)
drivers/gpu/drm/amd/amdgpu/soc15d.h +0 -0
index 9e1b9e9..e46e249 100644

drivers/gpu/drm/amd/amdgpu/soc15d.h line 138

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/soc15d.h +1 -0
@@ -132,6 +132,7 @@
  		 * 1 - pfp
  		 */
  #define	PACKET3_INDIRECT_BUFFER				0x3F
+#define		INDIRECT_BUFFER_VALID                   (1 << 23)
  #define		INDIRECT_BUFFER_CACHE_POLICY(x)         ((x) << 28)
  		/* 0 - LRU
  		 * 1 - Stream

_______________________________________________
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): [email protected]

Reviewed-by
#4 lore raw

Am 05.05.2017 um 05:34 schrieb Zhang, Jerry (Junwei):

Quoted 5 lines · Alex Deucher
Quoted 3 lines

rather than defining it locally.

Quoted 30 lines
Quoted 30 lines
---
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 --
  drivers/gpu/drm/amd/amdgpu/soc15d.h   | 1 +
  2 files changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -2
index d364536..b246d22 100644
@@ -2977,8 +2977,6 @@ static void gfx_v9_0_ring_emit_ib_gfx(struct 
 amdgpu_ring *ring,
          amdgpu_ring_write(ring, control);
  }
 
-#define    INDIRECT_BUFFER_VALID                   (1 << 23)
-
  static void gfx_v9_0_ring_emit_ib_compute(struct amdgpu_ring *ring,
                                            struct amdgpu_ib *ib,

unsigned vm_id, bool
ctx_switch)

drivers/gpu/drm/amd/amdgpu/soc15d.h +1 -0
index 9e1b9e9..e46e249 100644
@@ -132,6 +132,7 @@
           * 1 - pfp
           */
  #define    PACKET3_INDIRECT_BUFFER                0x3F
+#define        INDIRECT_BUFFER_VALID                   (1 << 23)
Quoted 8 lines

drivers/gpu/drm/amd/amdgpu/soc15d.h line 138

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/soc15d.h +0 -0
  #define        INDIRECT_BUFFER_CACHE_POLICY(x)         ((x) << 28)
          /* 0 - LRU
           * 1 - Stream

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

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