<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body text="#000000" bgcolor="#FFFFFF"><br>
<br>
<blockquote style="border: 0px none;" 
cite="mid:1400640904-16847-5-git-send-email-airlied@gmail.com" 
type="cite">
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="airlied@gmail.com" photoname="Dave Airlie" 
src="cid:part1.07010005.08060901@gmail.com" name="postbox-contact.jpg" 
width="25px" height="25px"></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:airlied@gmail.com" 
style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Dave Airlie</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">Tuesday, May 20, 
2014 7:54 PM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody"><div>From: Dave Airlie 
<a class="moz-txt-link-rfc2396E" href="mailto:airlied@redhat.com"><airlied@redhat.com></a><br><br>This can be called to update things 
after dynamic connectors/encoders<br>are created/deleted.<br><br>Signed-off-by:
 Dave Airlie <a class="moz-txt-link-rfc2396E" href="mailto:airlied@redhat.com"><airlied@redhat.com></a><br>---<br> 
drivers/gpu/drm/drm_crtc.c | 9 +++++++++<br> include/drm/drm_crtc.h     |
 1 +<br> 2 files changed, 10 insertions(+)<br><br>diff --git 
a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c<br>index 
f1753e6..8bf87a6 100644<br>--- a/drivers/gpu/drm/drm_crtc.c<br>+++ 
b/drivers/gpu/drm/drm_crtc.c<br>@@ -1421,6 +1421,15 @@ int 
drm_mode_group_init_legacy_group(struct drm_device *dev,<br> }<br> 
EXPORT_SYMBOL(drm_mode_group_init_legacy_group);<br> <br>+void 
drm_reinit_primary_mode_group(struct drm_device *dev)<br>+{<br>+    
drm_modeset_lock_all(dev);<br>+   
drm_mode_group_destroy(&dev->primary->mode_group);<br>+ 
drm_mode_group_init_legacy_group(dev, 
&dev->primary->mode_group);<br>+        drm_modeset_unlock_all(dev);<br>+}<br>+EXPORT_SYMBOL(drm_reinit_primary_mode_group);<br>+<br>
 /**<br>  * drm_crtc_convert_to_umode - convert a drm_display_mode into a
 modeinfo<br>  * @out: drm_mode_modeinfo struct to return to the user<br>diff
 --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h<br>index 
c6b9e8a..55bc523 100644<br>--- a/include/drm/drm_crtc.h<br>+++ 
b/include/drm/drm_crtc.h<br>@@ -916,6 +916,7 @@ extern const char 
*drm_get_tv_select_name(int val);<br> extern void drm_fb_release(struct 
drm_file *file_priv);<br> extern int 
drm_mode_group_init_legacy_group(struct drm_device *dev, struct 
drm_mode_group *group);<br> extern void drm_mode_group_destroy(struct 
drm_mode_group *group);<br>+extern void 
drm_reinit_primary_mode_group(struct drm_device *dev);<br> extern bool 
drm_probe_ddc(struct i2c_adapter *adapter);<br> extern struct edid 
*drm_get_edid(struct drm_connector *connector,<br>                                 struct 
i2c_adapter *adapter);<br></div></div>
</blockquote>
<br>
<span><span style="color: rgb(51, 51, 51); font-family: Arial, 
sans-serif; font-size: 13px; font-style: normal; font-variant: normal; 
font-weight: normal; letter-spacing: normal; line-height: 19px; orphans:
 auto; text-align: left; text-indent: 0px; text-transform: none; 
white-space: normal; widows: auto; word-spacing: 0px; 
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); 
display: inline !important; float: none;">Reviewed-by: Todd Previte 
<a class="moz-txt-link-rfc2396E" href="mailto:tprevite@gmail.com"><tprevite@gmail.com></a></span></span><br>
<blockquote style="border: 0px none;" 
cite="mid:1400640904-16847-5-git-send-email-airlied@gmail.com" 
type="cite">
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="airlied@gmail.com" photoname="Dave Airlie" 
src="cid:part1.07010005.08060901@gmail.com" name="postbox-contact.jpg" 
width="25px" height="25px"></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:airlied@gmail.com" 
style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Dave Airlie</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">Tuesday, May 20, 
2014 7:54 PM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody"><div>Hey,<br><br>So this set is
 pretty close to what I think we should be merging initially,<br><br>Since
 the last set, it makes fbcon and suspend/resume work a lot better,<br><br>I've
 also fixed a couple of bugs in -intel that make things work a lot<br>better.<br><br>I've
 bashed on this a bit using kms-flip from intel-gpu-tools, hacked<br>to 
add 3 monitor support.<br><br>It still generates a fair few i915 state 
checker backtraces, and some<br>of them are fairly hard to work out, it 
might be we should just tone<br>down the state checker for 
encoders/connectors with no actual hw backing<br>them.<br><br>Dave.<br><br>_______________________________________________<br>Intel-gfx
 mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Intel-gfx@lists.freedesktop.org">Intel-gfx@lists.freedesktop.org</a><br><a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/intel-gfx">http://lists.freedesktop.org/mailman/listinfo/intel-gfx</a><br></div></div>
</blockquote>
</body></html>