linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@linuxcare.com.au>
To: Ronald Wahl <rwa@peppercon.de>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: iounmap
Date: Fri, 4 Aug 2000 12:13:53 +1000 (EST)	[thread overview]
Message-ID: <14730.9953.112006.773228@argo.linuxcare.com.au> (raw)
In-Reply-To: <Pine.LNX.4.21.0008030950020.1647-100000@goliath.issistance.de>


Ronald Wahl writes:

> I'm currently writing a device driver for an pci controller and have to
> map very large amounts of pci memory and i/o ranges via ioremap. The
> problem is that there is no iounmap and ioremap returns NULL after some
> insmod/rmmod cycles. When gets this implemented?

This should do the trick:

void iounmap(void *addr)
{
	if (addr > high_memory && (unsigned long) addr < ioremap_bot)
		vfree((void *) (PAGE_MASK & (unsigned long) addr));
}

Could you replace the null iounmap in arch/ppc/mm/init.c with that,
test it, and let me know if it works?

Paul.

--
Paul Mackerras, Senior Open Source Researcher, Linuxcare, Inc.
+61 2 6262 8990 tel, +61 2 6262 8991 fax
paulus@linuxcare.com.au, http://www.linuxcare.com.au/
Linuxcare.  Support for the revolution.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2000-08-04  2:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-03  8:00 iounmap Ronald Wahl
2000-08-03 12:44 ` iounmap Geert Uytterhoeven
2000-08-03 22:59   ` iounmap Matt Porter
2000-08-04  8:06     ` iounmap Ronald Wahl
2000-08-04 14:19       ` iounmap Matt Porter
2000-08-04  2:13 ` Paul Mackerras [this message]
2000-08-04  8:08   ` iounmap Ronald Wahl

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=14730.9953.112006.773228@argo.linuxcare.com.au \
    --to=paulus@linuxcare.com.au \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=rwa@peppercon.de \
    /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;
as well as URLs for NNTP newsgroup(s).