diff options
author | Rick Wertenbroek <[email protected]> | 2023-04-18 09:46:55 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2023-06-22 09:36:51 +0200 |
commit | dc73ed0f1b8bddd7f2bf70d123e68ffc99ad71ce (patch) | |
tree | f2671049afde04f6105ce7b5c59b04e63f1afa5f /lib/crypto/mpi/mpi-div.c | |
parent | 166e89d99dd85a856343cca51eee781b793801f2 (diff) |
PCI: rockchip: Fix window mapping and address translation for endpoint
The RK3399 PCI endpoint core has 33 windows for PCIe space, now in the
driver up to 32 fixed size (1M) windows are used and pages are allocated
and mapped accordingly. The driver first used a single window and allocated
space inside which caused translation issues (between CPU space and PCI
space) because a window can only have a single translation at a given
time, which if multiple pages are allocated inside will cause conflicts.
Now each window is a single region of 1M which will always guarantee that
the translation is not in conflict.
Set the translation register addresses for physical function. As documented
in the technical reference manual (TRM) section 17.5.5 "PCIe Address
Translation" and section 17.6.8 "Address Translation Registers Description"
Link: https://lore.kernel.org/r/[email protected]
Fixes: cf590b078391 ("PCI: rockchip: Add EP driver for Rockchip PCIe controller")
Tested-by: Damien Le Moal <[email protected]>
Signed-off-by: Rick Wertenbroek <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/crypto/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions