gpu: nvgpu: add nvgpu-next infrastructure

* As of now, working on multiple chip bringup in nvgpu-next repo has
   an issue because we end with losing control on source code (hard to
   find which part of the code belongs to which chip) and it's valuable
   history this affects chip migration on release.

 * To support multiple chip bringup simultaneously, we need new
   guidelines to avoid losing control on source code and make migration
   easier. This change adds links to nvgpu-next repo.

 * Updated return code to ENODEV for consistency
 * Updated ACR unittest to work with ENODEV return code

NOTE:
     These are the initial set of infrastructure changes, guidelines
     will evolve, and source code will get updated accordingly.

     Based on future chip features, Which part of the source code falls
     under nvgpu-next repo is decided.

JIRA NVGPU-6574

Change-Id: I81827e35d189c55554df00e255b527a4473e0338
Signed-off-by: Sagar Kadamati <skadamati@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2556793
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Sagar Kadamati
2021-07-09 20:57:49 +05:30
committed by mobile promotions
parent 9ffcb0fade
commit dd9b4364aa
11 changed files with 120 additions and 28 deletions

View File

@@ -21,6 +21,10 @@
#include <nvgpu/lock.h>
#include <nvgpu/gk20a.h>
#if defined(CONFIG_NVGPU_NEXT)
#include <nvgpu_next_chips.h>
#endif
#define GK20A_CLKS_MAX 4
struct gk20a;
@@ -62,6 +66,9 @@ enum tegra_chip_id {
TEGRA_194,
TEGRA_194_VGPU,
TEGRA_234,
#ifdef CONFIG_NVGPU_NEXT
NVGPU_NEXT_TEGRA_CHIPS
#endif
};
struct gk20a_platform {