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
b01f0608
Commit
b01f0608
authored
Jul 23, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: disable hotplug detect around DP link training
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
d0875edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drivers/gpu/drm/nouveau/nouveau_dp.c
drivers/gpu/drm/nouveau/nouveau_dp.c
+15
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_dp.c
View file @
b01f0608
...
...
@@ -23,8 +23,10 @@
*/
#include "drmP.h"
#include "nouveau_drv.h"
#include "nouveau_i2c.h"
#include "nouveau_connector.h"
#include "nouveau_encoder.h"
static
int
...
...
@@ -271,6 +273,7 @@ nouveau_dp_link_train(struct drm_encoder *encoder)
{
struct
drm_device
*
dev
=
encoder
->
dev
;
struct
nouveau_encoder
*
nv_encoder
=
nouveau_encoder
(
encoder
);
struct
nouveau_connector
*
nv_connector
;
struct
bit_displayport_encoder_table
*
dpe
;
int
dpe_headerlen
;
uint8_t
config
[
4
],
status
[
3
];
...
...
@@ -279,12 +282,21 @@ nouveau_dp_link_train(struct drm_encoder *encoder)
NV_DEBUG_KMS
(
dev
,
"link training!!
\n
"
);
nv_connector
=
nouveau_encoder_connector_get
(
nv_encoder
);
if
(
!
nv_connector
)
return
false
;
dpe
=
nouveau_bios_dp_table
(
dev
,
nv_encoder
->
dcb
,
&
dpe_headerlen
);
if
(
!
dpe
)
{
NV_ERROR
(
dev
,
"SOR-%d: no DP encoder table!
\n
"
,
nv_encoder
->
or
);
return
false
;
}
/* disable hotplug detect, this flips around on some panels during
* link training.
*/
nv50_gpio_irq_enable
(
dev
,
nv_connector
->
dcb
->
gpio_tag
,
false
);
if
(
dpe
->
script0
)
{
NV_DEBUG_KMS
(
dev
,
"SOR-%d: running DP script 0
\n
"
,
nv_encoder
->
or
);
nouveau_bios_run_init_table
(
dev
,
le16_to_cpu
(
dpe
->
script0
),
...
...
@@ -423,6 +435,9 @@ nouveau_dp_link_train(struct drm_encoder *encoder)
nv_encoder
->
dcb
);
}
/* re-enable hotplug detect */
nv50_gpio_irq_enable
(
dev
,
nv_connector
->
dcb
->
gpio_tag
,
true
);
return
eq_done
;
}
...
...
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