Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1973220rwd; Mon, 15 May 2023 05:49:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Ge87btk/seZaawYKkYmAtVV1S/74THFTCPjLX1gph7D2IOF5DtbslJGyxU7vktT1EwImq X-Received: by 2002:a17:902:d38c:b0:1ab:675:3e31 with SMTP id e12-20020a170902d38c00b001ab06753e31mr39974515pld.37.1684154951577; Mon, 15 May 2023 05:49:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684154951; cv=pass; d=google.com; s=arc-20160816; b=jE4nKoXRfi6ryelKCQWUO1niJYhp3+BMQiH25mEk25qjxvrenYgfyMYWDkgDJa1a2k sFp9MPbHKlvxJi3E/x+ps9LzpZlyIvUaORGWvAeEgupeN54jPnniEsL52YJEiex5mIm8 PT5O0OB0Bbn9JhdFfUwfYbNVt3Faq4XpcGWN6xwp+g/uQHe6Zc99MoOOE7ZX9bhlvevh wQUtfQfanyvX0YJhgFdgERB3ChJysc6vOL3Wmd77CS0d1xqI1XmNdUg43+Kwv53b5trJ nuK/cFXoQuScWvQzGd/NcBdqjZEGj79h9v4kDgG2E4rIcV2cjw8ZzS5oPw2Kkn/+7nMQ 9YHw== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=dAey0wC0Mx98XFbKgX0ikjWCnRouSFDlygAAKyMWddw=; b=tkRVEOszv+9vJyvVZrQBa3gb7etuYfGA1YAGaZvuF+m7/YxAxPIdjsNlGVwCHueQoO FUOuFMFS4sDDUrvX8Qo6MKUBp3nqQ2HMtLwWzp6OODIFrNoeUO37rlXbplLp7VWjHPMQ MAV9U+CP614FalrTQ4VPtIY7zhkUB9jvgu81Ygsslnw+/LykPe72gmiXEnI5NV+yZ/I3 hBNm8+GQ2kaWZRE4u7MjOavDHwBOw9R6cIrsfLvh7sX9PpX2dn5ovt+vJ6HlBKWXtXU3 ZGdWGh0gXk1L6vM7dt5hsVXddnfjUi5UBwoRJUI9VnRUMvDkiUxAATUJF7ThLn1OYe/2 sckw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IpGH25Zr; dkim=pass header.i=@mediateko365.onmicrosoft.com header.s=selector2-mediateko365-onmicrosoft-com header.b=X7Rtz2GV; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g22-20020a1709029f9600b001a1f70cc7dbsi15254969plq.562.2023.05.15.05.48.56; Mon, 15 May 2023 05:49:11 -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=@mediatek.com header.s=dk header.b=IpGH25Zr; dkim=pass header.i=@mediateko365.onmicrosoft.com header.s=selector2-mediateko365-onmicrosoft-com header.b=X7Rtz2GV; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241326AbjEOMb0 (ORCPT + 99 others); Mon, 15 May 2023 08:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238273AbjEOMbY (ORCPT ); Mon, 15 May 2023 08:31:24 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 140E2E6D; Mon, 15 May 2023 05:31:16 -0700 (PDT) X-UUID: 5f6c6bd8f31c11edb20a276fd37b9834-20230515 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=MIME-Version:Content-Transfer-Encoding:Content-ID:Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From; bh=dAey0wC0Mx98XFbKgX0ikjWCnRouSFDlygAAKyMWddw=; b=IpGH25ZrdnHVhzkKwO0x3SriplHNMoczDmKDiVHe1Pj551eVRU5CsLCPqMcCsBot/5UIiGLrXZxPq93hy0eEJ9UI4jxxfMQwwEG72kB0lhVuEW9uGNCAKILOut847E68iegvTgUt97Ik7KXfft0IOhlu3bNsTNBtpnsrf0FlTVA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.24,REQID:0a6a070a-3cc7-40e1-bfcd-5a787953b2f2,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:178d4d4,CLOUDID:b6a0383b-de1e-4348-bc35-c96f92f1dcbb,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: 5f6c6bd8f31c11edb20a276fd37b9834-20230515 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1885425040; Mon, 15 May 2023 20:31:10 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 15 May 2023 20:31:09 +0800 Received: from APC01-PSA-obe.outbound.protection.outlook.com (172.21.101.237) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 15 May 2023 20:31:09 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WNiIG8t5U2HGifmlYC+eFWEa+3h8i4Wx9BAxrnfU2EpCos0LLLgV9GM9SOqyQI8AwDkMOi9PeM5TmkMhKrltgkSoIdtXfJ2v5gwgb00xrkL/TVShVPBmOfTXeIJrvXq2K7ouQb3P66wk58nOqcqgqTB06JwICG7vE+klRDpoMOMJ4ssu+Xe488JZmz7Zi52cWVcYuKGBX32M6R4K16I1vVIJ6EeQm7OHxl1z8F5WwsFwzGXUlPdaxR6Oy+w2uBQYKqDfbvTWW7wChouIHY2WEyGp5XSk1TttOQK1Uzs8WT/twTM2Gr8m9G7UvQjZ0wEcElIrptlibYwT4Qch5ZG+xw== 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=dAey0wC0Mx98XFbKgX0ikjWCnRouSFDlygAAKyMWddw=; b=Cb0rTjaJM+uOCzsmRo7KJ/x20LmHy4Dqr63NzxpauWlKRjP3eiCdpHsS55AJXHJx4UElzIUf7dyabhiJ4pl9Ob/8/ef/JosW3BglSacFXMggNvDjwZWCyMmFY7QF9skGTFZLLudQRj/msSTYGCf9fTVKKFsjR0NiCC/jEQ+fAzfOYFDy8OMheURUNl7B/N05ar4+X1bytdkmw9ak2LohUGix9NOfbUMRQ5IATtTaeU5nxOhU5bb+fPd2FVILPBnxiOM1qMXjeszMLipMltlBdeUz8jR9BDH1cNWz5kYsQKWewMEyn0ic6LNDYPGwyvUTDGsQgay5gi7Z2FcL0Qn9yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mediatek.com; dmarc=pass action=none header.from=mediatek.com; dkim=pass header.d=mediatek.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediateko365.onmicrosoft.com; s=selector2-mediateko365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dAey0wC0Mx98XFbKgX0ikjWCnRouSFDlygAAKyMWddw=; b=X7Rtz2GVAUPvpMu0eBxLRa1b0C0oXdP9SXgTn1BlEn6OQ6RSRuAmHDWV6PB5IRiT6fg+ac5cK6AL+epVgshKH4zWko+fdsK2aytdXBgQ671OKDFN8dA/W3UaxRhHglOrvSm1kLjFeMXAHp7DoQT72JHiGPSASjE0m8REnSvny2c= Received: from SL2PR03MB4204.apcprd03.prod.outlook.com (2603:1096:100:53::15) by JH0PR03MB7934.apcprd03.prod.outlook.com (2603:1096:990:30::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Mon, 15 May 2023 12:31:05 +0000 Received: from SL2PR03MB4204.apcprd03.prod.outlook.com ([fe80::2648:bb51:77fb:125b]) by SL2PR03MB4204.apcprd03.prod.outlook.com ([fe80::2648:bb51:77fb:125b%4]) with mapi id 15.20.6387.030; Mon, 15 May 2023 12:31:05 +0000 From: =?utf-8?B?VGluZ0hhbiBTaGVuICjmsojlu7fnv7Ap?= To: "mathieu.poirier@linaro.org" CC: "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "linux-remoteproc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "conor+dt@kernel.org" , Project_Global_Chrome_Upstream_Group , "linux-arm-kernel@lists.infradead.org" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "andersson@kernel.org" , "angelogioacchino.delregno@collabora.com" Subject: Re: [PATCH v11 06/11] remoteproc: mediatek: Probe multi-core SCP Thread-Topic: [PATCH v11 06/11] remoteproc: mediatek: Probe multi-core SCP Thread-Index: AQHZgwoIWKxcmJiYDUK3yi+HI1wHNK9W8AsAgARcGoA= Date: Mon, 15 May 2023 12:31:04 +0000 Message-ID: <968894ff6a9ed9cfb71cd28eb3552047e4d298a6.camel@mediatek.com> References: <20230510063749.5127-1-tinghan.shen@mediatek.com> <20230510063749.5127-7-tinghan.shen@mediatek.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mediatek.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SL2PR03MB4204:EE_|JH0PR03MB7934:EE_ x-ms-office365-filtering-correlation-id: 269d1768-7b1c-4696-172c-08db55404058 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jZbwQWr2/c+GrvMJheLkiQG9xITG9bQyZ58S9PXvjj8IPTCtjofh8WN4jClNS9ZamEZRRLXR1d3obY4A79o7L8XvbMQD9/gw9XkNZr9sf2wMLPfvQ+shfdQYMJ2GjlxTfJbgkTbU1b/qECjHga9KAP+sdVlX+0Z/yavS4uqwaHYsSEkmIDUY7cWvZwnbwgdUpReKqRiD4WtKmvy/LKBMaZr114olCWgUuZrzv9HNkFa2UjBtohapptTxYecOU7qlpHoepd2Rda2CxYAz1fk+KJ4feMqzPJGCV66i2qWqh1dbfP38p8vaZDO9mISAjQr6RIiGrZss2vEROKMn/uB5SbsA6yNEtz9u30q2xsVRYfUU/urKhWxyCr8DQ+3uhf+jVTjZJtoes2fATGnmQyhTjf2XoGpdz8nZBY+S+1/8v2Z+uobuKzP61aMC7UqiKfdUFcvb5rAUhcv3Hd/ULBLGmN1xpaYAA/pJV7pafxUjVCKTgi6592tdlXriupEJcNjUePp1c/VgB0C1do46REkKVCspXddaNXJAQ8dBARwtfCxdE5rYAZ3hdZBeCG60JvAd2qNgVGf33OWfEqewIftxULn/dUZMr6fidYrFiChR0Xf6OIT6OaVdKoRw1B3EKNH47G2aNlJc+u5kS2nXZwC1gKtAyhQrWKxx0rAp7/s18kA= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2PR03MB4204.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(346002)(366004)(136003)(39860400002)(451199021)(66899021)(66446008)(64756008)(66946007)(66476007)(4326008)(6916009)(66556008)(478600001)(6486002)(76116006)(86362001)(91956017)(316002)(54906003)(85182001)(36756003)(83380400001)(186003)(26005)(6512007)(2616005)(6506007)(71200400001)(8936002)(5660300002)(8676002)(7416002)(2906002)(122000001)(41300700001)(38100700002)(38070700005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?dU51UFNLSkROcHRZU09XeGtUcVpWeVN6eTVUSUV6VmNpWGYwa216M09NTVlE?= =?utf-8?B?OUttNnFEV3lxYzBYdElNWDU3dTc4VEZySS9LNmgrRDJCWXNJclJGTzNZVjZG?= =?utf-8?B?M0t1ajdDQ252Nk1BN1JyZDUvbTNuT0tHVlBMNmFJQnJYeDNMbURnSXlqc0JZ?= =?utf-8?B?L3cyM1FtcVhwK1N3OUdOc0J5YXIzVWFEZUJpSUpScGlrQnlNNmpHTnJkQlVG?= =?utf-8?B?V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dsdXFxN2s1R0V4dEpNdWg2UVpSeks4?= =?utf-8?B?akxwbzlpWjdSRTd6MTVGNUJ1cDdiMmhhMEwrUXBkaEJiYk80QlU0UjF3OERr?= =?utf-8?B?U2Z2V20xVmdoVEtXR0NKbUdRYjFQdlBEM1JSSEJnRVZUVS9aQVU0U2g1QlZp?= =?utf-8?B?dkE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <419E33211BB13043995A2BAF5475FF05@apcprd03.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SL2PR03MB4204.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 269d1768-7b1c-4696-172c-08db55404058 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2023 12:31:04.8590 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a7687ede-7a6b-4ef6-bace-642f677fbe31 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MPyiyfich0ZRQmBa3/MRQLUzzQ5aJdYj9qMyqQcnfQkRcsXbMtgZcItv/Y1yyz0hsJtYi5ak/AjxYg2OyXDlbil6thxItX7EYM+nY1TPRLg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7934 X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=no 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 SGkgTWF0aGlldSwNCg0KT24gRnJpLCAy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g ICAgICAgICBpZiAoIWNwZGV2KSB7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg cmV0ID0gLUVOT0RFVjsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZXZfZXJy KGRldiwgIk5vdCBmb3VuZCBwbGF0Zm9ybSBkZXZpY2UgZm9yIGNvcmUgJWRcbiIsIGNvcmVfaWQp Ow0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9mX25vZGVfcHV0KGNoaWxkKTsN Cj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnb3RvIGluaXRfZmFpbDsNCj4gPiAr ICAgICAgICAgICAgICAgICAgICAgfQ0KPiA+ICsNCj4gPiArICAgICAgICAgICAgICAgICAgICAg c2NwID0gc2NwX3Jwcm9jX2luaXQoY3BkZXYsIHNjcF9jbHVzdGVyLCBjbHVzdGVyX29mX2RhdGFb Y29yZV9pZF0pOw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICBpZiAoSVNfRVJSKHNjcCkpIHsN Cj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZXZfZXJyKGRldiwgIkZhaWxlZCB0 byBpbml0aWFsaXplIGNvcmUgJWQgcnByb2NcbiIsIGNvcmVfaWQpOw0KPiA+ICsgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIHB1dF9kZXZpY2UoJmNwZGV2LT5kZXYpOw0KPiA+ICsgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIG9mX25vZGVfcHV0KGNoaWxkKTsNCj4gPiArICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBnb3RvIGluaXRfZmFpbDsNCj4gPiArICAgICAgICAgICAgICAg ICAgICAgfQ0KPiA+ICsgICAgICAgICAgICAgICAgICAgICBsaXN0X2FkZF90YWlsKCZzY3AtPmVs ZW0sIGNsdXN0ZXIpOw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICBwdXRfZGV2aWNlKCZjcGRl di0+ZGV2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