Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1759739pxb; Mon, 20 Sep 2021 04:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhrz7lSgY6IOpwWZQm3w2bOQFPe6kMWDV58oFW142MmZ8JwQ2GPSd9KOGg1aShXgps4Nj7 X-Received: by 2002:a92:d8cc:: with SMTP id l12mr17360648ilo.166.1632138617839; Mon, 20 Sep 2021 04:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632138617; cv=none; d=google.com; s=arc-20160816; b=tEJH+wVAyElKwK8f4fyq01gkNLaW91bmiOYMhn9eVx+gh0LIvjlUkrg050kqleLy1Q TeVy1hCfHk7Vnzf4GNhJ6rBS+J1fARWe9/bnHJeoTIjmEoWVae1y4hslf2n3n/Kg8EHw wlh1stEtCWqr3/oclgjpw1EaHv53kqxIl+yZAsX+hPnqBsRzXZvPKUDWtijzjCsBlxVd xdEOfa06c/RUMH0qehT7jgfvttX5GHRseWj/2FHX/cdD3eXYen3RVzrwnqouC0DX4fwR WanQx5y8WwDkYYCDM84A1JTO5VtvTqsHsymdd+XU47TW0GIVXrzrRJwEGJBsjBWr8J4e dlzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=5nlyLyKja5pQmPUhb5irf4OKc7ipwfbDP9VsHRmIz/M=; b=rgJsmyxT64PlNcTccT4G/sxbCdIot5VGiSbl8gvkJ8VAyVId/7vKxJBKGDE7uT4efE F/vhWCfDOvbSDtcs1I/NGOp01eDJ6jxDk2IKj+v/QiwxKyibTkylR9Y3zZ2yFi7FF7X8 x3v0ESZL8FYX1M++MAsCgQprDbzEsG7nyLA7kr9TtS0MmkJ3ymdtBqO7jEUlKR1HGUha +Wil8w61C5mhzbzv8zGM00qRBYb6Akw2rtfGOyfJF9UVcN9slainHbrexwYjLmKhsN0W vxmvTLXkc0Lcq3+50I3K8DicT0k/K0vbEHMChdtNufjad+WEvx3Lssc3OULB0nY/jbyD XbpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Xa4lbS8B; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j28si3964165ila.60.2021.09.20.04.50.03; Mon, 20 Sep 2021 04:50:17 -0700 (PDT) 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=@mg.codeaurora.org header.s=smtp header.b=Xa4lbS8B; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233032AbhITFuG (ORCPT + 99 others); Mon, 20 Sep 2021 01:50:06 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:39148 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232958AbhITFuF (ORCPT ); Mon, 20 Sep 2021 01:50:05 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1632116919; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=5nlyLyKja5pQmPUhb5irf4OKc7ipwfbDP9VsHRmIz/M=; b=Xa4lbS8BIGzN6PJgaUwxnFGQPE+7geZrD7nixInS+hrVaUTIdgfGtqwFTRGhD0UwzVIR31zT YuzUJWtnaK9Bcwar7/IrMiAKszz9jT55kox20W3ged/UE8WyKG8emQhon5apE99gFy5QJsSe q/C4QGuxyZYDSqmLhQDhNPuuieQ= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 614820b4b585cc7d2488d87d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 20 Sep 2021 05:48:36 GMT Sender: dikshita=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 85376C4360C; Mon, 20 Sep 2021 05:48:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dikshita) by smtp.codeaurora.org (Postfix) with ESMTPSA id A85B4C4338F; Mon, 20 Sep 2021 05:48:35 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 20 Sep 2021 11:18:35 +0530 From: dikshita@codeaurora.org To: Stephen Boyd Cc: Stanimir Varbanov , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, jim.cromie@gmail.com, Joe Perches , Jason Baron , Greg Kroah-Hartman , linux-media-owner@vger.kernel.org, Akinobu Mita Subject: Re: [PATCH v5 2/3] venus: Add a debugfs file for SSR trigger In-Reply-To: References: <20200730095350.13925-1-stanimir.varbanov@linaro.org> <20200730095350.13925-3-stanimir.varbanov@linaro.org> <159718256557.1360974.458611240360821676@swboyd.mtv.corp.google.com> <8c1fdf2d0807f07ec57b232497b405f1@codeaurora.org> <53a38a24cca0b6f1c2a3120f14dfc865@codeaurora.org> Message-ID: X-Sender: dikshita@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-17 11:48, Stephen Boyd wrote: > Quoting dikshita@codeaurora.org (2021-09-15 23:29:36) >> On 2021-09-16 01:09, Stephen Boyd wrote: >> > Quoting dikshita@codeaurora.org (2021-09-15 02:13:09) >> >> >> >> So, IMO, we will have to use custom debugfs only. >> > >> > Can you use DECLARE_FAULT_ATTR()? Or you need it to be active instead >> > of >> > passive, i.e. it shouldn't wait for should_fail() to return true, but >> > actively trigger something on the remoteproc? >> > >> >> yes, it doesn't need to wait for should_fail() to return true. >> the client/user should be able to trigger this subsystem restart(SSR) >> at >> any point of time >> when a session is running. It's totally client-driven. >> >> >> >> >> Please feel free to correct me in case my understanding of the >> >> framework >> >> is wrong. >> >> >> > >> > I presume the fault injection framework could get a new feature that >> > lets the fault be injected immediately upon writing the debugfs file. >> > My goal is to consolidate this sort of logic into one place and then >> > put >> > it behind some config option that distros can disable so the kernel >> > isn't bloated with debug features that end users will never care about. > > So you can modify fault injection framework to support direct injection > instead of statistical failures? I am not sure how to do that. Could you pls give me more info? Also, how is this beneficial than using debugfs?