<div dir="ltr"><div>Those are all good points. I would suggest putting the commit explanations into the code instead of commit messages, keeping the commit messages empty. When we have a good commit message, we can just copy it into the code as a comment.<br></div><div><br></div><div>It's understandable that people don't understand some of my patches. I also don't understand some of other people's patches. It's normal. I don't think commit messages always help. If you don't work on a specific subtree on a regular basis, it's normal that over time you'll stop understanding it.<br></div><div><br></div><div>Marek<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018 at 5:28 AM Timothy Arceri <<a href="mailto:tarceri@itsqueeze.com" target="_blank">tarceri@itsqueeze.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 20/11/18 5:46 pm, Marek Olšák wrote:<br>
> On Tue, Nov 20, 2018 at 12:08 AM Dave Airlie <<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a> <br>
> <mailto:<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>>> wrote:<br>
> <br>
>     On Tue, 20 Nov 2018 at 14:42, Marek Olšák <<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a><br>
>     <mailto:<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>>> wrote:<br>
>      ><br>
>      > On Mon, Nov 19, 2018 at 7:15 PM Bas Nieuwenhuizen<br>
>     <<a href="mailto:bas@basnieuwenhuizen.nl" target="_blank">bas@basnieuwenhuizen.nl</a> <mailto:<a href="mailto:bas@basnieuwenhuizen.nl" target="_blank">bas@basnieuwenhuizen.nl</a>>> wrote:<br>
>      >><br>
>      >> So I tried to test this with radv and got a bunch of crashes in CTS,<br>
>      >> mostly around 3d image support:<br>
>      >><br>
>      >> #3  0x00007ffff71a9396 in __assert_fail () from /usr/lib/libc.so.6<br>
>      >> #4  0x00007ffff69da3b4 in<br>
>      >> Addr::V2::Gfx9Lib::HwlGetPreferredSurfaceSetting<br>
>     (this=0x555557661b30,<br>
>      >> pIn=0x7fffffffd5f0, pOut=0x7fffffffd5d0)<br>
>      >>     at ../mesa/src/amd/addrlib/src/gfx9/gfx9addrlib.cpp:3684<br>
>      >> #5  0x00007ffff69cf331 in<br>
>      >> Addr::V2::Lib::Addr2GetPreferredSurfaceSetting (this=0x555557661b30,<br>
>      >> pIn=0x7fffffffd5f0, pOut=0x7fffffffd5d0)<br>
>      >>     at ../mesa/src/amd/addrlib/src/core/addrlib2.cpp:1742<br>
>      >> #6  0x00007ffff69c4e87 in Addr2GetPreferredSurfaceSetting<br>
>      >> (hLib=0x555557661b30, pIn=0x7fffffffd5f0, pOut=0x7fffffffd5d0)<br>
>      >>     at ../mesa/src/amd/addrlib/src/addrinterface.cpp:1697<br>
>      >> #7  0x00007ffff69bf8d4 in gfx9_get_preferred_swizzle_mode<br>
>      >> (addrlib=0x555557661b30, in=0x7fffffffd690, is_fmask=false,<br>
>      >> flags=33555202, swizzle_mode=0x7fffffffd698)<br>
>      >><br>
>      >> It seems to be caused by the explicit swizzle mode override that<br>
>     we do with<br>
>      >><br>
>      >> commit b64b7125586ce48232658cd860f549a6139b6ddd<br>
>      >> Author: Marek Olšák <<a href="mailto:marek.olsak@amd.com" target="_blank">marek.olsak@amd.com</a><br>
>     <mailto:<a href="mailto:marek.olsak@amd.com" target="_blank">marek.olsak@amd.com</a>>><br>
>      >> Date:   Mon Apr 2 12:54:52 2018 -0400<br>
>      >><br>
>      >>     ac/surface/gfx9: request desired micro tile mode explicitly<br>
>      >><br>
>      >>     Tested-by: Dieter Nützel <<a href="mailto:Dieter@nuetzel-hh.de" target="_blank">Dieter@nuetzel-hh.de</a><br>
>     <mailto:<a href="mailto:Dieter@nuetzel-hh.de" target="_blank">Dieter@nuetzel-hh.de</a>>><br>
>      >><br>
>      >><br>
>      >> Since we never got a reason to have it (the commit message above is<br>
>      >> not descriptive and the patch not reviewed) and this is the second<br>
>      >> time already that this breaks stuff (The other was allowing S tiling<br>
>      >> for raven displayable surfaces, per 7eff8d7d3564), maybe revert<br>
>     it and<br>
>      >> let addrlib make the decision?<br>
>      ><br>
>      ><br>
>      > Yes, my commits are mostly unreviewed. It's the norm now. Willing<br>
>     reviewers don't exist anymore. I don't really mind that my patches<br>
>     are not reviewed, but whoever complains that I push unreviewed<br>
>     commits should ask himself why he didn't review them in their review<br>
>     period. That applies to everybody. Either review regularly or accept<br>
>     that unreviewed commits are normal.<br>
>      ><br>
>      > Secondly, past commits can't break future commits, so don't say<br>
>     it breaks stuff again. It's illogical.<br>
>      ><br>
>      > There may be multiple reasons why the commit exists. As long as<br>
>     reverting it doesn't break piglit / radeonsi, I'm OK with the reverting.<br>
> <br>
>     Marek,<br>
> <br>
>     There is no way anybody could review this commit, the commit log<br>
>     contains 0 information on why or what the commit is doing or what it<br>
>     fixes, there is nothing to say what the reviewer is looking out for.<br>
> <br>
> <br>
> It's something you could have mentioned on the review though. Instead <br>
> you decided to be silent. I'm not blaming you. I understand that you <br>
> probably had no time to review radv-related patches at that time. There <br>
> however has to be some reviewer if you care about the long-term outcome <br>
> whether you personally have time or not. 0 information is not an excuse <br>
> not to review. Had there been any explanation in the commit, it wouldn't <br>
> have made any difference on the current situation, other than perhaps <br>
> preventing this pointless discussion that doesn't help anybody.<br>
> <br>
> Marek<br>
<br>
As per the reply from Bas. Please take this as feedback, and not an <br>
attack. But the reason I don't even attempt to review most of your <br>
radeonsi patches is because the commit messages are empty. Reviews are <br>
are two way street, the time you save not writing a commit message just <br>
cost the reviewer time (probably more) in trying to comprehend what is <br>
going on. Double that time again (at least) for someone who doesn't know <br>
the driver intimately.<br>
<br>
As far as asking for a commit messages as part of review, I have done <br>
this on a number of occasions but it shouldn't really be on the reviewer <br>
to do this. In pretty much any other driver not having a proper commit <br>
message is pretty much an instant no go for anything other than truly <br>
self explanatory commits.<br>
<br>
Besides assisting review, I find commit messages an invaluable learning <br>
tool. As well as learning by just browsing/reviewing patch submissions <br>
the power of git unlocks these invaluable resources in an instant. Don't <br>
know what x code does or confused why it does something unexpected then <br>
a quick git log -S"string of code" will usually answer the question <br>
pretty quickly. Unfortunately I've done just this a number of times in <br>
radeonsi only to be greeted by an empty commit message. Again the same <br>
advantages of having a good commit message are seen when bisecting, etc.<br>
<br>
As far as staying silent on this feedback I have considered saying <br>
something about this for sometime. However I've avoided it so far as to <br>
avoid causing offense, or come across as lecturing a fellow open source <br>
dev on what seems like common knowledge.<br>
<br>
Now whether better commit messages would mean I would review more code <br>
is hard to say because I still don't know the driver that well. But it <br>
would make me feel more comfortable giving an ack to at least say I've <br>
read over the code and everything seems to make sense. I tend to look <br>
over most of you series currently but don't make any comments because I <br>
have no idea why a lot of the changes were made.<br>
<br>
Before I go I'll just say writing good commit messages is something we <br>
all need to work on, it can be easy to slip into habits of not doing so. <br>
I'm more than guilty of writing my fair share of less than ideal <br>
messages but I think in the long run the effort spent getting these <br>
things right is well worth it.<br>
</blockquote></div>