From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org
Subject: Re: [PATCH v2 8/8] xen: arm: allocate more than one bank for 1:1 domain 0 if needed
Date: Wed, 18 Jun 2014 10:10:29 +0100 [thread overview]
Message-ID: <53A15785.1040401@linaro.org> (raw)
In-Reply-To: <1403080054.25771.43.camel@kazak.uk.xensource.com>
On 18/06/14 09:27, Ian Campbell wrote:
> On Tue, 2014-06-17 at 18:58 +0100, Julien Grall wrote:
>> Hi Ian,
>>
>> On 06/11/2014 05:40 PM, Ian Campbell wrote:
>>> + /*
>>> + * First try and allocate the largest thing we can as low as
>>> + * possible to be bank 0.
>>> + */
>>> + while ( order > min_low_order )
>>> + {
>>> + for ( bits = order ; bits < (lowmem ? 32 : PADDR_BITS); bits++ )
>>> + {
>>> + pg = alloc_domheap_pages(d, order, MEMF_bits(bits));
>>> + if ( pg != NULL )
>>> + goto got_bank0;
>>> + }
>>> + order--;
>>> + }
>>> +
>>> + panic("Unable to allocate first memory bank");
>>
>> I gave a try to this patch in stand-alone on the versatile express and I
>> hit this panic.
>>
>> Xen is trying to allocate 128Mb for the first bank. It was working
>> without this patch.
>
> What is your dom0_mem and how much ram does the system have?
I use the default value from Xen i.e 128MB. The platform has 1GB of RAM
(see below Xen log with early printk enabled).
- UART enabled -
- CPU 00000000 booting -
- Xen starting in Hyp mode -
- Zero BSS -
- Setting up control registers -
- Turning on paging -
- Ready -
(XEN) Checking for initrd in /chosen
(XEN) RAM: 0000000080000000 - 000000009fffffff
(XEN) RAM: 00000000a0000000 - 00000000bfffffff
(XEN)
(XEN) MODULE[1]: 000000009fee6000 - 000000009feea000
(XEN) MODULE[2]: 00000000a0008000 - 00000000a033f458
(XEN) RESVD[0]: 0000000081f00000 - 0000000081f04000
(XEN) RESVD[1]: 000000009fee6000 - 000000009feea000
(XEN)
(XEN) Command line: noreboot sync_console console=dtuart dtuart=serial0
(XEN) Placing Xen at 0x00000000bfe00000-0x00000000c0000000
(XEN) Xen heap: 00000000b6000000-00000000be000000 (32768 pages)
(XEN) Dom heap: 229376 pages
(XEN) Domain heap initialised
(XEN) Looking for UART console serial0
Xen 4.5-unstable
(XEN) Xen version 4.5-unstable (julien@cam.xci-test.com) (arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.8-2014.01 - Linaro GCC 2013.11) 4.8.3 20140106 (prerelease)) debug=y Wed Jun 18 09:52:52 BST 2014
(XEN) Latest ChangeSet: Wed Jun 11 17:40:04 2014 +0100 git:bdee6c6
(XEN) Console output is synchronous.
(XEN) Processor: 412fc0f1: "ARM Limited", variant: 0x2, part 0xc0f, rev 0x1
(XEN) 32-bit Execution:
(XEN) Processor Features: 00001131:00011011
(XEN) Instruction Sets: AArch32 Thumb Thumb-2 ThumbEE Jazelle
(XEN) Extensions: GenericTimer Security
(XEN) Debug Features: 02010555
(XEN) Auxiliary Features: 00000000
(XEN) Memory Model Features: 10201105 20000000 01240000 02102211
(XEN) ISA Features: 02101110 13112111 21232041 11112131 10011142 00000000
(XEN) Platform: VERSATILE EXPRESS
(XEN) Set SYS_FLAGS to 00000000bfe0004c (0020004c)
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27
(XEN) Using generic timer at 24000 KHz
(XEN) GIC initialization:
(XEN) gic_dist_addr=000000002c001000
(XEN) gic_cpu_addr=000000002c002000
(XEN) gic_hyp_addr=000000002c004000
(XEN) gic_vcpu_addr=000000002c006000
(XEN) gic_maintenance_irq=25
(XEN) GIC: 192 lines, 5 cpus, secure (IID 0200043b).
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) I/O virtualisation disabled
(XEN) Allocated console ring of 16 KiB.
(XEN) VFP implementer 0x41 architecture 4 part 0x30 variant 0xf rev 0x0
(XEN) Bringing up CPU1
- CPU 00000001 booting -
- Xen starting in Hyp mode -
- Setting up control registers -
- Turning on paging -
- Ready -
(XEN) CPU 1 booted.
(XEN) Brought up 2 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading kernel from boot module 2
(XEN) Allocating 1:1 mappings totalling 128MB for dom0:
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Unable to allocate first memory bank
(XEN) ****************************************
(XEN)
(XEN) Manual reset required ('noreboot' specified)
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-06-18 9:10 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 16:37 [PATCH v2 0/8] xen: arm: Use super pages in p2m Ian Campbell
2014-06-11 16:39 ` [PATCH v2 1/8] xen: arm: dump vcpu gic info in arch_dump_vcpu_info Ian Campbell
2014-06-11 16:39 ` [PATCH v2 2/8] tools/libxc: pull min/max_t into xc_private.h Ian Campbell
2014-06-11 21:14 ` Julien Grall
2014-06-11 16:39 ` [PATCH v2 3/8] tools: arm: allocate large pages to guests Ian Campbell
2014-06-11 21:26 ` Julien Grall
2014-06-12 7:19 ` Ian Campbell
2014-06-12 8:47 ` Julien Grall
2014-06-11 16:40 ` [PATCH v2 4/8] xen: arm: only put_page for p2m operations which require it Ian Campbell
2014-06-11 21:31 ` Julien Grall
2014-06-12 7:27 ` Ian Campbell
2014-06-11 16:40 ` [PATCH v2 5/8] xen: arm: handle superpage mappings in p2m_lookup Ian Campbell
2014-06-11 16:40 ` [PATCH v2 6/8] xen: arm: add some helpers for assessing p2m pte Ian Campbell
2014-06-11 21:39 ` Julien Grall
2014-06-12 7:27 ` Ian Campbell
2014-06-11 16:40 ` [PATCH v2 7/8] xen: arm: use superpages in p2m when pages are suitably aligned Ian Campbell
2014-06-11 22:19 ` Julien Grall
2014-06-12 7:30 ` Ian Campbell
2014-06-12 9:00 ` Julien Grall
2014-06-13 14:08 ` Ian Campbell
2014-06-13 17:45 ` Julien Grall
2014-06-16 8:26 ` Jan Beulich
2014-06-16 9:53 ` Ian Campbell
2014-06-12 13:57 ` Stefano Stabellini
2014-06-13 14:15 ` Ian Campbell
2014-06-11 16:40 ` [PATCH v2 8/8] xen: arm: allocate more than one bank for 1:1 domain 0 if needed Ian Campbell
2014-06-11 22:47 ` Julien Grall
2014-06-12 7:31 ` Ian Campbell
2014-06-17 17:58 ` Julien Grall
2014-06-18 8:27 ` Ian Campbell
2014-06-18 9:10 ` Julien Grall [this message]
2014-06-18 9:36 ` Ian Campbell
2014-06-12 7:20 ` [PATCH v2 0/8] xen: arm: Use super pages in p2m Ian Campbell
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=53A15785.1040401@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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.