From: Floyd Miller <floydmiller@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bigphysarea for 2.6.10 en 2.6.11
Date: Fri, 1 Jul 2005 10:15:34 -0400 [thread overview]
Message-ID: <347d9dae0507010715320f4344@mail.gmail.com> (raw)
On Mon Jun 13 2005 Pádraig Brady wrote:
> That should be: mem_resource.start = virt_to_phys(bigphysarea);
> Otherwise you could get a collision?
Yes, the collision has occured for me with 2.4 kernel on
Dell 2850 system. Requesting the resource using the
virtual address collided with the physical address of the
PCI expansion slots.
An overlap could also occur because the end address
passed to request_resource() is one too big.
The code should be:
// register the resource for it
mem_resource.start = virt_to_phys(bigphysarea);
mem_resource.end = mem_resource.start
+ (bigphysarea_pages << PAGE_SHIFT) - 1;
request_resource(&iomem_resource, &mem_resource);
Note that this may not work for systems such as SGI altix 350
using IA64 processors that do not support the virt_to_phys
operation. I don;t know what should be done on such a system.
Perhaps it is not necessary to mark the resource busy with
request_resource() since the memory is allocated from the
Kernel at boot time and should not be available for any other
use anyway.
Any thoughts on this?
next reply other threads:[~2005-07-01 14:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-01 14:15 Floyd Miller [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-06-11 20:42 [PATCH] bigphysarea for 2.6.10 en 2.6.11 Remy Böhmer
2005-06-13 9:28 ` P
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=347d9dae0507010715320f4344@mail.gmail.com \
--to=floydmiller@gmail.com \
--cc=linux-kernel@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