]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: finish INTEL_GEN and friends conversion
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 7 Jul 2021 18:13:24 +0000 (11:13 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 7 Jul 2021 23:35:28 +0000 (16:35 -0700)
Commit 161058fb899e ("drm/i915: Add remaining conversions to GRAPHICS_VER")
did the last conversions to the new macros for version checks, but left
one instance behind and some other changes sneaked in to use INTEL_GEN.
Remove the last users so we can remove the macros.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210707181325.2130821-3-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_uncore.c

index af9e58619667dd0c7ee1a8b54da843ddf5a8f377..d5af5708c9dadd3bb69b967f4173626911b35a58 100644 (file)
@@ -544,7 +544,8 @@ static int i915_dmc_info(struct seq_file *m, void *unused)
 
        seq_printf(m, "fw loaded: %s\n", yesno(intel_dmc_has_payload(dev_priv)));
        seq_printf(m, "path: %s\n", dmc->fw_path);
-       seq_printf(m, "Pipe A fw support: %s\n", yesno(INTEL_GEN(dev_priv) >= 12));
+       seq_printf(m, "Pipe A fw support: %s\n",
+                  yesno(GRAPHICS_VER(dev_priv) >= 12));
        seq_printf(m, "Pipe A fw loaded: %s\n", yesno(dmc->dmc_info[DMC_FW_PIPEA].payload));
        seq_printf(m, "Pipe B fw support: %s\n", yesno(IS_ALDERLAKE_P(dev_priv)));
        seq_printf(m, "Pipe B fw loaded: %s\n", yesno(dmc->dmc_info[DMC_FW_PIPEB].payload));
index cc745751ac53309d343f0bd3eca330bdc493de1f..0529576f069c556058aba03b51f17f29ac82aa4f 100644 (file)
@@ -636,7 +636,7 @@ static int i915_swizzle_info(struct seq_file *m, void *data)
                           intel_uncore_read16(uncore, C0DRB3_BW));
                seq_printf(m, "C1DRB3 = 0x%04x\n",
                           intel_uncore_read16(uncore, C1DRB3_BW));
-       } else if (INTEL_GEN(dev_priv) >= 6) {
+       } else if (GRAPHICS_VER(dev_priv) >= 6) {
                seq_printf(m, "MAD_DIMM_C0 = 0x%08x\n",
                           intel_uncore_read(uncore, MAD_DIMM_C0));
                seq_printf(m, "MAD_DIMM_C1 = 0x%08x\n",
index 1bed8f666048c859304ab74ee5223ecc99580f52..7178bc6f855663ab337d32bbb6fa5956729e3f92 100644 (file)
@@ -1929,7 +1929,7 @@ int intel_uncore_init_mmio(struct intel_uncore *uncore)
                return -ENODEV;
        }
 
-       if (INTEL_GEN(i915) > 5 && !intel_vgpu_active(i915))
+       if (GRAPHICS_VER(i915) > 5 && !intel_vgpu_active(i915))
                uncore->flags |= UNCORE_HAS_FORCEWAKE;
 
        if (!intel_uncore_has_forcewake(uncore)) {