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
61b365a5
Commit
61b365a5
authored
Nov 27, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: populate master subdev pointer only when fully constructed
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
bdefc8cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
drivers/gpu/drm/nouveau/core/core/subdev.c
drivers/gpu/drm/nouveau/core/core/subdev.c
+0
-3
drivers/gpu/drm/nouveau/core/engine/device/base.c
drivers/gpu/drm/nouveau/core/engine/device/base.c
+2
-0
drivers/gpu/drm/nouveau/core/include/subdev/fb.h
drivers/gpu/drm/nouveau/core/include/subdev/fb.h
+5
-0
No files found.
drivers/gpu/drm/nouveau/core/core/subdev.c
View file @
61b365a5
...
...
@@ -104,11 +104,8 @@ nouveau_subdev_create_(struct nouveau_object *parent,
if
(
parent
)
{
struct
nouveau_device
*
device
=
nv_device
(
parent
);
int
subidx
=
nv_hclass
(
subdev
)
&
0xff
;
subdev
->
debug
=
nouveau_dbgopt
(
device
->
dbgopt
,
subname
);
subdev
->
mmio
=
nv_subdev
(
device
)
->
mmio
;
device
->
subdev
[
subidx
]
=
*
pobject
;
}
return
0
;
...
...
drivers/gpu/drm/nouveau/core/engine/device/base.c
View file @
61b365a5
...
...
@@ -268,6 +268,8 @@ nouveau_devobj_ctor(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
device
->
subdev
[
i
]
=
devobj
->
subdev
[
i
];
/* note: can't init *any* subdevs until devinit has been run
* due to not knowing exactly what the vbios init tables will
* mess with. devinit also can't be run until all of its
...
...
drivers/gpu/drm/nouveau/core/include/subdev/fb.h
View file @
61b365a5
...
...
@@ -75,6 +75,11 @@ struct nouveau_fb {
static
inline
struct
nouveau_fb
*
nouveau_fb
(
void
*
obj
)
{
/* fbram uses this before device subdev pointer is valid */
if
(
nv_iclass
(
obj
,
NV_SUBDEV_CLASS
)
&&
nv_subidx
(
obj
)
==
NVDEV_SUBDEV_FB
)
return
obj
;
return
(
void
*
)
nv_device
(
obj
)
->
subdev
[
NVDEV_SUBDEV_FB
];
}
...
...
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