From mboxrd@z Thu Jan 1 00:00:00 1970 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 0B21BC47DD9 for ; Mon, 22 Jan 2024 15:12:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 958AF10F368; Mon, 22 Jan 2024 15:12:29 +0000 (UTC) Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8926910F368; Mon, 22 Jan 2024 15:12:28 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 2D603CE2B23; Mon, 22 Jan 2024 15:11:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A60CC433F1; Mon, 22 Jan 2024 15:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705936314; bh=o1xs7JIqRwXyo59t+vI4O/U9bDmpnzviPesjWKaE8UM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QQ7MIOpIy9X4njg6QBOTF85Y175/bh9Wv6wfLt13OrxRcGcm9DoBCuLmMACYHTs4M hSG6YliAGdW2A8WYUVjzhY4LVOMqV28zRcHTif82t9b/IMQg6rYq1+7s98DH0k97a4 NhYaJjSI6II2+oosDj3YGRaYXGliLPvPPe+UwrJgaIct/Cat4rmHvkyj9D02Z7fBQs 1X4SA5GIQ2+yOhClxBsdbTvOavM6NFCRfhf+hR8/BlvHUuLT2CFlvU9XLij+70WlIA GGdUGOz8G7D75jdD5DDKYOTs4hEyHIyLBWTZQ6Noiz09Q6Al1CvDDFWFO3N2UceO0z hQVJL3vz1JBYQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 42/53] drm/amd/display: make flip_timestamp_in_us a 64-bit variable Date: Mon, 22 Jan 2024 10:08:43 -0500 Message-ID: <20240122150949.994249-42-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122150949.994249-1-sashal@kernel.org> References: <20240122150949.994249-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.74 Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , Aric Cyr , dri-devel@lists.freedesktop.org, sunpeng.li@amd.com, harry.wentland@amd.com, qingqing.zhuo@amd.com, Xinhui.Pan@amd.com, Rodrigo.Siqueira@amd.com, amd-gfx@lists.freedesktop.org, wenjing.liu@amd.com, Daniel Wheeler , aurabindo.pillai@amd.com, mario.limonciello@amd.com, daniel@ffwll.ch, Wayne Lin , Alex Deucher , airlied@gmail.com, Josip Pavic , christian.koenig@amd.com, hamza.mahfooz@amd.com Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" From: Josip Pavic [ Upstream commit 6fb12518ca58412dc51054e2a7400afb41328d85 ] [Why] This variable currently overflows after about 71 minutes. This doesn't cause any known functional issues but it does make debugging more difficult. [How] Make it a 64-bit variable. Reviewed-by: Aric Cyr Acked-by: Wayne Lin Signed-off-by: Josip Pavic Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h index 46c2b991aa10..811c117665e7 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h +++ b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h @@ -244,7 +244,7 @@ enum pixel_format { #define DC_MAX_DIRTY_RECTS 3 struct dc_flip_addrs { struct dc_plane_address address; - unsigned int flip_timestamp_in_us; + unsigned long long flip_timestamp_in_us; bool flip_immediate; /* TODO: add flip duration for FreeSync */ bool triplebuffer_flips; -- 2.43.0