Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3271947lqp; Tue, 26 Mar 2024 05:00:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIx/LGAgJvy5R/hKLBNAwUAQvVN2TZQ63RQnFHWOvygGcRC3SXlFRTQSEUbpd7AiVk/F0siCxlfLOXAVwwVnHMKcsvc492VCXG+kACPQ== X-Google-Smtp-Source: AGHT+IGLyZxoBfCjXkDjblML857ojIY9bN5dCaHwB8FX20BDjr3Uh9FfHeZ0m8bYmUiMj+DEQgRj X-Received: by 2002:a17:903:2287:b0:1e0:b872:d862 with SMTP id b7-20020a170903228700b001e0b872d862mr9502290plh.52.1711454420983; Tue, 26 Mar 2024 05:00:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711454420; cv=pass; d=google.com; s=arc-20160816; b=R9CzOmhztdw57Wpo3zkC1CaGZZOe3NpxHr6VSoZXBh8Dk7BE4CdaGuCaiTvPhnJOwZ UOcE9XkXN6vehxrg2HiBca3pJv09JzFaMqXhYs6BY5UQ3Pvgfa/xOlNsZhOpsbgGDxdH GPBqKEgq0nKDuzKa2IAmlidhHU5/XkrbVnjP1xJjw2anBtqQ48nMNad76U2c/a+bu7Pi LC11TlbpPYqT1rCjiVZ81DmJcaMxUzvcKDUAYXCW3wAXb+540poMFRRxqZXxjDyJQMph h3nprOKfDMVgVBfZnMT96c2jyFpl2S2Qs0TD588LbhjJ79OaqZ8tA9BUP8HMCflL/m3U hZdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=r+L49tsuoUwlNmWwTEcFVotu73eEqqg/fWWWLG8QyDk=; fh=6eTHjBzu0K5GfLkEIScEme+GL+ePSJVLIhMNM4PSS1A=; b=GvHRhjVDI+ybM3hqUqer4LK5JMt4nTwiCoRgR1C8rv19iqMu/dT5gV+SMp8JdWT7kr DGYuHs9ssBGdeXk1W/3ZYMc8yRGt0hgumgrM49tdq3xk0KEO/Man217dehMIBHGjdzTe mo0WaiZkfcFEiwzAaNM8GOQkAfGG99nd+5WcaC/7oyhGxzCnhv4Ue1k5+s8U7975hIQ4 5zPXyi51ABx/kWMZrjzUxWq6F2ACiUtnH/89dOssALsTfRXXkEkRhbPBOIe/KnLpglDC +EgB7GELWmz2IpoNEpinRqcjY4sZukekvfFiOTXP3N8GE+Si9vFyuwkbKt9mxImoFRfr 86Iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SygXXOfk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z35-20020a634c23000000b005d3f4474fddsi9423249pga.167.2024.03.26.05.00.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 05:00:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SygXXOfk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AE76DB236B5 for ; Tue, 26 Mar 2024 11:52:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B8746CDB6; Tue, 26 Mar 2024 11:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SygXXOfk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 37C5B6A8DE; Tue, 26 Mar 2024 11:52:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711453963; cv=none; b=iwi4UWVrdpFLnKkuKXQTBXUQgvenW0DnqRXqYLfPA1vaZMNAGBQBGmXgb5zaNvTRba3RMsm5VJZHnfphzI1eb4s/t2tl6VTS6MEf4Eqhz2RqmGBDlx4IKiXTye/duyHOvzzTVbgHF/U8cEO0jEuKAmWbvNSxjrwP3Q7/ySiX/s8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711453963; c=relaxed/simple; bh=nYG+dP/QZk70U+XbmJJl1dpLEwmh2Q+q6qQlE/n2W4I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bs8g466YBWaEwqvoV26AV67cVBwom1DhmWprLyweAafO20yQ5Ff3IwzlRlJExy5Nn8NP9Rfh8dTI/ZGLDofCaK7NmyKSTFnSpDTnwqgSrtshkEhiXH2hVS6sWUlu0DMRCKIKqPcYVmWoeBFaOj67M+KSC/GlyeCZzGZjTH4gpLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SygXXOfk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34CBEC433C7; Tue, 26 Mar 2024 11:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711453962; bh=nYG+dP/QZk70U+XbmJJl1dpLEwmh2Q+q6qQlE/n2W4I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SygXXOfkbDpSe7BF50lIgn3oe3ELQH9a+hI8VaUA+HqWMf8X90Zmn+0l+r75nDzRh +YGIheyFwuJPFoaykgrje2oVqYpt/eDlBeE6NPa622Uyhpu5pJ0cwoVFR7nS3wVd4v jaB0b1wzZhD5wx+cBV4C0jZjaKf2UjTviMJkgbVMgCVE70h58n+iwJ1fOsDtN32Rt1 x0origrtdobdFQyPRrV8iwFhGWU6DA2GoJ1Uey8qZTtExHwo1NNuTTHpocoPKmheQo 9nYoSUT8iudonnZHacmjrTCuH9rWBtiGFMZQDj9HSp9Igd+NyBp8PmaHrRV0YDTQKF OXuLo3czSohUA== Message-ID: Date: Tue, 26 Mar 2024 20:52:39 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 2/7] scsi: libsas: Define NCQ Priority sysfs attributes for SATA devices Content-Language: en-US To: Geert Uytterhoeven Cc: Igor Pylypiv , Niklas Cassel , John Garry , Jason Yan , "James E.J. Bottomley" , "Martin K. Petersen" , Jack Wang , Hannes Reinecke , Xiang Chen , Artur Paszkiewicz , Bart Van Assche , TJ Adams , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240307214418.3812290-1-ipylypiv@google.com> <20240307214418.3812290-3-ipylypiv@google.com> <66ad274d-9890-411d-9fba-90fed2eb33f5@kernel.org> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 3/26/24 19:16, Geert Uytterhoeven wrote: > Hi Damien, > > On Tue, Mar 26, 2024 at 11:07 AM Damien Le Moal wrote: >> On 3/26/24 18:53, Geert Uytterhoeven wrote: >>> On Thu, Mar 7, 2024 at 10:55 PM 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 >>>> Reviewed-by: Jason Yan >>>> Signed-off-by: Igor Pylypiv >>> >>> Thanks for your patch, which is now commit b4d3ddd2df7531e3 ("scsi: >>> libsas: Define NCQ Priority sysfs attributes for SATA devices") >>> in scsi-mkp/for-next >>> >>>> --- a/drivers/scsi/libsas/sas_ata.c >>>> +++ b/drivers/scsi/libsas/sas_ata.c >>> >>>> + >>>> +DEVICE_ATTR(ncq_prio_supported, S_IRUGO, sas_ncq_prio_supported_show, NULL); >>>> + >>> >>> [...] >>> >>>> + >>>> +DEVICE_ATTR(ncq_prio_enable, S_IRUGO | S_IWUSR, >>>> + sas_ncq_prio_enable_show, sas_ncq_prio_enable_store); >>>> + >>> >>> When both CONFIG_SCSI_SAS_ATA and CONFIG_SATA_HOST are enabled: >> >> I have both enabled in my config and I do not see any issue. What is special >> with these on ARM ? > > Modular or built-in? > I have them built-in, and it fails on arm64 (with renesas_defconfig, > which is not upstream). > It also fails with shmobile_defconfig on arm32, after manually adding > CONFIG_SCSI_SAS_LIBSAS=y and CONFIG_SCSI_SAS_ATA=y. Hmm... That must be it. I did a modular build. Will check that again and send a fix. Thanks. -- Damien Le Moal Western Digital Research