From patchwork Fri Sep 1 09:36:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 111468 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp785377qge; Fri, 1 Sep 2017 02:36:56 -0700 (PDT) X-Received: by 10.84.131.15 with SMTP id 15mr1664767pld.210.1504258616492; Fri, 01 Sep 2017 02:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504258616; cv=none; d=google.com; s=arc-20160816; b=n2IJW2MgCFxNL/aYQJKQXIcS/4J+vlPKRi2twkHgZFlA5i8QjXCH2j7LM+NUA16J8J xTE7YJ68c2eEx1CindbjZn9Fzv25QWvD0yQiZkmPRmTU+QAXlmcSnkQofbaLpMwPtpfs FG3Qc9iprV1KGE8oFZaxTS5C8lJdyUiRCqAdimGJcT6QQDQAA09QQJgZORrX2/eOQNsd KVmsrh5KF+AdKq6+LMptdTaxdOO7v61wlYb52ia08RSz7/RS8AtlmCrIYIgwQ/AehG2t KV4sqBfUB3XuHg6c4+geGAu+JguJTiuusv+UAUSl0zfrgL2dqYMpRW7eL3PMBauUZqdk 4Cww== 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=auLuWMXtXZFuWrQ6HtQqsr9ggbwEJZAaHykMeVrLluA=; b=gm+yGLDAWqQnwme0tBZlU6v4QCe8lnZqIEPdcOV4OJ/GrukzUnuYNh0JsZPWi10wvX V62Ncg0uqJ26PhBW450qioqOIR+kD2u3izCstz3VU87JB2vhsrPV1mT4SR/WAUudbr/6 l3b6pJQ5aHjm8/BFn4Kzd0ZPg0Kx1jCfZMHECLFZs3EsRq1iVCfj5fjdlhnbiGNXyk7F FVv72tk6QwiqA42Vk6rF67CELe/88kyTAbxCUiY051NQg+YoXGIZSP8w3xnVtCKV9fzy be6UdiVtnv8Mvyg517iO1XP2bt67lFJSXCjOCE7F8Te+ZoMUACUhl3ST3mnQ2ZUpga7c SJGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fwvNq/0p; 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 u66si1587479pfd.235.2017.09.01.02.36.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 02:36:56 -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=fwvNq/0p; 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 36D8F6E7FC; Fri, 1 Sep 2017 09:36:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id BADE96E7FC for ; Fri, 1 Sep 2017 09:36:53 +0000 (UTC) Received: by mail-lf0-x230.google.com with SMTP id g18so7317570lfl.2 for ; Fri, 01 Sep 2017 02:36:53 -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=cXy1oF1AprNP6ktzrUDX7HRtgX2oaByCgKqDSkMSkQg=; b=fwvNq/0pTxdAB6U7QybeX77HjGW8Ge4/KEE+L+lVBuD15w8ZQLhXCOr8i+gv5ARafH VfbIqo/2xkAHeOYmrYZ5nH4IoYGyU7DjoZEhPaZ2mCIVQC3SXw0TBnDJO868VRZvSXRQ CW+UXcayQltwH5WrsgKtKfC6tCpM6d+mRrHuo= 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=cXy1oF1AprNP6ktzrUDX7HRtgX2oaByCgKqDSkMSkQg=; b=ktcZkpsjcEI//U5vyrtyXmSBwCXAqukugmb+4m4G1RzduBvq7jRwaaAVtVncB9ks3S Q26PE6bczuzgVRKXt7xH/dOHj0uvlLI8CfrHb5moZN8qNTgljQJFnL3okgV9ukIcHqGJ X4+kt1Q/bH+neW5q3kwpEiCxqtF96H+6kKWxQkjqlZZFoy6xOgt8sKEU7q7xBFVvqWiv Txc/8i/CLxC1TALxrVMpChzOX2DnZExiuhnvOBpWlgSzD7ZKU6RBw5GSy7Ho8UAF/HFk krWham/JBPx8RoFYozfitESChSHM3v9msATOjo25b91FI6QINfRDRBQnMxJRdykZBOUO jcZg== X-Gm-Message-State: AHPjjUjE0uuq3Nbn2y7/GdIkVNzoyCoA/tHBoYaK4JAk12hFbYO6GiM8 6OraCCDnmYFAGnre X-Google-Smtp-Source: ADKCNb5ciYnWlXSUFo6PJoNHkvdeL4vxhxRLKcLvr2ciDmPHcD8ur3xLWlHSa/8kNg9fg2f3tBzLPg== X-Received: by 10.25.15.34 with SMTP id e34mr610100lfi.217.1504258612168; Fri, 01 Sep 2017 02:36:52 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id x18sm328588ljd.85.2017.09.01.02.36.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Sep 2017 02:36:51 -0700 (PDT) From: Linus Walleij To: Daniel Vetter , Jani Nikula , Sean Paul , Eric Anholt Subject: [PATCH 2/7 v2] drm/pl111: Add all registers to debugfs Date: Fri, 1 Sep 2017 11:36:32 +0200 Message-Id: <20170901093637.4041-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170901093637.4041-1-linus.walleij@linaro.org> References: <20170901093637.4041-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 --- ChangeLog v1->v2: - Collect Eric's ACK. --- 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)