Message ID | BL2PR04MB19693FF61F004AA64A6541BC9F490@BL2PR04MB1969.namprd04.prod.outlook.com |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show
Return-Path: <linux-ide-owner@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3r8bKZ4bKsz9vL8 for <incoming@patchwork.ozlabs.org>; Wed, 18 May 2016 10:53:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b=le0MHzGN; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755300AbcERAxW (ORCPT <rfc822;incoming@patchwork.ozlabs.org>); Tue, 17 May 2016 20:53:22 -0400 Received: from sjc00mx1.hgst.com ([199.255.44.36]:43885 "EHLO sjc00mx1.hgst.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751513AbcERAxV convert rfc822-to-8bit (ORCPT <rfc822; linux-ide@vger.kernel.org>); Tue, 17 May 2016 20:53:21 -0400 X-IronPort-AV: E=Sophos;i="5.26,326,1459839600"; d="scan'208";a="195860036" Received: from mail-bn1blp0181.outbound.protection.outlook.com (HELO na01-bn1-obe.outbound.protection.outlook.com) ([207.46.163.181]) by sjc00mx1.hgst.com with ESMTP/TLS/AES256-SHA; 17 May 2016 17:53:20 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-hgst-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=kugcG5/pm98ek9F5x2AU8nsk0SEW7qeIPRUpYVjgD6s=; b=le0MHzGNMSPAYPEBAgXNkHjTt0tUH5Iug67bBzkuXyTVlz9wZ/QZdZ3lidZ7iQc9yjmaGDtnRDKVv3R3gJ1CApQP/nvdSKFaoh2UGbF2PZQu0xKVzgH6eHmaVBZtfuHGKUh81hVs1cC/WHLAjLyKZxNDToA1JhhUUwr5UoxTuTw= Received: from BL2PR04MB1969.namprd04.prod.outlook.com (10.167.97.141) by BL2PR04MB1972.namprd04.prod.outlook.com (10.167.97.144) with Microsoft SMTP Server (TLS) id 15.1.497.12; Wed, 18 May 2016 00:53:18 +0000 Received: from BL2PR04MB1969.namprd04.prod.outlook.com ([10.167.97.141]) by BL2PR04MB1969.namprd04.prod.outlook.com ([10.167.97.141]) with mapi id 15.01.0497.019; Wed, 18 May 2016 00:53:18 +0000 From: Damien Le Moal <Damien.LeMoal@hgst.com> To: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>, Hannes Reinecke <hare@suse.com> Subject: [PATCH 1/3] libata-scsi: Fix translation of REPORT ZONES command Thread-Topic: [PATCH 1/3] libata-scsi: Fix translation of REPORT ZONES command Thread-Index: AQHRsJ+qvG8j584MakSV7dN2nI4bjg== Date: Wed, 18 May 2016 00:53:18 +0000 Message-ID: <BL2PR04MB19693FF61F004AA64A6541BC9F490@BL2PR04MB1969.namprd04.prod.outlook.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=hgst.com; x-originating-ip: [199.255.47.8] x-ms-office365-filtering-correlation-id: bea32a40-b298-43c6-d959-08d37eb6cd71 x-microsoft-exchange-diagnostics: 1; BL2PR04MB1972; 5:XdEcMM37BFlbjXJ6gGHV+eHd70/Gha7ufM55j9FGH6TuwDHIecyPGH+RGX8mMOZf9tRwCX+sheLqb5ulg81+VZdb5sNL4xVNrp++YV8OE4vUseXWNFCSPNXelJ6wpVoJzricK+IkrweDpjOu1gtsOw==; 24:+q5lZsDeQgGLYffNWe6pTxIFGry3Fhcw2MFLI6eaEX9Xm0ILCZNeO8XmrX5806N3wwDPebOf44m6gvW4ltUqwFN4ueHo5qUk8Ryef4jknsk=; 7:bLTCkaI2AfDxdzMluChNebexuY75PJxvY7/nlHFXphMnS6myexGAOpoe9uujXI9hgVBYIyk+QjLKJ0fpTTKAnf7YuuHbQUbthKymFy6PK20KdzYk17MfcRmcHk3T8bofH3vXLeM4Jo4mwlanoqygJwnJuWglnoKdfIuGWQnsK8GAbyONB3AtvvGja3i4bS4K; 20:mMuxOpg/4dD9uUuh5K9H9NYgWHSux+jW9mmoUPeu1qFwVFFPDRyzwlK3/zTU+BFC3e4vwNH/G6zF4JccjZWTbn/OqM+PJRwtq44dXDVxo/r9aHm5NIoE5xZNEZS/aXQ+QyKeA6kcI9wIcmr28Y++gA456Sm30B06s0Sbx8lbVaCgJR2w8Z8MqLmWDvzKd+qeciKCLgEkANd6bRtEmpvhYVtvxTWClaPphzGx1Y63PnXtUVp48ZfzbUzjll+8JV/5 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR04MB1972; x-microsoft-antispam-prvs: <BL2PR04MB1972EE1C83A7D174260E92519F490@BL2PR04MB1972.namprd04.prod.outlook.com> x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BL2PR04MB1972; BCL:0; PCL:0; RULEID:; SRVR:BL2PR04MB1972; x-forefront-prvs: 0946DC87A1 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(377424004)(87936001)(229853001)(5008740100001)(10400500002)(11100500001)(86362001)(106116001)(5004730100002)(2900100001)(122556002)(8936002)(81166006)(77096005)(19580405001)(99286002)(19580395003)(2501003)(8676002)(66066001)(50986999)(1220700001)(54356999)(5001770100001)(9686002)(107886002)(2906002)(5002640100001)(5003600100002)(586003)(3846002)(15974865002)(33656002)(76576001)(74316001)(102836003)(92566002)(6116002)(189998001)(217873001)(18886075002); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR04MB1972; H:BL2PR04MB1969.namprd04.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: hgst.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 May 2016 00:53:18.3591 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR04MB1972 Content-Transfer-Encoding: 8BIT Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: <linux-ide.vger.kernel.org> X-Mailing-List: linux-ide@vger.kernel.org |
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index b86af14..8b375c7 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -3454,7 +3454,7 @@ static unsigned int ata_scsi_zbc_in_xlat(struct ata_queued_cmd *qc) goto invalid_param_len; } sect = n_block / 512; - options = cdb[14]; + options = cdb[14] & 0xbf; if (ata_ncq_enabled(qc->dev) &&
Set reporting options when translating REPORT ZONES commmand to ATA NCQ. Signed-off-by: Damien Le Moal <damien.lemoal@hgst.com> --- drivers/ata/libata-scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ata_fpdma_zac_mgmt_in_supported(qc->dev)) { @@ -3464,7 +3464,7 @@ static unsigned int ata_scsi_zbc_in_xlat(struct ata_queued_cmd *qc) tf->nsect = qc->tag << 3; tf->feature = sect & 0xff; tf->hob_feature = (sect >> 8) & 0xff; - tf->auxiliary = ATA_SUBCMD_ZAC_MGMT_IN_REPORT_ZONES; + tf->auxiliary = ATA_SUBCMD_ZAC_MGMT_IN_REPORT_ZONES | (options << 8); } else { tf->command = ATA_CMD_ZAC_MGMT_IN; tf->feature = ATA_SUBCMD_ZAC_MGMT_IN_REPORT_ZONES;