From: Mohit Katiyar <mohit_lkw@yahoo.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Queries on IA -64
Date: Wed, 18 May 2005 05:18:13 +0000 [thread overview]
Message-ID: <20050518051813.85978.qmail@web54003.mail.yahoo.com> (raw)
In-Reply-To: <20050516114921.28015.qmail@web54008.mail.yahoo.com>
Hi everyone
A big thanks to all who cleared my doubts .It was a
great help
Thanks once again
Mohit Katiyar
--- Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
> On Monday 16 May 2005 5:49 am, Mohit Katiyar wrote:
> > I am having a ZX MIO chip
>
> I assume you mean an HP box with zx1 chipset.
>
> > First in function paging_init
> > line max_dma = virt_to_phys((void *)
> > MAX_DMA_ADDRESS) >> PAGE_SHIFT;
> > max_dma comes out to be 0x7fffffffffff and max low
> pfn
> > = 0x103ffec
> > Therefore all the pages move into DMA zone during
> > initialization .
> > QUESTION Why do we have such a large max_dma
> value.
> > What is the use for that?
>
> As Grant said, ia64 provides the illusion that any
> device
> can DMA directly to any physical memory. For
> devices that
> can't do 64-bit DMA directly, HP and SGI chipsets
> have
> hardware I/O TLBs that turn a 32-bit PCI bus address
> into
> a 64-bit memory address. For boxes without a
> hardware
> I/O TLB, there's a software I/O TLB that provides
> similar
> functionality using bounce buffers.
>
> > Question In which case does trim bottom is called
> and
> > in which case trim top will be called??
>
> The identity-mapped kernel segment is mapped with
> large
> pages (typically 16MB or 64MB). The ia64
> architecture
> requires that we prevent attribute aliasing, so we
> can't
> have one of those pages that contains both WB and UC
> memory. So trim_top() and trim_bottom() trim the
> memory
> map so we ignore chunks that contain anything other
> than
> WB memory.
>
> > May 13 16:57:01 HORIZON kernel: range > > [0x0000000000000000-0x0000000000001000] (0MB)
> >
> > QUESTION>>>>>>>>Why does count_dma_pages skips
> this
> > range as seen from start and end values indicated
> at
> > the end of mail
>
> This is removed because it's in the same 16MB
> granule
> as the 0xa0000-0xc0000 VGA frame buffer region,
> which
> is MMIO. That MMIO region forces us to ignore any
> WB memory in the first 16MB.
>
> > May 13 16:57:02 HORIZON kernel: type > MemoryMappedIO
> > May 13 16:57:02 HORIZON kernel: attribute = 0x3
> > May 13 16:57:02 HORIZON kernel: range > > [0x00000000000a0000-0x00000000000c0000] (0MB)
>
> > If i compile my kernel with Virtual mem map off
> and
> > NUMA off i my available free ram decreases by
> about 1
> > GB . I am not able to figure it out??
>
> My guess is that without virtual memmap, you just
> end
> up wasting a huge amount of memory on page
> structures.
> The zx1 chipset has huge holes in the physical
> memory
> map, and I think that without virtual memmap, we
> allocate
> page structures even for the holes.
>
> This book is a great place to start for questions
> like
> these:
>
> http://www.lia64.org/book/
>
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
prev parent reply other threads:[~2005-05-18 5:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-16 11:49 Queries on IA -64 Mohit Katiyar
2005-05-16 16:43 ` Grant Grundler
2005-05-17 23:05 ` Bjorn Helgaas
2005-05-18 5:18 ` Mohit Katiyar [this message]
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=20050518051813.85978.qmail@web54003.mail.yahoo.com \
--to=mohit_lkw@yahoo.com \
--cc=linux-ia64@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox