linux-stable/drivers/gpu/drm/i915
Mika Kuoppala edc3d8848d drm/i915: avoid big kmallocs on reading error state
Sometimes when user is trying to get error state out from
debugfs after gpu hang, the memory is low and/or fragmented
enough that kmalloc in seq_file will fail.

Prevent big kmalloc by avoiding seq_file and instead convert
error state to string in smaller chunks.

v2: better alloc flags, better truncate, correct
locking, and error handling improvements (Chris Wilson)

v3: printf annotations (Daniel Vetter)

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-05-23 12:59:25 +02:00
..
dvo.h
dvo_ch7xxx.c drm/i915: add support for dvo Chrontel 7010B 2013-05-20 22:02:49 +02:00
dvo_ch7017.c
dvo_ivch.c
dvo_ns2501.c
dvo_sil164.c
dvo_tfp410.c
i915_debugfs.c drm/i915: avoid big kmallocs on reading error state 2013-05-23 12:59:25 +02:00
i915_dma.c drm/i915: Organize VBT stuff inside drm_i915_private 2013-05-10 21:56:46 +02:00
i915_drv.c drm/i915: Enable FBC at Haswell. 2013-05-10 21:56:49 +02:00
i915_drv.h drm/i915: avoid big kmallocs on reading error state 2013-05-23 12:59:25 +02:00
i915_gem.c drm/i915: Workaround incoherence with fence updates on Valleyview 2013-05-23 12:51:31 +02:00
i915_gem_context.c drm/i915: Add references to some workaround we implement 2013-05-10 21:56:34 +02:00
i915_gem_debug.c
i915_gem_dmabuf.c drm/i915: fix dmabuf vmap support 2013-05-01 16:09:31 +10:00
i915_gem_evict.c drm/i915: Create a gtt structure 2013-01-17 22:33:56 +01:00
i915_gem_execbuffer.c Merge tag 'drm-intel-next-2013-03-23' of git://people.freedesktop.org/~danvet/drm-intel into drm-next 2013-04-05 10:18:13 +10:00
i915_gem_gtt.c Linux 3.10-rc2 2013-05-21 09:52:16 +02:00
i915_gem_stolen.c drm/i915: allow stolen, pre-allocated objects to avoid GTT allocation v2 2013-05-10 21:56:37 +02:00
i915_gem_tiling.c drm/i915: Increase max fence pitch limit to 256KB on IVB+ 2013-04-18 09:43:20 +02:00
i915_ioc32.c
i915_irq.c drm/i915: fix hotplug event bit tracking 2013-05-10 21:56:34 +02:00
i915_reg.h drm/i915: set FORCE_ARB_IDLE_PLANES workaround 2013-05-23 12:51:04 +02:00
i915_suspend.c drm/i915: protect backlight registers and data with a spinlock 2013-04-25 14:10:10 +02:00
i915_sysfs.c drm/i915: read current freq from Punit on VLV 2013-05-10 21:56:27 +02:00
i915_trace.h
i915_trace_points.c
i915_ums.c drm/i915: Apply OCD to data/link m/n register #defines 2013-05-06 11:27:57 +02:00
intel_acpi.c
intel_bios.c drm/i915: Organize VBT stuff inside drm_i915_private 2013-05-10 21:56:46 +02:00
intel_bios.h drm/i915: set CPT FDI RX polarity bits based on VBT 2013-04-18 09:43:31 +02:00
intel_crt.c drm/i915: add encoder get_config function v5 2013-05-21 09:55:19 +02:00
intel_ddi.c drm/i915: make intel_ddi_get_cdclk_freq return values in KHz 2013-05-21 11:54:41 +02:00
intel_display.c drm/i915: avoid big kmallocs on reading error state 2013-05-23 12:59:25 +02:00
intel_dp.c drm/i915: Cocci spatch "memdup.spatch" 2013-05-23 12:51:31 +02:00
intel_drv.h drm/i915: remove intel_update_linetime_watermarks 2013-05-21 11:19:41 +02:00
intel_dvo.c drm/i915: add encoder get_config function v5 2013-05-21 09:55:19 +02:00
intel_fb.c drm/i915: clear the stolen fb before resuming 2013-05-07 22:25:11 +02:00
intel_hdmi.c drm/i915: add encoder get_config function v5 2013-05-21 09:55:19 +02:00
intel_i2c.c drm/i915: Don't touch South Display when PCH_NOP 2013-04-08 20:53:00 +02:00
intel_lvds.c drm/i915: add encoder get_config function v5 2013-05-21 09:55:19 +02:00
intel_modes.c drm/i915: Add "Automatic" mode for the "Broadcast RGB" property 2013-01-20 13:09:44 +01:00
intel_opregion.c Linux 3.10-rc2 2013-05-21 09:52:16 +02:00
intel_overlay.c drm/i915: avoid big kmallocs on reading error state 2013-05-23 12:59:25 +02:00
intel_panel.c drm/i915: Fix WARN_ON() on UP machines 2013-05-23 12:51:30 +02:00
intel_pm.c drm/i915: set FORCE_ARB_IDLE_PLANES workaround 2013-05-23 12:51:04 +02:00
intel_ringbuffer.c drm/i915: Add references to some workaround we implement 2013-05-10 21:56:34 +02:00
intel_ringbuffer.h drm/i915: put context upon switching 2013-05-06 11:20:48 +02:00
intel_sdvo.c drm/i915: add encoder get_config function v5 2013-05-21 09:55:19 +02:00
intel_sdvo_regs.h
intel_sprite.c drm/i915: Relax the sprite scaling limits checks 2013-04-30 22:20:10 +02:00
intel_tv.c drm/i915: Organize VBT stuff inside drm_i915_private 2013-05-10 21:56:46 +02:00
Makefile drm/i915: extract ums suspend/resume into i915_ums.c 2013-01-31 11:50:03 +01:00