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
b958bf91
Commit
b958bf91
authored
9 years ago
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/cipher: switch to device pri macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
29e9f510
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
+11
-9
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
View file @
b958bf91
...
...
@@ -108,10 +108,11 @@ g84_cipher_intr(struct nvkm_subdev *subdev)
struct
nvkm_engine
*
engine
=
nv_engine
(
subdev
);
struct
nvkm_object
*
engctx
;
struct
nvkm_engine
*
cipher
=
(
void
*
)
subdev
;
u32
stat
=
nv_rd32
(
cipher
,
0x102130
);
u32
mthd
=
nv_rd32
(
cipher
,
0x102190
);
u32
data
=
nv_rd32
(
cipher
,
0x102194
);
u32
inst
=
nv_rd32
(
cipher
,
0x102188
)
&
0x7fffffff
;
struct
nvkm_device
*
device
=
cipher
->
subdev
.
device
;
u32
stat
=
nvkm_rd32
(
device
,
0x102130
);
u32
mthd
=
nvkm_rd32
(
device
,
0x102190
);
u32
data
=
nvkm_rd32
(
device
,
0x102194
);
u32
inst
=
nvkm_rd32
(
device
,
0x102188
)
&
0x7fffffff
;
int
chid
;
engctx
=
nvkm_engctx_get
(
engine
,
inst
);
...
...
@@ -125,8 +126,8 @@ g84_cipher_intr(struct nvkm_subdev *subdev)
mthd
,
data
);
}
nv
_wr32
(
cipher
,
0x102130
,
stat
);
nv
_wr32
(
cipher
,
0x10200c
,
0x10
);
nv
km_wr32
(
device
,
0x102130
,
stat
);
nv
km_wr32
(
device
,
0x10200c
,
0x10
);
nvkm_engctx_put
(
engctx
);
}
...
...
@@ -156,15 +157,16 @@ static int
g84_cipher_init
(
struct
nvkm_object
*
object
)
{
struct
nvkm_engine
*
cipher
=
(
void
*
)
object
;
struct
nvkm_device
*
device
=
cipher
->
subdev
.
device
;
int
ret
;
ret
=
nvkm_engine_init
(
cipher
);
if
(
ret
)
return
ret
;
nv
_wr32
(
cipher
,
0x102130
,
0xffffffff
);
nv
_wr32
(
cipher
,
0x102140
,
0xffffffbf
);
nv
_wr32
(
cipher
,
0x10200c
,
0x00000010
);
nv
km_wr32
(
device
,
0x102130
,
0xffffffff
);
nv
km_wr32
(
device
,
0x102140
,
0xffffffbf
);
nv
km_wr32
(
device
,
0x10200c
,
0x00000010
);
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
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