mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: update path of gpu firmware for unit tests
- Removing gpu firmware files from nvgpu repo, now Unit tests will access these from /proc/boot/ on QNX. Bug 3093555 Change-Id: I2258a80fdf2f52220ec19d330a78f8b048e7bddb Signed-off-by: Seeta Rama Raju <srajum@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2429544 (cherry picked from commit b3ccf7b007a423860aa60a7b7bddc41562076069) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2429549 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@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:
committed by
Alex Waterman
parent
3556669d0c
commit
c60f43f0ba
@@ -30,7 +30,12 @@
|
|||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
|
|
||||||
#define FW_MAX_PATH_SIZE 2048U
|
#define FW_MAX_PATH_SIZE 2048U
|
||||||
|
|
||||||
|
#if defined(__QNX__)
|
||||||
|
#define NVGPU_UNITTEST_UCODE_PATH "/gv11b/"
|
||||||
|
#else
|
||||||
#define NVGPU_UNITTEST_UCODE_PATH "/firmware/gv11b/"
|
#define NVGPU_UNITTEST_UCODE_PATH "/firmware/gv11b/"
|
||||||
|
#endif
|
||||||
|
|
||||||
static int nvgpu_ucode_load(struct gk20a *g, const char *path,
|
static int nvgpu_ucode_load(struct gk20a *g, const char *path,
|
||||||
struct nvgpu_firmware *ucode)
|
struct nvgpu_firmware *ucode)
|
||||||
@@ -115,7 +120,12 @@ struct nvgpu_firmware *nvgpu_request_firmware(struct gk20a *g,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__QNX__)
|
||||||
|
strcpy(full_path, "/proc/boot/");
|
||||||
|
#else
|
||||||
getcwd(full_path, FW_MAX_PATH_SIZE);
|
getcwd(full_path, FW_MAX_PATH_SIZE);
|
||||||
|
#endif
|
||||||
|
|
||||||
full_path_len = strlen(full_path);
|
full_path_len = strlen(full_path);
|
||||||
full_path_len += strlen(fw_name);
|
full_path_len += strlen(fw_name);
|
||||||
full_path_len += strlen(NVGPU_UNITTEST_UCODE_PATH);
|
full_path_len += strlen(NVGPU_UNITTEST_UCODE_PATH);
|
||||||
|
|||||||
Reference in New Issue
Block a user