Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753773AbcLHPfi (ORCPT ); Thu, 8 Dec 2016 10:35:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45330 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752499AbcLHPfh (ORCPT ); Thu, 8 Dec 2016 10:35:37 -0500 Subject: Re: [PATCH V4 03/11] megaraid_sas: EEDP Escape Mode Support for SAS3.5 Generic Megaraid Controllers To: Sasikumar Chandrasekaran , jejb@kernel.org, hch@infradead.org References: <1481065220-18431-1-git-send-email-sasikumar.pc@broadcom.com> <1481065220-18431-4-git-send-email-sasikumar.pc@broadcom.com> Cc: linux-scsi@vger.kernel.org, Sathya.Prakash@broadcom.com, linux-kernel@vger.kernel.org, christopher.owens@broadcom.com, kiran-kumar.kasturi@broadcom.com From: Tomas Henzl Message-ID: Date: Thu, 8 Dec 2016 16:35:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481065220-18431-4-git-send-email-sasikumar.pc@broadcom.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 08 Dec 2016 15:35:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 895 Lines: 17 On 7.12.2016 00:00, Sasikumar Chandrasekaran wrote: > An UNMAP command on a PI formatted device will leave the Logical Block Application > Tag and Logical Block Reference Tag as all F's (for those LBAs that are unmapped). > To avoid IO errors if those LBAs are subsequently read before they are written with > valid tag fields, the MPI SCSI IO requests need to set the EEDPFlags element EEDP > Escape Mode field, Bits [7:6] appropriately. A value of 2 should be set to disable > all PI checks if the Logical Block Application Tag is 0xFFFF for PI types 1 and 2. > A value of 3 should be set to disable all PI checks if the Logical Block Application > Tag is 0xFFFF and the Logical Block Reference Tag is 0xFFFFFFFF for PI type 3. > > This patch is depending on patch 2 > > Signed-off-by: Sasikumar Chandrasekaran Reviewed-by: Tomas Henzl Tomas