Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp259271pxx; Thu, 29 Oct 2020 01:46:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIHHoqpWYuhcZQv9ieT+4WyTWQde83OrUmA+VUcjupVu5bfrbekV+V0DRiOplzXC/O9k/7 X-Received: by 2002:a17:906:742:: with SMTP id z2mr2890954ejb.57.1603961178809; Thu, 29 Oct 2020 01:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961178; cv=none; d=google.com; s=arc-20160816; b=yUaBE5Ua99SbG0SAMbozBejrNyzj6nM/pk4L/FEO94vxplDs6ckiC6F6pVCA240P51 A97g6GiFy8VloeBnPvyXJxEKF878QPgLhjJOMiUIxaofPsdRwK/CcrUbqNtjkfz4b0AJ mrM3QwNoShvdIKaFwBVJYwClxwuMGd8xZBd4q8Utq3IYCtrHvqsDB/nZlkVDcBqm4FZs aE0G+4QUhAgtE3Tv9bZ0VT8pLc1db/BwVhn+nLZ6a8uRGHMioaHACTn6JwCpswrjhZkb V1QkJ3cHdTX/X3UZ0OLM31s2v6k+wyKPKX8PqxdlxsSIhq1ah0QcvjV39a5JHuYJRXrg zhfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=twT+r5b5fxyEgKPFMU6gXc8bZs5Mwk3ZxfFWSI7c33Q=; b=WcxEVn8AnNsZkeS906jWUipBnjDqkQ6PoFjFve4u4ontkZAL1wn0zLb8WGA4YTP6A0 ZYEkJ3ZJRiAYtsjnvmqUuw5z1TjVWffN0eRMdIYwrm1zXRFj2EmXn434PjKlqkTLqxA9 acYduPJYhkR7Sje7rXIuYP+DxjbdwWtGQghfjpTw2S7LVpUpensTrLT2ArgWiJCDUrAt Yh+HPIFk/uAN717rT15EAJMIFjSLPsOyafd7cLcNL7RadDPYklzdPP6TjzRnlVhJv/g2 icjGK0Itj28dwp+nPjQDIrAcskMdlp6PihXGFwz5f0X1z7vF3iS2jwW4/KXIAXk65mYr FMSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=aAlerXkC; 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 h10si1265999eji.627.2020.10.29.01.45.57; Thu, 29 Oct 2020 01:46:18 -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=@mediatek.com header.s=dk header.b=aAlerXkC; 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 S2391033AbgJ2BTS (ORCPT + 99 others); Wed, 28 Oct 2020 21:19:18 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:59200 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730069AbgJ2BRj (ORCPT ); Wed, 28 Oct 2020 21:17:39 -0400 X-UUID: 73a8b9dd3eb04b4ca68919ee44e74dfa-20201029 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=twT+r5b5fxyEgKPFMU6gXc8bZs5Mwk3ZxfFWSI7c33Q=; b=aAlerXkCRKGEwbQ8NukTm+uRpER7Li4/ilkfZdfczcduNVEmyC5M8ZgnftIT3jpEtw4tyeWcNn7X4qgJg/BEGRgDTKvPcErgFy3JoHMlV3D7iqseVSV/KAWx4t0nGDTEzJfRrbxuyUEPzZrZPi4gKuv/xHlATLae3bcm05BNCPI=; X-UUID: 73a8b9dd3eb04b4ca68919ee44e74dfa-20201029 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 369329086; Thu, 29 Oct 2020 09:17:33 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 29 Oct 2020 09:17:31 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 29 Oct 2020 09:17:30 +0800 From: Irui Wang To: , , , CC: , , , , , , , , , , , , , Subject: [PATCH 2/2] media: mtk-vpu: dump VPU status when IPI times out Date: Thu, 29 Oct 2020 09:17:21 +0800 Message-ID: <20201029011721.6705-2-irui.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201029011721.6705-1-irui.wang@mediatek.com> References: <20201029011721.6705-1-irui.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org d2hlbiBJUEkgdGltZSBvdXQsIGR1bXAgVlBVIHN0YXR1cyB0byBnZXQgbW9yZSBkZWJ1ZyBpbmZv cm1hdGlvbg0KDQpTaWduZWQtb2ZmLWJ5OiBJcnVpIFdhbmcgPGlydWkud2FuZ0BtZWRpYXRlay5j b20+DQotLS0NCiBkcml2ZXJzL21lZGlhL3BsYXRmb3JtL210ay12cHUvbXRrX3Zwd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