public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford@redhat.com>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Dale Amon <amon@vnl.com>, linux-kernel@vger.kernel.org
Subject: Re: 2.5.26 : drivers/scsi/BusLogic.c
Date: Thu, 18 Jul 2002 19:24:13 -0400	[thread overview]
Message-ID: <20020718192413.A28163@redhat.com> (raw)
In-Reply-To: <200207181700.g6IH03U02415@localhost.localdomain>; from James.Bottomley@HansenPartnership.com on Thu, Jul 18, 2002 at 12:00:02PM -0500

On Thu, Jul 18, 2002 at 12:00:02PM -0500, James Bottomley wrote:
> In the meantime, if you want to try, the trick looks to be to use 
> pci_map_single in BusLogic_CreateInitialCCBs; but then set up a reverse 
> mapping table for them in BusLogic_InitializeCCBs so that Bus_to_Virtual will 
> still work (its only use is to convert bus physical CCB addresses into CPU 
> virtual ones).
> 
> Next, in BusLogic_QueueCommand you need to use pci_map_single for non-sg 
> transformations, and pci_map_sg for sg plus in the loop over segments, use the 
> macros
> 
> sg_dma_address(&ScatterList[Segment]) in place of ScatterList[Segment].address
> sg_dma_len(&ScatterList[Segment]) in place ofScatterList[Segment].length
> 
> Initially, don't worry about unmapping, but this should get the thing working.
> 
> There are probably other places in the driver I've missed (like sense 
> buffers), but that should be the core of the necessary changes.

There are.  I'm currently writing a patch (hopefully a first test version 
will be out in an hour or so).  It's not quite as easy as it looks at 
first mainly because this driver supports PCI, EISA, VLB, MCA, and ISA 
cards :-/

-- 
  Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
         Red Hat, Inc. 
         1801 Varsity Dr.
         Raleigh, NC 27606
  

  reply	other threads:[~2002-07-18 23:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-18 17:00 2.5.26 : drivers/scsi/BusLogic.c James Bottomley
2002-07-18 23:24 ` Doug Ledford [this message]
2002-07-19 14:30   ` stoffel
2002-07-20 15:14   ` Dale Amon
2002-07-25 14:32   ` Dale Amon
  -- strict thread matches above, loose matches on Subject: below --
2002-07-18 15:45 Dale Amon
2002-07-18 16:16 ` Zwane Mwaikambo
2002-07-19  1:03   ` Doug Ledford
2002-07-19  1:19     ` Doug Ledford
2002-07-19  7:18       ` Michael G. Janicki
2002-07-19  8:41     ` Zwane Mwaikambo

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=20020718192413.A28163@redhat.com \
    --to=dledford@redhat.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=amon@vnl.com \
    --cc=linux-kernel@vger.kernel.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