summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra/falcon.h
diff options
context:
space:
mode:
authorMikko Perttunen <mperttunen@nvidia.com>2022-06-27 17:19:51 +0300
committerThierry Reding <treding@nvidia.com>2022-07-08 16:27:52 +0200
commite078d8d6c3849019b927edb5beeca38dea00050c (patch)
tree2ee06f4ee4f31d0de2513ada7cf6ac1b5e419a57 /drivers/gpu/drm/tegra/falcon.h
parent2486254781eab6f6119fabea78f11386c54460d2 (diff)
drm/tegra: falcon: Set DMACTX field on DMA transactions
The DMACTX field determines which context, as specified in the TRANSCFG register, is used. While during boot it doesn't matter which is used, later on it matters and this value is reused by the firmware. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/falcon.h')
-rw-r--r--drivers/gpu/drm/tegra/falcon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/falcon.h b/drivers/gpu/drm/tegra/falcon.h
index c56ee32d92ee..1955cf11a8a6 100644
--- a/drivers/gpu/drm/tegra/falcon.h
+++ b/drivers/gpu/drm/tegra/falcon.h
@@ -50,6 +50,7 @@
#define FALCON_DMATRFCMD_IDLE (1 << 1)
#define FALCON_DMATRFCMD_IMEM (1 << 4)
#define FALCON_DMATRFCMD_SIZE_256B (6 << 8)
+#define FALCON_DMATRFCMD_DMACTX(v) (((v) & 0x7) << 12)
#define FALCON_DMATRFFBOFFS 0x0000111c