diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-29 23:49:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-29 23:49:12 -0500 |
commit | 9b0cd304f26b9fca140de15deeac2bf357d1f388 (patch) | |
tree | 03a0d74614865a5b776b2a98a433232013b1d369 /drivers/gpu/host1x/debug.c | |
parent | ca2a650f3dfdc30d71d21bcbb04d2d057779f3f9 (diff) | |
parent | ef64cf9d06049e4e9df661f3be60b217e476bee1 (diff) |
Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
Pull drm updates from Dave Airlie:
"Been a bit busy, first week of kids school, and waiting on other trees
to go in before I could send this, so its a bit later than I'd
normally like.
Highlights:
- core:
timestamp fixes, lots of misc cleanups
- new drivers:
bochs virtual vga
- vmwgfx:
major overhaul for their nextgen virt gpu.
- i915:
runtime D3 on HSW, watermark fixes, power well work, fbc fixes,
bdw is no longer prelim.
- nouveau:
gk110/208 acceleration, more pm groundwork, old overlay support
- radeon:
dpm rework and clockgating for CIK, pci config reset, big endian
fixes
- tegra:
panel support and DSI support, build as module, prime.
- armada, omap, gma500, rcar, exynos, mgag200, cirrus, ast:
fixes
- msm:
hdmi support for mdp5"
* 'drm-next' of git://people.freedesktop.org/~airlied/linux: (595 commits)
drm/nouveau: resume display if any later suspend bits fail
drm/nouveau: fix lock unbalance in nouveau_crtc_page_flip
drm/nouveau: implement hooks for needed for drm vblank timestamping support
drm/nouveau/disp: add a method to fetch info needed by drm vblank timestamping
drm/nv50: fill in crtc mode struct members from crtc_mode_fixup
drm/radeon/dce8: workaround for atom BlankCrtc table
drm/radeon/DCE4+: clear bios scratch dpms bit (v2)
drm/radeon: set si_notify_smc_display_change properly
drm/radeon: fix DAC interrupt handling on DCE5+
drm/radeon: clean up active vram sizing
drm/radeon: skip async dma init on r6xx
drm/radeon/runpm: don't runtime suspend non-PX cards
drm/radeon: add ring to fence trace functions
drm/radeon: add missing trace point
drm/radeon: fix VMID use tracking
drm: ast,cirrus,mgag200: use drm_can_sleep
drm/gma500: Lock struct_mutex around cursor updates
drm/i915: Fix the offset issue for the stolen GEM objects
DRM: armada: fix missing DRM_KMS_FB_HELPER select
drm/i915: Decouple GPU error reporting from ring initialisation
...
Diffstat (limited to 'drivers/gpu/host1x/debug.c')
-rw-r--r-- | drivers/gpu/host1x/debug.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/gpu/host1x/debug.c b/drivers/gpu/host1x/debug.c index 3ec7d77de24d..ee3d12b51c50 100644 --- a/drivers/gpu/host1x/debug.c +++ b/drivers/gpu/host1x/debug.c | |||
@@ -96,7 +96,6 @@ static void show_all(struct host1x *m, struct output *o) | |||
96 | show_channels(ch, o, true); | 96 | show_channels(ch, o, true); |
97 | } | 97 | } |
98 | 98 | ||
99 | #ifdef CONFIG_DEBUG_FS | ||
100 | static void show_all_no_fifo(struct host1x *host1x, struct output *o) | 99 | static void show_all_no_fifo(struct host1x *host1x, struct output *o) |
101 | { | 100 | { |
102 | struct host1x_channel *ch; | 101 | struct host1x_channel *ch; |
@@ -153,7 +152,7 @@ static const struct file_operations host1x_debug_fops = { | |||
153 | .release = single_release, | 152 | .release = single_release, |
154 | }; | 153 | }; |
155 | 154 | ||
156 | void host1x_debug_init(struct host1x *host1x) | 155 | static void host1x_debugfs_init(struct host1x *host1x) |
157 | { | 156 | { |
158 | struct dentry *de = debugfs_create_dir("tegra-host1x", NULL); | 157 | struct dentry *de = debugfs_create_dir("tegra-host1x", NULL); |
159 | 158 | ||
@@ -180,18 +179,22 @@ void host1x_debug_init(struct host1x *host1x) | |||
180 | &host1x_debug_force_timeout_channel); | 179 | &host1x_debug_force_timeout_channel); |
181 | } | 180 | } |
182 | 181 | ||
183 | void host1x_debug_deinit(struct host1x *host1x) | 182 | static void host1x_debugfs_exit(struct host1x *host1x) |
184 | { | 183 | { |
185 | debugfs_remove_recursive(host1x->debugfs); | 184 | debugfs_remove_recursive(host1x->debugfs); |
186 | } | 185 | } |
187 | #else | 186 | |
188 | void host1x_debug_init(struct host1x *host1x) | 187 | void host1x_debug_init(struct host1x *host1x) |
189 | { | 188 | { |
189 | if (IS_ENABLED(CONFIG_DEBUG_FS)) | ||
190 | host1x_debugfs_init(host1x); | ||
190 | } | 191 | } |
192 | |||
191 | void host1x_debug_deinit(struct host1x *host1x) | 193 | void host1x_debug_deinit(struct host1x *host1x) |
192 | { | 194 | { |
195 | if (IS_ENABLED(CONFIG_DEBUG_FS)) | ||
196 | host1x_debugfs_exit(host1x); | ||
193 | } | 197 | } |
194 | #endif | ||
195 | 198 | ||
196 | void host1x_debug_dump(struct host1x *host1x) | 199 | void host1x_debug_dump(struct host1x *host1x) |
197 | { | 200 | { |