LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec
@ 2018-04-23 18:50 Mathieu Malaterre
  2018-04-29 17:16 ` Christian König
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Malaterre @ 2018-04-23 18:50 UTC (permalink / raw)
  To: Alex Deucher
  Cc: Christian König, David (ChunMing) Zhou, David Airlie,
	amd-gfx, dri-devel, LKML

Hi there,

I am pretty sure I was able to run kodi on an old Mac Mini G4 (big
endian) with AMD RV280. Today it is failing to start with:

[  162.971551] radeon 0000:00:10.0: ring 0 stalled for more than 10240msec
[  162.971568] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  163.482863] radeon 0000:00:10.0: ring 0 stalled for more than 10752msec
[  163.482880] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  163.994225] radeon 0000:00:10.0: ring 0 stalled for more than 11264msec
[  163.994241] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  164.505598] radeon 0000:00:10.0: ring 0 stalled for more than 11776msec
[  164.505614] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  165.016996] radeon 0000:00:10.0: ring 0 stalled for more than 12288msec
[  165.017013] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  165.528429] radeon 0000:00:10.0: ring 0 stalled for more than 12800msec
[  165.528446] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  166.039865] radeon 0000:00:10.0: ring 0 stalled for more than 13312msec
[  166.039882] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  166.551351] radeon 0000:00:10.0: ring 0 stalled for more than 13824msec
[  166.551368] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  167.062819] radeon 0000:00:10.0: ring 0 stalled for more than 14336msec
[  167.062836] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  167.574331] radeon 0000:00:10.0: ring 0 stalled for more than 14848msec
[  167.574348] radeon 0000:00:10.0: GPU lockup (current fence id
0x00000000000001d6 last fence id 0x00000000000001d7 on ring 0)
[  167.798244] [TTM] Buffer eviction failed
[  167.940488] radeon: wait for empty RBBM fifo failed! Bad things might happen.
[  168.076053] Failed to wait GUI idle while programming pipes. Bad
things might happen.
[  168.092258] radeon 0000:00:10.0: Saved 91 dwords of commands on ring 0.
[  168.092380] radeon 0000:00:10.0: (r100_asic_reset:2560)
RBBM_STATUS=0x83F96100
[  168.589895] radeon 0000:00:10.0: (r100_asic_reset:2581)
RBBM_STATUS=0x80010140
[  169.083456] radeon 0000:00:10.0: (r100_asic_reset:2589)
RBBM_STATUS=0x00000140
[  169.083482] radeon 0000:00:10.0: GPU reset succeed
[  169.083487] radeon 0000:00:10.0: GPU reset succeeded, trying to resume
[  169.083550] radeon 0000:00:10.0: WB disabled
[  169.083561] radeon 0000:00:10.0: fence driver on ring 0 use gpu
addr 0x0000000000000000 and cpu addr 0x883a5378
[  169.083612] [drm] radeon: ring at 0x0000000000001000
[  169.228838] [drm:r100_ring_test [radeon]] *ERROR* radeon: ring test
failed (scratch(0x15E8)=0xCAFEDEAD)
[  169.228910] [drm:r100_cp_init [radeon]] *ERROR* radeon: cp isn't
working (-22).
[  169.228919] radeon 0000:00:10.0: failed initializing CP (-22).


How should I go and debug this (other than plain git-bisect) ?

For reference:

# modprobe radeon

...

[  100.369890] [drm] radeon kernel modesetting enabled.
[  100.377816] checking generic (9c008000 5a000) vs hw (98000000 8000000)
[  100.377824] fb: switching to radeondrmfb from OFfb ATY,RockHo
[  100.382566] Console: switching to colour dummy device 80x25
[  100.386224] radeon 0000:00:10.0: enabling device (0006 -> 0007)
[  100.389596] [drm] initializing kernel modesetting (RV280
0x1002:0x5962 0x1002:0x5962 0x01).
[  100.389783] radeon 0000:00:10.0: Invalid PCI ROM header signature:
expecting 0xaa55, got 0x0000
[  100.389813] radeon 0000:00:10.0: Invalid PCI ROM header signature:
expecting 0xaa55, got 0x0000
[  100.390218] [drm:radeon_get_bios [radeon]] *ERROR* Unable to locate
a BIOS ROM
[  100.390247] [drm] Using device-tree clock info
[  100.390286] agpgart-uninorth 0000:00:0b.0: putting AGP V2 device into 4x mode
[  100.390300] radeon 0000:00:10.0: putting AGP V2 device into 4x mode
[  100.390345] radeon 0000:00:10.0: GTT: 256M 0x00000000 - 0x0FFFFFFF
[  100.390355] [drm] Generation 2 PCI interface, using max accessible memory
[  100.390368] radeon 0000:00:10.0: VRAM: 128M 0x0000000098000000 -
0x000000009FFFFFFF (32M used)
[  100.390406] [drm] Detected VRAM RAM=128M, BAR=128M
[  100.390415] [drm] RAM width 64bits DDR
[  100.405414] [TTM] Zone  kernel: Available graphics memory: 254062 kiB
[  100.405444] [TTM] Initializing pool allocator
[  100.405542] [drm] radeon: 32M of VRAM memory ready
[  100.405554] [drm] radeon: 256M of GTT memory ready.
[  100.406161] radeon 0000:00:10.0: WB disabled
[  100.406187] radeon 0000:00:10.0: fence driver on ring 0 use gpu
addr 0x0000000000000000 and cpu addr 0x883a5378
[  100.406204] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[  100.406212] [drm] Driver supports precise vblank timestamp query.
[  100.406252] [drm] radeon: irq initialized.
[  100.406276] [drm] Loading R200 Microcode
[  100.446688] radeon 0000:00:10.0: firmware: direct-loading firmware
radeon/R200_cp.bin
[  100.447755] [drm] radeon: ring at 0x0000000000001000
[  100.447800] [drm] ring test succeeded in 0 usecs
[  100.448435] [drm] ib test succeeded in 0 usecs
[  100.454640] [drm] Connector Table: 7 (mini internal tmds)
[  100.454680] [drm] No TMDS info found in BIOS
[  100.454692] [drm] No TV DAC info found in BIOS
[  100.454900] [drm] Radeon Display Connectors
[  100.454910] [drm] Connector 0:
[  100.454916] [drm]   DVI-I-1
[  100.454922] [drm]   HPD1
[  100.454930] [drm]   DDC: 0x6c 0x6c 0x6c 0x6c 0x6c 0x6c 0x6c 0x6c
[  100.454937] [drm]   Encoders:
[  100.454944] [drm]     DFP1: INTERNAL_TMDS1
[  100.454951] [drm]     CRT2: INTERNAL_DAC2
[  100.454958] [drm] Connector 1:
[  100.454963] [drm]   SVIDEO-1
[  100.454969] [drm]   Encoders:
[  100.454975] [drm]     TV1: INTERNAL_DAC2
[  100.542734] [drm] fb mappable at 0x98040000
[  100.542764] [drm] vram apper at 0x98000000
[  100.542770] [drm] size 1572864
[  100.542777] [drm] fb depth is 16
[  100.542783] [drm]    pitch is 2048
[  100.614204] Console: switching to colour frame buffer device 128x48
[  100.623505] radeon 0000:00:10.0: fb0: radeondrmfb frame buffer device
[  100.634507] [drm] Initialized radeon 2.50.0 20080528 for
0000:00:10.0 on minor 0


Thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec
  2018-04-23 18:50 Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec Mathieu Malaterre
@ 2018-04-29 17:16 ` Christian König
  2018-05-02  2:39   ` 答复: " Qu, Jim
  0 siblings, 1 reply; 4+ messages in thread
From: Christian König @ 2018-04-29 17:16 UTC (permalink / raw)
  To: Mathieu Malaterre, Alex Deucher
  Cc: David (ChunMing) Zhou, David Airlie, amd-gfx, dri-devel, LKML

Am 23.04.2018 um 20:50 schrieb Mathieu Malaterre:
> Hi there,
>
> I am pretty sure I was able to run kodi on an old Mac Mini G4 (big
> endian) with AMD RV280. Today it is failing to start with:

Well, that is rather old hardware. I suggest to make sure first that the 
hw isn't broken in some way.

> How should I go and debug this (other than plain git-bisect) ?

You first need to figure out what's the failing component. Either Mesa, 
DDX or the Kernel are possible candidates.

Another possibility is that you updated kodi and kodi is now doing 
something the hw doesn't like.

Regards,
Christian.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* 答复: Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec
  2018-04-29 17:16 ` Christian König
@ 2018-05-02  2:39   ` Qu, Jim
  2018-05-02  6:00     ` Mathieu Malaterre
  0 siblings, 1 reply; 4+ messages in thread
From: Qu, Jim @ 2018-05-02  2:39 UTC (permalink / raw)
  To: Koenig, Christian, Mathieu Malaterre, Deucher, Alexander
  Cc: David Airlie, Zhou, David(ChunMing), dri-devel, amd-gfx, LKML

Hi ,

If you are sure that the HW worked fine before. I think you should:

1. Be sure that HW works fine now.
2. recall the driver to the point at where it works well, and then replace them one by one to confirm component which causes the issue.
3. try to update the last VBIOS to adapt new driver.

Thanks
JimQu

________________________________________
发件人: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> 代表 Christian König <christian.koenig@amd.com>
发送时间: 2018年4月30日 1:16:14
收件人: Mathieu Malaterre; Deucher, Alexander
抄送: David Airlie; Zhou, David(ChunMing); dri-devel; amd-gfx@lists.freedesktop.org; LKML
主题: Re: Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec

Am 23.04.2018 um 20:50 schrieb Mathieu Malaterre:
> Hi there,
>
> I am pretty sure I was able to run kodi on an old Mac Mini G4 (big
> endian) with AMD RV280. Today it is failing to start with:

Well, that is rather old hardware. I suggest to make sure first that the
hw isn't broken in some way.

> How should I go and debug this (other than plain git-bisect) ?

You first need to figure out what's the failing component. Either Mesa,
DDX or the Kernel are possible candidates.

Another possibility is that you updated kodi and kodi is now doing
something the hw doesn't like.

Regards,
Christian.
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 答复: Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec
  2018-05-02  2:39   ` 答复: " Qu, Jim
@ 2018-05-02  6:00     ` Mathieu Malaterre
  0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Malaterre @ 2018-05-02  6:00 UTC (permalink / raw)
  To: Qu, Jim
  Cc: Koenig, Christian, Deucher, Alexander, David Airlie, Zhou,
	David(ChunMing),
	dri-devel, amd-gfx, LKML

Hi all,

On Wed, May 2, 2018 at 4:39 AM, Qu, Jim <Jim.Qu@amd.com> wrote:
> Hi ,
>
> If you are sure that the HW worked fine before. I think you should:
>
> 1. Be sure that HW works fine now.
> 2. recall the driver to the point at where it works well, and then replace them one by one to confirm component which causes the issue.
> 3. try to update the last VBIOS to adapt new driver.
>
> Thanks
> JimQu
>
> ________________________________________
> 发件人: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> 代表 Christian König <christian.koenig@amd.com>
> 发送时间: 2018年4月30日 1:16:14
> 收件人: Mathieu Malaterre; Deucher, Alexander
> 抄送: David Airlie; Zhou, David(ChunMing); dri-devel; amd-gfx@lists.freedesktop.org; LKML
> 主题: Re: Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec
>
> Am 23.04.2018 um 20:50 schrieb Mathieu Malaterre:
>> Hi there,
>>
>> I am pretty sure I was able to run kodi on an old Mac Mini G4 (big
>> endian) with AMD RV280. Today it is failing to start with:
>
> Well, that is rather old hardware. I suggest to make sure first that the
> hw isn't broken in some way.
>
>> How should I go and debug this (other than plain git-bisect) ?
>
> You first need to figure out what's the failing component. Either Mesa,
> DDX or the Kernel are possible candidates.
>
> Another possibility is that you updated kodi and kodi is now doing
> something the hw doesn't like.

That was my mistake, I forgot about AGP vs PCI on radeon. Should be
fixed in next release:

https://patchwork.kernel.org/patch/10360887/

> Regards,
> Christian.
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-02  6:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-23 18:50 Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec Mathieu Malaterre
2018-04-29 17:16 ` Christian König
2018-05-02  2:39   ` 答复: " Qu, Jim
2018-05-02  6:00     ` Mathieu Malaterre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).