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
c674844b
Commit
c674844b
authored
Mar 11, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvd0/disp: fix dcb sor link matching in supervisor handler
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
6e83fda2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+9
-8
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
c674844b
...
@@ -1567,19 +1567,19 @@ static struct dcb_entry *
...
@@ -1567,19 +1567,19 @@ static struct dcb_entry *
lookup_dcb
(
struct
drm_device
*
dev
,
int
id
,
u32
mc
)
lookup_dcb
(
struct
drm_device
*
dev
,
int
id
,
u32
mc
)
{
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
int
type
,
or
,
i
;
int
type
,
or
,
i
,
link
=
-
1
;
if
(
id
<
4
)
{
if
(
id
<
4
)
{
type
=
OUTPUT_ANALOG
;
type
=
OUTPUT_ANALOG
;
or
=
id
;
or
=
id
;
}
else
{
}
else
{
switch
(
mc
&
0x00000f00
)
{
switch
(
mc
&
0x00000f00
)
{
case
0x00000000
:
type
=
OUTPUT_LVDS
;
break
;
case
0x00000000
:
link
=
0
;
type
=
OUTPUT_LVDS
;
break
;
case
0x00000100
:
type
=
OUTPUT_TMDS
;
break
;
case
0x00000100
:
link
=
0
;
type
=
OUTPUT_TMDS
;
break
;
case
0x00000200
:
type
=
OUTPUT_TMDS
;
break
;
case
0x00000200
:
link
=
1
;
type
=
OUTPUT_TMDS
;
break
;
case
0x00000500
:
type
=
OUTPUT_TMDS
;
break
;
case
0x00000500
:
link
=
0
;
type
=
OUTPUT_TMDS
;
break
;
case
0x00000800
:
type
=
OUTPUT_DP
;
break
;
case
0x00000800
:
link
=
0
;
type
=
OUTPUT_DP
;
break
;
case
0x00000900
:
type
=
OUTPUT_DP
;
break
;
case
0x00000900
:
link
=
1
;
type
=
OUTPUT_DP
;
break
;
default:
default:
NV_ERROR
(
dev
,
"PDISP: unknown SOR mc 0x%08x
\n
"
,
mc
);
NV_ERROR
(
dev
,
"PDISP: unknown SOR mc 0x%08x
\n
"
,
mc
);
return
NULL
;
return
NULL
;
...
@@ -1590,7 +1590,8 @@ lookup_dcb(struct drm_device *dev, int id, u32 mc)
...
@@ -1590,7 +1590,8 @@ lookup_dcb(struct drm_device *dev, int id, u32 mc)
for
(
i
=
0
;
i
<
dev_priv
->
vbios
.
dcb
.
entries
;
i
++
)
{
for
(
i
=
0
;
i
<
dev_priv
->
vbios
.
dcb
.
entries
;
i
++
)
{
struct
dcb_entry
*
dcb
=
&
dev_priv
->
vbios
.
dcb
.
entry
[
i
];
struct
dcb_entry
*
dcb
=
&
dev_priv
->
vbios
.
dcb
.
entry
[
i
];
if
(
dcb
->
type
==
type
&&
(
dcb
->
or
&
(
1
<<
or
)))
if
(
dcb
->
type
==
type
&&
(
dcb
->
or
&
(
1
<<
or
))
&&
(
link
<
0
||
link
==
!
(
dcb
->
sorconf
.
link
&
1
)))
return
dcb
;
return
dcb
;
}
}
...
...
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