Skip to contentSkip to conversation

regression on raven (gmc9)

DISCUSSION Tom St Denis 4 participants 6 messages Apr 2, 2018 – Apr 3, 2018 5 messages not in the archive

lore
Share & tools
lore

Tom St Denis

author Reviewed-by Huang Rui Reviewed-by Christian König
#0 lore raw

This commit

[root@raven linux]# git bisect bad c704d7a15d292e6e222b7e990ed7e9f41617cdd8 is the first bad commit commit c704d7a15d292e6e222b7e990ed7e9f41617cdd8

Author: Alex Deucher <[email protected]>
Date:   Tue Mar 27 17:10:56 2018 -0500

drm/amdgpu/gmc9: use amdgpu_ring_emit_reg_write_reg_wait in gpu tlb
flush

Use amdgpu_ring_emit_reg_write_reg_wait. On engines that support it, it provides a write and wait in a single packet which avoids a missed ack if a world switch happens between the request and waiting for the ack.

:040000 040000 a08a12a316d09ea231337136cc7aa076d4da44a8 521c8a18b0c63e185e416a267619a92822d7f268 M drivers

Causes my raven1 to lockup on starting X with a gfx ring stall.

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): 2bd09049-695a-ef03-3a45-53610d366b38-5C7GfCeVMHo@public.gmane.org

#2 lore raw
Quoted 16 lines · Tom St Denis

This commit

[root@raven linux]# git bisect bad c704d7a15d292e6e222b7e990ed7e9f41617cdd8 is the first bad commit commit c704d7a15d292e6e222b7e990ed7e9f41617cdd8

Author: Alex Deucher <[email protected]>
Date:   Tue Mar 27 17:10:56 2018 -0500

drm/amdgpu/gmc9: use amdgpu_ring_emit_reg_write_reg_wait in gpu tlb
flush

Use amdgpu_ring_emit_reg_write_reg_wait. On engines that support it, it provides a write and wait in a single packet which avoids a missed ack if a world switch happens between the request and waiting for the ack.

Quoted 8 lines

:040000 040000 a08a12a316d09ea231337136cc7aa076d4da44a8
521c8a18b0c63e185e416a267619a92822d7f268 M drivers

Causes my raven1 to lockup on starting X with a gfx ring stall.

I've reverted the patches.

Alex

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

A message that is not in the archive (sent off-list or not yet received): CADnq5_PDpDRCGisjyOTybqjSM3CcUjjnR-xZHJ8KnG70E3kohw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw

Am 02.04.2018 um 17:00 schrieb Alex Deucher:

Quoted 21 lines · Tom St Denis
Quoted 20 lines

This commit

[root@raven linux]# git bisect bad c704d7a15d292e6e222b7e990ed7e9f41617cdd8 is the first bad commit commit c704d7a15d292e6e222b7e990ed7e9f41617cdd8

Author: Alex Deucher <[email protected]>
Date:   Tue Mar 27 17:10:56 2018 -0500

drm/amdgpu/gmc9: use amdgpu_ring_emit_reg_write_reg_wait in gpu tlb
flush

Use amdgpu_ring_emit_reg_write_reg_wait. On engines that support it, it provides a write and wait in a single packet which avoids a missed ack if a world switch happens between the request and waiting for the ack.

Quoted 5 lines
Quoted 4 lines

:040000 040000 a08a12a316d09ea231337136cc7aa076d4da44a8
521c8a18b0c63e185e416a267619a92822d7f268 M drivers

Causes my raven1 to lockup on starting X with a gfx ring stall.

I've reverted the patches.

Yeah, you need a specialized firmware version for this which Raven probably doesn't have.

Anyway the root cause of the issue which should be fixed by this patch set was found in the meantime, so the whole patch set shouldn't be necessary any more.

Christian.

Quoted 8 lines

Alex

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): 7d7bf762-7b6e-47a5-d5d7-860e93a0750d-5C7GfCeVMHo@public.gmane.org

#6 lore raw

Hi Alex and Christian,
Those patches are important for vega10 SRIOV, without this, vega10 run many games will hang on SRIOV,
how about to add "if (amdgpu_sriov_vf(adev) && adev->asic_type == CHIP_VEGA10)" to separate the bare metal and SRIOV?

Best Wishes,
Emily Deng

Quoted 58 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Christian K?nig
Sent: Monday, April 02, 2018 11:23 PM
To: Alex Deucher <[email protected]>; StDenis, Tom <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; [email protected]
Subject: Re: regression on raven (gmc9)

Am 02.04.2018 um 17:00 schrieb Alex Deucher:

Quoted 1 line

On Mon, Apr 2, 2018 at 7:17 AM, Tom St Denis <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines

This commit

[root@raven linux]# git bisect bad c704d7a15d292e6e222b7e990ed7e9f41617cdd8 is the first bad commit commit c704d7a15d292e6e222b7e990ed7e9f41617cdd8

Author: Alex Deucher <[email protected]>
Date:   Tue Mar 27 17:10:56 2018 -0500
Quoted 4 lines
Quoted 4 lines

drm/amdgpu/gmc9: use amdgpu_ring_emit_reg_write_reg_wait in gpu
tlb flush

Use amdgpu_ring_emit_reg_write_reg_wait. On engines that support

it,

Quoted 8 lines
Quoted 8 lines

it provides a write and wait in a single packet which avoids a missed ack if a world switch happens between the request and waiting for the ack.

Quoted 5 lines
Quoted 4 lines

:040000 040000 a08a12a316d09ea231337136cc7aa076d4da44a8
521c8a18b0c63e185e416a267619a92822d7f268 M drivers

Causes my raven1 to lockup on starting X with a gfx ring stall.

I've reverted the patches.

Yeah, you need a specialized firmware version for this which Raven probably doesn't have.

Anyway the root cause of the issue which should be fixed by this patch set was found in the meantime, so the whole patch set shouldn't be necessary any more.

Christian.

Quoted 8 lines

Alex

Quoted 5 lines

Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Quoted 4 lines

_______________________________________________
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): CY4PR12MB11257EABAFAD6E913FD3A21C8FA50-rpdhrqHFk07v2MZdTKcfDgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#8 lore raw

Hi Emily,

the root cause of the hang was found and as far as I know the plan is to fix this with new RLC firmware.

Please see the internal thread with the hardware guys.

Thanks,
Christian.

Am 03.04.2018 um 03:54 schrieb Deng, Emily:

Quoted 5 lines

Hi Alex and Christian,
Those patches are important for vega10 SRIOV, without this, vega10 run many games will hang on SRIOV,
how about to add "if (amdgpu_sriov_vf(adev) && adev->asic_type == CHIP_VEGA10)" to separate the bare metal and SRIOV?

Quoted 65 lines

Best Wishes,
Emily Deng

Quoted 59 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Christian K?nig
Sent: Monday, April 02, 2018 11:23 PM
To: Alex Deucher <[email protected]>; StDenis, Tom <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; [email protected]
Subject: Re: regression on raven (gmc9)

Am 02.04.2018 um 17:00 schrieb Alex Deucher:

Quoted 1 line

On Mon, Apr 2, 2018 at 7:17 AM, Tom St Denis <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines

This commit

[root@raven linux]# git bisect bad c704d7a15d292e6e222b7e990ed7e9f41617cdd8 is the first bad commit commit c704d7a15d292e6e222b7e990ed7e9f41617cdd8

Author: Alex Deucher <[email protected]>
Date:   Tue Mar 27 17:10:56 2018 -0500
Quoted 4 lines
Quoted 4 lines

drm/amdgpu/gmc9: use amdgpu_ring_emit_reg_write_reg_wait in gpu
tlb flush

Use amdgpu_ring_emit_reg_write_reg_wait. On engines that support

it,

Quoted 8 lines
Quoted 8 lines

it provides a write and wait in a single packet which avoids a missed ack if a world switch happens between the request and waiting for the ack.

Quoted 5 lines
Quoted 4 lines

:040000 040000 a08a12a316d09ea231337136cc7aa076d4da44a8
521c8a18b0c63e185e416a267619a92822d7f268 M drivers

Causes my raven1 to lockup on starting X with a gfx ring stall.

I've reverted the patches.

Yeah, you need a specialized firmware version for this which Raven probably doesn't have.

Anyway the root cause of the issue which should be fixed by this patch set was found in the meantime, so the whole patch set shouldn't be necessary any more.

Christian.

Quoted 7 lines

Alex

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

_______________________________________________
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): 255f64f8-c826-4e65-8ec5-65f95a3fb149-5C7GfCeVMHo@public.gmane.org

#10 lore raw

Hi Christian,
I know this, but seems it will take long time to do this, and this issue has blocked vega10 sriov for long time.
But we want the staging to be stable on vega10 sriov as soon as possible.

Best Wishes,
Emily Deng

Quoted 56 lines

-----Original Message-----
From: Koenig, Christian
Sent: Tuesday, April 03, 2018 5:22 PM
To: Deng, Emily <[email protected]>; Alex Deucher <[email protected]>; StDenis, Tom <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; [email protected]
Subject: Re: regression on raven (gmc9)

Hi Emily,

the root cause of the hang was found and as far as I know the plan is to fix this with new RLC firmware.

Please see the internal thread with the hardware guys.

Thanks,
Christian.

Am 03.04.2018 um 03:54 schrieb Deng, Emily:

Quoted 4 lines

Hi Alex and Christian,
Those patches are important for vega10 SRIOV, without this,
vega10 run many games will hang on SRIOV, how about to add "if (amdgpu_sriov_vf(adev) && adev->asic_type == CHIP_VEGA10)" to

separate the bare metal and SRIOV?

Quoted 31 lines

Best Wishes,
Emily Deng

Quoted 24 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Christian K?nig
Sent: Monday, April 02, 2018 11:23 PM
To: Alex Deucher <[email protected]>; StDenis, Tom <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; [email protected]
Subject: Re: regression on raven (gmc9)

Am 02.04.2018 um 17:00 schrieb Alex Deucher:

Quoted 1 line

On Mon, Apr 2, 2018 at 7:17 AM, Tom St Denis <[email protected]>

Quoted 11 lines · wrote:
Quoted 11 lines

This commit

[root@raven linux]# git bisect bad c704d7a15d292e6e222b7e990ed7e9f41617cdd8 is the first bad commit commit c704d7a15d292e6e222b7e990ed7e9f41617cdd8

Author: Alex Deucher <[email protected]>
Date:   Tue Mar 27 17:10:56 2018 -0500

drm/amdgpu/gmc9: use amdgpu_ring_emit_reg_write_reg_wait in
gpu tlb flush

Quoted 37 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

Use amdgpu_ring_emit_reg_write_reg_wait. On engines that
support

it,

Quoted 2 lines
Quoted 2 lines

it provides a write and wait in a single packet which avoids a missed ack if a world switch happens between the request and waiting for

the

Quoted 31 lines
Quoted 31 lines
Quoted 11 lines
Quoted 10 lines

ack.

:040000 040000 a08a12a316d09ea231337136cc7aa076d4da44a8
521c8a18b0c63e185e416a267619a92822d7f268 M drivers

Causes my raven1 to lockup on starting X with a gfx ring stall.

I've reverted the patches.

Yeah, you need a specialized firmware version for this which Raven probably doesn't have.

Anyway the root cause of the issue which should be fixed by this patch set was found in the meantime, so the whole patch set shouldn't be necessary any more.

Christian.

Quoted 7 lines

Alex

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

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx