Skip to contentSkip to conversation

GFX ring names

DISCUSSION Tom St Denis 2 participants 2 messages Aug 31, 2017 – Sep 1, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Working on a series of tidy up patches for gfx_v9 and found this block in gfx_v9_0_sw_init().

	for (i = 0; i < adev->gfx.num_gfx_rings; i++) {
		ring = &adev->gfx.gfx_ring[i];
		ring->ring_obj = NULL;
		sprintf(ring->name, "gfx");

Won't that make a series of rings all with the same name?

Tom
_______________________________________________
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): c3c382ff-bef0-dd69-9022-de66bb2ac441-5C7GfCeVMHo@public.gmane.org

#2 lore raw
Quoted 9 lines · Tom St Denis

Working on a series of tidy up patches for gfx_v9 and found this block in gfx_v9_0_sw_init().

     for (i = 0; i < adev->gfx.num_gfx_rings; i++) {
         ring = &adev->gfx.gfx_ring[i];
         ring->ring_obj = NULL;
         sprintf(ring->name, "gfx");

Won't that make a series of rings all with the same name?

Yes, it will.

Generally we always have one gfx ring, so it's acceptable for now.
* adev->gfx.num_gfx_rings = GFX9_NUM_GFX_RINGS

Additionally, as all rings here belong to gfx, naming "gfx" also acceptable. (Perhaps gfx[i] is a better name when we have more rings)

Regards,
Jerry

Quoted 6 lines

Tom
_______________________________________________
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