From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Baozi Subject: Re: Domain 0 crashed when booting OMAP5 uEVM Date: Tue, 13 Aug 2013 17:10:07 +0800 Message-ID: <20130813091007.GA16513@cbz-workstation> References: <20130812122452.GA21443@cbz-workstation> <5208D969.6090708@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5208D969.6090708@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Aug 12, 2013 at 01:47:37PM +0100, Julien Grall wrote: > > (XEN) size=2 sign=0 write=0 reg=0 > > (XEN) eat=0 cm=0 s1ptw=0 dfsc=7 > > (XEN) dom0 IPA 0x000000004ae06704 > > (XEN) P2M @ 02fdbf80 mfn:0xfedfc > > (XEN) 1ST[0x1] = 0x00000000fedfe6ff > > (XEN) 2ND[0x57] = 0x00000000ac9796ff > > (XEN) 3RD[0x6] = 0x0000000000000000 > > (XEN) ----[ Xen-4.4-unstable arm32 debug=y Not tainted ]---- > > (XEN) CPU: 0 > > (XEN) PC: c0033410 > > To help you, you can use "addr2line -e vmlinux address" to find the > faulty line in linux. Where address is your pc. $addr2line -e vmlinux 0xc0033410 /home/cbz/src/linux/arch/arm/mach-omap2/prminst44xx.c:52 I checked the codes around line 52 in prminst44xx: 45 /* Read a register in a PRM instance */ 46 u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx) 47 { 48 BUG_ON(part >= OMAP4_MAX_PRCM_PARTITIONS || 49 part == OMAP4430_INVALID_PRCM_PARTITION || 50 !_prm_bases[part]); 51 return __raw_readl(_prm_bases[part] + inst + idx); 52 } So I think I have to implement a .specific_mapping such as exynos5_specific_mapping in arch/arm/platforms/exynos5.c? Just one more question. Read from OMAP5 datasheet, its IO memory address space ranges from 0 to 2G (with holes of course). Do I have to map all of them? Cheers, Baozi