<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Andres,</p>
<p><br>
</p>
<p>Thanks for the feedback.  I've decided to push Edward's patches to master since it's in the projects best interest to minimize build/package friction going forward.</p>
<p><br>
</p>
<p>Of course now I have to rebase our NPI branches internally since they're based on the older makefile ...  That's more of an AMD problem though.</p>
<p><br>
</p>
<p>If someone could review my patch that detects the libdrm path I'd like to get that in sooner than later so the package is more buildable by time people get to work on Monday :-)</p>
<p><br>
</p>
<p>Tom</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Andres Rodriguez <andresx7@gmail.com><br>
<b>Sent:</b> Sunday, February 5, 2017 11:11<br>
<b>To:</b> StDenis, Tom; Edward O'Callaghan; amd-gfx@lists.freedesktop.org<br>
<b>Subject:</b> Re: [RFC]: More robust build sys for UMR</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hey Tom,<br>
<br>
It's great to see umr make it to the public. I've given it a quick spin <br>
and it is pretty awesome, although I don't have much time this weekend <br>
to play with it.<br>
<br>
Wanted to weigh in my 2c regarding cmake.<br>
<br>
Some of the things I like about cmake:<br>
<br>
  * Compatible with out of tree builds by default<br>
     - Super simple *guaranteed* make clean equivalent with rm -f build/<br>
     - Simple gitignore files<br>
     - Both of these reasons result in sidestepping some common and very<br>
       annoying bugs in makefiles<br>
  * Easy packaging for release with cpack<br>
  * Removes a lot of the boilerplate (specially for libraries)<br>
  * Good compatibility across distros<br>
    - Without a lot of the "horrible" things from automake<br>
  * There is a good community around cmake that has some cool modules<br>
    available for it<br>
<br>
Some of the things I don't like about cmake:<br>
<br>
  * The syntax is horrible<br>
  * I think ctest is overly complicated compared to other frameworks like<br>
    gtest.<br>
    - Doing basic things like attaching a debugger are not<br>
      straightforward<br>
<br>
Weighing the above I tend to side on pro-cmake.<br>
<br>
Again, thanks for the work on the great tool. I might have a bit more<br>
feedback once I start using it more heavily next week.<br>
<br>
Regards,<br>
Andres<br>
<br>
<br>
On 2/5/2017 9:52 AM, StDenis, Tom wrote:<br>
> Hi Edward,<br>
><br>
><br>
> Sounds good to me.  I'm sure our build-team folks would actually be in<br>
> favour of something that could help make deb/rpm packages.<br>
><br>
><br>
> I typically only run Fedora and Ubuntu so if others who run<br>
> Arch/Gentoo/SUSE/etc want to weigh in that'd be appreciated.  If nobody<br>
> raises any objections I'll RB your series and push them to master<br>
> sometime tomorrow.<br>
><br>
><br>
> By all means if you want to add other debug features go for it.  Keep in<br>
> mind it already captures features from things like radeontop and setreg<br>
> type tools ðŸ˜Š<br>
><br>
><br>
> One of the open issues right now is the VM decoding in the read_vram()<br>
> functionality (specifically when using follow_ib).  It's hard to<br>
> instrument a test of that since VM addresses are live and ever chaotic<br>
> but I've yet to see a successful IB read back.<br>
><br>
><br>
> Tom<br>
><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
> *From:* Edward O'Callaghan <funfunctor@folklore1984.net><br>
> *Sent:* Sunday, February 5, 2017 08:29<br>
> *To:* StDenis, Tom; amd-gfx@lists.freedesktop.org<br>
> *Subject:* Re: [RFC]: More robust build sys for UMR<br>
><br>
><br>
><br>
> On 02/05/2017 10:42 PM, StDenis, Tom wrote:<br>
>> Hi Edward,<br>
><br>
> Hey Tom,<br>
><br>
>><br>
>><br>
>> Well the patches apply and work but I'm not really sure what problem<br>
>> it's meant to solve ðŸ˜Š.  Building previously was actually simpler with<br>
><br>
> So the idea here was to implement something a little more robust and<br>
> extensible. For example with a couple of extra lines cmake can produce<br>
> rpm's, deb's and tar's too as build by-products. I can add this<br>
> functionality if you wish? Additionally another couple of lines a unit<br>
> tests could be hooked in if that is useful?<br>
><br>
> Fundamentally the idea was to have a "proper" build system that can<br>
> be extensible enough not to get in the way while the community<br>
> elaborates on UMR some more with additional features. I was thinking<br>
> about looking at unifying other peoples radeon debug/re tooling together<br>
> into UMR to be the one-stop tool as my Sunday afternoon weekend project<br>
> you see :) .<br>
><br>
>> "make" as opposed to "mkdir build && cd build && cmake .. && make".<br>
>><br>
><br>
> I just added that step because its nice to build out of tree, you don't<br>
> have to.<br>
><br>
>><br>
>> On a BSD system (where this wouldn't really work without the<br>
>> corresponding debugfs entries) gmake could be used to build it provided<br>
>> ncurses/pciaccess were around.<br>
><br>
> Well in truth I didn't test on the BSD's yet, however it helps give some<br>
> a good foundation so they could port it should they wish. I am assuming<br>
> so since they seem to be updating their graphics stack these days.<br>
><br>
>><br>
>><br>
>> If this legitimately makes it more stable to build on Linux systems then<br>
>> I'm all for it.  Can anyone elaborate on where the simple make system<br>
>> would fail?<br>
><br>
> Well I hope so, that's why I RFC it. I expect this to work out the box<br>
> on all distributions right off the bat and I would be interested in<br>
> feedback for that.<br>
><br>
>><br>
>> (I'm not saying NAK I'm simply asking for my own edification).<br>
><br>
> Sure sure, this only took me a hour to put together because of _my_ itch<br>
> so don't stress.<br>
><br>
>><br>
>> Thanks,<br>
>> Tom<br>
><br>
> Kind Regards,<br>
> Edward.<br>
><br>
>><br>
>> ------------------------------------------------------------------------<br>
>> *From:* Edward O'Callaghan <funfunctor@folklore1984.net><br>
>> *Sent:* Saturday, February 4, 2017 23:59<br>
>> *To:* amd-gfx@lists.freedesktop.org<br>
>> *Cc:* StDenis, Tom<br>
>> *Subject:* [RFC]: More robust build sys for UMR<br>
>><br>
>> Keeping with the tradition of changing the build system on initial<br>
>> release, here we go again.. This follow series introduces the cmake<br>
>> build system that is intended to be a little more robust across<br>
>> various distros and presumably the BSD's also. The installation<br>
>> prefix is configurable in the usual cmake way:<br>
>>  `cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..`<br>
>><br>
>> Please kindly review,<br>
>><br>
>> Edward O'Callaghan (4):<br>
>>  [PATCH 1/4] cmake_modules: Add libpciaccess finder<br>
>>  [PATCH 2/4] cmake: Initial build system<br>
>>  [PATCH 3/4] README: minor update for cmake buildsys<br>
>>  [PATCH 4/4] drop orginal Makefile && stub bin/ directory<br>
><br>
><br>
><br>
> _______________________________________________<br>
> amd-gfx mailing list<br>
> amd-gfx@lists.freedesktop.org<br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" id="LPlnk956229" previewremoved="true">
https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a>
<div id="LPBorder_GT_14863155580130.7693315302221095" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14863155580090.6842600916906145" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14863155580110.38693326451547927" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14863155580110.4176927574394491"></div>
<div id="LPTitle_14863155580110.5073518121409557" style="top: 0px; color: rgb(59, 87, 119); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14863155580110.5814335980675742" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" target="_blank" style="text-decoration: none;">amd-gfx Info Page - lists.freedesktop.org</a></div>
<div id="LPMetadata_14863155580120.769702635885853" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.freedesktop.org</div>
<div id="LPDescription_14863155580120.9080282164445046" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
To see the collection of prior postings to the list, visit the amd-gfx Archives. Using amd-gfx: To post a message to all the list members, send email ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
><br>
</div>
</span></font></div>
</div>
</body>
</html>