From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45666287265 for ; Sat, 18 Oct 2025 09:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760779584; cv=none; b=YFbb3Pq3mklcRTp8Hc3oNOhdAToU5eN9Yz/Rmvk8CD2wcKfrbAqOvJcozAOWwJ+fmo+AsIl8/gW9h5fbQM6iEPiXwr0UhP1LMAPNlM9Ot3NVuzr10oh20Qq60W4KvwHUMxeuCrv7y6iZ+N3zF3u/DcS6WyhEyahgV90yF/EKjnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760779584; c=relaxed/simple; bh=wMpDMGFQKHxy/NBZclNn31ED1l+VBENotPXsGz0x/mo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PUqni0uqIbt/tiARImgr1GbJJgwbnNED/odI6E8itKUE9h4/4Km0yHguSiqF2OvbTf2FfjDJOMHCZPa08Xyrgx/TTkvhZXIZj2LEj+qhcZgTcwmMnUsrk6AIZRSFI/HsjzS9fXgq+m7qrsNm71IQhycx1mbJULGtFfrEkX5hsHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=IlqmmEAC; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="IlqmmEAC" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 59I7xED8009585 for ; Sat, 18 Oct 2025 09:26:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6xho3cRc1k8Fcl9SOaVvv0V5Pp02f2XuzfHvj1N+8zA=; b=IlqmmEAC+79o/PR4 t33mL4xh7Qw9kJJcWFCUT+VrkxA12XFKRHeomVcfTRjgPIj3IUsTzD8nm8Br/26M gzr3eXL6hW2XCDkg8mL+wtT9V0wyduhVb/Vsl26DGwH4e+bug0GsbL4/O+yYf3Oz 11rs9bJ3uC5zF7XRzALOnWdntxeeO/ioj3UQyOeccwtayaZhLMUlRyhV4X7WMpjv IPSaAJHU0HkG8mrq+QnAENtamqsgLHpI5yYUTxaJ1mMZGJlyvQsnDMU02nBLOm+Z ltBM/O9IFekUSDJyNHcP9UPJQ4K05wf+HrxvwVsCCOb0QIfp5HtLfBslRYp8DSQn IiLRWg== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 49v4698bfv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 18 Oct 2025 09:26:22 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-33bcb779733so1964443a91.3 for ; Sat, 18 Oct 2025 02:26:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760779582; x=1761384382; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6xho3cRc1k8Fcl9SOaVvv0V5Pp02f2XuzfHvj1N+8zA=; b=ru/rK94A25723Fk2RLkpWURoBDvxQ6wkkIrSVRBZH/OryDuMlXrNZJNVjSJHsC9My2 eCoN3pzjSjqSrbhUn+Wf2a2Zh7BUxPcDYl+eldPahSxPdfuFQ6KuSoZScxs+4btcUiD8 NFrMHZxfgwhdeIm0/+b7nuykyMVRCNwbVAq3RaYgPhJ0pKXn8Uxe8cTG8VcsoCvv3K7M EI+2C9bYjuLgf34mc9fYXiGPqwyFVp5f0KKhWuWUpva4tC7LNQZJYUjPywhTxRydGBmG IGrfJixeV9L6OZhzOvHLZY3xV2khpQVhb4fADrv57s/XZW63krAQqxoOISQxFJgUVWg9 a4jA== X-Forwarded-Encrypted: i=1; AJvYcCXxuxfjCj+buQG+XDfp4lUn5BuF25duzl8Dh7i67albePrfXSUwnU+jH6leiqnjfY6+oIciRfy6b8o=@vger.kernel.org X-Gm-Message-State: AOJu0YyOXeO0G8Yj38k42f0uELpo5vI1sYAF60JrnbC1Dp3r0OcBJ7cy DUfHWC7ccXGJyCXuRZcxgOeKoTzCGTeBJQ0fh8c4FzEBbCO61CIdUfWczNDW4Xi66Rk6hUue19X kVt8r5cxpfZeXoRBdIdK3Tilj8/x87iXiJxVypLwjtaIx4JTn14fuicMLfAow22c= X-Gm-Gg: ASbGnctjBBOoPIHTCiLEzgRIzbe6lBS4bxYKLzz7qf+UezXZ+JcMFfkqs/o/EHI+p+L R37Ncd3vviANCNZopng6s5aKoJsv0RRBCxlqHqMepifh19VaVwQWOvmFkxkHAAd/c6vj6kXy5B3 6ReR7l7+c4y1FsBobaMZPTBEec0c9LUcs+PPPKi1IUE5GX4Gm3TPKpHdefLn17NfcW5hFewAF+o stZqVgunTaQsBoDCU8M2EiB5NUvhuQ/dKeb9xgBzGwjLKEPWQBtscmg1UFgIiLcoOh6kaJ+G8dB CFDQadNkauZSpFgy8uNbXbNp2RSiCBs7KypgaGT9ISUIYcL6eCiKMVpFDs9qzBIgarwtJH8+jEh JU1c5PogW4r8TmZPh5LfHpkzjxHSm50DvoMI= X-Received: by 2002:a17:90b:3f10:b0:330:84dc:d11b with SMTP id 98e67ed59e1d1-33bcf8e4e19mr8048568a91.18.1760779581487; Sat, 18 Oct 2025 02:26:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEmESriWFcZzGmtgits2npnFUdruZMy0sc09C2Q2PskZmtfwvW+rj7fVvru8J0S883ilZfAg== X-Received: by 2002:a17:90b:3f10:b0:330:84dc:d11b with SMTP id 98e67ed59e1d1-33bcf8e4e19mr8048549a91.18.1760779581053; Sat, 18 Oct 2025 02:26:21 -0700 (PDT) Received: from [192.168.29.113] ([49.43.226.255]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33d5df9351fsm1952642a91.16.2025.10.18.02.26.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Oct 2025 02:26:20 -0700 (PDT) Message-ID: <26537629-ec3f-42c5-a1d9-ae0a8566c871@oss.qualcomm.com> Date: Sat, 18 Oct 2025 14:56:16 +0530 Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] PCI: dwc: Fix ECAM enablement when used with vendor drivers To: Bjorn Helgaas Cc: Jingoo Han , Manivannan Sadhasivam , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ron Economos References: <20251017215817.GA1047160@bhelgaas> Content-Language: en-US From: Krishna Chaitanya Chundru In-Reply-To: <20251017215817.GA1047160@bhelgaas> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: HiYWooL_KqZ9yP4gvyjPwRdFOxruvWtY X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDE4MDAzMiBTYWx0ZWRfX/ySLDN+83/c/ WSTS2qC4pdWjiHApAoyAmwk0TZU9Ko3CC+LG8Kz2v9gXh6xb4KaNRLITj9LePhf3bNZHPlSxzed edCJ7JcVSAQy7C9vmoU2/SECPEnEVCMjBqeNHvK6fAxe4Fzxqg2h+xxd1C1DyMz5ssB8ExjtNg+ msnH7wfmHeKZqT/v5GQpojI8hwkNZ3OQozlVKmTd/tvcZtzLfJKXJSJWX2v0n5rUpLdZ6iaC9da hRKAkfUbOa5B6qmCwkNJExvKnZ+a5b8wqm2cOke71bJMGHOYxWwAlQHzBdLPBa+EKuSX7Yv/qhN +HzEVbwxpuXpyWTLQ0GFlF5ClyOhIDOc+bo7PYveYU8q6qfmor/kD3GcVNE0UWU00MiLHfq4rFZ 8NJaGoW9yMYQ9wJG7lJ0VbHRzEFeNA== X-Authority-Analysis: v=2.4 cv=U8qfzOru c=1 sm=1 tr=0 ts=68f35d3e cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=r8OtbAjNO6w9l/f+plF4pQ==:17 a=IkcTkHD0fZMA:10 a=x6icFKpwvdMA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=DmEVpG1DHoo6bZaV9IIA:9 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-GUID: HiYWooL_KqZ9yP4gvyjPwRdFOxruvWtY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-18_03,2025-10-13_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 spamscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2510020000 definitions=main-2510180032 On 10/18/2025 3:28 AM, Bjorn Helgaas wrote: > On Fri, Oct 17, 2025 at 05:10:52PM +0530, Krishna Chaitanya Chundru wrote: >> This series addresses issues with ECAM enablement in the DesignWare PCIe >> host controller when used with vendor drivers that rely on the DBI base >> for internal accesses. >> >> The first patch fixes the ECAM logic by introducing a custom PCI ops >> implementation that avoids overwriting the DBI base, ensuring compatibility >> with vendor drivers that expect a stable DBI address. >> >> The second patch reverts Qualcomm-specific ECAM preparation logic that >> is no longer needed due to the updated design. >> >> Signed-off-by: Krishna Chaitanya Chundru >> --- >> Krishna Chaitanya Chundru (2): >> PCI: dwc: Fix ECAM enablement when used with vendor drivers >> PCI: dwc: qcom: Revert "PCI: qcom: Prepare for the DWC ECAM enablement" >> >> drivers/pci/controller/dwc/pcie-designware-host.c | 28 ++++++++-- >> drivers/pci/controller/dwc/pcie-qcom.c | 68 ----------------------- >> 2 files changed, 24 insertions(+), 72 deletions(-) >> --- >> base-commit: 9b332cece987ee1790b2ed4c989e28162fa47860 >> change-id: 20251015-ecam_fix-641d1d5ed71d > > I hope we can remove the assumption that the root bus is bus 0, but in Yes we can remove this assumption. > the meantime I added these to pci/for-linus so we can build and test > them. > > They're after the pci-v6.18-fixes-2 tag I just asked Linus to pull, so > they won't be in v6.18-rc2, but should make it for -rc3. > Thanks Bjorn. - Krishna Chaitanya. > Bjorn