From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH 3/5] ata: Add TRIM infrastructure Date: Thu, 02 Apr 2009 19:55:39 +0400 Message-ID: <49D4DFFB.8070201@ru.mvista.com> References: <1238683047-13588-1-git-send-email-willy@linux.intel.com> <1238683047-13588-2-git-send-email-willy@linux.intel.com> <1238683047-13588-3-git-send-email-willy@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from h155.mvista.com ([63.81.120.155]:9468 "EHLO imap.sh.mvista.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751527AbZDBPzL (ORCPT ); Thu, 2 Apr 2009 11:55:11 -0400 In-Reply-To: <1238683047-13588-3-git-send-email-willy@linux.intel.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Matthew Wilcox Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, jgarzik@redhat.com, David Woodhouse Matthew Wilcox wrote: > This is common code shared between the IDE and libata implementations > Signed-off-by: David Woodhouse > Signed-off-by: Matthew Wilcox [...] > diff --git a/include/linux/ata.h b/include/linux/ata.h > index 6617c9f..cb79b7a 100644 > --- a/include/linux/ata.h > +++ b/include/linux/ata.h > @@ -29,6 +29,8 @@ > #ifndef __LINUX_ATA_H__ > #define __LINUX_ATA_H__ > > +#include > +#include > #include > #include > > @@ -91,6 +93,7 @@ enum { > ATA_ID_CFA_POWER = 160, > ATA_ID_CFA_KEY_MGMT = 162, > ATA_ID_CFA_MODES = 163, > + ATA_ID_DATA_SET_MGMT = 169, > ATA_ID_ROT_SPEED = 217, > ATA_ID_PIO4 = (1 << 1), > > @@ -248,6 +251,7 @@ enum { > ATA_CMD_SMART = 0xB0, > ATA_CMD_MEDIA_LOCK = 0xDE, > ATA_CMD_MEDIA_UNLOCK = 0xDF, > + ATA_CMD_DSM = 0x06, > /* marked obsolete in the ATA/ATAPI-7 spec */ > ATA_CMD_RESTORE = 0x10, > > @@ -321,6 +325,9 @@ enum { > ATA_SMART_READ_VALUES = 0xD0, > ATA_SMART_READ_THRESHOLDS = 0xD1, > > + /* feature values for Data Set Management */ > + ATA_DSM_TRIM = 0x01, > + > /* password used in LBA Mid / LBA High for executing SMART commands */ > ATA_SMART_LBAM_PASS = 0x4F, > ATA_SMART_LBAH_PASS = 0xC2, I wonder where to read about the word 169 and commnand 0x06... what's it all about? WBR, Sergei