96 Commits

Author SHA1 Message Date
Robert Bragg
8c7be93544 A pedantic addition of a format string to a printf call
The printf used to clear the screen didn't have a format string, this
adds one to avoid a compiler warning.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:37 -07:00
Robert Bragg
700e45a522 Adds unicode bars for quickly visualizing the busy percentages
It can be a bit easier to digest the percentages with bar graphs than by
scanning continually changing numbers.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:30 -07:00
Robert Bragg
2f0c0aa8ae Increases the sample frequency from 100/sec to 10,000/sec
For a typical vsync locked application running at 60fps, sampling at just
under twice a frame doesn't seem to give very stable lists of relevent hardware
units because there are a number of units involved that may not be sampled one
second to the next.

This bumps the sample rate to 10,000 instead which is ~ 170 samples per
frame so we tend to hit all the units involved.

It also changes the report threshold to a sample count >= 1, so you don't
see as many units with a percentage of 0.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:24 -07:00
Robert Bragg
2a50faae7e Revert "intel_gpu_top:print a visual clue on how big a certain use is"
This reverts commit 5e13b98da1e7e31cffba84fd257002357d5f2682.

We can print prettier graphs using unicode

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:15 -07:00
Eric Anholt
114763f419 intel_gpu_top: Print GPU clock information, which seems interesting. 2009-06-04 14:39:41 +00:00
Arjan van de Ven
5e13b98da1 intel_gpu_top:print a visual clue on how big a certain use is
humans are pretty bad at reading percentages quicky; this patch adds a
histogram capability to make it more visually clear as to which lines are
big ticket items
2009-06-04 14:07:48 +00:00
Eric Anholt
0521bca629 Bump version to 1.0.1 for release. 2009-05-19 16:48:40 -07:00
Eric Anholt
3365c8563a intel_gpu_dump: Stop decoding batchbuffers after MI_BATCH_BUFFER_END. 2009-05-19 16:32:39 -07:00
Eric Anholt
652d5518d6 Add decode of gen4 PIPE_CONTROL 2009-05-19 16:26:35 -07:00
Eric Anholt
b7d70fc1fd Add decode of dest buffer variables (destination format)
(cherry-pick from Mesa commit 0af7e9170fd7c0d906652378b9f78fe2ba9725ad)
2009-05-19 16:12:43 -07:00
Eric Anholt
e71c628302 Add manpages for all installed binaries. 2009-05-19 16:09:08 -07:00
Eric Anholt
49cba961a2 Add gem_largeobject to ignore. 2009-05-19 15:53:55 -07:00
Jesse Barnes
433e1c85a0 tests: add large object test
The large object test simply tries to allocate a 128M object, pin it, then
pwrite the whole thing.  This should make obvious any leaks on close or
page pointer allocation failures.
2009-05-14 14:39:48 -07:00
Eric Anholt
c9de429332 Fix distcheck 2009-04-27 09:45:22 -07:00
Eric Anholt
49ccc2bfc2 .gitignore libtool junk 2009-04-27 09:41:41 -07:00
Eric Anholt
7583e811a5 intel_gpu_top: Add ring information. 2009-04-27 09:39:05 -07:00
Eric Anholt
302d15f2e7 Add a test to try to fill the ring.
Did this while trying to debug the Ubuntu DRI1+compiz issue.  Didn't succeed
in filling the ring.
2009-04-27 09:35:40 -07:00
Carl Worth
28a1d6436e intel_gpu_dump: Use asprintf instead of a static-sized array
Not that we're really concerned about buffer-overrun attacks
against this utility, but still, good habits and clean code
are always preferred.
2009-04-13 14:35:11 -07:00
Carl Worth
5b8c19445c intel_gpu_dump: Give a nicer message for missing batchbuffer-dumping code
This is the case where debugfs is mounted, the dri/0 directory
exists but there's no i915_ringbuffer_info file. Point the user
toward upgrading the driver.
2009-04-13 14:33:09 -07:00
Carl Worth
0a820610ee intel_gpu_dump: Mention filename in error message
This helps for when the user makes a typo trying to pass a file
or directory name to intel_gpu_dump.
2009-04-13 14:06:00 -07:00
Carl Worth
660a20f611 Add example command for mounting debugfs
This is a nice opportunity to teach the user something, (and help our
users to actually succeed in creating useful bug reports for us).
2009-04-13 14:02:04 -07:00
Eric Anholt
48888093b2 intel_gpu_dump: Add no-arguments automatic mode, and clean up comments. 2009-04-12 18:03:25 -07:00
Eric Anholt
5b40c86c9a intel_gpu_dump: Dump ring, batch, and head/tail info when given the directory. 2009-04-12 17:49:31 -07:00
Eric Anholt
d69042dde6 intel_gpu_dump: Decode the GTT offset of batchbuffers. 2009-04-12 17:04:31 -07:00
Eric Anholt
593a47f00e intel_gpu_dump: Get the devid so we can decode correctly on gen4. 2009-04-12 15:57:07 -07:00
Eric Anholt
b51588b9bd Fix warning about assert in intel_batchbuffer.h 2009-04-07 19:07:18 -07:00
Eric Anholt
548a6a7fa2 Add a test for reading tiled objects with pread. 2009-04-07 19:06:36 -07:00
Eric Anholt
cd9ba0a3b6 Add a test for pread after blitting to an object.
This caught a bug with get_user_pages usage in the kernel, which would
result in zeroes being read out of the object when faulting in a new page.
2009-04-07 19:06:33 -07:00
Carl Worth
00c7571fce Add very preliminary intel_gpu_dump program
Right now it requires a filename on the command line, (such as
/debug/dri/0/i915_batchbuffers). We plan to make it smarter in
the future by going out and collecting all the data it needs.
2009-04-07 16:24:42 -07:00
Carl Worth
90ca63163d Add Eric's batchbuffer-decode code
This comes from the 3D driver within mesa, with identically named files.
In its new life here it will become a standalone program.
2009-04-07 16:23:03 -07:00
Eric Anholt
3b301df9ec Add a regression test for tiled object blitting. 2009-04-03 14:23:06 -07:00
Eric Anholt
cb5a35fe8e Add a couple of other intel_upload_blit_large variants for comparison. 2009-03-31 10:01:07 -07:00
Eric Anholt
7889abd263 intel_upload_blit_*: Fix reporting and generate junk instead of using random.
Turns out that random completely overwhelmed the cost of the driver stuff
in _large.c.  I definitely want to generate data, but still be able to see
the driver's responsibility.
2009-03-30 19:09:00 -07:00
Eric Anholt
614b165c60 Add intel_chipset.h to fix dist. 2009-03-30 19:08:43 -07:00
Eric Anholt
ce4782dc9d Move i810_reg.h to lib/intel_reg.h and get it disted. 2009-03-27 16:11:50 -07:00
Eric Anholt
0581738c7a tests/: warning fixes 2009-03-27 16:04:25 -07:00
Eric Anholt
1eabfa9a14 rename project 2009-03-27 16:03:12 -07:00
Eric Anholt
676a109723 readme fixups 2009-03-27 16:03:02 -07:00
Eric Anholt
3ba49a9295 intel_gpu_top: Add more 965 bits. 2009-03-27 13:13:47 -07:00
Eric Anholt
fbbf124f8d Port intel_idle from 2D driver as intel_gpu_top with a better interface. 2009-03-27 12:27:55 -07:00
Eric Anholt
872713057a intel_stepping: Add G45 and GM45. 2009-03-27 11:07:33 -07:00
Eric Anholt
29777a542b Add intel_stepping from the 2D driver. 2009-03-27 11:01:14 -07:00
Eric Anholt
895a415909 Add the tests we want from libdrm. 2009-03-26 18:47:42 -07:00
Eric Anholt
ec172167d6 Fix project name/version for distfiles. 2009-03-26 18:45:01 -07:00
Eric Anholt
6abc9b13f0 Add notes about running things as root. 2009-03-26 18:44:13 -07:00
Eric Anholt
8c64183a46 Initial import of intel-graphics-tools with some microbenchmarks. 2009-03-26 17:15:11 -07:00