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
Kirill Smelkov
linux
Commits
35acf3d7
Commit
35acf3d7
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/cipher: remove dependence on namedb/engctx lookup
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
a83d8872
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
+7
-11
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
View file @
35acf3d7
...
@@ -106,33 +106,29 @@ g84_cipher_intr_mask[] = {
...
@@ -106,33 +106,29 @@ g84_cipher_intr_mask[] = {
static
void
static
void
g84_cipher_intr
(
struct
nvkm_subdev
*
subdev
)
g84_cipher_intr
(
struct
nvkm_subdev
*
subdev
)
{
{
struct
nvkm_fifo
*
fifo
=
nvkm_fifo
(
subdev
);
struct
nvkm_engine
*
engine
=
nv_engine
(
subdev
);
struct
nvkm_object
*
engctx
;
struct
nvkm_engine
*
cipher
=
(
void
*
)
subdev
;
struct
nvkm_engine
*
cipher
=
(
void
*
)
subdev
;
struct
nvkm_device
*
device
=
cipher
->
subdev
.
device
;
struct
nvkm_device
*
device
=
cipher
->
subdev
.
device
;
struct
nvkm_fifo
*
fifo
=
device
->
fifo
;
struct
nvkm_fifo_chan
*
chan
;
u32
stat
=
nvkm_rd32
(
device
,
0x102130
);
u32
stat
=
nvkm_rd32
(
device
,
0x102130
);
u32
mthd
=
nvkm_rd32
(
device
,
0x102190
);
u32
mthd
=
nvkm_rd32
(
device
,
0x102190
);
u32
data
=
nvkm_rd32
(
device
,
0x102194
);
u32
data
=
nvkm_rd32
(
device
,
0x102194
);
u32
inst
=
nvkm_rd32
(
device
,
0x102188
)
&
0x7fffffff
;
u32
inst
=
nvkm_rd32
(
device
,
0x102188
)
&
0x7fffffff
;
unsigned
long
flags
;
char
msg
[
128
];
char
msg
[
128
];
int
chid
;
engctx
=
nvkm_engctx_get
(
engine
,
inst
);
chid
=
fifo
->
chid
(
fifo
,
engctx
);
chan
=
nvkm_fifo_chan_inst
(
fifo
,
(
u64
)
inst
<<
12
,
&
flags
);
if
(
stat
)
{
if
(
stat
)
{
nvkm_snprintbf
(
msg
,
sizeof
(
msg
),
g84_cipher_intr_mask
,
stat
);
nvkm_snprintbf
(
msg
,
sizeof
(
msg
),
g84_cipher_intr_mask
,
stat
);
nvkm_error
(
subdev
,
"%08x [%s] ch %d [%010llx %s] "
nvkm_error
(
subdev
,
"%08x [%s] ch %d [%010llx %s] "
"mthd %04x data %08x
\n
"
,
"mthd %04x data %08x
\n
"
,
stat
,
msg
,
ch
id
,
(
u64
)
inst
<<
12
,
stat
,
msg
,
ch
an
?
chan
->
chid
:
-
1
,
(
u64
)
inst
<<
12
,
nvkm_client_name
(
engctx
),
mthd
,
data
);
nvkm_client_name
(
chan
),
mthd
,
data
);
}
}
nvkm_fifo_chan_put
(
fifo
,
flags
,
&
chan
);
nvkm_wr32
(
device
,
0x102130
,
stat
);
nvkm_wr32
(
device
,
0x102130
,
stat
);
nvkm_wr32
(
device
,
0x10200c
,
0x10
);
nvkm_wr32
(
device
,
0x10200c
,
0x10
);
nvkm_engctx_put
(
engctx
);
}
}
static
int
static
int
...
...
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