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
6e8e268b
Commit
6e8e268b
authored
May 15, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/disp/dp: support training pattern 3
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
fb7c2a71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
drivers/gpu/drm/nouveau/core/engine/disp/dport.c
drivers/gpu/drm/nouveau/core/engine/disp/dport.c
+7
-2
drivers/gpu/drm/nouveau/core/engine/disp/dport.h
drivers/gpu/drm/nouveau/core/engine/disp/dport.h
+1
-0
No files found.
drivers/gpu/drm/nouveau/core/engine/disp/dport.c
View file @
6e8e268b
...
...
@@ -202,7 +202,10 @@ dp_link_train_eq(struct dp_state *dp)
bool
eq_done
=
false
,
cr_done
=
true
;
int
tries
=
0
,
i
;
dp_set_training_pattern
(
dp
,
2
);
if
(
dp
->
dpcd
[
2
]
&
DPCD_RC02_TPS3_SUPPORTED
)
dp_set_training_pattern
(
dp
,
3
);
else
dp_set_training_pattern
(
dp
,
2
);
do
{
if
(
dp_link_train_update
(
dp
,
400
))
...
...
@@ -316,8 +319,10 @@ nouveau_dp_train(struct nouveau_disp *disp, const struct nouveau_dp_func *func,
}
/* bring capabilities within encoder limits */
if
(
nv_oclass
(
disp
)
->
handle
<
NV_ENGINE
(
DISP
,
0x90
))
dp
->
dpcd
[
2
]
&=
~
DPCD_RC02_TPS3_SUPPORTED
;
if
((
dp
->
dpcd
[
2
]
&
0x1f
)
>
dp
->
outp
->
dpconf
.
link_nr
)
{
dp
->
dpcd
[
2
]
&=
~
0x1f
;
dp
->
dpcd
[
2
]
&=
~
DPCD_RC02_MAX_LANE_COUNT
;
dp
->
dpcd
[
2
]
|=
dp
->
outp
->
dpconf
.
link_nr
;
}
if
(
dp
->
dpcd
[
1
]
>
dp
->
outp
->
dpconf
.
link_bw
)
...
...
drivers/gpu/drm/nouveau/core/engine/disp/dport.h
View file @
6e8e268b
...
...
@@ -6,6 +6,7 @@
#define DPCD_RC01_MAX_LINK_RATE 0x00001
#define DPCD_RC02 0x00002
#define DPCD_RC02_ENHANCED_FRAME_CAP 0x80
#define DPCD_RC02_TPS3_SUPPORTED 0x40
#define DPCD_RC02_MAX_LANE_COUNT 0x1f
#define DPCD_RC03 0x00003
#define DPCD_RC03_MAX_DOWNSPREAD 0x01
...
...
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