Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp419664rdb; Mon, 22 Jan 2024 08:10:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQwPIYIZwzi0JnrdL/Sbfgl7rkqLT9htGhkJcvR5/38oTIwNuv4v3k6naBNFdPUmZ2nzLZ X-Received: by 2002:a17:906:5956:b0:a30:6675:d038 with SMTP id g22-20020a170906595600b00a306675d038mr1392709ejr.21.1705939818741; Mon, 22 Jan 2024 08:10:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705939818; cv=pass; d=google.com; s=arc-20160816; b=Wqg+IV+zYEUXY6LW4zpdEoS/WoLWl/bWrVSPcm0fWvQd3PegBm7C1C06wxMUM1jbws chrYBPnrLqnMq331w/W/fNi7daRg9/CkV9rlyY+7n7ipGoRFJGLGD753sXsfCf3+nwZy zF47j1UqP8PFt82EkLkGsJioacFPQ5s4oQKe1KWZNibyq+xRQETL5SyZm0vveiMYgTcQ fpf1WM2RtWxwsb0wc+3Jsjgs2S0815dJgF5qLR/Yuf8rrWhG7pIx5jsn8gK6G++Du8Ys tPtDGNGObfXjlEgS8EwiT9BeShIYCzBZzbmAhGujNX5NLLIYasZDPpyPiEVw3Ayqnubz c6tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DNimmolQGiQQ22+q+yu8bdRAwXrgK2cGSy9JJQ/VY/8=; fh=ajOI0iNCW4Mvc1vgGy3FpW639WQBwnXydxKvohbqYas=; b=OEvVodgoWWFPifUn7W0CUloVFLz8H2xwqR9FR1VBpiwMOSF7YsXBcYvLQ6Ubpkqb0E 646AYXLcwnkB7yH+mk7WkkqrSQIgzIHwQ9sNTIewbSbmbUuCeL+f4EzC6QYil/GB4mXC 409TOxV89thAYa+eTXAm/1e057HK17beKjkOlRuAEgihUrDn3RpQ5gqJi1Mk668un0bE NJzCgQHDgM7BfCV65Vf8s2baRuWpdonqDuTpn+7bvB63TVH5U/YY3ttUibZu/DpVRZl+ Omk0WzEE+X5zbJ7GCkrklmaPVgU6FqWZ3Pa5MZhbmD9gQmHiXg7C1FX7m8t9Jm3k8DO4 GrYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QQ7MIOpI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33443-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s4-20020a170906284400b00a26e48597b4si10832415ejc.809.2024.01.22.08.10.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 08:10:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33443-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QQ7MIOpI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33443-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 80AA81F2430E for ; Mon, 22 Jan 2024 16:10:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 410DF12AAE2; Mon, 22 Jan 2024 15:11:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QQ7MIOpI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 693C34F5E5; Mon, 22 Jan 2024 15:11:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705936314; cv=none; b=GEq23Lidfticrz50WliUcoS4Xy30jmP9GYtA5bYrQwX/u3w+4l7htYnnFJ7VGdMim2sAxUd4pS22m+WP9CHkT0UcPDvboiGA1hx2V9ZRAipyve1sMVQCog5KEYN4qFW3HXG/7pYMFDOBmXtsUebAE+dmN8+NdwLFPYlVeNdVhGE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705936314; c=relaxed/simple; bh=o1xs7JIqRwXyo59t+vI4O/U9bDmpnzviPesjWKaE8UM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zkc+OWU/vh2BzKU2IajvLHgWCIO/c7zSf1kTrly+Par42QGEvIMnu4xvKCGFUDdtgiwtsC6SHfOo9GRDdSBccL4BO/cuMRnUmxYOOS0Dgeo9/JJpOSrhJxNo2n6JmdRJ4P2VtiH/4Bq9vL2lTHwDlgPziyf4DBnwzDkn2k0MQ+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QQ7MIOpI; arc=none smtp.client-ip=10.30.226.201 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 Cc: Josip Pavic , Aric Cyr , Wayne Lin , Daniel Wheeler , Alex Deucher , Sasha Levin , harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, mario.limonciello@amd.com, qingqing.zhuo@amd.com, hamza.mahfooz@amd.com, wenjing.liu@amd.com, aurabindo.pillai@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.74 Content-Transfer-Encoding: 8bit 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