From patchwork Wed Aug 30 18:07:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 111339 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp1325305qge; Wed, 30 Aug 2017 11:08:04 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4dXkc7qkKiTc6iyi/NmBLRs58W3Di1cyHosY8WK318CT2uxIm64SzmBTIe6JM5CfRgK1GX X-Received: by 10.84.238.135 with SMTP id v7mr2982167plk.416.1504116484113; Wed, 30 Aug 2017 11:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504116484; cv=none; d=google.com; s=arc-20160816; b=tjF1izwokKJthL4FQGpNmpaanJIwyWNNPITW2l1MBMTLY+jVuEzzIDZraBR8ObrnGD OhbEQUWxkFJbw6TcWRYdAtsk8W+FU3vffPRKJZlc78xzSNHt1NBqIIZZMUvXqAa0Ud9U wlZmlseRytnq203LoPXHRSxlrvaH6DFWEhvFh93OQhKTzdyuxBIpLTA4VKTeHB13rjZG xY0OFoqkS/NScZRUMAsy6njeAnmUMtHfZi9B4A3u6xpQ9I/tb9xqaHCCmMddkg+W5O+W 4VC7zO+KQPNanXYh/TmmpNrMh29XtO9bFeh0F5aDnTVHyB1zkmCA8cZw37Q5nWHXmShH DkCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=0HCbro0wqDl3Qlfe5By+A6GzqjSk2NKn95KRHFvcF+o=; b=vN0LgLzvBG37T9pKQ3Xr5D4ms0fGfSYJJSPl3yTkrZhw9vkmL7batbN24Meb7AYh3/ 3Jma0Zw6DCNLM21dlEQDLYs84OEwHHGaekM48UDhUt+8rGblbxWQqKd5uUPQJox4snst rpA8fpEub68o/NiKdTo4eBiuSMtOHXwG3wyi3gZRZRd4Qk9mjjZ3h3brYn/lxcVaaD1M 5ip4vrNstmsqGB38HM07hpeuSoiw5S50PmPM4L49n/N7hKSWeNZdBczInWFU7NrE7PZf wFrOCNZ4ddU5h4kRCWjCtKxuz0nRsA/oHqSPzQsavnCPRhr+r4tGxc+J//Cf/cZNtFPL MCVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LShMffkM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id s74si4758275pfi.348.2017.08.30.11.08.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 11:08:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LShMffkM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 078E76E45D; Wed, 30 Aug 2017 18:07:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x22a.google.com (mail-lf0-x22a.google.com [IPv6:2a00:1450:4010:c07::22a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6A56D6E49C for ; Wed, 30 Aug 2017 18:07:30 +0000 (UTC) Received: by mail-lf0-x22a.google.com with SMTP id g18so8164435lfl.2 for ; Wed, 30 Aug 2017 11:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r5/jl/PwgACvpH3fpcVp89Wwlxe4e99JmGPaQ6PdlkY=; b=LShMffkMtZ6rl3OlHkS66T4+J4ebScj6uhAJir5izD8+N0ojgLhfinNPnpOCrd9+Y6 2+SnLDG5hUSJD/K7Lo6XDcXcqRW9EgX5RORZeLb7ue86Ks+iJAA49uRXbBU8yijL3Ib7 +IspYdZ/aVOT/u1SQRxfnlMfcor5lhxw24YRI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r5/jl/PwgACvpH3fpcVp89Wwlxe4e99JmGPaQ6PdlkY=; b=YZW6zq4iq6QVBIOVL6GI37B2Hy4kBeue74DREKXUwRtDTiRuQBeZ3EM6IvaMas2mPg 4ncvHWT5hH8G3gUTAuaD1CBzakgI1LVOqLCaorYzWsjzGhGQBGMaaC8IQ9U1Ph/61bja 2fsBzGwME6tjggT1/biK0Y9Jou6gxx6PAKp6sx4Jsp66wpKUM4NG8uMTuWaOaeNzXxZ6 Zn4L5FdInly3bPp3XWSLLuZLwrz4lDwYfa1ibUskOiIEQgnfDNZAKZNE4Kyu0nCMuojB zW+0YbxalDodgAemdoMSkCrovXDrLr3cfN9Ys1rZLw8IsxGw9mbU8GjOP6vfPlY+SPa5 i3Ew== X-Gm-Message-State: AHPjjUiaqk7aIai8iKBhFw39bEweh9v7wzZmpyJtZ8s112a9gQhS/QBS ggmOAxTDK7pAucOQ X-Received: by 10.25.158.2 with SMTP id h2mr1029248lfe.163.1504116448737; Wed, 30 Aug 2017 11:07:28 -0700 (PDT) Received: from genomnajs.bredbandsbolaget.se (c-287571d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.117.40]) by smtp.gmail.com with ESMTPSA id 123sm1177067ljf.80.2017.08.30.11.07.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Aug 2017 11:07:27 -0700 (PDT) From: Linus Walleij To: Daniel Vetter , Jani Nikula , Sean Paul , Eric Anholt Subject: [PATCH 2/7] drm/pl111: Add all registers to debugfs Date: Wed, 30 Aug 2017 20:07:06 +0200 Message-Id: <20170830180711.2791-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170830180711.2791-1-linus.walleij@linaro.org> References: <20170830180711.2791-1-linus.walleij@linaro.org> Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds all the main control registers to the debugfs register file. This was helpful for my debugging so it will likely help others as well. Signed-off-by: Linus Walleij Reviewed-by: Eric Anholt --- drivers/gpu/drm/pl111/pl111_debugfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/pl111/pl111_debugfs.c b/drivers/gpu/drm/pl111/pl111_debugfs.c index 0d9dee199b2c..7ddc7e3b9e7d 100644 --- a/drivers/gpu/drm/pl111/pl111_debugfs.c +++ b/drivers/gpu/drm/pl111/pl111_debugfs.c @@ -22,8 +22,14 @@ static const struct { REGDEF(CLCD_TIM2), REGDEF(CLCD_TIM3), REGDEF(CLCD_UBAS), + REGDEF(CLCD_LBAS), REGDEF(CLCD_PL111_CNTL), REGDEF(CLCD_PL111_IENB), + REGDEF(CLCD_PL111_RIS), + REGDEF(CLCD_PL111_MIS), + REGDEF(CLCD_PL111_ICR), + REGDEF(CLCD_PL111_UCUR), + REGDEF(CLCD_PL111_LCUR), }; int pl111_debugfs_regs(struct seq_file *m, void *unused)