From patchwork Fri Feb 23 10:13:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Cosmin Gheorghe X-Patchwork-Id: 10237205 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 702AF60209 for ; Fri, 23 Feb 2018 10:14:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CBBF294FF for ; Fri, 23 Feb 2018 10:14:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4025A29502; Fri, 23 Feb 2018 10:14:44 +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.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 97EE9294FF for ; Fri, 23 Feb 2018 10:14:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 206316F09C; Fri, 23 Feb 2018 10:14:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20044.outbound.protection.outlook.com [40.107.2.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2F3086F09C for ; Fri, 23 Feb 2018 10:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Tpyt0qPgNPtf2zfRFYxZlqfjHhJjC6vFl59/jFpg6y0=; b=CHx6iOJ36Koks326H6erZ7YTGOx8DWVwBVo6us+oCltxrAhqxCyVJm9YSD3TxD9YWrpAfbpU0VpC8tXjcv4uiItlrIgbIdxniwoONtHZWbnYlPIbNMm78twBE0gu5TrfCQHQEn/RwZ6d9bcl0A6H3or5U192EIxGVaHP1CyGOL4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alexandru-Cosmin.Gheorghe@arm.com; Received: from e114479-lin.cambridge.arm.com (217.140.96.140) by DB6PR0801MB1256.eurprd08.prod.outlook.com (2603:10a6:4:a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Fri, 23 Feb 2018 10:14:29 +0000 From: Alexandru Gheorghe To: liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH] drm: mali-dp: Log internal errors v2 Date: Fri, 23 Feb 2018 10:13:42 +0000 Message-Id: <1519380822-8073-1-git-send-email-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20180222164232.GT9111@e110455-lin.cambridge.arm.com> References: <20180222164232.GT9111@e110455-lin.cambridge.arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: HE1PR05CA0214.eurprd05.prod.outlook.com (2603:10a6:3:fa::14) To DB6PR0801MB1256.eurprd08.prod.outlook.com (2603:10a6:4:a::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0563ca10-c3c5-43d2-93c4-08d57aa63d8e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(2017052603307)(7153060)(7193020); SRVR:DB6PR0801MB1256; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1256; 3:U9bV5Kasn2bd78BCXiwGl+6c1uplOEZvPx1gowZ6g12BkW2K5fI2yk0j4sbS3hGdwCWE4SX7eu4JEu1xoJfkKbXr76y0CdxMx0MIX9pPNB63tx1FokDIbDQVSS09GzPjGpBTvZ4NG2KEQ5lyXSrAyYyhyZXO9wcZSDA7ouQUxJN14F3fsXcArRemxh23zdpmpt4BG6DHRbt2YrY+pQQuv5Fl8mc3k9Z3k4dqD/1AP6xJxsFUfCQBZTqqRZv9QGUN; 25:E9tFv+395Ai19sYfc1bmeQFZYL5/3tHs4FIyyLCNiNEIaKJZQ2f44TaPZ2U3LqoR53GkX6dPrBWUPnTdX31IRTgoRMDAGJ3RHLBwGGaa5xIoa3YTk3o0NFqSFCK0M/dnHfOCHeZPUowqT7fM7rc4nU+zHLaD6Uxl70USLUKDUROMgUxqWuD/bfKjwqe3anvgPjEIBTA//wW1QQ6TM3Ie/0Tkl81MF/2A5SdG9QDcZOVJjEjodOuIRqFvVRoOPNX82sLv9z96KuS3L7nbD5fGw2w13uv5BUyRNBKL+nvHb1F/nzNBBxXNRKnDS19Bx2HP2kHkoc7vJt3deXEoNydbyA==; 31:SBeyl5fE2p8Sg+MaWPkaqkBRtZ3yN3GGkeMXVOw95eF9UDf2q00tJzsK+D011T5888AmvD59pMkZLNduJac7uIWX+9hr1ddiHcHSmD4jnWZTmxvhN/ozpNGfiRb+GO8GwuxYLldJvyBzNECSVPTwMOdLDJo1dFHz00wZx2QiUrA3t/Qi3HZZ7n/b+61+IG/8EA8d5cZOhmAeNTbjQrPl8gkaI9P4f4I5E/nFiH1uAAk= X-MS-TrafficTypeDiagnostic: DB6PR0801MB1256: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1256; 20:STjvd69C4qEvLgcryb/gAVDrt20v5VmG7e16Md9ZmkoH0jRqtRx8TVjOuwKHrYGxLsjhTQwd9ssXW/qtBGfy0sGQJ1JyQnZPnQM+I0ynUTOPjoDTf6WZODv9zSfZ+Z+jcq6LvxfJOy9B2x5o29KOCkWi5T7E7gjHtNz5jWXezA0=; 4:g//qNtisurxQCwtjAA9rgjXrjFLnY06Ftg8NUm6WXyFQLR8QLrHt9aHabAYtkA//e2PV0pFniQa89104tdbabL8vOFoj8Oqm3gnmpBs756AbS8NCBhZBrDffCdGBtixIhiC1VOABS5RG1++yYWzOOPOWV147AY4+Nrw8eefu6BmTpTe4X2zErNuAZM648NHlvDxuOtERIvnczDa7rKrJWtZerpiwG2SSsPWSp7EcXqcl1Oqj+QJVhC9SHEDwkhrhh+9w+f21XDay2M3uqxRjfqwFPiO3fJhJ9W80WYhjMFEKGC7AYzyhnk2Hp4BsdhQkkbAF5ajVGBgNfrEn9JXqbzTQYA/tp2lj2sQHMFFXrJhrAElf+cOW+FMKzFYkboGH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(211171220733660)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(3231183)(944501161)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:DB6PR0801MB1256; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1256; X-Forefront-PRVS: 0592A9FDE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39380400002)(39860400002)(366004)(346002)(189003)(199004)(7696005)(16526019)(76176011)(386003)(97736004)(25786009)(50466002)(6666003)(6486002)(478600001)(72206003)(2906002)(16586007)(316002)(26005)(1857600001)(2950100002)(4326008)(7736002)(50226002)(81156014)(6116002)(3846002)(8936002)(36756003)(305945005)(52116002)(53936002)(86362001)(48376002)(106356001)(105586002)(68736007)(81166006)(8676002)(51416003)(47776003)(5660300001)(54906003)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0801MB1256; H:e114479-lin.cambridge.arm.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0801MB1256; 23:mH+EmdRKwBTp3zbLlDN7VI9adOGDuOEF1578q10?= =?us-ascii?Q?Bi6JkCmI7XkZdx3A7SiTi6Fzn/zPEaskNLnxdbi9xyyoT2yewZPXJ5INdg1C?= =?us-ascii?Q?KbpWGyvMM/7LiiKvAvueqlVcQQW/OhLWkVDhkUXgls4iGh07GyFjjdwdvHuV?= =?us-ascii?Q?LreTdCao51OBDD4tChNtqLIBEBdUlDJqaB/3LhcDOpXwZOcrRo6xRrBi/Uz/?= =?us-ascii?Q?gDA7SQGFGGFfhMMu/cBmxlejB5SyrBhopw5clHJcr0Dj/JUG1RzD1gFEe4zR?= =?us-ascii?Q?opxlgpzEmmzmVGGjvV5cufhherczv4XGnXO06tTp9rsrCC687v93AC35Q4Po?= =?us-ascii?Q?jB+Q3kPr+oQTtyjT2qrLYr1v4COoFquyApObFLqTJoJ887NktgoHt8aOg9sV?= =?us-ascii?Q?1NqeZEm2hgCkQ4BIEmZdbm1GP5z9eWFK6H92MUGKWQw5j6ASpZhjPNAqwxh/?= =?us-ascii?Q?B2VgGNFmipjD/9edk9V0Vs8MXTEwqAXEIvCVD1G7DKHk5tmuZufnxWs92Ie5?= =?us-ascii?Q?dfHz1oG+7aQx5xzfX4YlXNNbgIeLFWd5vHbyWX19N3jldQZnJ8qFhS0LiAD1?= =?us-ascii?Q?xr0AfkW3Agc1BCzE8QCZA9dqHMbpZRRNfIUDwLNJ3g4BqmxI34A2I8tXrJDl?= =?us-ascii?Q?xFeX1TO1B6dTOsH0Y0WVdgtxdNuDCgGkiCYWmQUBnoNhqqsIjDYPrA/3qcrn?= =?us-ascii?Q?HUJMFYY3UBl+WmcK7+3Se+0w0wGVyyTm7LlEzsZMKP+We6Adr18QI5NXF4yU?= =?us-ascii?Q?dlGIOd2oESII2Kh7zVR4F+Yfix66RF3fFu+6ecZ4hUFh9mFDQI43NgYwdyjE?= =?us-ascii?Q?/hYGHpJGJtK5C2Mk8FDgYDzwj6V7IrRG8RLPOzw29ug8/TAs6YnOdOhqnvWq?= =?us-ascii?Q?BZiVWtQf0WIbvFxdZbMbbXabxNsYUlFrrIwtbylFP3f451H7KcCzwHJkjQoy?= =?us-ascii?Q?DaKEvY8Igo5sBQaD7d4yEvOTxzomxnggYK7KaSNbC4Y/dIkbC6eus3ivtNXJ?= =?us-ascii?Q?Xtwwnd4ooUDHOD8S53a2UwiYpCeSg4lJJTS4TELHU/KzsbeZH4z7+jgObgxB?= =?us-ascii?Q?lFUOmH68wE4A1mS3KIoX1+j9sn19X0U/JiQS0PcoDr13wrOqLmct+OEYlxAm?= =?us-ascii?Q?4JtjbLesjxBk=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1256; 6:cLpVXVmq8RHAePagEiCNkqT+CLzDtFmOp1AoC2hOVW6j8Ma+wO5qcWhkR3VZ87/T80ndQRZebUmm5Z9FPBe6fwW4/R6LeQOU6CcF0arQPkTsM1BvMfyi115Z8fRvwf93Zla4ywEB8C4MG480y+zpKiVY3ro7H0aSgMePiB3F7AGdc+DGYzeVZ8LbC4krbrYoGaCNmvs46SiifS94yrDSfD3Yq/Y79ZkY2XVpm1Faj/loGqaKz9bnGlZjurRf9WTyrkj8urA14LTfgoP/GPLugRdci5WZ3toI9G/jOQzZ557FDCxHzb7BpupHUCylXZhcvxirqN49MgdSqjmxL4X797zRniyHDqUILShj1AFMnno=; 5:+tauyFnSzeK8PAvIbH52KJElj/OVgr4qmVhXnHVObMY2uwNAK75wORqBfSWLEmuMvy5z5y2jw3A1BeWKa+CMPKaSgsq0g+04damFLm6jcc2+XqNzi5GMl4zMiW4q2Ss7IvQCMBocWPJTUZyKHIdQv9jIsSkEYZFIO5RDrP9OoW8=; 24:aSphfkjcMVhCWz87dlLGkuLwkBYOBQXJLr+6LM1HNTrJ2vkbn0Gs3Ss0pSYr+/HuAQoam0cHdJhajz6THUgSxX3qRUqVqr86okyFeSWolYk=; 7:USpDucU/QEaPCSpkIHRll/3YaAVbXwjdDhzaLaH/pWWPpgfhlaYT/akskjgV6qkqxbaaFDIf8JsUWuTXgwRp8ld9Qh6NnV8g6vXMVz51SrrVso8Zyr51+DC7ncmRZyPCwSmekkG1gnwWgVyBdMF/K+kXbNpbng+r/GTJUWBmGxvQtY37hiXBg1+ohpU+s1uC+6KFOtcTaR71qGmjWSWUmxMnqCG8SOnF2hWV5QBxO4QRCEjudDc1+T4ikTmdHl9+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2018 10:14:29.9486 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0563ca10-c3c5-43d2-93c4-08d57aa63d8e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1256 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com, Alexandru Gheorghe Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Status register contains a lot of bits for reporting internal errors inside Mali DP. Currently, we just silently ignore all of the erorrs, that doesn't help when we are investigating different bugs, especially on the FPGA models which have a lot of constrains, so we could easily end up in AXI or underrun errors. Add a new KConfig option called CONFIG_DRM_MALI_DISPLAY_DEBUG, which enables the logging of the errors present in the status register. Errors will be reported in /sys/kernel/debug/tracing/trace, still not noisy enough, but better than silently ignoring them. E.g: -0 [000] d.h1 2387.240042: malidp_de_irq: error occurred at vblank 596 DE_STATUS is 0x00000001 -0 [000] d.h1 2387.256703: malidp_de_irq: error occurred at vblank 597 DE_STATUS is 0x00000001 -0 [000] d.h1 2387.273458: malidp_de_irq: error occurred at vblank 598 DE_STATUS is 0x00000001 -0 [000] d.h1 2387.290035: malidp_de_irq: error occurred at vblank 599 DE_STATUS is 0x00000001 In addition to that, I removed the setting of MALIDP550_SE_IRQ_AXI_ERR bit in the irq_mask, since that bit doesn't exist. v2: Consistently refer the hardware as Mali DP. Acked-by: Liviu Dudau Signed-off-by: Alexandru Gheorghe --- drivers/gpu/drm/arm/Kconfig | 10 +++++++++ drivers/gpu/drm/arm/malidp_hw.c | 45 ++++++++++++++++++++++++++++++++------- drivers/gpu/drm/arm/malidp_hw.h | 1 + drivers/gpu/drm/arm/malidp_regs.h | 6 ++++++ 4 files changed, 54 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/arm/Kconfig b/drivers/gpu/drm/arm/Kconfig index 9a18e1b..46e95b2 100644 --- a/drivers/gpu/drm/arm/Kconfig +++ b/drivers/gpu/drm/arm/Kconfig @@ -40,3 +40,13 @@ config DRM_MALI_DISPLAY of the hardware. If compiled as a module it will be called mali-dp. + +config DRM_MALI_DISPLAY_DEBUG + bool "Enable Mali DP debugging" + default n + depends on DRM_MALI_DISPLAY + select FTRACE + help + Enable this option to log internal errors that happened during + processing of a frame. Errors will be reported in + /sys/kernel/debug/tracing/trace. diff --git a/drivers/gpu/drm/arm/malidp_hw.c b/drivers/gpu/drm/arm/malidp_hw.c index 2bfb542..7d3b2e2 100644 --- a/drivers/gpu/drm/arm/malidp_hw.c +++ b/drivers/gpu/drm/arm/malidp_hw.c @@ -632,10 +632,16 @@ const struct malidp_hw malidp_device[MALIDP_MAX_DEVICES] = { MALIDP500_DE_IRQ_VSYNC | MALIDP500_DE_IRQ_GLOBAL, .vsync_irq = MALIDP500_DE_IRQ_VSYNC, + .err_mask = MALIDP_DE_IRQ_UNDERRUN | + MALIDP500_DE_IRQ_AXI_ERR | + MALIDP500_DE_IRQ_SATURATION, }, .se_irq_map = { .irq_mask = MALIDP500_SE_IRQ_CONF_MODE, .vsync_irq = 0, + .err_mask = MALIDP500_SE_IRQ_INIT_BUSY | + MALIDP500_SE_IRQ_AXI_ERROR | + MALIDP500_SE_IRQ_OVERRUN, }, .dc_irq_map = { .irq_mask = MALIDP500_DE_IRQ_CONF_VALID, @@ -669,10 +675,15 @@ const struct malidp_hw malidp_device[MALIDP_MAX_DEVICES] = { .irq_mask = MALIDP_DE_IRQ_UNDERRUN | MALIDP550_DE_IRQ_VSYNC, .vsync_irq = MALIDP550_DE_IRQ_VSYNC, + .err_mask = MALIDP_DE_IRQ_UNDERRUN | + MALIDP550_DE_IRQ_SATURATION | + MALIDP550_DE_IRQ_AXI_ERR, }, .se_irq_map = { - .irq_mask = MALIDP550_SE_IRQ_EOW | - MALIDP550_SE_IRQ_AXI_ERR, + .irq_mask = MALIDP550_SE_IRQ_EOW, + .err_mask = MALIDP550_SE_IRQ_AXI_ERR | + MALIDP550_SE_IRQ_OVR | + MALIDP550_SE_IRQ_IBSY, }, .dc_irq_map = { .irq_mask = MALIDP550_DC_IRQ_CONF_VALID, @@ -707,10 +718,20 @@ const struct malidp_hw malidp_device[MALIDP_MAX_DEVICES] = { MALIDP650_DE_IRQ_DRIFT | MALIDP550_DE_IRQ_VSYNC, .vsync_irq = MALIDP550_DE_IRQ_VSYNC, + .err_mask = MALIDP_DE_IRQ_UNDERRUN | + MALIDP650_DE_IRQ_DRIFT | + MALIDP550_DE_IRQ_SATURATION | + MALIDP550_DE_IRQ_AXI_ERR | + MALIDP650_DE_IRQ_ACEV1 | + MALIDP650_DE_IRQ_ACEV2 | + MALIDP650_DE_IRQ_ACEG | + MALIDP650_DE_IRQ_AXIEP, }, .se_irq_map = { - .irq_mask = MALIDP550_SE_IRQ_EOW | - MALIDP550_SE_IRQ_AXI_ERR, + .irq_mask = MALIDP550_SE_IRQ_EOW, + .err_mask = MALIDP550_SE_IRQ_AXI_ERR | + MALIDP550_SE_IRQ_OVR | + MALIDP550_SE_IRQ_IBSY, }, .dc_irq_map = { .irq_mask = MALIDP550_DC_IRQ_CONF_VALID, @@ -793,10 +814,15 @@ static irqreturn_t malidp_de_irq(int irq, void *arg) return ret; mask = malidp_hw_read(hwdev, MALIDP_REG_MASKIRQ); - status &= mask; + /* keep the status of the enabled interrupts, plus the error bits */ + status &= (mask | de->err_mask); if (status & de->vsync_irq) drm_crtc_handle_vblank(&malidp->crtc); - +#ifdef CONFIG_DRM_MALI_DISPLAY_DEBUG + if (status & de->err_mask) + trace_printk("error occurred at vblank %llu DE_STATUS is 0x%08X\n", + drm_crtc_vblank_count(&malidp->crtc), status); +#endif malidp_hw_clear_irq(hwdev, MALIDP_DE_BLOCK, status); return (ret == IRQ_NONE) ? IRQ_HANDLED : ret; @@ -874,9 +900,12 @@ static irqreturn_t malidp_se_irq(int irq, void *arg) status = malidp_hw_read(hwdev, hw->map.se_base + MALIDP_REG_STATUS); if (!(status & se->irq_mask)) return IRQ_NONE; - +#ifdef CONFIG_DRM_MALI_DISPLAY_DEBUG + if (status & se->err_mask) + trace_printk("error occurred at vblank %llu SE_STATUS is 0x%08X\n", + drm_crtc_vblank_count(&malidp->crtc), status); +#endif mask = malidp_hw_read(hwdev, hw->map.se_base + MALIDP_REG_MASKIRQ); - status = malidp_hw_read(hwdev, hw->map.se_base + MALIDP_REG_STATUS); status &= mask; /* ToDo: status decoding and firing up of VSYNC and page flip events */ diff --git a/drivers/gpu/drm/arm/malidp_hw.h b/drivers/gpu/drm/arm/malidp_hw.h index b0690eb..909b76e 100644 --- a/drivers/gpu/drm/arm/malidp_hw.h +++ b/drivers/gpu/drm/arm/malidp_hw.h @@ -52,6 +52,7 @@ struct malidp_format_id { struct malidp_irq_map { u32 irq_mask; /* mask of IRQs that can be enabled in the block */ u32 vsync_irq; /* IRQ bit used for signaling during VSYNC */ + u32 err_mask; /* mask of bits in status register that represent errors */ }; struct malidp_layer { diff --git a/drivers/gpu/drm/arm/malidp_regs.h b/drivers/gpu/drm/arm/malidp_regs.h index 2039f85..ec53811 100644 --- a/drivers/gpu/drm/arm/malidp_regs.h +++ b/drivers/gpu/drm/arm/malidp_regs.h @@ -53,6 +53,8 @@ #define MALIDP550_DE_IRQ_AXI_ERR (1 << 16) #define MALIDP550_SE_IRQ_EOW (1 << 0) #define MALIDP550_SE_IRQ_AXI_ERR (1 << 16) +#define MALIDP550_SE_IRQ_OVR (1 << 17) +#define MALIDP550_SE_IRQ_IBSY (1 << 18) #define MALIDP550_DC_IRQ_CONF_VALID (1 << 0) #define MALIDP550_DC_IRQ_CONF_MODE (1 << 4) #define MALIDP550_DC_IRQ_CONF_ACTIVE (1 << 16) @@ -60,6 +62,10 @@ #define MALIDP550_DC_IRQ_SE (1 << 24) #define MALIDP650_DE_IRQ_DRIFT (1 << 4) +#define MALIDP650_DE_IRQ_ACEV1 (1 << 17) +#define MALIDP650_DE_IRQ_ACEV2 (1 << 18) +#define MALIDP650_DE_IRQ_ACEG (1 << 19) +#define MALIDP650_DE_IRQ_AXIEP (1 << 28) /* bit masks that are common between products */ #define MALIDP_CFG_VALID (1 << 0)