Richard Zhao
1f9fbc85fe
gpu: nvgpu: add nvgpu_hvrtos build
...
- nvgpu_hvrtos disabled bellow configs:
- CONFIG_NVGPU_IVM_BUILD
- CONFIG_NVGPU_TRACE
- CONFIG_NVGPU_SYSFS
- CONFIG_NVGPU_DGPU
- CONFIG_NVGPU_IGPU_VIRT
- CONFIG_NVGPU_NVLINK
- CONFIG_NVGPU_CLK_ARB
- CONFIG_NVGPU_MIG
- nvgpu_hvrtos re-uses posix bitmap.c
- add nvgpu_hvrtos specific headers
- add static check of vgpu ivc frame
- fix build errors caused by new CFLAGS
Jira GVSCI-9976
Signed-off-by: Richard Zhao <rizhao@nvidia.com >
Change-Id: I5f65fda9444d0cbfe6008ac4ab8262b44d1a4f56
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2653745
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: Austin Tajiri <atajiri@nvidia.com >
Reviewed-by: Alex Waterman <alexw@nvidia.com >
Reviewed-by: Aparna Das <aparnad@nvidia.com >
GVS: Gerrit_Virtual_Submit
2022-07-28 23:59:10 -07:00
rmylavarapu
bd5ade293d
gpu: nvgpu: gsp: msg: remove event handle support
...
Changes:
- Currently we are not using any event handling between NVGPU and GSP.
So removing the event handler function and directly calling response
handler.
- This change will fix the respective coverity issue.
CID 10138010
Change-Id: I12ddb0012ad9f54bf99f707ab2123598065561d8
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2732628
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2022-07-15 07:12:52 -07:00
Ramesh Mylavarapu
951ad46819
gpu: nvgpu: gsp: sched: domain management apis
...
Changes:
- Added Domain management APIs with interfaces to communicate with
GSP scheduler.
- Domain creation shall be done inside NVGPU and respective Domain
and runlist info are sent to GSP for scheduling.
Design: https://confluence.nvidia.com/display/TGS/GSP+Scheduler+Interface+Specifications
NVGPU-7371
Signed-off-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com >
Change-Id: Icba7f1ed3b9b2f409aac346084dd9a123c9d3779
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2682686
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2022-07-05 14:27:00 -07:00
vivekku
1116d90d32
gpu: nvgpu: gsp: enable gsp scheduler debug prints
...
Changes:
- created gsp debug info mask enabled with GSP flag.
- defined a macro to display gsp debug info instead of using
nvgpu_log_fn.
- replaced nvgpu_log_fn with gsp_dbg_info inside gsp_scheduler.
NVGPU-8529
Change-Id: I98f0e470d7f056958a64579fa64c76de5691aefb
Signed-off-by: vivekku <vivekku@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2727812
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2022-06-17 02:00:58 -07:00
Jinesh Parakh
b8b90f85ee
gpu: nvgpu: Fix CERT-C Violations
...
Fix the following CERT-C Violations:
gsp_runlist.c : CERT EXP34-C
channel_sync_syncpt.c : CERT ERR33-C
grmgr_ga100.c : CERT ERR33-C
grmgr_ga10b.c : CERT ERR33-C
debug.c : CERT ERR33-C
debug_fecs_trace.c : CERT EXP34-C
ioctl.c : CERT ERR33-C
CID 495110
CID 141061
CID 222881
CID 222890
CID 450994
CID 366644
CID 466529
Bug 3512546
Signed-off-by: Jinesh Parakh <jparakh@nvidia.com >
Change-Id: I318a27a6fcb8ea8f6d5d6c1f65d940c48d6f8dfc
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2723008
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sagar Kamble <skamble@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit
2022-06-03 12:05:26 -07:00
Richard Zhao
1ce899ce46
gpu: nvgpu: fix compile error of new compile flags
...
Preparing to push hvrtos gpu server changes which requires bellow CFLAGS:
-Werror -Wall -Wextra \
-Wmissing-braces -Wpointer-arith -Wundef \
-Wconversion -Wsign-conversion \
-Wformat-security \
-Wmissing-declarations -Wredundant-decls -Wimplicit-fallthrough
Jira GVSCI-11640
Signed-off-by: Richard Zhao <rizhao@nvidia.com >
Change-Id: I25167f17f231ed741f19af87ca0aa72991563a0f
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2653746
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com >
Reviewed-by: Alex Waterman <alexw@nvidia.com >
GVS: Gerrit_Virtual_Submit
2022-05-07 15:11:49 -07:00
Sagar Kamble
0725a98ea9
gpu: nvgpu: remove array comparison to NULL
...
The queues element in struct nvgpu_gsp_sched is an array. Remove
its comparison against NULL.
CID 10132247
Bug 3460991
Change-Id: I2380cdb9287cc34b54b13fd9c1bab67a4a21a698
Signed-off-by: Sagar Kamble <skamble@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2693940
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@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-mobile-misra <svc-mobile-misra@nvidia.com >
GVS: Gerrit_Virtual_Submit
2022-04-14 17:02:58 -07:00
Ramesh Mylavarapu
2a98d20263
nvgpu: ga10b: gsp: implement runlist submit apis
...
- implemented device info cmd to send device info to the gsp for
runlist submission. Currently GSP scheduler support only GR
engine '0' instance.
- implemented runlist submit cmd. GSP firmware will submit the
corresponding runlist by writing into submit registers. This
command is direct replacement of hw_submit ga10b hal for GR engine.
NVGPU-6790
Signed-off-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com >
Change-Id: I5dc573a6ad698fe20b49a3466a8e50b94cae74df
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2608923
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2022-02-09 00:38:56 -08:00
rmylavarapu
6c1a77dfa9
gpu: nvgpu: gsp: add cmdq/msgq init check
...
- Instead of waiting for mailbox update waiting for cmdq/msgq
initialization request would be the better way to check the
communication between NVGPU and GSP before sending any cmd.
NVGPU-7342
Signed-off-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com >
Change-Id: I6d20764516cee14ad84da7cc9a06c9370675786f
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2650148
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2022-02-09 00:38:45 -08:00
Ramesh Mylavarapu
e5fd0453cf
gpu: nvgpu: gsp: add priv lockdown release check
...
- NVGPU need to check for priv lockdown release before configuring
any priv registers. In current GSP bootstrap sequence has irq
configuration after GSP engine reset which is causing priv errors.
So irq configuration should be done after GSP firmware releases
priv lockdown.
- Removed clearing irq mask and dest registers before configuring
them as GSP firmware would have done partial irq configuration
before releasing the priv.
NVGPU-7342
Signed-off-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com >
Change-Id: I4b6e83452c051654253e02bfb72330b3d6aec3fd
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2649826
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2022-02-09 00:38:32 -08:00
Ramesh Mylavarapu
9302b2efee
gpu: nvgpu: gsp units separation
...
Separated gsp unit into three unit:
- GSP unit which holds the core functionality of GSP RISCV core,
bootstrap, interrupt, etc.
- GSP Scheduler to hold the cmd/msg management, IPC, etc.
- GSP Test to hold stress test ucode specific support.
NVGPU-7492
Signed-off-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com >
Change-Id: I12340dc776d610502f28c8574843afc7481c0871
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2660619
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2022-02-09 00:38:21 -08:00