From: Jeff Garzik <jgarzik@pobox.com>
To: Jens Axboe <axboe@suse.de>
Cc: Tejun Heo <htejun@gmail.com>,
albertcc@tw.ibm.com, linux-ide@vger.kernel.org,
Mark Lord <mlord@pobox.com>
Subject: Re: [PATCH] libata: increase LBA48 max sectors to 65535
Date: Wed, 15 Feb 2006 15:21:29 -0500 [thread overview]
Message-ID: <43F38D49.4080601@pobox.com> (raw)
In-Reply-To: <20060215151200.GW4203@suse.de>
Jens Axboe wrote:
> On Thu, Feb 16 2006, Tejun Heo wrote:
>
>>Jens Axboe wrote:
>>
>>>On Wed, Feb 15 2006, Tejun Heo wrote:
>>>
>>>
>>>>max_hw_sectors/max_sectors separation patch made into the tree,
>>>>increase max_sectors to its hardware limit.
>>>>
>>>>Signed-off-by: Tejun Heo <htejun@gmail.com>
>>>>
>>>>---
>>>>
>>>>Jeff, first of all, thanks for the pointer. I have two more
>>>>questions.
>>>>
>>>>* I make ATA_MAX_SECTORS_LBA48 65535 (the 0000h case is supposed to be
>>>>broken, right?); however, the comment says 65534. Should it be
>>>>65534?
>>>
>>>
>>>Since we never noticed any breakage on !sectors on lba28, I think we can
>>>safely assume that !sectors will work fine for lba48 as well. So why not
>>>just make it full 64k, eg 65536? ->max_hw_sectors is an unsigned int
>>>now, so 64k wont overflow it.
>>>
>>
>>Hello, Jens.
>>
>>libata currently sets max_sectors to 200 (ATA_MAX_SECTORS) on lba28.
>>Are you talking about IDE driver? IDE driver seems to set max_sectors
>>to 256 on probe and make it 2048 while setting up ide disk if lba48.
>
>
> Yes I mean the IDE driver. The 200 sector value in libata has always
> struck me as being extremely odd and a very bad choice. It's somewhere
> in between reasonable defaults, which isn't very nice. I'd suggest just
> making it 256 as well, unless Jeff has a reason why it's set to 200.
Its set to 200 for a libata-related reason that I now forget :(
It had nothing to do with controllers or devices, hence the FIXME.
As an aside, I wonder if the PRD limit is unnecessarily low. I don't
remember seeing anything that claimed we were limited to 256 s/g entries
in the old IDE docs?
Jeff
next prev parent reply other threads:[~2006-02-15 20:21 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-12 14:32 [PATCHSET] libata: make some configurations per-dev Tejun Heo
2006-02-12 14:32 ` [PATCH 1/4] libata: make ata_dev_knobble() per-device Tejun Heo
2006-02-12 19:29 ` Jeff Garzik
2006-02-12 14:32 ` [PATCH 2/4] libata: move cdb_len for host to device Tejun Heo
2006-02-12 14:32 ` [PATCH 3/4] libata: add per-device max_sectors Tejun Heo
2006-02-12 19:37 ` Jeff Garzik
2006-02-13 0:47 ` Tejun Heo
2006-02-13 4:58 ` Jeff Garzik
2006-02-15 7:24 ` [PATCH] libata: increase LBA48 max sectors to 65535 Tejun Heo
2006-02-15 13:07 ` Jens Axboe
2006-02-15 15:04 ` Tejun Heo
2006-02-15 15:12 ` Jens Axboe
2006-02-15 15:30 ` Tejun Heo
2006-02-15 19:03 ` Mark Lord
2006-02-15 20:21 ` Jeff Garzik [this message]
2006-02-15 23:05 ` Mark Lord
2006-02-20 11:23 ` Jeff Garzik
2006-02-20 13:54 ` Mark Lord
2006-02-20 13:58 ` Jens Axboe
2006-02-16 7:42 ` Jens Axboe
2006-02-20 11:25 ` Jeff Garzik
2006-02-20 11:44 ` Jens Axboe
2006-02-20 21:59 ` Jeff Garzik
2006-02-12 14:32 ` [PATCH 4/4] libata: kill sht->max_sectors Tejun Heo
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=43F38D49.4080601@pobox.com \
--to=jgarzik@pobox.com \
--cc=albertcc@tw.ibm.com \
--cc=axboe@suse.de \
--cc=htejun@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=mlord@pobox.com \
/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).