From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Simmons Date: Tue, 16 Mar 2010 13:56:38 +0000 Subject: Re: [Linux-fbdev-devel] drm_fb_helper: Impossible to change video Message-Id: List-Id: References: <1268302426.7444.117.camel@thor.local> <21d7e9971003121251v4bef7e96v67f3d98aa9ab384a@mail.gmail.com> <21d7e9971003131301r723f3311p3553ea8a1a86bf0a@mail.gmail.com> <1268566880.9302.65.camel@thor.local> <1268747186.4176.38.camel@thor.local> In-Reply-To: <1268747186.4176.38.camel@thor.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: =?ISO-8859-15?Q?Michel_D=E4nzer?= Cc: Linux Fbdev development list , Paulius Zaleckas , Michal Suchanek , Alex Deucher , DRI development list > > The fb_ops can only be called from fbcon or the fbdev userland interface. > > The fbcon calls should only happen when the VC is in KD_TEXT mode. Now > > with the DRM backend we have the advantage of creating a mapping seperate > > from the console mapping. A fb_open/fb_close could be used to cleaning up > > the userland mmap as well as handle the console pinning. We can supply > > your own fb_mmap hook. > > Again, the issue is not userspace but that fb_ops hooks can be called > from interrupt context etc. This should not happen. The VT layer is protected from calling in the interrupt context. TNor does fbcon call any fb_ops methods from a irq. I have to look at the fbdev drivers but to my knowledge none touch any memory while in a context. Have you seen this happen before? Please let me know do I can fix it right a way.