number of rings broken
Hi all,
Just back after a week off ... first thing I see on my vega10 system is this patch:
83866f0fc72017d55f40cbd4160cd1e42a2cc3a8 is the first bad commit commit 83866f0fc72017d55f40cbd4160cd1e42a2cc3a8
Author: Andres Rodriguez <[email protected]> Date: Thu Feb 2 00:38:22 2017 -0500
drm/amdgpu: allow split of queues with kfd at queue granularity v4
Previously the queue/pipe split with kfd operated with pipe granularity. This patch allows amdgpu to take ownership of an arbitrary set of queues.
It also consolidates the last few magic numbers in the compute initialization process into mec_init.
v2: support for gfx9
v3: renamed AMDGPU_MAX_QUEUES to AMDGPU_MAX_COMPUTE_QUEUES
v4: fix off-by-one in num_mec checks in *_compute_queue_acquire
:040000 040000 cafdad84e9fd950112e9ff56956526fa47dcaa59 48647a91855c0b2d4b3dfedffb89bd93da25c0eb M drivers
Causes the driver to fail to init properly with these messages:
[ 21.983487] [drm] amdgpu: irq initialized. [ 22.012073] amdgpu: [powerplay] amdgpu: powerplay sw initialized [ 22.015161] amdgpu 0000:03:00.0: fence driver on ring 0 use gpu addr 0x000000f5ff000008, cpu addr 0xffff8802143fc008 [ 22.015208] amdgpu 0000:03:00.0: fence driver on ring 1 use gpu addr 0x000000f5ff000010, cpu addr 0xffff8802143fc010 [ 22.015243] amdgpu 0000:03:00.0: fence driver on ring 2 use gpu addr 0x000000f5ff000018, cpu addr 0xffff8802143fc018 [ 22.015278] amdgpu 0000:03:00.0: fence driver on ring 3 use gpu addr 0x000000f5ff000028, cpu addr 0xffff8802143fc028 [ 22.015310] amdgpu 0000:03:00.0: fence driver on ring 4 use gpu addr 0x000000f5ff000030, cpu addr 0xffff8802143fc030 [ 22.015342] amdgpu 0000:03:00.0: fence driver on ring 5 use gpu addr 0x000000f5ff000038, cpu addr 0xffff8802143fc038 [ 22.015374] amdgpu 0000:03:00.0: fence driver on ring 6 use gpu addr 0x000000f5ff000048, cpu addr 0xffff8802143fc048 [ 22.015412] amdgpu 0000:03:00.0: fence driver on ring 7 use gpu addr 0x000000f5ff000050, cpu addr 0xffff8802143fc050 [ 22.015445] amdgpu 0000:03:00.0: fence driver on ring 8 use gpu addr 0x000000f5ff000058, cpu addr 0xffff8802143fc058 [ 22.015457] amdgpu 0000:03:00.0: fence driver on ring 1 use gpu addr 0x000000f5ff000068, cpu addr 0xffff8802143fc068 [ 22.015565] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015573] amdgpu 0000:03:00.0: fence driver on ring 2 use gpu addr 0x000000f5ff000070, cpu addr 0xffff8802143fc070 [ 22.015616] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015620] amdgpu 0000:03:00.0: fence driver on ring 3 use gpu addr 0x000000f5ff000078, cpu addr 0xffff8802143fc078 [ 22.015660] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015663] amdgpu 0000:03:00.0: fence driver on ring 4 use gpu addr 0x000000f5ff000088, cpu addr 0xffff8802143fc088 [ 22.015702] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015705] amdgpu 0000:03:00.0: fence driver on ring 5 use gpu addr 0x000000f5ff000090, cpu addr 0xffff8802143fc090 [ 22.015745] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015748] amdgpu 0000:03:00.0: fence driver on ring 6 use gpu addr 0x000000f5ff000098, cpu addr 0xffff8802143fc098 [ 22.015787] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015792] amdgpu 0000:03:00.0: fence driver on ring 7 use gpu addr 0x000000f5ff0000a8, cpu addr 0xffff8802143fc0a8 [ 22.015836] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015842] amdgpu 0000:03:00.0: fence driver on ring 8 use gpu addr 0x000000f5ff0000b0, cpu addr 0xffff8802143fc0b0 [ 22.015881] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015920] [drm:gfx_v9_0_sw_init [amdgpu]] *ERROR* Too many (8) compute rings!
I haven't diagnosed why that is a problem but effectively various constants have changed it seems. On the same system the module inits for carrizo just fine so it seems to be a GFX9 issue.
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): 698d59ac-54e8-52b1-9960-b18a9566eb21-5C7GfCeVMHo@public.gmane.org
Quoted 23 lines · Tom St Denis
Hi all,
Just back after a week off ... first thing I see on my vega10 system is this patch:
83866f0fc72017d55f40cbd4160cd1e42a2cc3a8is the first bad commit commit83866f0fc72017d55f40cbd4160cd1e42a2cc3a8Author: Andres Rodriguez <[email protected]> Date: Thu Feb 2 00:38:22 2017 -0500drm/amdgpu: allow split of queues with kfd at queue granularity v4
Previously the queue/pipe split with kfd operated with pipe granularity. This patch allows amdgpu to take ownership of an arbitrary set of queues.
It also consolidates the last few magic numbers in the compute initialization process into
mec_init.v2: support for gfx9
v3: renamedAMDGPU_MAX_QUEUEStoAMDGPU_MAX_COMPUTE_QUEUES
v4: fix off-by-one innum_mecchecks in*_compute_queue_acquire
Quoted 8 lines
Reviewed-by Edward O'Callaghan <[email protected]>Reviewed-by Felix Kuehling <[email protected]>Acked-by Christian König <[email protected]>Signed-off-by Andres Rodriguez <[email protected]>Signed-off-by Alex Deucher <[email protected]>:040000 040000
cafdad84e9fd950112e9ff56956526fa47dcaa5948647a91855c0b2d4b3dfedffb89bd93da25c0ebM drivers
Looks like some of Andres' later patches were not properly rebased for gfx9. Do to the two patches I send out this morning help?
Thanks,
Alex
Quoted 62 lines
Causes the driver to fail to init properly with these messages:
[ 21.983487] [drm] amdgpu: irq initialized. [ 22.012073] amdgpu: [powerplay] amdgpu: powerplay sw initialized [ 22.015161] amdgpu 0000:03:00.0: fence driver on ring 0 use gpu addr 0x000000f5ff000008, cpu addr 0xffff8802143fc008 [ 22.015208] amdgpu 0000:03:00.0: fence driver on ring 1 use gpu addr 0x000000f5ff000010, cpu addr 0xffff8802143fc010 [ 22.015243] amdgpu 0000:03:00.0: fence driver on ring 2 use gpu addr 0x000000f5ff000018, cpu addr 0xffff8802143fc018 [ 22.015278] amdgpu 0000:03:00.0: fence driver on ring 3 use gpu addr 0x000000f5ff000028, cpu addr 0xffff8802143fc028 [ 22.015310] amdgpu 0000:03:00.0: fence driver on ring 4 use gpu addr 0x000000f5ff000030, cpu addr 0xffff8802143fc030 [ 22.015342] amdgpu 0000:03:00.0: fence driver on ring 5 use gpu addr 0x000000f5ff000038, cpu addr 0xffff8802143fc038 [ 22.015374] amdgpu 0000:03:00.0: fence driver on ring 6 use gpu addr 0x000000f5ff000048, cpu addr 0xffff8802143fc048 [ 22.015412] amdgpu 0000:03:00.0: fence driver on ring 7 use gpu addr 0x000000f5ff000050, cpu addr 0xffff8802143fc050 [ 22.015445] amdgpu 0000:03:00.0: fence driver on ring 8 use gpu addr 0x000000f5ff000058, cpu addr 0xffff8802143fc058 [ 22.015457] amdgpu 0000:03:00.0: fence driver on ring 1 use gpu addr 0x000000f5ff000068, cpu addr 0xffff8802143fc068 [ 22.015565] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015573] amdgpu 0000:03:00.0: fence driver on ring 2 use gpu addr 0x000000f5ff000070, cpu addr 0xffff8802143fc070 [ 22.015616] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015620] amdgpu 0000:03:00.0: fence driver on ring 3 use gpu addr 0x000000f5ff000078, cpu addr 0xffff8802143fc078 [ 22.015660] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015663] amdgpu 0000:03:00.0: fence driver on ring 4 use gpu addr 0x000000f5ff000088, cpu addr 0xffff8802143fc088 [ 22.015702] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015705] amdgpu 0000:03:00.0: fence driver on ring 5 use gpu addr 0x000000f5ff000090, cpu addr 0xffff8802143fc090 [ 22.015745] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015748] amdgpu 0000:03:00.0: fence driver on ring 6 use gpu addr 0x000000f5ff000098, cpu addr 0xffff8802143fc098 [ 22.015787] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015792] amdgpu 0000:03:00.0: fence driver on ring 7 use gpu addr 0x000000f5ff0000a8, cpu addr 0xffff8802143fc0a8 [ 22.015836] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015842] amdgpu 0000:03:00.0: fence driver on ring 8 use gpu addr 0x000000f5ff0000b0, cpu addr 0xffff8802143fc0b0 [ 22.015881] [drm:amdgpu_ring_init [amdgpu]] *ERROR* Failed to register debugfs file for rings ! [ 22.015920] [drm:gfx_v9_0_sw_init [amdgpu]] *ERROR* Too many (8) computerings!
I haven't diagnosed why that is a problem but effectively various constants have changed it seems. On the same system the module inits for carrizo just fine so it seems to be a GFX9 issue.
Quoted 5 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
A message that is not in the archive (sent off-list or not yet received): CADnq5_NaTa6GgiUMCPFOLfCbMmXcpwMgmThAhm=kuB6Hyg3QUQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 30 lines · Alex Deucher
Quoted 29 lines · Tom St Denis
Hi all,
Just back after a week off ... first thing I see on my vega10 system is this patch:
83866f0fc72017d55f40cbd4160cd1e42a2cc3a8is the first bad commit commit83866f0fc72017d55f40cbd4160cd1e42a2cc3a8Author: Andres Rodriguez <[email protected]> Date: Thu Feb 2 00:38:22 2017 -0500drm/amdgpu: allow split of queues with kfd at queue granularity v4
Previously the queue/pipe split with kfd operated with pipe granularity. This patch allows amdgpu to take ownership of an arbitrary set of queues.
It also consolidates the last few magic numbers in the compute initialization process into
mec_init.v2: support for gfx9
v3: renamedAMDGPU_MAX_QUEUEStoAMDGPU_MAX_COMPUTE_QUEUES
v4: fix off-by-one innum_mecchecks in*_compute_queue_acquireReviewed-by Edward O'Callaghan <[email protected]>Reviewed-by Felix Kuehling <[email protected]>Acked-by Christian König <[email protected]>Signed-off-by Andres Rodriguez <[email protected]>Signed-off-by Alex Deucher <[email protected]>
Quoted 5 lines
Quoted 2 lines
:040000 040000
cafdad84e9fd950112e9ff56956526fa47dcaa5948647a91855c0b2d4b3dfedffb89bd93da25c0ebM driversLooks like some of Andres' later patches were not properly rebased for gfx9. Do to the two patches I send out this morning help?
By visual inspection patch 1/2 seems to copy the patch I sent to the list this morning. I'll apply both on top of stg-4.11 and see what pops out.
Cheers,
Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx