From patchwork Tue Jul 23 07:38:43 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: 1135455 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 45t9Mg3cMFz9sDB; Tue, 23 Jul 2019 17:38:55 +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 1hppNs-00051t-1i; Tue, 23 Jul 2019 07:38:52 +0000 Received: from mail-pl1-f193.google.com ([209.85.214.193]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1hppNq-00051b-S6 for kernel-team@lists.ubuntu.com; Tue, 23 Jul 2019 07:38:51 +0000 Received: by mail-pl1-f193.google.com with SMTP id c14so20210529plo.0 for ; Tue, 23 Jul 2019 00:38:50 -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=b/IMATvUr1UwWdvE/E+uvG0t247dabazrDoIP823v4s=; b=MIpNAE+4z58at+47KtPFuNABMRq42u21QYVWSSQ/nLIhzC/6RjWz6riLrpkmIlReWg wxLTpIM7/Rr63AY/aVwqdS92BS31R/2tnZLLe1cTG031H59oolbf5axEgyHQwwgnkDzj 6jk57ctgC9Pdu7AMmbMvWuhDW/ZIzGWqGUwncJEtYLKOooN5cV1cKWG9Mjx2BmLmryhU 07QHTlyxI9o5GuTRcVE/2izWjoFeCcPr45F6UU9HRMZd2WVkI62q/qanLVd7nJaFssgV tWqZXuWWpXIFjofGhkFXOYeoBQF7Dc64O439ZOfb4E/HSqTZdsVDkPEbsMiKEIxmk6xd oBig== X-Gm-Message-State: APjAAAVBKtdOPm45TC8USlXbdi8hN09N/PGgmzelZLhUtnM4bA4GF+nf c7mSNr3Vw2NnkHOLY1W09XPGkpUg X-Google-Smtp-Source: APXvYqy4SDEXTH3zQS4dRiKO+RnZ/4Xak46Ie2Akee2JEre/UyOBDKfXohkmbjl22mkWhTIMBPA0qw== X-Received: by 2002:a17:902:1003:: with SMTP id b3mr19605450pla.172.1563867529110; Tue, 23 Jul 2019 00:38:49 -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 y10sm43162570pfm.66.2019.07.23.00.38.48 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 00:38:48 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2][SRU][C] drm/i915: Fix hotplug issues Date: Tue, 23 Jul 2019 15:38:43 +0800 Message-Id: <20190723073845.21842-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, 136 insertions(+), 32 deletions(-)