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
b835c09b
Commit
b835c09b
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/mpeg: switch to subdev printk macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
109c2f2f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
18 deletions
+21
-18
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
+7
-5
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c
+5
-5
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv50.c
+8
-7
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
View file @
b835c09b
...
...
@@ -229,9 +229,9 @@ nv31_mpeg_intr(struct nvkm_subdev *subdev)
nvkm_wr32
(
device
,
0x00b230
,
0x00000001
);
if
(
show
)
{
nv
_error
(
mpeg
,
"ch %d [%s] 0x%08x 0x%08x 0x%08x 0x
%08x
\n
"
,
fifo
->
chid
(
fifo
,
engctx
),
nvkm_client_name
(
engctx
),
stat
,
type
,
mthd
,
data
);
nv
km_error
(
subdev
,
"ch %d [%s] %08x %08x %08x
%08x
\n
"
,
fifo
->
chid
(
fifo
,
engctx
),
nvkm_client_name
(
engctx
),
stat
,
type
,
mthd
,
data
);
}
spin_unlock_irqrestore
(
&
nv_engine
(
mpeg
)
->
lock
,
flags
);
...
...
@@ -263,7 +263,8 @@ nv31_mpeg_init(struct nvkm_object *object)
{
struct
nvkm_engine
*
engine
=
nv_engine
(
object
);
struct
nv31_mpeg
*
mpeg
=
(
void
*
)
object
;
struct
nvkm_device
*
device
=
mpeg
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
mpeg
->
base
.
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
struct
nvkm_fb
*
fb
=
device
->
fb
;
int
ret
,
i
;
...
...
@@ -292,7 +293,8 @@ nv31_mpeg_init(struct nvkm_object *object)
if
(
!
(
nvkm_rd32
(
device
,
0x00b200
)
&
0x00000001
))
break
;
)
<
0
)
{
nv_error
(
mpeg
,
"timeout 0x%08x
\n
"
,
nvkm_rd32
(
device
,
0x00b200
));
nvkm_error
(
subdev
,
"timeout %08x
\n
"
,
nvkm_rd32
(
device
,
0x00b200
));
return
-
EBUSY
;
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c
View file @
b835c09b
...
...
@@ -98,7 +98,7 @@ nv40_mpeg_intr(struct nvkm_subdev *subdev)
nv31_mpeg_intr
(
subdev
);
if
((
stat
=
nvkm_rd32
(
device
,
0x00b800
)))
{
nv
_error
(
mpeg
,
"PMSRCH 0x
%08x
\n
"
,
stat
);
nv
km_error
(
subdev
,
"PMSRCH
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
0x00b800
,
stat
);
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c
View file @
b835c09b
...
...
@@ -126,10 +126,10 @@ nv44_mpeg_intr(struct nvkm_subdev *subdev)
nvkm_wr32
(
device
,
0x00b230
,
0x00000001
);
if
(
show
)
{
nv
_error
(
mpeg
,
"ch %d [0x%08x %s] 0x%08x 0x%08x 0x%08x 0x
%08x
\n
"
,
chid
,
inst
<<
4
,
nvkm_client_name
(
engctx
),
stat
,
type
,
mthd
,
data
);
nv
km_error
(
subdev
,
"ch %d [%08x %s] %08x %08x %08x
%08x
\n
"
,
chid
,
inst
<<
4
,
nvkm_client_name
(
engctx
),
stat
,
type
,
mthd
,
data
);
}
nvkm_engctx_put
(
engctx
);
...
...
@@ -146,7 +146,7 @@ nv44_mpeg_me_intr(struct nvkm_subdev *subdev)
nv44_mpeg_intr
(
subdev
);
if
((
stat
=
nvkm_rd32
(
device
,
0x00b800
)))
{
nv
_error
(
mpeg
,
"PMSRCH 0x
%08x
\n
"
,
stat
);
nv
km_error
(
subdev
,
"PMSRCH
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
0x00b800
,
stat
);
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv50.c
View file @
b835c09b
...
...
@@ -135,8 +135,8 @@ nv50_mpeg_intr(struct nvkm_subdev *subdev)
}
if
(
show
)
{
nv
_info
(
mpeg
,
"0x%08x 0x%08x 0x%08x 0x
%08x
\n
"
,
stat
,
type
,
mthd
,
data
);
nv
km_info
(
subdev
,
"%08x %08x %08x
%08x
\n
"
,
stat
,
type
,
mthd
,
data
);
}
nvkm_wr32
(
device
,
0x00b100
,
stat
);
...
...
@@ -146,15 +146,14 @@ nv50_mpeg_intr(struct nvkm_subdev *subdev)
static
void
nv50_vpe_intr
(
struct
nvkm_subdev
*
subdev
)
{
struct
nvkm_mpeg
*
mpeg
=
(
void
*
)
subdev
;
struct
nvkm_device
*
device
=
mpeg
->
engine
.
subdev
.
device
;
struct
nvkm_device
*
device
=
subdev
->
device
;
if
(
nvkm_rd32
(
device
,
0x00b100
))
nv50_mpeg_intr
(
subdev
);
if
(
nvkm_rd32
(
device
,
0x00b800
))
{
u32
stat
=
nvkm_rd32
(
device
,
0x00b800
);
nv
_info
(
mpeg
,
"PMSRCH: 0x
%08x
\n
"
,
stat
);
nv
km_info
(
subdev
,
"PMSRCH:
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
0xb800
,
stat
);
}
}
...
...
@@ -183,7 +182,8 @@ int
nv50_mpeg_init
(
struct
nvkm_object
*
object
)
{
struct
nvkm_mpeg
*
mpeg
=
(
void
*
)
object
;
struct
nvkm_device
*
device
=
mpeg
->
engine
.
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
mpeg
->
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
int
ret
;
ret
=
nvkm_mpeg_init
(
mpeg
);
...
...
@@ -208,7 +208,8 @@ nv50_mpeg_init(struct nvkm_object *object)
if
(
!
(
nvkm_rd32
(
device
,
0x00b200
)
&
0x00000001
))
break
;
)
<
0
)
{
nv_error
(
mpeg
,
"timeout 0x%08x
\n
"
,
nvkm_rd32
(
device
,
0x00b200
));
nvkm_error
(
subdev
,
"timeout %08x
\n
"
,
nvkm_rd32
(
device
,
0x00b200
));
return
-
EBUSY
;
}
...
...
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