Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4870468imm; Tue, 9 Oct 2018 06:32:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV60nPCK/JoCvwwB5e3BSRw8YiLJXl0F7lZBfiniOxz7ee2R1hri/m4TATuhwJ3jPtvc2ex4v X-Received: by 2002:a63:d444:: with SMTP id i4-v6mr25383198pgj.194.1539091950313; Tue, 09 Oct 2018 06:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539091950; cv=none; d=google.com; s=arc-20160816; b=dgIBNw9uIMKIrvg9M42zEMzKe/rk8x7dxtIRFpZi61s2UJhshVIPhy+yG2PXc4/x93 h0dr+OXQdqUO+n45IPXuD9tpYuiDL+WSmdVTdMLGekw1P+WgWxFFCDT5aj3zSA3hVjcC +d9CfFebVv9ipPVnc1/y3UJE528wZCImts/akd7W4Qmh5gDWDdZGcyz3UPddRDbqkCqz VJR1zu+NqvgqeN4XydhtGf+IKKOu61HuN5hJ+QMyTlSvEXIbfdrsoQSp5VTfNLbL7q0X wPakxWZb3OB2/YvrttrAN8w3acCOdZNNXkdG6znzht6flsIXBDXcKDDQWIjHGb6WVrRN oRLA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=+XxagVx4KL9+qDA3z4SFKW7DNo1n8uTRWBF080Ktfxg=; b=w4BDIlSxNyZ3FyoqJpfCumZIo81ChVPbslNbWOi4nG5dNZLe7mXPuknnSDtOOB75p+ cyl57q5vnVoid2u69hHxsXjkmPQOYJQyRHpUzjxWHI3dBcAdRgQBZWKLnYd0oUQhQtc2 ReNrDB2Bp2oi331UF5IkHJ/XngolCGTJ6+R7B0/yYEJOTNhLFJbXmBZep/s/pBP2JjT1 OgjPGJq8bx+IWoFFZGWZmpyNHWgjP+0ORT1Gn1XGB1tRdf+dsbs5/YjkEP8bMEMrQt/4 kzWnel70PUFYPtlQbNIB96Vq8iPZzZlzg1xD4ftwMEqDIhNVwDSIMeb8uPNqq6zEGTZq AWJg== ARC-Authentication-Results: i=1; mx.google.com; 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 d37-v6si22691124plb.387.2018.10.09.06.32.14; Tue, 09 Oct 2018 06:32: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; 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 S1727524AbeJIUrT (ORCPT + 99 others); Tue, 9 Oct 2018 16:47:19 -0400 Received: from mail.bootlin.com ([62.4.15.54]:51149 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbeJIUrS (ORCPT ); Tue, 9 Oct 2018 16:47:18 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 5924E207C3; Tue, 9 Oct 2018 15:30:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id 261AE20712; Tue, 9 Oct 2018 15:30:18 +0200 (CEST) Date: Tue, 9 Oct 2018 15:30:18 +0200 From: Boris Brezillon To: Eric Anholt Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] drm/v3d: Skip debugfs dumping GCA on platforms without GCA. Message-ID: <20181009153018.03867fea@bbrezillon> In-Reply-To: <20180928232126.4332-4-eric@anholt.net> References: <20180928232126.4332-1-eric@anholt.net> <20180928232126.4332-4-eric@anholt.net> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Sep 2018 16:21:26 -0700 Eric Anholt wrote: > Fixes an oops reading this debugfs entry on BCM7278. > You probably want to add: Fixes: 57692c94dcbe ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+") Cc: > Signed-off-by: Eric Anholt In any case, this is Reviewed-by: Boris Brezillon > --- > drivers/gpu/drm/v3d/v3d_debugfs.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/v3d/v3d_debugfs.c b/drivers/gpu/drm/v3d/v3d_debugfs.c > index d48008adb085..eb2b2d2f8553 100644 > --- a/drivers/gpu/drm/v3d/v3d_debugfs.c > +++ b/drivers/gpu/drm/v3d/v3d_debugfs.c > @@ -71,10 +71,13 @@ static int v3d_v3d_debugfs_regs(struct seq_file *m, void *unused) > V3D_READ(v3d_hub_reg_defs[i].reg)); > } > > - for (i = 0; i < ARRAY_SIZE(v3d_gca_reg_defs); i++) { > - seq_printf(m, "%s (0x%04x): 0x%08x\n", > - v3d_gca_reg_defs[i].name, v3d_gca_reg_defs[i].reg, > - V3D_GCA_READ(v3d_gca_reg_defs[i].reg)); > + if (v3d->ver < 41) { > + for (i = 0; i < ARRAY_SIZE(v3d_gca_reg_defs); i++) { > + seq_printf(m, "%s (0x%04x): 0x%08x\n", > + v3d_gca_reg_defs[i].name, > + v3d_gca_reg_defs[i].reg, > + V3D_GCA_READ(v3d_gca_reg_defs[i].reg)); > + } > } > > for (core = 0; core < v3d->cores; core++) {