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: 9933805 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 64D1D6016C for ; Fri, 1 Sep 2017 09:37:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61FF8285D3 for ; Fri, 1 Sep 2017 09:37:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56D7628616; Fri, 1 Sep 2017 09:37:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C9F1A285D3 for ; Fri, 1 Sep 2017 09:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=kHiUD5FbISG9Hwg66jSU2DCDXCMHbdRNE1Qmn5Nd6Qw=; b=pC5jKdIJf7TDjTmXLAqWxJ5P0l x6tNx/bYE2Ar+JPR6H39o5FrSO5QeLtH0Fw3dumu/k7sQ+bg3Qny/Qc79qxRFQkt/SPA6HsJOeDHZ K3EnRrZlwS/TrOZnM9bdbfL5OHaXNQ7+1ZOypMQmtHHnFQhUcguWsrp5yxmscoQh2yCglsfKyZXEZ a1c3ca4kUu3497N0pt1JWHFDwgSSyBkhnwR0QRIaJ58pTp1rINP4X9loV5B1E8zNx+X1zjjg6Qp4o ZqcBT9SLL7AvHeSDekPw4tNPJllWMnQrI8WZGUdJXqR1srktLvgyRyPpPcIgRqXbACxQTg6Xar92a tyyiUVsw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dniOJ-0002kV-Jv; Fri, 01 Sep 2017 09:37:31 +0000 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dniO0-0002Ry-1O for linux-arm-kernel@lists.infradead.org; Fri, 01 Sep 2017 09:37:14 +0000 Received: by mail-lf0-x232.google.com with SMTP id z12so7271643lfd.3 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=Dqi7aXhv57taN+yRosZ5XogxaAjWP/M+4sRFI428DFOgLEpFmp6cF0ydKT7PCO5SfI MlF+7YVN4POCFRGa+EbMoBbzljn9jp9cWSIGyPGyNRUaxleZvBHbx3UZwkiadl+IOfPJ 2ApTkxVLYuIxkVhcQ49P7YRzY3kg+VAwLRiGEhPeoDHLPKQrGsJgYpO9fbHDqIPk4HOd 64oP8ua4WmFUvwL6zhTeiTc6nu4hkZ2IVVo7TmGeO/b2be+bc3VvRbPnPUPuEifbf2UJ tkbU9HNqijpuWIvfyxslfxyLAJo2/za9ylhb5JQ2ZDCdQv3WAX628I+FkJknVsGtNeHx npHA== X-Gm-Message-State: AHPjjUjxZZQsmsbADUKV2yaILhZ5cPhu0Qoyxi9WzubbnrWuROzGcT+6 2VLkusxSkthgZbcL 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170901_023712_359240_8CA41C81 X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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)