From patchwork Fri Apr 22 11:23:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaitra P B X-Patchwork-Id: 8910441 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 76DC1BF29F for ; Fri, 22 Apr 2016 11:24:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9B24C201B9 for ; Fri, 22 Apr 2016 11:24:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B89E02021B for ; Fri, 22 Apr 2016 11:24:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753417AbcDVLYl (ORCPT ); Fri, 22 Apr 2016 07:24:41 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:35324 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753563AbcDVLXr (ORCPT ); Fri, 22 Apr 2016 07:23:47 -0400 Received: by mail-pf0-f169.google.com with SMTP id n1so40670549pfn.2 for ; Fri, 22 Apr 2016 04:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PloAEVSvEwzv1HSGu0/0gRXwNwol45TfGrGC8iCCOgs=; b=PnvhMCKJkWFtWMxpqAA7HWSjFQ9ZQZlENejA4DetvM67BozRXzTWAnCoNjLkaZme9a CoItwB8/yYXDRZQECtvV0DHRHL+3SSI8qz/KuNYdGYw2AbN+hZSRSG7W/eu0WgLkLKN+ K52v109aOfy7V6s4j7Rybg06ELdpmtPkIT2tI= 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:in-reply-to :references; bh=PloAEVSvEwzv1HSGu0/0gRXwNwol45TfGrGC8iCCOgs=; b=ZN/BmY1c1q422lLDNEL3iryFFLl8m8oGZ/jYWfclo3bA628ssdqDjz4f0UopbWijAG g2JT54k2L48cxKupomKBG3TPAINf5YAiyf1HRL7Anc0gOO1VLFXvE+eoP7eKmFx+jdRh JaSl5VebJMmfuTW1zc2S7Mhvfmse7J7r7vy6YkzaCR4qA8rbQHIFlxEdWtlmiyBZ4M6z SAIOa2I66taDKjvrSYeTXSetw9SDK1SYo6wNDqwwCzrnZS5eYUkbX8kYDDuOP6G+8b0S NFt7nJ1gztcMBd9keOyAa+UhfuHtiOJyZSE8HU4uM7DPsVnijoSbk54CUOldkvQh2Kbv Jdug== X-Gm-Message-State: AOPr4FUjYgK1TYfq8VOEMBfZmYHGvKQWeEVxZEmYKIHtvx6NQidtZveAOz+98KlIHVahRr5t X-Received: by 10.98.74.140 with SMTP id c12mr27451482pfj.106.1461324221803; Fri, 22 Apr 2016 04:23:41 -0700 (PDT) Received: from host1.dhcp.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id w20sm7780283pfi.31.2016.04.22.04.23.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Apr 2016 04:23:41 -0700 (PDT) From: Chaitra P B To: jejb@kernel.org, hch@infradead.org Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, JBottomley@Parallels.com, Sathya.Prakash@broadcom.com, suganath-prabu.subramani@broadcom.com, linux-kernel@vger.kernel.org, Chaitra P B Subject: [PATCH 3/5] mpt3sas: Fix initial Reference tag field for 4K PI drives. Date: Fri, 22 Apr 2016 16:53:12 +0530 Message-Id: <1461324194-5789-4-git-send-email-chaitra.basappa@broadcom.com> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1461324194-5789-1-git-send-email-chaitra.basappa@broadcom.com> References: <1461324194-5789-1-git-send-email-chaitra.basappa@broadcom.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 Modified driver code to use scsi_prot_ref_tag() API instead of scsi_get_lba(), while initializing reference tag field in the CDB. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index 221f8bf..0fea937 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -3961,7 +3961,7 @@ _scsih_setup_eedp(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, MPI2_SCSIIO_EEDPFLAGS_CHECK_REFTAG | MPI2_SCSIIO_EEDPFLAGS_CHECK_GUARD; mpi_request->CDB.EEDP32.PrimaryReferenceTag = - cpu_to_be32(scsi_get_lba(scmd)); + cpu_to_be32(scsi_prot_ref_tag(scmd)); break; case SCSI_PROT_DIF_TYPE3: