From patchwork Mon Aug 27 11:10:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10576977 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E962D920 for ; Mon, 27 Aug 2018 11:11:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6B362965C for ; Mon, 27 Aug 2018 11:11:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA40B296B9; Mon, 27 Aug 2018 11:11:34 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 135E62965C for ; Mon, 27 Aug 2018 11:11:33 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=wonX1uaPQZLCkH7sgVKNe6oq5ePaKqwKDjo7SS1iKAA=; b=EIXtTHUIr9Wvog Or0pNBu/tCNB6NvfNpjWteTQ76nRROjpnH38/2ri5XIv2FS/DLjsrFbnYbLfVZ5nOTT7PsKTSDLdu DFDr2dRp7Fh0Uf8Esjh9yIcONwuqwVhdtd47IHGlh54U886HQwr7xBUW5a5O0u6p6TVVqD06O1K/e wSd9TWBXA6VoJDmGH8SgMz09B6F/3wS31o7ffh6GTwSKiIpLiYM9nHrKRrywAo8kiD9SWQloLG0UQ lAkXcM+FwWLR/G60MTa5ueicZwt5XoloyKTUIERP2HimZwEHGLyXwK7bTwT7pM26yw8ptVg+QWlq9 m4bSKpepB07YMeBjhgow==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuFQb-0007i5-6H; Mon, 27 Aug 2018 11:11:25 +0000 Received: from mail-he1eur01on0088.outbound.protection.outlook.com ([104.47.0.88] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuFQW-0007gC-Qk for linux-arm-kernel@lists.infradead.org; Mon, 27 Aug 2018 11:11:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e4gBk1xqqNJfHISDAm15pKgA8JH5dKyDeDRjeh0dLLU=; b=vHdl/SUUM8nVbZYUkS/R49BPhFzHQaiUZ9WhJugiBgXxDt2KzAJXRxNmPAA8qrbzHjs9H0kTEZJpeemTqKT133P/Vfaa0shsBloGQEPzL9zpJobKV/nju9ulxAGsoMNnewI8pBBLLbLLAtQ3UYSF+1qfvq24T5WXdTECOSLCdOU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by DB7PR04MB4297.eurprd04.prod.outlook.com (2603:10a6:5:28::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Mon, 27 Aug 2018 11:11:02 +0000 From: Leonard Crestez To: Marek Vasut , Philipp Zabel Subject: [RESEND 0/5] drm/mxsfb: Fix runtime PM for unpowering lcdif block Date: Mon, 27 Aug 2018 14:10:36 +0300 Message-Id: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: HE1PR0802CA0012.eurprd08.prod.outlook.com (2603:10a6:3:bd::22) To DB7PR04MB4297.eurprd04.prod.outlook.com (2603:10a6:5:28::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 80ee3096-7d60-4d9a-f645-08d60c0dc7df X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR04MB4297; X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4297; 3:weEo7OPIrx1lWdcZ/lS/Ky6X3jAaxz/vpkw5gV3zvavPaMxNjVgQ+/oqFfvGdLxrokmzJNipiWXPEItwYABwcQT3YSztiAz4P4ceVhTN3BmF+au9nE66/GPfDaqkJrniqJqOx0YB+sSNxvC6VXIT3eQGL8RaEdpXn5p4qYsBl/T3qCbi+/I95kP8NpvBdV1G47Q2GcpWujSN6U6Ap5rmxEOcreOASBBfMDF9Ac9Umzen0QQzmQWnczrrkNXxy0hO; 25:19NJ2pmwq95MzAMdhELgVYH/nyAPbTqcov2063L8yfjeNxW/S8khuCILmmSWc4tNlKxSnL0xEn5AUC1qCrA0nEQYSJAyMkWhvAjq+Tl2ngU8T6212vQbD7r5jwe4kM6JnQw/sSTVEyf9DWFqN/tZI2orIEojhfHUuKyoeIIy3NkP3Xb8pdrvKG/D6pQVgaRm4lyqBPRBKaFoF7bLEJ8F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k2ppoplTy5n77XND+O4Yvb+PdoJdIpBz18i9pd88zfeNeMTh3c4CsUG1JC4H0gwFHAL8MCkj10c6AeF3LUvIAT2s6kFQ+zb1lJxDx+rGfuKwMj2uMQ4Ztx1iJIlqFrxVA+TU6Oem+FW1Z0lS9IBAmDg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:DB7PR04MB4297; BCL:0; PCL:0; RULEID:; SRVR:DB7PR04MB4297; X-Forefront-PRVS: 07778E4001 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(376002)(136003)(366004)(346002)(39860400002)(199004)(189003)(4326008)(305945005)(478600001)(6666003)(2906002)(36756003)(476003)(2616005)(956004)(81166006)(8676002)(81156014)(44832011)(7736002)(486006)(3846002)(6116002)(47776003)(6486002)(66066001)(97736004)(86362001)(54906003)(5660300001)(966005)(53936002)(6512007)(16586007)(110136005)(316002)(50466002)(48376002)(50226002)(6306002)(105586002)(8936002)(106356001)(51416003)(186003)(26005)(52116002)(16526019)(6506007)(386003)(68736007)(25786009)(69590400005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB4297; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB7PR04MB4297; 23:vKX4oM2RE7mgzqxFE6KL5Gv5wFZBrQRSAV/SNOP3C?= Mahyxs9ULvBKl6CYgbkIzi6GRm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d1M1Mol4fe7C1zNx89XxSkRHyEpkPsSmQ3oQ887a7q4Dy3SittmuL68pdJu2v7Ovx64rso7RPBFO0ZVjvThOX6eJfsh6MYKDCJYrqC8=; 7:jjzOgb7/1kb/27jdBEWO8FcXl3RMnG9fU//EqM32ZwgC9JavBbygB5UiJ0aPoruiYY5gBjOqhenhvsgwbv4LaYelZ8sY4/TvNy3U5/qlpVzX2CfBsYnPM29/9Lrq6kgb85HJmuxF5dLh62I6BVbVFDBNQ38TujZ4Ya0nc4s1iHJt7mVRBjSawnzlR2PrURt15RA9Pi1QkbtjyQgxUQin2ky/NmUZv2cmic2ZNQHojtSYLbJwSim5mj5/SELcuCi+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2018 11:11:02.9103 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 80ee3096-7d60-4d9a-f645-08d60c0dc7df X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4297 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180827_041121_049561_A5A2A58A X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. 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: Dong Aisheng , David Airlie , linux-kernel@vger.kernel.org, Stefan Agner , Robert Chiras , dri-devel@lists.freedesktop.org, kernel@pengutronix.de, Fabio Estevam , Marco Franchi , Shawn Guo , linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com 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 Adding lcdif nodes to a power domain currently doesn't work, it results in black/corrupted screens or hangs. While the driver does enable runtime pm it does not deal correctly with the block being unpowered. All patches in this series have review tags from a few weeks ago. I'm resending this today because 4.19 rc1 was released. I'm not sure if this matters for DRM but in some areas unrelated series get lost during the merge window. Marek/Phillip: Is one of you going to pick up these patches? Link to v4: https://lkml.org/lkml/2018/8/8/573 Leonard Crestez (5): drm/mxsfb: Move axi clk enable/disable to crtc enable/disable drm/mxsfb: Fix initial corrupt frame when activating display drm/mxsfb: Add pm_runtime calls to pipe_enable/disable drm/mxsfb: Add PM_SLEEP support drm/mxsfb: Switch to drm_atomic_helper_commit_tail_rpm drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 53 +++++++++++++++++++----------- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 40 ++++++++++++++++++++++ 2 files changed, 74 insertions(+), 19 deletions(-)