linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: "Markus Rechberger" <mrechberger@gmail.com>
Cc: linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>,
	Daniel Ritz <daniel.ritz@gmx.ch>,
	Dominik Brodowski <linux@dominikbrodowski.net>
Subject: Re: [solved] Yenta Cardbus allocation failure
Date: Wed, 20 Dec 2006 19:40:03 -0800	[thread overview]
Message-ID: <20061220194003.b0db1844.akpm@osdl.org> (raw)
In-Reply-To: <d9def9db0612181612v657197ees925609243fc1ef65@mail.gmail.com>

On Tue, 19 Dec 2006 01:12:07 +0100
"Markus Rechberger" <mrechberger@gmail.com> wrote:

> I went on with investigating that problem and found the problem,
> though I'm not sure if that solution is acceptable..
> 
> seems like the memory range gets preallocated in setup-bus.c, and
> CARDBUS_MEM_SIZE defines that size.
> 
> I changed
> #define CARDBUS_MEM_SIZE        (32*1024*1024)
> to
> #define CARDBUS_MEM_SIZE        (48*1024*1024)
> 
> and now the system is able to allocate the resources for the 3rd
> pci/pcmcia function.
> 
> Can anyone please have a closer look at it too? I think the whole
> implementation isn't really good there..
> 
> so this is the new output of iomem:
> $ cat /proc/iomem
> ...
> 30000000-35ffffff : PCI Bus #02
>   30000000-32ffffff : PCI CardBus #03
> 36000000-360003ff : 0000:00:1f.1
> 39000000-3bffffff : PCI CardBus #03
>   39000000-39ffffff : 0000:03:00.0
>   3a000000-3affffff : 0000:03:00.1
>   3b000000-3bffffff : 0000:03:00.2 <- this one failed to allocate previously
> 3c000000-3effffff : PCI CardBus #07
> 41000000-43ffffff : PCI CardBus #07
> ...

This keeps happening.  Is there no way in which we can put this to bed
permanently, or does it require prior knowledge about what cardbus cards
the user owns?

Does the cardbus spec set an upper limit on these resource sizes?

Linus has wondered "how much does Windows use"?  How might we determine
that?

  reply	other threads:[~2006-12-21  3:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-12  8:04 Yenta Cardbus allocation failure Markus Rechberger
2006-12-19  0:12 ` [solved] " Markus Rechberger
2006-12-21  3:40   ` Andrew Morton [this message]
2006-12-21  7:07     ` Linus Torvalds
2006-12-19  8:55 Chuck Ebbert
2006-12-19  9:24 ` Markus Rechberger

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=20061220194003.b0db1844.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=daniel.ritz@gmx.ch \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@dominikbrodowski.net \
    --cc=mrechberger@gmail.com \
    --cc=torvalds@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;
as well as URLs for NNTP newsgroup(s).