[PATCH v3 04/14] drm/i915: Drop intel_gt_tile_cleanup()

Lucas De Marchi lucas.demarchi at intel.com
Wed Sep 7 00:07:19 UTC 2022


On Tue, Sep 06, 2022 at 04:49:24PM -0700, Matt Roper wrote:
>Unmapping of the MMIO range can be done as a DRM-managed action, which
>will take care of the unmapping on device teardown and error paths.
>This will also ensure proper ordering with respect to other DRM-managed
>actions that we'll be using to clean up non-primary GTs in upcoming
>patches.
>
>We have not yet enabled any non-root GTs in the driver yet, so the
>kfree() of the GT structure is effectively dead code.  When we do start
>enabling non-root GTs in upcoming patches, those are going to be using
>DRM-managed allocations tied to the device lifetime, so we don't need to
>explicitly free them (and kfree would be incorrect anyway).
>
>Signed-off-by: Matt Roper <matthew.d.roper at intel.com>


Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

Lucas De Marchi


More information about the dri-devel mailing list