From: Greg KH <greg@kroah.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: mochel@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: Problems with 2.5.14 PCI reorg and non-PCI architectures
Date: Thu, 9 May 2002 08:23:29 -0700 [thread overview]
Message-ID: <20020509152329.GC17158@kroah.com> (raw)
In-Reply-To: <20020509084424.GC15460@kroah.com> <200205091300.g49D0TY01841@localhost.localdomain>
On Thu, May 09, 2002 at 09:00:28AM -0400, James Bottomley wrote:
> greg@kroah.com said:
> > arch/i386/pci/dma.c now only contains pci_alloc_consistent() and
> > pci_free_consistent(). What kind of configuration are you using that
> > works without CONFIG_PCI and yet calls those functions? Is it a
> > ISA_PNP type configuration? Do you have a .config that this fails on?
>
> The problem is that this is not necessarily PCI related on other platforms.
>
> My cross platform SCSI driver, 53c700.c, uses pci_alloc_consistent because it
> has to work on parisc archs as well (which do have consistent memory even
> though a few of them don't have PCI busses). It was failing a test compile.
> I can manipulate the #ifdefs so that it doesn't use the consistent allocation
> functions on x86, but I think, in principle, cross platform drivers should be
> able to use these functions.
But parisc has it's own implementation of pci_alloc_consistent(), so
you're ok on that platform. And it looks like only 2 scsi drivers use
the 53c700.c code, lasi700.c and NCR_D700.c. The NCR driver looks to
need pci, and the lasi700 driver doesn't look like it will even compile
on i386.
No wait, the NCR driver needs Microchannel, is that true?
I would like to push back and ask why you are calling a pci_* function
from a driver that does not need pci. Yes, I know it's a nice, generic
function, but that hasn't stopped people from rewriting that same
function a number of times in different forms in different places in the
tree :)
In a perfect world, we should probably create a function like:
void *alloc_consistent (int flags, size_t size, dma_addr_t *dma_handle);
to solve everyone's needs, but I'm not volunteering to do that :)
I'll go move the file and send the changeset to Linus.
thanks,
greg k-h
next prev parent reply other threads:[~2002-05-09 16:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-08 23:11 Problems with 2.5.14 PCI reorg and non-PCI architectures James Bottomley
2002-05-09 8:44 ` Greg KH
2002-05-09 13:00 ` James Bottomley
2002-05-09 15:23 ` Greg KH [this message]
2002-05-09 16:47 ` James Bottomley
2002-05-09 16:52 ` [BK PATCH] PCI reorg fix Greg KH
2002-05-09 18:06 ` Patrick Mochel
2002-05-09 17:15 ` Greg KH
2002-05-09 18:26 ` James Bottomley
2002-05-09 18:23 ` Kai Germaschewski
2002-05-09 18:26 ` Patrick Mochel
2002-05-09 18:46 ` Kai Germaschewski
2002-05-09 19:45 ` Martin Dalecki
2002-05-09 21:34 ` James Bottomley
2002-05-09 20:51 ` Martin Dalecki
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=20020509152329.GC17158@kroah.com \
--to=greg@kroah.com \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@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