From patchwork Thu Feb 3 09:03:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 12733948 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA9B1C433F5 for ; Thu, 3 Feb 2022 09:04:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2192510E9E4; Thu, 3 Feb 2022 09:04:46 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 916BB10E9E4; Thu, 3 Feb 2022 09:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643879084; x=1675415084; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ykh21sL9DEpB2JXwyOHqrQBPR5ZH4IGXSmiSTOLPwtc=; b=FxWye4GL+jKiDqsrGplNDio9qSvtKi/fDzaMH6mvwT7P+52SJ2qHG3Lv 6fsy6n5K9qtELLgcDMPSvzUVTbPKDeC7BtsTl2bH0KL4v1qZZaarqg+pE Txd5lvP8Z3fkVCM64EFcPjukDiYEqwiC0F4/TFFcVgVapNy4q7Wq6S9RG XhoAgUbjiZnkzDLGAC8Pl2+FlS0sQcrkMGnAU6viALf8lHP0vv5mjUhsF yWduDN31PWhw7qqrVn87xoO9e/KAZh33knuob/4xkiIk2A3pSqUr8Modl XkqVEp98vAwpJ5ugztCS94pNM9JIVbI1o5Qq0nwV8elo5CdphnvT6JdxU w==; X-IronPort-AV: E=McAfee;i="6200,9189,10246"; a="231670016" X-IronPort-AV: E=Sophos;i="5.88,339,1635231600"; d="scan'208";a="231670016" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2022 01:04:44 -0800 X-IronPort-AV: E=Sophos;i="5.88,339,1635231600"; d="scan'208";a="631276791" Received: from cbrady-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.6.65]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2022 01:04:41 -0800 From: Jani Nikula To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Thu, 3 Feb 2022 11:03:57 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH v2 8/8] HACK: drm/i915/dp: give more time for CDS X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jani.nikula@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Try to avoid the timeout during debugging. Cc: Uma Shankar Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp_link_training.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c index 0686da36c428..c4807f7f5430 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c +++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c @@ -1288,6 +1288,9 @@ intel_dp_128b132b_lane_cds(struct intel_dp *intel_dp, /* Time budget for the LANEx_CDS_DONE Sequence */ deadline = jiffies + msecs_to_jiffies((lttpr_count + 1) * 20); + /* FIXME: Give some slack for CDS. */ + deadline += msecs_to_jiffies(500); + for (;;) { usleep_range(2000, 3000);