Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2543018rda; Wed, 25 Oct 2023 06:02:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHorKgm3TjHMto3lTZDUJA1p74x39T7CC5IGA69Zsq4uxzWxzqNLrTZu0gU9yNXV0rvniXg X-Received: by 2002:a81:5c8a:0:b0:592:a65d:387c with SMTP id q132-20020a815c8a000000b00592a65d387cmr14150909ywb.52.1698238928383; Wed, 25 Oct 2023 06:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698238928; cv=none; d=google.com; s=arc-20160816; b=mNbwsvCAs+YkcDALLVr0Lqz7/x+7R8WWrgD6lTNAsi7nxV4QThW/vYPvNISWYmhHoN LyFjN5KW0jTL5CU9ug57z4HrvLTfGHe+b/zSkDEU92cWawLSXVHdGYK+3bwBEfeAYu/x DloQNvpwp+DwE7rQ48Kcv+FiKGoCu8X98h1Zc1XyyFOo+2zoUMtb6LPlhAoTyrupDvsk BC0smvoj7cJOYOL3N3d24Ov0NswdNX35FSJuZQfdukwiUgZNp+YNJ2WTrVfc8QD9E9uh pCnr4lY4s+WCzxS3XtAXi8QaEPU4kYakqRLSfzx+a7PhIt25w2S412OqjIjP4/KaU46y GdGQ== 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=MFTOgl/kJhR2WRDXW1Ma6mhbjE5SivocVIxvRqaPado=; fh=QZAvh6sP9FrO10CuWxhItxzCxY73xk15MQYzORbvGUk=; b=bScEsfRjCYp/xQJV8wXesWMDUG9aRLX7DcTwKxBsXUw1GkRWouaXlMu2hwg3R9oANB Cg/SpKAbi9TXgFbCUfCb5X2Wrh67rkkToBJR4i9nBTS7Cx4utihhDQGJcxqf8RjoGoiP /X85IH+XL45UIStxOQ+iA0JtheZuoDGYcc5MqmHve6YbSCt76aCrZBV7bjK9pgA/HuWO DDhp01YKBJjCip/pwH6nqlR6pYjrIWT4+8liUE3IuXAc/R5OOnWNZQ3lfQBSzeZLl8CG PrGiTykFNHlJybLYekDqSW+FepZWM3PhmWCT44o98KXFyslWqKEG9OIN72tcCudWMo1e 83rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QTZwXkih; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d140-20020a0ddb92000000b005a7bfed398fsi10327833ywe.48.2023.10.25.06.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 06:02:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QTZwXkih; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 3BDB88082DF5; Wed, 25 Oct 2023 06:00:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344318AbjJYNAl (ORCPT + 99 others); Wed, 25 Oct 2023 09:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234957AbjJYNAj (ORCPT ); Wed, 25 Oct 2023 09:00:39 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF523116 for ; Wed, 25 Oct 2023 06:00:36 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5ab53b230f1so3666025a12.3 for ; Wed, 25 Oct 2023 06:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698238836; x=1698843636; 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=MFTOgl/kJhR2WRDXW1Ma6mhbjE5SivocVIxvRqaPado=; b=QTZwXkih+fea6Z7i4YkQAN9CxV4DCNBm/o3WVzQ+VTI0SwddPgG46gnhsJjAHosQ0L /XMmUIKUEL/j9R3ay4vjpmQ2vuLyQ7eUPS3y9qvsyZj/p51RQ5FlL4yq56hKcS6I5Mrl nPTr9yGYmQy7cJQ1mkTQntnCzqz0UGDlhBebJeLwUxP4ZXrw432qzy+PbIscaWBOIPit jrtDbiIgO9sHC2hmSlDs8yKT/c0ytMn/CCQWXL2IqyDzss3nLREE+6E1BwpajHAsFMfo o316QyEOrOBCCAe5E+m11TcCx9NMVjtp31ZcQfg+ddtv1kPkZVvdhYp9yR68bxZWbOUP 7D0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698238836; x=1698843636; 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=MFTOgl/kJhR2WRDXW1Ma6mhbjE5SivocVIxvRqaPado=; b=vRb1j3I3314QDP7CrI/QdRICLqhfmbbm3x5AxGj6wpraYezMelImdAbmFEd9JlKe53 KlrECRZrxglALsGgTLlVo6qrqN6JC5ww86OIoVEWEcoGW8k/SDgOQmX119nXAzdXLiFo C6DjbuOBsi+2rv9R8mlo57NAWUbRajIeeoj1deZMjJIftpWMEcFIZqVd4BKhDD3UngHe hANPTbn1I6DuSqYqI/GRstDjx5ylGKmpKXVj+WmoQAM2Z2NVurCU8X/kdK0nbYs9Rhnv A9dXb/9xRfaPuNbTy6Y2H82mP9MgDYLMmWJJu+CW4021nf48THP3vS+8ihGLiDCSzCUP RijQ== X-Gm-Message-State: AOJu0YwTTA6dHjHwSlXT5qi0pCCJLLSerTmEqpm/RfgCZIhaC0Vn8cnt XDxCQOOyibOMKgjenHS2CaNw X-Received: by 2002:a05:6a20:3c90:b0:17a:fcda:4a6b with SMTP id b16-20020a056a203c9000b0017afcda4a6bmr6495949pzj.13.1698238835866; Wed, 25 Oct 2023 06:00:35 -0700 (PDT) Received: from localhost.localdomain ([103.28.246.120]) by smtp.gmail.com with ESMTPSA id n11-20020aa7984b000000b00690d4464b95sm9616304pfq.16.2023.10.25.06.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 06:00:35 -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, quic_bjorande@quicinc.com, fancer.lancer@gmail.com, Manivannan Sadhasivam Subject: [PATCH v2 0/1] PCI: qcom-ep: Fix the BAR size programming Date: Wed, 25 Oct 2023 18:30:28 +0530 Message-Id: <20231025130029.74693-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=1.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 06:00:55 -0700 (PDT) X-Spam-Level: * Hello, This series fixes the issue seen on Qcom EP platforms implementing the DWC core while setting the BAR size. Currently, whatever the BAR size getting programmed through pci_epc_set_bar() on the EP side is not reflected on the host side during enumeration. Debugging that issue revealed that the DWC Spec mandates asserting the DBI CS2 register in addition to DBI CS while programming some read only and shadow registers. So on the Qcom EP platforms, the driver needs to assert DBI_CS2 in ELBI region before writing DBI2 registers and deassert it once done. This is done by implementing the write_dbi2() callback exposed by the DWC core driver in the Qcom PCIe EP driver. This series has been tested on Qcom SM8450 based development platform. - Mani Changes in v2: - Switch to write_dbi2() callback as suggested by Sergey Manivannan Sadhasivam (1): PCI: qcom-ep: Implement write_dbi2() callback for writing DBI2 registers properly drivers/pci/controller/dwc/pcie-qcom-ep.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.25.1