Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2059467pxa; Mon, 24 Aug 2020 04:06:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw53hwN0lv2HBZmAZKYcwJBhvJaVh+8K1h+NG+Qg295lHhqZqdQvEwpzQuXFuKYqq44Q3Km X-Received: by 2002:a50:aaca:: with SMTP id r10mr3402354edc.307.1598267163782; Mon, 24 Aug 2020 04:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598267163; cv=none; d=google.com; s=arc-20160816; b=r7JfVa/wvwiVOpOK3E503uZfc3+NULSVZKjklkMGC3shfwBkD7MxNU6pJ3nUBQAP95 KHKa2SQUAs3G3HAUIqnrytCPosUrQqwTYuQpDFUC0g/Azex6P1jBO7yZ0ZU3PorFLzS3 QFMprrENCRBx70Q28dSjxAOnuAtYnaiED3AYNMYwNi6Izo5Tqs9tS8hEdEURP4lys0wm 7Hl+WSjS23JkTzsNnuZMoe/Td+VsKPUqFBtrO1bLUhEXyN0ypSrcmHQfIRngTycqVcG2 0ez5G5K+Li7spB2UxhoguETAMtIybK5s72P4Bb4XUGRR8kuJVdGHYyX7VhdFCnMydli/ +eZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=CO7HwHB6gwtLKrsXW5MSSqUEQxtaNEr4O/UV1oAh9Pg=; b=yiuL06UZUf+f+FFMW6V8SEWtiiO+CHfmjFEzEjTVddVIRLIetmN6XLOAt5hzqyWuTP Bbvtbu+TdkT4pMfjgAXZPPOwZGJtGL8wSxitPc06jizaJOhtkOiVxnO6Rk9VYF7f+kgC GmfQWAwVXqdZ+kITHViyWq5l1FC1fOioRCW2jcx4TAP5FDuU0ViPjy8K1GgAK2loCuei GmkdzJ9nYOoHiQCUQKA2GZQpaEcz0AbQhQSTymoK6yZRwADyXVFbpKtRYoay4jeEN8vS uU8q2XR1mIApviGWOfNxUNJR1Frc4k2y9WZoiyAxnm53CvtKLr57WfFBinGh+P9GJd0y ZGxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si6727452ejv.328.2020.08.24.04.05.40; Mon, 24 Aug 2020 04:06:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726075AbgHXLE6 (ORCPT + 99 others); Mon, 24 Aug 2020 07:04:58 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:35447 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbgHXLE4 (ORCPT ); Mon, 24 Aug 2020 07:04:56 -0400 Received: from [2001:67c:670:201:5054:ff:fe8d:eefb] (helo=localhost) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAAHW-0000RH-8m; Mon, 24 Aug 2020 13:04:54 +0200 Message-ID: <25afd4892c3d73c247293a99a666192d3d40df10.camel@pengutronix.de> Subject: Re: [PATCH] drm/etnaviv: fix external abort seen on GC600 rev 0x19 From: Lucas Stach To: Russell King - ARM Linux admin , Christian Gmeiner Cc: "Ing. Josua Mayer" , LKML , stable@vger.kernel.org, David Airlie , Daniel Vetter , The etnaviv authors , DRI mailing list Date: Mon, 24 Aug 2020 13:04:13 +0200 In-Reply-To: <20200823191956.GH1551@shell.armlinux.org.uk> References: <20200821181731.94852-1-christian.gmeiner@gmail.com> <4dbee9c7-8a59-9250-ab13-394cbab689a8@jm0.eu> <20200823191956.GH1551@shell.armlinux.org.uk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, Am Sonntag, den 23.08.2020, 20:19 +0100 schrieb Russell King - ARM Linux admin: > On Sun, Aug 23, 2020 at 09:10:25PM +0200, Christian Gmeiner wrote: > > Hi > > > > > I have formally tested the patch with 5.7.10 - and it doesn't resolve > > > the issue - sadly :( > > > > > > From my testing, the reads on > > > VIVS_HI_CHIP_PRODUCT_ID > > > VIVS_HI_CHIP_ECO_ID > > > need to be conditional - while > > > VIVS_HI_CHIP_CUSTOMER_ID > > > seems to be okay. > > > > > > > Uhh.. okay.. just send a V2 - thanks for testing :) > > There is also something else going on with the GC600 - 5.4 worked fine, > 5.8 doesn't - my 2D Xorg driver gets stuck waiting on a BO after just > a couple of minutes. Looking in debugfs, there's a whole load of BOs > that are listed as "active", yet the GPU is idle: > > 00020000: A 0 ( 7) 00000000 00000000 8294400 > 00010000: I 0 ( 1) 00000000 00000000 4096 > 00010000: I 0 ( 1) 00000000 00000000 4096 > 00010000: I 0 ( 1) 00000000 00000000 327680 > 00010000: A 0 ( 7) 00000000 00000000 8388608 > 00010000: I 0 ( 1) 00000000 00000000 8388608 > 00010000: I 0 ( 1) 00000000 00000000 8388608 > 00010000: A 0 ( 7) 00000000 00000000 8388608 > 00010000: A 0 ( 3) 00000000 00000000 8388608 > 00010000: A 0 ( 4) 00000000 00000000 8388608 > 00010000: A 0 ( 3) 00000000 00000000 8388608 > 00010000: A 0 ( 3) 00000000 00000000 8388608 > 00010000: A 0 ( 3) 00000000 00000000 8388608 > .... > 00010000: A 0 ( 3) 00000000 00000000 8388608 > Total 38 objects, 293842944 bytes > > My guess is there's something up with the way a job completes that's > causing the BOs not to be marked inactive. I haven't yet been able > to debug any further. The patch I just sent out should fix this issue. The DRM scheduler is doing some funny business which breaks our job done signalling if the GPU timeout has been hit, even if our timeout handler is just extending the timeout as the GPU is still working normally. Regards, Lucas