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
7108bfe4
Commit
7108bfe4
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/xtensa: switch to subdev printk macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
64b5ce1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
+8
-7
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
View file @
7108bfe4
...
...
@@ -62,11 +62,11 @@ _nvkm_xtensa_intr(struct nvkm_subdev *subdev)
u32
unk10c
=
nv_ro32
(
xtensa
,
0xd0c
);
if
(
intr
&
0x10
)
nv
_warn
(
xtensa
,
"Watchdog interrupt, engine hung.
\n
"
);
nv
km_warn
(
subdev
,
"Watchdog interrupt, engine hung.
\n
"
);
nv_wo32
(
xtensa
,
0xc20
,
intr
);
intr
=
nv_ro32
(
xtensa
,
0xc20
);
if
(
unk104
==
0x10001
&&
unk10c
==
0x200
&&
chan
&&
!
intr
)
{
nv
_debug
(
xtensa
,
"Enabling FIFO_CTRL
\n
"
);
nv
km_debug
(
subdev
,
"Enabling FIFO_CTRL
\n
"
);
nvkm_mask
(
device
,
xtensa
->
addr
+
0xd94
,
0
,
xtensa
->
fifo_val
);
}
}
...
...
@@ -94,8 +94,9 @@ nvkm_xtensa_create_(struct nvkm_object *parent, struct nvkm_object *engine,
int
_nvkm_xtensa_init
(
struct
nvkm_object
*
object
)
{
struct
nvkm_device
*
device
=
nv_device
(
object
);
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
struct
nvkm_subdev
*
subdev
=
&
xtensa
->
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
const
struct
firmware
*
fw
;
char
name
[
32
];
int
i
,
ret
;
...
...
@@ -111,12 +112,12 @@ _nvkm_xtensa_init(struct nvkm_object *object)
ret
=
request_firmware
(
&
fw
,
name
,
nv_device_base
(
device
));
if
(
ret
)
{
nv
_warn
(
xtensa
,
"unable to load firmware %s
\n
"
,
name
);
nv
km_warn
(
subdev
,
"unable to load firmware %s
\n
"
,
name
);
return
ret
;
}
if
(
fw
->
size
>
0x40000
)
{
nv
_warn
(
xtensa
,
"firmware %s too large
\n
"
,
name
);
nv
km_warn
(
subdev
,
"firmware %s too large
\n
"
,
name
);
release_firmware
(
fw
);
return
-
EINVAL
;
}
...
...
@@ -128,8 +129,8 @@ _nvkm_xtensa_init(struct nvkm_object *object)
return
ret
;
}
nv
_debug
(
xtensa
,
"Loading firmware to address: 0x%
llx
\n
"
,
xtensa
->
gpu_fw
->
addr
);
nv
km_debug
(
subdev
,
"Loading firmware to address: %010
llx
\n
"
,
xtensa
->
gpu_fw
->
addr
);
for
(
i
=
0
;
i
<
fw
->
size
/
4
;
i
++
)
nv_wo32
(
xtensa
->
gpu_fw
,
i
*
4
,
*
((
u32
*
)
fw
->
data
+
i
));
...
...
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