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
fc162088
Commit
fc162088
authored
Sep 10, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/kms: enable for non-vga pci classes
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
5495e39f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
21 deletions
+17
-21
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_display.c
+15
-20
drivers/gpu/drm/nouveau/nouveau_fbcon.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c
+2
-1
No files found.
drivers/gpu/drm/nouveau/nouveau_display.c
View file @
fc162088
...
@@ -278,7 +278,6 @@ nouveau_display_create(struct drm_device *dev)
...
@@ -278,7 +278,6 @@ nouveau_display_create(struct drm_device *dev)
{
{
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nouveau_display
*
disp
;
struct
nouveau_display
*
disp
;
u32
pclass
=
dev
->
pdev
->
class
>>
8
;
int
ret
,
gen
;
int
ret
,
gen
;
disp
=
drm
->
display
=
kzalloc
(
sizeof
(
*
disp
),
GFP_KERNEL
);
disp
=
drm
->
display
=
kzalloc
(
sizeof
(
*
disp
),
GFP_KERNEL
);
...
@@ -340,8 +339,6 @@ nouveau_display_create(struct drm_device *dev)
...
@@ -340,8 +339,6 @@ nouveau_display_create(struct drm_device *dev)
drm_kms_helper_poll_init
(
dev
);
drm_kms_helper_poll_init
(
dev
);
drm_kms_helper_poll_disable
(
dev
);
drm_kms_helper_poll_disable
(
dev
);
if
(
nouveau_modeset
==
1
||
(
nouveau_modeset
<
0
&&
pclass
==
PCI_CLASS_DISPLAY_VGA
))
{
if
(
drm
->
vbios
.
dcb
.
entries
)
{
if
(
drm
->
vbios
.
dcb
.
entries
)
{
if
(
nv_device
(
drm
->
device
)
->
card_type
<
NV_50
)
if
(
nv_device
(
drm
->
device
)
->
card_type
<
NV_50
)
ret
=
nv04_display_create
(
dev
);
ret
=
nv04_display_create
(
dev
);
...
@@ -361,8 +358,6 @@ nouveau_display_create(struct drm_device *dev)
...
@@ -361,8 +358,6 @@ nouveau_display_create(struct drm_device *dev)
}
}
nouveau_backlight_init
(
dev
);
nouveau_backlight_init
(
dev
);
}
return
0
;
return
0
;
vblank_err:
vblank_err:
...
...
drivers/gpu/drm/nouveau/nouveau_fbcon.c
View file @
fc162088
...
@@ -454,7 +454,8 @@ nouveau_fbcon_init(struct drm_device *dev)
...
@@ -454,7 +454,8 @@ nouveau_fbcon_init(struct drm_device *dev)
int
preferred_bpp
;
int
preferred_bpp
;
int
ret
;
int
ret
;
if
(
!
dev
->
mode_config
.
num_crtc
)
if
(
!
dev
->
mode_config
.
num_crtc
||
(
dev
->
pdev
->
class
>>
8
)
!=
PCI_CLASS_DISPLAY_VGA
)
return
0
;
return
0
;
fbcon
=
kzalloc
(
sizeof
(
struct
nouveau_fbdev
),
GFP_KERNEL
);
fbcon
=
kzalloc
(
sizeof
(
struct
nouveau_fbdev
),
GFP_KERNEL
);
...
...
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