Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10709501imu; Thu, 6 Dec 2018 05:38:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/V7J7IOCDK9d8uyfw9rkpneJa1Ci0eZYiKQIUyfRoWd6ZS8+K2EtaVoUd5Muh3cWtrEWTU+ X-Received: by 2002:a17:902:442:: with SMTP id 60mr12712024ple.73.1544103526628; Thu, 06 Dec 2018 05:38:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544103526; cv=none; d=google.com; s=arc-20160816; b=gl2ZB71Leb3HRhccyEX3C14VnUUFqivepK6HENDkRMMRuyeg9/MkMFoA3N9QtpmFF0 OPW7E91SPNKAvJX03DJTMJucm2eqSwG1qzF9XcYlh+Pqe3qbKaX3m4ZGtA+gu0bXnnLT 0ggMK7nYXXLxQ2MRRXIJWITrDUR6XjzXE5fPv8ORJ6k49a1TRydUrvHR3b0fFCU3m7Cl JLyPsslDNBJlo42+hZIuw7jLmIoQHpNJYrbM/iMrXwFF3LbshsVSxAkvoQebgjuDAaoJ etSylcxW5TfnvrJsNei/Vg8+ftDa/dPLSZRlehLBs7ZGEErs8R+QCAzgPjUkb4Ck7azD vzKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6HtqyjsrOBj76PpfC4sVWVppedw/fqrXHr0FIicNIlA=; b=Aa0oessWJ2t0z2XMzNohW7kXGN0gcVqPi8gccEonxaXxNJE2MrcrxfFBEEtxoz3fZP eMW9Y0zOUML0fsen2u8vuWfWF8t2CMZByh1BIY9hHKo+OozBmaCc8p9/JKtMfe6JUEyU IkTtKb07BmWZER9b5VoAWJFHMp3ah37hxUNDEi9rZBxD1qDYQF+VMZ8mcad0/ZvSwQDX CVCzm9ELJYhHL9GP18MY9m4fEiuImr8eGru+ILi1MsNlq6vracuyDvzP8/SUpRBMEd+h WBK7/ZFMf27d5R9/BNKBKq473fgP7sU+JsOZPAjPQSsSjXtlgp1zblPcNSCiqOPQ4jX8 7dsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si285480plc.364.2018.12.06.05.38.27; Thu, 06 Dec 2018 05:38:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729356AbeLFNdg (ORCPT + 99 others); Thu, 6 Dec 2018 08:33:36 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:15644 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728448AbeLFNdg (ORCPT ); Thu, 6 Dec 2018 08:33:36 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8BC9CEFD3DA31; Thu, 6 Dec 2018 21:33:28 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Thu, 6 Dec 2018 21:33:19 +0800 From: John Garry To: , CC: , , , John Garry Subject: [PATCH v4 0/5] hisi_sas: DIF support Date: Thu, 6 Dec 2018 21:34:39 +0800 Message-ID: <1544103284-100497-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset introduces support to the driver for DIF/DIX. We are making DIX support as RFC for now, based on issues discussed in the following: https://marc.info/?l=linux-scsi&m=154357719329297&w=4 and https://marc.info/?l=linux-scsi&m=154406987703456&w=2 We will only support PI in v3 hw at the moment, even though previous hw versions also support it. The series is broken down as follows: - Fix pre-existing sparse warnings - Tidy sg table size config - Some tidy-up to accept PI support - Add components for PI support for main and v3 driver Differences: v3->v4: - re-add DIX support as RFC - do not commit please! - also DIX support is labelled experimental in the driver v2->v3: - fix sparse warnings - drop DIX support v1->v2: - drop scsi_prot_op_normal() John Garry (1): scsi: hisi_sas: Fix warnings detected by sparse Xiang Chen (4): scsi: hisi_sas: Relocate some code to reduce complexity scsi: hisi_sas: Make sg_tablesize consistent value scsi: hisi_sas: Add support for DIF feature for v3 hw scsi: hisi_sas: Add support for DIX feature for v3 hw as experimental drivers/scsi/hisi_sas/hisi_sas.h | 21 ++- drivers/scsi/hisi_sas/hisi_sas_main.c | 246 ++++++++++++++++++++++++--------- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 17 +-- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 68 +++++---- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 243 +++++++++++++++++++++++++++++--- 5 files changed, 464 insertions(+), 131 deletions(-) -- 1.9.1