Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1182268rdb; Fri, 1 Dec 2023 09:01:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGiWAUvFHDpGHmaTZDibRNxvFPBLKN9dbQb5VthjapuicFqYPStqyMEUXxSF6BLMlYQKY1 X-Received: by 2002:a17:903:183:b0:1cf:55dd:9a0e with SMTP id z3-20020a170903018300b001cf55dd9a0emr29918991plg.15.1701450062954; Fri, 01 Dec 2023 09:01:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701450062; cv=pass; d=google.com; s=arc-20160816; b=H3yOFcH2oCEkiemzUmL+QCYbT0ZlTnMQyXAMOztVzlZFSGb0pSd8tCg5nFTdHoSOyS wk5fo25Y+AXZ8Q5PN1IE8QN9AhKeK2NbFpNM8lEeU0lS+s7ZXqxqnzNaWpVAMyPqFu+q RHLTqrtUWQcj/Z9UfmRbHIdxllVAZtJWoHVz6mInGEuYJPw/QZrdK4wBZqv1Xjhz8xbT L2jlOKeEGxtPCh8wougYcSwoB6k2bkFiG8v1KBERNBRlcJ1op2l4LD1wDoT16J4OGHYj 9ElZKwUh34hUktE3MnYL80fQM9RLfTOv20QtmVr79j2g9VUvxbwipk1qGJ+LaP2+9cf8 o8/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=mSnp5dAukkACvX8mXBO0j8sOoAMkGra3fGayy1eoRSA=; fh=v/jM2wn1AT8MmGliQzsTYb8d2SqnkzZtnVlwdeycEpM=; b=l5lNLAkLDK/D2twWsJadO4OzeyNUubcdCM3eJx7TyH3rJkVujcwo3JtQpP31KmGDM1 LVQuQJj9lhbywTQObPXuJr+k6CORYjJOyTvqW1So14GL+7tErHv6MnfIo1ny4sGirqDp 0pdAwkyhiUHOPbDNa1aSibpfMlB3EFdxFs66SrVmKw0WZSol/K55LSbjNEuXf9rG2GEm UV7n0Ai51jdiX66yM+kr7TWLzHBPsxx9lhBmDLaUv4p/t/eM5px3aGcP91Gsjik9QIgz 2xy7Ui3EZQL1izeeD5KIghtC7C/kkoqtMYDykVvql/WSmP9MZ1jP7hoE6JzTnSdNC2rc Q38w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DPEObF8X; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x28-20020a634a1c000000b00585a5e9a965si3537640pga.161.2023.12.01.09.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 09:01:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DPEObF8X; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4921881CA3E0; Fri, 1 Dec 2023 09:00:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbjLARAZ (ORCPT + 99 others); Fri, 1 Dec 2023 12:00:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbjLARAX (ORCPT ); Fri, 1 Dec 2023 12:00:23 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061.outbound.protection.outlook.com [40.107.20.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8638010D; Fri, 1 Dec 2023 09:00:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ikP6z6hoduV8kUNnTvWu8TQ9+qE2iXvTeiB8qAFty+cAff6On9shEGOROXhkkYO7L9rzWL2+z8RRlEf9Y6No2FV4tbk1qeqveTIB7vz/kRKw1AbM547qgaEw+NJBU4Vxmvu81SpZHIkqvS7RlbEIRZu+ooZFenUzD7ADqkRNBPhAiByRmvwy/m+sK+/A9260jUyuMvd4r3Wc0opbO+MTcAYTSqQHoVs4A8cVkwQYbMrtGGcXvvRdbt0bfebuzEiOar2JLSnXBPevsJtZNQ5DQbqcL5J0RBol/1ndNZFU773m4rxJfjmDfaUzWeZ474aYbcGzlrrCkJo7R+Isnrj94g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mSnp5dAukkACvX8mXBO0j8sOoAMkGra3fGayy1eoRSA=; b=TnIeYLkJMg+VYscl1anT6wsFmgSdvGLioH9Y+hQrVa87AE4nu4XDCRMHzlu5MDMz078inHc4vqx4AWCBCCQ9FLPKJsqStKsbn1cReoSss7cn75ueJ1bvxedyPjoIu6G1Nrl9L1zrXEQahN/qCDDtl5hPW5w52stLHu7/ofdvw1DnLdj+Bps0VZvny+lZC5dCRJy0IdoO1ln0u2wdK8YjENitlpvfcxizo+T19G5K6jcwwgYSr+MZIECbn5OVcwvg0EDEzgUj1J+YCoaxlZ5hf0sH8h+2lJvMH05BHDtbdSHspStgzTOj8UGftyDRYTcmXdl01BSZfZlU3we2u5h2Rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mSnp5dAukkACvX8mXBO0j8sOoAMkGra3fGayy1eoRSA=; b=DPEObF8XeKAQtDlkAQlk87cDiJNneX1A/W0uOpWE1toDnscVbcZHN9NFJlwzN7FA++BhwDfYwKeMnwvrO8O8dze54OWWv8+bHiO8YcvinuzBQyEled3iyohFrVgQX00qfURgup5mm/VNMpFMzObpXEkhrn0/jiv6gtLu1G5mz6A= Received: from AM0PR04MB5956.eurprd04.prod.outlook.com (2603:10a6:208:114::23) by DB9PR04MB9307.eurprd04.prod.outlook.com (2603:10a6:10:36d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.8; Fri, 1 Dec 2023 17:00:26 +0000 Received: from AM0PR04MB5956.eurprd04.prod.outlook.com ([fe80::611a:53a9:3185:c548]) by AM0PR04MB5956.eurprd04.prod.outlook.com ([fe80::611a:53a9:3185:c548%3]) with mapi id 15.20.7068.012; Fri, 1 Dec 2023 17:00:26 +0000 From: Roy Zang To: Frank Li , "manivannan.sadhasivam@linaro.org" CC: "bhelgaas@google.com" , "imx@lists.linux.dev" , "kw@linux.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "lpieralisi@kernel.org" , "M.H. Lian" , Mingkai Hu , "robh@kernel.org" Subject: RE: [PATCH v5 4/4] PCI: layerscape: Add suspend/resume for ls1043a Thread-Topic: [PATCH v5 4/4] PCI: layerscape: Add suspend/resume for ls1043a Thread-Index: AQHaJHHrGHCNctSYK0ibkWhpogoTJbCUpqkg Date: Fri, 1 Dec 2023 17:00:26 +0000 Message-ID: References: <20231201161712.1645987-1-Frank.Li@nxp.com> <20231201161712.1645987-5-Frank.Li@nxp.com> In-Reply-To: <20231201161712.1645987-5-Frank.Li@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM0PR04MB5956:EE_|DB9PR04MB9307:EE_ x-ms-office365-filtering-correlation-id: 4640eaac-a34a-43e2-6fb7-08dbf28f040d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3EmjH2bbvY/kQtHzzzflJgqeJZGVatS12fRDMEKw1sbzPD71koDEMlHiEnN43t7kTbisoC6JSXCfoW1xREo+r/REUw4ZP1mjTF1rfQerLJ9X7+o0DrYxgjDyN218Gdz5+8kZZ26HdeRK3eQYSX9oSZYnVzd1SVUKFA15vAky/xqdQ4wU22Qw4X5lTqds8YRj2IWFVj5H6EeeRuH36gVPRRb4Rt784pRSxOyu8g0oJsrtU3Gb7VFOriDEk+CVozKTRm2tRynd+xQrgkm7TF6FEsm8OfCCfYfudXO5Lj2pKZMzvpjkDbf4UUvfHrz6UU7PwBjnoTkj/KCd00DQNWYPiQwHqHVWKqRyZnq/9F6ZcpHUHEuBEdNx+8e0cnsthU0bcqYPiQKvDQX4YU+8MBxO5ijHSmOG7zaHbW28bjk5pKrfPeVqP8YX8n20N84CXcFOE6tgtUM+F1xIygpWqm8m+/4EmCsdidwbCjmxgJ3d7DO+HTR06QV2Sq6TNlAb6rxIyf1nKfnkeikv/tylb3McwXSYQcA3HVXJc9kS++YKxRkmVdrpJYK2nnr6RSDKzE2TioA1EJv1nqaZKwzOCTd6zXetvKSxLc5yBaAokQCei3m6jjurSJGfWCAx4uSNAwMj x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB5956.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(396003)(39860400002)(366004)(376002)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(55016003)(38070700009)(86362001)(54906003)(66446008)(64756008)(76116006)(66476007)(66556008)(38100700002)(66946007)(33656002)(9686003)(83380400001)(26005)(6506007)(55236004)(7696005)(122000001)(8676002)(110136005)(2906002)(5660300002)(316002)(478600001)(4326008)(4744005)(52536014)(15650500001)(41300700001)(7416002)(8936002)(44832011)(71200400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?VoK791g51+UxcbFXAY9XZ4GPXiNJgOcvkGq85HGAK0SNmtiEF9QMCP6TEnxc?= =?us-ascii?Q?Sann1e/gmFVgsGbyBi9p20atuMDvqdoJ2uhjeToiThcapKWQQ7NS2QAA1ixL?= =?us-ascii?Q?kTimuOjdyWYuzjhP3Q0QH7v4KIALkozw2C/+bDtL5sUHXOLu7z23oWAyNJNx?= =?us-ascii?Q?HCwLRgOR2ohjPJ2uMW9q6nlTFvSMq+HYXN4sxI6hMqrXOGnmf0J+3kbONjx8?= =?us-ascii?Q?Zp5d4rDGsX56fbyuU1AyFWz+/g21mhSyiIoGX2bZRaGspbun6CHWZ2qVJpkY?= =?us-ascii?Q?ZqZcfyY2CYviXc4nRKFtu5euZz7Xs7p6jNrIyK6sTeP+5m5Ezz2vEGhjSZFA?= =?us-ascii?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oMHEdBaAtEXpxHpZbvLGdGHW?= =?us-ascii?Q?iWALUSmdjmEsgXFH73TB9qGixCb/rpY2g7uaT1XJaVk48oXZE4YcmcP+RtiU?= =?us-ascii?Q?v+4jDb1umIaU0HzRiyQRBbW50oTq5qIMoFsoVOuQlbCemh/j+rq+1UpYtw/0?= =?us-ascii?Q?/tx5muj1BSS3BR2r/CpzJFw4zltvg5C8pp+Hpeh61oLx79xTIrJ6/S43d8nM?= =?us-ascii?Q?3IVomCN19tQXxrAOm3f5hxwMJw+GxCCrR31ELO3vgLnquDxZLlbrNhs8l3CH?= =?us-ascii?Q?gP62wplNULIBViLre4xoERNUTnTx84BOR0niB2QCK4po6Ntk8W6aHNVYLQy/?= =?us-ascii?Q?4sJI7dV9gKHVlBH4YtE=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5956.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4640eaac-a34a-43e2-6fb7-08dbf28f040d X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2023 17:00:26.5215 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nPDZQ/nIh7n0MuPL79ViXzTlfP8AOKSiVfon6y1hrc69n1TxEpk3EMXVbS8aAch6tL+YibhNivV5XfZg6nLAoQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9307 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 01 Dec 2023 09:00:41 -0800 (PST) > From: Frank Li > Subject: [PATCH v5 4/4] PCI: layerscape: Add suspend/resume for ls1043a >=20 > Add suspend/resume support for Layerscape LS1043a. >=20 > In the suspend path, PME_Turn_Off message is sent to the endpoint to > transition the link to L2/L3_Ready state. In this SoC, there is no way to= check if > the controller has received the PME_To_Ack from the endpoint or not. So t= o be > on the safer side, the driver just waits for PCIE_PME_TO_L2_TIMEOUT_US > before asserting the SoC specific PMXMTTURNOFF bit to complete the > PME_Turn_Off handshake. Then the link would enter L2/L3 state depending o= n > the VAUX supply. >=20 > In the resume path, the link is brought back from L2 to L0 by doing a sof= tware > reset. >=20 > Signed-off-by: Frank Li Acked-by: Roy Zang Roy