From: "Jan Beulich" <jbeulich@novell.com>
To: Akio Takebe <takebe_akio@jp.fujitsu.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [Patch] fix xenfb_update_screen bogus rect
Date: Wed, 28 Jan 2009 09:06:56 +0000 [thread overview]
Message-ID: <49802E40.76E4.0078.0@novell.com> (raw)
In-Reply-To: <498009CC.1000101@jp.fujitsu.com>
Generally this looks okay (assuming it works), but couldn't the update_wanted
field then go away altogether?
Jan
>>> Akio Takebe <takebe_akio@jp.fujitsu.com> 28.01.09 08:31 >>>
Hi, Jan
Thank you for your review.
I remade it simpler.
But Just moving check-and-clear dirty flag to xenfb_update_screen(),
a guest with vcpu=1 could not boot.
It is caused by info->update_wanted = 0.
So I moved kthread_run() into XenbusStateConnected handling.
How about it?
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Best Regards,
Akio Takebe
Jan Beulich wrote:
> This looks bogus to me. check_is_dirty() definitely isn't needed - if at all, a
> memory read barrier may need to be added, but since kthread_should_stop()
> is a function call even that ought to be unnecessary.
>
> I also think the other change is more involved than it needs to be - it'd be
> much simpler to let xenfb_update_screen() check-and-clear the dirty flag
> along with reading the other fields, and bail if the flag was clear.
>
> Jan
>
>>>> Akio Takebe <takebe_akio@jp.fujitsu.com> 27.01.09 03:58 >>>
> Hi,
>
> When I tested pvfb, I got the following warnings.
> It seems to be caused by checking/setting info->dirty without dirty_lock.
> We need to check/set info->dirty safely.
>
> xenfb_update_screen bogus rect 2147483647 0 2147483647 0
> BUG: warning at /root/linux-2.6.18-xen.hg/drivers/xen/fbfront/xenfb.c:240/xenfb_update_screen()
>
> Call Trace:
> [<ffffffff8036920e>] xenfb_thread+0x19b/0x2be
> [<ffffffff8022730a>] try_to_wake_up+0x33b/0x34c
> [<ffffffff80225c3d>] __wake_up_common+0x3e/0x68
> [<ffffffff80241e20>] autoremove_wake_function+0x0/0x2e
> [<ffffffff80241a75>] keventd_create_kthread+0x0/0x61
> [<ffffffff80369073>] xenfb_thread+0x0/0x2be
> [<ffffffff80241a75>] keventd_create_kthread+0x0/0x61
> [<ffffffff80241ceb>] kthread+0xd4/0x109
> [<ffffffff8020afe0>] child_rip+0xa/0x12
> [<ffffffff80241a75>] keventd_create_kthread+0x0/0x61
> [<ffffffff8021477f>] xen_send_IPI_mask+0x0/0xf5
> [<ffffffff80241c17>] kthread+0x0/0x109
> [<ffffffff8020afd6>] child_rip+0x0/0x12
>
>
> FYI, when I tested it, I used the following shell scripts on PV guest.
> The above warnings occurred in /var/log/messages.
> =======================
> #!/bin/bash
>
> while true
> do
> date
> done
> =======================
>
> The attached patch fixed this warnings.
> How about it?
>
> Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
>
> Best Regards,
>
> Akio Takebe
>
>
next prev parent reply other threads:[~2009-01-28 9:06 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 [this message]
2009-01-28 14:33 ` Markus Armbruster
2009-01-29 9:12 ` Akio Takebe
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=49802E40.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=takebe_akio@jp.fujitsu.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.