Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp138156lqs; Mon, 4 Mar 2024 18:45:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX2jGN0qbQxG2keHq+XzRh75OKxyxn+GoSUhXxWkoqTUnMSZ+9yEm+CVATSLklM07LPzPDP+BkxRjPgKbdqb4SOfLY8YblUHFBAgDDd3Q== X-Google-Smtp-Source: AGHT+IHMg7CVTbL9Ca8OLg8uccqMECIaKCNY8XBt9Bn1kVJUfiVsFI2waFja90BwUkrteWjs3Og1 X-Received: by 2002:a05:6a00:b41:b0:6e5:9ed6:3bfd with SMTP id p1-20020a056a000b4100b006e59ed63bfdmr13689607pfo.22.1709606701884; Mon, 04 Mar 2024 18:45:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709606701; cv=pass; d=google.com; s=arc-20160816; b=EeO+VDWNLTqDnMnxUOJNN9NLwAS1UoW9HTAJiIb9ZE62DKPwE1JzIi5xC1Xpz4PUwz Kshxh//LAXTkxoot5ZUz2mFLTPwYJTczrI1PqNI0ks5cvhE8DpYKvjd+JhqMIXNiE119 jy1WrmyN6fb01oF2fI7Hl9QcX3Romp2pbc9dndqRg71W+Tbup9eiAy/VVI3pI6muZVNA 7niZiAD8ZG9cdCME6w/6okLEsSKO+05Yb289jXEGwEBMawcdjkeGlq33C+fApdpJD9p1 QjTgNZDrpRX4FOl1lcYz84v7Gq/4itUaD0vgbOen731vby4UfUUiQAB3w4Edt9rof0GY M4RA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=KDxzsNco+cYrj2LPmRkb/oNTlKVZDobfYRALyO4q6ck=; fh=rLay67Y8/uaKj6SaEHEx9s2OxnrRtAiSG5Ws+aWrjVA=; b=VgmOy94xezbLOq4EdGCQjZo03Ez5S7zByl2N6XVl4xMjC0P+5G39M9gJlw9gfV+QGm +qIr4T8JbROQYQJ8JiZtWrf0UdIl0mLOeK2jEEyJnUckURPXwmi1fow1vOSDAEYMSNND 7U9MwsNSuCWIBIHCidl/AX2PN6RzICJ/f4xxdKGqH+d9jglFcbmtQzg5ZQv/343jbExe KJt6zRv2jT7e9vJV8jkehuN/UfR+HFSBXTV+6TFU82uZkLT1AO/32vPoZoLFmR4zgUk9 6iysO/ePaVzGEqphxQZaD1GU2KlDQ0fc7Mp1hxUaOLsMYjQjZb0AMB0plTJkecm02lzc RI/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-91571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r9-20020a639b09000000b005e10b746148si9138086pgd.432.2024.03.04.18.45.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 18:45:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-91571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E84328224E for ; Tue, 5 Mar 2024 02:45:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B4262940D; Tue, 5 Mar 2024 02:44:54 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C6D728684; Tue, 5 Mar 2024 02:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709606694; cv=none; b=lOoB3K/qReHPFd7IRjxEmurN+ScRr1eUmGuT/u5/yarQKErJUUaL2jogIywTekufB2xrmc1BgeRzicxsq7+HElW0tTX3/c8Y7gZfOOUy4fQ2IzKs5OXeQ8WD8/Zj9GGTxMxna6EwjDbkpJPJP1DLMBLEB3pqViWvxEwvgL6tEVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709606694; c=relaxed/simple; bh=8OXkcDl9sqlqFaahg6tEKayVkJ0Vkw3i4A6ERvPz3Ys=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=YVP8uTGhahFRuKKqjktFENZWc5I8FAwWHHhQFLh1U7QtutzaKIC1pPT6egF5oXLO4seXhNp5iwGHPFAUwUSfoNsae71wP3NmWLn27GlaifjLszoZMD2F1r1PrQ1Mzl3C6JabV9zRYVvem7opMueBKIq+sK6mhFrnhAfi+2HHwQo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Tpfwv4zfQz1Q9rW; Tue, 5 Mar 2024 10:42:23 +0800 (CST) Received: from canpemm100010.china.huawei.com (unknown [7.192.104.38]) by mail.maildlp.com (Postfix) with ESMTPS id 02EA71A016C; Tue, 5 Mar 2024 10:44:44 +0800 (CST) Received: from canpemm500004.china.huawei.com (7.192.104.92) by canpemm100010.china.huawei.com (7.192.104.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 5 Mar 2024 10:44:43 +0800 Received: from [10.174.179.14] (10.174.179.14) by canpemm500004.china.huawei.com (7.192.104.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 5 Mar 2024 10:44:43 +0800 Subject: Re: [PATCH v5 2/7] scsi: libsas: Define NCQ Priority sysfs attributes for SATA devices To: Igor Pylypiv , Damien Le Moal , Niklas Cassel , John Garry , "James E.J. Bottomley" , "Martin K. Petersen" , Jack Wang , "Hannes Reinecke" , Xiang Chen , "Artur Paszkiewicz" , Bart Van Assche CC: TJ Adams , , , References: <20240305005103.1849325-1-ipylypiv@google.com> <20240305005103.1849325-3-ipylypiv@google.com> From: Jason Yan Message-ID: Date: Tue, 5 Mar 2024 10:44:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240305005103.1849325-3-ipylypiv@google.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500004.china.huawei.com (7.192.104.92) On 2024/3/5 8:50, Igor Pylypiv wrote: > Libata sysfs attributes cannot be used for libsas managed SATA devices > because the ata_port location is different for libsas. > > Defined sysfs attributes (visible for SATA devices only): > - /sys/block/sda/device/ncq_prio_enable > - /sys/block/sda/device/ncq_prio_supported > > The newly defined attributes will pass the correct ata_port to libata > helper functions. > > Reviewed-by: John Garry > Reviewed-by: Damien Le Moal > Signed-off-by: Igor Pylypiv > --- > drivers/scsi/libsas/sas_ata.c | 94 +++++++++++++++++++++++++++++++++++ > include/scsi/sas_ata.h | 6 +++ > 2 files changed, 100 insertions(+) Reviewed-by: Jason Yan