mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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:
committed by
Laxman Dewangan
parent
ea0f4f6a26
commit
e1c4c53a86
@@ -21,22 +21,18 @@ int host1x_channel_list_init(struct host1x_channel_list *chlist,
|
|||||||
if (!chlist->channels)
|
if (!chlist->channels)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
chlist->allocated_channels =
|
chlist->allocated_channels = bitmap_zalloc(num_channels, GFP_KERNEL);
|
||||||
kcalloc(BITS_TO_LONGS(num_channels), sizeof(unsigned long),
|
|
||||||
GFP_KERNEL);
|
|
||||||
if (!chlist->allocated_channels) {
|
if (!chlist->allocated_channels) {
|
||||||
kfree(chlist->channels);
|
kfree(chlist->channels);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
bitmap_zero(chlist->allocated_channels, num_channels);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void host1x_channel_list_free(struct host1x_channel_list *chlist)
|
void host1x_channel_list_free(struct host1x_channel_list *chlist)
|
||||||
{
|
{
|
||||||
kfree(chlist->allocated_channels);
|
bitmap_free(chlist->allocated_channels);
|
||||||
kfree(chlist->channels);
|
kfree(chlist->channels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user