diff mbox series

drm/i915: remove unused HAS_BROKEN_CS_TLB()

Message ID 20240731110744.1572240-1-jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915: remove unused HAS_BROKEN_CS_TLB() | expand

Commit Message

Jani Nikula July 31, 2024, 11:07 a.m. UTC
The last users have been removed years ago. Finish the job.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/i915_drv.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Gustavo Sousa July 31, 2024, 6:43 p.m. UTC | #1
Quoting Jani Nikula (2024-07-31 08:07:44-03:00)
>The last users have been removed years ago. Finish the job.

It looks like it became unused with commit cbcfa8a3e160 ("drm/i915: Drop
the shadow w/a batch buffer").

>
>Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>

>---
> drivers/gpu/drm/i915/i915_drv.h | 3 ---
> 1 file changed, 3 deletions(-)
>
>diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
>index d7723dd11c80..94f7f6cc444c 100644
>--- a/drivers/gpu/drm/i915/i915_drv.h
>+++ b/drivers/gpu/drm/i915/i915_drv.h
>@@ -678,9 +678,6 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
>         ((sizes) & ~RUNTIME_INFO(i915)->page_sizes) == 0; \
> })
> 
>-/* Early gen2 have a totally busted CS tlb and require pinned batches. */
>-#define HAS_BROKEN_CS_TLB(i915)        (IS_I830(i915) || IS_I845G(i915))
>-
> #define NEEDS_RC6_CTX_CORRUPTION_WA(i915)        \
>         (IS_BROADWELL(i915) || GRAPHICS_VER(i915) == 9)
> 
>-- 
>2.39.2
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index d7723dd11c80..94f7f6cc444c 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -678,9 +678,6 @@  IS_SUBPLATFORM(const struct drm_i915_private *i915,
 	((sizes) & ~RUNTIME_INFO(i915)->page_sizes) == 0; \
 })
 
-/* Early gen2 have a totally busted CS tlb and require pinned batches. */
-#define HAS_BROKEN_CS_TLB(i915)	(IS_I830(i915) || IS_I845G(i915))
-
 #define NEEDS_RC6_CTX_CORRUPTION_WA(i915)	\
 	(IS_BROADWELL(i915) || GRAPHICS_VER(i915) == 9)