mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: multimedia engine enumeration changes
- Changes to fetch and expose supported multimedia engines to umd - Unit and litter defines for multimedia engines - Add functions to get runlist id Jira NVGPU-9429 Bug 3962979 Signed-off-by: Santosh BS <santoshb@nvidia.com> Change-Id: I072b4aac803c4a70d3659857cb0d804755c5dbd7 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2900765 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: V M S Seeta Rama Raju Mudundi <srajum@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
ef1fb41e54
commit
54b01e881b
@@ -1259,6 +1259,12 @@ static void nvgpu_gpu_fetch_engine_info_item(struct gk20a *g,
|
||||
}
|
||||
} else if (nvgpu_device_is_nvenc(g, dev)) {
|
||||
dst_info->engine_id = NVGPU_GPU_ENGINE_ID_NVENC;
|
||||
} else if (nvgpu_device_is_ofa(g, dev)) {
|
||||
dst_info->engine_id = NVGPU_GPU_ENGINE_ID_OFA;
|
||||
} else if (nvgpu_device_is_nvdec(g, dev)) {
|
||||
dst_info->engine_id = NVGPU_GPU_ENGINE_ID_NVDEC;
|
||||
} else if (nvgpu_device_is_nvjpg(g, dev)) {
|
||||
dst_info->engine_id = NVGPU_GPU_ENGINE_ID_NVJPG;
|
||||
}
|
||||
|
||||
dst_info->engine_instance = dev_inst_id;
|
||||
@@ -1285,7 +1291,7 @@ static int nvgpu_gpu_get_engine_info(
|
||||
const struct nvgpu_device *dev = g->fifo.active_engines[i];
|
||||
struct nvgpu_gpu_get_engine_info_item dst_info;
|
||||
|
||||
if (nvgpu_device_is_nvenc(g, dev)) {
|
||||
if (nvgpu_device_is_multimedia(g, dev)) {
|
||||
nvgpu_gpu_fetch_engine_info_item(g, &dst_info, dev,
|
||||
dev->inst_id, dev->runlist_id);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user