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 EBA9FD29C2D for ; Mon, 19 Jan 2026 14:30:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AFC9A10E483; Mon, 19 Jan 2026 14:30:50 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="eDg3u70K"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id E08F610E46C for ; Mon, 19 Jan 2026 14:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1768833049; x=1800369049; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8HsHUVnDz8YYvv/1dix5ZzjGL5GEqWwlmvcMls8uo+E=; b=eDg3u70KP7l4DoxPC6Pr4w8C5j0oSCMojjHDLVGc26XPAoAnc2+l95Vy 9BTvoHWe2bZhTRzncWWVB/BP8V+KxWFDYaTppVMNlbnUA/tekpdHdNTG7 sByr3AZliACOvJ6CrfYI9TCjR7H0nYnO79uNzJVQo/Yv2eHZld35k9jRm RS4cM/EsJr9Tjj1JX+9G52xxupsQD6J3jYwfbhIxN547rBzpuR4rReFOe 5H7V+OJslK+7YIx6rh6fzA+YEAlS5/UIJZV8DOelhwQalnSeNGj0Mb27u 1gVyKmlkrDERcWiFRivbF2Tgc4Y5a8f0hPox0IBwWB0buehlKGW8yIfsl Q==; X-CSE-ConnectionGUID: QeJVgvCHTpi/x4u5x8Ek4w== X-CSE-MsgGUID: 8Uwegzh+SE6Jw0iC4G2HWA== X-IronPort-AV: E=McAfee;i="6800,10657,11676"; a="69053623" X-IronPort-AV: E=Sophos;i="6.21,238,1763452800"; d="scan'208";a="69053623" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2026 06:30:49 -0800 X-CSE-ConnectionGUID: 96o+b3LeQM6J5RnvGKmFhg== X-CSE-MsgGUID: DAO4pN/YQGatYVdFX9LCUw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,238,1763452800"; d="scan'208";a="228808781" Received: from nitin-super-server.iind.intel.com ([10.190.238.72]) by fmviesa002.fm.intel.com with ESMTP; 19 Jan 2026 06:30:46 -0800 From: Nitin Gote To: intel-xe@lists.freedesktop.org Cc: matthew.d.roper@intel.com, matthew.auld@intel.com, Nitin Gote Subject: [PATCH] drm/xe: derive mem copy capability from graphics version Date: Mon, 19 Jan 2026 20:33:05 +0530 Message-ID: <20260119150304.1739757-2-nitin.r.gote@intel.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 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" Drop .has_mem_copy_instr from the platform descriptors and compute it in xe_info_init() once handle_gmdid() populates graphics_verx100. Early init was running with graphics_verx100==0, so the old placement silently disabled MEM_COPY on every GMDID platform. Centralizing the GRAPHICS_VER(xe) >= 20 check keeps Xe2+ enabled and removes redundant per-platform plumbing for future Xe platforms. Bspec: 57561 Fixes: 1e12dbae9d72 ("drm/xe/migrate: support MEM_COPY instruction") Cc: Matt Roper Suggested-by: Matthew Auld Signed-off-by: Nitin Gote --- v1->v2: Dropping PVC for now, if needed, will send in separate patch. drivers/gpu/drm/xe/xe_pci.c | 6 +----- drivers/gpu/drm/xe/xe_pci_types.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index 34df063024fe..b5e8935fff1d 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -350,7 +350,6 @@ static const struct xe_device_desc lnl_desc = { .has_display = true, .has_flat_ccs = 1, .has_pxp = true, - .has_mem_copy_instr = true, .max_gt_per_tile = 2, .needs_scratch = true, .va_bits = 48, @@ -375,7 +374,6 @@ static const struct xe_device_desc bmg_desc = { .has_pre_prod_wa = 1, .has_soc_remapper_telem = true, .has_sriov = true, - .has_mem_copy_instr = true, .max_gt_per_tile = 2, .needs_scratch = true, .subplatforms = (const struct xe_subplatform_desc[]) { @@ -392,7 +390,6 @@ static const struct xe_device_desc ptl_desc = { .has_display = true, .has_flat_ccs = 1, .has_sriov = true, - .has_mem_copy_instr = true, .has_pre_prod_wa = 1, .has_pxp = true, .max_gt_per_tile = 2, @@ -407,7 +404,6 @@ static const struct xe_device_desc nvls_desc = { .dma_mask_size = 46, .has_display = true, .has_flat_ccs = 1, - .has_mem_copy_instr = true, .has_pre_prod_wa = 1, .max_gt_per_tile = 2, .require_force_probe = true, @@ -706,7 +702,6 @@ static int xe_info_init_early(struct xe_device *xe, xe->info.has_soc_remapper_telem = desc->has_soc_remapper_telem; xe->info.has_sriov = xe_configfs_primary_gt_allowed(to_pci_dev(xe->drm.dev)) && desc->has_sriov; - xe->info.has_mem_copy_instr = desc->has_mem_copy_instr; xe->info.skip_guc_pc = desc->skip_guc_pc; xe->info.skip_mtcfg = desc->skip_mtcfg; xe->info.skip_pcode = desc->skip_pcode; @@ -897,6 +892,7 @@ static int xe_info_init(struct xe_device *xe, xe->info.has_ctx_tlb_inval = graphics_desc->has_ctx_tlb_inval; xe->info.has_usm = graphics_desc->has_usm; xe->info.has_64bit_timestamp = graphics_desc->has_64bit_timestamp; + xe->info.has_mem_copy_instr = GRAPHICS_VER(xe) >= 20; xe_info_probe_tile_count(xe); diff --git a/drivers/gpu/drm/xe/xe_pci_types.h b/drivers/gpu/drm/xe/xe_pci_types.h index 7ccb0ab7a53b..8b2ff3f25607 100644 --- a/drivers/gpu/drm/xe/xe_pci_types.h +++ b/drivers/gpu/drm/xe/xe_pci_types.h @@ -49,7 +49,6 @@ struct xe_device_desc { u8 has_llc:1; u8 has_mbx_power_limits:1; u8 has_mbx_thermal_info:1; - u8 has_mem_copy_instr:1; u8 has_mert:1; u8 has_pre_prod_wa:1; u8 has_page_reclaim_hw_assist:1; -- 2.50.1