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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8CA5FC36002 for ; Fri, 21 Mar 2025 16:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UlxzR0XCJ6n7/EMEDMj0k4zbJvMo8W17G4J+lkLDXOE=; b=Avx8+aHEToZM3/x09cWRGe+4Dj Z81+d+FNiHwajJC96I14xozAtbAmpdwOmU+aN7BOR9wx3fgYj5Setx3wKQMJlp1xia/SpgPWAPr0z tdibmAbvA38iHrl8fQtR5Zb8vHZQ+lTJ6ZZlt4zKKsabo4hC8SUMQGI03cuK8CWI9M2ucpM/negji /W2dvdWFLBdKmAtI5NysK4hzEXHoWXsQbt2cJ8yIWGKOHPTj1SrP5j7HEbKWZJYWqlCGBWK7wQsgB cPW5dqvYolHWT9b39eN/siMa49oyVNTPoJ5OtH9c2Odbny0vtNhdSHpWk8F5iyEzDvbFiZEJihRsJ B1RF3akw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tvfM9-0000000FWsC-3P68; Fri, 21 Mar 2025 16:36:25 +0000 Received: from 004.mia.mailroute.net ([199.89.3.7]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tvfIJ-0000000FVy8-1IWU; Fri, 21 Mar 2025 16:32:28 +0000 Received: from localhost (localhost [127.0.0.1]) by 004.mia.mailroute.net (Postfix) with ESMTP id 4ZK7JZ5ZXbzm20D0; Fri, 21 Mar 2025 16:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1742574731; x=1745166732; bh=UlxzR0XCJ6n7/EMEDMj0k4zb JvMo8W17G4J+lkLDXOE=; b=VnAb7wjraE+UDMrObmRranb8RoRXA4fsK1ty4emt NEeaHise91Jx56D4Aea7ZJ9liyuEOv+7+hQOrqYqpJDaY+SUM+X2CQkRwUllNyvR t5e2jS+zalQ30COcnicw2cqrOH/e6WHY9epTqcAh6ebbL840ifjfR0WIeSVtQ9Re N2Ul8pq2N3GN7clgxX+8tNWG5cOOeP+ZgaQgPadRpxNtpF92Qh/hrEwXwinwA46z BpuBoOfj/2MRh6Y6MM9qFG07UIpJnKyjNszy7TCE08dMdFCkVovGUohkWthTmj+J ZSw6+apTPIazlG8IMnAL7bDtRknL+uKLvTdk1cfLheAuZw== X-Virus-Scanned: by MailRoute Received: from 004.mia.mailroute.net ([127.0.0.1]) by localhost (004.mia [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id S1yP9yQA0YLC; Fri, 21 Mar 2025 16:32:11 +0000 (UTC) Received: from [100.66.154.22] (unknown [104.135.204.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 004.mia.mailroute.net (Postfix) with ESMTPSA id 4ZK7JD42sNzlyHFL; Fri, 21 Mar 2025 16:31:55 +0000 (UTC) Message-ID: <6cc97521-aba1-439b-9c06-a5a06adea498@acm.org> Date: Fri, 21 Mar 2025 09:31:54 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/1] scsi: ufs: core: add device level exception support To: "Bao D. Nguyen" , quic_cang@quicinc.com, quic_nitirawa@quicinc.com, avri.altman@wdc.com, peter.wang@mediatek.com, manivannan.sadhasivam@linaro.org, minwoo.im@samsung.com, adrian.hunter@intel.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Matthias Brugger , AngeloGioacchino Del Regno , Bean Huo , Keoseong Park , Ziqi Chen , Al Viro , Gwendal Grignou , Eric Biggers , open list , "moderated list:ARM/Mediatek SoC support:Keyword:mediatek" , "moderated list:ARM/Mediatek SoC support:Keyword:mediatek" References: <4370b3a3b5a5675bb3e75aaa48a273674c159339.1742526978.git.quic_nguyenb@quicinc.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <4370b3a3b5a5675bb3e75aaa48a273674c159339.1742526978.git.quic_nguyenb@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250321_093227_428160_4B38960E X-CRM114-Status: GOOD ( 13.01 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On 3/20/25 8:18 PM, Bao D. Nguyen wrote: > The ufs device JEDEC specification version 4.1 adds support for the > device level exception events. To support this new device level > exception feature, expose two new sysfs nodes below to provide > the user space access to the device level exception information. > /sys/bus/platform/drivers/ufshcd/*/device_lvl_exception_count > /sys/bus/platform/drivers/ufshcd/*/device_lvl_exception_id > > The device_lvl_exception_count sysfs node reports the number of > device level exceptions that have occurred since the last time > this variable is reset. Writing a value of 0 will reset it. > The device_lvl_exception_id reports the exception ID which is the > qDeviceLevelExceptionID attribute of the device JEDEC specifications > version 4.1 and later. The user space application can query these > sysfs nodes to get more information about the device level exception. Reviewed-by: Bart Van Assche