From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757434Ab1KRJhp (ORCPT ); Fri, 18 Nov 2011 04:37:45 -0500 Received: from mga03.intel.com ([143.182.124.21]:56156 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757204Ab1KRJhn (ORCPT ); Fri, 18 Nov 2011 04:37:43 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.69,532,1315206000"; d="scan'208";a="76540678" Date: Fri, 18 Nov 2011 17:37:40 +0800 From: Wu Fengguang To: Keith Packard Cc: Takashi Iwai , "Wang, Zhenyu Z" , "dri-devel@lists.freedesktop.org" , "intel-gfx@lists.freedesktop.org" , LKML Subject: Re: [PATCH 3/3] drm/i915: hot removal notification to HDMI audio driver Message-ID: <20111118093740.GA2799@localhost> References: <20111116132004.299754849@intel.com> <20111116132221.374839261@intel.com> <20111116133548.GA23804@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111116133548.GA23804@localhost> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update: Just tested DP and its working! However, it's found that hot plug under X won't work... The previous hot plug tests are done in KMS console which are all fine: on re-inserting the monitor, ->mode_set will be called and HDMI/DP audio will be re-enabled and ELD be transfered. However when in X, ->mode_set won't be called at all. Only ->get_modes and ->detect are called... Thanks, Fengguang On Wed, Nov 16, 2011 at 09:35:48PM +0800, Wu Fengguang wrote: > Sorry forgot to remove this left over chunk... > > Note that I've not yet got the hardware to test the DisplayPort part > of this patch, but should be able to do so this week. > > > --- linux.orig/drivers/gpu/drm/i915/intel_drv.h 2011-11-16 20:54:27.000000000 +0800 > > +++ linux/drivers/gpu/drm/i915/intel_drv.h 2011-11-16 21:19:42.000000000 +0800 > > @@ -382,6 +382,10 @@ extern void intel_fb_restore_mode(struct > > extern void intel_init_clock_gating(struct drm_device *dev); > > extern void intel_write_eld(struct drm_encoder *encoder, > > struct drm_display_mode *mode); > > +extern void intel_hotplug_status(struct drm_device *dev, > > + struct drm_connector *connector, > > + struct drm_crtc *crtc, > > + enum drm_connector_status status); > > extern void intel_cpt_verify_modeset(struct drm_device *dev, int pipe); > > > > #endif /* __INTEL_DRV_H__ */