<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 6, 2017 at 10:35 AM, Thierry Reding <span dir="ltr"><<a href="mailto:thierry.reding@gmail.com" target="_blank">thierry.reding@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="">> > > +EXPORT_SYMBOL(tinydrm_<wbr>disable_backlight);<br>
> > > +#endif<br>
> ><br>
> > These look like they really should be part of the backlight subsystem. I<br>
> > don't see anything DRM specific about them. Well, except for the error<br>
> > messages.<br>
><br>
> So this is a bit an unpopular opinion with some folks, but I don't require<br>
> anyone to submit new code to subsystems outside of drm for new drivers.<br>
> Simply because it takes months to get stuff landed, and in general it's<br>
> not worth the trouble.<br>
<br>
</span>"Not worth the trouble" is very subjective. If you look at the Linux<br>
kernel in general, one of the reasons why it works so well is because<br>
the changes we make apply to the kernel as a whole. Yes, sometimes that<br>
makes things more difficult and time-consuming, but it also means that<br>
the end result will be much more widely usable and therefore benefits<br>
everyone else in return. In my opinion that's a large part of why the<br>
kernel is so successful.<br>
<span class=""><br>
> We have piles of stuff in drm and drm drivers that should be in core but<br>
> isn't.<br>
><br>
> Imo the only reasonable way is to merge as-is, then follow-up with a patch<br>
> series to move the helper into the right subsystem. Most often<br>
> unfortunately that follow-up patch series will just die.<br>
<br>
</span>Of course follow-up series die. That's because nobody cares to follow-up<br>
once their code has been merged.<br>
<br>
Collecting our own helpers or variants of subsystems is a great way of<br>
isolating ourselves from the rest of the community. I don't think that's<br>
a good solution in the long run at all.<br>
<span class="HOEnZb"><font color="#888888"></font></span></blockquote></div><br></div><div class="gmail_extra">We have a bunch of patch series that we resubmit for months and they go exactly nowhere. They don't die because we stop caring, they die because they die. Some of them we even need to constantly rebase and carry around in drm-tip since our CI would Oops or spew WARNIGs all over the place. There's simply some areas of the kernel which seem overloaded under patches and no one is willing or able to fix things, and I can't fix the entire kernel. Nor expect contributors (who have much less political weight to throw around than me) to do that and succeed. And we don't end up with worse code in the drm subsystem, since we can still do the refactoring within drm helpers and end up with clean drivers.<br><br></div><div class="gmail_extra">I fully agree that it's not great for the kernel's future, but when I'm stuck with the option to get shit done or burning out playing the upstreaming game, the choice is easy. And in the end I care about open source gfx much more than the kernel, and I think for open source gfx's success it's crucial that we're welcoming to new contributors and don't throw up massive roadblocks. Open source gfx is tiny and still far away from world domination, we need _lots_ more people. If that means routing around other subsystems for them, I'm all for it.<br></div><div class="gmail_extra">-Daniel<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Daniel Vetter<br>Software Engineer, Intel Corporation<br>+41 (0) 79 365 57 48 - <a href="http://blog.ffwll.ch" target="_blank">http://blog.ffwll.ch</a></div>
</div></div>