From patchwork Wed Jul 13 04:47:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Yan X-Patchwork-Id: 9226767 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D5E9608A7 for ; Wed, 13 Jul 2016 04:48:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0006127D5D for ; Wed, 13 Jul 2016 04:48:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E819727F9A; Wed, 13 Jul 2016 04:48:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A229C27D5D for ; Wed, 13 Jul 2016 04:48:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750852AbcGMEr7 (ORCPT ); Wed, 13 Jul 2016 00:47:59 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33172 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbcGMEr5 (ORCPT ); Wed, 13 Jul 2016 00:47:57 -0400 Received: by mail-pf0-f194.google.com with SMTP id i6so2065215pfe.0; Tue, 12 Jul 2016 21:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bP+ep8RSmaLloCnSeY9ElD+f1vXmH95r/rt6s/Nc3V8=; b=HC3a38eLSAJMOMMZvEnx9XvsGlvWuihpY185zH0IkHiA6MGD6ZdvbP0MLoNbtlrhOF 1zZlKjr+3uLxmZcejXNJPnFMB+E6meBdQ/CtBgdRuxOu0DCpIUDm25nIDnFe/sVCXWfA l4QH/vxiFOOKMXcNx75A1ywXSknum1TO7kgtr3dV6y8h0STYBeS7oFk5LQ8Yb3eom3Ua Q5w8rOLGqpw2pPjnj0KhbyVnIj12poIpzx3vzerF8XLzEK2XBQmV3nzbg46xr1G6D9Yv 9Fo/nCMl6XjVu7TPCxwlXZhYRXFO0/scM0EpBhC488XkHmPjXnKKKCaIFGtPK1pOTYBo gscA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bP+ep8RSmaLloCnSeY9ElD+f1vXmH95r/rt6s/Nc3V8=; b=a+2DQm4jbuTd4nv088YwwxL6bcQp+G5QWKbVhevRpkG/8DuNwcxWg/sB80NEq2opzK wqavTjRZ/s7psjI4hiWjRlU3Izx3bZQe8VrntYU+JUmV1ARwbBiqkmT+NdOzDNvLuqwK RSUbslQQC4E6hP5/0lMpVgO5XG5C9sl5NvelRTLLanuK0PRihDmXv/0PfjOO2gdAZCvS SBeHCB5aQpT0kN72ylZKP4YF7NuuoIV065rC8x2+G/fInX+zAlR65JBo4bTQBY141WEM Cq24bCMuCItmym7gY7KFVQeORdCXhaRVFaurJc2BYimoQPZWhBZZNW7pAlcpGHT+uN/u u9gQ== X-Gm-Message-State: ALyK8tJc7uWntA61HHvA9wip7qWvGPjiSyfM7EM6qIWleoLEp/bTiabYT4k7c43WrqzrgA== X-Received: by 10.98.98.193 with SMTP id w184mr53786pfb.162.1468385240262; Tue, 12 Jul 2016 21:47:20 -0700 (PDT) Received: from localhost.localdomain ([2404:c805:e00:4700:ae22:bff:fe29:e60c]) by smtp.gmail.com with ESMTPSA id 62sm4042283pfv.26.2016.07.12.21.47.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 21:47:19 -0700 (PDT) From: tom.ty89@gmail.com X-Google-Original-From: me To: tj@kernel.org, martin.petersen@oracle.com Cc: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, Tom Yan Subject: [RFC 1/3] ata: bump ATA_MAX_SECTORS_LBA48 to 65536 Date: Wed, 13 Jul 2016 12:47:06 +0800 Message-Id: <1c10437e3cd9be8556e77462b40ad53be542dfba.1468384890.git.tom.ty89@gmail.com> X-Mailer: git-send-email 2.9.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tom Yan 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 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,