Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2957227imm; Fri, 24 Aug 2018 08:10:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaDP4Mx3yHEw+Y7CuGY5IZ3ab6TKQmedrTi9N5ZC1TVTk8kAxpksYQOwFMNSuKXhNd+yL6q X-Received: by 2002:a62:e08b:: with SMTP id d11-v6mr2437391pfm.214.1535123403086; Fri, 24 Aug 2018 08:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535123403; cv=none; d=google.com; s=arc-20160816; b=cnHhFNmyZCVayMqiXk3Y74Mj5tnyP6Co6GDaKYy6XKiaSYpNgMoxaYRMfhO9EwykfW uLiDI9K7s/uH1+G6PW1nmtO224B9HPzo4L+hxLSgmFNyfnreWdpyMGBiWDrCdF/KeDxq uUQRxOUPOKk29S5QRUwWtSx3r+FJ4uPfyNKj9BpKUTAZSaYw8CQmO/L9N4cIWfmPPgW9 AMlouTpxvLCdajANQ0/MoYdHdRIyg+je/YuGF7I3W40LB1kET078xdu8OqOTlTtxg932 2XXejngviNEStP3k6N/FIA4NJYwtElE1qaVDJW3q5+XPhQyBwd4rF3XmX8lH2Eg3gC7P N9Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:organization:in-reply-to:subject:cc:to :from:arc-authentication-results; bh=y1gp8YYX1KG6oih7Ug9PfGNgbM4KwTQD/ZZhnm0xxR4=; b=a31IeeD8lSvb2YLI7zocN5P15ykZQDTyXht4TLVmGeOpF9Ju/mBJgUf8unPZ3II/iI lXVEoPUo00A6BW02JJGNmGrcGcIbPPeLoFivLFDi4RdR27O/BGG79rnKEqVUspJLrrkX M69t0+CeCikkqcZrHolYUyoz6dKKyVCeKx4no6r9euC+lN2D7Khyk96sFJ7f4qkY29Ue QB8GlZBxE9mCDxjJt9AtI0x811ZyhgFdKADDKoLvp0bwMMOkhB1iMM7QH+7YN1L1V1tV QBw/WrTe3jxdjZ0nhLE7N9p1ATRMdKJ2WGcutiMiwXsuXLxQUjtIZnp+2mhkj0sYP3gj khQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13-v6si8018962pfj.230.2018.08.24.08.09.24; Fri, 24 Aug 2018 08:10:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727027AbeHXSjJ convert rfc822-to-8bit (ORCPT + 99 others); Fri, 24 Aug 2018 14:39:09 -0400 Received: from mga12.intel.com ([192.55.52.136]:62705 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbeHXSjJ (ORCPT ); Fri, 24 Aug 2018 14:39:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Aug 2018 08:04:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,283,1531810800"; d="scan'208";a="84204811" Received: from bpeschka-mobl.amr.corp.intel.com (HELO localhost) ([10.252.24.83]) by fmsmga001.fm.intel.com with ESMTP; 24 Aug 2018 08:04:04 -0700 From: Jani Nikula To: Chris Chiu , Ville =?utf-8?B?U3lyasOkbMOk?= Cc: joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, David Airlie , intel-gfx@lists.freedesktop.org, Linux Upstreaming Team , Linux Kernel , dri-devel Subject: Re: [BUG] i915 HDMI connector status is connected after disconnection In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20180705144009.GC5565@intel.com> Date: Fri, 24 Aug 2018 18:04:30 +0300 Message-ID: <87tvnjlsap.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 22 Aug 2018, Chris Chiu wrote: > On Fri, Jul 6, 2018 at 2:44 PM, Chris Chiu wrote: >> On Thu, Jul 5, 2018 at 10:40 PM, Ville Syrjälä >> wrote: >>> On Thu, Jul 05, 2018 at 03:58:36PM +0800, Chris Chiu wrote: >>>> Hi, >>>> We have few ASUS laptops X705FD (The new WiskyLake), X560UD (intel >>>> i5-8250U), X530UN (intel i7-8550U) share the same problem, which is >>>> the HDMI connector status stays connected even the HDMI cable has been >>>> unplugged. Look into the "/sys/class/drm/card0-HDMI-A-1/status" for >>>> checking the status while plug/unplug the HDMI, it shows >>>> "disconnected" before plug in HDMI cable, then switch to "connected" >>>> after plugin, and still stay "connected" after unplug. This would >>>> cause the audio output path cannot correctly switch from HDMI to >>>> internal speaker after unplugging the HDMI. >>>> >>>> I then try to verify with the latest kernel 4.18.0-rc3+, the bug still >>>> present. The full "dmesg" log is here. >>>> https://gist.github.com/mschiu77/d761d7c5cf191b7868d4d7788ae087f1 >>>> >>>> The HDMI cable is plugged in at ~26th second. >>>> "[ 26.214371] [drm:drm_detect_monitor_audio [drm]] Monitor has basic >>>> audio support" >>>> then unplug the HDMI at ~73th second. >>>> "[ 73.328361] [drm:drm_detect_monitor_audio [drm]] Monitor has basic >>>> audio support" >>>> >>>> Please advise what I can do to fix this. Thanks >>> >>> Pull the cable out faster? >>> >>> I presume this is the same old case of hpd disconnecting slightly >>> before ddc and we still manage to read the EDID when processing >>> the hpd irq. We kinda tried to fix that with the live status >>> check but that thing failed spectacularly. >>> >>> -- >>> Ville Syrjälä >>> Intel > > There's a patch https://bugs.freedesktop.org/show_bug.cgi?id=107125#c8. > And I verified on the X705FD/X560UD which were easy to reproduce, the patch > works as expected. Can anyone kindly give comments about this patch? > We can do anything to help fix this issue upstream. Thanks Seems like a hack. Should look into hw based debouncing or a slight delay in the hotplug work processing I think. BR, Jani. > > Chris > >> Thanks for the suggestion. I tried pulling the cable out faster, the status >> shows correctly. I also tried branch drm-tip of >> https://cgit.freedesktop.org/drm/drm-tip >> but the symptom persists. >> >> Anything I can help here? Or any old commit/patch I can try to do some >> experiments? >> >> Chris -- Jani Nikula, Intel Open Source Graphics Center