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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B215DC54EBD for ; Fri, 13 Jan 2023 12:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232979AbjAMMIz (ORCPT ); Fri, 13 Jan 2023 07:08:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231287AbjAMMHi (ORCPT ); Fri, 13 Jan 2023 07:07:38 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6904B1E; Fri, 13 Jan 2023 03:59:44 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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-out2.suse.de (Postfix) with ESMTPS id 86E2560342; Fri, 13 Jan 2023 11:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673611182; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tdXhu25xCaoKfctj+4QtD3EmAFz1me/AClgm10945/k=; b=rK2KIDCTgkeR9lOjHcikY/Q0bTXdRfxMGRcx/y0uNFPCzQYHSqu7bO0ZcQgeV0ShpbssBZ ov7akNm8OxwFDKc0ZP1/ran8gk/G6g5SMzzPbIoxbc1VJ5yr+7oRFgOxT0lCelOeUHgCi9 yR08UffuO7sEOaly74lEW2/1y99Hw8c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673611182; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tdXhu25xCaoKfctj+4QtD3EmAFz1me/AClgm10945/k=; b=cNeQRMuQ9ihp730yambyUzODdYOQFJnBdf8g/GxQdPtMLIdfRG3pC5Hkh5flhYCB+3glCd TmUukWzx0b/Wx0DA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7A4631358A; Fri, 13 Jan 2023 11:59:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 45WhHa5HwWMzRgAAMHmgww (envelope-from ); Fri, 13 Jan 2023 11:59:42 +0000 Message-ID: Date: Fri, 13 Jan 2023 12:59:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 09/18] ata: libata: detect support for command duration limits Content-Language: en-US To: Niklas Cassel , Damien Le Moal Cc: linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, linux-block@vger.kernel.org References: <20230112140412.667308-1-niklas.cassel@wdc.com> <20230112140412.667308-10-niklas.cassel@wdc.com> From: Hannes Reinecke In-Reply-To: <20230112140412.667308-10-niklas.cassel@wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On 1/12/23 15:03, Niklas Cassel wrote: > From: Damien Le Moal > > Use the supported capabilities identify device data log page to detect > if a device supports the command duration limits feature. For devices > supporting this feature, set the device flag ATA_DFLAG_CDL. To support > scsi-ata translation, retrieve the command duration limits log page 18h > and cache this page content using the cdl array added to the ata_device > data structure. > > Signed-off-by: Damien Le Moal > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > --- > drivers/ata/libata-core.c | 52 ++++++++++++++++++++++++++++++++++++++- > drivers/ata/libata-scsi.c | 17 ++++++------- > include/linux/ata.h | 5 +++- > include/linux/libata.h | 29 +++++++++++++--------- > 4 files changed, 80 insertions(+), 23 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer