From patchwork Fri Oct 20 06:43:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 13430114 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 0DB1ECDB47E for ; Fri, 20 Oct 2023 06:43:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376358AbjJTGn4 (ORCPT ); Fri, 20 Oct 2023 02:43:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376404AbjJTGnq (ORCPT ); Fri, 20 Oct 2023 02:43:46 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF8321702 for ; Thu, 19 Oct 2023 23:43:40 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6b5cac99cfdso457575b3a.2 for ; Thu, 19 Oct 2023 23:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697784218; x=1698389018; 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=pEwVus5XvQXwUGCOydC4RAlcfZ2CojyENWsg8dWDU3s=; b=F5uTJgTsFd5Acm5svVRhh9mj9M5tTCgpja2N9TmumMjRHIqTrc+52J6gyhYwp5ZotQ D5r/Jwwy1krSbI62l9nxPMGNs8VmisJAtOJ2UVKdXrgAd/nWsXMoXrdcUBhHJvaZqSre EDiZV4fVbSuAAS09QsJtnT8GfyQaNeUCS6+y3O5yoTrxWr13neZg1VcPZb/IFuI4Athe 6mYYj2dz/pMpz11dM2SpSXJ4yOJmQqmL4Eb0FVMC90lSCBJZwZXu76gdl/aPi7o3CcWV jUyI54RwTK/6T03wuziXpaw4yQMI2Ov6Z2Mj1qaZ4Wa8gjz7O1VJM6xQpHCj7PJOFxvY LW7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697784218; x=1698389018; 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=pEwVus5XvQXwUGCOydC4RAlcfZ2CojyENWsg8dWDU3s=; b=fE76he3Xpg/f4RYlngU3EWBRcGFu5iJXprBXteAN6G5z8I+zRGHloSoSkyUGBTyi4M PfSr+dPvtV3JD7QlYiHm9vhyjOy42S9WWNPa2VlFtQ3fhF3ryhkZ7QR6rqexaDM8y1pr taB7JH+lLD0ppuhLd/wjCORFeQwdkF/XqaFjPg2+UcVn8yBo4MaCrMMpKavveB3l3j3s 4zP/GLObRfZN+h/NClo50WCxgek1rKC3eYs2YAfiI4iZa41x3PMVt/2ThUKysvPDNLQ1 vSkFAWfFyhO9nicdbuDlVoPt4qVdwEdwQxhCt0I9/XcLf91jMfVP1gq/SkGYEteu1KYJ Z3NA== X-Gm-Message-State: AOJu0Yxih6PL0rpNFx9vOzCyRVHjSH9kPKkXpr5RzIrXlchqmgXvwsNI Yadvjd2B9fMkdkyXqLXjTKJpA4OLM/ceaINiKQ== X-Google-Smtp-Source: AGHT+IFeo3A6P9pO1D1HESH/wOEvj79dotcoIf0X4u1+13wKZ/c92Vv0AIBsdq41wuFk9DlchgeWFw== X-Received: by 2002:a05:6a20:258b:b0:15e:bb88:b771 with SMTP id k11-20020a056a20258b00b0015ebb88b771mr777794pzd.37.1697784218229; Thu, 19 Oct 2023 23:43:38 -0700 (PDT) Received: from localhost.localdomain ([117.202.186.40]) by smtp.gmail.com with ESMTPSA id t3-20020a170902bc4300b001c60ba709b7sm760951plz.125.2023.10.19.23.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 23:43:37 -0700 (PDT) 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, vidyas@nvidia.com, Manivannan Sadhasivam Subject: [PATCH v6 0/3] PCI: designware-ep: Fix DBI access before core init Date: Fri, 20 Oct 2023 12:13:17 +0530 Message-Id: <20231020064320.5302-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 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 with other work and didn't respond to my queries [2], I took the previous series, rebased it on top of pci/next (6e2fca71e187), removed ep_init_late() callback as it is no longer necessary and posted v6. I've also kept the Ack given by Jingoo Han for patch 1/3 as there is no drastic change. 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 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]. Vidya Sagar (3): PCI: designware-ep: Fix DBI access before core init PCI: qcom-ep: Refactor EP initialization completion PCI: tegra194: Refactor EP initialization completion .../pci/controller/dwc/pcie-designware-ep.c | 142 +++++++++++------- drivers/pci/controller/dwc/pcie-designware.h | 9 +- drivers/pci/controller/dwc/pcie-qcom-ep.c | 4 +- drivers/pci/controller/dwc/pcie-tegra194.c | 4 +- 4 files changed, 89 insertions(+), 70 deletions(-) base-commit: 6e2fca71e187932281c7bf4faed1b40e6d9627d6