All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
	Jens Axboe <axboe@suse.de>, Mark Lord <liml@rtr.ca>
Subject: Re: Random libata notes
Date: Sat, 11 Mar 2006 20:37:45 -0500	[thread overview]
Message-ID: <44137B69.2080107@garzik.org> (raw)
In-Reply-To: <44118E4B.9050401@gmail.com>

Tejun Heo wrote:
> Tejun Heo wrote:
> 
>> Jeff Garzik wrote:
>>
>>> These are small TODO bits that I didn't want to forget...  Patches 
>>> welcome.
>>>
>>> 1) ATAPI edge case.  Due to adding the padding s/g entry, we must 
>>> adjust sg_tablesize to include ' - 1' for each driver
>>
>>
>>
>> Isn't this handled by ata_scsi_slave_config()? If the attached device 
>> is ATAPI, ata_scsi_slave_config() reduces max_hw_segments by 1. We'll 
>> need to increment it back when detaching the device though.
>>
>>>
>>> 2) ata_scsi_slave_config() hardcodes a call to
>>> blk_queue_max_phys_segments(, LIBATA_MAX_PRD), when the value passed
>>> should not be so limited on nice hardware like AHCI.
> 
> 
> And, AFAICS, we can increase max_phys_segments all we want. This limits 
> the number of segments before IOMMU mapping. The only part that's 
> affected is the driver (software) and I don't see any limitation in 
> libata PIO implementation that puts limitation on the number of sg 
> entries. Simply changing LIBATA_MAX_PRD to 65535 should do it.

We really want to accurately export the correct value for each piece of 
hardware.  It IMO isn't wise to tempt fate with a wide disparity between 
max_phys_segments, max_hw_segments, and real life...  :)

	Jeff




  reply	other threads:[~2006-03-12  1:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-04 17:33 Random libata notes Jeff Garzik
2006-03-10 14:20 ` Tejun Heo
2006-03-10 14:33   ` Tejun Heo
2006-03-12  1:37     ` Jeff Garzik [this message]
2006-03-13 11:40       ` Tejun Heo
2006-03-12  1:35   ` Jeff Garzik

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=44137B69.2080107@garzik.org \
    --to=jeff@garzik.org \
    --cc=axboe@suse.de \
    --cc=htejun@gmail.com \
    --cc=liml@rtr.ca \
    --cc=linux-ide@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.