From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38024C433FE for ; Mon, 6 Sep 2021 08:35:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D9C360F21 for ; Mon, 6 Sep 2021 08:35:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240828AbhIFIgT (ORCPT ); Mon, 6 Sep 2021 04:36:19 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:34030 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbhIFIgR (ORCPT ); Mon, 6 Sep 2021 04:36:17 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0D233220CC; Mon, 6 Sep 2021 08:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1630917312; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H1585ElNvn0OOIpjxUHZfnTOaN95zscnbHeEdnMz6VI=; b=tPF0WlFycM1QC+XIElRHMxGy+wdKSQGQ7IjvstVdTay1DbX7WNpdXu7MS/77y/cUtc1DEP zLc0hEwUWVAwkRFvArQXPc1KuIxYkEZpkT33MFQpNm385ot/wgIj4ACUC9KIrmilgmMiab gbbK66XsEKG3/oe0Q+JueRanJU1Su3I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1630917312; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H1585ElNvn0OOIpjxUHZfnTOaN95zscnbHeEdnMz6VI=; b=FdL25/WL5pklATCgM4CA8q2GjMX3L2eo7zLsFzv7mffHVqQdnMjrLE+Uy2r4kjhcyw2UiS bORQEytbuuG6oACQ== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 3A6C113299; Mon, 6 Sep 2021 08:35:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id uMpSDL7SNWHHbwAAGKfGzw (envelope-from ); Mon, 06 Sep 2021 08:35:10 +0000 Subject: Re: [PATCH v7 2/5] scsi: sd: add concurrent positioning ranges support To: Damien Le Moal , Jens Axboe , linux-block@vger.kernel.org, linux-ide@vger.kernel.org, "Martin K . Petersen" , linux-scsi@vger.kernel.org References: <20210906015810.732799-1-damien.lemoal@wdc.com> <20210906015810.732799-3-damien.lemoal@wdc.com> From: Hannes Reinecke Message-ID: Date: Mon, 6 Sep 2021 10:35:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210906015810.732799-3-damien.lemoal@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 9/6/21 3:58 AM, Damien Le Moal wrote: > Add the sd_read_cpr() function to the sd scsi disk driver to discover > if a device has multiple concurrent positioning ranges (i.e. multiple > actuators on an HDD). The existence of VPD page B9h indicates if a > device has multiple concurrent positioning ranges. The page content > describes each range supported by the device. > > sd_read_cpr() is called from sd_revalidate_disk() and uses the block > layer functions disk_alloc_iaranges() and disk_set_iaranges() to > represent the set of actuators of the device as independent access > ranges. > > The format of the Concurrent Positioning Ranges VPD page B9h is defined > in section 6.6.6 of SBC-5. > > Signed-off-by: Damien Le Moal > --- > drivers/scsi/sd.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++ > drivers/scsi/sd.h | 1 + > 2 files changed, 82 insertions(+) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer