Skip to contentSkip to conversation

video: msmfb: Put the partial update magic value into the fix_screen struct.

PATCH In review Carl Vanderlip 2 participants 2 messages Feb 25, 2011 – Feb 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: msmfb: Put the partial update magic value into the fix_screen struct.

From: Dima Zavin <[email protected]>

This can then be tested by userspace to see if the capability is supported. Userspace cannot rely on that value being left in var_screen, since userspace itself can change it.

---
 drivers/video/msm/msm_fb.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/video/msm/msm_fb.c +8 -0
index 5436aeb..bbf841e 100644
@@ -469,6 +469,14 @@ static void setup_fb_info(struct msmfb_info *msmfb)
 	fb_info->var.yoffset = 0;
 
 	if (msmfb->panel->caps & MSMFB_CAP_PARTIAL_UPDATES) {
+		/* set the param in the fixed screen, so userspace can't
+		 * change it. This will be used to check for the
+		 * capability. */
+		fb_info->fix.reserved[0] = 0x5444;
+		fb_info->fix.reserved[1] = 0x5055;
+
+		/* This preloads the value so that if userspace doesn't
+		 * change it, it will be a full update */
 		fb_info->var.reserved[0] = 0x54445055;
 		fb_info->var.reserved[1] = 0;
 		fb_info->var.reserved[2] = (uint16_t)msmfb->xres |
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
#1 lore raw
Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:linux-fbdev- [email protected]] On Behalf Of Carl Vanderlip
Sent: Saturday, February 26, 2011 2:36 AM
To: [email protected]
Cc: Dima Zavin; open list:ARM/QUALCOMM MSM...; open list:FRAMEBUFFER LAYER; open list
Subject: [PATCH] video: msmfb: Put the partial update magic value into the fix_screen struct.

Quoted 8 lines

From: Dima Zavin <[email protected]>

This can then be tested by userspace to see if the capability is supported.
Userspace cannot rely on that value being left in var_screen, since userspace
itself can change it.

Missing Signed-off-by:
checkpatch would give error for this.

Quoted 9 lines
---
 drivers/video/msm/msm_fb.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/video/msm/msm_fb.c +0 -0
index 5436aeb..bbf841e 100644

drivers/video/msm/msm_fb.c static void setup_fb_info(struct msmfb_info *msmfb) · line 474

Quoted 6 lines
drivers/video/msm/msm_fb.c +3 -0
@@ -469,6 +469,14 @@ static void setup_fb_info(struct msmfb_info *msmfb)
 	fb_info->var.yoffset = 0;
 
 	if (msmfb->panel->caps & MSMFB_CAP_PARTIAL_UPDATES) {
+		/* set the param in the fixed screen, so userspace can't
+		 * change it. This will be used to check for the
+		 * capability. */

Multi-line comments?

drivers/video/msm/msm_fb.c static void setup_fb_info(struct msmfb_info *msmfb) · line 479

Quoted 5 lines
drivers/video/msm/msm_fb.c +5 -0
+		fb_info->fix.reserved[0] = 0x5444;
+		fb_info->fix.reserved[1] = 0x5055;
+
+		/* This preloads the value so that if userspace doesn't
+		 * change it, it will be a full update */

Multi-line comments?

Quoted 11 lines
drivers/video/msm/msm_fb.c +0 -1
 		fb_info->var.reserved[0] = 0x54445055;
 		fb_info->var.reserved[1] = 0;
 		fb_info->var.reserved[2] = (uint16_t)msmfb->xres |
--

Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

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