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 CF528C52D7C for ; Wed, 21 Aug 2024 15:05:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6C80A10E0BD; Wed, 21 Aug 2024 15:05:23 +0000 (UTC) Received: from mblankhorst.nl (lankhorst.se [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 506D910E0BD for ; Wed, 21 Aug 2024 15:05:22 +0000 (UTC) From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org Cc: Maarten Lankhorst Subject: [PATCH 0/2] Set 64k physical alignment on display buffers for CCS. Date: Wed, 21 Aug 2024 17:05:17 +0200 Message-ID: <20240821150519.478168-1-maarten.lankhorst@linux.intel.com> X-Mailer: git-send-email 2.45.2 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" Instead of restricting display to 64k, keeping allowing any BO size. Iff a buffer is created with a scanout flag, as a multiple of 64K, it can be used for CCS. This should fix the corruption issue, the changes to UMD will be only setting a multiple of 64K for CCS fb's. Untested, lets see if it gets through CI. :) Maarten Lankhorst (1): drm/xe: Align 64k scanout buffers physically when required Zbigniew KempczyƄski (1): drm/xe: Use 64K pages for scanout buffers for Battlemage drivers/gpu/drm/xe/display/intel_fb_bo.c | 6 ++++++ drivers/gpu/drm/xe/xe_bo.c | 17 ++++++++++++++++- drivers/gpu/drm/xe/xe_device_types.h | 1 + drivers/gpu/drm/xe/xe_pci.c | 9 ++++++++- drivers/gpu/drm/xe/xe_vm.c | 4 +++- 5 files changed, 34 insertions(+), 3 deletions(-) -- 2.45.2