[Mesa-dev] No luck with tstellar/llvm on HD4890

Vincent Lejeune vljn at ovi.com
Wed Nov 7 08:32:03 PST 2012


git seems to have trouble sending my patch to ML atm, can you manually apply it ? It fixes lock up here

diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 5f2548e..f06af44 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -2961,6 +2961,6 @@ void r600_bytecode_export_read(struct r600_bytecode_output *output, uint32_t wor
 output->swizzle_w = G_SQ_CF_ALLOC_EXPORT_WORD1_SWIZ_SEL_W(word1);
 output->burst_count = G_SQ_CF_ALLOC_EXPORT_WORD1_BURST_COUNT(word1);
 output->end_of_program = G_SQ_CF_ALLOC_EXPORT_WORD1_END_OF_PROGRAM(word1);
-output->inst = EG_S_SQ_CF_ALLOC_EXPORT_WORD1_CF_INST(G_SQ_CF_ALLOC_EXPORT_WORD1_CF_INST(word1));
+output->inst = R600_S_SQ_CF_ALLOC_EXPORT_WORD1_CF_INST(G_SQ_CF_ALLOC_EXPORT_WORD1_CF_INST(word1));
 output->barrier = G_SQ_CF_ALLOC_EXPORT_WORD1_BARRIER(word1);
 }
-- 



----- Mail original -----
> De : Andy Furniss <andyqos at ukfsn.org>
> À : Mathias Fröhlich <Mathias.Froehlich at gmx.net>
> Cc : Vincent Lejeune <vljn at ovi.com>; "mesa-dev at lists.freedesktop.org" <mesa-dev at lists.freedesktop.org>
> Envoyé le : Mardi 6 novembre 2012 22h20
> Objet : Re: [Mesa-dev] No luck with tstellar/llvm on HD4890
> 
> Mathias Fröhlich wrote:
>> 
>>  Hi Vincent,
>> 
>>  On Tuesday, November 06, 2012 12:14:52 Vincent Lejeune wrote:
>>>  Do you use the master branch ?
>>  Yes, e3213f01f7764af573ed641a7bc98dde5824e321 is my current head in llvm.
>> 
>>>  This commit generates some llvm.R600.store.pixel.color/stencil/depth
>>>  intrinsics, which were introduced by this commit :
>>> 
> http://cgit.freedesktop.org/~tstellar/llvm/commit/?id=761b5e4d7d62f7dc7ac55
>>>  61f355a1eb0d7dd766e
>>  Is included.
>> 
>>>  I think the "unreachable" error means that llvm does not 
> recognise the
>>>  intrinsic ; if llvm recognised the intrinsic but didn't know how to 
> lower
>>>  it, there would be a "cannot select" error message.
>>  I have not tested that much like Andy seems to have tested.
>>  So I did not get this message. But with gears I get a bunch of gpu resets.
> 
> I only saw unreachable with older llvm and head mesa
> 
>> 
>>  Well, just have already tracked down the lockup to reverting to the 
> mentioned
>>  patch in mesa instead of trying to bisect llvm.
> 
> I agree - well, with head llvm and mesa reset to the commit before the 
> one above I no longer lockup gpu.
> 
> While simple things seem OK with mesa on
> 1feb6b79ab5d099b7b53d800921e7e8577593a98
> etqw has issues, it may run but badly, one time it just segfaulted and I 
> lost mouse, another run I ended up with half a dozen -
> 
> [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12!
> etqw-rthread.x8: page allocation failure: order:4, mode:0xc0d0
> <detail snipped>
> 


More information about the mesa-dev mailing list