mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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:
committed by
mobile promotions
parent
1d23b8f13a
commit
3cf796b787
@@ -346,9 +346,9 @@ int test_tsg_bind_channel(struct unit_module *m,
|
||||
/* ch already already active */
|
||||
runlist = tsg->runlist;
|
||||
if (branches & F_TSG_BIND_CHANNEL_ACTIVE) {
|
||||
nvgpu_set_bit(ch->chid, runlist->active_channels);
|
||||
nvgpu_set_bit(ch->chid, runlist->domain->active_channels);
|
||||
} else {
|
||||
nvgpu_clear_bit(ch->chid, runlist->active_channels);
|
||||
nvgpu_clear_bit(ch->chid, runlist->domain->active_channels);
|
||||
}
|
||||
|
||||
if ((branches & F_TSG_BIND_CHANNEL_BIND_HAL) ||
|
||||
|
||||
Reference in New Issue
Block a user