Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp58751imm; Tue, 21 Aug 2018 23:32:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyKSsThS4njneW4n28Di32FFRt/H+IfYBwVKFBATdAO0S7+nfe+O3YTNwuLiUl4ayVwAKEI X-Received: by 2002:a63:66c7:: with SMTP id a190-v6mr50316590pgc.411.1534919568074; Tue, 21 Aug 2018 23:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534919568; cv=none; d=google.com; s=arc-20160816; b=eAKGKfhOpSoCHoe8HEANlTnVYbUxMdbJDU+PEAUPFlChAcIN40ndl3K1COvEA+NbK1 icLC56wmtptWqbXzjt25vaXVdn+odqT7pvl5O1vSgBm9VTx3bNSVS6f3zuz/+SSlJfZ/ mBc9nYCsFCXbp5S2myKUQoME3ry+KHPWFSMnjTKR6eTc6rKZ7xVZ16/hcgElObJWKZM6 7OGNJqy8x1hOL2YfpBKYTsWq53LvPZLC6ONARfhkbmJVnyhXuhPfIJgWYoQLvIrAmpS5 6z17khM+qvQSpZKMkHhR1TQnvwbRq8toTAniuRXnPhVtCxPuUSDPbQSpW9Ek30BlYq8i 08Ew== 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=mWcrqUkUGdT0/ZPdn5cOKzjQXWX9ij+8FFianD/3IHs=; b=tOoXFsKcwHJKOXQgKYHLn4n1vW4xJ+sO/+LClI9OeEXStU53Ka/Y7YdXbZmEtciKys UJD8+9v5W+KxN1vJHAa5SMTq/uiEw+/oYX4Ojv9bfI4j//jEc3RM1imlHtShI6LlWK/0 N+h9sLDca8NraQuW44n0PXOXj2t8ZrpWrJ1GndaT9gwQEevILDbhLI6XEd7PsBFGjRct gJYIbL4I7KkQpR78SSVxhx5EQQHEoTQMj+9IhiPrzELDgV4JZFeDM5B8Hq12HuBJ9ln6 Ndpmn83u/+WKWPAI1zZGRvG3Np/p7rwr769TDwwQmKPzFNH+wSIoPZlkxmEL+5rqjI9/ txbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=GJ0sBtdy; 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 c9-v6si847529pll.306.2018.08.21.23.32.33; Tue, 21 Aug 2018 23:32:48 -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=GJ0sBtdy; 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 S1728165AbeHVJyM (ORCPT + 99 others); Wed, 22 Aug 2018 05:54:12 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:52995 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbeHVJyM (ORCPT ); Wed, 22 Aug 2018 05:54:12 -0400 Received: by mail-it0-f67.google.com with SMTP id d9-v6so1607777itf.2 for ; Tue, 21 Aug 2018 23:30:44 -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=mWcrqUkUGdT0/ZPdn5cOKzjQXWX9ij+8FFianD/3IHs=; b=GJ0sBtdy+mSXzmE8SKEHLvNnvbifrBqxAuJwBlEvqoSrj0vyois86nTAQnQDswfxIA h3EsIi3SF6bbzA/jbYAoMwJ+VDcgyq/s2yfpy1BphgBlqBHjZtC32CyODGu6CcT3s/Qn QBQyLBUwTlLQpxhF6XuV32MwmFByvuVoA0jp/ewxb76IJrjXhXdp9oTW7taddSiZHd3x F/oQslJVSTVxZwtgRaobZ71mHzLI4Qo345lsZUrcNGLNszJYphWKEGiF+Y/wGGo7QgDh lGxOmatNieQGvtkwO+yTklAclGB2pzfN2WZbNN20ZQFq1HP0JWwL3n3ZGcUEcSY1F4pJ UV6A== 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=mWcrqUkUGdT0/ZPdn5cOKzjQXWX9ij+8FFianD/3IHs=; b=Gu1fE23MJcqFB6+W28MWvxOvboOY/N7R9+wrWGy91GZLfok3l7QZIl6mcCjcVkh95E 6z5rKiQRlqcnq6t69JXDUQMHcTIe1z2tA7+6DO5w4QpNic3LyBQF1hiJWYElaUrlHLVO EL8+aqVdrfWb+4XUJ9Hq09dMJQ8PLX8/7QlwxnTQnUhsjvfpnROY/oOJdk6/bWieDyPm 0vJmWxRncmo4OVGMwYLY+zxXzndNfKj1YBJ5Tdy5OqV0i0KB4dnInZbwewSvbfVqad2K W2GeDo5O91A4cBwupCb2qJwnlQDMuh4V/EFZYGgQ2Q8iYybvKFBxlZcu5XghKh8l5mYQ 7lTw== X-Gm-Message-State: AOUpUlEm4S8cY3glBiHjY/LziaWsVsThz5Bhd/VBSaBiCF8bB9SJAVw7 IcgBNL9R3Uk/jegfsn6nnrY/dqOaySv0xHEByugZzg== X-Received: by 2002:a02:4009:: with SMTP id n9-v6mr48525528jaa.19.1534919443761; Tue, 21 Aug 2018 23:30:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:8704:0:0:0:0:0 with HTTP; Tue, 21 Aug 2018 23:30:43 -0700 (PDT) In-Reply-To: References: <20180705144009.GC5565@intel.com> From: Chris Chiu Date: Wed, 22 Aug 2018 14:30:43 +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 Fri, Jul 6, 2018 at 2:44 PM, Chris Chiu wrote: > 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 There's a patch https://bugs.freedesktop.org/show_bug.cgi?id=3D107125#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 Chris > Thanks for the suggestion. I tried pulling the cable out faster, the stat= us > 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