From: Akio Takebe <takebe_akio@jp.fujitsu.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [Patch] fix xenfb_update_screen bogus rect
Date: Thu, 29 Jan 2009 18:12:36 +0900 [thread overview]
Message-ID: <49817304.4080509@jp.fujitsu.com> (raw)
In-Reply-To: <87zlhb1own.fsf@pike.pond.sub.org>
[-- Attachment #1: Type: text/plain, Size: 504 bytes --]
Hi, Markus and Jan
Markus Armbruster wrote:
> "Jan Beulich" <jbeulich@novell.com> writes:
>
>> Generally this looks okay (assuming it works), but couldn't the update_wanted
>> field then go away altogether?
>>
>> Jan
>
> I think so, yes. Start the kthread only when request-update.
>
Thank you for your review.
The patch was commited already.
So I made an additional patch which eliminate the update_wanted field.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Best Regards,
Akio Takebe
[-- Attachment #2: eliminate_update_wanted.patch --]
[-- Type: text/x-diff, Size: 1655 bytes --]
diff -r 51decc39e5e7 drivers/xen/fbfront/xenfb.c
--- a/drivers/xen/fbfront/xenfb.c Wed Jan 28 13:42:09 2009 +0000
+++ b/drivers/xen/fbfront/xenfb.c Thu Jan 29 18:04:36 2009 +0900
@@ -61,7 +61,6 @@ struct xenfb_info
int irq;
struct xenfb_page *page;
unsigned long *mfns;
- int update_wanted; /* XENFB_TYPE_UPDATE wanted */
int feature_resize; /* Backend has resize feature */
struct xenfb_resize resize;
int resize_dpy;
@@ -208,8 +207,6 @@ static void xenfb_update_screen(struct x
int y1, y2, x1, x2;
struct xenfb_mapping *map;
- if (!info->update_wanted)
- return;
if (xenfb_queue_full(info))
return;
@@ -823,22 +820,24 @@ static void xenfb_backend_changed(struct
if (dev->state != XenbusStateConnected)
goto InitWait; /* no InitWait seen yet, fudge it */
- if (xenbus_scanf(XBT_NIL, info->xbdev->otherend,
- "request-update", "%d", &val) < 0)
- val = 0;
- if (val)
- info->update_wanted = 1;
if (xenbus_scanf(XBT_NIL, dev->otherend,
"feature-resize", "%d", &val) < 0)
val = 0;
info->feature_resize = val;
- info->kthread = kthread_run(xenfb_thread, info, "xenfb thread");
- if (IS_ERR(info->kthread)) {
- info->kthread = NULL;
- xenbus_dev_fatal(dev, PTR_ERR(info->kthread),
- "register_framebuffer");
+ if (xenbus_scanf(XBT_NIL, info->xbdev->otherend,
+ "request-update", "%d", &val) < 0)
+ val = 0;
+
+ if (val){
+ info->kthread = kthread_run(xenfb_thread, info,
+ "xenfb thread");
+ if (IS_ERR(info->kthread)) {
+ info->kthread = NULL;
+ xenbus_dev_fatal(dev, PTR_ERR(info->kthread),
+ "register_framebuffer");
+ }
}
break;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2009-01-29 9:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 2:58 [Patch] fix xenfb_update_screen bogus rect Akio Takebe
2009-01-27 8:16 ` Jan Beulich
2009-01-28 7:31 ` Akio Takebe
2009-01-28 9:06 ` Jan Beulich
2009-01-28 14:33 ` Markus Armbruster
2009-01-29 9:12 ` Akio Takebe [this message]
2009-01-29 14:29 ` Markus Armbruster
2009-01-28 14:31 ` Markus Armbruster
2009-01-29 12:54 ` Akio Takebe
2009-01-29 14:44 ` Markus Armbruster
2009-01-30 2:02 ` Akio Takebe
2009-01-30 7:38 ` Markus Armbruster
2009-02-02 9:17 ` [PATCH] fbfront: Improve diagnostics when kthread_run() fails Markus Armbruster
2009-02-02 23:48 ` [PATCH] fbfront: Improve diagnostics when kthread_run()fails Akio Takebe
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=49817304.4080509@jp.fujitsu.com \
--to=takebe_akio@jp.fujitsu.com \
--cc=armbru@redhat.com \
--cc=xen-devel@lists.xensource.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 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.