Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5948090pxb; Thu, 27 Jan 2022 03:11:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyCD8OZdKG/N9GJilzXyDHVyYQxr8j/dVwRLjHNaIIUIZDEXAI7VbumObZn5Qwq1a0Yy+i X-Received: by 2002:a17:907:9693:: with SMTP id hd19mr1090552ejc.447.1643281902342; Thu, 27 Jan 2022 03:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643281902; cv=none; d=google.com; s=arc-20160816; b=mP9bMutvwh43Frra72BGKNoa6nLwFMfQ9BD9+qji3RhTSfzIRxZ9Uz/P3F4VwoH7C7 wJH8iag4pSmXiRAv74Ysdo49idNUdzk6s0FmDM1PF8ZSX7FTc6eeqUdLAIeQPtI0n0df JfbXsjSNwr/X0135JC5ET5PkinAsZ9I3cNajIXv5gBHQOXbEmzGmQ1aPnTPhLzzHNj1p 2QIlWD23Jb1MeKI0nEzbU5g7gaoni/a5eNGze3liQvDK8kBHSQvaPvXZOHFiOxF8Auh6 qOOjpVeJMBNHdTd2ZMrnQyLHDe/9e6tHYB/VkFh0JMrJyRwAhzmbJ+7tVSeG382N/C2Q LcdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=sSmNaj2Cf5aK0r0+S1x/FHcyLBp62rFR+5TzQWIoaDY=; b=lcuX82rHMBn6uEV4fRcbTRzJPhpI77kKtDhBCPZpWvYC1PTQPQ3OOg2sgXamltjId8 8L357+gn1nFli3wCabUQ+y1ityYKKy0M/3D5YaVXOxXtbunGKMhB3eI+0w4hkfWC9IF0 I5vNA00vNrVfQ5+roisFWKWt360T6Yn9YJSswuASsoiGrJqGmOJlRvBThpX9Xt4TSKEY tLvdrC1rcGNYIe1kBDVJ6VlxOL1Pqr40ySheASo8ndsk3/FpMOCM+9ZnH9Dvw7DnyaMY IBhNnqtDWOQb33kzWDA80+9pE/EStHjQiauYXWnXxaf1+RH389b898sNwQAMRBheLV91 QHdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VmwJjVUy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd19si1287067ejc.610.2022.01.27.03.11.17; Thu, 27 Jan 2022 03:11:42 -0800 (PST) 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=@mediatek.com header.s=dk header.b=VmwJjVUy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235644AbiA0DPT (ORCPT + 99 others); Wed, 26 Jan 2022 22:15:19 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:57124 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229997AbiA0DPO (ORCPT ); Wed, 26 Jan 2022 22:15:14 -0500 X-UUID: 0b38b9e9e9654f7dbdc1c4993f352262-20220127 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To:Subject; bh=sSmNaj2Cf5aK0r0+S1x/FHcyLBp62rFR+5TzQWIoaDY=; b=VmwJjVUyoJp7TYq/1ouJWxRDN2oRrbxLZrccJhbEVORpgSoXFvUG9g1i9LtI48FelTQPCGAslFpJS8C7qmeY872g5FXSZ718iRZrCv4tppa9sVyQKjHdLtVuhIDV0RMEwbVBBrFDlAlFewWI90rkBghd1BowaSmvJl7R7/ZOU8U=; X-UUID: 0b38b9e9e9654f7dbdc1c4993f352262-20220127 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1126821713; Thu, 27 Jan 2022 11:15:12 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Thu, 27 Jan 2022 11:15:11 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 27 Jan 2022 11:15:11 +0800 Subject: Re: [PATCH v1, 6/8] media: mtk-vcodec: prevent kernel crash when scp ipi timeout To: Yunfei Dong , Alexandre Courbot , Hans Verkuil , "Tzung-Bi Shih" , AngeloGioacchino Del Regno , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa CC: George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , Steve Cho , , , , , , , , Fabien Parent , Macross Chen References: <20220127025544.10854-1-yunfei.dong@mediatek.com> <20220127025544.10854-7-yunfei.dong@mediatek.com> From: Macpaul Lin Message-ID: <220f3e0a-3203-6f6f-8cc6-b5f24bc1feed@mediatek.com> Date: Thu, 27 Jan 2022 11:15:11 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20220127025544.10854-7-yunfei.dong@mediatek.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDEvMjcvMjIgMTA6NTUgQU0sIFl1bmZlaSBEb25nIHdyb3RlOg0KPiBGcm9tOiBUaW5n aGFuIFNoZW4gPHRpbmdoYW4uc2hlbkBtZWRpYXRlay5jb20+DQo+IA0KPiBXaGVuIFNDUCB0aW1l b3V0IGR1cmluZyBwbGF5aW5nIHZpZGVvLCBrZXJuZWwgY3Jhc2hlcyB3aXRoIGZvbGxvd2luZw0K PiBtZXNzYWdlLiBJdCdzIGNhdXNlZCBieSBhY2Nlc3NpbmcgTlVMTCBwb2ludGVyIGluIHZwdV9k ZWNfaXBpX2hhbmRsZXIuDQo+IFRoaXMgcGF0Y2ggZG9lc24ndCBzb2x2ZSB0aGUgcm9vdCBjYXVz ZSBvZiBOVUxMIHBvaW50ZXIsIGJ1dCBtZXJlbHkNCj4gcHJldmVudCBrZXJuZWwgY3Jhc2hlZCB3 aGVuIGVuY291bnRlciB0aGUgTlVMTCBwb2ludGVyLg0KPiANCj4gQWZ0ZXIgYXBwbGllZCB0aGlz IHBhdGNoLCBrZXJuZWwga2VlcHMgYWxpdmUsIG9ubHkgdGhlIHZpZGVvIHBsYXllciB0dXJucw0K PiB0byBncmVlbiBzY3JlZW4uDQo+IA0KPiBbNjcyNDIuMDY1NDc0XSBwYyA6IHZwdV9kZWNfaXBp X2hhbmRsZXIrMHhhMC8weGIyMCBbbXRrX3Zjb2RlY19kZWNdDQo+IFs2NzI0Mi4wNjU0ODVdIFtN VEtfVjRMMl0gbGV2ZWw9MCBmb3BzX3Zjb2RlY19vcGVuKCksMzM0Og0KPiAxODAwMDAwMC52Y29k ZWNfZGVjIGRlY29kZXIgWzEzNV0NCj4gWzY3MjQyLjA2NTUyM10gbHIgOiBzY3Bfa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