From patchwork Thu Dec 6 13:34:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 153031 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp10533035ljp; Thu, 6 Dec 2018 05:34:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/VJRrAbBZAw2goKfJ7a2uA5gZnm5jduS5m7Oxp/JEqEizaKklTnSqtpnAh4DsUiXHjdv8hW X-Received: by 2002:a63:960a:: with SMTP id c10mr23922916pge.106.1544103267931; Thu, 06 Dec 2018 05:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544103267; cv=none; d=google.com; s=arc-20160816; b=nkf6bMkV5F3Ok74c7k4POZV9gZumVK50wMa53uk6XyIfo4YmESOjpOI6o+Ktwmc3eL yVzRvnDqpQGn0r+u/w3tEpKff+jDH3CKhGWYS+P2qTF/W4YoJ3rAc1mX65/gdutEqy9O 05ETRZzunQaKMnrUIGhu2lK/B4wBqmG2LR6LCDsqOfCUNWRAofb2fr+QzxkcFDCakNlr HdTSWgX7V9+8p+1AY9ORlZIx6yKX70PsoERETXQ5Ea4MXnNeMjnq+D67xcEsqgjAs6RL UulzAuR/0hWgCR5nAtkFZlwMAyIGjTEIMnX58HpXlL7h+oM2fmMAPGedOArQRfMBUGr5 bCjg== 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 x187si313462pgx.241.2018.12.06.05.34.20; Thu, 06 Dec 2018 05:34:27 -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 S1729467AbeLFNdg (ORCPT + 31 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 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