<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 11.03.2009 16:02 Uhr, Myles Watson wrote:
<blockquote
 cite="mid:2831fecf0903110802i32bb4daduca4e8be12b585152@mail.gmail.com"
 type="cite">
  <pre wrap="">On Wed, Mar 11, 2009 at 8:55 AM, Stefan Reinauer <a class="moz-txt-link-rfc2396E" href="mailto:stepan@coresystems.de"><stepan@coresystems.de></a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On 11.03.2009 15:24 Uhr, Myles Watson wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">+     // NOTE this will break as soon as the Azalia get's a bar above
+     // 4G. Is there anything we can do about it?
      base = (u8 *) ((u32)res->base);
-     printk_debug("base = %08x\n", base);
+     printk_debug("Azalia: base = %08x\n", (u32)base);
      codec_mask = codec_detect(base);

Can't you add your own read_resources and set the limit for the BAR to
0xffffffff?  Then you know the BAR will never get allocated above that.

      </pre>
    </blockquote>
    <pre wrap="">Hm... That should work. Maybe we should consider this in the generic
code, though. When coreboot runs in 32bit and maps BARs above 4G it
can't easily access those bars anymore.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
What are the options?
1. Save scratch address space where you allocate BARs for playing
with, then move them up when you're done.
2. Run coreboot in 64bit mode
3. Confine config space to 4G
4. ?
  </pre>
</blockquote>
<br>
Maybe PAE? I think we do this for memory scrubbing on K8. Does it also
work for MMIO?<br>
<br>
I really like the coreboot in 64bit mode idea, but it's a big deal to
switch those cpus in 64bit mode. Can't be done before memory is there,
either. <br>
<br>
<pre class="moz-signature" cols="72">-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: <a class="moz-txt-link-abbreviated" href="mailto:info@coresystems.de">info@coresystems.de</a>  • <a class="moz-txt-link-freetext" href="http://www.coresystems.de/">http://www.coresystems.de/</a>
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
</pre>
</body>
</html>