iommu/mediatek: add support for 6-bit encoded port IDs
authorFabien Parent <fparent@baylibre.com>
Wed, 2 Nov 2022 15:18:08 +0000 (16:18 +0100)
committerJoerg Roedel <jroedel@suse.de>
Sat, 19 Nov 2022 09:11:10 +0000 (10:11 +0100)
commit65df7d824f82f4dd3552b5a62ae8db07f25e423f
tree1d67807bbcd1740a8ae0b015643e9a1501425ce0
parent59a316fdc4d564dc5e811321a8b20a444fc0094c
iommu/mediatek: add support for 6-bit encoded port IDs

Until now the port ID was always encoded as a 5-bit data. On MT8365,
the port ID is encoded as a 6-bit data. This requires to add extra
macro F_MMU_INT_ID_LARB_ID_EXT, and F_MMU_INT_ID_PORT_ID_EXT in order
to support 6-bit encoded port IDs.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20221001-iommu-support-v6-2-be4fe8da254b@baylibre.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c