public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: hch@infradead.org, linux-scsi@vger.kernel.org, garloff@suse.de,
	gl@dsa-ac.de
Subject: Re: [PATCH] Re: AMD 53c974 SCSI driver in 2.6
Date: Mon, 17 Nov 2003 13:41:40 -0800	[thread overview]
Message-ID: <20031117134140.169587af.rddunlap@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0311170054040.2228-100000@poirot.grange>

On Mon, 17 Nov 2003 01:03:17 +0100 (CET) Guennadi Liakhovetski <g.liakhovetski@gmx.de> wrote:

| On Sat, 15 Nov 2003, Guennadi Liakhovetski wrote:
| 
| > several first commands seem to complete fine, but then I get an Oops,
| > because dma_map_page is called with direction == DMA_NONE. Below is
| 
| Ok, I found where the data_direction is set to DMA_NONE, but I still don't
| understand why, and how this is supposed to work. So, in
| sd_revalidate_disk() sr_data_direction is initialised by
| scsi_allocate_request() to DMA_BIDIRECTIONAL:
|                 sreq->sr_data_direction = DMA_BIDIRECTIONAL;
| , but already in sd_spinup_disk() it is reset to DMA_NONE:
|                         SRpnt->sr_data_direction = DMA_NONE;

Doing a TEST_UNIT_READY doesn't require any DMA transfers, in the
sense of buffers (i.e., buffer length is 0), so DMA_NONE makes sense,
doesn't it?

| I haven't found yet how sr_data_direction gets copied to sc_data_direction
| (so far it only looks like struct scsi_cmnd is just overlayd on struct
| scsi_request, but I may be wrong there... Or is it really so?

scsi.c::scsi_init_cmd_from_req(), line 504 in 2.6.0-test9 (?),
although I haven't followed the code flow all the way from tmscsim
to that function.

--
~Randy
MOTD:  Always include version info.

PS:  I prefer this on linux-scsi instead of linux-kernel.

  reply	other threads:[~2003-11-17 21:47 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031031114616.A16435@infradead.org>
2003-11-02 19:22 ` [PATCH] Re: AMD 53c974 SCSI driver in 2.6 Guennadi Liakhovetski
2003-11-03  9:14   ` Christoph Hellwig
2003-11-15 21:48     ` Guennadi Liakhovetski
2003-11-17  0:03       ` Guennadi Liakhovetski
2003-11-17 21:41         ` Randy.Dunlap [this message]
2003-11-17 22:42           ` Guennadi Liakhovetski
2003-11-17 23:14             ` Randy.Dunlap
2003-11-17 23:28               ` Kurt Garloff
2003-11-17 23:31                 ` Randy.Dunlap
2003-11-18  0:04                 ` Guennadi Liakhovetski
     [not found]               ` <Pine.LNX.4.44.0311180049250.2258-200000@poirot.grange>
2003-11-18  9:28                 ` Kurt Garloff
2003-11-18 10:22                   ` Guennadi Liakhovetski
2003-11-18 23:07                   ` Guennadi Liakhovetski
2003-11-19 15:34                     ` Kurt Garloff
2003-11-20 11:37                       ` Guennadi Liakhovetski
2003-11-20 22:57                         ` TMSCSIM [2.6] (was: Re: [PATCH] Re: AMD 53c974 SCSI driver in 2.6) Guennadi Liakhovetski
2003-11-22 23:23                           ` Guennadi Liakhovetski
2003-11-22 23:27                           ` Guennadi Liakhovetski
2003-11-23 20:26                             ` TMSCSIM [2.6] Matthias Andree
2003-11-23 20:53                               ` Guennadi Liakhovetski
2003-11-23 23:29                               ` Kurt Garloff
2003-11-24  7:47                             ` TMSCSIM [2.6] (was: Re: [PATCH] Re: AMD 53c974 SCSI driver in 2.6) Christoph Hellwig
2003-11-24 20:18                               ` Guennadi Liakhovetski

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=20031117134140.169587af.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=g.liakhovetski@gmx.de \
    --cc=garloff@suse.de \
    --cc=gl@dsa-ac.de \
    --cc=hch@infradead.org \
    --cc=linux-scsi@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