Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4493424rwb; Tue, 17 Jan 2023 01:21:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXu+25Sxh9K9EMLt70snfi3XiaFr/HmQkG+DzzvJscpCAr9J/OnKMgxm4jT1WeVWswPLivb7 X-Received: by 2002:a17:906:6a27:b0:872:8c97:db27 with SMTP id qw39-20020a1709066a2700b008728c97db27mr1821262ejc.69.1673947317158; Tue, 17 Jan 2023 01:21:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673947317; cv=pass; d=google.com; s=arc-20160816; b=J8mJ26t+1rrg+WxTZhKBJ4x1wSs+j8wtJkG0+WjIkb+yMQVjSxQ0GCtQdukwRR+iHp /YtrWK0E+yCf59b9Ezqm+My+0lg+1z80JYhFzPrM7wBfc1fYhWla1/88Y2hACkb8n+DR ZbLIwTR4hIPQgE9Mf6UohQp+OmRhjaeAZTZwWl3+TtxqcJG3+Dcoutaf0td5kpSn0m69 RWv7ioBme08F3Bm0ZyRIMTY8X21isK+QDv62Ztp3Ze6hg9pjRJHLe4p48DF3+AkbgsDi KPyhnlB25c4fEAQSC5vPeGkGunlRpveagb2L6Q36JhlIMs9Y8cK6yZxGSHp/pyHAgHvl 6mhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=+NPopPAK6ZpYrhaQqLQ8fmDdseCZIe4iDOAzTPyxeXA=; b=FYF0r72GSZfndiExzQ4CLJ2nejeLHdXmRMeXXoHngjN7KlPAgI7I1i3JzqBCFV6JP7 Ppjqdca9Er8Q0WjZZQ6taG8zkXTTp6Kmznp1JC6UdiNXoF+ZyzdVptQufIczBYaRxV4I 0X5WNQoKALbq3CVto8w+ffPaC7UzLaCx+l6C/jsMHCprhNeUE8byHcRbgwxKRFlT8GmI cFasvyEixu8jKyBN0tazsOIQK1EsnR7CWdubA1BzB6WVMeZJTCXPEE/bvQywGpqXos7O DAviwlvjV//XUrzSDnxXLIgM6tQ/IBfWqtsOLE9Z9aUuhst8zXIvgupAt+1nmGdJcOV9 SwNw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=pPuZG5n9; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht22-20020a170907609600b0078200e81b92si1640428ejc.758.2023.01.17.01.21.44; Tue, 17 Jan 2023 01:21:57 -0800 (PST) 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=@nxp.com header.s=selector2 header.b=pPuZG5n9; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236548AbjAQJQz (ORCPT + 49 others); Tue, 17 Jan 2023 04:16:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236531AbjAQJQf (ORCPT ); Tue, 17 Jan 2023 04:16:35 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2076.outbound.protection.outlook.com [40.107.21.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C10BC33454; Tue, 17 Jan 2023 01:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pb96ClEGWpLiPv4WZGWFmKxraYMNWE7JtmX8QrD+ywlcD/Xb6nMEa9Lmsqm5IX4iXZJ0Jn0FWU6i5gxTbExTKdTyu4WBY+qRDJKTeGDzxRsn1N3wOkNekmSR5okMFdti1Cz+uoicA8h1kQa6VoxoJ+w/SVgfB4tHpmGQSuzv/nzMjkc8WVIeQt/0mDbJ+y3iPTDAf1Hmx1BWYJGLLgYkJ9eRlGDzCLb9yy2w9bmgc7QvQxF0vfbDjU3+atL1bvdMmdGa4qVC4pfjGj9jSqQFVx7X1IjxdXyExNJw9jZrKIQc+rLml3/MF7tdflZaOlpy6AbqnaDP9vYMITpvUFbzXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+NPopPAK6ZpYrhaQqLQ8fmDdseCZIe4iDOAzTPyxeXA=; b=azCuKpB0jYDZ5z0B1oVJUCJ+CqG0WuiE5Zac/IaKCrsLj8efFM9N8IBbPM/d3Gf9lesvdn9fAK8yYwfpASubOj0lfjFgz44XW82yHZ7NSNmPDCemYE+8TENr5JbxUc+PPR1dN1ePugm2+XOLg2awh0Al/yzCKxXjhf2BSheGCnSIpAlaRvJOZSUsooxr+g4zszInn7ZXuus30mW8rGqGw9pwurvdxUmNRx6CcN5ecMgfXxpz7aOopzhkAwSxtBKoAFYz0xrCMSGE3f+bh3rxfo427OHvPtWyK/ZwUmGWUmsPn2ba62w3UipCdG9XegLWSP3hXhgyazPjTmBtLPGb6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+NPopPAK6ZpYrhaQqLQ8fmDdseCZIe4iDOAzTPyxeXA=; b=pPuZG5n9Q3pi6+c+GFGs2tQqiOZkt3ltRbcHg/EjEkUd2MD/w2UBW0bEUHS9ksxI42uiHhldDl0R9i6QZMXhQ8fVFkPlNbyDJo9YLXWMtMj5NuSMgXuvowWCWP/LmVTR3ICboT/tFyge+UaghWpNctb3fFPIC1tGNneTjo8HjAY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9628.eurprd04.prod.outlook.com (2603:10a6:10:30b::14) by DU2PR04MB9050.eurprd04.prod.outlook.com (2603:10a6:10:2e5::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Tue, 17 Jan 2023 09:09:21 +0000 Received: from DB9PR04MB9628.eurprd04.prod.outlook.com ([fe80::aec2:20b6:cf99:2886]) by DB9PR04MB9628.eurprd04.prod.outlook.com ([fe80::aec2:20b6:cf99:2886%4]) with mapi id 15.20.5986.019; Tue, 17 Jan 2023 09:09:21 +0000 Message-ID: <2e594495-0eaa-6580-17eb-16f5db76865d@nxp.com> Date: Tue, 17 Jan 2023 11:09:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] remoteproc: imx_dsp_rproc: add module parameter to ignore ready flag from remote processor To: "S.J. Wang" , "Iuliana Prodan (OSS)" , Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , SOF-Team , MPU AUDIOSW-AUDIOSW Cc: dl-linux-imx , "linux-remoteproc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team References: <20230116225343.26336-1-iuliana.prodan@oss.nxp.com> Content-Language: en-US From: Iuliana Prodan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR07CA0160.eurprd07.prod.outlook.com (2603:10a6:802:16::47) To DB9PR04MB9628.eurprd04.prod.outlook.com (2603:10a6:10:30b::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9628:EE_|DU2PR04MB9050:EE_ X-MS-Office365-Filtering-Correlation-Id: 58fae5f5-8e38-4058-b4f0-08daf86a8549 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h86OSHHHM14ULKrqSL/SeS4KnSewhVxlA04XXeeRFUHDUfejwsa/X0DVytJ1bCxanBmGkwVJo5X1BhMzPy6Jt3wlBlBTEqjpTnZW7MEw1kX1UCH9gI+PQnnLhq+dmu+POy/UgBL2WjxKZcIS/Og6r+c8pgmC2k+9ZP43v9jZbh1dptjf3YSPPAOdvZhwAiA6NNRNWykZMNvYiGTJ3YyItdTvys2VYRCkQTZhd7iBCigb9yTgxFUKm1z7/Jx3nndIOcSFNSBDcjqiz2bcxMeVX7hjHKjac1BICT5T7srEIyLl1hzrIO7trFA6nbpFZDmJ0bVimbAhAe0tGZZV60F9rJq0wtxL7rhaDg3LHftypvgc0wsWJaX5Ev3P3lIs1qUE4G7cYzrA9KdTA/m5AYALsDznovE+5NmkDqfuBV+GXstnUM7qWMl1zTN8ops6e7idCkoYiF45exYCwzwvu1sD2nVPBNlVhzI9B20j60QZIB6NS4Jb5DWp8NMPb7zBkQWxyMx11xcwYSRr0fSlsp9KFwzp0+faFoE9ddni8eLVFmalWDFGI1NtsFnFa5g0j7JIn8+S4r38YOI4+JnbDSmR03Q9znexZjpqgillsgnfkPmqPoXMY+rWdVFHUO6BmG1F2OLNXY3I4uK6umiu7ndQJwQyMGFn2bqiEkkBNsn8oJfkoWeVWXJOlyWVMlne5taS8Y4ARq/MGnqDTwtRngaCCTYu27wAXqUskuL0USklZzDnF5RdkWtjzuxuEpI99ywi X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9628.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(366004)(39860400002)(396003)(136003)(451199015)(36756003)(31696002)(86362001)(2616005)(4326008)(26005)(8676002)(6512007)(186003)(66946007)(66556008)(66476007)(41300700001)(83380400001)(316002)(921005)(6666004)(6506007)(110136005)(54906003)(6636002)(478600001)(44832011)(2906002)(38100700002)(6486002)(8936002)(5660300002)(53546011)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?amcvdVc1VWRBWUpoUkdrMU9rcXFMMDBMUkFHUHEvVFNNS2R1NnFzcFRhUHlI?= =?utf-8?B?KzNPQXZpN3h4TVpWRWF1UmRwSmxZOGMwUHBHd2dCTzlKSkNlVDBUUWExNjZ5?= =?utf-8?B?UXNkM09wdndFN3ZXU0M0Wi8zUEIxT3FHWTZVaWFWQlF5YkV5N0hvRFhQL0Ri?= =?utf-8?B?bWhRVzZ6WVp2cVdSUmR5aTJZbVZWZzBOaWtEMEpYMWJrSUtPSzN4dXRZUlpp?= =?utf-8?B?Y0RKeFZ2alFnTU5xck1UaUUyWW5jVkVHNzdkVXRlU3Y3NFpDUkp2ZlE1c2Zu?= =?utf-8?B?aFJRSW1MUnJoNzQyZkwzN2cycUJzWUwvbjMrbExzZEw4SDl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?= =?utf-8?B?VytRb0krTWtnWGxKMWF3bzQxY0NacFpIcDkwMktzWHVDSG9QdUl2SitvRVBn?= =?utf-8?B?Mnc9PQ==?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58fae5f5-8e38-4058-b4f0-08daf86a8549 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9628.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2023 09:09:21.6686 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6rxJJO7c+PDtHpxutS2qRjOupRrf3YQbHSF9dOG/YDdLNuZ0MyWEUJui+TbsBFyjdjE7cneVZ73U/qEyz/6a0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9050 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 1/17/2023 9:36 AM, S.J. Wang wrote: >> There are cases when we want to test a simple "hello world" >> application on the DSP and we don't have IPC between the cores. >> Therefore, skip the wait for remote processor to start. >> >> Added "ignoreready" flag while inserting the module to ignore remote >> processor reply after start. >> By default, this is off - do not ignore reply from rproc. >> >> Signed-off-by: Iuliana Prodan >> --- >> drivers/remoteproc/imx_dsp_rproc.c | 17 +++++++++++++++++ >> 1 file changed, 17 insertions(+) >> >> diff --git a/drivers/remoteproc/imx_dsp_rproc.c >> b/drivers/remoteproc/imx_dsp_rproc.c >> index 95da1cbefacf..ec298f8b019f 100644 >> --- a/drivers/remoteproc/imx_dsp_rproc.c >> +++ b/drivers/remoteproc/imx_dsp_rproc.c >> @@ -26,9 +26,20 @@ >> #include "remoteproc_elf_helpers.h" >> #include "remoteproc_internal.h" >> >> +#define IMX_DSP_IGNORE_REMOTE_READY 0 >> + >> +/* >> + * Module parameters >> + */ >> +static unsigned int imx_dsp_rproc_ignoreready = >> +IMX_DSP_IGNORE_REMOTE_READY; module_param_named(ignoreready, >> +imx_dsp_rproc_ignoreready, int, 0644); MODULE_PARM_DESC(ignoreready, >> + "Ignore remote proc reply after start, default is 0 (off)."); >> + >> #define DSP_RPROC_CLK_MAX 5 >> >> #define REMOTE_IS_READY BIT(0) >> +#define REMOTE_SKIP_WAIT BIT(31) > Can we use a close bit with REMOTE_IS_READY, like BIT(1)? Sure, I'll send a v2. Thanks, Iulia