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
9d7b9d9f
Commit
9d7b9d9f
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/tmr: switch to subdev printk macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
b3c418bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
drivers/gpu/drm/nouveau/nvkm/subdev/timer/gk20a.c
drivers/gpu/drm/nouveau/nvkm/subdev/timer/gk20a.c
+4
-3
drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c
drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c
+11
-10
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/timer/gk20a.c
View file @
9d7b9d9f
...
...
@@ -27,7 +27,8 @@ static int
gk20a_timer_init
(
struct
nvkm_object
*
object
)
{
struct
nv04_timer
*
tmr
=
(
void
*
)
object
;
struct
nvkm_device
*
device
=
tmr
->
base
.
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
tmr
->
base
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
hi
=
upper_32_bits
(
tmr
->
suspend_time
);
u32
lo
=
lower_32_bits
(
tmr
->
suspend_time
);
int
ret
;
...
...
@@ -36,8 +37,8 @@ gk20a_timer_init(struct nvkm_object *object)
if
(
ret
)
return
ret
;
nv
_debug
(
tmr
,
"time low : 0x
%08x
\n
"
,
lo
);
nv
_debug
(
tmr
,
"time high : 0x
%08x
\n
"
,
hi
);
nv
km_debug
(
subdev
,
"time low :
%08x
\n
"
,
lo
);
nv
km_debug
(
subdev
,
"time high :
%08x
\n
"
,
hi
);
/* restore the time before suspend */
nvkm_wr32
(
device
,
NV04_PTIMER_TIME_1
,
hi
);
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c
View file @
9d7b9d9f
...
...
@@ -121,7 +121,7 @@ nv04_timer_intr(struct nvkm_subdev *subdev)
}
if
(
stat
)
{
nv
_error
(
tmr
,
"unknown stat 0x
%08x
\n
"
,
stat
);
nv
km_error
(
subdev
,
"intr
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
NV04_PTIMER_INTR_0
,
stat
);
}
}
...
...
@@ -141,7 +141,8 @@ static int
nv04_timer_init
(
struct
nvkm_object
*
object
)
{
struct
nv04_timer
*
tmr
=
(
void
*
)
object
;
struct
nvkm_device
*
device
=
tmr
->
base
.
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
tmr
->
base
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
m
=
1
,
f
,
n
,
d
,
lo
,
hi
;
int
ret
;
...
...
@@ -174,7 +175,7 @@ nv04_timer_init(struct nvkm_object *object)
}
if
(
!
n
)
{
nv
_warn
(
tmr
,
"unknown input clock freq
\n
"
);
nv
km_warn
(
subdev
,
"unknown input clock freq
\n
"
);
if
(
!
nvkm_rd32
(
device
,
NV04_PTIMER_NUMERATOR
)
||
!
nvkm_rd32
(
device
,
NV04_PTIMER_DENOMINATOR
))
{
nvkm_wr32
(
device
,
NV04_PTIMER_NUMERATOR
,
1
);
...
...
@@ -203,13 +204,13 @@ nv04_timer_init(struct nvkm_object *object)
lo
=
tmr
->
suspend_time
;
hi
=
(
tmr
->
suspend_time
>>
32
);
nv
_debug
(
tmr
,
"input frequency : %dHz
\n
"
,
f
);
nv
_debug
(
tmr
,
"input multiplier: %d
\n
"
,
m
);
nv
_debug
(
tmr
,
"numerator : 0x
%08x
\n
"
,
n
);
nv
_debug
(
tmr
,
"denominator : 0x
%08x
\n
"
,
d
);
nv
_debug
(
tmr
,
"timer frequency : %dHz
\n
"
,
(
f
*
m
)
*
d
/
n
);
nv
_debug
(
tmr
,
"time low : 0x
%08x
\n
"
,
lo
);
nv
_debug
(
tmr
,
"time high : 0x
%08x
\n
"
,
hi
);
nv
km_debug
(
subdev
,
"input frequency : %dHz
\n
"
,
f
);
nv
km_debug
(
subdev
,
"input multiplier: %d
\n
"
,
m
);
nv
km_debug
(
subdev
,
"numerator :
%08x
\n
"
,
n
);
nv
km_debug
(
subdev
,
"denominator :
%08x
\n
"
,
d
);
nv
km_debug
(
subdev
,
"timer frequency : %dHz
\n
"
,
(
f
*
m
)
*
d
/
n
);
nv
km_debug
(
subdev
,
"time low :
%08x
\n
"
,
lo
);
nv
km_debug
(
subdev
,
"time high :
%08x
\n
"
,
hi
);
nvkm_wr32
(
device
,
NV04_PTIMER_NUMERATOR
,
n
);
nvkm_wr32
(
device
,
NV04_PTIMER_DENOMINATOR
,
d
);
...
...
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