Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: host1x: Program interrupt destinations on Tegra234

On Tegra234, each Host1x VM has 8 interrupt lines. Each syncpoint
can be configured with which interrupt line should be used for
threshold interrupt, allowing for load balancing.

For now, to keep backwards compatibility, just set all syncpoints
to the first interrupt.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Mikko Perttunen and committed by
Thierry Reding
7afd1194 ee8f894f

+11
+11
drivers/gpu/host1x/hw/intr_hw.c
··· 76 76 /* update host clocks per usec */ 77 77 host1x_sync_writel(host, cpm, HOST1X_SYNC_USEC_CLK); 78 78 #endif 79 + #if HOST1X_HW >= 8 80 + u32 id; 81 + 82 + /* 83 + * Program threshold interrupt destination among 8 lines per VM, 84 + * per syncpoint. For now, just direct all to the first interrupt 85 + * line. 86 + */ 87 + for (id = 0; id < host->info->nb_pts; id++) 88 + host1x_sync_writel(host, 0, HOST1X_SYNC_SYNCPT_INTR_DEST(id)); 89 + #endif 79 90 } 80 91 81 92 static int