From: "Rob Murphy" <rmurphy@integraltech.com>
To: <linux-kernel@vger.kernel.org>
Subject: 2.5.62 ioremap fails
Date: Mon, 24 Feb 2003 12:21:01 -0500 [thread overview]
Message-ID: <006801c2dc29$1a80e560$8f00a8c0@integraltech.com> (raw)
I have been trying to allocate memory past the end of the kernel in a system
that has more that 1 Gb of memory and have been unsuccessful. My current
machine has an athlon processor and 1.5Gb of memory.
I created a driver with the following code:
#define MAXHM 0x8000000 // 128 Mb
int __init init_module(void)
{
void *kHighMem;
printk(KERN_ERR"before ioremap\n");
kHighMem = ioremap(__pa(high_memory), MAXHM);
printk(KERN_ERR"ioremap ret: %x\n",kHighMem);
return 0;
}
void __exit leave_mod(void) {
iounmap(kHighMem);
printk(KERN_ERR"iounmap passed\n");
printk(KERN_ERR,"module successfully unloaded.\n");
}
I add the line append="mem=xx" to lilo.
If I set "xx" to around 860 or above then ioremap fails. If I set "xx" to
860 or less then ioremap is successful. Has anyone had any experience
trying to allocate a contiguous memory buffer beyond the end of what the
kernel manages in a system with over 1Gb of memory? Any help would be
appreciated in this matter.
Regards,
Rob Murphy
reply other threads:[~2003-02-24 17:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='006801c2dc29$1a80e560$8f00a8c0@integraltech.com' \
--to=rmurphy@integraltech.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