[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] arm/pci-designware: Make config space iATU index configurable
- To: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Thu, 3 Dec 2026 12:38:55 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=epam.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PVHJu5JJC9+kx0ROPWtL3LliUrgrF+qTEs3lr5HPBK0=; b=WhNGOaPkrJ77kD/GGS7pLL6vg2NIFjApaz1t1wV1NSuafwaQyVBF4Zsa8fREuZ15DYU8/Gusjyqv2PYQ0RDEy/m4MzSWJY7TTAfisPJ2mlnR24e2UPG+rWgd5W2+64+1/bY5eO7wHUvmd5lZbBsxqICssAoj7yi4EsdIxhxNWQ9SBP7ZhJ4YlGXGWHDmpNBq/CBcFK6Il3hV6QRqZ47gMMx1osLivbw5V8rhuWah9AtTEPlhFWgQhXsNWvRUOJ6tCmjFihgrolPYGGzOBMsvO07OhvE9r/NIHFpIildaRNxCIffnMMZmVH2rdn8xBeZCIkx/SsfsPCSwdro41hcf7A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iH5PavZ1qcy29+8MTjm6z+3RHbtCd+iQoNPHRjJ9BFvYdJktJLPYx22NJLexjabvmo5G+ZgWafTJQnLCFpdty7Q7lLJH20Rqf+j+tGs5gvouGAfvyZ5oIRARwrd3fkrFmYrQSSV6OvpGJdrhkvppz99rFrPDIkYe2pcxaxcBN1yyL6sPIVoy7ypUtvN00QetYkSyYa8b5OgL4Beguf27F6WU0p2hI+3WmVkC8O5AfVdnSnWd0CZrzYoOzmtwKbmXYMPdHd4isQv1Y67HT0QfZeYH47aD4D55CsM2Y0zkBg5rcdmmvoqRRJIZy1EQUBaSJlT6Ymwy6JnYB7gFsLLPQQ==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "Hildebrand, Stewart" <Stewart.Hildebrand@xxxxxxx>
- Delivery-date: Thu, 03 Dec 2026 11:39:13 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 02-Dec-26 10:53, Mykyta Poturai wrote:
> Xen programs outbound iATU window 1 for child bus config space
> accesses, following the pre-5.11 Linux layout. Since Linux commit
> 9f9e59a48095 ("PCI: dwc: Support multiple ATU memory regions") the
> hardware domain uses window 0 for config space and windows 1 and up
> for MEM ranges, so every config access from Xen overwrites the first
> MEM window.
>
> Add the "pci-dw-cfg-atu" command line option to select the window and
> default it to 0 to match current Linux. Older kernels need
> pci-dw-cfg-atu=1.
>
> Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
Only 0 and 1 are meaningful here. Wouldn't a boolean legacy option be
a better fit (e.g. pci-dw-legacy-cfg-atu) that if set would use value 0?
~Michal
|