Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1006152imm; Wed, 8 Aug 2018 09:10:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwFTcrs3hZ1f6j0AQSRLU1T27pOt7tdNsqI8KK9PNwEYznKVOCz0SRvM6zbYO63FPCJgNpL X-Received: by 2002:a62:6602:: with SMTP id a2-v6mr3617497pfc.159.1533744644303; Wed, 08 Aug 2018 09:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533744644; cv=none; d=google.com; s=arc-20160816; b=XGJN3VFMwBdBnRIu2j8FcbhGHcKfCvP9RYT2Q3HJwIiXTF/iLBVMBkTDtMW8tSCY1q 5AP+K/PnAazMprsGLKS+4DhUMCxTzKjttzcsDQI77+2qM7k4/116TBp1zWh8D2vCdCaX C0NcKk++RTOAtf0kvw8YdP8NWfe1eDz+SZ+Aui4WgL+hvM7nAxXy4R8kuaaDCTQ/+U1z YiNVVLn/TtDxdP8zA1YYu39dooDPRalxS0KEg8YqtumE5MpMcuoemmaM3y767z55m/EF 44RwaDeNCNHcw4YDNPHVMNQlMEn249Az3fysPk+NHVBoYI244S3r/S0etWsHzPUNS6ym kxBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=vGtuODPpmnUjJJ+boj7Gx3h4cqshjSe/YDdJ6kzzJj8=; b=rYg8f9m+zrAwHfNCTQwsnyKqWJ7V4HlumJ5RyUi3CUZn6jFzVi0W1W2lp6PngjagUn gEFmRdCi/x74N50P+HgC3UeRm48QXpMygZ1ejE8URKY/Ke0zCeiY0IbrDasMiC/Vpw4Z SSU2Z4E3BiefM3Gyxzt3nLLAA377z7pQyzjSxR1aACVC6e1b5o4PIPZjOdrw8194ovJR w2b0y3M4VeQYvxg71Tw70YlSWj/1uXFMk/ND9FCJcxhYx8oTK5WOeQxL2X85XtYpRYSH IgsBbExEDuSkJdI8+OeCU/hdZ4IKBIw/r25/CDR+Fl762KpsKtGQ+reqfvvsSTcEo3sY XoqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=WuKZh5+2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f28-v6si5075696pfh.33.2018.08.08.09.10.29; Wed, 08 Aug 2018 09:10:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=WuKZh5+2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728018AbeHHS3x (ORCPT + 99 others); Wed, 8 Aug 2018 14:29:53 -0400 Received: from mail-eopbgr40068.outbound.protection.outlook.com ([40.107.4.68]:40736 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727081AbeHHS3x (ORCPT ); Wed, 8 Aug 2018 14:29:53 -0400 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=vGtuODPpmnUjJJ+boj7Gx3h4cqshjSe/YDdJ6kzzJj8=; b=WuKZh5+27klUbnhlsZaN7KKCvaF/U6/HyJ8BMr5cKJGJ6s9nk4Ba+DAn8buFMzzoUUXu56nYv4JcjTPRSiPWZ6u1hdGanhxVF05BMfl9UVk014+FGlR2DUOrhlz9ii8ZO+rFabemVcNlmRJhugp53ZZATYzthqvYkEjsyKTe0ow= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by VI1PR04MB4301.eurprd04.prod.outlook.com (2603:10a6:803:3f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Wed, 8 Aug 2018 16:09:26 +0000 From: Leonard Crestez To: Stefan Agner , Marek Vasut , Shawn Guo Cc: Philipp Zabel , Robert Chiras , Fabio Estevam , Anson Huang , dri-devel@lists.freedesktop.org, Dong Aisheng , linux-imx@nxp.com, kernel@pengutronix.de, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/5] drm/mxsfb: Fix runtime PM for unpowering lcdif block Date: Wed, 8 Aug 2018 19:08:57 +0300 Message-Id: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: DB6PR02CA0004.eurprd02.prod.outlook.com (2603:10a6:6:15::17) To VI1PR04MB4301.eurprd04.prod.outlook.com (2603:10a6:803:3f::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2ce8921f-ac90-4693-3004-08d5fd495148 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4301; X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4301;3:UF36lloBX5EYVj+BGZXrBphHMXqOJNanhvYdoyUlGMTDoeS0VGkXA0cm0+5vq4Q3d7TDDXAIcOq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cZK7SiSfC/sLHDbHYaaDDbv0b+dnFPRlJCqqOt981C3xZB1s0Os2kyXwbuI9wSK137XGuaQUNxrCxUa9GT+IESFOPS3d6Bg4M/bn/4ebD5SIUuVO0/p1PKuSjUN3HXxqWkTAtC/sIB6Dl4NELHXqXVfr+uV5FfDfUR233Za2WCqA4ClQPoqVOSy6dhhQGlwq3EhVIT0Y2kOLSTgO/6pncg3j16JJVraBpD2IJNuN/254fabDUFN+gCpzRzKQR4bnwSN9A8icyceJE2IOF;4:BTfjz2g09lTYk1MrDKkuGky4xv8oEcg57QR0b2RahbfwhEizsYarHzgm3qQJ1NFPQRb18rhOK8fQ3whnownIEgcGba+Vq1xwhpVvkn2IVXVm1JjOkocG6eNEQm2Ok53OxkbFT52GNxIUnwli3bzdJUd5gvIWDTLHfZd6OFt3mYjHPokR2y47RzMu7/plFwCPthgDAZIhVcD+NaWdrg/vZZu+mJuHEhg12ej+k7dmOAR97n6m99UtonfGYYmqQvmpoKuvxm7RPJuTNbhu4TEHUA== 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)(3231311)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:VI1PR04MB4301;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4301; X-Forefront-PRVS: 07584EDBCD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(39850400004)(376002)(396003)(346002)(366004)(136003)(199004)(189003)(66066001)(7736002)(47776003)(6512007)(81166006)(68736007)(81156014)(25786009)(8676002)(6666003)(110136005)(54906003)(36756003)(5024004)(305945005)(6306002)(106356001)(105586002)(53936002)(50466002)(6486002)(97736004)(48376002)(86362001)(4326008)(966005)(3846002)(5660300001)(26005)(486006)(16526019)(186003)(316002)(2906002)(16586007)(6116002)(6506007)(44832011)(478600001)(8936002)(956004)(2616005)(50226002)(386003)(476003)(51416003)(52116002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4301;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;VI1PR04MB4301;23:hjxDHEsOpyYT7ZK3Wx0n3ntzhinmF9jHcUXFdJEs9?= =?us-ascii?Q?4wvyQopULzSpbrjW/Ahd60JmABUUkTibSXbtXdQQXJCD7a/MQ14LEg2i3Uai?= =?us-ascii?Q?yZGDDcoui+zuldrHel3/OXW/xO0NIAXAOEzC7qlU38CX6LhONvpVJDQwUVTk?= =?us-ascii?Q?bpoTvO5jgIgLAiqRTCaa1VS/u/7Yc7JblqzE2YIpfw1XTo7RylR6fQMECCE1?= =?us-ascii?Q?pQ6Zl1oKvF/B91dCGKaaCASIpr8VUh69ZBVftKOHoxJl468RiTcjBqoblX+j?= =?us-ascii?Q?g2WqZNKx87ZzoatSgzNmVqddBl/ECccjspaieEhQ0fO4jCQEx/qOf1eN+TyE?= =?us-ascii?Q?U0FcrLyJDnjmgROjnbA55GcNYeIt3TCbCmPACAf3Rq2hQfkphLLnE2Q8zGjl?= =?us-ascii?Q?32sve99NpHK/DmxofgHvYmsanRdOmokioWgKV20TZ0PM8/zGH32vwKutLmKE?= =?us-ascii?Q?sl3LoKx8OK3y7lztZ/53c1nyhPbkH9Xc9KtF5BBFlAKUaq67pnCDP33QSjfd?= =?us-ascii?Q?/GOWrDC8oaMuUgrfUxCAKSRNrQjdsEJshrWSbg65VgKkwmPbZxWi+2+hqNOQ?= =?us-ascii?Q?uTPghclEK8c9R5VLMeTyZpWLgM+Fc9tVZZPXfR6O6H+J/7aMne0Nxulc9fnB?= =?us-ascii?Q?xCAifV3isnYxu4ApkKx/NxiyX372iOuBk+UqeWSnh6Tr2XC6Tv+92x8eKaCu?= =?us-ascii?Q?qPf99zsBp5waFyR2/dNvVDZsEw1ds51IworMv1FdEQcYE55vKsoZYmWC+Jwq?= =?us-ascii?Q?tGyA7Nj2JSYGnYM9nxInuwhxx7tiX0RNnwVGEKWOyvKA48Hk7Fsob2hRrKJy?= =?us-ascii?Q?7g/Qj1cXnsRKf2JVMU/6SJ4VtBq3/dDoXbbegKudU+6UV74YHRtFr3Hd0EPr?= =?us-ascii?Q?br5kmBeikzn1QALLHDklf/N/Chh/DXpzRWstgU9QxqTXoeRFj5y/AcYKJrnK?= =?us-ascii?Q?hP4x4Y7reVAtHxe+OXenEpz0pspNpPvP9oOZvhq9WwwNNiAEsrkWyKqrac1G?= =?us-ascii?Q?o33afFixYydmp1VndlnKPmu6ZCc7+bxF6ddBlCVWEIyF+jKLjDO49Qof/0C9?= =?us-ascii?Q?63m3GUoXwPejcSsxqt9ryKNIhsH8oVk3artVZYiN4RvRiSTNhk4S2yClEvz2?= =?us-ascii?Q?fObS9ueb28G6mwEvBkc7hJnWlFmirNji1naAHngBXDS/88L3BHsKriLeGLxW?= =?us-ascii?Q?ZbxpjVMniB+svHPKkODa/VMGsu2mOaILxrItmYNWytOS/iS0WJ9FTZj7w=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Antispam-Message-Info: l3RvoweIbK71MVhSi8T3xXmi6OoU1cM131uiFIeTR+Wt9QzX5obALXWlLLVb7UpJnRdg/LjmoW44cYLPjfh67+62OdfDMsW43MOSL1jf3zrGL31qsWvQdel7iWEoBEl+cXGrDDeTOOLAmqM5LFRVPsQsLCIM+Y1+Pcin5ewDKfJnrkjfU2ZzjCzmFwPE5GxfHfhe63s4lqx2J8ahb+ttS/tpuFvN+9RbfJUi05D637f7PiEoBHVTH8peSwFFuBgtSLpTZuPIFD0i626j6URFLs0RWJu0pxdUZjc6oHUROZU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change-CrossTenant-OriginalArrivalTime: 08 Aug 2018 16:09:26.7793 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ce8921f-ac90-4693-3004-08d5fd495148 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4301 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding lcdif nodes to a power domain currently does 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. Changes since v3: * Don't set initial fb in mode_set_nofb, do it in crtc_enable * Simplify AXI clk handling to allow setting fb in crtc_enable * No functional changes Last 3 patches are identical to v3 with review tags attached. Link to v3: https://lkml.org/lkml/2018/8/6/728 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(-) -- 2.17.1