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
887a82ee
Commit
887a82ee
authored
Jul 25, 2011
by
Keith Packard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'drm-intel-fixes' into drm-intel-next
parents
df797679
a65e34c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
21 deletions
+27
-21
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_irq.c
+3
-0
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_dp.c
+24
-21
No files found.
drivers/gpu/drm/i915/i915_irq.c
View file @
887a82ee
...
...
@@ -306,6 +306,7 @@ static void i915_hotplug_work_func(struct work_struct *work)
struct
drm_mode_config
*
mode_config
=
&
dev
->
mode_config
;
struct
intel_encoder
*
encoder
;
mutex_lock
(
&
mode_config
->
mutex
);
DRM_DEBUG_KMS
(
"running encoder hotplug functions
\n
"
);
list_for_each_entry
(
encoder
,
&
mode_config
->
encoder_list
,
base
.
head
)
...
...
@@ -314,6 +315,8 @@ static void i915_hotplug_work_func(struct work_struct *work)
/* Just fire off a uevent and let userspace tell us what to do */
drm_helper_hpd_irq_event
(
dev
);
mutex_unlock
(
&
mode_config
->
mutex
);
}
static
void
i915_handle_rps_change
(
struct
drm_device
*
dev
)
...
...
drivers/gpu/drm/i915/intel_dp.c
View file @
887a82ee
...
...
@@ -52,7 +52,7 @@ struct intel_dp {
uint32_t
color_range
;
uint8_t
link_bw
;
uint8_t
lane_count
;
uint8_t
dpcd
[
4
];
uint8_t
dpcd
[
8
];
struct
i2c_adapter
adapter
;
struct
i2c_algo_dp_aux_data
algo
;
bool
is_pch_edp
;
...
...
@@ -770,6 +770,7 @@ intel_dp_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode,
memset
(
intel_dp
->
link_configuration
,
0
,
DP_LINK_CONFIGURATION_SIZE
);
intel_dp
->
link_configuration
[
0
]
=
intel_dp
->
link_bw
;
intel_dp
->
link_configuration
[
1
]
=
intel_dp
->
lane_count
;
intel_dp
->
link_configuration
[
8
]
=
DP_SET_ANSI_8B10B
;
/*
* Check for DPCD version > 1.1 and enhanced framing support
...
...
@@ -1596,11 +1597,23 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
}
}
static
enum
drm_connector_status
i915_dp_detect_common
(
struct
intel_dp
*
intel_dp
)
{
enum
drm_connector_status
status
=
connector_status_disconnected
;
if
(
intel_dp_aux_native_read_retry
(
intel_dp
,
0x000
,
intel_dp
->
dpcd
,
sizeof
(
intel_dp
->
dpcd
))
&&
(
intel_dp
->
dpcd
[
DP_DPCD_REV
]
!=
0
))
status
=
connector_status_connected
;
return
status
;
}
static
enum
drm_connector_status
ironlake_dp_detect
(
struct
intel_dp
*
intel_dp
)
{
enum
drm_connector_status
status
;
bool
ret
;
/* Can't disconnect eDP, but you can close the lid... */
if
(
is_edp
(
intel_dp
))
{
...
...
@@ -1610,15 +1623,7 @@ ironlake_dp_detect(struct intel_dp *intel_dp)
return
status
;
}
status
=
connector_status_disconnected
;
ret
=
intel_dp_aux_native_read_retry
(
intel_dp
,
0x000
,
intel_dp
->
dpcd
,
sizeof
(
intel_dp
->
dpcd
));
if
(
ret
&&
intel_dp
->
dpcd
[
DP_DPCD_REV
]
!=
0
)
status
=
connector_status_connected
;
DRM_DEBUG_KMS
(
"DPCD: %hx%hx%hx%hx
\n
"
,
intel_dp
->
dpcd
[
0
],
intel_dp
->
dpcd
[
1
],
intel_dp
->
dpcd
[
2
],
intel_dp
->
dpcd
[
3
]);
return
status
;
return
i915_dp_detect_common
(
intel_dp
);
}
static
enum
drm_connector_status
...
...
@@ -1626,7 +1631,6 @@ g4x_dp_detect(struct intel_dp *intel_dp)
{
struct
drm_device
*
dev
=
intel_dp
->
base
.
base
.
dev
;
struct
drm_i915_private
*
dev_priv
=
dev
->
dev_private
;
enum
drm_connector_status
status
;
uint32_t
temp
,
bit
;
switch
(
intel_dp
->
output_reg
)
{
...
...
@@ -1648,15 +1652,7 @@ g4x_dp_detect(struct intel_dp *intel_dp)
if
((
temp
&
bit
)
==
0
)
return
connector_status_disconnected
;
status
=
connector_status_disconnected
;
if
(
intel_dp_aux_native_read
(
intel_dp
,
0x000
,
intel_dp
->
dpcd
,
sizeof
(
intel_dp
->
dpcd
))
==
sizeof
(
intel_dp
->
dpcd
))
{
if
(
intel_dp
->
dpcd
[
DP_DPCD_REV
]
!=
0
)
status
=
connector_status_connected
;
}
return
status
;
return
i915_dp_detect_common
(
intel_dp
);
}
/**
...
...
@@ -1674,11 +1670,18 @@ intel_dp_detect(struct drm_connector *connector, bool force)
struct
edid
*
edid
=
NULL
;
intel_dp
->
has_audio
=
false
;
memset
(
intel_dp
->
dpcd
,
0
,
sizeof
(
intel_dp
->
dpcd
));
if
(
HAS_PCH_SPLIT
(
dev
))
status
=
ironlake_dp_detect
(
intel_dp
);
else
status
=
g4x_dp_detect
(
intel_dp
);
DRM_DEBUG_KMS
(
"DPCD: %02hx%02hx%02hx%02hx%02hx%02hx%02hx%02hx
\n
"
,
intel_dp
->
dpcd
[
0
],
intel_dp
->
dpcd
[
1
],
intel_dp
->
dpcd
[
2
],
intel_dp
->
dpcd
[
3
],
intel_dp
->
dpcd
[
4
],
intel_dp
->
dpcd
[
5
],
intel_dp
->
dpcd
[
6
],
intel_dp
->
dpcd
[
7
]);
if
(
status
!=
connector_status_connected
)
return
status
;
...
...
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