[Intel-gfx] [PATCH v8 2/5] drm/i915/gt: Remove reference to struct drm_device.pdev

Ruhl, Michael J michael.j.ruhl at intel.com
Thu Apr 29 16:02:59 UTC 2021


>-----Original Message-----
>From: Intel-gfx <intel-gfx-bounces at lists.freedesktop.org> On Behalf Of
>Thomas Zimmermann
>Sent: Thursday, April 29, 2021 6:51 AM
>To: jani.nikula at linux.intel.com; joonas.lahtinen at linux.intel.com; Vivi, Rodrigo
><rodrigo.vivi at intel.com>; airlied at linux.ie; daniel at ffwll.ch; chris at chris-
>wilson.co.uk
>Cc: Winiarski, Michal <michal.winiarski at intel.com>; Nikula, Jani
><jani.nikula at intel.com>; Daniel Vetter <daniel.vetter at ffwll.ch>; intel-
>gfx at lists.freedesktop.org; De Marchi, Lucas <lucas.demarchi at intel.com>; dri-
>devel at lists.freedesktop.org; Auld, Matthew <matthew.auld at intel.com>;
>Thomas Zimmermann <tzimmermann at suse.de>
>Subject: [Intel-gfx] [PATCH v8 2/5] drm/i915/gt: Remove reference to struct
>drm_device.pdev
>
>References to struct drm_device.pdev should not be used any longer as
>the field will be moved into the struct's legacy section. Add a fix
>for the rsp commit.
>
>v8:
>	* fix commit message (Michael)

Reviewed-by: Michael J. Ruhl <michael.j.ruhl at intel.com>

m

>Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
>Fixes: a50ca39fbd01 ("drm/i915: setup the LMEM region")
>Cc: Lucas De Marchi <lucas.demarchi at intel.com>
>Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
>Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
>Cc: Matthew Auld <matthew.auld at intel.com>
>Cc: Jani Nikula <jani.nikula at intel.com>
>Cc: Chris Wilson <chris at chris-wilson.co.uk>
>Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
>Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
>Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
>Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
>Cc: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota at intel.com>
>Cc: "Michał Winiarski" <michal.winiarski at intel.com>
>---
> drivers/gpu/drm/i915/gt/intel_region_lmem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/i915/gt/intel_region_lmem.c
>b/drivers/gpu/drm/i915/gt/intel_region_lmem.c
>index be6f2c8f5184..73fceb0c25fc 100644
>--- a/drivers/gpu/drm/i915/gt/intel_region_lmem.c
>+++ b/drivers/gpu/drm/i915/gt/intel_region_lmem.c
>@@ -177,7 +177,7 @@ static struct intel_memory_region
>*setup_lmem(struct intel_gt *gt)
> {
> 	struct drm_i915_private *i915 = gt->i915;
> 	struct intel_uncore *uncore = gt->uncore;
>-	struct pci_dev *pdev = i915->drm.pdev;
>+	struct pci_dev *pdev = to_pci_dev(i915->drm.dev);
> 	struct intel_memory_region *mem;
> 	resource_size_t io_start;
> 	resource_size_t lmem_size;
>--
>2.31.1
>
>_______________________________________________
>Intel-gfx mailing list
>Intel-gfx at lists.freedesktop.org
>https://lists.freedesktop.org/mailman/listinfo/intel-gfx


More information about the Intel-gfx mailing list