From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E32561CDFCA; Wed, 20 May 2026 16:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779295144; cv=none; b=BXzCIXa36Xhkc3jYIJWIEJe/K1JTT49yUYmozs390dB9GpWF52rS4NCJgwWgPjCw1yhbFsqPOo29iQPtZ40m8nL1Q2nuPOS5Rk2rlTjBb4JgkHjYGK3L7ajXp15nGLr2A6+7/44dyOXGeozDCXjEtoIVcWn1ISaVIM8YQdOyf68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779295144; c=relaxed/simple; bh=SUUFmF3cT4TlVHxhYE/tbD5srEOlRcXcr/Zh2S5p2gM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ImNmsfgtAssyozpiUXNxWOcrVHJkzKePA62qL7uUmWPZB4sHTY2IlNh1a5Gp3SFgKQGjNxKBGsHtxbfZW7bFEAZbgS4sskRw7qfqCeBzO3wbtMhvx+HrNqJ4fUWWYcIkVoNn9HWKRDU6+GQ3ftK0eaw7Q6hpbl91EGmbzF4ENgs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UO4RqMfW; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UO4RqMfW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DBD01F000E9; Wed, 20 May 2026 16:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779295142; bh=LU/gzOWJK7M5OwO4Le/DdIgxrLYZL4bDjvkcoB2hMuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UO4RqMfWxQAxeGP5Uta7dE4MYhcrq7mEehFZKdN1RUWZLdsvYmgx6fdnh8EPmVixY czU5DZ4ywRBQBeiOTnkfKsS5H6gdBO8NLmnE0elMLj6BS96xIuH5cBDuGpwrI1rfIO y4aUib/06KXyVGOGLY1A9urJNLvRfxSTFe9NXCgc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Koichiro Den , Manivannan Sadhasivam , Bjorn Helgaas , Niklas Cassel , Sasha Levin Subject: [PATCH 7.0 0308/1146] PCI: dwc: rcar-gen4: Change EPC BAR alignment to 4K as per the documentation Date: Wed, 20 May 2026 18:09:18 +0200 Message-ID: <20260520162155.175190327@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Koichiro Den [ Upstream commit 13f55a7ca773c731a1e645934c1ae48577f48785 ] R-Car S4 Series (R8A779F[4-7]*) EP controller uses a 4K minimum iATU region size (CX_ATU_MIN_REGION_SIZE = 4K) as per R19UH0161EJ0130 Rev.1.30. Also, the controller itself can only be configured in the range 4 KB to 64 KB, so the current 1 MB alignment requirement is incorrect. Hence, change the alignment to the min size 4K as per the documentation. This also fixes needless unusability of BAR4 on this platform when the target address is fixed, such as for doorbell targets. Fixes: e311b3834dfa ("PCI: rcar-gen4: Add endpoint mode support") Signed-off-by: Koichiro Den [mani: commit log] Signed-off-by: Manivannan Sadhasivam Signed-off-by: Bjorn Helgaas Reviewed-by: Niklas Cassel Link: https://patch.msgid.link/20260305151050.1834007-1-den@valinux.co.jp Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pcie-rcar-gen4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-rcar-gen4.c b/drivers/pci/controller/dwc/pcie-rcar-gen4.c index a6912e85e4ddc..8c7bc0691e52c 100644 --- a/drivers/pci/controller/dwc/pcie-rcar-gen4.c +++ b/drivers/pci/controller/dwc/pcie-rcar-gen4.c @@ -426,7 +426,7 @@ static const struct pci_epc_features rcar_gen4_pcie_epc_features = { .bar[BAR_3] = { .type = BAR_RESERVED, }, .bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = 256 }, .bar[BAR_5] = { .type = BAR_RESERVED, }, - .align = SZ_1M, + .align = SZ_4K, }; static const struct pci_epc_features* -- 2.53.0