]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Rename gmdid_map to xe_ip
authorGustavo Sousa <gustavo.sousa@intel.com>
Fri, 21 Feb 2025 18:51:42 +0000 (15:51 -0300)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 5 Mar 2025 20:16:04 +0000 (12:16 -0800)
commit2d197a1f70be3f3c82858eedc50c93ac5f639bc6
tree805d2b96fec1e6d7968bbc97b797a2be73a4bd88
parent0695c746f55c875f4cf20bab92533a800a0fe4d6
drm/xe: Rename gmdid_map to xe_ip

If we pay closer attention to struct gmdid_map, we will realize that it
is actually fully describing an IP (graphics or media): it contains
"release info" and "features info". The former is comprised of fields
"ver" and "name"; and the latter is done via member "ip", which is a
pointer to either struct xe_graphics_desc or xe_media_desc, and can be
reused across releases.

As such let's:

  * Rename struct gmdid_map to xe_ip.
  * Rename the field ver to verx100 to be consistent with the naming of
    members using that encoding of the version.
  * Rename the field "ip" to "desc" to make it clear that it is a
    pointer to a descriptor of features for the IP, since it will not
    contain *all* info (i.e. features + release info).

We sill have release info mapped into struct xe_{graphics,media}_desc
for pre-GMDID IPs. In an upcoming change we will handle that so that we
make a clear separation between "release info" and "feature info".

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250221-xe-unify-ip-descriptors-v2-3-5bc0c6d0c13f@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/tests/xe_pci.c
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_pci_types.h