mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add fb gops for set_atomic_mode
Separated set_atomic_mode functionality from init_fs_state/enable_nvlink and created new fb gops for set_atomic_mode. In gpu init sequence, set_atomic_mode is called after acr_construct_execute to take care of design changes required for nvgpu-next architectures. Updated fb_gv11b_init_test to use set_atomic_mode gops along with init_fs_state. Bug 3268664 Change-Id: I1ab9eb21cc4cce77f3325c4e8821a75b6e85fba2 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2508095 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
3aceed2db1
commit
21e1328ea1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2021, 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"),
|
||||
@@ -48,6 +48,7 @@ int fb_gv11b_init_test(struct unit_module *m, struct gk20a *g, void *args)
|
||||
g->ops.ecc.ecc_init_support = nvgpu_ecc_init_support;
|
||||
g->ops.fb.init_hw = gv11b_fb_init_hw;
|
||||
g->ops.fb.init_fs_state = gv11b_fb_init_fs_state;
|
||||
g->ops.fb.set_atomic_mode = gv11b_fb_set_atomic_mode;
|
||||
g->ops.fb.ecc.init = gv11b_fb_ecc_init;
|
||||
g->ops.fb.ecc.free = gv11b_fb_ecc_free;
|
||||
g->ops.fb.ecc.l2tlb_error_mask = gv11b_fb_ecc_l2tlb_error_mask;
|
||||
@@ -83,6 +84,7 @@ int fb_gv11b_init_test(struct unit_module *m, struct gk20a *g, void *args)
|
||||
}
|
||||
|
||||
g->ops.fb.init_fs_state(g);
|
||||
g->ops.fb.set_atomic_mode(g);
|
||||
/* Ensure atomic mode was enabled */
|
||||
if ((nvgpu_readl(g, fb_mmu_ctrl_r()) &
|
||||
fb_mmu_ctrl_atomic_capability_mode_m()) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user