mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Wrappers for checking platform type
Add nvgpu_* wrappers for determining if we're running in simulation or silicon, and if we're running in hypervisor. The new wrappers require struct gk20a pointer, and gk20a_fence_wait() did not have access to one. Add struct gk20a pointer as the first parameter. JIRA NVGPU-16 Change-Id: I73b2b8f091ca29fb1827054abd2adaf583710331 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1331565 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
1a4647272f
commit
19fdb429c2
@@ -31,6 +31,7 @@
|
||||
#include <nvgpu/semaphore.h>
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/soc.h>
|
||||
|
||||
#include "gk20a.h"
|
||||
#include "debug_gk20a.h"
|
||||
@@ -3349,7 +3350,7 @@ static void gk20a_fifo_apply_pb_timeout(struct gk20a *g)
|
||||
{
|
||||
u32 timeout;
|
||||
|
||||
if (tegra_platform_is_silicon()) {
|
||||
if (nvgpu_platform_is_silicon(g)) {
|
||||
timeout = gk20a_readl(g, fifo_pb_timeout_r());
|
||||
timeout &= ~fifo_pb_timeout_detection_enabled_f();
|
||||
gk20a_writel(g, fifo_pb_timeout_r(), timeout);
|
||||
|
||||
Reference in New Issue
Block a user