Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1451095imm; Thu, 5 Jul 2018 23:49:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcMO2tBO6z4sIRlBrUp17TbdRQHwi2PSPFv6Gr+ax/aOiDwIm6221MH6GvsF0vqA1VwbtYV X-Received: by 2002:a63:7007:: with SMTP id l7-v6mr8337923pgc.206.1530859782383; Thu, 05 Jul 2018 23:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530859782; cv=none; d=google.com; s=arc-20160816; b=tlNUBmtA4wn0zwGZS29YzELOYWKEgIDM6G25hq5hXPhpTyeVGxwJDh7+1eGIqORNdX ncasP2A2QvnbuI1larwG7vpPdhG2q2V/dBvAkdCLYtT4JoYqB2/9sPKHoU1H4qSyFUnL COkPvTUAu7+cWXoDYlX1JvlyWbtBoP2iWzoZoN/1XHTC2S7r4DKuTt1G7wQuHa/D9XjT a3obUAQm/0hycvna/lhMXLMtT2xYsTWYfLUM34UHwW8lXNcFB7ZsuouIofreVbIsYGRg pVtjWgAhYNeYASgczq2CCqyWgaj14aXsaBQXp3lS4mMCFQ7kd/0NeDOC1Qw/Ld+OeGmy xkJg== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=/3J0OBrA0QeSoc/Wpva1Opg938FGWpIUN3NjQ2Jz69o=; b=sZDJF0MQ70wdE/PiB7bLfvlRSxmQTETQtOv0zC+Sxpn19/sgbsWlUOdziPHFPMT+Y5 n8O3hwYY2+DHo5tXY0ht3luij37DKg9xeu7kMWtTm0qG8te0+htv3WVj++O7p3T7CHC5 0R9SlAZZOejtAA75l7/MgSYMk+KmTJ4rJW8BHESEwCfnMDPXjgSZIxE68XS621jhC+KB NAf34+cwRkggVLmaydRCzMzV5j04IIAiEM0qCvMvLAE/iqSbAYBjdReL40toGpxsTRrW +rPVqCZcYRGNugBwRnXykj9iOui6EgZbUH3Hd4hXZUzcAEaZNOnVTsnF9YPmYYH2LnX1 I1vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=hghleviB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si8740069pfm.7.2018.07.05.23.49.04; Thu, 05 Jul 2018 23:49:42 -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; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=hghleviB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754066AbeGFGpC (ORCPT + 99 others); Fri, 6 Jul 2018 02:45:02 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:39703 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753755AbeGFGpA (ORCPT ); Fri, 6 Jul 2018 02:45:00 -0400 Received: by mail-ed1-f65.google.com with SMTP id w14-v6so7877737eds.6 for ; Thu, 05 Jul 2018 23:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/3J0OBrA0QeSoc/Wpva1Opg938FGWpIUN3NjQ2Jz69o=; b=hghleviBinNQsowPKLiyX4fwr9OpYxuwYjKwUyuR+ajImCNwuqcKVsy+NffXy25MAB zFBirKnMeC/2YSPQKw3NjOa5ogyxzO1NgtZeFZUhkX0C6/3fttyy0bjB3B0Kay67EDkS mw5x1tV583zv1XpzqFKEGpYRbZwtudOMfqdS+bP1Sccy5C4dIjSOwIdBuNxQNf4vND9w UeosjB9RMEOSjNx0YQ0aX8fYk1LQacXXYeqC6/il10NVOEHVfIjQUtCJNHf2GyO7E327 YJzo+PISdqc0lF8mZESlAnOmj9Jf2GUfttcGu0N+bON1+hIq15f05S7DCxfxG9RUf92M yPEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/3J0OBrA0QeSoc/Wpva1Opg938FGWpIUN3NjQ2Jz69o=; b=kPXoFZy5iShK7ryxIwO7xPhvXSErKVbDjO9K8NtvEt5qxA4Xk5JALs68+IwPWmeeiM 7QYnqft+RpW8SaJet5Pu6lOoQRAiowV8cErZs07Bnu380x9UagZjfACa4U5fNxGl+7dY TKIhs83VZj54B+vw8szWZi7bDnP1FbbE0z7KBme8XVZeTaFitdCcCNr/bIp+gygBODvk rp7g6K9BqTqmpqWzS53bAhzxif8P82Yh6YHxQeFC3XhMIMoDRgTP4yzpr84QCYiOpFN9 bFy84akGnt3cBHIVP39XOf8THlykIZSSxOIPeD8SAtbAxSqxxzjrwYr4XdzTAWVtbzA9 bq+Q== X-Gm-Message-State: APt69E0EjOyM6P+e+SF/hFzSIuRqvwo+Gqyp5iMbbXynNHgHLdV8N7+x 4vWdWkGfuaihZgeBV+aIf2WVw3rydX35tKiIjPYm3g== X-Received: by 2002:a50:a0c5:: with SMTP id 63-v6mr9320224edo.47.1530859499126; Thu, 05 Jul 2018 23:44:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:90f9:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 23:44:58 -0700 (PDT) In-Reply-To: <20180705144009.GC5565@intel.com> References: <20180705144009.GC5565@intel.com> From: Chris Chiu Date: Fri, 6 Jul 2018 14:44:58 +0800 Message-ID: Subject: Re: [BUG] i915 HDMI connector status is connected after disconnection To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 5, 2018 at 10:40 PM, Ville Syrj=C3=A4l=C3=A4 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=C3=A4l=C3=A4 > Intel 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