gpu: nvgpu: move active bitmaps to domain

Move the active_channels and active_tsgs bitmaps from struct
nvgpu_runlist to struct nvgpu_runlist_domain. A TSG and its channels are
currently active as part of a runlist; in the future, a runlist may be
switched from multiple domains that each are a collection of TSGs.

The changes are still internal to the runlist code. Users of runlists
need no modifications.

Jira NVGPU-6425

Change-Id: I2d0e98e97f04b9716bc3f4890cf881735d0ab664
Signed-off-by: Konsta Hölttä <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2618387
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Hölttä
2021-10-28 22:10:39 +03:00
committed by mobile promotions
parent 1d23b8f13a
commit 3cf796b787
7 changed files with 76 additions and 71 deletions

View File

@@ -80,7 +80,7 @@ static int gk20a_fifo_sched_debugfs_seq_show(
ret = 0;
}
if (!test_bit(ch->chid, runlist->active_channels))
if (!test_bit(ch->chid, runlist->domain->active_channels))
return ret;
if (nvgpu_channel_get(ch)) {