Message ID | 20230807165238.569297-1-Frank.Li@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1593274vqr; Mon, 7 Aug 2023 10:15:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG55O04Bsbep8uj+CHK3o0ToVtVLRC1opeXiWwhohGB171TqeYCW/BjupNkklbyPwIPKotI X-Received: by 2002:a17:90a:fb89:b0:268:f2e:b480 with SMTP id cp9-20020a17090afb8900b002680f2eb480mr8908738pjb.11.1691428515049; Mon, 07 Aug 2023 10:15:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691428515; cv=pass; d=google.com; s=arc-20160816; b=c6j2AYO8/DWsJ1Z8XRYN1Po0tyguogrtaQ35bKCJGiJ1TVgw/ULWHhnd1eKsspPXQY gkAzuH4Y734jQAUl4lrW75iUA6+VKeBJPZ5dkWhaOI43fs2BLUwpwgRXbhvDglY66MDD 1m2ZT8yKwZn+tk9ta626VE5/kImRDtLhlXLdwXQjp3AXG/NVbKtaiU1Wd5/8hQb9DKwB oPLG7YDzWart9Ej/tPspJpOwamCF9VSPKhqZ+evVy/Sv5WMp76ciEsPROJLtAueX3qOj i9iNNyDWo7iggHgwvXnpVzmwJjSPPLrcH0Nx3NAbUy0Uze0H1J2v1lvc5KqdVn/issBi pqJg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=x909Zqj0hdrgfJH0h6fYkvizC0YoU2vAXBTQu1yL+3k=; fh=LKnVPWvEa61PHnZAI3RMnA9ofhnPlVAAdbaNfQif9xk=; b=w6o3MFxUKSkCyLUKVXMUbAJOLzS7BFINNYpFXCwUEi8zWMJa7uL6ie0MMJeRIKKovN yjyWBamz51BTOiGmyk57/CP8BugzG0ToFgY3jIcKx0AX9I7AwZnvvoLf5cD6LbsYlVLg WjmboQJq+rnJCvGrfiqumh2z/JFn5/4qi26SP4EQ9pqhbpKk7W2AkbmR5Ntro8QRfOas pvc8obG+ftb7ZfG4zDk1x5VF2/gRHDRA4xLp0RixyeuR7TyLhV2OIORoike9N86lKOb2 e91uC4g5yqahlTVa3PznBKmEjVFkkjRX4d0qc/BbCxO0NId86LHczQaHh76iy2eC//xR YI4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=TkQ+lUtX; 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::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a17090a164100b0025c219a68e3si6097953pje.45.2023.08.07.10.15.01; Mon, 07 Aug 2023 10:15:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=TkQ+lUtX; 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::1:20 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 S229640AbjHGQxH (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Mon, 7 Aug 2023 12:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231247AbjHGQxF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 7 Aug 2023 12:53:05 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2057.outbound.protection.outlook.com [40.107.7.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E65C9A6; Mon, 7 Aug 2023 09:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BmLcwE/l8JgNTDb6drDZuWhNkVM8B77LfOZKkDIXVxJqAk3k5Up4rxcWiZl56ssNOhR8j4pRbMHzUVrw102zs1tpZ0LXTS3NmBOBck284ZEMViWvzUiZG2Q+Kdzi/LMCGUZosoPW2V5tQ7JgF/D8Ruj4mUyxqhg9rGVCqshjPkUScOBHAaasRayYcktkGHAIDs4ZLRdJiHmTCxNxcANGRpRW9FJQfY/MZ9HsDaTBQUg0UQovK/0AgY0c5ITaztDbqTjPVA722NG6x6i2sCM3BJKAbv4xGXiwI3fR0+aQjK71VrbxH+mXuDdLYn7SiPNflDIMs1xa/aN7Pzkc7edJdw== 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=x909Zqj0hdrgfJH0h6fYkvizC0YoU2vAXBTQu1yL+3k=; b=dhtyFXz0Le90ii5ABPAqoW9WjlgSMb16NjuaAnuLEcC1TRXNMzzQcJofpdRAgkN4VCfhkBbuZQEYrY+H0a6WHmaNS5WCmVx1sTc1Llig/rfUSuxSCMTbK0HGb/I/UsqLOOshOBa3v1/ckBtL+hyDaEqnKI4lh/KohblcZryHn0LLlasYYNlIhoh96JUSgFDO5uw75dZqfs3ovcmijSycYFCFwaZ8fAZQj2qyK20C7OODeVCOz1lfkQuwiseTi8Y1wP/8eHi73K59FS6VJ0V99auOEoY4JVLq5zJeYwQQ+yFPb8bGagpFrhQKBT3qaKi0L1s1yL5LoNnXvv6wHqcnfQ== 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=x909Zqj0hdrgfJH0h6fYkvizC0YoU2vAXBTQu1yL+3k=; b=TkQ+lUtXMb3hwek6WAulVwEzWdpSQyZVAmPwp2GF0yDbtLAmXL6bFpZoMjIrxkcOJJmzf1TwIRkB6OjLPEsZFRvmIvwMCIT8B1EH+At9y8vNkGN2bVPMDCpsfVFdVvsmQwS0W627pYYlMoKtArMHAy9/kz0QO/PFi+KOlnp5A8k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by DBAPR04MB7318.eurprd04.prod.outlook.com (2603:10a6:10:1ab::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.26; Mon, 7 Aug 2023 16:53:01 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::d0d5:3604:98da:20b1]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::d0d5:3604:98da:20b1%7]) with mapi id 15.20.6652.026; Mon, 7 Aug 2023 16:53:00 +0000 From: Frank Li <Frank.Li@nxp.com> To: helgaas@kernel.org Cc: Frank.li@nxp.com, bhelgaas@google.com, devicetree@vger.kernel.org, gustavo.pimentel@synopsys.com, imx@lists.linux.dev, kw@linux.com, leoyang.li@nxp.com, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lorenzo.pieralisi@arm.com, lpieralisi@kernel.org, mani@kernel.org, manivannan.sadhasivam@linaro.org, minghuan.lian@nxp.com, mingkai.hu@nxp.com, robh+dt@kernel.org, roy.zang@nxp.com, shawnguo@kernel.org, zhiqiang.hou@nxp.com Subject: [PATCH v10 resend 0/3] dwc general suspend/resume functionality Date: Mon, 7 Aug 2023 12:52:35 -0400 Message-Id: <20230807165238.569297-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0093.namprd05.prod.outlook.com (2603:10b6:a03:334::8) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DBAPR04MB7318:EE_ X-MS-Office365-Filtering-Correlation-Id: 22a202f5-0204-4d24-2bfb-08db9766c207 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aBrj6wGfBEyOBSDBXMdc/3MIyRcOkVd4FoBVXwjmI30wTDQe0r0rdAXn1UOYx5YmdYRznR9m49pjpYHItKuI6dxWRq2TkFo9pP8fERQA0R31RxOsX3uriEqmKJg/I9UMWgkmzsdI4iw5IIyTBdEy7zNz43NngH+JUzMzH+hlcEG2tO//C6wyo9fISqX5mkQ28L88P0Yn2ZCI+L6KbuHAFocDhvgaYqBsTvvLDuw6ojzpgtY971SSk4mdFeKcre5Op2p6xOLea/gHWNDYyu9iyP3UFMyTbV24fByfucWq2bp4ZLmvmQ74wlMjkaPa99+8QcznuxM6eZtRkd8QinGNW4/WOl4J7KUzuxxFMM+Y+Y96cDLp3IIBKP1s5kssch6YZHv+Eq/s6IIgqliyCTmWgLl1Ap/seWRTUhv7WdBb9nYn5qVXIXzPS1xir6YxVlEd+ozZB1AAziB6plXBUI0qoIzl+Wx15h1pro8lRKXOz6D/rjL4C6/ByZqNTh3SNGee2g9iqm3AuehlA24N5GcRkvdz4emRstntMAddWKNv/tl5sEMbzddgjzx2AptzNvzCWIJNkKTT6svM/WunuEFmV6MmatBIyyaYcE8aozRy8QfTun5kzjc+l91/JvNshXx0E2UhUtaBq7eupd5l1lo1PQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(376002)(136003)(346002)(39860400002)(451199021)(186006)(1800799003)(2616005)(36756003)(966005)(6512007)(4326008)(316002)(6916009)(86362001)(478600001)(38350700002)(38100700002)(52116002)(6666004)(66946007)(6486002)(66556008)(66476007)(6506007)(41300700001)(1076003)(26005)(15650500001)(8676002)(8936002)(2906002)(83380400001)(7416002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sbUnaQMr6yb784R0AUnOp1glNJ5E840X2omX9OzfBpDbj2H4Zflj8SeVDiMiZlD4LASGOQHcSEAlcK1/V0DLReFUZZ7LQKflPFapfZ8IWD/hcYi/Nx+HAtpbh10QXhLYftnYRz4FgJkIZMbaD9BeDlrI3MJGTp+XTlY4coCoE332MR4L3lL8vuj+XpHMo0nHXusDIYttsORusb0kon+b/cVbc17Ix17xsSpFhKsrGDkOUKOb6lQK/fN0Z/5EszTdbTy/t9WYfrouMUZYT1if1JQVokxAyD/6xAd6okYYtkP5iBK2j8YMafrZyuTjb0xOyDW87fOdPCLmvLRpUlrWmbeMWoe19F5do43AUiN0xToweYvDDTX8oh93OoqWXN2tFO6OSVV9/OEDJVRsR7TRfnxBD1J+tBC4Bw1M/cC+ebwbRW3X8s2cCe1WV0LJExx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NoKIERPSaZz2Bl0gZeC367t3xKs7/0b6mN0r7aKkL47dwQPExIJfS/hc2BmjdUVK5twLLL5VaOcWY7m X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22a202f5-0204-4d24-2bfb-08db9766c207 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2023 16:53:00.2967 (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: g3MXA80IYUKP1HJBPR3e9KEVCs0yCh91ckwQgepHjT73nLX/Unntyh/fmpVLv8wJOyy89lKcSHAXD0XDdpoJUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7318 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773326647329256177 X-GMAIL-MSGID: 1773591346395455377 |
Series |
dwc general suspend/resume functionality
|
|
Message
Frank Li
Aug. 7, 2023, 4:52 p.m. UTC
Change log - Change from v9 to v10 min change according to Mani's feedback Add Mani's ACK tag - Change from v8 to v9 Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202308042251.yGAFqeDw-lkp@intel.com/ - Change from v7 to v8 Add new patch to add common PCIE_PME_TO_L2_TIMEOUT_US define. timeout value using PCIE_PME_TO_L2_TIMEOUT_US. - Chnage from v6 to v7 Remove local varible struct dw_pcie *pci = pcie->pci Change according to Manivannan's feedback remove unused lut_off and lut_base fixed 100 to 1000(for 1ms) using dev_err for timeout refine commit message fix sleep value 100 (should be 1000 for 1ms). use dev_err when timeout - Change from v5 to v6 change to NOIRQ_SYSTEM_SLEEP_PM_OPS to remove #ifdef PM_CONFIG refine commit message change according to Manivannan's comments. remove reduncate step dw_pcie_set_dstate() return 0 when .pme_turn_off is zero call host_deinit() in suspend check .host_deinit and .host_init point before call. - Change from v4 to v5 Closes: https://lore.kernel.org/oe-kbuild-all/202307211904.zExw4Q8H-lkp@intel.com/ - Change from v3 to v4 change according to Manivannan's comments. - change at v2 to v3 Basic rewrite whole patch according rob herry suggestion. put common function into dwc, so more soc can share the same logic. Frank Li (2): PCI: Add macro PCIE_PME_TO_L2_TIMEOUT_US PCI: dwc: Implement general suspend/resume functionality for L2/L3 transitions Hou Zhiqiang (1): PCI: layerscape: Add power management support for ls1028a drivers/pci/controller/dwc/pci-layerscape.c | 130 ++++++++++++++++-- .../pci/controller/dwc/pcie-designware-host.c | 76 ++++++++++ drivers/pci/controller/dwc/pcie-designware.h | 28 ++++ drivers/pci/pci.h | 6 + 4 files changed, 231 insertions(+), 9 deletions(-)