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 71FBDC624D0 for ; Wed, 2 Sep 2026 12:41:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 36E9689207; Wed, 2 Sep 2026 12:41:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="U15HkXm3"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 82FDE10F1A1 for ; Wed, 2 Sep 2026 12:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788352909; x=1819888909; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=y/h3MyywNinmWedPRQp6sGsAKXUBwTgip1gIhGwB6pw=; b=U15HkXm3f9cg+O9apXF2Iw5kw0Cdpp9quy9d9wK+O2RNpnQJvPRR7H5w RHlUMZbyNFgTGjs0B0R3dXilXq9pQ7Q/eAzcLYfSZFB6Of2ZOFumMQo7e n5v95Cm4aKm6TWy4slsRGDRxKgnU+dL/q5QadckSzqehbOkHn3hpfXZwh uiFu0OjXIVHETmSCAphEgv6GELRTmh0tMQ+KKF/yh5dWFxtpdiS0CrLxd PXADfC7Optsq4TcQq/Z8tL8PneFHfFCcAaMD9Uu8DLhGIhhLRY4Nbp9i0 k947TFKN1n4is0oiV9B1oNpikhfQ4sIL/PX1qUizXDdqVibhCaPOkBVn8 A==; X-CSE-ConnectionGUID: PTgZa9BAR2CyXI+h64z/cA== X-CSE-MsgGUID: lPyDYrOORJWTr3YQBQqHTw== X-IronPort-AV: E=McAfee;i="6800,10657,11893"; a="88829515" X-IronPort-AV: E=Sophos;i="6.25,257,1779174000"; d="scan'208";a="88829515" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2026 05:41:49 -0700 X-CSE-ConnectionGUID: wdGkSNfXQzSEgvRMw0hG0g== X-CSE-MsgGUID: z9mrIyVxTjOfm6zI0klBOw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,257,1779174000"; d="scan'208";a="269965280" Received: from klitkey1-mobl1.ger.corp.intel.com (HELO mwauld-desk.intel.com) ([10.245.245.174]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2026 05:41:47 -0700 From: Matthew Auld To: intel-xe@lists.freedesktop.org Cc: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Matthew Brost , Rodrigo Vivi , stable@kernel.org Subject: [PATCH v3 2/5] drm/xe/vram: report FLAT_CCS base misalignment Date: Wed, 2 Sep 2026 13:41:20 +0100 Message-ID: <20260902124117.918018-9-matthew.auld@intel.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260902124117.918018-7-matthew.auld@intel.com> References: <20260902124117.918018-7-matthew.auld@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" So we can easily check if a machine had the CCS bug, when looking back over bug reports where we have the same machine with newer kernel. Example print for a machine with the CCS bug: FLAT_CCS base:27bbff800, aligned:no v2 (Matt B): - Unconditionally print the base + alignment Fixes: 37173392741c ("drm/xe/vram: fix ccs offset calculation") Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Matthew Brost Cc: Rodrigo Vivi Cc: stable@kernel.org --- drivers/gpu/drm/xe/xe_vram.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_vram.c b/drivers/gpu/drm/xe/xe_vram.c index 7b4478fb1697..56cff1e44530 100644 --- a/drivers/gpu/drm/xe/xe_vram.c +++ b/drivers/gpu/drm/xe/xe_vram.c @@ -90,6 +90,9 @@ static int get_flat_ccs_offset(struct xe_gt *gt, u64 tile_size, u64 *poffset) offset |= offset_lo << 6; /* HW view bits 31:6 */ offset *= num_enabled; /* convert to SW view */ + drm_info(&xe->drm, "FLAT_CCS base:%llx, aligned:%s\n", offset, + str_yes_no(IS_ALIGNED(offset, SZ_128K))); + /* * Everything below this offset is handed to the VRAM * allocator, so it has to be the *first* address the -- 2.55.0