Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp391307rdb; Mon, 22 Jan 2024 07:24:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnQqFgXy+aCJlwLsp62LR0u8yvifKdW6zybETJcioB18qBUO+AhNpw102eMWvK08aOfNR8 X-Received: by 2002:a05:620a:1d9b:b0:783:360e:c0ac with SMTP id pj27-20020a05620a1d9b00b00783360ec0acmr3514671qkn.55.1705937074306; Mon, 22 Jan 2024 07:24:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705937074; cv=pass; d=google.com; s=arc-20160816; b=ZLZNDPCxgJA8Dy2SEWEjvHF4KjtGehaRliVRc40RrOiHsaQ+MIyqS16kEMqOZHmLA2 H/gL1BXorfYVSgp6OcjOirKUs3ziHTvyILqIWjZMZG1Yw9szl0UqDxglySd4NJsay9ai ISOratehZihaw2g2hu8FetZY0/HeulVnMnIWv3+vE4r8yL5FDN98tXlaLVp0opHJRyoC z89qKb3wdWqBbUZ9l6bdynmGy/PoNddpGv3VG7a1oOhky9kY4JEdyYdE8d+yMytTXfCN dnx7GXEOL/xV8lJSyR0qMV0lqGTknYeyTjBONkTxyt9uM+y6GgcjmmuBBCo1L86py0Lu pkog== 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=hU+4RuPNkaJoybMIhH91dXaXkhZTAT8telsD1KFGp+c=; fh=tlkiFOx33yYpmBpS91oEKdM8BZE9Jz88BPz9MP4iZ9o=; b=d0Nkg04aDAxilmYUwd+DK6Aqda1G1wLWj86rPiYWtNFbfjaLlEkMW1fZvveMKMKlhn XFvR/M/IGszTzRPjkDDapFQCo8zkjlaNHmTCzI6TaEAsaVInMElN3V+scAdpjv9bWEGC GL/XvBSCvCD5aMXCZKzZKsaSh0yljr811dXPYcd3hgxyRmwEu5Xj0oAmNDVRdwpubpeD vKteztLhCZCVqkIA0QmEgpvj/oifJ2r9Hr4j35O64twd0YHoGESiKMuDuTbYxIzorTWw LmuYm81lsDI8pSyrbKFfkLxNG3gbU7/gOmGWgwbNsgxSMZip/elxWXE/BAl+a4gwmrsz cF0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OQK7aWnz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j24-20020a05620a147800b0078314baf856si5437473qkl.576.2024.01.22.07.24.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:24:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OQK7aWnz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33288-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 122D61C22BC1 for ; Mon, 22 Jan 2024 15:24:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CE4B5C8E7; Mon, 22 Jan 2024 15:00:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OQK7aWnz" 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 B7CAB40C13; Mon, 22 Jan 2024 15:00:22 +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=1705935622; cv=none; b=tysE53y2uqMbu+fie79YmekZZVsFGu6aLFxdpBAvJoops++dInYlwnZk/ycH4SzKd7GouNjeyawhK2TQYFBCUf6WvurB4HXOCtHL+oZwWkqQFOtoWlBdueE6hCZzK9hAw8Atq8pDUvZX6pBHPOc5p5mW8hlKkw2FBoMgSmRSQFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935622; c=relaxed/simple; bh=ziCgN18ZBJKgFtWmWXYcTNGfWO2DoZ1XDQaXC3PcFpE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gQLAKXpv/PaVn/wtV4Oo5o9N8kD8zq64YsGvwEmZOVSupplbSnJPb/0S+qjmuntee2re6j/QxxXnwY4ePXOLMa8SNRwqvZQxgO7eobT68r6AKQxOv8oTeIN3df5TJgS3qYut1dCD23LR0aDxdFtXZBpPPSJybkF73Iu/ClMwVKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OQK7aWnz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 113D5C43390; Mon, 22 Jan 2024 15:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705935622; bh=ziCgN18ZBJKgFtWmWXYcTNGfWO2DoZ1XDQaXC3PcFpE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OQK7aWnzjZzdFVGzDp+JNdBtFy5E8iIU+z4fMMRPepQ0bBmSkMOxZ4WaOiGrouQJm 75pPS4Le4ZKUwSZEv+GubI3qgjC0c6c0tNDGlkmAsy2LyYc4Scw4NV4nGJhhriS3aE Mg7aDpdXYnyMeqXQ1JWv2Dx6vO/AtFIDREpwVYzz+5DXhF2i2B5H0BWYrLijvn3thq 5zBTUbT8PcicdUm5kOzXxRroJh++3wFUSQERhwAaaQiYe3VgZ1MDuQrDA08A8zaU9S SMnXuP4fZ9u6nTc8Sasju/VrY8Q4xn81Orue0v6j2ik1SpzqVuJR1TxTl39FejJ1Fe /Zc6IM/4BS+Vw== 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, qingqing.zhuo@amd.com, hamza.mahfooz@amd.com, mario.limonciello@amd.com, wenjing.liu@amd.com, aurabindo.pillai@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.7 66/88] drm/amd/display: make flip_timestamp_in_us a 64-bit variable Date: Mon, 22 Jan 2024 09:51:39 -0500 Message-ID: <20240122145608.990137-66-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122145608.990137-1-sashal@kernel.org> References: <20240122145608.990137-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.7.1 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 e2a3aa8812df..811474f4419b 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