Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2ef770f7
Commit
2ef770f7
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/xtensa: switch to device pri macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
96975248
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
+5
-4
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
View file @
2ef770f7
...
...
@@ -27,14 +27,14 @@ u32
_nvkm_xtensa_rd32
(
struct
nvkm_object
*
object
,
u64
addr
)
{
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
return
nv
_rd32
(
xtensa
,
xtensa
->
addr
+
addr
);
return
nv
km_rd32
(
xtensa
->
engine
.
subdev
.
device
,
xtensa
->
addr
+
addr
);
}
void
_nvkm_xtensa_wr32
(
struct
nvkm_object
*
object
,
u64
addr
,
u32
data
)
{
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
nv
_wr32
(
xtensa
,
xtensa
->
addr
+
addr
,
data
);
nv
km_wr32
(
xtensa
->
engine
.
subdev
.
device
,
xtensa
->
addr
+
addr
,
data
);
}
int
...
...
@@ -55,6 +55,7 @@ void
_nvkm_xtensa_intr
(
struct
nvkm_subdev
*
subdev
)
{
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
subdev
;
struct
nvkm_device
*
device
=
xtensa
->
engine
.
subdev
.
device
;
u32
unk104
=
nv_ro32
(
xtensa
,
0xd04
);
u32
intr
=
nv_ro32
(
xtensa
,
0xc20
);
u32
chan
=
nv_ro32
(
xtensa
,
0xc28
);
...
...
@@ -66,7 +67,7 @@ _nvkm_xtensa_intr(struct nvkm_subdev *subdev)
intr
=
nv_ro32
(
xtensa
,
0xc20
);
if
(
unk104
==
0x10001
&&
unk10c
==
0x200
&&
chan
&&
!
intr
)
{
nv_debug
(
xtensa
,
"Enabling FIFO_CTRL
\n
"
);
nv
_mask
(
xtensa
,
xtensa
->
addr
+
0xd94
,
0
,
xtensa
->
fifo_val
);
nv
km_mask
(
device
,
xtensa
->
addr
+
0xd94
,
0
,
xtensa
->
fifo_val
);
}
}
...
...
@@ -146,7 +147,7 @@ _nvkm_xtensa_init(struct nvkm_object *object)
nv_wo32
(
xtensa
,
0xcc4
,
0x1c
);
/* XT_REGION_SETUP */
nv_wo32
(
xtensa
,
0xcc8
,
xtensa
->
gpu_fw
->
size
>>
8
);
/* XT_REGION_LIMIT */
tmp
=
nv
_rd32
(
xtensa
,
0x0
);
tmp
=
nv
km_rd32
(
device
,
0x0
);
nv_wo32
(
xtensa
,
0xde0
,
tmp
);
/* SCRATCH_H2X */
nv_wo32
(
xtensa
,
0xce8
,
0xf
);
/* XT_REGION_SETUP */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment