mirror_ubuntu-kernels/drivers/gpu/drm/gma500
Thomas Zimmermann 957a2d0e7e drm/gma500: Allocate GTT ranges in stolen memory with psb_gem_create()
Support private objects for stolen memory in psb_gem_create() and
convert users to psb_gem_create(). For stolen memory, psb_gem_create()
now initializes the GEM object via drm_gem_private_object_init().

In the fbdev setup, replace the open-coded initialization of struct
gtt_range with a call to psb_gem_create(). Use drm_gem_object_put()
for release.

In the cursor setup, use psb_gem_create() and get a real GEM object.
Previously the allocated instance of struct gtt_range was only partially
initialized. Release the cursor GEM object in gma_crtc_destroy(). The
release was missing from the original code.

With the conversion of all callers to psb_gem_create(), the extern
declarations of psb_gtt_alloc_range, psb_gtt_free_range and
psb_gem_object_func are not required any longer. Declare them as
static.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211015084053.13708-5-tzimmermann@suse.de
2021-10-19 10:38:48 +02:00
..
backlight.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
cdv_device.c drm/gma500: Embed struct drm_device in struct drm_psb_private 2021-09-23 09:40:39 +02:00
cdv_device.h drm/gma500: Unify crtc helpers 2021-02-09 13:07:41 +01:00
cdv_intel_crt.c drm/gma500/cdv: Remove unused code for crt init 2021-02-09 13:07:39 +01:00
cdv_intel_display.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
cdv_intel_dp.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
cdv_intel_hdmi.c drm/gma500: Remove Medfield support 2021-02-09 17:14:11 +01:00
cdv_intel_lvds.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
framebuffer.c drm/gma500: Allocate GTT ranges in stolen memory with psb_gem_create() 2021-10-19 10:38:48 +02:00
framebuffer.h
gem.c drm/gma500: Allocate GTT ranges in stolen memory with psb_gem_create() 2021-10-19 10:38:48 +02:00
gem.h drm/gma500: Allocate GTT ranges in stolen memory with psb_gem_create() 2021-10-19 10:38:48 +02:00
gma_device.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
gma_device.h
gma_display.c drm/gma500: Allocate GTT ranges in stolen memory with psb_gem_create() 2021-10-19 10:38:48 +02:00
gma_display.h
gtt.c drm/gma500: Move helpers for struct gtt_range from gtt.c to gem.c 2021-10-19 10:31:15 +02:00
gtt.h drm/gma500: Move helpers for struct gtt_range from gtt.c to gem.c 2021-10-19 10:31:15 +02:00
intel_bios.c drm/gma500: Embed struct drm_device in struct drm_psb_private 2021-09-23 09:40:39 +02:00
intel_bios.h drm/gma500/intel_bios.h: Replace zero-length array with flexible-array member 2020-03-06 11:40:53 +01:00
intel_gmbus.c drm/gma500: Embed struct drm_device in struct drm_psb_private 2021-09-23 09:40:39 +02:00
intel_i2c.c drm/gma500/intel_i2c: Remove superflouous parameter description and rename another 2021-01-18 15:41:51 +01:00
Kconfig drm/gma500: Remove dependency on TTM 2021-02-09 17:14:12 +01:00
Makefile drm/gma500: Drop DRM_GMA3600 config option 2021-02-09 17:14:11 +01:00
mid_bios.c drm/gma500: Embed struct drm_device in struct drm_psb_private 2021-09-23 09:40:39 +02:00
mid_bios.h
mmu.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
mmu.h
oaktrail_crtc.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
oaktrail_device.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
oaktrail_hdmi_i2c.c gma500: clean up error handling in init 2020-12-03 10:50:57 +01:00
oaktrail_hdmi.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
oaktrail_lvds_i2c.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
oaktrail_lvds.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
oaktrail.h
opregion.c drm/gma500: Embed struct drm_device in struct drm_psb_private 2021-09-23 09:40:39 +02:00
opregion.h
power.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
power.h
psb_device.c Revert "drm/gma500: cleanup: drm_modeset_lock_all() --> DRM_MODESET_LOCK_ALL_BEGIN()" 2021-10-04 09:34:55 -04:00
psb_device.h
psb_drv.c drm/gma500: Fix wrong pointer passed to PTR_ERR() 2021-09-24 20:11:40 +02:00
psb_drv.h drm/gma500: Embed struct drm_device in struct drm_psb_private 2021-09-23 09:40:39 +02:00
psb_intel_display.c drm/gma500: Allocate GTT ranges in stolen memory with psb_gem_create() 2021-10-19 10:38:48 +02:00
psb_intel_drv.h drm: gma500: Convert to GPIO descriptors 2020-08-19 15:48:09 +02:00
psb_intel_lvds.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
psb_intel_modes.c drm/gma500/psb_intel_modes: Provide missing descriptions for function param 'adapter' 2021-01-18 15:45:29 +01:00
psb_intel_reg.h drm/gma500: Remove Medfield support 2021-02-09 17:14:11 +01:00
psb_intel_sdvo_regs.h
psb_intel_sdvo.c drm/gma500: Replace references to dev_private with helper function 2021-09-23 09:40:20 +02:00
psb_irq.c drm/gma500: Embed struct drm_device in struct drm_psb_private 2021-09-23 09:40:39 +02:00
psb_irq.h drm/gma500: Convert to Linux IRQ interfaces 2021-08-10 20:13:32 +02:00
psb_lid.c drm/gma500: Embed struct drm_device in struct drm_psb_private 2021-09-23 09:40:39 +02:00
psb_reg.h drm/gma500: Remove Medfield support 2021-02-09 17:14:11 +01:00