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
f10956d4
Commit
f10956d4
authored
Aug 21, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bios/dp: use alternate set of drvctl values where necessary
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
7c11c99b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
+4
-5
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
View file @
f10956d4
...
...
@@ -148,7 +148,8 @@ nvbios_dpcfg_entry(struct nvkm_bios *bios, u16 outp, u8 idx,
outp
=
nvbios_dp_table
(
bios
,
ver
,
hdr
,
cnt
,
len
);
*
hdr
=
*
hdr
+
(
*
len
*
*
cnt
);
*
len
=
nv_ro08
(
bios
,
outp
+
0x06
);
*
cnt
=
nv_ro08
(
bios
,
outp
+
0x07
);
*
cnt
=
nv_ro08
(
bios
,
outp
+
0x07
)
*
nv_ro08
(
bios
,
outp
+
0x05
);
}
if
(
idx
<
*
cnt
)
...
...
@@ -196,12 +197,10 @@ nvbios_dpcfg_match(struct nvkm_bios *bios, u16 outp, u8 pc, u8 vs, u8 pe,
u16
data
;
if
(
*
ver
>=
0x30
)
{
/*XXX: there's a second set of these on at least 4.1, that
* i've witnessed nvidia using instead of the first
* on gm204. figure out what/why
*/
const
u8
vsoff
[]
=
{
0
,
4
,
7
,
9
};
idx
=
(
pc
*
10
)
+
vsoff
[
vs
]
+
pe
;
if
(
*
ver
>=
0x40
&&
*
hdr
>=
0x12
)
idx
+=
nv_ro08
(
bios
,
outp
+
0x11
)
*
40
;
}
else
{
while
((
data
=
nvbios_dpcfg_entry
(
bios
,
outp
,
++
idx
,
ver
,
hdr
,
cnt
,
len
)))
{
...
...
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