From patchwork Thu May 4 22:50:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9712859 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 2E97E60387 for ; Thu, 4 May 2017 22:51:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 238FD286A8 for ; Thu, 4 May 2017 22:51:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1824D286A9; Thu, 4 May 2017 22:51:20 +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_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham 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 721BE28639 for ; Thu, 4 May 2017 22:51:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905AbdEDWvR (ORCPT ); Thu, 4 May 2017 18:51:17 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:32270 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbdEDWvN (ORCPT ); Thu, 4 May 2017 18:51:13 -0400 X-IronPort-AV: E=Sophos;i="5.38,289,1491235200"; d="scan'208";a="111976833" Received: from mail-dm3nam03lp0015.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.15]) by ob1.hgst.iphmx.com with ESMTP; 05 May 2017 06:57:15 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PIXU21GoeaX/M2lzS/4gcx4ClG+goZnbjfsczIPTG3Q=; b=Wm3QId+ZQFTA3k1bfYc5dqSRdHONM9wd9HEpZIg/NXqHQkQ1B0S4THqSSMpck3J7NQnWVzVPKfDRdCp6vlo6ezJTr2m7x+Pw+J1zxRbHslbf7KFJfLbGo7EGrHwEOyBJwu5+j7Cagj8ty6l7C/MITPWfKM1e137UuKwt8RH1XI0= Received: from BLUPR0401CA0037.namprd04.prod.outlook.com (10.162.114.175) by CY1PR0401MB1211.namprd04.prod.outlook.com (10.160.166.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12; Thu, 4 May 2017 22:51:10 +0000 Received: from BN3NAM04FT035.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::208) by BLUPR0401CA0037.outlook.office365.com (2a01:111:e400:525a::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Thu, 4 May 2017 22:51:09 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN3NAM04FT035.mail.protection.outlook.com (10.152.92.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Thu, 4 May 2017 22:51:08 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 98.D4.29323.B50BB095; Thu, 4 May 2017 15:51:07 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Thu, 4 May 2017 15:51:04 -0700 X-AuditID: 0ac94369-548749800000728b-f8-590bb05be605 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 34.F0.11415.850BB095; Thu, 4 May 2017 15:51:04 -0700 (PDT) From: Bart Van Assche To: Nicholas Bellinger CC: , Bart Van Assche , Hannes Reinecke , "Christoph Hellwig" , Andy Grover , David Disseldorp Subject: [PATCH 07/19] target: Add support for VERIFY(12) and WRITE AND VERIFY(12) Date: Thu, 4 May 2017 15:50:50 -0700 Message-ID: <20170504225102.8931-8-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170504225102.8931-1-bart.vanassche@sandisk.com> References: <20170504225102.8931-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOLMWRmVeSWpSXmKPExsXCddJ5kW70Bu5Ig+lrxS32z3rGZPH1/3QW iwVv9rJZrFx9lMmibfUZRovWpW+ZHNg87m8/wuSx+2YDm8f7fVfZPNZvucrisfl0tcfnTXIB bFFcNimpOZllqUX6dglcGY9XrGEumMldMbX7HEsD4wrOLkZODgkBE4mXSx+wdDFycQgJLGWS mD15GiNIQkhgK6PEiZncMEWnzk5ng4hvZpT4ODUcxGYTMJL49n4mC4gtIqAjMevuC3aQQcwC txkl1jxeDdYgLBAkcbh9EthQFgEVidfP3zF1MXJw8ArYSfyZbQ0xX17i7JadzCA2p4C9xN4Z 95kgdtlJrOnfzAhRs4xVYskcLhCbV0BQ4uTMJ2B7mQU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age: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(39450400003)(39410400002)(39840400002)(39860400002)(39400400002)(39850400002)(2980300002)(438002)(199003)(189002)(9170700003)(77096006)(356003)(48376002)(50986999)(50466002)(76176999)(47776003)(50226002)(5660300001)(8936002)(36756003)(86362001)(54906002)(53936002)(305945005)(38730400002)(478600001)(2906002)(5003940100001)(33646002)(4326008)(6916009)(1076002)(106466001)(110136004)(6666003)(2950100002)(8676002)(81166006)(189998001)(15650500001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0401MB1211; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT035; 1:UmkdEK5PooXMxXtj7nvwIZ4TtbFaTMBelEEjvuWDkUqXQvvbcp0BTjmpFTQ6OPG/XbbwqLFc4tfE9Qq//DIwKE0QG3evFyglGE6PqwgTM4Pz6GyxHioy1y8kB/YNHQ+eL4jA96ACr0UWSFFzWP82g796LF269F489dqP2en7T8OYBCSjI8lz0s+zARWQLsJt3LYevJOr5CekzhzbNZqZExoMG9sXgW2AujDO9oQFRzY0s87QDCt/SeKhoTjoLiJmYlG0NRN7mxHt33yp/M/rW/vSXuldZ4ytu3BU+F4fq6FKC0AAIpKcU4mGlpTvWRdi+RqQ6vTk9158l6gWOck8s9pqyGZuqQmmxZnw2bvQv+vx+Dg4KrNwVixfAK3Cmmd0PnHuuwJjvLOXSDZu7ad8SQ5fcQVk7n4Bd0i7STZ83drqJqdcPJrEfEqQYgdIa1zrqivzJGmB/7XH+ynQvtYdXfqKG7t81qs4ezwn2ag73nEhpWsE8jBfibOfxnl5MFR7cOjK2AGTEOyPeegKz/YpmpZR7EDhgx/3MYMptMZtlc0= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8bd05be6-f550-427b-1f2f-08d493400dee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR0401MB1211; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1211; 3:Hy3uPjPgU3LvtNyc4YRbaxUxbxtqM19Cwqrj05Q5zNK2mt6gL+M6peHZ3/eYHMWwi/yWZdKKWjFcdAaPxmZ6YldZggW3WdMfSIQyXczLVfi13mSfv5aqhHdKh+E/LgKpIVM6WuYP8Oe7amO+lmsh/WJ1rYR/7ed/STqcS1p3rT7x4paUpO8RC0gvoBNenb+S16PXJnNfGcQe4au1iKXkn28p3M6IDHYXxHVWeKhqTZsLNNHN4R626STLOaQQmrviFRpnIcR74DqRMg6RV79OU5WTeJs9+XjKgQ+dumIrlrzEDr3Cx2JMMl5PP8CXphbex2u8byODSiCXKhDQXUFbeKvCGewgp/X0TOXZqMEkE8gWSyURtin/RKzqVQqAnKj+w4rk8RjNLGEtnRvnjpic7iL4YP+PqHRbwXd3hyvoU8Ct68vRNSTiSs/TrEWj7fezhc31kEFlcnaY+292c4YUIVz0qhuuQDKyuiOg8O+O2c/8HnJVUx5/YBtgwJGYZew+ X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1211; 25:HVf30TI8kWsLRIWnTjH3wBd6PJVUZ6l2z/49l9NHDbVkqZYv7o7akZc8z4CS7i5/t3ywPpkNlkgMIUNFTkeTp295WhaXHeVA8yb3dAbFPlVrsjd2+dqKwAUlO0kb4I06FvsLgEgdz0D5iE6Ghh0HqjtOQyfy1GFdAv/K2AVHF0Y8BKSft9l7IhmXd7467xM/5v4BU/1okfp2gIyYS2uBKJqiIZGUIneh7I30xHrtewZvKZASASAsY15ois5NoPTkOtJZOo4ciCWG+SaxPJrtjknB/wRQRIg3RoKlcgXSDt1gjKjMmaW3Tm14TMaLPy0uka5e8rwW7kid/bebsMPe8tVa0M9hUf2T3btRZ6DRBsYzUX/LM+oFgv29b4MR9EWAxGrEF/w6S4QCZqunOQrTZpG8JLQ2TKxIgekEBZh9O0SWCoVJ0uAMZ/aY8p4dVqiZFrPOuSU8Ew5uglyehScJ2A==; 31:P2KJEBtQo7/bFiuBaIe134kKYt9L+VtVH67yovDMJ2/M5KnuhwG7P8G7kIM9KOszRi2g0BiKuub9WF4baggKFKchi0UVVVO+FSaIzKV/tWl3fnqRYhXA5Azse+7b2Tuqm59Rj6E1FmYdoPGcSsAZpO9Dw3K182GxwhUPLKOuVR3fFCeERelHO8IdlkTAXrN7V7u3gcyBAVmIBhnQBt/hv/9CKzTWMotiRwtzw37OG0ocvSdsge82bhEtoVJ01Yi4XXs0qiWWHDLxeV1i4/qBotqY35b4xZP+X6pacYuHAxs= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1211; 20:TBKGrC0/qM5pZZTo5h+zMOqVxfHbF/X/Pg5uahzBymsNYevXJf9a7YhvzhMYXDuDKfGUGElqO3Zn+EXAKdgncbwYjFT3UVp5GK4IwsxBbcbxgoni2YzSyNcpY9N6dBzoenYke1u6Vqvy+sL+NGFYLtYo6gLO5w8zVozqlmxjGDQj9CNAoCkgsBCQ64j7J6hRR2yGa7KKzM/nSLxVLXA3ZHiPtuIAHlb2RCZGVi/kdvIfA4YyRRHZNExKlv2YgFHk0dNTFej8bWqiafrw46iffffAykeHFbvPtiH3c9iFaidyvrgpZ8fNSNoc0XkLKobLVMztSbz30Swxieh52jRGnHDSz0aupMdReJ+1fga5LCvBQCVSLZfAlSWjyIInHZAQ3lSV6zO/6oTnAWFLQ+YAiE+ff27GHcRwIG18IFjp2ICKyZpkXSThORK8X6v6zdOHszcEdVSkRRvkbKu0RbPMXlfQt2SmwAXsAisoyTxIlw4HPMT1W6kDaYNaY5LicbG3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(13016025)(13018025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123558100)(20161123562025)(20161123555025)(6072148); SRVR:CY1PR0401MB1211; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0401MB1211; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1211; 4:0m9RU3xKEM+nc/mlhs8KYm6862NV1wx4f0iCJNx+ZqJToflWCsfpj/QOTVQ7BfsHoRvxVolNA5Y7hZ8LP80grjQ2wJh/8FHjLXvnI/Mf5gzHU9lmrbwFEN5PdUYBnOZue2L36aLNJnpX1B8IvNq259YaUTG28xzbnNytVa9LRCirQbU/5U3SG34cnZKYTmAymtG8SMM2Sy2ySu9PvC2vyDoSMLGth4kRIj+u2p7JvQzufocZXC8DIKTawj37F+SRjD0nG35bIgTTb76Je36DshkVFBLVzzjNWyaoCGqyB6msp+DIJILIOfq/1t4kbfBIMnqc0gAE4pMHMKmaoxMhdggo+6782w1q2x5kBluzkaWHkbPTBBXC4BoNqQaBzwo9DnhkBeGVPVbqcQQym4ry88daQGKhJpeGGXY0qdDLAiLrmLq5KhuxhydVBPpdxLbm/c18Bio1w9uW+IiO0jNf0W9oXVy1eRwYBmRFpXU1j2k/D/3yTa8DoOQUNe+aBAplVTKX5lyPxZFcOcynMPNm51GbnEfeXnaFXK6fKD3MplD5lsvLLx+p2VzaBOWpvTUPyEwwpw924vCaVWvgJWOG4gtt8iv6pbgANIPbTqb/nCHrEtbEoMQUyK0/+Lq8OSTbIDRa9CV8mvfIYJ5szzm5nH8dsZjbqP3I4rUE4wziuFKIgOBKt/8ssLITuXRK3IOEeOZofQOZv7vooc0eKgaPhC3cnqiov8EV28vLYbFnlukMSTVc9kIhXPSv+dzqu5afLvWIGwUrHT944x7vFEfA+L8gkvbJBc+z7PbjnnQ2EbBaMVjZwfFgvfUsO9hF4SFo1v2vt2uIgbVHAiv6rc+WeAupSjZvZAQXrMiM++bv590LustwIHq+A7gOqjOmK7Uo X-Forefront-PRVS: 02973C87BC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB1211; 23:Mni6tSXctxHAePDpyw9d8ar3cpzpxMJ+5KenDgg?= =?us-ascii?Q?zimN3FXMFND7+4iCTC8yDrbLkIvTqlPXj2njB7mRq8Ecu2ZTvHILL/0YPhXo?= =?us-ascii?Q?aPKSLiYd4kQIIYv9/1RFPEtj8grE+ckqvxorViD8S8p14Rklrwq68o6kDBPs?= =?us-ascii?Q?M3HsAXoPUzfB3atJBnpWd3x3wdnX77ZhoBHmB6456Q5SKyF3oX2t/EpO8cha?= =?us-ascii?Q?u7vcM8AoE4QoEzhO05N64O1OKO6qOUrckddcQGQnYCJ+lOWK3HYIcWM2R9RG?= =?us-ascii?Q?Ivv0bq1XEja53hbftlU4q4gtFey5+1YkT1jkpt7FiD1yt5dyN1DKfY5yqXtx?= =?us-ascii?Q?7Me5eUFKrAacAQevG3PDBddE1zH/Mg3BudkXuS2g3otXeBAsd3+DNO8P7Mfi?= =?us-ascii?Q?C+Unc4m3NH2vrZm50Svhfw1PnEwyTjMK7YZt8Rv/Nn8SQrHVnd4kQYBinsIh?= =?us-ascii?Q?d4QPeRbdL2ATjiTF/u2KdzP+a+XmfEOPr5N3uGVqKBdjlEZ8v7ZtWfvcQZrD?= =?us-ascii?Q?E4mnrCkLnxPNYQeB0+04jwzNRTXXYzk4nhgJjctKqSnn8I/bhPEdlZXuIvNP?= =?us-ascii?Q?AnK2LQYAaBwFTQ1yL6jPbDtqIAhn944h8QEHFX/7YOhfOIdm5sd9LvKpFqV5?= =?us-ascii?Q?bHjvsAqav/fGa9dGsMJoiCRPMmTXThWii0AWS5HUoAK4UVlClOdK/YYe4Fko?= =?us-ascii?Q?vFAFh70Hs+/bcwvTk+qBXfu1fpb8VpTh/Pu9l8H987XuIUcUozEvNuOuYN2y?= =?us-ascii?Q?E7idGVZy4l09xZhA75/FQAI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LH/Mg4ls3BIQ+y34Y0aP+5OxVs0T0SbcCOWlhycnkFQAXReB80CV0vKpj7At3mUlMg==; 24:+eJglHecQJOQ13szywWe363TWIT340HuuuTXcqQla9Yqx5NH/D2UQj9v33MwAwLf0C3MOIRprCotUIpEvICw4Lbb6Iji6O4Y7sRoojcNCOA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1211; 7:UcYS/8X1w0HNiYI7h7AZ9R3GtgI4EplcYaYv4fkZKrZT7dyVjbEdbaTcG4/4CyIFPC/Yl/FdW2+BBULt4EO101poqHaIGfePhJmBvQlvgXONZDQh5iYB03j2Utt03Y9MG/sEmovZqnEF60UivWwKO0FyPO2rluyv2SRG4j3jZPxOVAaSJLis0MtlS/ys5CGIroChqUIavtt6W1muJPTjvvz2mjmjHmMmGD4H7nFdoU6ecKBfUZ5PFh1hD53fTvWGOd8Sq4i57QCzHH/OvmhWk9p6EDew6xSBf1hFl1rsMLlTSEvExPljNwDxmvVKJUrjXvu+Q8bMp+zF9Xxts5hXiQ==; 20:E9/QTRCUrxp2eYi7XeCqMqH2X+IyMaAuAGQCvhJTLw1iV4IRGV5mwqD6BfO9mUUh5TwJiwfU9477Pkler0YHdtVrcvQtNbzXI++hjaThON8Re49OfWzqTivMklykT2KrvzFvTP7cZ6yfrM3C8klRpN12eIBtG+vF+lrjFz0MYkY= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2017 22:51:08.1200 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1211 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche Cc: Hannes Reinecke Cc: Christoph Hellwig Cc: Andy Grover Cc: David Disseldorp Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/target/target_core_sbc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c index 51489d96cb31..6517ea2c3859 100644 --- a/drivers/target/target_core_sbc.c +++ b/drivers/target/target_core_sbc.c @@ -852,6 +852,11 @@ static sense_reason_t sbc_parse_verify(struct se_cmd *cmd, int *sectors, *sectors = transport_get_sectors_10(cdb); cmd->t_task_lba = transport_lba_32(cdb); break; + case VERIFY_12: + case WRITE_VERIFY_12: + *sectors = transport_get_sectors_12(cdb); + cmd->t_task_lba = transport_lba_32(cdb); + break; case VERIFY_16: case WRITE_VERIFY_16: *sectors = transport_get_sectors_16(cdb); @@ -967,6 +972,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) cmd->execute_cmd = sbc_execute_rw; break; case WRITE_VERIFY: + case WRITE_VERIFY_12: case WRITE_VERIFY_16: ret = sbc_parse_verify(cmd, §ors, &size); if (ret) @@ -1169,6 +1175,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) return ret; break; case VERIFY: + case VERIFY_12: case VERIFY_16: ret = sbc_parse_verify(cmd, §ors, &size); if (ret)