diff options
author | Christian König <christian.koenig@amd.com> | 2018-01-09 13:47:37 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:17:41 -0500 |
commit | 3816e42f5f5ec6b96634b8ede3eaa77dbe4574fd (patch) | |
tree | 9e8452cec24907a1161f5385b7f6e8b7c37bdb24 /drivers/gpu | |
parent | 09052fc3769c98e1ce1c4f3398da8201548fc449 (diff) |
drm/amdgpu: rename pas_id to pasid
sed -i "s/pas_id/pasid/g" drivers/gpu/drm/amd/amdgpu/*.c
sed -i "s/pas_id/pasid/g" drivers/gpu/drm/amd/amdgpu/*.h
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cik_ih.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cz_ih.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/iceland_ih.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h index 29cf10927a92..b8a7dba69595 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | |||
@@ -109,7 +109,7 @@ struct amdgpu_iv_entry { | |||
109 | unsigned vmid_src; | 109 | unsigned vmid_src; |
110 | uint64_t timestamp; | 110 | uint64_t timestamp; |
111 | unsigned timestamp_src; | 111 | unsigned timestamp_src; |
112 | unsigned pas_id; | 112 | unsigned pasid; |
113 | unsigned pasid_src; | 113 | unsigned pasid_src; |
114 | unsigned src_data[AMDGPU_IH_SRC_DATA_MAX_SIZE_DW]; | 114 | unsigned src_data[AMDGPU_IH_SRC_DATA_MAX_SIZE_DW]; |
115 | const uint32_t *iv_entry; | 115 | const uint32_t *iv_entry; |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h index cace7a93fc94..251ca921c63e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | |||
@@ -86,7 +86,7 @@ TRACE_EVENT(amdgpu_iv, | |||
86 | __field(unsigned, vmid_src) | 86 | __field(unsigned, vmid_src) |
87 | __field(uint64_t, timestamp) | 87 | __field(uint64_t, timestamp) |
88 | __field(unsigned, timestamp_src) | 88 | __field(unsigned, timestamp_src) |
89 | __field(unsigned, pas_id) | 89 | __field(unsigned, pasid) |
90 | __array(unsigned, src_data, 4) | 90 | __array(unsigned, src_data, 4) |
91 | ), | 91 | ), |
92 | TP_fast_assign( | 92 | TP_fast_assign( |
@@ -97,16 +97,16 @@ TRACE_EVENT(amdgpu_iv, | |||
97 | __entry->vmid_src = iv->vmid_src; | 97 | __entry->vmid_src = iv->vmid_src; |
98 | __entry->timestamp = iv->timestamp; | 98 | __entry->timestamp = iv->timestamp; |
99 | __entry->timestamp_src = iv->timestamp_src; | 99 | __entry->timestamp_src = iv->timestamp_src; |
100 | __entry->pas_id = iv->pas_id; | 100 | __entry->pasid = iv->pasid; |
101 | __entry->src_data[0] = iv->src_data[0]; | 101 | __entry->src_data[0] = iv->src_data[0]; |
102 | __entry->src_data[1] = iv->src_data[1]; | 102 | __entry->src_data[1] = iv->src_data[1]; |
103 | __entry->src_data[2] = iv->src_data[2]; | 103 | __entry->src_data[2] = iv->src_data[2]; |
104 | __entry->src_data[3] = iv->src_data[3]; | 104 | __entry->src_data[3] = iv->src_data[3]; |
105 | ), | 105 | ), |
106 | TP_printk("client_id:%u src_id:%u ring:%u vmid:%u timestamp: %llu pas_id:%u src_data: %08x %08x %08x %08x\n", | 106 | TP_printk("client_id:%u src_id:%u ring:%u vmid:%u timestamp: %llu pasid:%u src_data: %08x %08x %08x %08x\n", |
107 | __entry->client_id, __entry->src_id, | 107 | __entry->client_id, __entry->src_id, |
108 | __entry->ring_id, __entry->vmid, | 108 | __entry->ring_id, __entry->vmid, |
109 | __entry->timestamp, __entry->pas_id, | 109 | __entry->timestamp, __entry->pasid, |
110 | __entry->src_data[0], __entry->src_data[1], | 110 | __entry->src_data[0], __entry->src_data[1], |
111 | __entry->src_data[2], __entry->src_data[3]) | 111 | __entry->src_data[2], __entry->src_data[3]) |
112 | ); | 112 | ); |
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c index d5a05c19708f..07c7852180d0 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cik_ih.c | |||
@@ -281,7 +281,7 @@ static void cik_ih_decode_iv(struct amdgpu_device *adev, | |||
281 | entry->src_data[0] = dw[1] & 0xfffffff; | 281 | entry->src_data[0] = dw[1] & 0xfffffff; |
282 | entry->ring_id = dw[2] & 0xff; | 282 | entry->ring_id = dw[2] & 0xff; |
283 | entry->vmid = (dw[2] >> 8) & 0xff; | 283 | entry->vmid = (dw[2] >> 8) & 0xff; |
284 | entry->pas_id = (dw[2] >> 16) & 0xffff; | 284 | entry->pasid = (dw[2] >> 16) & 0xffff; |
285 | 285 | ||
286 | /* wptr/rptr are in bytes! */ | 286 | /* wptr/rptr are in bytes! */ |
287 | adev->irq.ih.rptr += 16; | 287 | adev->irq.ih.rptr += 16; |
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_ih.c b/drivers/gpu/drm/amd/amdgpu/cz_ih.c index f576e9cbbc61..cfd0ad03c938 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_ih.c | |||
@@ -260,7 +260,7 @@ static void cz_ih_decode_iv(struct amdgpu_device *adev, | |||
260 | entry->src_data[0] = dw[1] & 0xfffffff; | 260 | entry->src_data[0] = dw[1] & 0xfffffff; |
261 | entry->ring_id = dw[2] & 0xff; | 261 | entry->ring_id = dw[2] & 0xff; |
262 | entry->vmid = (dw[2] >> 8) & 0xff; | 262 | entry->vmid = (dw[2] >> 8) & 0xff; |
263 | entry->pas_id = (dw[2] >> 16) & 0xffff; | 263 | entry->pasid = (dw[2] >> 16) & 0xffff; |
264 | 264 | ||
265 | /* wptr/rptr are in bytes! */ | 265 | /* wptr/rptr are in bytes! */ |
266 | adev->irq.ih.rptr += 16; | 266 | adev->irq.ih.rptr += 16; |
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 2a565a48bd4f..1d67df045d2e 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | |||
@@ -263,10 +263,10 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev, | |||
263 | 263 | ||
264 | if (printk_ratelimit()) { | 264 | if (printk_ratelimit()) { |
265 | dev_err(adev->dev, | 265 | dev_err(adev->dev, |
266 | "[%s] VMC page fault (src_id:%u ring:%u vmid:%u pas_id:%u)\n", | 266 | "[%s] VMC page fault (src_id:%u ring:%u vmid:%u pasid:%u)\n", |
267 | entry->vmid_src ? "mmhub" : "gfxhub", | 267 | entry->vmid_src ? "mmhub" : "gfxhub", |
268 | entry->src_id, entry->ring_id, entry->vmid, | 268 | entry->src_id, entry->ring_id, entry->vmid, |
269 | entry->pas_id); | 269 | entry->pasid); |
270 | dev_err(adev->dev, " at page 0x%016llx from %d\n", | 270 | dev_err(adev->dev, " at page 0x%016llx from %d\n", |
271 | addr, entry->client_id); | 271 | addr, entry->client_id); |
272 | if (!amdgpu_sriov_vf(adev)) | 272 | if (!amdgpu_sriov_vf(adev)) |
diff --git a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c index c4e4be3dd31d..3237a576692d 100644 --- a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c | |||
@@ -260,7 +260,7 @@ static void iceland_ih_decode_iv(struct amdgpu_device *adev, | |||
260 | entry->src_data[0] = dw[1] & 0xfffffff; | 260 | entry->src_data[0] = dw[1] & 0xfffffff; |
261 | entry->ring_id = dw[2] & 0xff; | 261 | entry->ring_id = dw[2] & 0xff; |
262 | entry->vmid = (dw[2] >> 8) & 0xff; | 262 | entry->vmid = (dw[2] >> 8) & 0xff; |
263 | entry->pas_id = (dw[2] >> 16) & 0xffff; | 263 | entry->pasid = (dw[2] >> 16) & 0xffff; |
264 | 264 | ||
265 | /* wptr/rptr are in bytes! */ | 265 | /* wptr/rptr are in bytes! */ |
266 | adev->irq.ih.rptr += 16; | 266 | adev->irq.ih.rptr += 16; |
diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c index 5995ffc183de..18435389bae4 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c | |||
@@ -271,7 +271,7 @@ static void tonga_ih_decode_iv(struct amdgpu_device *adev, | |||
271 | entry->src_data[0] = dw[1] & 0xfffffff; | 271 | entry->src_data[0] = dw[1] & 0xfffffff; |
272 | entry->ring_id = dw[2] & 0xff; | 272 | entry->ring_id = dw[2] & 0xff; |
273 | entry->vmid = (dw[2] >> 8) & 0xff; | 273 | entry->vmid = (dw[2] >> 8) & 0xff; |
274 | entry->pas_id = (dw[2] >> 16) & 0xffff; | 274 | entry->pasid = (dw[2] >> 16) & 0xffff; |
275 | 275 | ||
276 | /* wptr/rptr are in bytes! */ | 276 | /* wptr/rptr are in bytes! */ |
277 | adev->irq.ih.rptr += 16; | 277 | adev->irq.ih.rptr += 16; |
diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c index ee14d78be2a9..cc8ce7e352a8 100644 --- a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c | |||
@@ -333,7 +333,7 @@ static void vega10_ih_decode_iv(struct amdgpu_device *adev, | |||
333 | entry->vmid_src = (dw[0] >> 31); | 333 | entry->vmid_src = (dw[0] >> 31); |
334 | entry->timestamp = dw[1] | ((u64)(dw[2] & 0xffff) << 32); | 334 | entry->timestamp = dw[1] | ((u64)(dw[2] & 0xffff) << 32); |
335 | entry->timestamp_src = dw[2] >> 31; | 335 | entry->timestamp_src = dw[2] >> 31; |
336 | entry->pas_id = dw[3] & 0xffff; | 336 | entry->pasid = dw[3] & 0xffff; |
337 | entry->pasid_src = dw[3] >> 31; | 337 | entry->pasid_src = dw[3] >> 31; |
338 | entry->src_data[0] = dw[4]; | 338 | entry->src_data[0] = dw[4]; |
339 | entry->src_data[1] = dw[5]; | 339 | entry->src_data[1] = dw[5]; |