All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: Brian Woods <brian.woods@xilinx.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: Re: [Xen-devel] Errors with Loading Xen at a Certain Address
Date: Thu, 3 Oct 2019 18:08:45 +0100	[thread overview]
Message-ID: <ade177bc-003f-edcc-47fe-d1014d638990@arm.com> (raw)
In-Reply-To: <20191002232017.GC2644@xilinx.com>

Hi,

On 03/10/2019 00:20, Brian Woods wrote:
> On Wed, Oct 02, 2019 at 02:22:49PM -0700, Brian Woods wrote:
>> On Wed, Oct 02, 2019 at 08:59:28PM +0100, Julien Grall wrote:
>>> Hi,
>>>
>>> On 10/2/19 7:56 PM, Brian Woods wrote:
>>>
>>> Hmmm, the first e-mail didn't land in my inbox directly (I have a filter
>>> send to a separate directory any e-mail I not CCed on). Did you BCC me by
>>> any change?
>> That's odd.  I know I copied your and Stefano's email addresses from the
>> MAINTAINERS file but under my sent emails it shows it has having no
>> CCs...  PEBCAK I guess.  My apologies.
>>>
>>> Let see try to troubleshoot it first :).
>>>
>>> Well, any attachment you send on the ML will store to each subscribers
>>> mailbox. I let you do the math here ;)
>>>
>>> So yeah, pastebin is always the preferred way when you have to send the full
>>> log.
>>>
>>> Thank you for the log. So that's probably not a double-init then.
>>>
>>> Looking back at the log, the values look quite sane. So I am not entirely
>>> sure what is happening.
>>>
>>> I would check that the frametable is correctly zeroed. You could add a print
>>> at the end of setup_frametable_mappings(...) to dump the count_info for the
>>> page. Something like:
>>>       mfn_to_page(_mfn(0x01533))->count_info;
>>>
>>> If it is correctly initialized, it should be zero.
>>>
>>> The next step would be to add a similar print in start_xen()
>>> (xen/arch/arm/setup.c) and see where the value is not 0 anymore.
>>>
>>> Cheers,
>>>
>>> -- 
>>> Julien Grall
>>
>> I'll go ahead add those and see if that leads to anything.
>>
>> -- 
>> Brian Woods
> 
> Ok, I added:
> 	printk("BW_DEBUG: 01 count_info=0x%016lx\n",
> 	    mfn_to_page(_mfn(0x01533))->count_info);
> In some places.  I'm not sure about some of the earlier ones (the ones
> before the UART is set up),  but all of the ones afterwards that
> actually get output are:
> 	BW_DEBUG: 11 count_info=0x0180000000000000
> 
> Is it worth trying to figure out where the printk buffer is and reading
> it really early on?
> 

If you haven't enable EARLY_PRINTK in Xen, then you may want to do it. This 
would help you to understand where the page->count_info is not zeroed.


Cheers,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-10-03 17:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-02  0:32 [Xen-devel] Errors with Loading Xen at a Certain Address Brian Woods
     [not found] ` <48c9fc54-553e-3b6b-bad2-dbad35991df0@arm.com>
2019-10-02 16:52   ` Julien Grall
2019-10-02 18:56     ` Brian Woods
2019-10-02 19:59       ` Julien Grall
2019-10-02 21:22         ` Brian Woods
2019-10-02 23:20           ` Brian Woods
2019-10-03 17:08             ` Julien Grall [this message]
2019-10-03 18:15               ` Brian Woods
2019-10-03 19:23                 ` Julien Grall
2019-10-03 20:24                   ` Brian Woods
2019-10-03 21:20                     ` Julien Grall
2019-10-04  0:25                       ` Brian Woods
2019-10-04  9:49                         ` Julien Grall
2019-10-04 15:36                           ` Brian Woods

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=ade177bc-003f-edcc-47fe-d1014d638990@arm.com \
    --to=julien.grall@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=brian.woods@xilinx.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.