]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/i915: Add pci ids and uapi for DG1
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 12 Aug 2021 12:44:52 +0000 (14:44 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 13 Aug 2021 07:46:58 +0000 (09:46 +0200)
DG1 has support for local memory, which requires the usage of the
lmem placement extension for creating bo's, and memregion queries
to obtain the size. Because of this, those parts of the uapi are
no longer guarded behind FAKE_LMEM.

According to the pull request referenced below, mesa should be mostly
ready for DG1. VK_EXT_memory_budget is not hooked up yet, but we
should definitely just enable the uapi parts by default.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
References: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11584
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20210812124452.622233-2-maarten.lankhorst@linux.intel.com
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
drivers/gpu/drm/i915/gem/i915_gem_create.c
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/i915_query.c

index 23fee13a3384486b1fd39b0ffc4a646b507851cc..1d341b8c47c0bf2cdc87d666ff616ded643ed531 100644 (file)
@@ -347,9 +347,6 @@ static int ext_set_placements(struct i915_user_extension __user *base,
 {
        struct drm_i915_gem_create_ext_memory_regions ext;
 
-       if (!IS_ENABLED(CONFIG_DRM_I915_UNSTABLE_FAKE_LMEM))
-               return -ENODEV;
-
        if (copy_from_user(&ext, base, sizeof(ext)))
                return -EFAULT;
 
index 32358f90b920d3eaaa7e46ee5155f89cf494b3a0..607459251b49923e4df581656f1fe95a3a8773c4 100644 (file)
@@ -1096,6 +1096,7 @@ static const struct pci_device_id pciidlist[] = {
        INTEL_RKL_IDS(&rkl_info),
        INTEL_ADLS_IDS(&adl_s_info),
        INTEL_ADLP_IDS(&adl_p_info),
+       INTEL_DG1_IDS(&dg1_info),
        {0, 0, 0}
 };
 MODULE_DEVICE_TABLE(pci, pciidlist);
index e49da36c62fb5a1aaf15ac6e4319a15c82f138de..5e2b909827f44233e89a1f757407ac202c1f3116 100644 (file)
@@ -432,9 +432,6 @@ static int query_memregion_info(struct drm_i915_private *i915,
        u32 total_length;
        int ret, id, i;
 
-       if (!IS_ENABLED(CONFIG_DRM_I915_UNSTABLE_FAKE_LMEM))
-               return -ENODEV;
-
        if (query_item->flags != 0)
                return -EINVAL;