From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752469Ab1I0Vqc (ORCPT ); Tue, 27 Sep 2011 17:46:32 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:21255 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997Ab1I0Vqa (ORCPT ); Tue, 27 Sep 2011 17:46:30 -0400 To: Arun Cc: Mark Knecht , "Martin K. Petersen" , Joshua Scoggins , Mike Snitzer , Alan Cox , linux-kernel@vger.kernel.org Subject: Re: Detection of Advanced Format drives From: "Martin K. Petersen" Organization: Oracle References: <20110926111522.2a053ceb@lxorguk.ukuu.org.uk> Date: Tue, 27 Sep 2011 17:44:25 -0400 In-Reply-To: (Arun's message of "Wed, 28 Sep 2011 02:42:28 +0530") Message-ID: User-Agent: Gnus/5.110017 (No Gnus v0.17) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4E82442E.00C3:SCFMA922111,ss=1,re=-4.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>>> "Arun" == Arun writes: Arun> A quick check of hdparm tells me that it is using the SG_IO ioctl Arun> for the ATA_OP_PIDENTIFY command. Maybe I have some hopes of Arun> having a correct result with the BLKPBSZGET ioctl. Will check that Arun> out. hdparm and the kernel are looking the same place for the physical block size. There should be no discrepancy between what hdparm can see and what's reported in physical_block_size by the kernel. The BLKPBSZGET returns the same topology parameter as sysfs' physical_block_size. -- Martin K. Petersen Oracle Linux Engineering