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
8000fb21
Commit
8000fb21
authored
Dec 05, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/core: can now assume client/device object tree based on object.engine
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
bdda4703
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
drivers/gpu/drm/nouveau/core/core/printk.c
drivers/gpu/drm/nouveau/core/core/printk.c
+6
-4
drivers/gpu/drm/nouveau/core/engine/device/base.c
drivers/gpu/drm/nouveau/core/engine/device/base.c
+4
-3
No files found.
drivers/gpu/drm/nouveau/core/core/printk.c
View file @
8000fb21
...
@@ -64,11 +64,13 @@ nv_printk_(struct nouveau_object *object, int level, const char *fmt, ...)
...
@@ -64,11 +64,13 @@ nv_printk_(struct nouveau_object *object, int level, const char *fmt, ...)
struct
nouveau_object
*
subdev
;
struct
nouveau_object
*
subdev
;
char
obuf
[
64
],
*
ofmt
=
""
;
char
obuf
[
64
],
*
ofmt
=
""
;
if
(
object
->
engine
==
NULL
)
{
subdev
=
object
;
subdev
=
object
;
while
(
subdev
&&
!
nv_iclass
(
subdev
,
NV_SUBDEV_CLASS
))
while
(
subdev
&&
!
nv_iclass
(
subdev
,
NV_SUBDEV_CLASS
))
subdev
=
subdev
->
parent
;
subdev
=
subdev
->
parent
;
if
(
!
subdev
)
}
else
{
subdev
=
object
->
engine
;
subdev
=
object
->
engine
;
}
device
=
subdev
;
device
=
subdev
;
if
(
device
->
parent
)
if
(
device
->
parent
)
...
...
drivers/gpu/drm/nouveau/core/engine/device/base.c
View file @
8000fb21
...
@@ -512,9 +512,10 @@ struct nouveau_device *
...
@@ -512,9 +512,10 @@ struct nouveau_device *
nv_device
(
void
*
obj
)
nv_device
(
void
*
obj
)
{
{
struct
nouveau_object
*
device
=
nv_object
(
obj
);
struct
nouveau_object
*
device
=
nv_object
(
obj
);
if
(
device
->
engine
==
NULL
)
{
while
(
device
&&
device
->
parent
)
while
(
device
&&
device
->
parent
)
device
=
device
->
parent
;
device
=
device
->
parent
;
if
(
!
nv_iclass
(
device
,
NV_ENGINE_CLASS
))
{
}
else
{
device
=
nv_object
(
obj
)
->
engine
;
device
=
nv_object
(
obj
)
->
engine
;
if
(
device
&&
device
->
parent
)
if
(
device
&&
device
->
parent
)
device
=
device
->
parent
;
device
=
device
->
parent
;
...
...
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