All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH 1/3] drm/xe: Use packed bitfields for xe->info feature flags
@ 2023-04-10 18:39 Matt Roper
  2023-04-10 18:39 ` [Intel-xe] [PATCH 2/3] drm/xe: Track whether platform has LLC Matt Roper
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Matt Roper @ 2023-04-10 18:39 UTC (permalink / raw)
  To: intel-xe; +Cc: matthew.d.roper

Replace 'bool' fields with single bits to allow the various device
feature flags to pack more tightly.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
---
 drivers/gpu/drm/xe/xe_device_types.h | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index f5399b284e3b..9ce6e348dd29 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -67,8 +67,6 @@ struct xe_device {
 		u32 media_verx100;
 		/** @mem_region_mask: mask of valid memory regions */
 		u32 mem_region_mask;
-		/** @is_dgfx: is discrete device */
-		bool is_dgfx;
 		/** @platform: XE platform enum */
 		enum xe_platform platform;
 		/** @subplatform: XE subplatform enum */
@@ -87,22 +85,25 @@ struct xe_device {
 		u8 tile_count;
 		/** @vm_max_level: Max VM level */
 		u8 vm_max_level;
+
+		/** @is_dgfx: is discrete device */
+		u8 is_dgfx:1;
 		/** @supports_usm: Supports unified shared memory */
-		bool supports_usm;
+		u8 supports_usm:1;
 		/** @has_asid: Has address space ID */
-		bool has_asid;
+		u8 has_asid:1;
 		/** @enable_guc: GuC submission enabled */
-		bool enable_guc;
+		u8 enable_guc:1;
 		/** @has_flat_ccs: Whether flat CCS metadata is used */
-		bool has_flat_ccs;
+		u8 has_flat_ccs:1;
 		/** @has_4tile: Whether tile-4 tiling is supported */
-		bool has_4tile;
+		u8 has_4tile:1;
 		/** @has_range_tlb_invalidation: Has range based TLB invalidations */
-		bool has_range_tlb_invalidation;
+		u8 has_range_tlb_invalidation:1;
 		/** @has_link_copy_engines: Whether the platform has link copy engines */
-		bool has_link_copy_engine;
+		u8 has_link_copy_engine:1;
 		/** @enable_display: display enabled */
-		bool enable_display;
+		u8 enable_display:1;
 
 #if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
 		struct xe_device_display_info {
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-04-11 17:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-10 18:39 [Intel-xe] [PATCH 1/3] drm/xe: Use packed bitfields for xe->info feature flags Matt Roper
2023-04-10 18:39 ` [Intel-xe] [PATCH 2/3] drm/xe: Track whether platform has LLC Matt Roper
2023-04-11  7:00   ` Lucas De Marchi
2023-04-10 18:39 ` [Intel-xe] [PATCH 3/3] drm/xe: Only request PCODE_WRITE_MIN_FREQ_TABLE on LLC platforms Matt Roper
2023-04-11  7:01   ` Lucas De Marchi
2023-04-10 19:31 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [1/3] drm/xe: Use packed bitfields for xe->info feature flags Patchwork
2023-04-10 19:32 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-04-10 19:36 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-04-10 19:56 ` [Intel-xe] ○ CI.BAT: info " Patchwork
2023-04-10 21:58 ` [Intel-xe] [PATCH 1/3] " Matthew Brost
2023-04-11  7:01 ` Lucas De Marchi
2023-04-11  7:56   ` Jani Nikula
2023-04-11 15:22     ` Matt Roper
2023-04-11 17:01       ` Lucas De Marchi
2023-04-11 17:27         ` Matt Roper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.