gem_bad_blit: Make the BAD_GTT_TEST address more than 32 bits
PATCH 1/1 gem_bad_blit: Make the BAD_GTT_TEST address more than 32 bits
gem_bad_blit.c: In function ‘bad_blit’:
gem_bad_blit.c:89:3: warning: right shift count >= width of type [enabled by default]
OUT_BATCH(BAD_GTT_DEST >> 32); /* Upper 16 bits */
--- tests/gem_bad_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/gem_bad_blit.c +1 -1
@@ -60,7 +60,7 @@static drm_intel_bufmgr *bufmgr;struct intel_batchbuffer *batch; -#define BAD_GTT_DEST ((256*1024*1024))/* past end of aperture */ +#define BAD_GTT_DEST ((256*1024*1024ULL))/* past end of aperture */ static void bad_blit (drm_intel_bo *src_bo,uint32_t devid)
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 14 lines · Damien Lespiau
gem_bad_blit.c: In function ‘bad_blit’:
gem_bad_blit.c:89:3: warning: right shift count >= width of type [enabled by default]
OUT_BATCH(BAD_GTT_DEST >> 32); /* Upper 16 bits */Signed-off-by Damien Lespiau <[email protected]>--- tests/gem_bad_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/gem_bad_blit.c +0
-0
tests/gem_bad_blit.c line 63
Quoted 5 lines
tests/gem_bad_blit.c +1
-1@@ -60,7 +60,7 @@static drm_intel_bufmgr *bufmgr;struct intel_batchbuffer *batch; -#define BAD_GTT_DEST ((256*1024*1024))/* past end of aperture */ +#define BAD_GTT_DEST ((256*1024*1024ULL))/* past end of aperture */
Why not three pairs of braces? Or... *gasp* just one? ;)
Jani.
Quoted 10 lines
tests/gem_bad_blit.c +0
-0static void bad_blit (drm_intel_bo *src_bo,uint32_t devid)Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 14 lines · Damien Lespiau
gem_bad_blit.c: In function ‘bad_blit’:
gem_bad_blit.c:89:3: warning: right shift count >= width of type [enabled by default]
OUT_BATCH(BAD_GTT_DEST >> 32); /* Upper 16 bits */Signed-off-by Damien Lespiau <[email protected]>--- tests/gem_bad_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/gem_bad_blit.c +0
-0
tests/gem_bad_blit.c line 63
Quoted 5 lines
tests/gem_bad_blit.c +1
-1@@ -60,7 +60,7 @@static drm_intel_bufmgr *bufmgr;struct intel_batchbuffer *batch; -#define BAD_GTT_DEST ((256*1024*1024))/* past end of aperture */ +#define BAD_GTT_DEST ((256*1024*1024ULL))/* past end of aperture */
Hmm, that comment and this test do not make sense. It has not been a bad blit since g33.
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 18 lines · Chris Wilson
Quoted 17 lines · Damien Lespiau
gem_bad_blit.c: In function ‘bad_blit’:
gem_bad_blit.c:89:3: warning: right shift count >= width of type [enabled by default]
OUT_BATCH(BAD_GTT_DEST >> 32); /* Upper 16 bits */Signed-off-by Damien Lespiau <[email protected]>--- tests/gem_bad_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/gem_bad_blit.c +0
-0@@ -60,7 +60,7 @@static drm_intel_bufmgr *bufmgr;struct intel_batchbuffer *batch;
Quoted 5 lines
tests/gem_bad_blit.c line 63
Quoted 2 lines
tests/gem_bad_blit.c +1
-1-#define BAD_GTT_DEST ((256*1024*1024))/* past end of aperture */ +#define BAD_GTT_DEST ((256*1024*1024ULL))/* past end of aperture */ Hmm, that comment and this test do not make sense. It has not been a bad blit since g33.
Yeah, I guess time to git rm gem_bad_blt. We have the hangman now to exercise the reset/hang detection manchinery.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx