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 38961D60CFA for ; Mon, 18 Nov 2024 22:33:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 072ED10E2EA; Mon, 18 Nov 2024 22:33:43 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="QN7k5hz+"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id A861010E29D for ; Mon, 18 Nov 2024 22:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1731969221; x=1763505221; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2OAGQ2IClyn+1/7a7NToxPkFw6I+fXPZHKXXdut/KhQ=; b=QN7k5hz+p4zcDbkAqAViPbCvhYKfVQNnHydR1fulzQBeitjV3x1HWDbe gpOFtQPIqftT9NKEVCArqjWNle+zVpFDApr3lLZjrGk7eRUyFk9730X+f Cu3dToS+KOiBJVulKeNSaX1HI4rG4gx3bOmm6Ay7AjSb4ErxXc/+72ZY6 TyzPdR2/XU/0mNJr7H2WPrktQwPKumR8/PAFCfRpzcydngRZClBORBasO 4BmSlfJ6VR9l/LLIj7+SvM9562Yle0hJUjp50d64Lr+jWAZ7keXySDlqp 3bBJUNytVvsvx1vPI/7Ys7U0TZU2x188AcM9lE6+0qokbr3MiuHC7Y6P3 g==; X-CSE-ConnectionGUID: pbSchaOfTmy9/O2UtvH4HQ== X-CSE-MsgGUID: 1XSljjL0R92bPD5U0RAOwQ== X-IronPort-AV: E=McAfee;i="6700,10204,11260"; a="31796774" X-IronPort-AV: E=Sophos;i="6.12,165,1728975600"; d="scan'208";a="31796774" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2024 14:33:41 -0800 X-CSE-ConnectionGUID: O25842lzSp+qWMgTdILcgg== X-CSE-MsgGUID: wLJtc11lSee8rS1L3lKRYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,165,1728975600"; d="scan'208";a="112669359" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.196]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2024 14:33:41 -0800 From: Lucas De Marchi To: Cc: Lucas De Marchi , Rodrigo Vivi Subject: [PATCH] drm/xe: Sort again the info flags Date: Mon, 18 Nov 2024 14:33:14 -0800 Message-ID: <20241118223314.1969166-1-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.47.0 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" Those flags are supposed to be kept sorted alphabetically. Unfortunately it's a constant battle as new flags are added to the end or at random places. Sort it again. v2: Include the other non-has_* 1-bit flags in the sort Reviewed-by: Rodrigo Vivi # v1 Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/xe/xe_device_types.h | 32 ++++++++++++++++------------ 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index 8592f1b02db11..8b2b12daa49dd 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -294,14 +294,21 @@ struct xe_device { /** @info.va_bits: Maximum bits of a virtual address */ u8 va_bits; - /** @info.is_dgfx: is discrete device */ - u8 is_dgfx:1; - /** @info.has_asid: Has address space ID */ - u8 has_asid:1; /** @info.force_execlist: Forced execlist submission */ u8 force_execlist:1; + + /** @info.has_asid: Has address space ID */ + u8 has_asid:1; + /** @info.has_atomic_enable_pte_bit: Device has atomic enable PTE bit */ + u8 has_atomic_enable_pte_bit:1; + /** @info.has_device_atomics_on_smem: Supports device atomics on SMEM */ + u8 has_device_atomics_on_smem:1; /** @info.has_flat_ccs: Whether flat CCS metadata is used */ u8 has_flat_ccs:1; + /** @info.has_heci_cscfi: device has heci cscfi */ + u8 has_heci_cscfi:1; + /** @info.has_heci_gscfi: device has heci gscfi */ + u8 has_heci_gscfi:1; /** @info.has_llc: Device has a shared CPU+GPU last level cache */ u8 has_llc:1; /** @info.has_mmio_ext: Device has extra MMIO address range */ @@ -312,6 +319,10 @@ struct xe_device { u8 has_sriov:1; /** @info.has_usm: Device has unified shared memory support */ u8 has_usm:1; + + /** @info.is_dgfx: is discrete device */ + u8 is_dgfx:1; + /** * @info.probe_display: Probe display hardware. If set to * false, the driver will behave as if there is no display @@ -321,20 +332,13 @@ struct xe_device { * state the firmware or bootloader left it in. */ u8 probe_display:1; + + /** @info.skip_guc_pc: Skip GuC based PM feature init */ + u8 skip_guc_pc:1; /** @info.skip_mtcfg: skip Multi-Tile configuration from MTCFG register */ u8 skip_mtcfg:1; /** @info.skip_pcode: skip access to PCODE uC */ u8 skip_pcode:1; - /** @info.has_heci_gscfi: device has heci gscfi */ - u8 has_heci_gscfi:1; - /** @info.has_heci_cscfi: device has heci cscfi */ - u8 has_heci_cscfi:1; - /** @info.skip_guc_pc: Skip GuC based PM feature init */ - u8 skip_guc_pc:1; - /** @info.has_atomic_enable_pte_bit: Device has atomic enable PTE bit */ - u8 has_atomic_enable_pte_bit:1; - /** @info.has_device_atomics_on_smem: Supports device atomics on SMEM */ - u8 has_device_atomics_on_smem:1; } info; /** @irq: device interrupt state */ -- 2.47.0