From patchwork Thu Dec 13 19:48:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Imre Deak X-Patchwork-Id: 10729713 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DA31A16B1 for ; Thu, 13 Dec 2018 19:48:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC18C2C46A for ; Thu, 13 Dec 2018 19:48:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C089B2C4B0; Thu, 13 Dec 2018 19:48:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 726182C4BB for ; Thu, 13 Dec 2018 19:48:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D4B256F031; Thu, 13 Dec 2018 19:48:54 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id A0B9A6F031 for ; Thu, 13 Dec 2018 19:48:53 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Dec 2018 11:48:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,349,1539673200"; d="scan'208";a="110183002" Received: from ideak-desk.fi.intel.com ([10.237.72.62]) by orsmga003.jf.intel.com with ESMTP; 13 Dec 2018 11:48:50 -0800 From: Imre Deak To: intel-gfx@lists.freedesktop.org Date: Thu, 13 Dec 2018 21:48:47 +0200 Message-Id: <20181213194850.25406-1-imre.deak@intel.com> X-Mailer: git-send-email 2.13.2 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/3] drm/i915/icl: Fix TypeC legacy HPD handling X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paulo Zanoni , Rodrigo Vivi Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP This patchset fixes the HPD handling for TypeC legacy ports. It depends on an indirect detection method described in patch 2 and 3, which will be replaced by a direct method once the BIOS/HW/FW team delivers a promised SW/HW flag for this purpose. There is no issue with the indirect method I know of, except for the DP legacy case (as opposed to the HDMI case), where doing a modeset/DP AUX read before the first HPD connect event will still result in mayham. But that is already the situation now and we have a plan in place (the direct method mentioned above), so the change is an improvement even for the DP case. This will leave the Thunderbolt and USB DP alternate mode HPD handling still disfunctional, but that's another story, we have some plan to fix that too (in cooperation with the HW/FW team). Cc: Paulo Zanoni Cc: Ville Syrjälä Cc: José Roberto de Souza Cc: Rodrigo Vivi Imre Deak (3): drm/i915/icl: Add a debug print for TypeC port disconnection drm/i915/icl: Add fix for TypeC legacy HDMI HPD handling drm/i915/icl: Add fix for TypeC legacy DP HPD handling drivers/gpu/drm/i915/intel_ddi.c | 54 +++++++++++++++++++++++++++++-- drivers/gpu/drm/i915/intel_dp.c | 69 +++++++++++++++++++++++++++++----------- drivers/gpu/drm/i915/intel_drv.h | 5 ++- 3 files changed, 105 insertions(+), 23 deletions(-)