All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4
@ 2010-07-19 12:10 Archit Taneja
  2010-07-19 12:10 ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Archit Taneja
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Archit Taneja @ 2010-07-19 12:10 UTC (permalink / raw)
  To: tomi.valkeinen; +Cc: linux-omap, Sumit Semwal

From: Sumit Semwal <sumit.semwal@ti.com>

This patch series adds Zorder Support on OMAP4, this feature
allows deciding the visibility order of the overlays based on
the Zorder value given to a sysfs attribute of the overlay object.

Since this feature is not supported on OMAP3 and OMAP2, the sysfs
attibutes always return Zorder as 0 and do not write to dispc registers
for non OMAP4 architectures.

This patch series applies over the submitted series:

https://patchwork.kernel.org/patch/112648/

Sumit Semwal (3):
  OMAP: DSS2: Zorder enum in display.h
  OMAP: DSS2: Zorder functions for DISPC
  OMAP: DSS2: Zorder sysfs attributes, out of bound checks and initialization
---
 arch/arm/plat-omap/include/plat/display.h |    8 ++++
 drivers/video/omap2/dss/dispc.c           |   23 +++++++++++++
 drivers/video/omap2/dss/dss.h             |    3 ++
 drivers/video/omap2/dss/manager.c         |    4 ++
 drivers/video/omap2/dss/overlay.c         |   51 +++++++++++++++++++++++++++++
 5 files changed, 89 insertions(+), 0 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
  2010-07-19 12:10 [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4 Archit Taneja
@ 2010-07-19 12:10 ` Archit Taneja
  2010-07-19 12:10   ` [PATCH 2/3] OMAP: DSS2: Zorder functions for DISPC Archit Taneja
  2010-07-21 14:17   ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Premi, Sanjeev
  2010-07-23  6:37 ` [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4 Hiremath, Vaibhav
  2010-08-02 11:42 ` Tomi Valkeinen
  2 siblings, 2 replies; 9+ messages in thread
From: Archit Taneja @ 2010-07-19 12:10 UTC (permalink / raw)
  To: tomi.valkeinen; +Cc: linux-omap, Sumit Semwal, Samreen, Archit Taneja

From: Sumit Semwal <sumit.semwal@ti.com>

Add Zorder enum in display.h

Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Signed-off-by: Samreen <samreen@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
---
 arch/arm/plat-omap/include/plat/display.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/display.h b/arch/arm/plat-omap/include/plat/display.h
index d1da317..197ce8c
--- a/arch/arm/plat-omap/include/plat/display.h
+++ b/arch/arm/plat-omap/include/plat/display.h
@@ -206,6 +206,13 @@ enum omap_overlay_manager_caps {
 	OMAP_DSS_OVL_MGR_CAP_DISPC = 1 << 0,
 };
 
+enum omap_overlay_zorder {
+	OMAP_DSS_OVL_ZORDER_0	= 0x0,
+	OMAP_DSS_OVL_ZORDER_1	= 0x1,
+	OMAP_DSS_OVL_ZORDER_2	= 0x2,
+	OMAP_DSS_OVL_ZORDER_3	= 0x3,
+};
+
 /* RFBI */
 
 struct rfbi_timings {
@@ -308,6 +315,7 @@ struct omap_overlay_info {
 	u16 out_width;	/* if 0, out_width == width */
 	u16 out_height;	/* if 0, out_height == height */
 	u8 global_alpha;
+	enum omap_overlay_zorder zorder;
 };
 
 struct omap_overlay {
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/3] OMAP: DSS2: Zorder functions for DISPC
  2010-07-19 12:10 ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Archit Taneja
@ 2010-07-19 12:10   ` Archit Taneja
  2010-07-19 12:10     ` [PATCH 3/3] OMAP: DSS2: Zorder sysfs attributes, out of bound checks and initialization Archit Taneja
  2010-07-21 14:17   ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Premi, Sanjeev
  1 sibling, 1 reply; 9+ messages in thread
From: Archit Taneja @ 2010-07-19 12:10 UTC (permalink / raw)
  To: tomi.valkeinen; +Cc: linux-omap, Sumit Semwal, Samreen, Archit Taneja

From: Sumit Semwal <sumit.semwal@ti.com>

Adds OMAP4 Zorder support by introducing Zorder set and enable
functions in dispc.

Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Signed-off-by: Samreen <samreen@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
---
 drivers/video/omap2/dss/dispc.c   |   23 +++++++++++++++++++++++
 drivers/video/omap2/dss/dss.h     |    3 +++
 drivers/video/omap2/dss/manager.c |    4 ++++
 3 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index f6f92d2..af96df9
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -1174,6 +1174,29 @@ void dispc_set_burst_size(enum omap_plane plane,
 	enable_clocks(0);
 }
 
+void dispc_set_zorder(enum omap_plane plane,
+			enum omap_overlay_zorder zorder)
+{
+	u32 val;
+
+	if (!cpu_is_omap44xx())
+		return;
+	val = dispc_read_reg(dispc_reg_att[plane]);
+	val = FLD_MOD(val, zorder, 27, 26);
+	dispc_write_reg(dispc_reg_att[plane], val);
+}
+
+void dispc_enable_zorder(enum omap_plane plane, bool enable)
+{
+	u32 val;
+
+	if (!cpu_is_omap44xx())
+		return;
+	val = dispc_read_reg(dispc_reg_att[plane]);
+	val = FLD_MOD(val, enable, 25, 25);
+	dispc_write_reg(dispc_reg_att[plane], val);
+}
+
 static void _dispc_set_vid_color_conv(enum omap_plane plane, bool enable)
 {
 	u32 val;
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h
index a954a55..c8cccd7
--- a/drivers/video/omap2/dss/dss.h
+++ b/drivers/video/omap2/dss/dss.h
@@ -343,6 +343,9 @@ void dispc_setup_plane_fifo(enum omap_plane plane, u32 low, u32 high);
 void dispc_enable_fifomerge(bool enable);
 void dispc_set_burst_size(enum omap_plane plane,
 		enum omap_burst_size burst_size);
+void dispc_set_zorder(enum omap_plane plane,
+			enum omap_overlay_zorder zorder);
+void dispc_enable_zorder(enum omap_plane plane, bool enable);
 
 void dispc_set_plane_ba0(enum omap_plane plane, u32 paddr);
 void dispc_set_plane_ba1(enum omap_plane plane, u32 paddr);
diff --git a/drivers/video/omap2/dss/manager.c b/drivers/video/omap2/dss/manager.c
index 96073f5..80e56b7
--- a/drivers/video/omap2/dss/manager.c
+++ b/drivers/video/omap2/dss/manager.c
@@ -417,6 +417,7 @@ struct overlay_cache_data {
 	u32 fifo_high;
 
 	bool manual_update;
+	enum omap_overlay_zorder zorder;
 };
 
 struct manager_cache_data {
@@ -864,6 +865,8 @@ static int configure_overlay(enum omap_plane plane)
 	dispc_enable_replication(plane, c->replication);
 
 	dispc_set_burst_size(plane, c->burst_size);
+	dispc_set_zorder(plane, c->zorder);
+	dispc_enable_zorder(plane, 1);
 	dispc_setup_plane_fifo(plane, c->fifo_low, c->fifo_high);
 
 	dispc_enable_plane(plane, 1);
@@ -1276,6 +1279,7 @@ static int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
 		oc->out_width = ovl->info.out_width;
 		oc->out_height = ovl->info.out_height;
 		oc->global_alpha = ovl->info.global_alpha;
+		oc->zorder = ovl->info.zorder;
 
 		oc->replication =
 			dss_use_replication(dssdev, ovl->info.color_mode);
-- 
1.5.4.7


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/3] OMAP: DSS2: Zorder sysfs attributes, out of bound checks and initialization
  2010-07-19 12:10   ` [PATCH 2/3] OMAP: DSS2: Zorder functions for DISPC Archit Taneja
@ 2010-07-19 12:10     ` Archit Taneja
  0 siblings, 0 replies; 9+ messages in thread
From: Archit Taneja @ 2010-07-19 12:10 UTC (permalink / raw)
  To: tomi.valkeinen; +Cc: linux-omap, Archit Taneja, Sumit Semwal, Samreen

Add Zorder as a overlay sysfs attribute, check for out of bound entries
and initialize Zorder values for overlay objects.

Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Signed-off-by: Samreen <samreen@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
---
 drivers/video/omap2/dss/overlay.c |   51 +++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c
index 2f8f89c..eef474b
--- a/drivers/video/omap2/dss/overlay.c
+++ b/drivers/video/omap2/dss/overlay.c
@@ -257,6 +257,38 @@ static ssize_t overlay_global_alpha_store(struct omap_overlay *ovl,
 	return size;
 }
 
+static ssize_t overlay_zorder_show(struct omap_overlay *ovl, char *buf)
+{
+	return snprintf(buf, PAGE_SIZE, "%d\n",
+			ovl->info.zorder);
+}
+
+static ssize_t overlay_zorder_store(struct omap_overlay *ovl,
+		const char *buf, size_t size)
+{
+	int r;
+	struct omap_overlay_info info;
+
+	if (!cpu_is_omap44xx())
+		return size;
+
+	ovl->get_overlay_info(ovl, &info);
+
+	info.zorder = simple_strtoul(buf, NULL, 10);
+
+	r = ovl->set_overlay_info(ovl, &info);
+	if (r)
+		return r;
+
+	if (ovl->manager) {
+		r = ovl->manager->apply(ovl->manager);
+		if (r)
+			return r;
+	}
+
+	return size;
+}
+
 struct overlay_attribute {
 	struct attribute attr;
 	ssize_t (*show)(struct omap_overlay *, char *);
@@ -280,6 +312,8 @@ static OVERLAY_ATTR(enabled, S_IRUGO|S_IWUSR,
 		overlay_enabled_show, overlay_enabled_store);
 static OVERLAY_ATTR(global_alpha, S_IRUGO|S_IWUSR,
 		overlay_global_alpha_show, overlay_global_alpha_store);
+static OVERLAY_ATTR(zorder, S_IRUGO|S_IWUSR,
+		overlay_zorder_show, overlay_zorder_store);
 
 static struct attribute *overlay_sysfs_attrs[] = {
 	&overlay_attr_name.attr,
@@ -290,6 +324,7 @@ static struct attribute *overlay_sysfs_attrs[] = {
 	&overlay_attr_output_size.attr,
 	&overlay_attr_enabled.attr,
 	&overlay_attr_global_alpha.attr,
+	&overlay_attr_zorder.attr,
 	NULL
 };
 
@@ -394,6 +429,12 @@ int dss_check_overlay(struct omap_overlay *ovl, struct omap_dss_device *dssdev)
 		return -EINVAL;
 	}
 
+	if ((info->zorder < OMAP_DSS_OVL_ZORDER_0) ||
+			(info->zorder > OMAP_DSS_OVL_ZORDER_3)) {
+		DSSERR("overlay doesn't support zorder %d\n", info->zorder);
+		return -EINVAL;
+	}
+
 	return 0;
 }
 
@@ -552,6 +593,7 @@ void dss_init_overlays(struct platform_device *pdev)
 				OMAP_DSS_COLOR_GFX_OMAP2;
 			ovl->caps = OMAP_DSS_OVL_CAP_DISPC;
 			ovl->info.global_alpha = 255;
+			ovl->info.zorder = OMAP_DSS_OVL_ZORDER_0;
 			break;
 		case 1:
 			ovl->name = "vid1";
@@ -562,6 +604,9 @@ void dss_init_overlays(struct platform_device *pdev)
 			ovl->caps = OMAP_DSS_OVL_CAP_SCALE |
 				OMAP_DSS_OVL_CAP_DISPC;
 			ovl->info.global_alpha = 255;
+			ovl->info.zorder = cpu_is_omap44xx() ?
+				OMAP_DSS_OVL_ZORDER_3 :
+				OMAP_DSS_OVL_ZORDER_0;
 			break;
 		case 2:
 			ovl->name = "vid2";
@@ -572,6 +617,9 @@ void dss_init_overlays(struct platform_device *pdev)
 			ovl->caps = OMAP_DSS_OVL_CAP_SCALE |
 				OMAP_DSS_OVL_CAP_DISPC;
 			ovl->info.global_alpha = 255;
+			ovl->info.zorder = cpu_is_omap44xx() ?
+				OMAP_DSS_OVL_ZORDER_2 :
+				OMAP_DSS_OVL_ZORDER_0;
 			break;
 		case 3:
 			ovl->name = "vid3";
@@ -580,6 +628,9 @@ void dss_init_overlays(struct platform_device *pdev)
 			ovl->caps = OMAP_DSS_OVL_CAP_SCALE |
 				OMAP_DSS_OVL_CAP_DISPC;
 			ovl->info.global_alpha = 255;
+			ovl->info.zorder = cpu_is_omap44xx() ?
+				OMAP_DSS_OVL_ZORDER_1 :
+				OMAP_DSS_OVL_ZORDER_0;
 			break;
 		}
 
-- 
1.5.4.7


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* RE: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
  2010-07-19 12:10 ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Archit Taneja
  2010-07-19 12:10   ` [PATCH 2/3] OMAP: DSS2: Zorder functions for DISPC Archit Taneja
@ 2010-07-21 14:17   ` Premi, Sanjeev
  2010-07-22  4:11     ` Taneja, Archit
  1 sibling, 1 reply; 9+ messages in thread
From: Premi, Sanjeev @ 2010-07-21 14:17 UTC (permalink / raw)
  To: tomi.valkeinen
  Cc: linux-omap, Semwal, Sumit, Nilofer, Samreen, Taneja, Archit

> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org 
> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Archit Taneja
> Sent: Monday, July 19, 2010 5:40 PM
> To: tomi.valkeinen@nokia.com
> Cc: linux-omap@vger.kernel.org; Semwal, Sumit; Nilofer, 
> Samreen; Taneja, Archit
> Subject: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
> 
> From: Sumit Semwal <sumit.semwal@ti.com>
> 
> Add Zorder enum in display.h
> 

Patches 1 and 2 in the series can easily be conbined into one.
Separating few line changes in header file from implementation
across 2 patches isn't useful.

> Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
> Signed-off-by: Samreen <samreen@ti.com>
> Signed-off-by: Archit Taneja <archit@ti.com>
> ---
>  arch/arm/plat-omap/include/plat/display.h |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/plat-omap/include/plat/display.h 
> b/arch/arm/plat-omap/include/plat/display.h
> index d1da317..197ce8c
> --- a/arch/arm/plat-omap/include/plat/display.h
> +++ b/arch/arm/plat-omap/include/plat/display.h
> @@ -206,6 +206,13 @@ enum omap_overlay_manager_caps {
>  	OMAP_DSS_OVL_MGR_CAP_DISPC = 1 << 0,
>  };
>  
> +enum omap_overlay_zorder {
> +	OMAP_DSS_OVL_ZORDER_0	= 0x0,
> +	OMAP_DSS_OVL_ZORDER_1	= 0x1,
> +	OMAP_DSS_OVL_ZORDER_2	= 0x2,
> +	OMAP_DSS_OVL_ZORDER_3	= 0x3,
> +};

Is "_DSS_" really needed in these emums? considering that enum
itself doesn't contain "_dss_" in its name.

~sanjeev

> +
>  /* RFBI */
>  
>  struct rfbi_timings {
> @@ -308,6 +315,7 @@ struct omap_overlay_info {
>  	u16 out_width;	/* if 0, out_width == width */
>  	u16 out_height;	/* if 0, out_height == height */
>  	u8 global_alpha;
> +	enum omap_overlay_zorder zorder;
>  };
>  
>  struct omap_overlay {
> -- 
> 1.6.3.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe 
> linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
  2010-07-21 14:17   ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Premi, Sanjeev
@ 2010-07-22  4:11     ` Taneja, Archit
  2010-07-22  9:53       ` Premi, Sanjeev
  0 siblings, 1 reply; 9+ messages in thread
From: Taneja, Archit @ 2010-07-22  4:11 UTC (permalink / raw)
  To: Premi, Sanjeev, tomi.valkeinen
  Cc: linux-omap, Semwal, Sumit, Nilofer, Samreen

 

> -----Original Message-----
> From: Premi, Sanjeev 
> Sent: Wednesday, July 21, 2010 7:47 PM
> To: Taneja, Archit; tomi.valkeinen@nokia.com
> Cc: linux-omap@vger.kernel.org; Semwal, Sumit; Nilofer, 
> Samreen; Taneja, Archit
> Subject: RE: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
> 
> > -----Original Message-----
> > From: linux-omap-owner@vger.kernel.org 
> > [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Archit Taneja
> > Sent: Monday, July 19, 2010 5:40 PM
> > To: tomi.valkeinen@nokia.com
> > Cc: linux-omap@vger.kernel.org; Semwal, Sumit; Nilofer, Samreen; 
> > Taneja, Archit
> > Subject: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
> > 
> > From: Sumit Semwal <sumit.semwal@ti.com>
> > 
> > Add Zorder enum in display.h
> > 
> 
> Patches 1 and 2 in the series can easily be conbined into one.
> Separating few line changes in header file from 
> implementation across 2 patches isn't useful.

[archit] We are introducing a new DSS feature for OMAP4 in every
patch series. In order to clearly explain the feature introduced,
the first patch of every series makes changes on in the display.h
header which is central to the DSS2 code.

If this is not a accepted norm or a strong enough reason to have a
separate small patch, I can rework these series, I would need more
comments from others though.

<snap>

> > +enum omap_overlay_zorder {
> > +	OMAP_DSS_OVL_ZORDER_0	= 0x0,
> > +	OMAP_DSS_OVL_ZORDER_1	= 0x1,
> > +	OMAP_DSS_OVL_ZORDER_2	= 0x2,
> > +	OMAP_DSS_OVL_ZORDER_3	= 0x3,
> > +};
> 
> Is "_DSS_" really needed in these emums? considering that 
> enum itself doesn't contain "_dss_" in its name.
> 

[archit] I agree with this, but the present header is inconsistent
with the point you have made, there are other enums which don't have
"_dss_" but have "_DSS_" in its enum members. We should try to make
this uniform (unless there is a motive behind it).

> ~sanjeev
> 

Regards,

Archit

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
  2010-07-22  4:11     ` Taneja, Archit
@ 2010-07-22  9:53       ` Premi, Sanjeev
  0 siblings, 0 replies; 9+ messages in thread
From: Premi, Sanjeev @ 2010-07-22  9:53 UTC (permalink / raw)
  To: Taneja, Archit, tomi.valkeinen
  Cc: linux-omap, Semwal, Sumit, Nilofer, Samreen

> -----Original Message-----
> From: Taneja, Archit 
> Sent: Thursday, July 22, 2010 9:42 AM
> To: Premi, Sanjeev; tomi.valkeinen@nokia.com
> Cc: linux-omap@vger.kernel.org; Semwal, Sumit; Nilofer, Samreen
> Subject: RE: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
> 
>  
> 
> > -----Original Message-----
> > From: Premi, Sanjeev 
> > Sent: Wednesday, July 21, 2010 7:47 PM
> > To: Taneja, Archit; tomi.valkeinen@nokia.com
> > Cc: linux-omap@vger.kernel.org; Semwal, Sumit; Nilofer, 
> > Samreen; Taneja, Archit
> > Subject: RE: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
> > 
> > > -----Original Message-----
> > > From: linux-omap-owner@vger.kernel.org 
> > > [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of 
> Archit Taneja
> > > Sent: Monday, July 19, 2010 5:40 PM
> > > To: tomi.valkeinen@nokia.com
> > > Cc: linux-omap@vger.kernel.org; Semwal, Sumit; Nilofer, Samreen; 
> > > Taneja, Archit
> > > Subject: [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h
> > > 
> > > From: Sumit Semwal <sumit.semwal@ti.com>
> > > 
> > > Add Zorder enum in display.h
> > > 
> > 
> > Patches 1 and 2 in the series can easily be conbined into one.
> > Separating few line changes in header file from 
> > implementation across 2 patches isn't useful.
> 
> [archit] We are introducing a new DSS feature for OMAP4 in every
> patch series. In order to clearly explain the feature introduced,
> the first patch of every series makes changes on in the display.h
> header which is central to the DSS2 code.
> 
> If this is not a accepted norm or a strong enough reason to have a
> separate small patch, I can rework these series, I would need more
> comments from others though.

[sp] I understand the festure intoduction, but spliting patches across
     headers and implementation doesn't seem to be logical.

~sanjeev

> 
> <snap>
> 
> > > +enum omap_overlay_zorder {
> > > +	OMAP_DSS_OVL_ZORDER_0	= 0x0,
> > > +	OMAP_DSS_OVL_ZORDER_1	= 0x1,
> > > +	OMAP_DSS_OVL_ZORDER_2	= 0x2,
> > > +	OMAP_DSS_OVL_ZORDER_3	= 0x3,
> > > +};
> > 
> > Is "_DSS_" really needed in these emums? considering that 
> > enum itself doesn't contain "_dss_" in its name.
> > 
> 
> [archit] I agree with this, but the present header is inconsistent
> with the point you have made, there are other enums which don't have
> "_dss_" but have "_DSS_" in its enum members. We should try to make
> this uniform (unless there is a motive behind it).
> 
> > ~sanjeev
> > 
> 
> Regards,
> 
> Archit
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4
  2010-07-19 12:10 [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4 Archit Taneja
  2010-07-19 12:10 ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Archit Taneja
@ 2010-07-23  6:37 ` Hiremath, Vaibhav
  2010-08-02 11:42 ` Tomi Valkeinen
  2 siblings, 0 replies; 9+ messages in thread
From: Hiremath, Vaibhav @ 2010-07-23  6:37 UTC (permalink / raw)
  To: Taneja, Archit, tomi.valkeinen; +Cc: linux-omap, Semwal, Sumit


> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> owner@vger.kernel.org] On Behalf Of Archit Taneja
> Sent: Monday, July 19, 2010 5:40 PM
> To: tomi.valkeinen@nokia.com
> Cc: linux-omap@vger.kernel.org; Semwal, Sumit
> Subject: [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4
> 
> From: Sumit Semwal <sumit.semwal@ti.com>
> 
> This patch series adds Zorder Support on OMAP4, this feature
> allows deciding the visibility order of the overlays based on
> the Zorder value given to a sysfs attribute of the overlay object.
> 
> Since this feature is not supported on OMAP3 and OMAP2, the sysfs
> attibutes always return Zorder as 0 and do not write to dispc registers
> for non OMAP4 architectures.
> 
> This patch series applies over the submitted series:
> 
> https://patchwork.kernel.org/patch/112648/
> 
> Sumit Semwal (3):
>   OMAP: DSS2: Zorder enum in display.h
>   OMAP: DSS2: Zorder functions for DISPC
>   OMAP: DSS2: Zorder sysfs attributes, out of bound checks and
> initialization
[Hiremath, Vaibhav] Archit,

Here also I think we can merge all of these patches into single patch, something like,

OMAP: DSS2: Add support for Zorder feature (applicable for OMAP4 & more)

OR, worst case you can split it into 2 patches, something like,

OMAP: DSS2: Add support for Zorder feature (applicable for OMAP4 & more)
OMAP: DSS2: Add set/enable SYFS interface for Zorder feature

Thanks,
Vaibhav
> ---
>  arch/arm/plat-omap/include/plat/display.h |    8 ++++
>  drivers/video/omap2/dss/dispc.c           |   23 +++++++++++++
>  drivers/video/omap2/dss/dss.h             |    3 ++
>  drivers/video/omap2/dss/manager.c         |    4 ++
>  drivers/video/omap2/dss/overlay.c         |   51
> +++++++++++++++++++++++++++++
>  5 files changed, 89 insertions(+), 0 deletions(-)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4
  2010-07-19 12:10 [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4 Archit Taneja
  2010-07-19 12:10 ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Archit Taneja
  2010-07-23  6:37 ` [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4 Hiremath, Vaibhav
@ 2010-08-02 11:42 ` Tomi Valkeinen
  2 siblings, 0 replies; 9+ messages in thread
From: Tomi Valkeinen @ 2010-08-02 11:42 UTC (permalink / raw)
  To: ext Archit Taneja; +Cc: linux-omap, Sumit Semwal

On Mon, 2010-07-19 at 14:10 +0200, ext Archit Taneja wrote:
> From: Sumit Semwal <sumit.semwal@ti.com>
> 
> This patch series adds Zorder Support on OMAP4, this feature
> allows deciding the visibility order of the overlays based on
> the Zorder value given to a sysfs attribute of the overlay object.
> 
> Since this feature is not supported on OMAP3 and OMAP2, the sysfs
> attibutes always return Zorder as 0 and do not write to dispc registers
> for non OMAP4 architectures.

It would be better if the sysfs file only appears on OMAP4. I know that
method is not currently used for any other DSS sysfs files, but it's
long been in the todo list...

 Tomi



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-08-02 11:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-19 12:10 [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4 Archit Taneja
2010-07-19 12:10 ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Archit Taneja
2010-07-19 12:10   ` [PATCH 2/3] OMAP: DSS2: Zorder functions for DISPC Archit Taneja
2010-07-19 12:10     ` [PATCH 3/3] OMAP: DSS2: Zorder sysfs attributes, out of bound checks and initialization Archit Taneja
2010-07-21 14:17   ` [PATCH 1/3] OMAP: DSS2: Zorder enum in display.h Premi, Sanjeev
2010-07-22  4:11     ` Taneja, Archit
2010-07-22  9:53       ` Premi, Sanjeev
2010-07-23  6:37 ` [PATCH 0/3] OMAP: DSS2: Add Zorder Support on OMAP4 Hiremath, Vaibhav
2010-08-02 11:42 ` Tomi Valkeinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.