[PATCH 13/25] drm/gma500: Drop dev->struct_mutex from modeset code

2015-10-15 Thread Patrik Jakobsson
On Thu, Oct 15, 2015 at 9:36 AM, Daniel Vetter wrote: > It's either init code or already protected by other means. Note > that psb_gtt_pin/unpin has it's own lock, and that's really the > only piece of driver private state - all the modeset state is > protected with modeset locks already. > > The

[PATCH 13/25] drm/gma500: Drop dev->struct_mutex from modeset code

2015-10-15 Thread Daniel Vetter
It's either init code or already protected by other means. Note that psb_gtt_pin/unpin has it's own lock, and that's really the only piece of driver private state - all the modeset state is protected with modeset locks already. The only important bit is to switch all gem_obj_unref calls to the _un