Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp406974rdb; Sat, 16 Dec 2023 13:29:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEofVsvrF43YClwevWmlMkZ8cjS1w8qK+L0fdC1prXBW0KLlZJji3vpbgn4jCQSCup47qqD X-Received: by 2002:a05:6808:2201:b0:3b9:f032:e1c with SMTP id bd1-20020a056808220100b003b9f0320e1cmr20825082oib.32.1702762183915; Sat, 16 Dec 2023 13:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702762183; cv=none; d=google.com; s=arc-20160816; b=lCiJcbJaO8Zs4I0RuX9fRZC3KFpqR83HWQoJ4bXnOzXGf9kBMYVJlbAseQ0nlHPOMG DIx+VjKgt1rS2nfBj6UVat15BZ5ebnV7rHwpcvjOUxgt+swGMvvZHoR2gjZ413VTWQlx qWoPEhO63+PLiyMBio92nE3+NUeUAePUCJeYTo45D5MYY4+maa5rCiyGtxZsJsr+gw5A 2RPOE3AaEw+uCTcOPFforLHnwNlHFx90EK5hoqFCp0vx0l211HrUEp45c+3h95hnbM7q r46yZ2vJIJGBBgd4KoqKE55tbnNSG4PZ7TuaUr0NpGllqojKtcDTT5jfbgddiGY+/jR6 seUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=0Z1YEGbMBuLA0v2EdVoA6UHG//mDgq0iVBKq8k5vnhY=; fh=t5L97cxB3C/1gC24uGQXpEQOjJT5Fk/VjTk7/M+W6zY=; b=ms0uUIo5l/DVAf3ctrjDKtRl15y5PskYyNMWXRWWLcY5fB1xzVmFYbTrh5BP8wjvVk pqqmRC/+tjqjKEwGm3LvLWRJ7hbPd4PLiQGtlbUPtv2KfFxbp1kwEzHx25RcFKJRvprl pBBQMw7rWjrL4EMUF6nAEuglqwIpXUHcFQ0LTmF/VcENqBbcUMZMg+SvRuWwP+VcJOl4 ZINs+c3M1DZ77TwIARoG6jgH4iQQA6ggtwbMLyRDEuZU04D8ytJ1RSeFqpoqepHT/r5g dYSiF8tDfz5v8TuXajMPsKqhvxKAGvVlAN02o6A6b0gP4kcaL09TiEAOZhyqfp4O2HX6 bQNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2375-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j9-20020a0ce009000000b0067a98673be5si1318808qvk.126.2023.12.16.13.29.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 13:29:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2375-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2375-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 076D71C21A98 for ; Sat, 16 Dec 2023 21:29:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B032B35298; Sat, 16 Dec 2023 21:29:28 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 DF97A35283; Sat, 16 Dec 2023 21:29:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1d3470496e2so15887495ad.1; Sat, 16 Dec 2023 13:29:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702762161; x=1703366961; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0Z1YEGbMBuLA0v2EdVoA6UHG//mDgq0iVBKq8k5vnhY=; b=xMWxBgMJ8nEfoMzWLhk98Xzn0+1RSFL+4ZYgYzAaZHps9C8waatik2Th4jzHJ3rvGm DRXnd6gT35cnYl4aVAaJHXemivae9yycfFYN43WaqakMuXiQp6qGJX9MIWvNwlNQPUkL Q6CdJc12crQPS5MCeHHL6kqf65ICLksgrU7pY+UNawoHOgWpCWEKxu64yc8+hqRXVmAS cZKfULyChMY+5nKtalek10FpBeOLoS22T1UIIHzVYUppVTpn0GT9BF/mUCx8af9ZuMFf c+zJYXJ8uVlHEWjYS+mqf8e3gJ/IOQOyBrg6e5yfWI4RZlAv91H6wkERVh8vWIEehYTh 2+PQ== X-Gm-Message-State: AOJu0Ywd74DgVbnq553nohy7IVAKp652J3UAQBPZlcBuYxxxD+fXOsii g/mAyv3A7ZF1dCdOec9F7zk= X-Received: by 2002:a17:902:eb88:b0:1d0:265:6a2c with SMTP id q8-20020a170902eb8800b001d002656a2cmr16457609plg.11.1702762161181; Sat, 16 Dec 2023 13:29:21 -0800 (PST) Received: from localhost (fpd11144dd.ap.nuro.jp. [209.17.68.221]) by smtp.gmail.com with ESMTPSA id s14-20020a170902ea0e00b001c88f77a156sm16295157plg.153.2023.12.16.13.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 13:29:20 -0800 (PST) Date: Sun, 17 Dec 2023 06:29:19 +0900 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Manivannan Sadhasivam Cc: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, lpieralisi@kernel.org, robh@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_bjorande@quicinc.com, fancer.lancer@gmail.com Subject: Re: [PATCH v2 0/1] PCI: qcom-ep: Fix the BAR size programming Message-ID: <20231216212919.GA3302836@rocinante> References: <20231025130029.74693-1-manivannan.sadhasivam@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=us-ascii Content-Disposition: inline In-Reply-To: <20231025130029.74693-1-manivannan.sadhasivam@linaro.org> 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. Applied to controller/qcom-ep, thank you! [1/1] PCI: qcom-ep: Add dedicated callback for writing to DBI2 registers https://git.kernel.org/pci/pci/c/a07d2497ed65 Krzysztof