diff options
author | Tomer Tayar <ttayar@habana.ai> | 2022-08-15 20:13:30 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-09-18 13:29:52 +0300 |
commit | fb855768d33fe7ec1c0e5b9ed21a72478a81f77e (patch) | |
tree | 4dc5c0ed7877aa094649e7f5c77749bfcc8ed527 /init | |
parent | 46e49f434fcaafe3c62232aaa0358f03b462141d (diff) | |
download | linux-fb855768d33fe7ec1c0e5b9ed21a72478a81f77e.tar.bz2 |
habanalabs: fix calculation of DRAM base address in PCIe BAR
The calculation of the device DRAM base address before setting the
relevant PCIe BAR to point at it, has an assumption that this BAR is
used to access only the DRAM, and thus the covered DRAM size is a power
of 2.
In future ASICs it is not necessarily true, so need to update the
calculation to support also a non-power-of-2 size.
Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions