Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp151635pxb; Wed, 3 Feb 2021 02:00:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7AEwUWRce2sTwiUg5bVw3tQvAyHbFAcjLSWLvSTT7VGRuw51cgWQW7UETesRKOwZ9eBdq X-Received: by 2002:a05:6402:1215:: with SMTP id c21mr2145799edw.310.1612346406489; Wed, 03 Feb 2021 02:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612346406; cv=none; d=google.com; s=arc-20160816; b=qjYwyrCIH3H2XpV1Pm/x/une6l9v74clsg30QXJezs6cvtQIK3EvMLgnBZC+EY1voi yRHYp40FywHWezn/Tjz9jb6TNS0JuLC3VRPA2p30K+OnZ1q+gPDJHTbWbxXHmpmuwizm A1YKD962HC07yEOVkRUacNHITGJNQi5mSpKkmiUAY+jXnbujvZwVAZnx2rCLss4p+L6I b0B//PkpgVqthzuVVtkK/YMihfB5SSm1uMlSMVoVgqUEIxs1WW7aHcqjC7Rup0uWsjpI KVSFXNQu8aQx6ZWUMl8MZ8vtRB8WMZCKI8PkXna/nHFFz3I43dXJQJwkNy+UKuOts8zp pKdg== 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=V9uVuy2xo6PA+gDIZIJMKC+mSJh3/U7DtSFMuZW65ZQ=; b=cxJXcrm+Qhww0EQcckXKcxmm/kU+nqDrh2Wa+37LtPT4f+jnlre8OslS50M5mUNpLw H3OHOdIaNX50Q5xsRrNXI0xz1UVe+a+6swqqTWK+W8ZDYvlVLyukOY/JWe8RBHNOY6Uv tyAEfJsqECuI2OtZhNJrHlrL7Ozp5pMIta8faVONsnDOT6pgKDX4y3ifTyI8k+jWeHzT uGe3xauDU8z1r5h5NGI0MzSgSLS2NQY+r5t+jF+MGNhmuuJlFdeFaLuyyAnAGr0pr7p+ ftOrk+gCtSHiEaVUCJB/6YkjJVU+4VE7oeNUG0495XNgBde0L3GdRQDX793n9RUGKBku H6hw== 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 y8si1018776ejr.416.2021.02.03.01.59.42; Wed, 03 Feb 2021 02:00:06 -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 S233599AbhBCJ4q (ORCPT + 99 others); Wed, 3 Feb 2021 04:56:46 -0500 Received: from mga07.intel.com ([134.134.136.100]:58110 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233258AbhBCJ4p (ORCPT ); Wed, 3 Feb 2021 04:56:45 -0500 IronPort-SDR: UEv0RG4URBHY/0NinJ8F1mes+OEP2z7p9qTXIGC4/9Z3VrThqsOyIHqP7RRjQmxFJ606ZbLP0A q9MDxSQoInJA== X-IronPort-AV: E=McAfee;i="6000,8403,9883"; a="245091943" X-IronPort-AV: E=Sophos;i="5.79,398,1602572400"; d="scan'208";a="245091943" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2021 01:56:04 -0800 IronPort-SDR: QqnlqYDVHUZjs0LoFZMwWUmT6jR5sxhZc/T0rKHXfyGP0jPNcdxArOeq12BlhBgeC0ZWv8UWlp fPHVeB2Oop7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,398,1602572400"; d="scan'208";a="372319185" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.149]) ([10.237.72.149]) by orsmga002.jf.intel.com with ESMTP; 03 Feb 2021 01:56:01 -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> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Wed, 3 Feb 2021 11:56: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: <85b6cbb805e97081a676aeb30fe76f059eba192e.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 3/02/21 11:45 am, Bean Huo wrote: > On Tue, 2021-01-19 at 16:15 +0200, Adrian Hunter wrote: >> Allow users to enable specific exception events via debugfs. >> >> The bits enabled by the driver ee_drv_ctrl are separated from the >> bits >> enabled by the user ee_usr_ctrl. The control mask ee_mask_ctrl is the >> logical-or of those two. A mutex is needed to ensure that the masks >> match >> what was written to the device. > > 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.