public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
To: Len Brown <len.brown@intel.com>
Cc: Michael Geithe <warpy@gmx.de>,
	Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: __iounmap: bad address c00f0000 (Re: 2.6.10-bk5)
Date: Mon, 3 Jan 2005 17:49:10 +0000	[thread overview]
Message-ID: <20050103174910.GV26051@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <1104773076.18173.64.camel@d845pe>

On Mon, Jan 03, 2005 at 12:24:36PM -0500, Len Brown wrote:
> On Sun, 2005-01-02 at 19:14, Michael Geithe wrote:
> 
> > DMI 2.3 present.
> > __iounmap: bad address c00f0000
> > ACPI: RSDP (v000 AMI                                   ) @ 0x000fa380
> 
> Not and ACPI issue:-)
> 
> Looks like the warning is provoked by Al Viro's update to dmi_iterate().
> Perhaps there is a conflict between dmi_table()'s bt_iounmap(),
> and dmi_iterate()'s new iounmap() on the same address?

No.

diff -urN RC10-base/arch/i386/kernel/dmi_scan.c RC10-current/arch/i386/kernel/dmi_scan.c
--- RC10-base/arch/i386/kernel/dmi_scan.c	2004-12-27 06:06:58.000000000 -0500
+++ RC10-current/arch/i386/kernel/dmi_scan.c	2005-01-03 12:46:48.211661680 -0500
@@ -104,6 +104,11 @@
 	u8 buf[15];
 	char __iomem *p, *q;
 
+	/*
+	 * no iounmap() for that ioremap(); it would be a no-op, but it's
+	 * so early in setup that sucker gets confused into doing what
+	 * it shouldn't if we actually call it.
+	 */
 	for (p = q = ioremap(0xF0000, 0x10000); q < p + 0x10000; q += 16) {
 		memcpy_fromio(buf, q, 15);
 		if(memcmp(buf, "_DMI_", 5)==0 && dmi_checksum(buf))
@@ -125,13 +130,10 @@
 				num, len));
 			dmi_printk((KERN_INFO "DMI table at 0x%08X.\n",
 				base));
-			if(dmi_table(base,len, num, decode)==0) {
-				iounmap(p);
+			if(dmi_table(base,len, num, decode)==0)
 				return 0;
-			}
 		}
 	}
-	iounmap(p);
 	return -1;
 }
 

  reply	other threads:[~2005-01-03 17:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-03  0:14 2.6.10-bk5 Michael Geithe
2005-01-03 17:24 ` __iounmap: bad address c00f0000 (Re: 2.6.10-bk5) Len Brown
2005-01-03 17:49   ` Al Viro [this message]
2005-01-03 17:49   ` Len Brown
2005-01-03 18:02     ` Al Viro
2005-01-03 18:29     ` Michael Geithe

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=20050103174910.GV26051@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=warpy@gmx.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