From patchwork Thu Nov 16 09:05:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Kahola X-Patchwork-Id: 13457722 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 645E8C197A0 for ; Thu, 16 Nov 2023 09:11:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D97E810E259; Thu, 16 Nov 2023 09:11:29 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id C1BA810E2D0 for ; Thu, 16 Nov 2023 09:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700125887; x=1731661887; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=taH6POLar5xijHbeqjmknLM44o8XT0b984TIVG7K+0c=; b=ORpU0vH9Ig86B6Dh7oy6ttFdNEYTmOA5FhKCWZloFNFCa6BY6KtPlYkU kv4k/BdNChvhcKJu10rRkKeTD4hYIn4nr8shX1uHWwKeI+0/i75qhTrw5 /kwMkrm3FKBut3BVwDxCRSW+OgERE5cANYsa7TmX4RURTN39Hu81y0xYc aj6tHEkI6DEcyHtDsFH5asIcbDAlvJXraRVKGOMgSZMmnLMqqvbOIRNFl u1WvZ+OJJs5RZN/nvtCYueFx/EMuU5uyv1ENATkcZdmy80YN+Af79hZEL +ZXgdvcZ188nEwNXRa1dRiXuNYy+RYGrTSMMo2IoNBe1zLKZHjjmevqGT Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="388215566" X-IronPort-AV: E=Sophos;i="6.03,307,1694761200"; d="scan'208";a="388215566" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2023 01:11:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="888853007" X-IronPort-AV: E=Sophos;i="6.03,307,1694761200"; d="scan'208";a="888853007" Received: from sorvi2.fi.intel.com ([10.237.72.194]) by orsmga004.jf.intel.com with ESMTP; 16 Nov 2023 01:11:24 -0800 From: Mika Kahola To: intel-gfx@lists.freedesktop.org Date: Thu, 16 Nov 2023 11:05:12 +0200 Message-Id: <20231116090512.480373-1-mika.kahola@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/display: Use int type for entry_setup_frames 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" entry_setup_frames variable is defined as u8. However, the function call intel_psr_entry_setup_frames() can return negative error code. There is a type mismatch here, so let's switch to use int here as well. Fixes: 2b981d57e480 ("drm/i915/display: Support PSR entry VSC packet to be transmitted one frame earlier") Signed-off-by: Mika Kahola Reviewed-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 8d180132a74b..204da50e3f28 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -1319,7 +1319,7 @@ static bool _psr_compute_config(struct intel_dp *intel_dp, { struct drm_i915_private *dev_priv = dp_to_i915(intel_dp); const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; - u8 entry_setup_frames; + int entry_setup_frames; /* * Current PSR panels don't work reliably with VRR enabled