gpu: host1x: Update to Linux v6.0-rc5

Update the host1x driver to align with the latest upstream driver from
Linux v6.0-rc5. Please note that the context bus support is not
included, because this needs to be built into the kernel.

Bug 3767126

Change-Id: Ib962db616e9c1d72e46adf6c678ec26089e4b610
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2776689
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2022-09-14 11:24:11 +01:00
committed by Laxman Dewangan
parent ea0f4f6a26
commit e1c4c53a86

View File

@@ -21,22 +21,18 @@ int host1x_channel_list_init(struct host1x_channel_list *chlist,
if (!chlist->channels)
return -ENOMEM;
chlist->allocated_channels =
kcalloc(BITS_TO_LONGS(num_channels), sizeof(unsigned long),
GFP_KERNEL);
chlist->allocated_channels = bitmap_zalloc(num_channels, GFP_KERNEL);
if (!chlist->allocated_channels) {
kfree(chlist->channels);
return -ENOMEM;
}
bitmap_zero(chlist->allocated_channels, num_channels);
return 0;
}
void host1x_channel_list_free(struct host1x_channel_list *chlist)
{
kfree(chlist->allocated_channels);
bitmap_free(chlist->allocated_channels);
kfree(chlist->channels);
}