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: 731491 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 88BA5CD8CA5 for ; Tue, 10 Oct 2023 15:59:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233604AbjJJP7d (ORCPT ); Tue, 10 Oct 2023 11:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233478AbjJJP7c (ORCPT ); Tue, 10 Oct 2023 11:59:32 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BDDDC4 for ; Tue, 10 Oct 2023 08:59:30 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-6c4e30a3604so3948189a34.2 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=ULWlNqMkBSSE6kmSgjHp9lxnhq7Nrah7m3xs0g9q4kUG4T0dn4bhqX14Pqet00xBJq j/nxLoo8SEL+xbC9BA5HuZHUcGCbPzA2Y2AB5pVerLOXmrz8hq2W4TGJYayK8w84DnNd z0tXjSqBUGg7WYFdyNTsXkG6YhmAu8MNwxxqzTTJ70UwHNkfvSOmwyG5+UVHY9wGcXQ9 igRg6RImB8jcN4qLxH4Qkxd4/cJbi7/HKB2OWnNEDANnLkfPNMof2JgqR1Os3baCFZff EGpiS6whetN3/7ahUM4iw7Tz1eq4RvjIfEUO3eU7+iM7K5LbPyb3X2LWf8kDJhxqhabO cUzw== X-Gm-Message-State: AOJu0YxyzhSzuFIy415Mnc3y04E8ffEd1FIFg7xsnFDWJhVflCvxsAfP sZdsy3FXT+eQkzxpamgdhjw2 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-arm-msm@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(+)