mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Antonino Sergi <Antonino.Sergi@roma1.infn.it>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: "Randy.Dunlap" <rddunlap@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: isa memory address
Date: Wed, 10 Nov 2004 10:37:17 +0100	[thread overview]
Message-ID: <1100079437.30102.66.camel@delphi.roma1.infn.it> (raw)
In-Reply-To: <Pine.LNX.4.58L.0411091638570.9795@blysk.ds.pg.gda.pl>

On Tue, 2004-11-09 at 17:56, Maciej W. Rozycki wrote:
> On Tue, 9 Nov 2004, Antonino Sergi wrote:
> 
> > I looked for iomem with a kernel-2.4.2:
> > 
> > /proc/iomem reports
> > 00000000-0009fbff : System RAM
> > 0009fc00-0009ffff : reserved
> > 000a0000-000bffff : Video RAM area
> > 000c0000-000c7fff : Video ROM
> > 000f0000-000fffff : System ROM
> > 00100000-1fffbfff : System RAM
> > 
> > Nothing in the region 000d0000-000d0006 (used by my driver),
> > so why is it BUSY?
> 
>  Because you are trying to use the region in the I/O port space.  That's
> probably not what you want to do and an 8-bit ISA board cannot decode it
> at all anyway.  Actually for some platforms using the I/O space outside
> the low 16-bit range may be quite difficult even for buses and devices
> that support it and Linux does not support it then, either.  So Linux 
> correctly informs you you cannot use that range.

This is actually not clear for me.

> > > > I'm working with an old data acquisition system that uses an 8-bit card
> > > > in an ISA slot (address 0xd0000), by a simple driver I ported from
> > > > kernel 1.1.x to 2.2.24.
> > > > 
> > > > It works fine, but I'd like to have features by newer kernels (2.4 or
> > > > even 2.6), like new filesystems support.
> > > > 
> > > > On kernels >=2.4.0 check_region returns -EBUSY for that address,
> > > > but it is not actually used; I tried to understand if something has been
> > > > changed/removed, because of obsolescence of devices, in IO management,
> > > > but I couldn't.
> 
>  Try check_mem_region() instead, ...
> 
> > > You might have to dummy up a call to release_resource() first,
> > > then use request_resource() to acquire it.
> 
>  ... or better yet request_mem_region()/release_resource(), as the former 
> is deprecated and will be removed.

I tried but (on 2.4.2):
- request_region fails but, ignoring it and remapping physical address
to virtual, everything works fine, except for release_region, of course.
- request_mem_region works but what I get from communication with the
actual device are numbers that sometimes are surely wrong.

I couldn't understand what is the actual difference between
ioport_resource and iomem_resource to track the problem.

Antonino


>   Maciej


  reply	other threads:[~2004-11-10  9:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-08  8:14 Antonino Sergi
2004-11-08 16:46 ` Randy.Dunlap
2004-11-09  5:46   ` Antonino Sergi
2004-11-09 15:42   ` Antonino Sergi
2004-11-09 16:56     ` Maciej W. Rozycki
2004-11-10  9:37       ` Antonino Sergi [this message]
2004-11-11  3:54         ` Maciej W. Rozycki
2004-11-12 17:10           ` Antonino Sergi
2004-11-16 16:22           ` Antonino Sergi
2004-11-17 15:00             ` Antonino Sergi

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=1100079437.30102.66.camel@delphi.roma1.infn.it \
    --to=antonino.sergi@roma1.infn.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=macro@linux-mips.org \
    --cc=rddunlap@osdl.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

all inboxes | Powered by JetHome®