* [PATCH umr 1/2] Fix UVD/VCN IB detection.
@ 2017-08-25 12:55 Tom St Denis
[not found] ` <20170825125545.17117-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Tom St Denis @ 2017-08-25 12:55 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis
Since we add the IP name to the register names we
need to strip that off again.
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
src/lib/ring_decode.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lib/ring_decode.c b/src/lib/ring_decode.c
index 9d6e366e4594..52855ab4fb62 100644
--- a/src/lib/ring_decode.c
+++ b/src/lib/ring_decode.c
@@ -748,6 +748,10 @@ static void print_decode_pm4(struct umr_asic *asic, struct umr_ring_decoder *dec
name = umr_reg_name(asic, decoder->pm4.next_write_mem.addr_lo);
printf(" word (%lu): %s(0x%lx) <= 0x%lx", (unsigned long)decoder->pm4.cur_word++, name, (unsigned long)decoder->pm4.next_write_mem.addr_lo, (unsigned long)ib);
+ // strip off IP name
+ name = strstr(name, ".");
+ if (name[0] == '.') ++name;
+
// detect VCN/UVD IBs and chain them once all
// 4 pieces of information are found
if (!strcmp(name, "mmUVD_LMI_RBC_IB_VMID")) {
--
2.12.0
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH umr 2/2] Add SI/CIK to read_vram.
[not found] ` <20170825125545.17117-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
@ 2017-08-25 12:55 ` Tom St Denis
[not found] ` <20170825125545.17117-2-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Tom St Denis @ 2017-08-25 12:55 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis
Tested with my Tahiti device.
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
src/lib/read_vram.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/lib/read_vram.c b/src/lib/read_vram.c
index f2c3a15c27fe..c254f5a2e406 100644
--- a/src/lib/read_vram.c
+++ b/src/lib/read_vram.c
@@ -815,6 +815,8 @@ int umr_read_vram(struct umr_asic *asic, uint32_t vmid, uint64_t address, uint32
}
switch (asic->family) {
+ case FAMILY_SI:
+ case FAMILY_CIK:
case FAMILY_VI:
return umr_read_vram_vi(asic, vmid, address, size, dst);
case FAMILY_RV:
--
2.12.0
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH umr 2/2] Add SI/CIK to read_vram.
[not found] ` <20170825125545.17117-2-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
@ 2017-08-25 15:53 ` Deucher, Alexander
0 siblings, 0 replies; 3+ messages in thread
From: Deucher, Alexander @ 2017-08-25 15:53 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: StDenis, Tom
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Friday, August 25, 2017 8:56 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH umr 2/2] Add SI/CIK to read_vram.
>
> Tested with my Tahiti device.
>
> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Series is:
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> src/lib/read_vram.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/lib/read_vram.c b/src/lib/read_vram.c
> index f2c3a15c27fe..c254f5a2e406 100644
> --- a/src/lib/read_vram.c
> +++ b/src/lib/read_vram.c
> @@ -815,6 +815,8 @@ int umr_read_vram(struct umr_asic *asic, uint32_t
> vmid, uint64_t address, uint32
> }
>
> switch (asic->family) {
> + case FAMILY_SI:
> + case FAMILY_CIK:
> case FAMILY_VI:
> return umr_read_vram_vi(asic, vmid, address, size,
> dst);
> case FAMILY_RV:
> --
> 2.12.0
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-25 15:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25 12:55 [PATCH umr 1/2] Fix UVD/VCN IB detection Tom St Denis
[not found] ` <20170825125545.17117-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-08-25 12:55 ` [PATCH umr 2/2] Add SI/CIK to read_vram Tom St Denis
[not found] ` <20170825125545.17117-2-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-08-25 15:53 ` Deucher, Alexander
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.