[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenARM] Accessing IO memory from domain 0 (mini-OS)


  • To: xen-arm@xxxxxxxxxxxxxxxxxxx
  • From: Rahul Balani <rahulb@xxxxxxxxxxx>
  • Date: Thu, 9 Apr 2009 17:27:38 -0700
  • Delivery-date: Thu, 09 Apr 2009 17:27:43 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=rHuFFZx/XK5e9ZabuZ1iVKkqYsESeDiQlkPwBIxkpo2FT0571cnGdguA1JB0eOcI9k l0WPNqi8oaypR8Ys5ZMV4nyWphQn2nlJZ2kRGRVVaswU9bFJGW7tszN00si3cClYJkh2 aH1cIxKe8XmquPigrS/kHg00IOx3kFZCFtgAo=
  • List-id: Xen ARM development <xen-arm.lists.xensource.com>

Hi everyone,

We are working on the Xen-arm version released earlier by Samsung. We did minor modifications required to make it work on the i.MX21 based Cogent CSB735 platform. The platform is very much similar to the Freescale board that was used by Samsung (64 MB SDRAM mapped at 0xC0000000).

Now, we are trying to write device drivers in mini-os to access SPI bus from domain 0. Unfortunately, we are able to access IO memory corresponding to SPI peripheral (virtual address 0xE001700C) from within main.c:start_kernel() in mini-os ONLY uptil the call to local_irq_enable(). If we try to access I/O memory at any point after local_irq_enable(), it just kills the domain. Domain 1 (user domain) keeps running fine and we can see output on the console from threads running in that domain.

We have checked the Translation Table (page directory) entry corresponding to 0xE0000000 and it maps correctly to 0x10000000 (physical IO base) with seemingly correct flags (belongs to DOMAIN_IO, RW access for both privileged and user mode, section mapping). This copied as it is from the idle domain translation table. The same driver works fine from within Xen.

Any ideas on what kind of bug this could be, or where to look for it?

Thanks!
-Rahul.
_______________________________________________
Xen-arm mailing list
Xen-arm@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-arm

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.