Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp821073rba; Wed, 27 Mar 2024 12:49:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUO5tF12S5B6mDJlzrOIJ+3AuSHMbzCN+HV15023mkOS+/vJUl/MX9YiEjwS+GTJSy3W2g5KrCDFMmyMXzmhhX7eMbpMwJoutqocoKZSw== X-Google-Smtp-Source: AGHT+IE6OJ6LQfTIZyYT3WuFQUHcUleEqqH2lg7lyuPy/9DlT7nDvGngGhEzpCSkQapMyaKzw4v0 X-Received: by 2002:a05:6358:b001:b0:17c:308e:2154 with SMTP id l1-20020a056358b00100b0017c308e2154mr367546rwn.18.1711568969089; Wed, 27 Mar 2024 12:49:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711568969; cv=pass; d=google.com; s=arc-20160816; b=q7y1YX72iS9l6GPsUvXGcn1agRiuVbz4VM4WK82wi2AL+6vWwP4+x+eab8FR8AROSM kDbSGKRkJ8K9MXZFNmAcu6bVu+USBbfrOuJrqEs/iyxpiXYK2sDaHwWP+KNVp75HFZTq vHXG3qhLh268r99IivqmLXS6guYWdNvnO0KwMqmEgpIeHbOfuL5BipJ5CWiJib23kw05 oJXvqeGE/U3qznTBn32iy55zagLg6WxQcKR/jfBwmTPfNzHpTzzyuKv5eATDDKsz7WlS NsXsXg99hnWUR6q+t+8rpba7JLNZVezW93rt8KskW0hIrGd9gf5Uz3NV0Ek6yK9hgQjp zo4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=NrM6H3f/CVd7EVIzLnLM60MDR7BLmyLxovfihEFCOqQ=; fh=7L1MzSlBMbMMQ6pfNHO8S7x+mEM+s+Zc7L6ByF61Ukc=; b=geciN8VqaCJOPomJ+ykrOEHh0gfb9S2GqIczeQELGsVNEpkmU26FeVcuyfQueEBCBD Run4Kt/71Jyg2rlHFCEun8DkyPX7B/YJ50Dr/sxw8fiOFy7h8KrcxAH0IgVKJkn0B1c8 dG4CzYpG0P72FUK1Zl/7NMg3eJu+yOJb7XhJYtPhn4Jg+hLq1xWh882iQPKitoyqCleH WrPtOgncPiLoMjY6tQn6HQnIC1/GKas6k5SckvjcAH6Bh0PMW+0Ii3/Fym2BJRaIR1Bs GqOc8+jYvOB0+r6p0Jpb7zEDHS68yqx3gdxS/Y8Z1Gro9oXkSNKk/VQja3q2NmIwVawk kp5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Iw89/Rzp"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-121923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g192-20020a636bc9000000b005dc90546100si12039280pgc.295.2024.03.27.12.49.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 12:49:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Iw89/Rzp"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-121923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B7B1729DD23 for ; Wed, 27 Mar 2024 19:49:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8600B152539; Wed, 27 Mar 2024 19:49:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Iw89/Rzp" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDC0015218E for ; Wed, 27 Mar 2024 19:49:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711568961; cv=none; b=Oqu/PsRoFylcdZsImRb9zdcdj/XTPB1DD9Kx6W/9ATNplkLnaI4k56/KA60rRQ6dgWYoCS7kdYub/jSb353SZAbvQIl8FKZAx0sxc/ayADXtmSo8wqCRbJCEUHG82w1DGUUI1fAsL+q7icB6m114aGOmDAW2KUPuZcG4K4P+ch4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711568961; c=relaxed/simple; bh=bAoVUdOEl5oXBjR4tVelpCyD6CLDNyMZESd4YDrAuM8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=loSZXakP7d3RprC8XzFNR+z0qG0pYEBqpJRLov3g3oKoywNg2Faa+RXxkNXnWO1f8o+ghhunUSY8B0Z8iVZsFSnmNPTw5wVOFyezAhHHrAFl+TxzHBUZgQpj3JjDIZfrym5BiMBPWmnbmWpSK5JB9KRIyHHWrmYxr5x8TRgyMfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Iw89/Rzp; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2d6ff0422a2so1892051fa.2 for ; Wed, 27 Mar 2024 12:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711568957; x=1712173757; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=NrM6H3f/CVd7EVIzLnLM60MDR7BLmyLxovfihEFCOqQ=; b=Iw89/RzpO8hhweIpjfpc1ZtMetOrHCUa3bxOUXQroCfUMUZL+WLvXFM1p05D7stQCc UcHlv4Q9tVeQDmzsNA3/OIj/DAPtryYRY8dN//gwCS96FFhbKxQ5T5hVyPloJw3/QN1q JCjUYtJPg0SFRdXzeJP5NdCTcFwFeVuCEQ4cMgs9ql+zQf/G37tCAjxyta8xz/oWn7gE yq5fmXNlTATX0IOoWQAXW2/AHV6DKNjFfL5tGUnsSsqJOiIZL8oCMcAjLMExlf+9KO1g dUYrt1hO9vZCkz6lDG9RfiKXo2e2i7XJAyWtXjlOM0AO+pyBREbSjL+kuZQLGM9SjjEu VlJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711568957; x=1712173757; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NrM6H3f/CVd7EVIzLnLM60MDR7BLmyLxovfihEFCOqQ=; b=mWGO718xKS9r/Z6wGAwQAISKkNfoG9ysNQyRDF32nx3S3TZV/3eIuag4pDvVlKdqIr iOE2a/Aj9fGNZ/zvVS+q6mubRNQe1k9PN5rgYtz05UgwIHDAqI1lrLJ4CMSy32CRSDkM whiFciRRpzOHI+88MGsg83nIm0XQNXIaD9SECrC0VSQcKHg+VB8GqCWJGu7Tq8lhyfAr hq0sEnwMqdiR6vOc0vPzIIeco1DuXXiPCSlOz3J7dT+V9tmH47KsLkajgCgxg1zmylUi ceUjPxe//LJAOsCUBRrXEdYfVOKXRUKU97dsVkygEIS0cwmFr9LqRqH+PQJs5DXarbut MnRg== X-Forwarded-Encrypted: i=1; AJvYcCUDfIFqaoZDuSsou0EKDXWYOZzEV1q44R4RNDQt5L/AAh4BLPQtgMBdj1pNj/xoUnJShL3cB33r4lWjdF1/N4XIRLY3xjopGygOFgE4 X-Gm-Message-State: AOJu0YyBty5pfPD0e8kURwCD6A2tF1QIP7cmsrQNePI5e0DA0WJ4gh9m XuY8Pc5DXssWpQd8lQquOoFnzGMw8Y3dNCyJIQtf2fuu/4mNiUqkU30tznarcfw= X-Received: by 2002:a05:6512:311a:b0:512:d877:df6f with SMTP id n26-20020a056512311a00b00512d877df6fmr275280lfb.2.1711568956742; Wed, 27 Mar 2024 12:49:16 -0700 (PDT) Received: from [192.168.92.47] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id jw22-20020a170906e95600b00a4e0ce293cfsm582147ejb.41.2024.03.27.12.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 12:49:16 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH v3 0/2] Qualcomm PCIe RC shutdown & reinit Date: Wed, 27 Mar 2024 20:49:07 +0100 Message-Id: <20240210-topic-8280_pcie-v3-0-ee7af6f892a0@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADN4BGYC/3WNywqDMBBFf0Vm3ZRxfBC76n8UKTYddaCYMBFpk fx7U/ddngP33B0iq3CES7GD8iZR/JKhOhXg5mGZ2MgzMxBSjVSiWX0QZyxZvAcnbFxXj40tG4v UQV4F5VHeR/HWZ54lrl4/x8FGP/u/tZFBUzoe60eLrbXV9SXLoP7sdYI+pfQFNGf5eq8AAAA= To: Bjorn Andersson , Manivannan Sadhasivam , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Philipp Zabel Cc: linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Marijn Suijten , Konrad Dybcio , Bjorn Andersson X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711568954; l=1416; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=bAoVUdOEl5oXBjR4tVelpCyD6CLDNyMZESd4YDrAuM8=; b=0Wa0d33D2z4AXCaHfFMONDdw/s4pXtOxIYRBCKa+l2mDNrEe1dXZ2x4VpPs+QKubuqUO4zDw4 J+aFHTa71ZWC0yeleA69D3GRvDP+xm7MBIpGVj1ore3l/zyBouzjUIO X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Changes in v3: - Drop "Read back PARF_LTSSM register" - Drop unnecessary inclusion of qcom,rpm-icc.h - Fix a couple of commit msg typos - Rebase, resolve some conflicts - Link to v2: https://lore.kernel.org/r/20240210-topic-8280_pcie-v2-0-1cef4b606883@linaro.org Qualcomm PCIe RC shutdown & reinit This series implements shutdown & reinitialization of the PCIe RC on system suspend. Tested on 8280-crd. Changes in v2: * Rebase * Get rid of "Cache last icc bandwidth", use icc_enable instead * Don't permanently assert reset on clk enable fail in "Reshuffle reset.." * Drop fixes tag in "Reshuffle reset.." * Improve commit messages of "Reshuffle reset.." and "Implement RC shutdown.." * Only set icc tag on RPMh SoCs * Pick up rb Link to v1: https://lore.kernel.org/linux-arm-msm/20231227-topic-8280_pcie-v1-0-095491baf9e4@linaro.org/ Signed-off-by: Konrad Dybcio --- Konrad Dybcio (2): PCI: qcom: reshuffle reset logic in 2_7_0 .init PCI: qcom: properly implement RC shutdown/power up drivers/pci/controller/dwc/Kconfig | 1 + drivers/pci/controller/dwc/pcie-qcom.c | 176 ++++++++++++++++++++++++--------- 2 files changed, 133 insertions(+), 44 deletions(-) --- base-commit: 26074e1be23143b2388cacb36166766c235feb7c change-id: 20240210-topic-8280_pcie-c94f58158029 Best regards, -- Konrad Dybcio