mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
drm/tegra: nvdec: Fix TRANSCFG register offset
NVDEC's TRANSCFG register is at a different offset than VIC. This becomes a problem now when context isolation is enabled and the reset value of the register is no longer sufficient. Bug 3724727 Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Change-Id: Ic83043dcc49a3739fe310cfb5b143b42d9aa259b
This commit is contained in:
committed by
Laxman Dewangan
parent
abbdd9c844
commit
250d164381
@@ -21,6 +21,8 @@
|
|||||||
#include "falcon.h"
|
#include "falcon.h"
|
||||||
#include "vic.h"
|
#include "vic.h"
|
||||||
|
|
||||||
|
#define NVDEC_TFBIF_TRANSCFG 0x2c44
|
||||||
|
|
||||||
struct nvdec_config {
|
struct nvdec_config {
|
||||||
const char *firmware;
|
const char *firmware;
|
||||||
unsigned int version;
|
unsigned int version;
|
||||||
@@ -63,7 +65,7 @@ static int nvdec_boot(struct nvdec *nvdec)
|
|||||||
u32 value;
|
u32 value;
|
||||||
|
|
||||||
value = TRANSCFG_ATT(1, TRANSCFG_SID_FALCON) | TRANSCFG_ATT(0, TRANSCFG_SID_HW);
|
value = TRANSCFG_ATT(1, TRANSCFG_SID_FALCON) | TRANSCFG_ATT(0, TRANSCFG_SID_HW);
|
||||||
nvdec_writel(nvdec, value, VIC_TFBIF_TRANSCFG);
|
nvdec_writel(nvdec, value, NVDEC_TFBIF_TRANSCFG);
|
||||||
|
|
||||||
if (spec->num_ids > 0) {
|
if (spec->num_ids > 0) {
|
||||||
value = spec->ids[0] & 0xffff;
|
value = spec->ids[0] & 0xffff;
|
||||||
|
|||||||
Reference in New Issue
Block a user