<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 21, 2016 at 10:58 PM, Dave Airlie <span dir="ltr"><<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><p dir="ltr"></p>
<p dir="ltr">On 22 Oct. 2016 15:51, "Jason Ekstrand" <<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>> wrote:<br>
><br>
> Wait... Why are we building the AMD driver on ARM? I know AMD has been talking about ARM-based servers, but are they actually strapping GPUs to them?</p>
</span><p dir="ltr">PCIE on ARM somewhere.</p></blockquote><div>I suppose so. I don't usually think of ARM devices as having PCIE, but I guess it's possible... You learn something every day.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<p dir="ltr">Dave.</p></font></span><div class="HOEnZb"><div class="h5">
<p dir="ltr">><br>
> On Fri, Oct 21, 2016 at 1:16 AM, Nicolai Hähnle <<a href="mailto:nhaehnle@gmail.com" target="_blank">nhaehnle@gmail.com</a>> wrote:<br>
>><br>
>> On 21.10.2016 00:20, Rob Herring wrote:<br>
>>><br>
>>> The use of regparm causes an error on arm/arm64 builds with clang.<br>
>>> fastcall is allowed, but still throws a warning. As both options only<br>
>>> have effect on 32-bit x86 builds, limit them to that case.<br>
>><br>
>><br>
>> While we haven't been particularly good at syncing things back-and-forth, this code is shared with closed source driver builds, including on Windows.<br>
>><br>
>> Please re-structure the patch so that it really only changes the behavior with Clang. (For example, that MSVC doesn't define __i386__ as far as I'm aware.)<br>
>><br>
>> Thanks,<br>
>> Nicolai<br>
>><br>
>>><br>
>>> Signed-off-by: Rob Herring <<a href="mailto:robh@kernel.org" target="_blank">robh@kernel.org</a>><br>
>>> ---<br>
>>> src/amd/addrlib/addrtypes.h | 10 +++++++---<br>
>>> 1 file changed, 7 insertions(+), 3 deletions(-)<br>
>>><br>
>>> diff --git a/src/amd/addrlib/addrtypes.h b/src/amd/addrlib/addrtypes.h<br>
>>> index 4c68ac544b88..183b5a751c3a 100644<br>
>>> --- a/src/amd/addrlib/addrtypes.h<br>
>>> +++ b/src/amd/addrlib/addrtypes.h<br>
>>> @@ -87,10 +87,14 @@ typedef int INT;<br>
>>> #endif<br>
>>><br>
>>> #ifndef ADDR_FASTCALL<br>
>>> - #if defined(__GNUC__)<br>
>>> - #define ADDR_FASTCALL __attribute__((regparm(0)))<br>
>>> + #if defined(__i386__)<br>
>>> + #if defined(__GNUC__)<br>
>>> + #define ADDR_FASTCALL __attribute__((regparm(0)))<br>
>>> + #else<br>
>>> + #define ADDR_FASTCALL __fastcall<br>
>>> + #endif<br>
>>> #else<br>
>>> - #define ADDR_FASTCALL __fastcall<br>
>>> + #define ADDR_FASTCALL<br>
>>> #endif<br>
>>> #endif<br>
>>><br>
>>><br>
>> ______________________________<wbr>_________________<br>
>> mesa-dev mailing list<br>
>> <a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
></p>
</div></div></blockquote></div><br></div></div>