RE: [PATCH v2] DA8XX/OMAP-L1XX: FB: Implement double buffering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Morton wrote:
> On Wed, 31 Mar 2010 20:43:29 -0500 "Ambrose, Martin" <martin@xxxxxx>
> wrote:

>>> If the calling process has signal_pending() (say, someone hit ^C)
>>> then wait_event_interruptible_timeout() will fall straight through
>>> with -ERESTARTSYS.  Will this cause the driver to malfunction at
>>> all?
>>
>> I don't think so since the driver doesn't make use of this
>> information in any way. This is just status to the caller that the
>> current frame has finished DMA'ing out of the framebuffer.
>>
>> Could you maybe propose a scenario/use case where you think it is
>> problematic? I could then either reason why it should be OK or
>> I'll create a test harness and see how the driver can/should be
>> modified.
>
> Gee, I dunno - I don't understand the driver to that level.  If you're
> OK with this wait being interrupted by a signal and the driver handles
> it OK then fine, that's a feature.
>
> To test it I suppose you should give your test app a signal handler
> and blast kills at it from another process.

Jumping in..

This should not cause a problem for the driver; its purpose is to tell userland that it can write to the buffer without corrupting graphics (as presumably it is double-buffering and the other buffer is now being DMA'd from by the hardware).

At worst, if the userland software doesn't handle this correctly it may draw one bad frame of graphics. Although if it's had a ctrl-C it probably has bigger things to worry about.

If the app wants to handle signals it needs to consider such things.. I would not expect the driver to do anything other than what this patch does.

--
Jon Povey
jon.povey@xxxxxxxxxxxxxxx

Racelogic is a limited company registered in England. Registered number 2743719 .
Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, MK18 1TB .

The information contained in this electronic mail transmission is intended by Racelogic Ltd for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. The views expressed by the sender of this communication do not necessarily represent those of Racelogic Ltd. Please note that Racelogic reserves the right to monitor e-mail communications passing through its network


--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Tourism]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux