<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div dir="auto">Reviewed-by: Christian König <christian.koenig@amd.com></div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">Am 21.01.2019 07:57 schrieb "Xiao, Jack" <Jack.Xiao@amd.com>:<br type="attribution">
</div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">Replace the last bool type parameter with a general flags parameter,<br>
to make the last parameter be able to contain more information.<br>
<br>
v2: drop setting need_ctx_switch = false<br>
<br>
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 10 +++++-----<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 4 ++--<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 4 ++--<br>
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 6 +++---<br>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4 ++--<br>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++--<br>
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/si_dma.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 ++--<br>
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 4 ++--<br>
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 2 +-<br>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 6 +++---<br>
20 files changed, 34 insertions(+), 34 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c<br>
index c48207b3..0b8ef2d 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c<br>
@@ -202,12 +202,12 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,<br>
amdgpu_asic_flush_hdp(adev, ring);<br>
}<br>
<br>
+ if (need_ctx_switch)<br>
+ status |= AMDGPU_HAVE_CTX_SWITCH;<br>
+<br>
skip_preamble = ring->current_ctx == fence_ctx;<br>
if (job && ring->funcs->emit_cntxcntl) {<br>
- if (need_ctx_switch)<br>
- status |= AMDGPU_HAVE_CTX_SWITCH;<br>
status |= job->preamble_status;<br>
-<br>
amdgpu_ring_emit_cntxcntl(ring, status);<br>
}<br>
<br>
@@ -221,8 +221,8 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,<br>
!amdgpu_sriov_vf(adev)) /* for SRIOV preemption, Preamble CE ib must be inserted anyway */<br>
continue;<br>
<br>
- amdgpu_ring_emit_ib(ring, job, ib, need_ctx_switch);<br>
- need_ctx_switch = false;<br>
+ amdgpu_ring_emit_ib(ring, job, ib, status);<br>
+ status &= ~AMDGPU_HAVE_CTX_SWITCH;<br>
}<br>
<br>
if (ring->funcs->emit_tmz)<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h<br>
index d87e828..d7fae26 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h<br>
@@ -131,7 +131,7 @@ struct amdgpu_ring_funcs {<br>
void (*emit_ib)(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch);<br>
+ uint32_t flags);<br>
void (*emit_fence)(struct amdgpu_ring *ring, uint64_t addr,<br>
uint64_t seq, unsigned flags);<br>
void (*emit_pipeline_sync)(struct amdgpu_ring *ring);<br>
@@ -229,7 +229,7 @@ struct amdgpu_ring {<br>
#define amdgpu_ring_get_rptr(r) (r)->funcs->get_rptr((r))<br>
#define amdgpu_ring_get_wptr(r) (r)->funcs->get_wptr((r))<br>
#define amdgpu_ring_set_wptr(r) (r)->funcs->set_wptr((r))<br>
-#define amdgpu_ring_emit_ib(r, job, ib, c) ((r)->funcs->emit_ib((r), (job), (ib), (c)))<br>
+#define amdgpu_ring_emit_ib(r, job, ib, flags) ((r)->funcs->emit_ib((r), (job), (ib), (flags)))<br>
#define amdgpu_ring_emit_pipeline_sync(r) (r)->funcs->emit_pipeline_sync((r))<br>
#define amdgpu_ring_emit_vm_flush(r, vmid, addr) (r)->funcs->emit_vm_flush((r), (vmid), (addr))<br>
#define amdgpu_ring_emit_fence(r, addr, seq, flags) (r)->funcs->emit_fence((r), (addr), (seq), (flags))<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c<br>
index 98a1b2c..c021b11 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c<br>
@@ -1035,7 +1035,7 @@ int amdgpu_vce_ring_parse_cs_vm(struct amdgpu_cs_parser *p, uint32_t ib_idx)<br>
void amdgpu_vce_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
amdgpu_ring_write(ring, VCE_CMD_IB);<br>
amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr));<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h<br>
index 5029365..30ea54d 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h<br>
@@ -66,7 +66,7 @@ int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,<br>
int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx);<br>
int amdgpu_vce_ring_parse_cs_vm(struct amdgpu_cs_parser *p, uint32_t ib_idx);<br>
void amdgpu_vce_ring_emit_ib(struct amdgpu_ring *ring, struct amdgpu_job *job,<br>
- struct amdgpu_ib *ib, bool ctx_switch);<br>
+ struct amdgpu_ib *ib, uint32_t flags);<br>
void amdgpu_vce_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 seq,<br>
unsigned flags);<br>
int amdgpu_vce_ring_test_ring(struct amdgpu_ring *ring);<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c<br>
index 4579519..189599b 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c<br>
@@ -220,7 +220,7 @@ static void cik_sdma_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count)<br>
static void cik_sdma_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
u32 extra_bits = vmid & 0xf;<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c<br>
index 1dc3013..305276c 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c<br>
@@ -1842,13 +1842,13 @@ static void gfx_v6_0_ring_emit_fence(struct amdgpu_ring *ring, u64 addr,<br>
static void gfx_v6_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
u32 header, control = 0;<br>
<br>
/* insert SWITCH_BUFFER packet before first IB in the ring frame */<br>
- if (ctx_switch) {<br>
+ if (flags & AMDGPU_HAVE_CTX_SWITCH) {<br>
amdgpu_ring_write(ring, PACKET3(PACKET3_SWITCH_BUFFER, 0));<br>
amdgpu_ring_write(ring, 0);<br>
}<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c<br>
index 3a9fb60..7984292 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c<br>
@@ -2228,13 +2228,13 @@ static void gfx_v7_0_ring_emit_fence_compute(struct amdgpu_ring *ring,<br>
static void gfx_v7_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
u32 header, control = 0;<br>
<br>
/* insert SWITCH_BUFFER packet before first IB in the ring frame */<br>
- if (ctx_switch) {<br>
+ if (flags & AMDGPU_HAVE_CTX_SWITCH) {<br>
amdgpu_ring_write(ring, PACKET3(PACKET3_SWITCH_BUFFER, 0));<br>
amdgpu_ring_write(ring, 0);<br>
}<br>
@@ -2259,7 +2259,7 @@ static void gfx_v7_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,<br>
static void gfx_v7_0_ring_emit_ib_compute(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24);<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c<br>
index 57cb3a5..a267476 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c<br>
@@ -6047,7 +6047,7 @@ static void gfx_v8_0_ring_emit_vgt_flush(struct amdgpu_ring *ring)<br>
static void gfx_v8_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
u32 header, control = 0;<br>
@@ -6079,7 +6079,7 @@ static void gfx_v8_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,<br>
static void gfx_v8_0_ring_emit_ib_compute(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24);<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c<br>
index fbca049..262ee3c 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c<br>
@@ -3972,7 +3972,7 @@ static void gfx_v9_0_ring_emit_hdp_flush(struct amdgpu_ring *ring)<br>
static void gfx_v9_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
u32 header, control = 0;<br>
@@ -4005,7 +4005,7 @@ static void gfx_v9_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,<br>
static void gfx_v9_0_ring_emit_ib_compute(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24);<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c b/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c<br>
index 9f3cb2a..cca3552 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c<br>
@@ -247,7 +247,7 @@ static void sdma_v2_4_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count)<br>
static void sdma_v2_4_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c<br>
index 06c5a27..0ce8331 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c<br>
@@ -421,7 +421,7 @@ static void sdma_v3_0_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count)<br>
static void sdma_v3_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c<br>
index 48a166b..127b859 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c<br>
@@ -500,7 +500,7 @@ static void sdma_v4_0_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count)<br>
static void sdma_v4_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dma.c b/drivers/gpu/drm/amd/amdgpu/si_dma.c<br>
index b6e4731..f15f196 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/si_dma.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/si_dma.c<br>
@@ -63,7 +63,7 @@ static void si_dma_ring_set_wptr(struct amdgpu_ring *ring)<br>
static void si_dma_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
/* The indirect buffer packet must end on an 8 DW boundary in the DMA ring.<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c<br>
index d69c8f6..c4fb586 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c<br>
@@ -511,7 +511,7 @@ static int uvd_v4_2_ring_test_ring(struct amdgpu_ring *ring)<br>
static void uvd_v4_2_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
amdgpu_ring_write(ring, PACKET0(mmUVD_RBC_IB_BASE, 0));<br>
amdgpu_ring_write(ring, ib->gpu_addr);<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c<br>
index ee8cd06..52bd8a6 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c<br>
@@ -526,7 +526,7 @@ static int uvd_v5_0_ring_test_ring(struct amdgpu_ring *ring)<br>
static void uvd_v5_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
amdgpu_ring_write(ring, PACKET0(mmUVD_LMI_RBC_IB_64BIT_BAR_LOW, 0));<br>
amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr));<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c<br>
index d4f4a66..c9edddf 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c<br>
@@ -977,7 +977,7 @@ static int uvd_v6_0_ring_test_ring(struct amdgpu_ring *ring)<br>
static void uvd_v6_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
@@ -1003,7 +1003,7 @@ static void uvd_v6_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
static void uvd_v6_0_enc_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c<br>
index aef9240..dc461df 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c<br>
@@ -1272,7 +1272,7 @@ static int uvd_v7_0_ring_patch_cs_in_place(struct amdgpu_cs_parser *p,<br>
static void uvd_v7_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
struct amdgpu_device *adev = ring->adev;<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
@@ -1303,7 +1303,7 @@ static void uvd_v7_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
static void uvd_v7_0_enc_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c<br>
index 2668eff..6ec65cf1 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c<br>
@@ -834,7 +834,7 @@ static void vce_v3_0_get_clockgating_state(void *handle, u32 *flags)<br>
static void vce_v3_0_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c<br>
index 9fb34b7..aadc3e6 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c<br>
@@ -947,7 +947,7 @@ static int vce_v4_0_set_powergating_state(void *handle,<br>
#endif<br>
<br>
static void vce_v4_0_ring_emit_ib(struct amdgpu_ring *ring, struct amdgpu_job *job,<br>
- struct amdgpu_ib *ib, bool ctx_switch)<br>
+ struct amdgpu_ib *ib, uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c<br>
index 89bb2fe..3dbc51f 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c<br>
@@ -1371,7 +1371,7 @@ static void vcn_v1_0_dec_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64<br>
static void vcn_v1_0_dec_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
struct amdgpu_device *adev = ring->adev;<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
@@ -1531,7 +1531,7 @@ static void vcn_v1_0_enc_ring_insert_end(struct amdgpu_ring *ring)<br>
static void vcn_v1_0_enc_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
<br>
@@ -1736,7 +1736,7 @@ static void vcn_v1_0_jpeg_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u6<br>
static void vcn_v1_0_jpeg_ring_emit_ib(struct amdgpu_ring *ring,<br>
struct amdgpu_job *job,<br>
struct amdgpu_ib *ib,<br>
- bool ctx_switch)<br>
+ uint32_t flags)<br>
{<br>
struct amdgpu_device *adev = ring->adev;<br>
unsigned vmid = AMDGPU_JOB_GET_VMID(job);<br>
-- <br>
1.9.1<br>
<br>
</div>
</span></font>
</body>
</html>