From patchwork Wed Nov 21 14:24:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 151695 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1992031ljp; Wed, 21 Nov 2018 06:23:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/XoJbIn8wbqOxMHuQzNJIizBLHRd1kjHUg8yzrPm1e79/p+eo0fB7clFt+LkOkNCKgqwRmW X-Received: by 2002:a65:4049:: with SMTP id h9mr6115261pgp.304.1542810226479; Wed, 21 Nov 2018 06:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542810226; cv=none; d=google.com; s=arc-20160816; b=L6G99Q/aS7TIvMI9WFELamCSvr8Sq/+70aobdkkmo7VhnrO7IM+aIBrWrqv8fVTyFJ 8EdYuuffB5SBO93V+SI2TX/upgHKao6+PHWKDCGfBtb0Qfqy4MLdUjmyUn0Ss59fVbvE 2xoBmcEQcPMUh+zZF3rG7vZtut/wBXcCD5qhtyaUy/m+dwn4Ut7aUq5akEQm+ToTAkjA H4lI7wCFyChsOBo9QtZUidDujQuajpv54tySGNl5BmnoqXy2wx/4LEovHvlJHZmPqY2j ueG2N+p7SQy7xnJ+gOpNpGmjXCp45cAtqGEbwcmIDKoGv4sCQSro2dTP2Ea1XWrREjYW zcDQ== 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=6rg/7n6w6JtHcPZoN4WKXk2UQNdPlmXdiD4PxeFGyOg=; b=IaswLWB7PKmnGBLoQRGf8HkT2JwjFYYdt/xG1gNBiHU4EP3p3zdUL4ve6+SuvWcLrV fqRd0QtXxQTuJUxW3VmYkzOZzUrmtP/GBgwxaxcNVr9yNvY5WYmNfoeq5ceg7Ukc9KR5 r+VGmi5DRzVhmPFVCpqqmtb0nNcOVTfWH13bZptR9G5Zl8IGXxiwE85bhV+eVaiJlB50 9z53sNeuyuU6bDAVFgvILSyWgpAs76RGo4XOPvmPW9gGFkj8tDbkQ+LmCeHtSUltYEJY NcEe4eXxvAH5eX5PBEtNiBGuCZG56PZqMczMJ5qenxyZRycjuojiI4aCa+/RTrV9wiKL 0N2w== 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 x74si28118823pfe.23.2018.11.21.06.23.26; Wed, 21 Nov 2018 06:23: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 S1729474AbeKVA6A (ORCPT + 32 others); Wed, 21 Nov 2018 19:58:00 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:15571 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728351AbeKVA6A (ORCPT ); Wed, 21 Nov 2018 19:58:00 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7556484350E38; Wed, 21 Nov 2018 22:23:17 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Wed, 21 Nov 2018 22:23:11 +0800 From: John Garry To: , CC: , , , , , John Garry Subject: [PATCH v2 0/3] hisi_sas: DIF/DIX support Date: Wed, 21 Nov 2018 22:24:30 +0800 Message-ID: <1542810273-134731-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 (or PI - protection information). 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: - 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() 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/DIX feature for v3 hw drivers/scsi/hisi_sas/hisi_sas.h | 18 +++ drivers/scsi/hisi_sas/hisi_sas_main.c | 242 ++++++++++++++++++++++++--------- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 2 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 2 +- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 192 +++++++++++++++++++++++++- 5 files changed, 380 insertions(+), 76 deletions(-) -- 1.9.1