]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Convert pre-GMDID IPs to struct xe_ip
authorGustavo Sousa <gustavo.sousa@intel.com>
Fri, 21 Feb 2025 18:51:44 +0000 (15:51 -0300)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 5 Mar 2025 20:17:00 +0000 (12:17 -0800)
commitf25e698d43fb279a4f168ef1f05d0ead98beffe9
tree78f85f7d4f22a369fbe272462094d07557763379
parent871d9c1f3f8ef17f8d19e0dabf5bb7a02dcdbf58
drm/xe: Convert pre-GMDID IPs to struct xe_ip

We have now a struct xe_ip to fully describe an IP, but we are only
using that for GMDID-based IPs.

For pre-GMDID IPs, we still describe release info (version and name) via
feature descriptors (struct xe_{graphics,media}_desc). Let's convert
those to use struct xe_ip.

With this, we have a uniform way of describing IPs in the xe driver
instead of having different approaches based on whether the IPs use
GMDIDs or not.

A nice side-effect of this change is that now we have an easy way to
lookup, in the source code, mappings between versions, names and
features for all supported IPs.

v2:
  - Store pointers to struct xe_ip instead xe_{graphics,media}_desc in
    struct xe_device_desc.

Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250221-xe-unify-ip-descriptors-v2-5-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