Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1669877ybg; Wed, 29 Jul 2020 22:35:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6Zth8lbde2qYRZxV9ISKeLKfQwRu6t/mlyM0YVIZhgGOBHGjR3DZ/RKssHOGWl2NtTuee X-Received: by 2002:a17:906:6a5b:: with SMTP id n27mr1006603ejs.154.1596087331206; Wed, 29 Jul 2020 22:35:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596087331; cv=pass; d=google.com; s=arc-20160816; b=ZsHn7mxx7eG4z2r8qGkAvew4EZvWuPWvrAxafG2kNySFUxbUvjE8fwZ3fSBxud5su0 hc5hh3io+gQp215gG56cRd61VSpyxbIXBUEpRt9EIPVFtWc/V05n5AaQKZSkvFEUN83K uyfywr9+v8ZrpSF4dVmPt9P0YWcQJXr0TPQvKmHbF316yEW/VVDfgbtGGvtowkYMacgC BE20rD89X/7aY5t+3LIAitkQoljObAKjGrR8nvTs/kh9rjMN6lfL0dL9F6gKaPOMOzxp TA1ejgEa7sPXKj+o5l1jXWVLeazqxFxQr3OFFwM6PPRG88aMEKkxqyzRGFv2A+ShRemm VSZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=jxNfe1PMckE/NzRe8SOHwpvMqVoG56pGpRN3bvlPVd4=; b=yUS/51S1mAORFPpcKaP4KyLSktTn0/io6JfAudbYrURdI4uypCw/7lH+bqDlPrMSfr 0xunX6SXXooG49fBtEO97xhWW6+9KtPA9UcJHN40pTVWfNvVebLazON0XMbELTIaCUTK vHz38/V3VMpZTkEf6VXj+MNWWvaQA05yaygqeM0afuosxoYrjqaoxK0NJZevlfiA67i+ EX84BGFRo/W47lj93lnERjYYYBBzGZQS4yWJT/vqz5BbFP4D2Kch8UfSndMxIVFPuSQN s9MCSCeG6iyHyWJLeplwwwujxKQXvnZlUx3EfSyab2GxVhd4tmtYQcSIMX2/8VFtChMG JHoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=qbA+AgP4; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj23si2740766ejb.482.2020.07.29.22.35.08; Wed, 29 Jul 2020 22:35:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=qbA+AgP4; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728555AbgG3Fcs (ORCPT + 99 others); Thu, 30 Jul 2020 01:32:48 -0400 Received: from mail-bn8nam12on2083.outbound.protection.outlook.com ([40.107.237.83]:25919 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726287AbgG3Fcr (ORCPT ); Thu, 30 Jul 2020 01:32:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=glTRS2QxZIl5QjcVaxB3Rg42Y+OKm7JJ0vDiNxsIfgLzhkymn8bbjdDIbrM4A5PkSTdb9zYM6yvCeXembu/p4YVMoipCKCx6Xx0nsnVJoKe201u2RIiryYgAIWQxxOI7trwi1kryuIIxait6ReQVMoE/jq/WoenjpVC43vDyfo5tkqhcDUK5QvidNb4gbbX7o73Up2yMIvbmDAb8v85wjVUGBqUGVsZAbx8/WwoWZl7awN67j1FLAqNTnbcLZgCkbEEe/QDZCB2YVp0QrhBZf+lK6RpL8xSCuMRD9aOFYgs1DIlkE51W2OfAKAct+sxLbyA4haEL5d2AvvEmAIE1EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jxNfe1PMckE/NzRe8SOHwpvMqVoG56pGpRN3bvlPVd4=; b=bhZsJQ78wf96S4Pj5oXHOpy1T5X695dgBgSPRiWA4503p+aD4/hZXj7eEPDDBsuHYRhUwexQHZN0XSajeCWuf9X8PgQW1mo0aBTVogcC84vuj8u65F8tGHRvAQwBEdnixwanJeerT8dX1sUndR6K5uihctrj10KwYwYzDSsJIUJLiDcblqsq1aFxM3PTSbcGuNsG2zEjmaqXdaSkrrljuzly927un9duLYnDKLiGRj++xJSjv1+l341CWkYDC5U2Cztxb34ZM9DGOu+Km6hCFKB/64SM0aB4+Le2iphBeg68ST4i7cB2/Mc357Ucruj9uIgYD2iDuXBW3fX/sNKhdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=linaro.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jxNfe1PMckE/NzRe8SOHwpvMqVoG56pGpRN3bvlPVd4=; b=qbA+AgP4Kqy+W9lgWOg6HnCu2FjbNN8mFKm3O7OP888EVe7B8+yX1dinnbahvnsspI7qJ3eYsjeIZjHY7qLDj5Sv4W4DAP5yabmUFboC2Tb0zzRFRYL/4ycRx5bOVRNEDbMjSZqO0pztz5OS6bGxd1aQPwRe8tWoKA//sdfn72g= Received: from MN2PR14CA0030.namprd14.prod.outlook.com (2603:10b6:208:23e::35) by BN7PR02MB4196.namprd02.prod.outlook.com (2603:10b6:406:fc::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.28; Thu, 30 Jul 2020 05:32:44 +0000 Received: from BL2NAM02FT051.eop-nam02.prod.protection.outlook.com (2603:10b6:208:23e:cafe::5a) by MN2PR14CA0030.outlook.office365.com (2603:10b6:208:23e::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.17 via Frontend Transport; Thu, 30 Jul 2020 05:32:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT051.mail.protection.outlook.com (10.152.76.181) with Microsoft SMTP Server id 15.20.3239.17 via Frontend Transport; Thu, 30 Jul 2020 05:32:43 +0000 Received: from [149.199.38.66] (port=54650 helo=smtp.xilinx.com) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1k119L-0006qA-US; Wed, 29 Jul 2020 22:30:39 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1k11BL-00075j-Dn; Wed, 29 Jul 2020 22:32:43 -0700 Received: from xsj-pvapsmtp01 (smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 06U5WYS9002157; Wed, 29 Jul 2020 22:32:35 -0700 Received: from [172.30.17.109] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1k11BC-00074Q-Dh; Wed, 29 Jul 2020 22:32:34 -0700 Subject: Re: [PATCH] drivers: soc: xilinx: Call InitFinalize from late_initcall_sync instead of probe To: Amit Sunil Dhamne , ard.biesheuvel@linaro.org, mingo@kernel.org, gregkh@linuxfoundation.org, matt@codeblueprint.co.uk, sudeep.holla@arm.com, hkallweit1@gmail.com, keescook@chromium.org, dmitry.torokhov@gmail.com, michal.simek@xilinx.com Cc: rajanv@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tejasp@xilinx.com, jollys@xilinx.com, Rajan Vaja References: <20200722232551.29549-1-amit.sunil.dhamne@xilinx.com> From: Michal Simek Autocrypt: addr=michals@xilinx.com; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNT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BnghoDr4wHVq+0lsaPIRKcQUOOBKqKaagfG2L5zSr3w rl9lAZ5YZTQmI4hCyVaRp+x9/l3dma9G68zY5fw1aYuqpqSpV6+56QGpb+4WDMUb0A/o+Xnt R//PfnDsh1KH48AGfbdKSMI83IJd3V+N7FVR2BWU1rZ8CFDFAuWj374to8KinC7BsJnQlx7c 1CzxB6Ht93NvfLaMyRtqgc7Yvg2fKyO/+XzYPOHAwTPM4xrlOmCKZNI4zkPleVeXnrPuyaa8 LMGqjA52gNsQ5g3rUkhp61Gw7g83rjDDZs5vgZ7Q2x3CdH0mLrQPw2u9QJ8K8OVnXFtiKt8Q L3FaukbCKIcP3ogCcTHJ3t75m4+pwH50MM1yQdFgqtLxPgrgn3U7fUVS9x4MPyO57JDFPOG4 oa0OZXydlVP7wrnJdi3m8DnljxyInPxbxdKGN5XnMq/r9Y70uRVyeqwp97sKLXd9GsxuaSg7 QJKUaltvN/i7ng1UOT/xsKeVdfXuqDIIElZ+dyEVTweDM011Zv0NN3OWFz6oD+GzyBetuBwD 0Z1MQlmNcq2bhOMzTxuXX2NDzUZs4aqEyZQ= Message-ID: <48f8ea58-ffdf-6778-cf7a-4c14d50a1e83@xilinx.com> Date: Thu, 30 Jul 2020 07:32:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200722232551.29549-1-amit.sunil.dhamne@xilinx.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ff1648ee-3b67-4395-b324-08d83449fc07 X-MS-TrafficTypeDiagnostic: BN7PR02MB4196: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fzotgSJam24nJJAuiDIWKCHaHDA9YzAPc8EjEO30CotqS3sk+h3XXZuf/qasUn3kN0x5bpmv4rLOdf/b6M9UHiuFUcTUhtez2nXutHXyMSlM8bXFRMuRuEKSnV2WxGwGUQcuNkvGYadp+WYJW4Uf/qWeDM8XRLEzQA+z32fXS52v5KI6XEYrzL7kVdzHKvZbkEDC9cfwXJqJ2Tpyj8wkJvdBPS7fHuOseRIXH2+FFK1kq8FhAb6tedd9eqDXQ+b8SheXbNI/P7z0Q5Z7oK8JN0ppWhjOd8xLaepQN4eAlHYen8oVNUHEOtaTLEnsSAc2qhmGbzqQHBV/wiyszdgf7LqhbELKtNikqfV/h8ynslk+gbdT2iCziAttGZQvwpmtBbn6siW1+Cye6YAkMVEpbrBlKzBzdWNWxVJ6mkQh1RLF8d/hrLXE885pqrCAzphN X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapsmtpgw01;PTR:unknown-60-83.xilinx.com;CAT:NONE;SFTY:;SFS:(396003)(136003)(346002)(376002)(39860400002)(46966005)(2616005)(7416002)(8936002)(8676002)(31696002)(9786002)(6666004)(336012)(478600001)(83380400001)(82310400002)(2906002)(316002)(44832011)(426003)(70206006)(81166007)(36756003)(70586007)(356005)(47076004)(82740400003)(26005)(107886003)(186003)(31686004)(5660300002)(4326008)(921003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2020 05:32:43.8415 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ff1648ee-3b67-4395-b324-08d83449fc07 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT051.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR02MB4196 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23. 07. 20 1:25, Amit Sunil Dhamne wrote: > From: Rajan Vaja > > Initially all devices are in power up state. Firmware expect that > processor should call InitFinalize API once it have requested devices > which are required so that it can turn off all unused devices and > save power. From Linux, PM driver calls InitFinalize to inform the > firmware that it can power down the unused devices. Upon > InitFinalize() call firmware power downs all unused devices. > > There are chances that PM driver is probed along with or before other > device drivers. So in that case some of the devices may not be > requested from firmware which is done by genpd driver. Due to that > firmware will consider those devices as unused and firmware will power > down those devices. Later when any device driver is probed, genpd > driver will ask firmware to power up that device using request node > API. So for those devices, power transition will be like on->off->on > which creates unnecessary power glitch to those devices. > > To avoid such unnecessary power transitions and as ideal behavior > InitFinalize should be called after all drivers are probed. So call > InitFinalize from late_initcall_sync. > > Signed-off-by: Rajan Vaja > Signed-off-by: Amit Sunil Dhamne > --- > drivers/soc/xilinx/zynqmp_power.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/soc/xilinx/zynqmp_power.c b/drivers/soc/xilinx/zynqmp_power.c > index 31ff49fcd078..fa05cf12d5f3 100644 > --- a/drivers/soc/xilinx/zynqmp_power.c > +++ b/drivers/soc/xilinx/zynqmp_power.c > @@ -178,7 +178,6 @@ static int zynqmp_pm_probe(struct platform_device *pdev) > u32 pm_api_version; > struct mbox_client *client; > > - zynqmp_pm_init_finalize(); > zynqmp_pm_get_api_version(&pm_api_version); > > /* Check PM API version number */ > @@ -246,6 +245,13 @@ static int zynqmp_pm_remove(struct platform_device *pdev) > return 0; > } > > +static int __init do_init_finalize(void) > +{ > + return zynqmp_pm_init_finalize(); > +} > + > +late_initcall_sync(do_init_finalize); > + > static const struct of_device_id pm_of_match[] = { > { .compatible = "xlnx,zynqmp-power", }, > { /* end of table */ }, > Applied. M