Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp712850imm; Thu, 5 Jul 2018 07:42:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcVmTrQ7pIh+nPMMVge9kgYhKqzJVp/piURNPNIkf5fIcLBqWQAOu3v9OaJQZX0PfyX/0Pr X-Received: by 2002:a62:ed13:: with SMTP id u19-v6mr6734139pfh.125.1530801756343; Thu, 05 Jul 2018 07:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530801756; cv=none; d=google.com; s=arc-20160816; b=ngOeX25gXlOnFKiCZ0pvt/MFeZKeZdKX+/xWuHTBDHbCRe0oPCyjPoB3eQw02yaMrl QUiuPtUmC1VtJWDSDWE8+ZBtbBJ4NG2xtgTAKNlmnjGE25dXdinvWD3whcYLuWdMyeYf 1NiH5IJySFn+H2XmQqRBAeidNFeeIWpWDsiYknu1c8OwehUqwPmyZ8ex/Xl4DAoB7ubF xMe0lvV853gfrVRH3M1vczZmnBd5TEc4XmLJ7DgN5c2GumXATk2T6DBcik/5BDzCMGaw BRqtUAePwJ+LuxWlqj4gv8bV3HHckIBW6mRBaYA7s8QeMA35wk7dfOmrqGqKaKzGduIr fP4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=FUoDAMzZ5i2VIOY5ZFUZAQAz66hqAZzYF05sXW7uuEQ=; b=IpH8l165SmuCyZSiP8EyDt4vNWwA4zVbi++k/ZIY5PyPgdBWpYpcub7tRhPlk+ssuN hB+8wY2xOEWve3jtiLUuVmYDcGTiTv0F0bt0HrgniihK2eGSabnWBhXrhcsNGhBJxo4m OOmzIAVaIOXLDK+pQ53zMRT8dFJ61i3uc2lj45jc4+gN7/7NLPBGX7akV0W4jbdKbU7f /6K9tyJTNEc6vyKi0lt5DZeuNJtGOxgR9B7km67c/zXgIzjzobbNs+lBNrKw3A+5jKug z5PSXNPxMH1Gp7OQcQKFAyGVVuy1QlPwryfTN5VMJ0x1HFIZiye0ikeosfr1tUOTc29e Uujg== 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 1-v6si5942149plx.227.2018.07.05.07.42.20; Thu, 05 Jul 2018 07:42:36 -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 S1753775AbeGEOkc (ORCPT + 99 others); Thu, 5 Jul 2018 10:40:32 -0400 Received: from mga01.intel.com ([192.55.52.88]:62182 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353AbeGEOkb (ORCPT ); Thu, 5 Jul 2018 10:40:31 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jul 2018 07:40:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,312,1526367600"; d="scan'208";a="72479836" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga002.jf.intel.com with SMTP; 05 Jul 2018 07:40:10 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 05 Jul 2018 17:40:09 +0300 Date: Thu, 5 Jul 2018 17:40:09 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Chris Chiu Cc: Jani Nikula , 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 Message-ID: <20180705144009.GC5565@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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