<br><br><div class="gmail_quote">2012/12/18 Daniel Vetter <span dir="ltr"><<a href="mailto:daniel@ffwll.ch" target="_blank">daniel@ffwll.ch</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Dec 18, 2012 at 7:21 AM, Rob Clark <<a href="mailto:rob.clark@linaro.org">rob.clark@linaro.org</a>> wrote:<br>
>> The other thing I'd like you guys to do is kill the idea of fbdev and<br>
>> v4l drivers that are "shared" with the drm codebase, really just<br>
>> implement fbdev and v4l on top of the drm layer, some people might<br>
>> think this is some sort of maintainer thing, but really nothing else<br>
>> makes sense, and having these shared display frameworks just to avoid<br>
>> having using drm/kms drivers seems totally pointless. Fix the drm<br>
>> fbdev emulation if an fbdev interface is needed. But creating a fourth<br>
>> framework because our previous 3 frameworks didn't work out doesn't<br>
>> seem like a situation I want to get behind too much.<br>
><br>
> yeah, let's not have multiple frameworks to do the same thing.. For<br>
> fbdev, it is pretty clear that it is a dead end. For v4l2<br>
> (subdev+mcf), it is perhaps bit more flexible when it comes to random<br>
> arbitrary hw pipelines than kms. But to take advantage of that, your<br>
> userspace isn't going to be portable anyways, so you might as well use<br>
> driver specific properties/ioctls. But I tend to think that is more<br>
> useful for cameras. And from userspace perspective, kms planes are<br>
> less painful to use for output than v4l2, so lets stick to drm/kms for<br>
> output (and not try to add camera/capture support to kms).. k, thx<br>
<br>
</div>Yeah, I guess having a v4l device also exported by the same driver<br>
that exports the drm interface might make sense in some cases. But in<br>
many cases I think the video part is just an independent IP block and<br>
shuffling data around with dma-buf is all we really need. So yeah, I<br>
guess sharing display resources between v4l and drm kms driver should<br>
be a last resort option, since coordination (especially if it's<br>
supposed to be somewhat dynamic) will be extremely hairy.<br></blockquote><div><br>I think the one reason that the CDF was appeared is to avoid duplicating
codes. For example, we should duplicate mipi-dsi or dbi drivers into
drm to avoid ordering issue. And for this, those should be re-implemented in based
on drm framework so that those could be treated as all one device.
Actually, in case of Exynos, some guys tried to duplicate eDP driver
into exynos drm framework in same issue. So I think the best way is to avoid duplicating codes and resolve ordering issue such as s/r
operations between all the various components.<br><br>And the below is my opinion,<br><br> -----------------------------------------------------<br>Display Controller-------------CDF---------------|MIPI-DSI/DBI---------------LCD Panel|<br>
-----------------------------------------------------<br><br>1. to access MIPI-DSI/DBI and LCD Panel drivers.<br>
- Display Controller is controlled by linux framebuffer or drm kms
based specific drivers like now. And each driver calls some interfaces
of CDF.<br><br>2. to control the power of these devices.<br> - drm
kms based specific driver calls dpms operation and next the dpms
operation calls fb blank operation of linux framebuffer.<br> But
for this, we need some interfaces that it can connect between drm and
linux framebuffer framework and you can refer to the below link.<br> <a href="http://lists.freedesktop.org/archives/dri-devel/2011-July/013242.html">http://lists.freedesktop.org/archives/dri-devel/2011-July/013242.html</a><br>
- linux framebuffer based driver calls fb blank operation.<br><br> fb blank(fb)------------------pm runtime(fb)--------------------fb_blank----------mipi and lcd<br> dpms(drm kms)------------pm runtime(drm kms)----------fb_blank----------mipi and lcd<br>
<br><br>3. suspend/resume<br> - pm suspend/resume are implemented only in linux framebuffer or drm kms based specific drivers.<br> - MIPI-DSI/DBI and LCD Panel drivers are controlled only by fb blank interfaces.<br>
<br> s/r(fb)-----------------------------------------------pm runtime(fb)----------------fb blank-------mipi and lcd<br> s/r(drm kms)--------dpms(drm kms)-------pm runtime(drm kms)------fb_blank------mipi and lcd<br>
<br><br>We
could resolve ordering issue to suspend/resume simply duplicating
relevant drivers but couldn't avoid duplicating codes. So I think we
could avoid the ordering issue using fb blank interface of linux
framebuffer and also duplicating codes.<br><br>Thanks,<br>Inki Dae<br><br> </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">-Daniel<br>
--<br>
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><br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in<br>
the body of a message to <a href="mailto:majordomo@vger.kernel.org">majordomo@vger.kernel.org</a><br>
More majordomo info at <a href="http://vger.kernel.org/majordomo-info.html" target="_blank">http://vger.kernel.org/majordomo-info.html</a><br>
</div></div></blockquote></div><br>