Received: by 10.192.165.148 with SMTP id m20csp3759995imm; Mon, 23 Apr 2018 11:52:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/9nA5dpjZ2wIsd+1dkEp4MF6dSfoumsi7MwWzHg7h3yWNSGDN2/N2Uy2z+IWTn59p0TIV+ X-Received: by 10.98.3.3 with SMTP id 3mr11254515pfd.255.1524509550113; Mon, 23 Apr 2018 11:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524509550; cv=none; d=google.com; s=arc-20160816; b=kCX2DGY5on6aYDqNGNq+SGsiOtJTVNIMWSLpHWOnyDbrgY4JuNqun/7UJlGVHhcBAq bQvTByfRiKSkVe5msSxgZ9lSKRbulXCGbJCb5Z5uTxeS4ExbKnEdhKqJrygqcOE+2rzZ vsXDAw9Qi8CEKFhsJtGoWOX+Sx0ZaMSgY8etmAYsl3XQeielERkAMXY83zkPN7BIw8wM 0hNJZDEOE4gOppXI96gY6yoXZxlD8zS7M6xY0W17ssGSywJQ2DLXOPmJLQ8JMHacJWQH YsPppXkto+dZqTnxVHb6AI0JmsXGFHBNoT4oqutYFf/Q11Ki5o5AetGavEhWJjLm98Se 9Dcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=m1UwkTnpvxEn+rFfwTGJrnV7C/6SxkILZeR90Rm7wYY=; b=a10pDBpSzBkeomZLCiDd3suU/i2jQgNlYi670+v2KPmUrLfSdIgITxMfXpOuZn2JBa 7wqqQFTYPZ8x7kI3R0Hb1H6zFmUS6rovTpR+hxy/Gc+2pnRtmJiwGro5IgoWXu/xgt6j 2dSmScpHIObveXTW5xpoHzsnO1U0DZB9j1M69UGTuQz7m1swigaX3+vkCbgIJRmu3Pr2 OvLvoDIhVUrZbkT+WduqEjqoG+FrB4m//I+TxvT2PYZNIUE3AsuOKlG5jla4W0VicUe2 QMGLPRiFt/UTuKzXPOiTNnOfXzn64+F4d1qbZsiZ0JowUk+ENzVOZgSsWqbIdi8J+cP2 GQOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RUZq9jOX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si6776023pge.639.2018.04.23.11.52.15; Mon, 23 Apr 2018 11:52:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RUZq9jOX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932294AbeDWSvJ (ORCPT + 99 others); Mon, 23 Apr 2018 14:51:09 -0400 Received: from mail-ot0-f178.google.com ([74.125.82.178]:46301 "EHLO mail-ot0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932085AbeDWSvH (ORCPT ); Mon, 23 Apr 2018 14:51:07 -0400 Received: by mail-ot0-f178.google.com with SMTP id v64-v6so18407304otb.13 for ; Mon, 23 Apr 2018 11:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=m1UwkTnpvxEn+rFfwTGJrnV7C/6SxkILZeR90Rm7wYY=; b=RUZq9jOXDBjDS+UuheK+ADRJQ948uYIYJL1ivjM0zCx+uiKogPDzULQUyu4vOr8gTq qtYeG/7sJU5FYENms7FhuJnV3YKKY5T8W9ALERe3FDG4BOPX2u7l5R68/4AWy6e4iOTB JHmmW1HwGzCqqZNNypJLDYQpBQ7xEkNLce4uGo+T/t+HhBqB0iuiri/ojfD05UDyv/Ct pCCz7asnKIcQDoVdlJC4qh7ZCnhVMQMuK8nuRmksFxUfnTjFYSTM032ImfhH7iHKT2Wa DK/j1vLjjvSaRoil5Z94M30Eb0D3ujSj13EgEiU+7NCzwDYjLPvRb51d6NiirsUt0TNY wAOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:cc; bh=m1UwkTnpvxEn+rFfwTGJrnV7C/6SxkILZeR90Rm7wYY=; b=fy2xDwRlK12NmV0FwnThbXgzknLPKdK4ooyTr7DC8EFMBDpmRvI1s9y77b51Zs89Pl EiSisPQLJn//+8EULFOjFB+e37nQoKhM43h9WX82O9MS8EWFbFq50stuFWKYi9R/P3wu 5WkumUI/SEfNALoKMScpE7tyvfN0MJU1tMuv5YyNyXZs70q9TDelGzIWp10y3J91y+u8 TdetH7tmS+wUQQt6p8Q73VwpcV8RKEH/nm8w3QUqe3aL6nkgSrFFuCYxfQk1qN1kQrF4 KTSaQTSUYJLDpw+iP77Vg5x44WJi9vpBYRwES/M2BlEVwMIwTAiR49SHIvYHu9c0q/cd yiNQ== X-Gm-Message-State: ALQs6tA6qida9MKW8KMQLsTL6G/YTAmvCEeA6EJh/+lZpEtlAISxfPmp ZU+RUU7QksBc1w2KdTpPI1qi4OBeWtMl8GIzU5M= X-Received: by 2002:a9d:5c4:: with SMTP id 62-v6mr15071483otd.127.1524509466812; Mon, 23 Apr 2018 11:51:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.3.5 with HTTP; Mon, 23 Apr 2018 11:50:46 -0700 (PDT) From: Mathieu Malaterre Date: Mon, 23 Apr 2018 20:50:46 +0200 X-Google-Sender-Auth: f7JwMq-UACyE3Ha6jZYwcv91ly8 Message-ID: Subject: Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec To: Alex Deucher Cc: =?UTF-8?Q?Christian_K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , amd-gfx@lists.freedesktop.org, dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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