linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 1/3] ata: bump ATA_MAX_SECTORS_LBA48 to 65536
@ 2016-07-13  4:47 tom.ty89
  2016-07-13  4:47 ` [RFC 2/3] ata: make lba_{28,48}_ok() use ATA_MAX_SECTORS{,_LBA48} tom.ty89
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: tom.ty89 @ 2016-07-13  4:47 UTC (permalink / raw)
  To: tj, martin.petersen; +Cc: linux-ide, linux-scsi, linux-block, Tom Yan

From: Tom Yan <tom.ty89@gmail.com>

ATA_MAX_SECTORS_LBA48 is only used for setting the queue limit
"max_hw_sectors", which only serves as the cap for "max_sectors",
which is in turn the actual limit being used. Therefore, it should
be alright for us to bump ATA_MAX_SECTORS_LBA48 to 65536. Also,
lba_48_ok() has been accepting the number of blocks to be 65536.

Signed-off-by: Tom Yan <tom.ty89@gmail.com>

diff --git a/include/linux/ata.h b/include/linux/ata.h
index 99346be..24f886c 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -46,7 +46,7 @@ enum {
 	ATA_MAX_SECTORS_128	= 128,
 	ATA_MAX_SECTORS		= 256,
 	ATA_MAX_SECTORS_1024    = 1024,
-	ATA_MAX_SECTORS_LBA48	= 65535,/* TODO: 65536? */
+	ATA_MAX_SECTORS_LBA48	= 65536,
 	ATA_MAX_SECTORS_TAPE	= 65535,
 
 	ATA_ID_WORDS		= 256,
-- 
2.9.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-07-18 22:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-13  4:47 [RFC 1/3] ata: bump ATA_MAX_SECTORS_LBA48 to 65536 tom.ty89
2016-07-13  4:47 ` [RFC 2/3] ata: make lba_{28,48}_ok() use ATA_MAX_SECTORS{,_LBA48} tom.ty89
2016-07-14 21:09   ` [PATCH] " tom.ty89
2016-07-18 22:25     ` Tejun Heo
2016-07-13  4:47 ` [RFC 3/3] libata-scsi: add optimal transfer length to block limits VPD tom.ty89
2016-07-13 17:04   ` Tejun Heo
2016-07-14 18:13     ` Tom Yan
2016-07-13 17:03 ` [RFC 1/3] ata: bump ATA_MAX_SECTORS_LBA48 to 65536 Tejun Heo
2016-07-14 18:22   ` Tom Yan
2016-07-14 18:26     ` Tejun Heo

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).