From: Christoph Hellwig <hch@lst.de>
To: Hannes Reinecke <hare@suse.de>
Cc: James Bottomley <jbottomley@parallels.com>,
Christoph Hellwig <hch@lst.de>, Matthew Wilcox <matthew@wil.cx>,
Doug Gilbert <dgilbert@interlog.com>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH 12/12] advansys: Update to version 3.5 and remove compilation warning
Date: Thu, 4 Dec 2014 10:23:05 +0100 [thread overview]
Message-ID: <20141204092305.GA24091@lst.de> (raw)
In-Reply-To: <1417607105-85455-13-git-send-email-hare@suse.de>
> /* FIXME:
> *
> - * 1. Although all of the necessary command mapping places have the
> - * appropriate dma_map.. APIs, the driver still processes its internal
> - * queue using bus_to_virt() and virt_to_bus() which are illegal under
> - * the API. The entire queue processing structure will need to be
> - * altered to fix this.
> + * 1. (done)
> * 2. Need to add memory mapping workaround. Test the memory mapping.
> * If it doesn't work revert to I/O port access. Can a test be done
> * safely?
> * 3. Handle an interrupt not working. Keep an interrupt counter in
> * the interrupt handler. In the timeout function if the interrupt
> * has not occurred then print a message and run in polled mode.
> - * 4. Need to add support for target mode commands, cf. CAM XPT.
> - * 5. check DMA mapping functions for failure
> + * 4. (obsolete)
> + * 5. (done)
> * 6. Use scsi_transport_spi
> * 7. advansys_info is not safe against multiple simultaneous callers
> * 8. Add module_param to override ISA/VLB ioport array
Just drop the done/obsolete items and renumber the rest :)
> + if (dma_mapping_error(board->dev, scp->SCp.dma_handle)) {
> + ASC_DBG(1, "failed to map sense buffer\n");
> + return 0;
> + }
> dma_cache_sync(board->dev, scp->sense_buffer,
> SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE);
> return cpu_to_le32(scp->SCp.dma_handle);
> @@ -7794,6 +7794,8 @@ static int asc_build_req(struct asc_board *boardp, struct scsi_cmnd *scp,
> ASC_TIDLUN_TO_IX(scp->device->id, scp->device->lun);
> asc_scsi_q->q1.sense_addr = advansys_get_sense_buffer_dma(scp);
> asc_scsi_q->q1.sense_len = SCSI_SENSE_BUFFERSIZE;
> + if (!asc_scsi_q->q1.sense_addr)
> + return ASC_ERROR;
Please split the addition of error handling into a separate patch,
or in case of newly added mappigns add them to the patch that add the
mappings.
next prev parent reply other threads:[~2014-12-04 9:23 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 11:44 [PATCH 00/12] nobody loves the advansys driver Hannes Reinecke
2014-12-03 11:44 ` [PATCH 01/12] advansys: use host_reset Hannes Reinecke
2014-12-04 9:17 ` Christoph Hellwig
2014-12-04 9:23 ` Hannes Reinecke
2014-12-03 11:44 ` [PATCH 02/12] advansys: use shared host tag map for command lookup Hannes Reinecke
2014-12-04 9:20 ` Christoph Hellwig
2014-12-04 9:25 ` Hannes Reinecke
2014-12-04 9:26 ` Christoph Hellwig
2014-12-03 11:44 ` [PATCH 03/12] advansys: use DMA-API for mapping sense buffer Hannes Reinecke
2014-12-03 11:44 ` [PATCH 04/12] advansys: Use DMA-API for carrier buffer Hannes Reinecke
2014-12-03 11:44 ` [PATCH 05/12] advansys: Use DMA-API for mapping request blocks Hannes Reinecke
2014-12-03 11:44 ` [PATCH 06/12] advansys: Use dma_pool for sg elements Hannes Reinecke
2014-12-03 11:45 ` [PATCH 07/12] advansys: use 'bool' instead of 'int' Hannes Reinecke
2014-12-03 11:45 ` [PATCH 08/12] advansys: use standard data types Hannes Reinecke
2014-12-03 11:45 ` [PATCH 09/12] advansys: Remove 'TRUE' and 'FALSE' definitions Hannes Reinecke
2014-12-03 11:45 ` [PATCH 10/12] advansys: Remove 'ERR' definition Hannes Reinecke
2014-12-03 11:45 ` [PATCH 11/12] advansys: cleanup function return codes Hannes Reinecke
2014-12-03 11:45 ` [PATCH 12/12] advansys: Update to version 3.5 and remove compilation warning Hannes Reinecke
2014-12-04 9:23 ` Christoph Hellwig [this message]
2014-12-04 9:26 ` Hannes Reinecke
2014-12-03 15:21 ` [PATCH 00/12] nobody loves the advansys driver Christoph Hellwig
2014-12-03 15:34 ` Ondrej Zary
2014-12-03 15:42 ` James Bottomley
2014-12-03 16:28 ` Hannes Reinecke
2014-12-04 9:13 ` hch
2014-12-04 9:12 ` Christoph Hellwig
2014-12-03 16:06 ` Douglas Gilbert
2014-12-03 18:29 ` Ondrej Zary
2014-12-04 7:12 ` Hannes Reinecke
2014-12-07 14:44 ` Ondrej Zary
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=20141204092305.GA24091@lst.de \
--to=hch@lst.de \
--cc=dgilbert@interlog.com \
--cc=hare@suse.de \
--cc=jbottomley@parallels.com \
--cc=linux-scsi@vger.kernel.org \
--cc=matthew@wil.cx \
/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).