Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp299643pxb; Wed, 15 Sep 2021 02:17:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr7ck3g8YfxLoZgaIoYlQLXgBZpyopGOSzskNYoigQ5BsE0M80TlobQyW6VBlClUAX40qc X-Received: by 2002:a2e:6c05:: with SMTP id h5mr19332862ljc.73.1631697445906; Wed, 15 Sep 2021 02:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631697445; cv=none; d=google.com; s=arc-20160816; b=OjkJO6BBtx+BdTl64PWsax1H9NZRmzwHxzZfvLQlOC463TlZCTBtis6aGAy7WPVdyq DpuGpwyTsknxakBDlF8rHAR0uIkN2Re6WTC05cwysr3a7ZX2n3yW4knqVOWyGHMbpWkb PdrXXtEBv48+dUTHwfbaXgBJceIIbPZcZaOvv0TClO6hu6FAmvWLrCBBPl9vJYw6v57I i/zVNizMGydyNDgABoNH/AWBYy+8j7ry3tqDzvHgC6D/by+o5M5fZB3ldTjv81Ufw4f/ r/rh46RW45vqUo1KvZvA3qcrfPJ3k5ZqTjMeDtnL4w8tggMP9CXeAuZmRZ5bgfg/bTmC 4TCQ== 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=mKHLpEcdN44klLDGi4B+FJ2Yr0gWuE7N1GO6uzZKeIg=; b=FifxkW8l6T2lrzJTKBEiQ4ASshGMAs5Ugarli0fmRFNWj+1tY31oEpdfLuO67q0dz8 fNgtQee6GgIkf3QtjOmQPKt/Ip0IG7TLoZYZlySBVwjj3aquzZfWVH90fk1+6kertfO0 qigUsckTQU85jkRERsNRvrcXEQs6lsryFRy4X9xCvJm3OUeBJfXgpi7LCmNNRMDLhgwE jK59kz0YfDjdzU5mGWxm7NN1/aIOgg1AQQR5ClN2fr2audy6L70sOvHAbQV5foypSKJ7 ostyQ7WnYG8H1raTUAQ6A2UzTiTVA1m30bPzirMEZGfYZibWdwYPxQjhxTLsKqCGjNlB SrzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=e9FdLoJd; 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 c27si20585697ljn.465.2021.09.15.02.16.58; Wed, 15 Sep 2021 02:17:25 -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=e9FdLoJd; 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 S237188AbhIOJOa (ORCPT + 99 others); Wed, 15 Sep 2021 05:14:30 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:26457 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237200AbhIOJO3 (ORCPT ); Wed, 15 Sep 2021 05:14:29 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1631697191; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=mKHLpEcdN44klLDGi4B+FJ2Yr0gWuE7N1GO6uzZKeIg=; b=e9FdLoJdnpAcVKBe67iY/HAiVk/RabJgPedesWlWg7/i3xKcQeiDuxEkN6aiK3pU2A0G9eLh 9PftSEfRVetsZ9CIfoBwP/fkTnq+ELOLgigNNDzYyyIpCw4GOYxEWkxASKgipsn8xH4Ob386 DXKqx0Is0g2q5kj8nStNxbi43f4= 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-n04.prod.us-east-1.postgun.com with SMTP id 6141b926ec62f57c9a31402d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 15 Sep 2021 09:13:10 GMT Sender: dikshita=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C4CC4C4361A; Wed, 15 Sep 2021 09:13:09 +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 25005C4338F; Wed, 15 Sep 2021 09:13:09 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 15 Sep 2021 14:43:09 +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 Subject: Re: [PATCH v5 2/3] venus: Add a debugfs file for SSR trigger In-Reply-To: <159718256557.1360974.458611240360821676@swboyd.mtv.corp.google.com> References: <20200730095350.13925-1-stanimir.varbanov@linaro.org> <20200730095350.13925-3-stanimir.varbanov@linaro.org> <159718256557.1360974.458611240360821676@swboyd.mtv.corp.google.com> Message-ID: <8c1fdf2d0807f07ec57b232497b405f1@codeaurora.org> X-Sender: dikshita@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, Reviving the discussion on this change as we need to pull this in. As per your suggestion, I explored the fault injection framework to implement this functionality. But I don't think that meets our requirements. We need a way to trigger subsystem restart from the client-side, it's not derived from the driver. while fault injection framework enables the driver to trigger an injection when a specific event occurs for eg: page allocation failure or memory access failure. So, IMO, we will have to use custom debugfs only. Please feel free to correct me in case my understanding of the framework is wrong. Thanks, Dikshita On 2020-08-12 03:19, Stephen Boyd wrote: > Quoting Stanimir Varbanov (2020-07-30 02:53:49) >> The SSR (SubSystem Restart) is used to simulate an error on FW >> side of Venus. We support following type of triggers - fatal error, >> div by zero and watchdog IRQ. > > Can this use the fault injection framework instead of custom debugfs? > See Documentation/fault-injection/.