From patchwork Mon Dec 3 12:09:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 152691 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6730684ljp; Mon, 3 Dec 2018 04:08:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/XAbPpIt0PvlT5x4AK1Qy8cCK/3chkn65P3/yIQz9+41xIqEI4swPigPm/y2P6t1jpe+OIB X-Received: by 2002:a62:1e45:: with SMTP id e66mr15474874pfe.152.1543838915165; Mon, 03 Dec 2018 04:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543838915; cv=none; d=google.com; s=arc-20160816; b=hSRaFoapdKc506d2+w+TGAocXcfNJzAGH1U9FLOgSBnMObgcQebmJ8/w1c26hRsAs6 k5uWs+zg9zAa+By+gXp9AtmTEtcFLRd6sx3ezxxHq5LQXBj3wDjyLx5nreJtxEZ5Hn5z CzRRrZXd2ZtFn907J3r2xg52W+ZoIS0wEhOoN0EkuGaeXozPr7ybrSEqdozlKCc41Hi3 VQSapyfDGiKYvtWxZxcFeUx7z/lZxuhadF4AsFJ1ZmjHpNWeYqGUdCHV+V3IWfbNqJ8B olaiP2yaXIEDKNguI/ZJ5Yj9r+Ly5btxQdRA7qjspjpjwROPuoENAXdn73TvvYzte+HA cgXw== 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=0zFtjjG+TJTlk1fdgBAMmSmOHC7ccMxkUPqLIfJ9mbA=; b=KIOVaUBJckpr+e833Q4Br4yFsq+B3+P3ZX5MMf48gi5KbugI87VFSdFa0hQA0x0h33 03Pk1eeSTjNUFUHe8LjvJ+OfZPfOXTQDBSVhnuy/o0K18WxTUsurniWdn6SpkXfoXmTl gRnCYSxP3YDWkiO51ektI/cSi+M82WKSvsE+Z8rbwQJg+rzKQdZ1xvbANrJu4T18x2ea FUs39SgmNT/Ev75ynw2V47DCfHaY6OfZlnv6UoOwjD/MzDSrSJuggTGIa3h5EwNn16eW 1Z1Uy1mWW+IuN5RGtke7OqmCZgXPgLT+jKpFe5kWIVgTcuIONyM3vLICerq1mnxsV/m0 QCMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-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 n4si11537869pgv.512.2018.12.03.04.08.34; Mon, 03 Dec 2018 04:08:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbeLCMJV (ORCPT + 1 other); Mon, 3 Dec 2018 07:09:21 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:16072 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726163AbeLCMJU (ORCPT ); Mon, 3 Dec 2018 07:09:20 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0666152B7FBAD; Mon, 3 Dec 2018 20:08:30 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Mon, 3 Dec 2018 20:08:22 +0800 From: John Garry To: , CC: , , , John Garry Subject: [PATCH v3 0/3] hisi_sas: DIF support Date: Mon, 3 Dec 2018 20:09:50 +0800 Message-ID: <1543838994-30028-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-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This patchset introduces support to the driver for DIF (or PI -protection information). We are dropping DIX support for now, based on issues discussed in the following: https://marc.info/?l=linux-scsi&m=154357719329297&w=4 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 Difference v1->v2: - drop scsi_prot_op_normal() v2->v3: - fix sparse warnings - drop DIX support John Garry (1): scsi: hisi_sas: Fix warnings detected by sparse Xiang Chen (3): 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 drivers/scsi/hisi_sas/hisi_sas.h | 20 ++- drivers/scsi/hisi_sas/hisi_sas_main.c | 248 +++++++++++++++++++++++---------- 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 | 227 +++++++++++++++++++++++++++--- 5 files changed, 448 insertions(+), 132 deletions(-) -- 1.9.1