From patchwork Fri May 6 08:59:28 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: 9030461 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 846B9BF29F for ; Fri, 6 May 2016 09:01:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A62672035D for ; Fri, 6 May 2016 09:01:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DAD2520221 for ; Fri, 6 May 2016 09:01:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757974AbcEFJAJ (ORCPT ); Fri, 6 May 2016 05:00:09 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:35463 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695AbcEFJAE (ORCPT ); Fri, 6 May 2016 05:00:04 -0400 Received: by mail-pa0-f51.google.com with SMTP id iv1so45499954pac.2 for ; Fri, 06 May 2016 02:00:03 -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=C2qMdoB58fjhj4x7/+SUfHnzXWMvmKLXBwboAj7lT97mHUfwiAj0ArVXwxLR4zfPCl hLnyn4rzf7wGYVp3Ozs2JHQdwAfp55pBbIoTuThTw8pWDWRX6LkMiBplXsw8i6OixjT3 +XT6u5oBwj96fVYHtdEBueHsqe9Yyhjyz/OYs= 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=hLg9KF6O30DlTjmFwlNEcGWYqS9a0LLB+3fqxoJnGHpYB/SXxFFYB0JGZ42iPoIjLe eZ+NqpI7+EpxCgVOlAWx0zn4WLQom3wnzB/wceXcp7Ple/iKNocsYzQWHwv0ad9N7qkb AW5pPm6wGxciC6WkM3/cvN7dRmgxjPzM+wjQ3fofqGjj9T2Z9WAV7lvVEEZQlNzZ4WAz oA/fha0c92BzPY56v4w5GCt1M/1cBglrjX3sqv7T/5Y9oIPWxB83jddohh+6mjsxwYbq XRUwF+0Rxg4upivkw9dWg8sGj6ebVGHPl19WTsUV7YYCD8JYHFJdMgRHohyK/1JtGBz4 ojPg== X-Gm-Message-State: AOPr4FWiUaisivEA2gOGDxgTb2ep/4++qIRzYNEutCjBIQXUAdD72mYlqy9z6NLJQgM9KIXb X-Received: by 10.66.194.230 with SMTP id hz6mr27337993pac.132.1462525202968; Fri, 06 May 2016 02:00:02 -0700 (PDT) Received: from host1.dhcp.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id b64sm19272399pfa.48.2016.05.06.01.59.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 May 2016 02:00:02 -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/6] mpt3sas: Fix initial Reference tag field for 4K PI drives. Date: Fri, 6 May 2016 14:29:28 +0530 Message-Id: <1462525171-6877-4-git-send-email-chaitra.basappa@broadcom.com> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1462525171-6877-1-git-send-email-chaitra.basappa@broadcom.com> References: <1462525171-6877-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=-8.9 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 Reviewed-by: Tomas Henzl --- 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: