Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5110662pxb; Mon, 15 Feb 2021 09:43:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdhHv8Mi+UlclEk+8ZWydx5NkYA4ymD77k6RVYXa1GB2N83BrI0nI880fcN59xjjICbe1q X-Received: by 2002:a17:906:17d5:: with SMTP id u21mr16833117eje.109.1613411028895; Mon, 15 Feb 2021 09:43:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613411028; cv=none; d=google.com; s=arc-20160816; b=FoKH0G2wPc20fS3VFr67SELJFfn1Kb9NY83X5TTMIH84pEWYlEtoJOad1S3/k5GNhh nXuMjEE/FtpYLr8pImonrWXcY0NQ2f19FTohMzTELZoxADDR4NvIYMAVOpxV060cB0Oj JUNKNGvUsxQf80ZEAoX9re0Rqhx+kMseCkYE5bUPAFGcNmlfd9NfAUfIVfpFnWD01yBR 9A+RiLQ4YOToIVFBlZhuHI9guloZ0335TWOo38n++lb1eSgadSPIS/hkFjB+T3IhwAH8 w+eRZFcoEh4F+ZGNlXLaP69oUeeCRVgY/2LLzxJcK2pDLN0KjycrLlO1gcm6y8cFM5MR 1k5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=JWbg4DdogtY10SwmZ8bb0CjcoeVc39azJNWP/xOX164=; b=J0kX3SwTNShSD8N8MgoMYTYCk10y7zHSHB7TocRZcg39rLLmzscx/4b8mMzqSnFpmJ Frm6pnig5h3pxgxCyZN9rn1tS/DjfTzTP6Zy5Ne07SgQei5SyxtCXgBiY86LAx5x6C/K BKbnk7CE3TPCp1DcMi4nq8NlWQG6q7uj2jVu/Pu/fi9ciA0OX0nkTfrT4P0N/hN6pg4P WnNUn1OV0O9aFIin6rnCWn8VE2c95a00+MKP/0v9TxXnoYyZ0F7HEovmfUviowiywN5M /6zzbLtZ3Isvhs5Qj13Sxdgk2x2VdU/kCCIF3aePuqEKnsca12dQ21edZHrUjIZKJPze 8QEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=puO2K3XW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si4422632ejc.680.2021.02.15.09.43.25; Mon, 15 Feb 2021 09:43:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=puO2K3XW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbhBORlf (ORCPT + 99 others); Mon, 15 Feb 2021 12:41:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232243AbhBORLV (ORCPT ); Mon, 15 Feb 2021 12:11:21 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD556C061756; Mon, 15 Feb 2021 09:10:41 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id y18so8911093edw.13; Mon, 15 Feb 2021 09:10:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=JWbg4DdogtY10SwmZ8bb0CjcoeVc39azJNWP/xOX164=; b=puO2K3XWd5kb9NbElyzyfrAMT2M3zd0UhnUTNNEsw8FKcGLucfIpjz1ueg1z2zJjzb 0mIwkXHVbAYdgpDVN4T9sLutpaO5v3ERaI/aXta/Cf0BujlCKyitHjzUlh0l9/mj9iD5 Stap20ZTAOumCy+UqeLM3bbENm0/VdjQYB7HbLcq1AG0TQQkJcL4jZvcf3FepvLNQbIA 6s2iR6dmLkrQ6m6dfx3QWCippaEq2BleVJKTEaw0MfPzSWTBf6SpYgXwsCw0q10NlQ03 ex3QfAgY9W2TTnFTinz4knB++5tI8SwXWz+cGlh0iBygoiX1PtzsROSBGOtMJYKnLz83 aDjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=JWbg4DdogtY10SwmZ8bb0CjcoeVc39azJNWP/xOX164=; b=CCBOtyEWXvNsnmbvn9A0T3OnTAHLCe/8GzSuU7Uks/Q0cMiDlAJdXYlywnQupXWOmw W1JZt3pbuLsNRCtE0PNiWe0aqaJt88721ZLMq94Kh4qlBZr3YnCCWcHV361xmHHZ5d4P i95qPbRUVZE4ywEbzOxji2CZE8ck9XdgyF2Lj4miBo3GXc1hZ44ic7gFC0vdR0s8zOdK j3k42VkbzcB3WiEOU7elD/Fk6Cip7ckXFGsVyB1oYWXpunzgKmYhdWp4verjRB3rwHIj 44E9Dd2q8Nty81gnv7/eYmx5AvrLHdcG/dkSSyQIgouk5HEQu7CV57VtyvgUnk36wh5G 2f0A== X-Gm-Message-State: AOAM532dy+Yyhv5DL7Lfqi5uvtN9sXZMCjC2M73loL56HaaKnIXctIhb IVOY+zAdBZtwB553Phy0IO8= X-Received: by 2002:a50:9e62:: with SMTP id z89mr15972050ede.79.1613409040460; Mon, 15 Feb 2021 09:10:40 -0800 (PST) Received: from ubuntu-laptop (ip5f5bec65.dynamic.kabel-deutschland.de. [95.91.236.101]) by smtp.googlemail.com with ESMTPSA id df15sm10585308edb.24.2021.02.15.09.10.39 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Feb 2021 09:10:40 -0800 (PST) Message-ID: Subject: Re: [PATCH V2 4/4] scsi: ufs-debugfs: Add user-defined exception event rate limiting From: Bean Huo To: Adrian Hunter , "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 Date: Mon, 15 Feb 2021 18:10:39 +0100 In-Reply-To: <20210209062437.6954-5-adrian.hunter@intel.com> References: <20210209062437.6954-1-adrian.hunter@intel.com> <20210209062437.6954-5-adrian.hunter@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-02-09 at 08:24 +0200, Adrian Hunter wrote: > An enabled user-specified exception event that does not clear quickly > will > repeatedly cause the handler to run. That could unduly disturb the > driver > behaviour being tested or debugged. To prevent that add debugfs file > exception_event_rate_limit_ms. When a exception event happens, it is > disabled, and then after a period of time (default 20ms) the > exception > event is enabled again. > > Note that if the driver also has that exception event enabled, it > will not > be disabled. > > Signed-off-by: Adrian Hunter Acked-by: Bean Huo