mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: HAL to write DMATRFBASE
- Must write DMATRFBASE1 to 0 whenever DMATRFBASE is written. Bug 200137618 Change-Id: Id8526d1bafbd116ffc4d8018983791fe9e9fa604 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/798780 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Deepak Nibade
parent
83955e553c
commit
cc1b124d5a
@@ -406,6 +406,10 @@ static inline u32 pwr_falcon_dmatrfbase_r(void)
|
||||
{
|
||||
return 0x0010a110;
|
||||
}
|
||||
static inline u32 pwr_falcon_dmatrfbase1_r(void)
|
||||
{
|
||||
return 0x0010a128;
|
||||
}
|
||||
static inline u32 pwr_falcon_dmatrfmoffs_r(void)
|
||||
{
|
||||
return 0x0010a114;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "gm20b/pmu_gm20b.h"
|
||||
|
||||
#include "pmu_gp10b.h"
|
||||
#include "hw_pwr_gp10b.h"
|
||||
|
||||
#define gp10b_dbg_pmu(fmt, arg...) \
|
||||
gk20a_dbg(gpu_dbg_pmu, fmt, ##arg)
|
||||
@@ -223,6 +224,14 @@ static int gp10b_pmu_setup_elpg(struct gk20a *g)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void gp10b_write_dmatrfbase(struct gk20a *g, u32 addr)
|
||||
{
|
||||
gk20a_writel(g, pwr_falcon_dmatrfbase_r(),
|
||||
addr);
|
||||
gk20a_writel(g, pwr_falcon_dmatrfbase1_r(),
|
||||
0x0);
|
||||
}
|
||||
|
||||
void gp10b_init_pmu_ops(struct gpu_ops *gops)
|
||||
{
|
||||
if (gops->privsecurity) {
|
||||
@@ -239,4 +248,5 @@ void gp10b_init_pmu_ops(struct gpu_ops *gops)
|
||||
gops->pmu.pmu_setup_elpg = gp10b_pmu_setup_elpg;
|
||||
gops->pmu.lspmuwprinitdone = false;
|
||||
gops->pmu.fecsbootstrapdone = false;
|
||||
gops->pmu.write_dmatrfbase = gp10b_write_dmatrfbase;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user