History log of /drivers/video/omap2/omapfb/omapfb-sysfs.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aaa874a985158383c4b394c687c716ef26288741 15-Nov-2011 Tomi Valkeinen <tomi.valkeinen@ti.com> OMAPDSS: APPLY: rewrite overlay enable/disable

Overlays are currently enabled and disabled with a boolean in the struct
omap_overlay_info. The overlay info is set with ovl->set_overlay_info(),
and made into use with mgr->apply().

This doesn't work properly, as the enable/disable status may affect also
other overlays, for example when using fifo-merge. Thus the enabling and
disabling of the overlay needs to be done outside the normal overlay
configuration.

This patch achieves that by doing the following things:

1) Add function pointers to struct omap_overlay: enable(), disable() and
is_enabled(). These are used to do the obvious. The functions may block.

2) Move the "enabled" field from struct omap_overlay to ovl_priv_data.

3) Add a new route for settings to be applied to the HW, called
"extra_info". The status of the normal info and extra_info are tracked
separately.

The point here is to allow the normal info to be changed and
applied in non-blocking matter, whereas the extra_info can only be
changed when holding the mutex. This makes it possible to, for example,
set the overlay enable flag, apply it, and wait until the HW has taken
the flag into use.

This is not possible if the enable flag would be in the normal info, as
a new value for the flag could be set at any time from the users of
omapdss.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
7fbf1bb02d1005203e39ca7bd7aa7afcd2909c4b 15-Aug-2011 Tomi Valkeinen <tomi.valkeinen@ti.com> OMAP: OMAPFB: string parsing cleanups

Use strtobool instead of kstrtoint when parsing bool from sysfs.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
27cc213ea7dde929692df46a64c8d8ef74663e48 30-Apr-2011 Tomi Valkeinen <tomi.valkeinen@ti.com> OMAP: DSS2: OMAPFB: Implement auto-update mode

Implement auto-update mode for manual-update displays. omapfb driver
uses a delayed work to update the display with a constant rate.

The update mode can be changed via OMAPFB_SET_UPDATE_MODE ioctl, which
previously called omapdss but is now handled inside omapfb, and a new
sysfs file, "update_mode".

The update interval is by default 20 times per second, but can be
changed via "auto_update_freq" module parameter. There is also a new
module parameter "auto_update", which will make omapfb start manual
update displays in auto-update mode.

This auto-update mode can be used for testing if the userspace does not
support manual update displays properly. However, it is a very
inefficient solution, and should be considered more as a hack for
testing than something that could be used as a long term solution.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
e3502ce97f2d2d183735d9fae76b081a634ffd85 04-Apr-2011 Tomi Valkeinen <tomi.valkeinen@ti.com> OMAP: DSS2: Convert simple/strict_strto* to kstrto*

Convert simple/strict_strto* functions to kstrto* functions. Only simple
cases are converted.

simple_strto* uses are still left to places where it is used to parse
numbers from a list of numbers. These need some other solution than
kstrto*.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
a0b38cc4d35e095f14ab0f486135f8a619ebfc14 11-May-2011 Tomi Valkeinen <tomi.valkeinen@ti.com> OMAP: DSS2: Move display.h to include/video/

arch/arm/plat-omap/include/plat/display.h is an include for the OMAP DSS
driver. A more logical place for it is in include/video.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
5cb33e2166067e1fff7ebc3b849ec70a6fd7ec1d 01-Jun-2010 Jani Nikula <ext-jani.1.nikula@nokia.com> OMAP: DSS2: OMAPFB: Fix sysfs mirror input check

Using bool silently converted input to 0 or 1, making the range check
useless. Use unsigned long instead, and convert to bool later. Found by
Coverity.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
1ceafc00910439c8e5450fae189b69427725992c 17-Mar-2010 Ville Syrjälä <ville.syrjala@nokia.com> OMAP: DSS2: OMAPFB: Add some locking debug checks

Trigger WARN_ON() messages from various places in the code in case the
memory region is not currently locked.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
3d84b65aa63833a2ac07b1cc626984a1e1485fed 17-Mar-2010 Ville Syrjälä <ville.syrjala@nokia.com> OMAP: DSS2: OMAPFB: Make lockdep happy

When more than one memory region needs to be lockd at the same time use
the memory region id to fix the order in which the locks are taken. Also
one needs to use the _nested() versions of the locking primitives. The
memory region id can serve as the lock class there as well.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
2f642a17503838e256b8b7e9f1153512e2efc38b 17-Mar-2010 Ville Syrjälä <ville.syrjala@nokia.com> OMAP: DSS2: OMAPFB: Convert the memory region locking to rwsem

R/W semaphore is a good fit for the memory region locking pattern.
So use it.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
430571d59a0b51c6541c153ad8b08e72fef26098 17-Mar-2010 Ville Syrjälä <ville.syrjala@nokia.com> OMAP: DSS2: OMAPFB: Add locking for memory regions

Add locking to the memory regions to make sure the memory region size
won't be changed while some other piece of code is performing some
checks or setup based on that information.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
078ff546a806b2c2ab74c25c8edd4c6d4680656a 17-Mar-2010 Ville Syrjälä <ville.syrjala@nokia.com> OMAP: DSS2: OMAPFB: Add support for switching memory regions

Separate the memory region from the framebuffer device a little bit.
It's now possible to select the memory region used by the framebuffer
device using the new mem_idx parameter of omapfb_plane_info. If the
mem_idx is specified it will be interpreted as an index into the
memory regions array, if it's not specified the framebuffer's index is
used instead. So by default each framebuffer keeps using it's own
memory region which preserves backwards compatibility.

This allows cloning the same memory region to several overlays and yet
each overlay can be controlled independently since they can be
associated with separate framebuffer devices.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
27b67c92a30967e3a9e9ea082d4ca4bc6882f879 18-Mar-2010 Jani Nikula <ext-jani.1.nikula@nokia.com> OMAP: DSS2: check lock_fb_info() return value

Give up if lock_fb_info() fails, following the same convention as other
lock_fb_info() users.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
238a41329ca208d1170962260babb428b6e222c2 18-Mar-2010 Jani Nikula <ext-jani.1.nikula@nokia.com> OMAP: DSS2: fix lock_fb_info() and omapfb_lock() locking order

Framebuffer ioctl processing forces lock_fb_info() -> omapfb_lock()
locking order. Follow that order to avoid possible circular locking
dependency, detected by lockdep.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c
b39a982ddecf1d95ed96f8457c39d3ea11df93f6 04-Aug-2009 Tomi Valkeinen <tomi.valkeinen@nokia.com> OMAP: DSS2: omapfb driver

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
/drivers/video/omap2/omapfb/omapfb-sysfs.c