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 D008136D4FD for ; Sat, 29 Nov 2025 02:24:44 +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=1764383087; cv=none; b=NCGO9i9r6pc2+5aDiXZb2J5hibBeAocvVRMhPQqxOzYC84Xl9kZjKkC7uNW4yZg1jI1h1WWZB8/+l9lDronn6G7rT59BgQalnGjiLxb3NA6THz92111LQPzjDoaObn8h5D9nw5Piksrnv+1T7J/w8JBo5n0TsmlFJdC92UrhinA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764383087; c=relaxed/simple; bh=TUv7Oe2UKTAu+JIdqW78JWt8UxQDxDD0peTNXsINvvM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AH8ayAhqzYjsbH8VcloNRTjdrbK/oAXnffgoc9xobHicYEvj1j+EWl+gMEBBEL/DCJbUuAoGWIdmkcT3rq8PP51mnVQkoWF6u24IOnpgrqli6LN3SFB7tFYQiimOY2s6/TiHFTzlN8Rr2pFUnk9jUKz02zv6aLrwhpAK7AgvpwM= 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=ZALh4Pgc; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=XPNEh+RI; 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="ZALh4Pgc"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="XPNEh+RI" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AT1ncin1079377 for ; Sat, 29 Nov 2025 02:24:44 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= LwkbFZLKD9aKeC3WKC6OPnPkUZ3sWv42q7KMB+JxdX8=; b=ZALh4Pgcd8YVKgP+ fN0REEvqQUhyynIAaVR7UNxqaYTXjuvxBkRg+zmy1wtOwMHLTannk9Qe/dEuYVjh NtotnQuuhIJybxaFmG4qKnYXSkH7vfsKuIHpWUpn62qx/ErVGb6FWhcYiQbwxAiY TiSzF9GoMw+fqvRH+OAzedJSvSMo/cTV4aEFaQPDy7rm+REIQS0uf5B5WKIwrmXa YMfaX5cQC6NRedarveoSEBgodtt1eOq9EF2roeELSgB5PTTVukVPGnUGXiravc54 5CBpHgINJLw7PNM2SoGY57Uo3p40m9ParY0orVWnfZjyyBBWBNvAF+c7DIIVWqhh FvBtvw== Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4aqg6d0r79-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 29 Nov 2025 02:24:44 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-34377900dbcso4200758a91.2 for ; Fri, 28 Nov 2025 18:24:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1764383083; x=1764987883; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LwkbFZLKD9aKeC3WKC6OPnPkUZ3sWv42q7KMB+JxdX8=; b=XPNEh+RIAtYPadhiOoZwojN/LfHcfgMKnAb65XP75X/FTOzquojll9/UQ/A+4JVhGj n8etJhuH0KeD8n917VWPChRbsqSv2+g0EwTKEwlh7ZTdQ0v6BQuKfGSY93i0sxlOqSII Ho0DKhdZhX1Y9t2t2kFlx9ab2ljx0zJ/mXIUa6pDfLNo5uj8AKFWw4B+rXdh79PDO72J nYKpmVpQROIyo4YN52hhcPk126ILUOtKlDy7RBC+3iFKuoah1ZqKMFFWHTMDYI0xgWQD KzZ4hWzB4XfBw6D01gSodbvZVEhwfb1peGv/95KLuiUU8i6rsn6kaUf7sK/Yy9M/2p1K VO3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764383083; x=1764987883; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LwkbFZLKD9aKeC3WKC6OPnPkUZ3sWv42q7KMB+JxdX8=; b=cxtKaSou2ty283O/mI6C0pqCmh/fyzO50eaOzklSfbnxClmWglXdj5Z5ddmAycHsoS FJJJvbdl/WhawU5muOXMEUJ7r5S7rblYTI75QhfIoBFohuv6kbBKVK48b1aroyFuqUlq wqnaCeV7zZAMCST0gpceyaP2SgxHHUwrV3PjmlbceugOgWa8CjAvzVTT7qP8oDuS9yQs 6EGjkTmDBzs9FToZU7vAiHRT4KApg8LX22dJHFhEoxSWTI228T0cVXr9EEJo9TCpl4Nk Nt6aRmMomDYjnD6KCcXYAz0ZVBhFTKEndxSegQX06WzF79Y4q2pSBkzRmpkl/TmPeRIA opEA== X-Forwarded-Encrypted: i=1; AJvYcCWdToELL5bUZW3joHH7aaPjG188+ivcKltzlbx5XA4cyF2uXtgAz5ska6xyCUC/rBk/dABnPGbYG8roo2rG@vger.kernel.org X-Gm-Message-State: AOJu0YxKqpFsz0/a1S8eRO+yxDIaRpK9O8yiTJUck+NAQTtFWgjMODJx 7VRuuTyN5XFcR3d4ia7WVfefpiZZ5GuoE+xKtxFPNXyDWOerR0Xda/rdluNxiWRJe4fBg2uti7Z 4+Vy18Qmo9gAL4elq3yA0wsLzx4NthmkN2BjyENoi1yR9aQUmaNGhUw6WE/VsZaN73j0j X-Gm-Gg: ASbGncvop5GzLnE3rT9pGRJlzdav4Sj3hxpjui9t+nU9xQU0UNJIk1MFPbfpJPNGxGz MYsgu16yYKPYsP19K7wm4LxmC7nYI/oBxj6bcKX2Z5EtfX6jyv84K4K5mgRlFzW5WHnJc+RcnYO HIE8LerYv6V9jcwFCPRJZyl/MUqLAd4zGzUtDyOdkcc0eQO2GRyfxgeherg/gluAi7aGSXDN1e0 RwnN0yDzMu7SstD6MuW1p3FkzhSdoMOGB61AKSABJptH36Iviy1ra8al4+4ehfLX4aUt0JuzsPZ QuHXNm7h6gbuCwxBAlfx6NNnF8wo9Iu9/7kkeM4Ou78xrCAvb6loE0TnIHonIkThFCndbaKJJG4 1SYDKUB2S3KEcGxwSneUTG4VXtS7veE5YbAT4mlP8USNw X-Received: by 2002:a17:90b:3f44:b0:336:b563:993a with SMTP id 98e67ed59e1d1-34733f241bamr28027479a91.23.1764383083394; Fri, 28 Nov 2025 18:24:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuS9uBDENp+8fKPMnRbGGtrFWsMhy+XKSLqbm+LJ7zW7xyYkOcTCKFSJdCUmmv6bSYkyVlxQ== X-Received: by 2002:a17:90b:3f44:b0:336:b563:993a with SMTP id 98e67ed59e1d1-34733f241bamr28027455a91.23.1764383082897; Fri, 28 Nov 2025 18:24:42 -0800 (PST) Received: from [192.168.29.63] ([49.43.225.110]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7d15f080beasm6276026b3a.47.2025.11.28.18.24.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Nov 2025 18:24:42 -0800 (PST) Message-ID: Date: Sat, 29 Nov 2025 07:54:35 +0530 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 4/4] PCI: dwc: Support ECAM mechanism by enabling iATU 'CFG Shift Feature' To: "Maciej W. Rozycki" Cc: Manivannan Sadhasivam , Jingoo Han , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Alim Akhtar , Jonathan Chocron , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20250909-controller-dwc-ecam-v9-0-7d5b651840dd@kernel.org> <20250909-controller-dwc-ecam-v9-4-7d5b651840dd@kernel.org> Content-Language: en-US From: Krishna Chaitanya Chundru In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=L/AQguT8 c=1 sm=1 tr=0 ts=692a596c cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=5EZHiQk+3i9I38XJ8QjOGQ==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=guimUsFpNTjNUuBwESwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-GUID: VqMNRuib11xDdtrxkokWA44c5mPu222y X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTI5MDAxNyBTYWx0ZWRfX+fyG5+JMD5Uy pqXsIXulQKVH6VYriPM1Hd2MrH0j3tibSFlXL9Vi+dJZcG3242t7SDPdl1+4kcfkhtp5m/gFjLw EPoY+4Ry3JUcvo7eu0Qb9b7zER9cJHDPFkO8S6HSvuGPNs/zu3TR+WHWKPeJFDwbG7+7RW7zb98 qGLnluvvgvqEMT7/KBUOxzPl1VYPOqNaLVpotXvLNJypx2/0A9LdVFqTCp4SypN4P9o56sBDIPK KUgsqcQxP4HPCyXzV6u7Z3U9x+mZdLLIzrT5BU+mxcnAYx4d9LcAWTxTxzWhoF8ZejiIAu26I9L IuqRhtTPUCT58MChkj3KKUBzPf6Hd1yd5hpBI/jn9PEUEViNgKjz5H4mPMW3eykrqZg2nkiw4lm RjR2l88SgNrtkJ9yOpy3mhFDih9Kew== X-Proofpoint-ORIG-GUID: VqMNRuib11xDdtrxkokWA44c5mPu222y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-28_08,2025-11-27_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 phishscore=0 priorityscore=1501 adultscore=0 impostorscore=0 bulkscore=0 spamscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511290017 On 11/28/2025 10:46 PM, Maciej W. Rozycki wrote: > On Fri, 28 Nov 2025, Krishna Chaitanya Chundru wrote: > >>> I have no slightest idea why it should cause a regression such as this, >>> it seems totally unrelated. Yet it's 100% reproducible. Could this be >>> because it's the only device in the system that actually uses PCI/e port >>> I/O? >> Hi Maciej, Can you try attached patch and let me know if that is helping you >> or not. - Krishna Chaitanya. > No change, it's still broken, sorry. HI Maciej, For the previous patch can you apply this diff and share me dmesg o/p --- a/drivers/pci/controller/dwc/pcie-designware-host.c +++ b/drivers/pci/controller/dwc/pcie-designware-host.c @@ -448,7 +448,6 @@ static int dw_pcie_config_ecam_iatu(struct dw_pcie_rp *pp)         if (ret)                 return ret; -         bus_range_max = resource_size(bus->res);         if (bus_range_max < 2) @@ -456,6 +455,8 @@ static int dw_pcie_config_ecam_iatu(struct dw_pcie_rp *pp)         pp->ob_atu_index++; +       dev_err(pci->dev, "Current iATU OB index %d\n", pp->ob_atu_index); +         /* Configure remaining buses in type 1 iATU configuration */         atu.index = pp->ob_atu_index;         atu.type = PCIE_ATU_TYPE_CFG1; @@ -931,6 +932,7 @@ static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp)                 }         } +       dev_err(pci->dev, "Current iATU OB index %d\n", i);         if (pp->io_size) {                 if (pci->num_ob_windows > ++i) {                         atu.index = i; @@ -946,6 +948,7 @@ static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp)                                 return ret;                         }                 } else { +                       dev_err(pci->dev, "Using shared io index %d\n", i);                         pp->cfg0_io_shared = true;                 }         } - Krishna Chaitanya. > Maciej