From: Jaya Kumar <jayakumar.lkml@gmail.com>
To: "Rick L. Vinyard Jr." <rvinyard@cs.nmsu.edu>
Cc: linux-kernel@vger.kernel.org, npavel@ituner.com,
tomi.valkeinen@nokia.com, tony@atomide.com,
FlorianSchandinat@gmx.de, krzysztof.h1@wp.pl,
akpm@linux-foundation.org, linux-fbdev@vger.kernel.org,
jkosina@suse.cz, bonbons@linux-vserver.org
Subject: Re: [PATCH] Add sysfs support for fbdefio delay
Date: Fri, 26 Feb 2010 02:30:32 +0000 [thread overview]
Message-ID: <45a44e481002251830j710e87bah52486a489eef04cb@mail.gmail.com> (raw)
In-Reply-To: <201002252215.o1PMFnoP011425@mustang.cs.nmsu.edu>
Hi Rick,
On Fri, Feb 26, 2010 at 6:15 AM, Rick L. Vinyard Jr.
<rvinyard@cs.nmsu.edu> wrote:
> This patch adds support for examining and modifying the fbdefio delay
> parameter through sysfs. It also adds two driver definable minimum
> and maximum bounds.
Thanks for posting this. I've now read through this patch and your
past patches, but I couldn't get a good understanding of how this
userspace exposed defio delay would interact with most existing
systems.
> + Set the deferred I/O delay of the framebuffer in ms.
> + This value can be used to throttle deferred I/O updates.
Please help us understand how userspace should use the ability to set
this delay. Who in userspace is intended to use it? Would this be the
X server, cairo, or papyrus? A separate daemon? Human interaction?
When should said userspace entity throttle updates? How would this
entity know when throttling is needed? Could this throttling possibly
or should this possibly be done automatically by the driver itself?
> + Most framebuffer devices do not have or need support for
> + deferred I/O. Accessing a framebuffer without deferred I/O
> + support will return -ENODEV. Can be read but not modified if
> + /sys/class/graphics/<fb>/defio_delay_max is 0. When modifying,
> + the value must be greater than or equal to
> + /sys/class/graphics/<fb>/defio_delay_min and less than or equal
> + to /sys/class/graphics/<fb>/defio_delay_max.
Please help the reader of above understand the sequence of userspace
changing the defio delay, and how and when that would affect the
associated drivers. Will the delay behaviour be standard for all defio
client drivers? What happens in all the various timing scenarios, eg:
if a defio delay is changed in the middle of a display update or a
defio page clean or before? The sysfs parameter description mentioning
min/max above could use some elaboration as reading it doesn't make
clear if userspace can also affect min/max or if it is completely
owned by the driver.
Thanks,
jaya
ps: I only found your patches by accident when reading through the
fbdev mailing list. I'm very interested in defio (I happen to be the
author of it) and also drivers that use defio so I would appreciate
being CCed on such changes. Thanks a bunch.
next prev parent reply other threads:[~2010-02-26 2:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 22:15 [PATCH] Add sysfs support for fbdefio delay Rick L. Vinyard Jr.
2010-02-25 22:32 ` Bruno Prémont
2010-02-25 22:41 ` Rick L. Vinyard, Jr.
2010-02-26 2:30 ` Jaya Kumar [this message]
2010-02-26 10:53 ` Bruno Prémont
2010-02-26 11:09 ` Jaya Kumar
2010-02-26 11:37 ` Bruno Prémont
2010-03-01 16:10 ` Rick L. Vinyard, Jr.
2010-03-02 6:49 ` Jaya Kumar
2010-03-02 15:36 ` Rick L. Vinyard, Jr.
2010-03-03 0:11 ` Jaya Kumar
2010-04-13 15:50 ` Rick L. Vinyard, Jr.
2010-03-02 18:47 ` Rick L. Vinyard Jr.
2010-03-03 0:19 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45a44e481002251830j710e87bah52486a489eef04cb@mail.gmail.com \
--to=jayakumar.lkml@gmail.com \
--cc=FlorianSchandinat@gmx.de \
--cc=akpm@linux-foundation.org \
--cc=bonbons@linux-vserver.org \
--cc=jkosina@suse.cz \
--cc=krzysztof.h1@wp.pl \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=npavel@ituner.com \
--cc=rvinyard@cs.nmsu.edu \
--cc=tomi.valkeinen@nokia.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).