Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2073536rdb; Mon, 20 Nov 2023 00:41:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/8VGvYVSgUxVM6WSGzJOMIcOhXdZixhCVoAYI1d1kAkJHDjB3F0/6YS0eWT8yxsbh5Anx X-Received: by 2002:a17:90a:f181:b0:280:125:e52e with SMTP id bv1-20020a17090af18100b002800125e52emr6869528pjb.35.1700469700073; Mon, 20 Nov 2023 00:41:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700469700; cv=none; d=google.com; s=arc-20160816; b=U6EW+atJ5EyArzCasS69/lVcdNhAOCZCcW60vIeuLAMhSByHV2Dj94pGXK30r46Z94 Dbmh2Def5eJ0MMHigizUMd3MFDFzHNJ81SvU3BBekHCZjS4hTEozvt/vuAPi09OU41VY LfSevfc4gQ1twblaJ6CgsHg7Dt5BaeNflcjtqq5TDck7nobWGcMi2gXWNoLwEdAF1M2E ix6arGuY+qdgN/8y/fwyZCTyasp16tXce/QuDqt1cdf5Hf7c/BNSZ0wqJ673rYZpJgF/ STeDGEjHr/nHtJSszMZaLdaBnUiVAykGGr2ME/Tzoj+cJnI9yqh8afjQUHMj27n5UMUB YShQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=q1l7DrgcLu7VXd3X25X1T1+EEwHez3TAITsgaEsk2/c=; fh=gjmJgKFr+boVZziOEFxwCGrycrT8z84cdmTZeCGJbZQ=; b=RBaQ4PLt+yzApPBo8dGB3nHAPlfwYw1LKijAYywMcgxZlgJMjbwYdjqIlmnXx5Bhox hM+sxxKURzgkGehTsS3ICg4VIN1w0Tis36b6yuYN6xNLG/7CahtlRW/HDO8oGnjj42xH HLP8TZ6i8r7xhFI7eJxC07UlyMkML45nYNj2ik5SPT5fzzPPD9GBsRP4AmXfWK/Qs6tV UBcipeEWiwmdCrrg8+sZ878wxyH/do+QGE8mQsS/N7wTtMZJJcE6cy3iMzip+UmKJdRV /P9BoSxzg6eui5tQ+H2fA/6BhQ9peNQcukMg78Hc7P5MsZHdD6QD6M1oWannRvouAsxz Ddcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=szbEyj2H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f64-20020a17090a704600b00280be13ffa9si7651133pjk.132.2023.11.20.00.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 00:41:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=szbEyj2H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 71EDF807C84E; Mon, 20 Nov 2023 00:40:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232222AbjKTIkf (ORCPT + 99 others); Mon, 20 Nov 2023 03:40:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232211AbjKTIke (ORCPT ); Mon, 20 Nov 2023 03:40:34 -0500 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B8DB90 for ; Mon, 20 Nov 2023 00:40:30 -0800 (PST) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6ba54c3ed97so4276040b3a.2 for ; Mon, 20 Nov 2023 00:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700469629; x=1701074429; 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=q1l7DrgcLu7VXd3X25X1T1+EEwHez3TAITsgaEsk2/c=; b=szbEyj2HT6h+dB9Q2jnR57VzvzY3z73WCtWa05aGwZWqjIGJ00aayT4yDKyRey6rLb l8dlFP83N846R5EhEfyvG0iWme/jNkFP1WmWcg54EcLzfR4xjma1tY/hznnO4sJk1ci+ ce6TkPQP91GhPlPrXIvopW2Jz5+h8DdqDKz5vphbSzpG0xZxjNgqNvB1Jl4GCS+VQegj CM+fJqy+Le5r0LWdBS3GrwjXRDeUzB9tZYn6RhDFdgzwz92BkKhArDAI8/q1R2nVGe/U iLA2Yc/EqUeAu73D6Os86xkfFhgTaQALDhW6oE6b6ugfFqHygBjQ9Qrrz9VwzDWn09NQ +8Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700469629; x=1701074429; 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=q1l7DrgcLu7VXd3X25X1T1+EEwHez3TAITsgaEsk2/c=; b=oUF+VHCKMORqIDpIMJJ1m5jeldwtFvWSD6KR4orY1Cxq5WVuC55/svDB6D1cnpQ7l4 hPM+YvfKyxsKzpa6hBvVz+YzLVK61sNvQY58emNw0IetEzd4rO7EU/PtFz9522ncu8hW gqpl+4riLSX1oH9pxv5oNOBiBVi0kYD+Nh9yl8oCSv6pvpKNpjG1sQ2j/eKHNy4Zs1W9 jhWcmV9DoNK/LJ7GL1g2ACstyWoyGA5HrkWXSbfTZkq47gNeqLahAqlWofGzs0wO2zPV wdYlZ1A4rusgofPtpPrM6PakuOSzgVONHKFjE+8Dc0ZHaymRKfL31/LkxBvxXFQfowgC k+GQ== X-Gm-Message-State: AOJu0YzWfI3E0Vxef83uFr1SMAaTBoR8qhzdItZVPJt5+2+mFBsxiQpz uCGezh08Bs5Q+sKFRCHpJ13V X-Received: by 2002:a05:6a00:6c83:b0:6be:130a:22a0 with SMTP id jc3-20020a056a006c8300b006be130a22a0mr9695978pfb.14.1700469629585; Mon, 20 Nov 2023 00:40:29 -0800 (PST) Received: from localhost.localdomain ([117.248.2.5]) by smtp.gmail.com with ESMTPSA id e24-20020a62ee18000000b00694ebe2b0d4sm5567019pfi.191.2023.11.20.00.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 00:40:28 -0800 (PST) From: Manivannan Sadhasivam To: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_bjorande@quicinc.com, fancer.lancer@gmail.com, vidyas@nvidia.com, Manivannan Sadhasivam Subject: [PATCH v7 0/2] PCI: designware-ep: Fix DBI access before core init Date: Mon, 20 Nov 2023 14:10:12 +0530 Message-Id: <20231120084014.108274-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, 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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 00:40:39 -0800 (PST) Hello, This series is the continuation of previous work by Vidya Sagar [1] to fix the issues related to accessing DBI register space before completing the core initialization in some EP platforms like Tegra194/234 and Qcom SM8450. Since Vidya is busy, I took over the series based on his consent (off-list discussion). I've reworked the series in v7 to make it bisect friendly, and also to avoid build issue with the dependency. This resulted in the patches being heavily modified, so I took over the authorship of the patches. Testing ======= I've tested the series on Qcom SM8450 based dev board. I also expect it to work on Tegra platforms as well but it'd be good if Vidya or someone could test it. - Mani [1] https://lore.kernel.org/linux-pci/20221013175712.7539-1-vidyas@nvidia.com/ [2] https://lore.kernel.org/linux-pci/20230825123843.GD6005@thinkpad/ Changes in v7: - Rebased on top of v6.7-rc1 - Kept the current dw_pcie_ep_init_complete() API instead of renaming it to dw_pcie_ep_init_late(), since changing the name causes a slight ambiguity. - Splitted the change that moves pci_epc_init_notify() inside dw_pcie_ep_init_notify() to help bisecting and also to avoid build issue. - Added a new patch that moves pci_epc_init_notify() inside dw_pcie_ep_init_notify(). - Took over the authorship and dropped the previous Ack as the patches are heavily modified. Changes in v6: - Rebased on top of pci/next (6e2fca71e187) - removed ep_init_late() callback as it is no longer necessary For previous changelog, please refer [1]. Manivannan Sadhasivam (2): PCI: designware-ep: Fix DBI access before core init PCI: designware-ep: Move pci_epc_init_notify() inside dw_pcie_ep_init_complete() .../pci/controller/dwc/pcie-designware-ep.c | 149 +++++++++++------- drivers/pci/controller/dwc/pcie-designware.h | 5 - drivers/pci/controller/dwc/pcie-qcom-ep.c | 2 - drivers/pci/controller/dwc/pcie-tegra194.c | 2 - 4 files changed, 93 insertions(+), 65 deletions(-) -- 2.25.1