lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 02 Apr 2009 19:55:39 +0400
From:	Sergei Shtylyov <sshtylyov@...mvista.com>
To:	Matthew Wilcox <willy@...ux.intel.com>
Cc:	linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org,
	jgarzik@...hat.com, David Woodhouse <David.Woodhouse@...el.com>
Subject: Re: [PATCH 3/5] ata: Add TRIM infrastructure

Matthew Wilcox wrote:

> This is common code shared between the IDE and libata implementations

> Signed-off-by: David Woodhouse <David.Woodhouse@...el.com>
> Signed-off-by: Matthew Wilcox <willy@...ux.intel.com>

[...]

> 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 <linux/kernel.h>
> +#include <linux/string.h>
>  #include <linux/types.h>
>  #include <asm/byteorder.h>
>  
> @@ -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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ