Am 27.04.21 um 16:39 schrieb Ruhl, Michael J:
-----Original Message----- From: dri-devel <[email protected]> On Behalf Of Thomas Zimmermann Sent: Tuesday, April 27, 2021 7:08 AM To: [email protected]; [email protected]; Vivi, Rodrigo <[email protected]>; [email protected]; [email protected]; Auld, Matthew <[email protected]> Cc: Tvrtko Ursulin <[email protected]>; Ursulin, Tvrtko <[email protected]>; Mika Kuoppala <[email protected]>; [email protected]; Gustavo A. R. Silva <[email protected]>; [email protected]; Chris Wilson <[email protected]>; Tang, CQ <[email protected]>; Hellstrom, Thomas <[email protected]>; Thomas Zimmermann <[email protected]>; Daniel Vetter <[email protected]>; Liu, Xinyun <[email protected]>; Dan Carpenter <[email protected]> Subject: [PATCH] drm/i915/gem: Remove reference to struct drm_device.pdev References to struct drm_device.pdev should be used any longer asshould not be used ^^^ ?
Oh, indeed.
mthe field will be moved into the struct's legacy section. Add a fix for the rsp commit. Signed-off-by: Thomas Zimmermann <[email protected]> Fixes: d57d4a1daf5e ("drm/i915: Create stolen memory region from local memory") Cc: CQ Tang <[email protected]> Cc: Matthew Auld <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Xinyun Liu <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Jani Nikula <[email protected]> Cc: Joonas Lahtinen <[email protected]> Cc: Rodrigo Vivi <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Mika Kuoppala <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: "Thomas Hellström" <[email protected]> Cc: "Gustavo A. R. Silva" <[email protected]> Cc: Dan Carpenter <[email protected]> Cc: [email protected] --- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_stolen.c b/drivers/gpu/drm/i915/gem/i915_gem_stolen.c index c5b64b2400e8..e1a32672bbe8 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_stolen.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_stolen.c @@ -773,7 +773,7 @@ struct intel_memory_region * i915_gem_stolen_lmem_setup(struct drm_i915_private *i915) { struct intel_uncore *uncore = &i915->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 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel_______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
