Bug 78244 - [IVB/HSW ULT]igt/gem_render_tiled_blits costs long time to execute
Summary: [IVB/HSW ULT]igt/gem_render_tiled_blits costs long time to execute
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Damien Lespiau
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 07:04 UTC by Guo Jinxian
Modified: 2017-10-06 14:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (86.39 KB, text/plain)
2014-05-04 07:04 UTC, Guo Jinxian
no flags Details

Description Guo Jinxian 2014-05-04 07:04:10 UTC
Created attachment 98402 [details]
dmesg

*System Environment:
--------------------------
Platform: IVB HSW ULT
kernel: 
-nightly: 08ce6614d07dd1e426109672a5e323317c8d6ec7(fails)
-queued: e5c03ca362819ba8ffbe5674340b61b9cd75de8f (fails)
-fixes: 9bbfd20abe5025adbb0ac75160bd2e41158a9e83 (fails)


 *Bug detailed description:
-----------------------------
igt/gem_render_tiled_blits costs long time to execute, it costs about 12 minutes to finish.


This case always timeout.

Output:
date;./gem_render_tiled_blits;date
Sun May  4 13:07:16 CST 2014
IGT-Version: 1.6-gc864279 (x86_64) (Linux: 3.15.0-rc2_drm-intel-nightly_08ce66_20140504+ x86_64)
Using 3072 1MiB buffers
Verifying initialisation...
Cyclic blits, forward...
Cyclic blits, backward...
Random blits...
Sun May  4 13:18:33 CST 2014

 *Reproduce steps:
---------------------------- 
1. ./gem_render_tiled_blits
Comment 1 Chris Wilson 2014-05-04 07:11:49 UTC
Tip: use "time ./cmd" rather than "date; ./cmd; date"
Comment 2 Chris Wilson 2014-05-08 11:27:15 UTC
commit 66d5f092d46120d97a0408dcd8fea0c0e086d7a8
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu May 8 11:56:56 2014 +0100

    igt/gem_render_tiled_blits: Speed up by using the GPU to detile
    
    Avoid accessing via the slow GTT to read back and compare the contents
    of each bo against expected results. It is much faster, on llc at least,
    to detile using the GPU and then copy to system memory for the compare.
    
    Before:
    
    IVB: time sudo ./gem_render_tiled_blits
    IGT-Version: 1.6-ge46ff3f (x86_64) (Linux: 3.15.0-rc3+ x86_64)
    Using 3072 1MiB buffers
    Verifying initialisation...
    Cyclic blits, forward...
    Cyclic blits, backward...
    Random blits...
    
    real	6m26.005s
    user	6m19.234s
    sys	0m2.414s
    
    PNV: time sudo ./gem_render_tiled_blits
    IGT-Version: 1.6-g8556f8a (i686) (Linux: 3.15.0-rc2+ i686)
    Using 768 1MiB buffers
    Verifying initialisation...
    Cyclic blits, forward...
    Cyclic blits, backward...
    Random blits...
    
    real	1m45.431s
    user	1m34.960s
    sys	0m4.624s
    
    Using pread:
    
    IVB: time sudo ./gem_render_tiled_blits
    IGT-Version: 1.6-ge46ff3f (x86_64) (Linux: 3.15.0-rc3+ x86_64)
    Using 3072 1MiB buffers
    Verifying initialisation...
    Cyclic blits, forward...
    Cyclic blits, backward...
    Random blits...
    
    real	0m14.717s
    user	0m3.699s
    sys	0m3.192s
    
    Using snoop:
    
    IVB: time sudo ./gem_render_tiled_blits
    IGT-Version: 1.6-ge46ff3f (x86_64) (Linux: 3.15.0-rc3+ x86_64)
    Using 3072 1MiB buffers
    Using a snoop linear buffer for comparisons
    Verifying initialisation...
    Cyclic blits, forward...
    Cyclic blits, backward...
    Random blits...
    
    real	0m13.774s
    user	0m3.900s
    sys	0m2.089s
    
    PNV: time sudo ./gem_render_tiled_blits
    IGT-Version: 1.6-g8556f8a (i686) (Linux: 3.15.0-rc2+ i686)
    Using 768 1MiB buffers
    Using a snoop linear buffer for comparisons
    Verifying initialisation...
    Cyclic blits, forward...
    Cyclic blits, backward...
    Random blits...
    
    real	0m20.831s
    user	0m4.384s
    sys	0m5.032s
    
    So roughly 10-30x faster depending on platform.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78244
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 3 Guo Jinxian 2014-05-15 06:10:41 UTC
Fixed on latest -nightly(2be456541ea41728002ccca2de5235f48d14326e), Thanks.
Comment 4 Elizabeth 2017-10-06 14:38:24 UTC
Closing old verified.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.