[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] arm/pci-designware: Make config space iATU index configurable
- To: "Orzel, Michal" <michal.orzel@xxxxxxx>, Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Fri, 4 Dec 2026 08:29:16 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- 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=C9J1ReOjaMmrcmeapjbAY/KlpFMgS9QSFfKCGMqP5VQ=; b=P2quZH7kY3QTOrpZ3CVgYn8yCDKyxB5Cyw2DB0X6jhx5fC41Nk7Em3W6FUQtZ0lxbN6/wnmtYm93cAtYJfcZIA2BAhmX52X0/qF+W6YnSE9lhpQHJLDEQoh1PD+O+xWiKSjzYVlnx+9LUgTG34GekN4Ctre3SSe8nZRPp1WQ7TFwPXnXIWzvx+AnlPP6WFtCRGNjlhW8h3WpOQsyPW+d8jgpG+R9aagGHbJpeHTvlXhHn0rFgJeAPVNp+AVneaaGUat/eRr2bdFCxJzXjeinFnDuAZCbzihRbJfofRvK+fRc5y+jGorQ9Qtp6LyvLFEPCsVN7B7BfmwKhdhdU5xODg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XX+WjiO1J5raRIiTvEGa9P4aUcYGUvRln6vecCDLfcIm3VT0VKptCAgzFs9uZsI6OQiEpL+MLQpR834tRzswfeYOg0emGa6Tcx52W7nEKjcc0G5OonDg7sua5rsI/UVOaI5xkEr1wN8gD98ZNShDWeuhb56gotSEKYHnN+qXTjtY9l99BRrMnuE9Cmdpuhw6gUT8WGijZVILlGf+VlTqLcM4yHJ5R91OdGY1p7dsICSF66WRV6aIpx6JPbTpVjPtZ+OhYIxa+AG0HHCFisRirq1SZWozRRgEuyE0pHZsioDmVY2laOfq45nYb3UFikXpoUh5v6dQQabdNBtrb2E02g==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
- Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- 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>, Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 04 Dec 2026 08:29:24 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHdgkL+mXAthoWhPUu85iW1eqm+hbdLMTuAgAFdVoA=
- Thread-topic: [PATCH] arm/pci-designware: Make config space iATU index configurable
On Thu Dec 3, 2026 at 1:38 PM EET, Michal Orzel wrote:
>
>
> 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
Yes, that seems like a good idea. Will do it this way in v2.
Thanks.
|