lkml.org 
[lkml]   [2017]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v5 2/6] drm/bridge: Add a devm_ allocator for panel bridge.
Date
Laurent Pinchart <laurent.pinchart@ideasonboard.com> writes:

> Hi Eric,
>
> (CC'ing Daniel)
>
> Thank you for the patch.
>
> On Tuesday 18 Jul 2017 14:05:06 Eric Anholt wrote:
>> This will let drivers reduce the error cleanup they need, in
>> particular the "is_panel_bridge" flag.
>>
>> v2: Slight cleanup of remove function by Andrzej
>
> I just want to point out that, in the context of Daniel's work on hot-unplug,
> 90% of the devm_* allocations are wrong and will get in the way. All DRM core
> objects that are accessible one way or another from userspace will need to be
> properly reference-counted and freed only when the last reference disappears,
> which could be well after the corresponding device is removed. I believe this
> could be one such objects :-/

Sure, if you're hotplugging, your life is pain. For non-hotpluggable
devices, like our SOC platform devices (current panel-bridge consumers),
this still seems like an excellent simplification of memory management.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-08-04 22:43    [W:2.322 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site