Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1558592pxb; Thu, 4 Feb 2021 16:46:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIZXKrBI3KQI3Z5Gc/pM6h+C6I+83fgRfmYlJsHKdBAju9smE5q0K+sHEdv4iznZdQjcsw X-Received: by 2002:a17:907:7784:: with SMTP id ky4mr1578744ejc.89.1612486007773; Thu, 04 Feb 2021 16:46:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612486007; cv=none; d=google.com; s=arc-20160816; b=jXpE4ZGYBEua2eotyzKh36N68TzQXEzEk5wVKMyyfMoKE0zueXuSJubvh/gdmyNNwx Geqa0LT9QnQkZNYJXy2pzHEe3aijpIQFrt/mnapYDsOdzI4fcOpr1iuU/jPySqeQCLEO V1Yh79oSawoWPHGsmSZZsFjgbCTqss/cCKLWlC0hpx1MKP8Ikobzw0b58nFa3tFV59XF VO2Xo3KQ/FUOShyCOc2mDjnakRIBihO3ZmWEWFDV34TST2tBai6XZJbywzKBqiNMAv8y B4IF2FS/cVi6NiMB2+SUCaLT/3k+z1FZwN5+dhLqEmcdFcpCldJCAvnj7/VCQolJR8c8 cfRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=t6QKk8LRcbA8wMaW6MTAl51l7mhbcooMqCtuEx8Y4p4=; b=Wa8LG9HQswMYKtRn9oEd12t+gbcV4OoIxrVAwGiPYffBhpmoJ80rNbclOCbeCnrgjY 1YIOJfX7ibQxQkjL4nTHsxmif7wh9TZ7iW0lECjzbsd8Sei95kV34IZ1UHU/mWoHS2Dc SIeeYr48Z65l+s5xhUHYt+Via4I6+7WvlAeI1swha+XeZnp6Vq1AkWV3bsSrDXyEWw5M mKJEXy0iodYCzQU+7QP4y9RWt5AbhBwtVpn/46ecsVD3S7e0UV+wU55EPrEW2cF7for4 YX0ZvlGZgByjdXXtYiJLorwdfb2T5Q1zcx44sCvCcgYEXvXl+Xyg6zwEJ941II3ZZf5D hE3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj7si3943623ejb.706.2021.02.04.16.46.23; Thu, 04 Feb 2021 16:46:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237327AbhBDP3l (ORCPT + 99 others); Thu, 4 Feb 2021 10:29:41 -0500 Received: from mga09.intel.com ([134.134.136.24]:45849 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237248AbhBDPZu (ORCPT ); Thu, 4 Feb 2021 10:25:50 -0500 IronPort-SDR: 44f/ual3VdHpLTvG9d6Fy322EUPOp8WxG3JOIviZQvTl6Q2TGbAWmycHC+t4LN22QunWgLHCMb pgY8qF1Dfj7w== X-IronPort-AV: E=McAfee;i="6000,8403,9884"; a="181410965" X-IronPort-AV: E=Sophos;i="5.79,401,1602572400"; d="scan'208";a="181410965" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 07:25:04 -0800 IronPort-SDR: SrO7SuHPlHWikYTbmVkiTa5ISyfDiJUSCKwuFoung0M3TjbN4kIAtNn0oR+Sovzcr7MQ6KvNcT HFpS9bPOGFJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,401,1602572400"; d="scan'208";a="483274049" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.149]) ([10.237.72.149]) by fmsmga001.fm.intel.com with ESMTP; 04 Feb 2021 07:25:02 -0800 Subject: Re: [PATCH 3/4] scsi: ufs-debugfs: Add user-defined exception_event_mask To: Bean Huo , "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Alim Akhtar , Avri Altman , Can Guo , Stanley Chu References: <20210119141542.3808-1-adrian.hunter@intel.com> <20210119141542.3808-4-adrian.hunter@intel.com> <85b6cbb805e97081a676aeb30fe76f059eba192e.camel@gmail.com> <372c6dbbda18cccdcf2b053ee87f2ada9640e2b8.camel@gmail.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Thu, 4 Feb 2021 17:25:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <372c6dbbda18cccdcf2b053ee87f2ada9640e2b8.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/02/21 4:58 pm, Bean Huo wrote: > On Wed, 2021-02-03 at 11:56 +0200, Adrian Hunter wrote: >>> >>> Hallo Adrian >> >> Hi Bean >> >> Thanks for the review >> >>> >>> Would you like sharing the advantage of this debugfs node comparing >>> to >>> sysfs node "attributes/exception_event_control(if it is writable)"? >> >> Primarily this is being done as a debug interface, but the user's >> exception >> events also need to be kept separate from the driver's ones. >> >>> what is the value of this? >> >> To be able to determine if the UFS device is being affected by >> exception events. >> >>> Also, now I can disable/enable UFS event over ufs-bsg. >> >> That will be overwritten by the driver when it updates the e.g. bkops >> control, or sometimes also suspend/resume. > > Hi Adrian > yes, I saw that, they are not tracked by driver. > > I have one question that why "exception_event_mask" cannot represent > the current QUERY_ATTR_IDN_EE_CONTROL value? only after writing it. It represents only the user's exception events (ee_usr_mask), not the driver's ones (ee_drv_mask) as well. ee_usr_mask is updated after successfully ensuring it is set on the device.