linux/drivers/gpu/drm/gma500
David Herrmann 0cdbe8ac69 drm/gem: remove misleading gfp parameter to get_pages()
drm_gem_get_pages() currently allows passing a 'gfp' parameter that is
passed to shmem combined with mapping_gfp_mask(). Given that the default
mapping_gfp_mask() is GFP_HIGHUSER, it is _very_ unlikely that anyone will
ever make use of that parameter. In fact, all drivers currently pass
redundant flags or 0.

This patch removes the 'gfp' parameter. The only reason to keep it is to
remove flags like __GFP_WAIT. But in its current form, it can only be used
to add flags. So to remove __GFP_WAIT, you'd have to drop it from the
mapping_gfp_mask, which again is stupid as this mask is used by shmem-core
for other allocations, too.

If any driver ever requires that parameter, we can introduce a new helper
that takes the raw 'gfp' parameter. The caller'd be responsible to combine
it with mapping_gfp_mask() in a suitable way. The current
drm_gem_get_pages() helper would then simply use mapping_gfp_mask() and
call the new helper. This is what shmem_read_mapping_pages{_gfp,} does
right now.

Moreover, the gfp-zone flag-usage is not obvious: If you pass a modified
zone, shmem core will WARN() or even BUG(). In other words, the following
must be true for 'gfp' passed to shmem_read_mapping_pages_gfp():
    gfp_zone(mapping_gfp_mask(mapping)) == gfp_zone(gfp)
Add a comment to drm_gem_read_pages() explaining that constraint.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-07-08 00:29:53 +02:00
..
accel_2d.c drm: Kill DRM_HZ 2013-12-18 11:33:24 +10:00
backlight.c drivers/gpu/drm/gma500/backlight.c: fix a defined-but-not-used warning for do_gma_backlight_set() 2014-01-23 16:36:55 -08:00
blitter.c drm/gma500: Add first piece of blitter code 2014-03-17 20:11:51 +01:00
blitter.h drm/gma500: Add first piece of blitter code 2014-03-17 20:11:51 +01:00
cdv_device.c drm/gma500: Unify _get_core_freq for cdv and psb 2014-03-17 20:13:24 +01:00
cdv_device.h drm/gma500/cdv: Add and hook up chip op for disabling sr 2013-08-15 00:54:44 +02:00
cdv_intel_crt.c drm/gma500: Unify encoder mode fixup 2014-03-17 20:14:01 +01:00
cdv_intel_display.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
cdv_intel_dp.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
cdv_intel_hdmi.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
cdv_intel_lvds.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
framebuffer.c drm/gma500: Add backing type and base align to psb_gem_create() 2014-03-17 20:11:59 +01:00
framebuffer.h drm/gma500: Rename psb_intel_connector to gma_connector 2013-07-24 01:47:34 +02:00
gem.c drm/gma500: Remove dead code 2014-03-17 20:12:02 +01:00
gem.h drm/gma500: Add backing type and base align to psb_gem_create() 2014-03-17 20:11:59 +01:00
gma_device.c drm/gma500: Unify _get_core_freq for cdv and psb 2014-03-17 20:13:24 +01:00
gma_device.h drm/gma500: Unify _get_core_freq for cdv and psb 2014-03-17 20:13:24 +01:00
gma_display.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
gma_display.h drm/gma500: Unify encoder mode fixup 2014-03-17 20:14:01 +01:00
gtt.c drm/gem: remove misleading gfp parameter to get_pages() 2014-07-08 00:29:53 +02:00
gtt.h drm/gma500: Add backing type and base align to psb_gem_create() 2014-03-17 20:11:59 +01:00
intel_bios.c drivers: gpu: drm: gma500: Replaced calls kzalloc & memcpy with kmemdup 2013-03-13 22:37:32 +01:00
intel_bios.h drm/gma500: Clean up various defines 2013-03-17 18:32:56 +01:00
intel_gmbus.c drm/gma500: Add aux device support for gmbus 2013-11-08 16:22:08 +01:00
intel_i2c.c
Kconfig ACPI / gpu / drm: Stop selecting VIDEO_OUTPUT_CONTROL 2014-03-20 02:37:22 +01:00
Makefile drm/gma500: Unify _get_core_freq for cdv and psb 2014-03-17 20:13:24 +01:00
mdfld_device.c
mdfld_dsi_dpi.c
mdfld_dsi_dpi.h
mdfld_dsi_output.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
mdfld_dsi_output.h intel_mid: Renamed *mrst* to *intel_mid* 2013-10-17 16:40:36 -07:00
mdfld_dsi_pkg_sender.c drm: Remove spurious ';' 2014-06-10 09:35:42 +10:00
mdfld_dsi_pkg_sender.h
mdfld_intel_display.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
mdfld_output.c
mdfld_output.h
mdfld_tmd_vid.c
mdfld_tpo_vid.c
mid_bios.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2012-10-03 23:29:23 -07:00
mid_bios.h
mmu.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-04-08 09:52:16 -07:00
mmu.h drm/gma500: Give MMU code it's own header file 2014-03-17 20:11:48 +01:00
oaktrail_crtc.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
oaktrail_device.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2013-11-15 14:19:54 +09:00
oaktrail_hdmi_i2c.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
oaktrail_hdmi.c drm/gma500: Unify encoder mode fixup 2014-03-17 20:14:01 +01:00
oaktrail_lvds.c drm/gma500: add locking to fixed panel edid probing 2014-03-24 07:54:30 +10:00
oaktrail.h gma600: Enable HDMI support 2012-11-07 10:59:32 +10:00
opregion.c drm/gma500: Move asle interrupt work into a work task 2014-03-17 20:12:04 +01:00
opregion.h
power.c drm/gma500: Add hooks for hibernation 2013-04-07 17:09:34 +02:00
power.h drm/gma500: Add hooks for hibernation 2013-04-07 17:09:34 +02:00
psb_device.c drm/gma500: Unify _get_core_freq for cdv and psb 2014-03-17 20:13:24 +01:00
psb_device.h drm/gma500/psb: Make use of generic clock code 2013-07-24 01:47:18 +02:00
psb_drv.c drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
psb_drv.h drm/gma500: Code cleanup - inline documentation 2014-03-17 20:14:10 +01:00
psb_intel_display.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
psb_intel_drv.h drm/gma500: Remove unused ioctls 2014-03-17 20:11:57 +01:00
psb_intel_lvds.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
psb_intel_modes.c
psb_intel_reg.h drm/gma500: Clean up various defines 2013-03-17 18:32:56 +01:00
psb_intel_sdvo_regs.h
psb_intel_sdvo.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
psb_irq.c drm/gma500: Add support for SGX interrupts 2014-03-17 20:11:38 +01:00
psb_irq.h drm: Kill DRM_IRQ_ARGS 2013-12-18 11:33:46 +10:00
psb_lid.c
psb_reg.h
tc35876x-dsi-lvds.c Drivers: gpu: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
tc35876x-dsi-lvds.h