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
03bc9675
Commit
03bc9675
authored
Jul 04, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: allow modeset module option to select 'headless mode'
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
1575b364
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-0
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nouveau_state.c
+9
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.c
View file @
03bc9675
...
...
@@ -41,7 +41,7 @@ int nouveau_agpmode = -1;
module_param_named
(
agpmode
,
nouveau_agpmode
,
int
,
0400
);
MODULE_PARM_DESC
(
modeset
,
"Enable kernel modesetting"
);
static
int
nouveau_modeset
=
-
1
;
/* kms */
int
nouveau_modeset
=
-
1
;
module_param_named
(
modeset
,
nouveau_modeset
,
int
,
0400
);
MODULE_PARM_DESC
(
vbios
,
"Override default VBIOS location"
);
...
...
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
03bc9675
...
...
@@ -798,6 +798,7 @@ nouveau_bo_ref(struct nouveau_bo *ref, struct nouveau_bo **pnvbo)
}
/* nouveau_drv.c */
extern
int
nouveau_modeset
;
extern
int
nouveau_agpmode
;
extern
int
nouveau_duallink
;
extern
int
nouveau_uscript_lvds
;
...
...
drivers/gpu/drm/nouveau/nouveau_state.c
View file @
03bc9675
...
...
@@ -431,6 +431,15 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
return
1
;
}
/* headless mode */
if
(
nouveau_modeset
==
2
)
{
engine
->
display
.
early_init
=
nouveau_stub_init
;
engine
->
display
.
late_takedown
=
nouveau_stub_takedown
;
engine
->
display
.
create
=
nouveau_stub_init
;
engine
->
display
.
init
=
nouveau_stub_init
;
engine
->
display
.
destroy
=
nouveau_stub_takedown
;
}
return
0
;
}
...
...
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