mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Add multi GR gr_config utilty support
This CL covers the following code changes, 1) Added api to get the gr_config per gr_instance_id basis. 2) Added api to covert from gpu_instance_id to gr_instance_id. 3) Modified nvgpu_gr_exec_with_ret_for_instance() utility to handle generic data return type. JIRA NVGPU-5662 JIRA NVGPU-5663 Change-Id: I4ab732e15cdbda25672975f99e23b5e5d27decb0 Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2413195 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
ebb66b5d50
commit
aef3367ca5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -46,6 +46,12 @@ struct nvgpu_gr_config *nvgpu_gr_get_config_ptr(struct gk20a *g)
|
||||
return gr->config;
|
||||
}
|
||||
|
||||
struct nvgpu_gr_config *nvgpu_gr_get_gr_instance_config_ptr(struct gk20a *g,
|
||||
u32 gr_instance_id)
|
||||
{
|
||||
return g->gr[gr_instance_id].config;
|
||||
}
|
||||
|
||||
struct nvgpu_gr_intr *nvgpu_gr_get_intr_ptr(struct gk20a *g)
|
||||
{
|
||||
struct nvgpu_gr *gr = nvgpu_gr_get_cur_instance_ptr(g);
|
||||
|
||||
Reference in New Issue
Block a user