lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <61570104d58cef22716fefe459c0c45670108aad.camel@mediatek.com>
Date: Wed, 19 Mar 2025 07:56:31 +0000
From: Peter Wang (王信友) <peter.wang@...iatek.com>
To: "avri.altman@....com" <avri.altman@....com>, "quic_cang@...cinc.com"
	<quic_cang@...cinc.com>, "quic_nitirawa@...cinc.com"
	<quic_nitirawa@...cinc.com>, "quic_nguyenb@...cinc.com"
	<quic_nguyenb@...cinc.com>, "manivannan.sadhasivam@...aro.org"
	<manivannan.sadhasivam@...aro.org>, "bvanassche@....org"
	<bvanassche@....org>, "adrian.hunter@...el.com" <adrian.hunter@...el.com>,
	"minwoo.im@...sung.com" <minwoo.im@...sung.com>, "martin.petersen@...cle.com"
	<martin.petersen@...cle.com>
CC: "beanhuo@...ron.com" <beanhuo@...ron.com>, "ebiggers@...gle.com"
	<ebiggers@...gle.com>, "gwendal@...omium.org" <gwendal@...omium.org>,
	"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>, "AngeloGioacchino
 Del Regno" <angelogioacchino.delregno@...labora.com>,
	"quic_ziqichen@...cinc.com" <quic_ziqichen@...cinc.com>,
	"alim.akhtar@...sung.com" <alim.akhtar@...sung.com>,
	"keosung.park@...sung.com" <keosung.park@...sung.com>,
	"viro@...iv.linux.org.uk" <viro@...iv.linux.org.uk>, "matthias.bgg@...il.com"
	<matthias.bgg@...il.com>, "James.Bottomley@...senPartnership.com"
	<James.Bottomley@...senPartnership.com>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "linux-mediatek@...ts.infradead.org"
	<linux-mediatek@...ts.infradead.org>, "linux-arm-kernel@...ts.infradead.org"
	<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v3 1/1] scsi: ufs: core: add device level exception
 support

On Wed, 2025-03-19 at 00:29 -0700, Bao D. Nguyen wrote:
> 
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> 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.
> 
> Signed-off-by: Bao D. Nguyen <quic_nguyenb@...cinc.com>
> Reviewed-by: Peter Wang <peter.wang@...iatek.com>
> ---
> Changes in v3:
> 1. Add protection for hba->dev_lvl_exception_count accesses in
> different
> contexts (Bart's comment).

Hi Bao,

Could use atomic_t for counter protect?

Thanks.
Peter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ