From patchwork Tue Oct 10 15:59:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 13415728 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 718C0CD8CA2 for ; Tue, 10 Oct 2023 15:59:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232923AbjJJP7d (ORCPT ); Tue, 10 Oct 2023 11:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233576AbjJJP7c (ORCPT ); Tue, 10 Oct 2023 11:59:32 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619DAC9 for ; Tue, 10 Oct 2023 08:59:30 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6c49f781855so3941604a34.3 for ; Tue, 10 Oct 2023 08:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696953569; x=1697558369; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Av9vrNBattNw+30gbnF49RgNFJElqwcfnE+Y8ALKtNU=; b=tyTnUjzUXkoTDabypL6Vmrvdt3APEQTv589f/K8UN4okPW+iiznTzzYHewMNKF+b+C vNrS20uqumXnWz4rNix1ZAIP2x2msJGeZK3v8Qh/FJ5/inqjQ36tuEYGlOIRCL7lpUYf n4B0U9QvvckGC4FpAR3yKQin7gL0SwQUzdW/JB3StH5QW4oLQvwxObqKWkKtAXuNKYsP VriflfLbUwel7rIJvI82NsGRiShBkEpH2dGGIAglGfJSfgb922F1KUOL/JtGfAXq+bmX BYStxTkb3QnuH8DpkHsfoYxr9bz10ypYTugPB3v7m1AIE75evAjYWQ4xBVXM70CVV6XO rm6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696953569; x=1697558369; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Av9vrNBattNw+30gbnF49RgNFJElqwcfnE+Y8ALKtNU=; b=kDMcPfVzD1YoFD6qoVId1EfKsF6N0r39OsIsFHO4JcVSSoiK2+W2dtN3q8duvr0gm8 J5ZX90gDFfcy55Dr0lVOSV887NGmQ7CHMfJjkVomEiRJFnUx+YYW93ejtVcyzaCF0HSz hEcR/gFG1QQK+NbHdhxQ9LTBVkai4q2ladnNKvFw6qngKMbNIdHhBKBdHxIvbBxS045w v3xiCKPObxIazg4DkIoGITgecmCRG96lx+kvoesHAT7ClnGBh4u8bd6VxRyiGaeobhPN L7Ii315xj/S/q8Jiyh2JNCvKihnK1grtbB91bx5s3Fs8YgDU0Amk5vgq3OCtm+7a0/GH NLqA== X-Gm-Message-State: AOJu0YxoqYcIP4Otbp6FNWXLsJzR9GptxhgDKwVRij1EnR31RhXjgkHT V8sFz3MLwMrYAT8Dp09ABcXO X-Google-Smtp-Source: AGHT+IFkjPrgqxC2sO9tb7GFo/gxS/EJyf+37LvD+BQzNwDAPFoIFw9a1dGFeQ+f1j5dO4/j4mkyBw== X-Received: by 2002:a05:6830:606:b0:6b9:68fb:5a28 with SMTP id w6-20020a056830060600b006b968fb5a28mr20995634oti.27.1696953569609; Tue, 10 Oct 2023 08:59:29 -0700 (PDT) Received: from localhost.localdomain ([117.217.182.234]) by smtp.gmail.com with ESMTPSA id c24-20020a637258000000b0055c178a8df1sm6537023pgn.94.2023.10.10.08.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 08:59:29 -0700 (PDT) From: Manivannan Sadhasivam To: lpieralisi@kernel.org, kw@linux.com, bhelgaas@google.com Cc: robh@kernel.org, gustavo.pimentel@synopsys.com, jingoohan1@gmail.com, andersson@kernel.org, konrad.dybcio@linaro.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v2 0/2] PCI: qcom: Enable ASPM on host bridge and devices Date: Tue, 10 Oct 2023 21:29:12 +0530 Message-Id: <20231010155914.9516-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hi, This series enables ASPM by default on the host bridge and devices of selected Qcom platforms. The motivation behind enabling ASPM in the controller driver is provided in the commit message of patch 2/2. This series has been tested on SC8280-CRD and Lenovo Thinkpad X13s laptop and it helped save ~0.6W of power during runtime. - Mani Changes in v2: * Rebased on top of v6.6-rc1 Manivannan Sadhasivam (2): PCI: dwc: Add host_post_init() callback PCI: qcom: Enable ASPM for platforms supporting 1.9.0 ops .../pci/controller/dwc/pcie-designware-host.c | 3 ++ drivers/pci/controller/dwc/pcie-designware.h | 1 + drivers/pci/controller/dwc/pcie-qcom.c | 28 +++++++++++++++++++ 3 files changed, 32 insertions(+)