gpu: nvgpu: modify pbdma.get_fc_target

Modify pbdma.get_fc_target() to accept nvgpu_device pointer. This is
required for nvgpu-next.

JIRA NVGPU-6135

Change-Id: I8baa58c704ee32ee68e87915029ac2be2132d4a4
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2440180
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
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: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2020-11-02 08:49:32 -08:00
committed by Alex Waterman
parent af4f38fb6e
commit 2386ddd038
11 changed files with 20 additions and 15 deletions

View File

@@ -338,7 +338,7 @@ int test_gv11b_pbdma_get_fc(struct unit_module *m,
pbdma_pb_header_first_true_f() |
pbdma_pb_header_type_inc_f()), goto done);
unit_assert(gv11b_pbdma_get_fc_target() ==
unit_assert(gv11b_pbdma_get_fc_target(NULL) ==
(pbdma_target_engine_sw_f() |
pbdma_target_eng_ctx_valid_true_f() |
pbdma_target_ce_ctx_valid_true_f()), goto done);

View File

@@ -89,7 +89,7 @@ static u32 stub_pbdma_get_fc_subdevice(void)
return 0U;
}
static u32 stub_pbdma_get_fc_target(void)
static u32 stub_pbdma_get_fc_target(const struct nvgpu_device *dev)
{
global_count++;
return 0U;