From patchwork Tue Apr 5 19:29:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shaun Tancheff X-Patchwork-Id: 8754621 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 511FFC0553 for ; Tue, 5 Apr 2016 19:30:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B93320389 for ; Tue, 5 Apr 2016 19:30:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F6E120383 for ; Tue, 5 Apr 2016 19:30:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759735AbcDETax (ORCPT ); Tue, 5 Apr 2016 15:30:53 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33187 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752680AbcDETaw (ORCPT ); Tue, 5 Apr 2016 15:30:52 -0400 Received: by mail-pf0-f177.google.com with SMTP id 184so16851520pff.0; Tue, 05 Apr 2016 12:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=T46DDRHmpiWlyjtbR1aYVAp6jJgF4L3pUkFmjjDJ0NM=; b=TrpYlDG1/9pFYAfBXALX940CqS9I2hhajlIYQsGmI6EEDdb0IYlUJOmcdcCJWWwCMS z2axfMLxGKCdRx1EwzgwomlBrPAIUY3ZvMYyXcSvWmv/OlkOoI+phq5VN2v8WQxQGbAl 5i9/VuhnpgZZ670ByjTjlNr33exstdFA+wMhnURyfVNzbfZbXxHjQoDmjRh5IrMg+6jb H+mPB2DmMs925BC+kmNSk0uMwWndgudzZBfVC30f7bSidJQEAkycfHzvzAulWTNLpDcZ Ubb0B1I3JXrtJoEUikK8PDpnt1BvUZrNWSmqjJWcNU35b0u/CI6OjyARmM1jRSmw13fI UcJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=T46DDRHmpiWlyjtbR1aYVAp6jJgF4L3pUkFmjjDJ0NM=; b=id4GK7urn3vsasYq36RRzWIYis3XAx4FarUCFdcbF5s76J5i+YgcWgzdncNaekiA6u I4y5UzDeztkSRO6hTySbkt0tD45wN+tCE7rX7PNVn/7fqqP7NEVZ9jAofLMshogkHcbz b86HREAmIH9u5sr4/J5S+RAynWTH66FRU6/eyYOK0KyRDmauG9DMQGgmuM7o7XY343Co hsUbulGjsCL2BWRyxfXmWh0rDO3hGWe0ejfkuevGPi8WxBuPGgvM6Gh+MoS1A7rXxff0 gQ5N832vaHNE5PqQ/B/axV8618q1p61qF0U5eJbgkw80VYV3Kj2jhantINBiMAxQs9uP 8Kug== X-Gm-Message-State: AD7BkJL4pa7W9DrLOfljoPeF3YS/6jCZJeDb2+bNesNO+z30WiFOZogWq2xoxr1bS0Xijg== X-Received: by 10.98.14.2 with SMTP id w2mr32181027pfi.35.1459884651042; Tue, 05 Apr 2016 12:30:51 -0700 (PDT) Received: from localhost.localdomain ([103.47.135.1]) by smtp.gmail.com with ESMTPSA id r68sm48679938pfb.51.2016.04.05.12.30.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Apr 2016 12:30:50 -0700 (PDT) From: Shaun Tancheff To: linux-ide@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Jens Axboe , Hannes Reinecke , Mike Christie , Shaun Tancheff , Shaun Tancheff Subject: [PATCH v2 1/3] Add ZBC <-> ZAC xlat support for report, open, close, reset, finish Date: Wed, 6 Apr 2016 02:29:26 +0700 Message-Id: <1459884568-12091-2-git-send-email-shaun@tancheff.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459884568-12091-1-git-send-email-shaun@tancheff.com> References: <1459884568-12091-1-git-send-email-shaun@tancheff.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add SCSI <-> ATA translation layer for ZBC commands: - Open, Close, and Finish zones Signed-off-by: Shaun Tancheff --- drivers/ata/libata-scsi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index f06f389..ad6a8a2 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -3504,7 +3504,10 @@ static unsigned int ata_scsi_zbc_out_xlat(struct ata_queued_cmd *qc) /* Compatibility with ZBC r01 */ if (!sa) sa = ZO_RESET_WRITE_POINTER; - if (sa != ZO_RESET_WRITE_POINTER) { + if (!(sa == ZO_CLOSE_ZONE || + sa == ZO_FINISH_ZONE || + sa == ZO_OPEN_ZONE || + sa == ZO_RESET_WRITE_POINTER)) { fp = 1; goto invalid_fld; }