[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240109043721.GA3337479@rocinante>
Date: Tue, 9 Jan 2024 13:37:21 +0900
From: Krzysztof WilczyĆski <kw@...ux.com>
To: Jianjun Wang <jianjun.wang@...iatek.com>
Cc: Lorenzo Pieralisi <lpieralisi@...nel.org>,
Rob Herring <robh@...nel.org>, Bjorn Helgaas <bhelgaas@...gle.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Ryder Lee <ryder.lee@...iatek.com>, linux-pci@...r.kernel.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, jieyy.yang@...iatek.com,
chuanjia.liu@...iatek.com, qizhong.cheng@...iatek.com,
jian.yang@...iatek.com
Subject: Re: [PATCH v2] PCI: mediatek-gen3: Fix translation window
Hello,
> The size of translation table should be a power of 2, using fls()
> cannot get the proper value when the size is not a power of 2. For
> example, fls(0x3e00000) - 1 = 25, hence the PCIe translation window
> size will be set to 0x2000000 instead of the expected size 0x3e00000.
>
> Fix translation window by splitting the MMIO space to multiple tables if
> its size is not a power of 2.
Applied to controller/mediatek, thank you!
[1/1] PCI: mediatek-gen3: Fix translation window size calculation
https://git.kernel.org/pci/pci/c/8b7b89ef507c
Krzysztof
Powered by blists - more mailing lists