From patchwork Tue Jul 23 07:39:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1135458 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45t9NX4YyDz9sDB; Tue, 23 Jul 2019 17:39:40 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1hppOa-00059G-W8; Tue, 23 Jul 2019 07:39:36 +0000 Received: from mail-pg1-f196.google.com ([209.85.215.196]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1hppOZ-000597-HZ for kernel-team@lists.ubuntu.com; Tue, 23 Jul 2019 07:39:35 +0000 Received: by mail-pg1-f196.google.com with SMTP id l21so18987323pgm.3 for ; Tue, 23 Jul 2019 00:39:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=qdejLR69s5OtA+7ypmBX18m3ZO77k8S83uO/jyRDagg=; b=k3eHb1EWpHbzsvKhxRzUZlvkDR+eF+CexIkoDVe0Dx3PI10Dum68jiJEKgmxSWiTIh MqMqLUJbHb4mY4udWCKnUNhzfFbJyp0xbEkDVt6dq5iu69fxZKX8a4MxUpQs9SGbyqUE rZo3VwkzICorNYu8b3mcpYlyXAG1begxBitYsxEy26AKEspluGPAA41kbnriicSal0bV wMoKdWXED4FxFTgbd0EsERSW51wKmfFLrPKwkziPmEjgLhvC13o2tg9s0+HkkbUt2Nla U3QAdq/AzttipS1KAOQ1nFXxC9yhoK3BDhS3ytaB6RvV6jYBsqxIb+ZqJqHcetBx0P0O Pnnw== X-Gm-Message-State: APjAAAVUZlYm7BREwUiYmjodqZ2CA7Q5yF9DraO94qOcWtM3SLC9aTFl Nxkoftf6e1PAmT4gxebrHRgKqJyF X-Google-Smtp-Source: APXvYqwXXyTSzy0q2AyLNikP5pYcEPhagTHRAAt1lRa3S+gNynYPH+tiHYk3P0f6ENjYOEIMd3uJig== X-Received: by 2002:a63:506:: with SMTP id 6mr74179129pgf.434.1563867573801; Tue, 23 Jul 2019 00:39:33 -0700 (PDT) Received: from momoga.taipei.internal (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id g66sm42192640pfb.44.2019.07.23.00.39.32 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 00:39:33 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2][SRU][D] drm/i915: Fix hotplug issues Date: Tue, 23 Jul 2019 15:39:26 +0800 Message-Id: <20190723073928.22245-1-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1835001 [Impact] System does not always auto detect disconnection of external monitor on Intel VGA. [Fix] Two changes from drm-intel tree are necessary to introduce hotplug retrying to fix this issue. They are: * drm/i915: Add support for retrying hotplug * drm/i915: Enable hotplug retry [Test Case] 1. open "system settings > display settings" 2. connect laptop to an external HDMI monitor via HDMI port & cable 3. unplug the HDMI cable 4. check if "display settings" automatically detects the removal of the external monitor [Regression potential] Medium. For all the prerequisites they have been landed since 4.18, and these two patches will only be merged some time later. Basically it turns a currently existing kernel work to a delayed work so that it may retry probing HDMI hotplug status. Imre Deak (1): drm/i915: Add support for retrying hotplug José Roberto de Souza (1): drm/i915: Enable hotplug retry drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 +- drivers/gpu/drm/i915/intel_ddi.c | 33 +++++++++++++--- drivers/gpu/drm/i915/intel_dp.c | 19 ++++++--- drivers/gpu/drm/i915/intel_drv.h | 16 ++++++-- drivers/gpu/drm/i915/intel_hdmi.c | 28 ++++++++++++- drivers/gpu/drm/i915/intel_hotplug.c | 59 ++++++++++++++++++++++------ drivers/gpu/drm/i915/intel_sdvo.c | 8 ++-- 8 files changed, 135 insertions(+), 33 deletions(-) Acked-by: Connor Kuehl Acked-by: Stefan Bader