From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 19C0734250D for ; Tue, 6 Jan 2026 10:30:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767695437; cv=none; b=Fp3onuXBT7FAtND+jGV4uxt+hsmCuXSpiERm4Gv+knWqNkdi5mvUYHCiLfPHoNIruT3cdvAcvQE6qt1a7CMwPjSmVxGR+Gc8hzFCX6/v07w34aTdN2E0R/bNKrUIw6TqQVhRMXXf9Ob9L+dpF8KdnQcjusNX2mGA5Wg5aH9gXIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767695437; c=relaxed/simple; bh=c6JfQkHcrJOT7jlRutHXYm4l0no8Tfkw+iaOPkSh0q8=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=orie/kYCUJbrZ6pX5GI/10osXFiG9+A4VcO/XZVHXenJAmKAHEoljJ8v3N7XnexlU6KBz9JJYEZId5XcXnYB8PxCKcMmFLbFkd94mJby0Vqy8SoDycTzsZ8LYQFKoZZ3v0IdEyufmC6pBghfyJCFIuCzD9eYn2STEsJeUk00Sj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cbiYxwmb; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cbiYxwmb" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-59b6c13b68dso48614e87.0 for ; Tue, 06 Jan 2026 02:30:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767695433; x=1768300233; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=NsJJOzya3cvYihpIwq796R0nHpBIF37n18oyXT0fuvE=; b=cbiYxwmbry3kbDR8UzW0E2MnqrPl5XBsx66NP1XyjPRtX1WHd/bwoDeH9Uik3ok+iZ M35ONFj1wjea+EkkrHAkKofUJBFkEmIi7auSRIvQPnr033Xz7LJryz0n4bL2FxhvObq+ w675e7TfpeFwjlDuZAnJMjfXILN3ZPNYwMFsZq1mujB6ncGofcZJkHFK29lhDaccH66N gB/gcSkjt5Q+4cP4hoobrqD8B+UvbQwzdcgwPtfBWFYbq1BIuA11gldjYJRuGZzxSnKP aCXEi8YXFGb9JGLsMbzOeFQlIsR8OlpjMinvhX0ssdh+N24LEgwQbVy1uzPxEfut3Cty Ipmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767695433; x=1768300233; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=NsJJOzya3cvYihpIwq796R0nHpBIF37n18oyXT0fuvE=; b=tBMzuhPvuZ2Zfyv394GdS9zh/fAcMSq+5xpJAXOSfLV8Aw57CDCe69GA0Fc0E8dAv3 obbDD7NNlEb/q1HQC5EUlEofBB6nVtXjai580S4IJZL1pUaI212DS0GZ/xc2sXOO09lp xRHSAYN+S1HfVL5kcw0lVmgOY66lg9rJ1JT8PNXVE3MJ5UTkaIUze7rTcMccth/sdhxp 7lbm+/rF/iTHI3ZKUMtFJJ3ylh9uKoxajktbU7FK9lAzSqmt1C7Mm+5qgGoR/qRSy0tE XdWzxgm/+Z7tmUdF0nnkPx0APseIMxYAN4rXh07cGr+MPsElVbni8zAYmiINku9eK72i hyLg== X-Forwarded-Encrypted: i=1; AJvYcCX04PwgMfsE3x6P5h4hAn1+SkD/caZ+DqMhfbL3qGJjtoUrMtaYnUEnf5ihnhGrUxf3rpySMbUgpZFj@vger.kernel.org X-Gm-Message-State: AOJu0YywtrVfM150ou6WAEP5LqLXiEz6p7QLdMbKafxt6tcdpCJs8HSj GA+cdqSZka83NXbgcGe4oiCblrC5zafwcIth2YFQsd5Y+WDZkJLvpJqG X-Gm-Gg: AY/fxX4Yj4YXrzifBkrup847NY6jYGBt4zouhbKfhrhlq+ulBidlOoKAl4b1OVf4eEW QEWwy7ueZ4aJFtOZbyL8WX5zqRKKsOL11qq3ixiNrhhI20U0dJ5d2hZ3eEL19x1e3Rx/23a39pF U6810P7x/Qn5nuSwsLbfsk3fGftbCzcVkw/9TEZ9AEs04SzC4j/v8XmCNqso7aLFBYVkjle2LlI RngjLSc3JmZNN4FRItfX6r/VEUW0mXmn8YtpgfzgVjTQqiy0Nn6rX39NQNmZF1yIDtOj9zzpk36 QHE5L8RscF6MkN4lIH1U/GZIcna780JT4Q8xikTGRSu4ckWtlHSwe0Uhd9orNnjKAA6smTj39yi UG6qxF5ZsKyUx3ro+55Sfkx9j0cZfpAtwCXCKBw7+xrERWrGY76FGSD+thFQTd85lsi9vPxoE X-Google-Smtp-Source: AGHT+IFmb+80wkKZdKxRHpidfReqxOHlUmLsipFT1rzzTuNx9rKmNHYR/9f9tfCpJuYk6MXE4I4WOw== X-Received: by 2002:a05:651c:1148:b0:37b:9361:711d with SMTP id 38308e7fff4ca-382eae68ac5mr6985121fa.8.1767695432846; Tue, 06 Jan 2026 02:30:32 -0800 (PST) Received: from razdolb ([77.220.204.220]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-382eb8dadc0sm4315921fa.33.2026.01.06.02.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jan 2026 02:30:32 -0800 (PST) References: <20251216-upstream_pcie_rc-v7-0-4aeb0f53c4ce@aspeedtech.com> User-agent: mu4e 1.10.9; emacs 30.2 From: Mikhail Rudenko To: Jacky Chou Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Linus Walleij , Philipp Zabel , Neil Armstrong , linux-aspeed@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Jeffery , openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, Mikhail Rudenko Subject: Re: [PATCH v7 0/7] Add ASPEED PCIe Root Complex support Date: Tue, 06 Jan 2026 12:58:40 +0300 In-reply-to: <20251216-upstream_pcie_rc-v7-0-4aeb0f53c4ce@aspeedtech.com> Message-ID: <875x9fuj7i.fsf@gmail.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Hi Jacky, On 2025-12-16 at 09:49 +08, Jacky Chou wrote: > This patch series adds support for the ASPEED PCIe Root Complex, > including device tree bindings, pinctrl support, and the PCIe host controller > driver. The patches introduce the necessary device tree nodes, pinmux groups, > and driver implementation to enable PCIe functionality on ASPEED platforms. > Currently, the ASPEED PCIe Root Complex only supports a single port. > > Summary of changes: > - Add device tree binding documents for ASPEED PCIe PHY and PCIe RC > - Update MAINTAINERS for new bindings and driver > - Implement ASPEED PCIe PHY driver > - Implement ASPEED PCIe Root Complex host controller driver > > This series has been tested on AST2600/AST2700 platforms and enables PCIe device > enumeration and operation. First of all, thank you for your efforts in getting this driver upstreamed! I am trying to understand whether this driver supports PCIe devices that have an I/O port BAR, where CPU access to I/O ports is required for proper device operation. If I understand correctly, this line in the Aspeed 2600 dtsi file declares the I/O port range: ranges = <0x01000000 0x0 0x00018000 0x00018000 0x0 0x00008000 During system initialization, the pci_remap_iospace() function in arch/arm/mm/ioremap.c maps the physical address range 0x00018000-0x00020000 to the virtual address PCI_IO_VIRT_BASE (0xfee00000). After this mapping, inb() and outb() calls work by converting I/O port addresses to virtual addresses starting at PCI_IO_VIRT_BASE, then performing reads and writes to those virtual addresses. What I don't understand is this: according to the Aspeed 2600 datasheet, the address range 0x00000000-0x0fffffff (which contains 0x00018000-0x00020000) is mapped to Firmware SPI Memory. This would mean that outb() operations get routed to memory-mapped SPI flash instead of PCIe. It seems like there's a missing piece to this puzzle. Could you help clarify how this is supposed to work? -- Kind regards, Mikhail Rudenko