Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp865284rwb; Wed, 28 Sep 2022 10:02:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6j/Ulk2V7F0XSq+Jo9lpquPPP9FU8rnble7l0vYK1gyHa0ai1SL8I5TRQJzYNdSkuEkfLI X-Received: by 2002:a17:906:4795:b0:787:434f:d761 with SMTP id cw21-20020a170906479500b00787434fd761mr7069390ejc.597.1664384521201; Wed, 28 Sep 2022 10:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664384521; cv=none; d=google.com; s=arc-20160816; b=RghLgoWKoDHnpTXJJk0cwrhBczEHGZ2riD7e8IomOLoCJUsAkpX7vwu7vxEBoa8Tpv G8Gv1m8BiclCOxPFZq+6zIPsP3csy8ZecL3qiM6F+DUPy97uxLK9t2NSNcJj5yq6DdW6 eC0GlaA2ISCpBy2wIBVdV/jMaZo4Ovy6Gnp5omSScagtFr9B1l7bSMjPXOFZQ13D3NDc CZ6LT4onRFdANUDP8tOz4w1jl96MTIQ2Fea6eAT50YvNNx/yhFzR0s2sMFN+2eP/LX17 G/yEDi1p39H3oWPdrgrYnUw53+xFQ/BAolh+t3/CW5K2Ym80zQY/wbPbQKOLU9R6AjIV 6aTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XBBM5T3kVHHT7hpHVLU7V4Xrc0MtiKbWJ4TBJ3+cCpk=; b=m6PC/BRJ9STxB5EL1zNAgQb/u0MN8ngOUqn1s4PtpKMxpRGofLWGeXtJT/5/d8RA1i HZTynWGgSVEp0gEkur1g+JHcmD3EuZchGs76F5r4KfwZ4kLoR8Tm/P9UJVfippYOMfGN Hxd5UVECt6Ypm7ceICb4djviw9itOc48pRr52tovf8dkQIcLuuHRsp8F+FnR30d7tT28 U/gMjEqMssa35p8J0G3cvf59GZ+YMz6eKEr3ObHuLki7kV/nz31AjfA45hy9jlFgeWwJ 4m3J+iIGCZ4U7vuGIKbXa0Fx1w01/0mllu9v6g03N/DoJRW3dJ6n3AugcQ/ETow8bh+x yh1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=opVvXxvF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a50fb91000000b004580ae4abfcsi420470edq.460.2022.09.28.10.01.33; Wed, 28 Sep 2022 10:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=opVvXxvF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233787AbiI1Qs5 (ORCPT + 99 others); Wed, 28 Sep 2022 12:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234277AbiI1Qsk (ORCPT ); Wed, 28 Sep 2022 12:48:40 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B3B7E7E0F for ; Wed, 28 Sep 2022 09:48:39 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id f193so12770104pgc.0 for ; Wed, 28 Sep 2022 09:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=XBBM5T3kVHHT7hpHVLU7V4Xrc0MtiKbWJ4TBJ3+cCpk=; b=opVvXxvFqmzmhFSe3McNIRfbDxHZyLqwwfnN2oiJR0s8dEpM/VbkebaihvAOV5QXbL c6xLPhIr9m81Z3kkYo2gBLy0HNfSOG/Vrs+D0JFk6qDRrM9SRvYBWftrgh+uo8fLQkzA 4QharKQprH3YHSKgGpdPz9o283cO+wM0j1VgT/mkvY20psp98F9aYGd+KOwF11IrtrCk TijaoGWohBL/iqZsY2sOY6FhWuy/Yar2SXOXPIephM1jzv8tzqSyuMkM+jmvthdMSJBU UGB3R+RVq0IVVmTG1IIJUgezPW7yHPDpcZqxkc9z0sg6UkssmsgjDRBZWeaUXOmhoMdP 9NUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=XBBM5T3kVHHT7hpHVLU7V4Xrc0MtiKbWJ4TBJ3+cCpk=; b=oytWpiR39/H64WBEJ6tjPPAQ4Zs7LgtSLoe0XsoL7uh29lBx3zdkcYrkb+wiUY7NBx ZIFcgFRQODymMC/Ng3zjLDAT/OceMFJ+ZK0Ggc0C52c/BPwl1VMnH+cU4HZsrZ9M4pnu iGQiE8MktILTHx6f9JW7k2tIhnqKUuQfI/xrVCfGAf8aLuBG51DV/ZekIyU6F7XEVcU9 wjQRHr0kbUzclysDwq6X7An8j/hde+JV4MHSQGpKzsYgmsf3xxpJkJoBG0dRQkXJlYSH MJEs8cCUyaB9YovDNdLT3BNUMYHrRVp6AURYu10/F94MihOnx0hqnoVP8L+OsebSBRzM K8zg== X-Gm-Message-State: ACrzQf1+MC6E4q/BEZB9+wmbEC95X2hXeuH1vmSwEdsPYTV1Xwdbo9+A t+fs3DRIuDU0ZE2euXthkG3aSA== X-Received: by 2002:a63:db4a:0:b0:43c:9d3b:9c4a with SMTP id x10-20020a63db4a000000b0043c9d3b9c4amr18325130pgi.474.1664383718552; Wed, 28 Sep 2022 09:48:38 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id x188-20020a6286c5000000b00537e40747adsm4209922pfd.36.2022.09.28.09.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 09:48:37 -0700 (PDT) Date: Wed, 28 Sep 2022 10:48:35 -0600 From: Mathieu Poirier To: "Peng Fan (OSS)" Cc: andersson@kernel.org, arnaud.pouliquen@foss.st.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH V8 0/2] remoteproc: support self recovery Message-ID: <20220928164835.GA2990524@p14s> References: <20220928064756.4059662-1-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220928064756.4059662-1-peng.fan@oss.nxp.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 28, 2022 at 02:47:54PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > V8: > Rebased on linux-next/master tag: next-20220927 > > V7: > Per comments from Arnaud Pouliquen: > Typo fixes > Added A-b tag > > V6: > Rename rproc_firmware_recovery to rproc_boot_recovery > Drop the unlock/lock when do reproc_attach_recovery > > V5: > Rename RPROC_FEAT_ATTACH_RECOVERY to RPROC_FEAT_ATTACH_ON_RECOVERY > Add kerneldoc for rproc features > Change rproc_set_feature to return int type and add a max feature check > Use __rproc_detach and __rproc_attach when do attach recovery > https://patchwork.kernel.org/project/linux-remoteproc/cover/20220615032048.465486-1-peng.fan@oss.nxp.com/ > > V4: > Based on Bjorn's comments on V2-2 > Move the rproc_has_feature/rproc_set_feature to remoteproc_internal.h and > Keep rproc_features still in remoteproc.h, because we use > RPROC_MAX_FEATURES to declare bitmap. > Update commit log for patch 2/2, and add comments > > https://patchwork.kernel.org/project/linux-remoteproc/cover/20220323034405.976643-1-peng.fan@oss.nxp.com/ > > V3: > Resend the wrong labeled patchset > https://patchwork.kernel.org/project/linux-remoteproc/list/?series=621311 > > Write a cover-letter > To i.MX8QM/QXP, they have a M4 core self-recovery capability without > Linux loading firmware. The self recovery is done by > SCU(System Control Unit). Current remoteproc framework only support Linux > help recovery remote processor(stop, loading firmware, start). This > patchset is support remote processor self recovery(attach recovery). > > In order to avoid introducing a new variable(bool support_self_recovery), > patch 1 introduce a new function, rproc_has_feature to make code easy to > extend, cleaner, such as we could move "bool has_iommu" to > rproc_has_feature(rproc, RPROC_FEAT_IOMMU). > > Patch 2 is introduce a new function rproc_attach_recovery for > self recovery, the original logic move to rproc_firmware_recovery meaning > needs linux to help recovery. > > V2-version 2: > https://patchwork.kernel.org/project/linux-remoteproc/list/?series=621311 > Introduce rproc_has_feature > > V2-version 1: > https://patchwork.kernel.org/project/linux-remoteproc/patch/20220126085120.3397450-1-peng.fan@oss.nxp.com/ > Nothing change in V2. > Only move this patch out from > https://patchwork.kernel.org/project/linux-remoteproc/list/?series=604364 > > Peng Fan (2): > remoteproc: introduce rproc features > remoteproc: support attach recovery after rproc crash > > drivers/remoteproc/remoteproc_core.c | 62 ++++++++++++++++-------- > drivers/remoteproc/remoteproc_internal.h | 15 ++++++ > include/linux/remoteproc.h | 16 ++++++ > 3 files changed, 74 insertions(+), 19 deletions(-) Applied. Thanks, Mathieu > > -- > 2.37.1 >