From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 7C121374F1 for ; Thu, 3 Oct 2024 05:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727933910; cv=none; b=YeCfTcHQWZhY28L33SvqSpZVFtYCmY5IbHSzTiyMY4No9YO6B5O2QE1xEj4EogI/hzgcvMCIFjdBr1ftmTE6LAHhtVUhGzLK3kjwoTbdzvNRtyDQdc4+XBDLMXB//5dyrRaou2gf6HFmrKk2iFr6eiDtrF1C9Imi/nAocuMHC14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727933910; c=relaxed/simple; bh=OZf5T1dMlAEXY8gTRUkhfj9KW2sc8CDfqqYDFYBKrCQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aESlQK0FFFO18HL2JyXWkV3jXH2uAwWeOj15/pEJlyN/cIX+ZppZaOsi3Lm/uPwmSJ1cmaYePGBmTHRvx7m6Tk1RsJcDCOWb8C+ip98KHfEMboJgvPL/wTBjqAbO95eFUFMFTWIsRO7Zka44gWFIqjFUId45X9evL5MxWMnaeqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=EfAOFHIH; arc=none smtp.client-ip=209.85.216.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EfAOFHIH" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2e0afd945d4so444866a91.0 for ; Wed, 02 Oct 2024 22:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727933906; x=1728538706; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Pd1LkdkCibllI1ORTg7Irg02FkDWiTpEyiSVdQth11o=; b=EfAOFHIHy61mW90b2kdWTYvOPpMC8QRvTKV6wc6LdEuBbusegTguXpnLPskCko7ep8 9I7Vke8R9tWdwNXEZqW8jj1/1rcmBMEgUHCL55uBrGkr8/lm+mCbOMDsFh8nQcXTibko sfjHWHY23rhkEYOXlEFlhOSspKYmMVfu7UdRvy9vyGzi/NNgcRJORWq2gxv6gArG4gML wve5gy8iLw5Q8tf5NxtNzBKnzodbOnbTc54l1Oe+6/GDT/0AeV7tUM+uMK2utHgXxgiP j3xWNLjItUln/XkF9qVqG/dys8ic0cRNamJjBRhaqeUC2QugStHQo6MSIZMzAleyoYpO fUoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727933906; x=1728538706; h=in-reply-to:content-transfer-encoding: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=Pd1LkdkCibllI1ORTg7Irg02FkDWiTpEyiSVdQth11o=; b=FxyuravRCm1322lDG42QS1zeENRTwgrqUdgLE/eaJxrcUCm4YZEzaSLlXkzn3JB3RY efy75OnJrWHJCgB+So968xNDxXFipFpPoP4uoE6rP78CiqqOSlRSeSsi/XkFutLtqFzP JWXxjOU+oTGujAXRZcaZqVyv7OvcbqNAhTL5XYnYAhl+fZ1TA5a5qxlFvxvEpNXvC2yN hQGQDXbIcwPAITLobh2isgb8Uvq7ABJmzmzF8dBcJs+XWKJ26glGaiOvMDnCQHg0qim3 EiuSU/cRbyE9Tq1EGOrdsqIws4Qgb/AglcvSbVSOfJeWRQKlIoUq0qj40UEh/JJEuBVB fIXw== X-Forwarded-Encrypted: i=1; AJvYcCUrz38R1sxuxaJAUy/qrFMPjqSrExxYdxPq3AXoL/XnizHu5nNBvGhM+M8mSZt390FeWv16nfd1mykC@vger.kernel.org X-Gm-Message-State: AOJu0YzpljF1WRyaw2oF2qDUh6lBmNmm97oYGM1GXDOBH4BDlq9O4xAR ZxOjNIjFhR6S+1Dn6/HhCjujVnJVoDXPmGm2W9EuGHY7ahU6AoixbdU2j/xUuw== X-Google-Smtp-Source: AGHT+IETFJQL7nnoFerivVi2DQB/Jkm21orJvAufRoGLmUdngzWZk//7FXKGWhSccYa6K7py+Gxobg== X-Received: by 2002:a17:90b:1e42:b0:2d8:ebef:547 with SMTP id 98e67ed59e1d1-2e18496989dmr6233335a91.35.1727933905751; Wed, 02 Oct 2024 22:38:25 -0700 (PDT) Received: from thinkpad ([36.255.17.222]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e182634b11sm2043389a91.0.2024.10.02.22.38.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 22:38:25 -0700 (PDT) Date: Thu, 3 Oct 2024 11:08:17 +0530 From: Manivannan Sadhasivam To: Frank Li Cc: Rob Herring , Saravana Kannan , Jingoo Han , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev Subject: Re: [PATCH v3 1/3] of: address: Add parent_bus_addr to struct of_pci_range Message-ID: <20241003053817.eycemurigrr6qy4u@thinkpad> References: <20240930-pci_fixup_addr-v3-0-80ee70352fc7@nxp.com> <20240930-pci_fixup_addr-v3-1-80ee70352fc7@nxp.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240930-pci_fixup_addr-v3-1-80ee70352fc7@nxp.com> On Mon, Sep 30, 2024 at 02:44:53PM -0400, Frank Li wrote: > Introduce field 'parent_bus_addr' in of_pci_range to retrieve untranslated > CPU address information. > > Refer to the diagram below to understand that the bus fabric in some > systems (like i.MX8QXP) does not use a 1:1 address map between input and > output. > > Currently, many drivers use .cpu_addr_fixup() callback hardcodes that s/drivers/controller drivers/ > translation in the code, e.g., "cpu_addr & CDNS_PLAT_CPU_TO_BUS_ADDR", > "cpu_addr + BUS_IATU_OFFSET", etc, even though those translations *should* > be described via DT. > It'd be useful to mention which driver has the mentioned fixup as an example. - Mani -- மணிவண்ணன் சதாசிவம்