From patchwork Tue Nov 20 14:59:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 151592 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp700932ljp; Tue, 20 Nov 2018 06:58:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/XHSg83xv62qZpdjrIeqxi7RCerww+TkDPoOrw7SILBwxUjsJ3QmPhqXgO2cVe75ngwZgBD X-Received: by 2002:a63:334a:: with SMTP id z71mr2207921pgz.400.1542725907949; Tue, 20 Nov 2018 06:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542725907; cv=none; d=google.com; s=arc-20160816; b=Z6pcd3vuwBsZg6a3A1+2TKLa3Y/DQp75+ERJPaVZb/NOMryGhTcRLI26Ar0CoGhy5Z IYZe6JodZXfMONjl9WlJyz3iVOBl4HJgmcw3gm/nmStNNAM7gAKbLdjFXdtOTnIifYjs +uBYoeVzIPpTbPW05kfsQ4rnpMkGqxaNxI7NmpwTXkuiZ2dAc/hYsUXWCg+qA3bI8yQl M9g8BD1Lspri16e77qHMVuHQ39OMJEZJTiajVUZJYwWUIbO75OztBwAXzAUgQVBfQiQR X2QxyeUDyY1hur3cmk9T2hDXhgQoC8ll6C1IHeMqFuXh3Baw7uwvBFebBnGCq71ynRVZ asxg== 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=qMrHjIXQRXtPHqoIIIqR+7KxAT5VhBXpC96XRWdBXLc=; b=zvGtPBDlSn+vhZQELSxNxzuJpGQ2CKaZzso2UNyn7miJYeiX+0ChN67yJaoK6XvSha 86FPr5Y/hAXEO83LPLs5U43iK3zHP7zcI4oIZ7W1Sl10vUbEXzHK/iO8WI8M07FF+Dmg IlheF0Y+5mHRO+eKhCpdsupN//CtRoIv7ra8tytBVWEd/ZthJQvUX4WEP+HtfwAm2Osu gMRb9mhjcx4XQmI7cesAP5+R0frJ7BbtMBqES9EBLKOZFEaQJMGTZ4H8aUqaF4+T65Fk Y3D1uMjQcDH4TGGgfsiuPHltGwJmaM4YgBmDXrRHBh4kkBV0JvMXfymcKdxiTkMRlu3H 00OA== 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 x124-v6si47490841pfb.154.2018.11.20.06.58.27; Tue, 20 Nov 2018 06:58:27 -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 S1726441AbeKUB17 (ORCPT + 1 other); Tue, 20 Nov 2018 20:27:59 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:15564 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725986AbeKUB16 (ORCPT ); Tue, 20 Nov 2018 20:27:58 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4C72C7731268B; Tue, 20 Nov 2018 22:58:21 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.408.0; Tue, 20 Nov 2018 22:58:11 +0800 From: John Garry To: , CC: , , , John Garry Subject: [PATCH 0/4] hisi_sas: DIF/DIX support Date: Tue, 20 Nov 2018 22:59:00 +0800 Message-ID: <1542725944-244183-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/DIX (or PI - protection information). We will only support PI in v3 hw at the moment, even though previous hw versions also support. The series is broken down as follows: - Add a generic helper for checking Scsi command normal operation - Some tidy-up to accept PI support - Add components for PI support for main and v3 driver John Garry (1): scsi: Add 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 +++++++++++++++++++++++++- include/scsi/scsi_cmnd.h | 5 + 6 files changed, 385 insertions(+), 76 deletions(-) -- 1.9.1