Bug 1669

Summary: emenlow: glxgears running slowly on 3.0 kernel
Product: [Build System, Metadata & Runtime] BSPs Reporter: Tom Zanussi <tom.zanussi>
Component: bsps-configurationAssignee: Tom Zanussi <tom.zanussi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, jessica.zhang, sgw, yp.bsp.watcher, yp.watcher
Version: 1.2   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Tom Zanussi 2011-10-11 17:04:59 UTC
When moving to 3.0, the drm ioctls in the psb driver were put under a drm mutex upon removal of the BKL.  The ones that did their own locking were given a DRM_UNLOCKED flag to avoid the redundant locking.  This locking is apparently the cause of the jerkinness and slowdown seen running glxgears, and I believe I've isolated it to the drm_lock and drm_unlock ioctl calls.  Giving them the DRM_UNLOCKED flag makes the problem disappear, but they need to be audited to determine if that's really safe to do.
Comment 1 Bruce Ashfield 2011-11-01 08:06:45 UTC
Tom: was the intention to assign this to yourself ? I'm doing that now, but correct me if I'm wrong.
Comment 2 Tom Zanussi 2011-11-01 08:09:05 UTC
(In reply to comment #1)
> Tom: was the intention to assign this to yourself ? I'm doing that now, but
> correct me if I'm wrong.

Yeah, that was the intention, thanks for doing it.
Comment 3 Jessica 2012-04-04 16:15:43 UTC
Tom, this bug hasn't been updated for quite some time, can you please provide some update.  Also, should we move it to 1.3? thx
Comment 4 Tom Zanussi 2012-04-04 18:26:32 UTC
(In reply to comment #3)
> Tom, this bug hasn't been updated for quite some time, can you please provide
> some update.  Also, should we move it to 1.3? thx

Yes, I actually started looking at this again last week, but haven't been able to really get into it due to conferences, etc.   Once I'm able to get back into development mode again next week, I'll be looking at this again pretty quickly into that.

It is something I plan to work on for 1.2, so it should stay there.
Comment 5 Tom Zanussi 2012-04-10 14:49:30 UTC
This is BSP-specific i.e. to the emenlow branch of the kernel.