From patchwork Mon Dec 17 14:40:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 153999 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2542786ljp; Mon, 17 Dec 2018 06:39:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xe6A6z6OUrzyhx6AUQlA+xq6KEuBH8Kq/0iAl1fiZ3Zjno+1aQ0hA1IWgCwf7LwS2qI3Rz X-Received: by 2002:a63:e40c:: with SMTP id a12mr12464332pgi.28.1545057579673; Mon, 17 Dec 2018 06:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545057579; cv=none; d=google.com; s=arc-20160816; b=kVK6x8cX+9NCMtG9cBg9HV3tiJ2QpKl5UkAU73gll6yZT0scBeLTy3W6LfKOdpmnsN YKiWkel/5KUl+EF+0LX45WW8fI3nqfKSc4JyVIIw9lCpj6ttD9wJMxo/v3suo3knGEIG SQwyD6IXOHh/MUcAC95C+JpmyMTWwPb+92giyVfteULLTnOUcTzhDV+IrP1gv9E0GHvr PpGhwY9/YMexHoCUAYxK04eJyZ/vp59iJgJZEGMIo47Vzz7Qrjgi1XLcKAUrfi8BRfQ+ dGiDEXwL+3Ahuxwp/0YtgAUjoEIuXOTTYCMwDYbGhbU5g4DBe1EAanidTGMbnghIPLrP eQlQ== 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=uSZLQ79dJuU5Ui0oiVyifldoZCdIVf9SZODmcw8s6cc=; b=NDPcAGs1QTPjLqDEGxMS98exl3qIs1B+GyjvO81kDIhyd6uC0peJwKfC7SNLoTXAfy MsMQ++FslndLsmOmvzIScxDWENbqxrwrdRgqFMfnCRO5gKbm+54GjlJ/cqO1NJQHw8rA msieiILLeSNqLV6+pGks2LvTa/FntSW9fufthkKAnLb44dkSJEhIY5HT0VsvUkja4w4x wcMISTBfiRtkgzdHp6nq4+l6cZEe9xahVT404qQj4cRKcWZUeBiAJU/IZP1IgppP+QPu VG0fIPOATqh7zfVQwBgqTgSeDshdRtcBK/PCb4U+14SYgX+4RfjmR+VydTs7VSPSXhGJ 5+JA== 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 y3si11580989pfb.152.2018.12.17.06.39.39; Mon, 17 Dec 2018 06:39:39 -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 S1733088AbeLQOjd (ORCPT + 31 others); Mon, 17 Dec 2018 09:39:33 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:47514 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732255AbeLQOj3 (ORCPT ); Mon, 17 Dec 2018 09:39:29 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3AEBB19B17DB9; Mon, 17 Dec 2018 22:39:23 +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; Mon, 17 Dec 2018 22:39:16 +0800 From: John Garry To: , CC: , , , John Garry Subject: [PATCH v5 0/2] hisi_sas: DIF support Date: Mon, 17 Dec 2018 22:40:06 +0800 Message-ID: <1545057608-89965-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. Differences: v4->v5: - Drop already accepted patches - Fix comments according to Martin - use t10_pi_ref_tag() - stop using protection options in LLDD in favour of prot flags - allow user to set prot mask 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() Xiang Chen (2): scsi: hisi_sas: Add support for DIF feature for v2 hw scsi: hisi_sas: Add support for DIX feature for v3 hw as experimental drivers/scsi/hisi_sas/hisi_sas.h | 28 +++++ drivers/scsi/hisi_sas/hisi_sas_main.c | 97 ++++++++++++++-- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 197 ++++++++++++++++++++++++++++++++- 3 files changed, 305 insertions(+), 17 deletions(-) -- 1.9.1