From patchwork Thu Nov 17 09:24:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?WXVuZmVpIERvbmcgKOiRo+S6kemjnik=?= X-Patchwork-Id: 1814 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp299773wrr; Thu, 17 Nov 2022 01:28:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TjocnTgCmAktU4EUy8qc9XRp0LTuRvcJsgFxRyD0DPiX1Pw0qr+/EC1+RuHGyTgvfGvfw X-Received: by 2002:a63:1d24:0:b0:476:c6c9:5bc2 with SMTP id d36-20020a631d24000000b00476c6c95bc2mr1221850pgd.500.1668677322255; Thu, 17 Nov 2022 01:28:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668677322; cv=none; d=google.com; s=arc-20160816; b=NKpHxzMRKm5oZu+6f6t0DmS8lnailX1fGnZG9ZxBqiMgVMjGDZcQIAOU4FUuI3VcN0 I/k2kHJUmMZ8MrRcJevJhiKd0bX15GITGEBwhmwRDLOMqSQy4zz8sAjU0ysA3nCIuZg7 ux/PBpxdzxbcHMphzQBYSzyld5bgizs8q3P2FDYWs3SlsXH3UqNhQAEyS7Ek3Juel6Ak QPieoePASEH8RWITjByTGyXpA0tDimk7CnFZhNZUVUGOTFkn51kYIclRG9QEhtfOkiJM Go4myxtpEF3kEHZkloKLMuX+1rG/t8Fraq+/MS5gEYhSEDd2CbSvHfmijAz5leLt2Bko KLuw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=JAFS2SBfo8VzxEGJ0pjZndI5mpC53oii67xvJ1Ckkts=; b=J0FnSF1OnlFYjMKsXhrgJC3JXiP2IwmKCK0VN6aHR6lWSEwMuYJLA+eldz7bWhXp6u UyzJWcSi28Bc7Pt/sZc/p3bpvLUiMuUg2ApXSCMU3re9Z7punZQ+fvYUH/Br6rrhY6+B yTULTeHTBY30EYPVsQ1Xy6n5YDx4map0J/1Q48oqK4WeX/XD10K/Y2MY9K6WhDod7iqB Rb90s4bZ9jxCBUXW+/xp13JzOmEqeyJHVQq8tmk1K0dIM7ZUOHVu780i5uvcNlIplyX5 FGIesbvWWlVLHpOlJ/IhP2dEslsJhlbEgLMgZgnk1x1LkrMi6sSMqjfrPnVyLR4YIKul VrvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YCESVN2L; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a170902d64d00b00172cb948c68si474988plh.227.2022.11.17.01.28.29; Thu, 17 Nov 2022 01:28:42 -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=@mediatek.com header.s=dk header.b=YCESVN2L; 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 S234248AbiKQJZa (ORCPT + 99 others); Thu, 17 Nov 2022 04:25:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239157AbiKQJZJ (ORCPT ); Thu, 17 Nov 2022 04:25:09 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90AC565FC; Thu, 17 Nov 2022 01:25:05 -0800 (PST) X-UUID: be9fe30af4d34b8197ca220056917c3a-20221117 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=JAFS2SBfo8VzxEGJ0pjZndI5mpC53oii67xvJ1Ckkts=; b=YCESVN2LnQxhnjyaz+Q8WDAdJIeCS3HYH/zQsAQCKgq8rnCK5wcsbdonzWlwmIn5KQyXrLKLH3iD81XXQZ8LWJoneCRk8wNOUkiqNEmfHB1AaEfP6SKxdK7qBGNx2ij0CEptajqxdAJCYXfuGYPtp4Uho0x0GtS0jkd/DImdJQg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:223438b7-c0c9-425d-ba82-e96a07c9c98f,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.12,REQID:223438b7-c0c9-425d-ba82-e96a07c9c98f,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:62cd327,CLOUDID:2a340c2f-2938-482e-aafd-98d66723b8a9,B ulkID:221117172459WF6E6G21,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: be9fe30af4d34b8197ca220056917c3a-20221117 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1960576712; Thu, 17 Nov 2022 17:24:56 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) 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.792.15; Thu, 17 Nov 2022 17:24:55 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 17 Nov 2022 17:24:54 +0800 From: Yunfei Dong To: Yunfei Dong , Chen-Yu Tsai , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Tiffany Lin CC: Mauro Carvalho Chehab , Matthias Brugger , George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , , , , , , Subject: [PATCH v2,0/5] media: mediatek: vcodec: Fix decode random crash for PLT test Date: Thu, 17 Nov 2022 17:24:48 +0800 Message-ID: <20221117092453.31366-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N 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,SPF_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749734992361135915?= X-GMAIL-MSGID: =?utf-8?q?1749734992361135915?= Decoder may decode timeout or error when PLT test, fix some error condition not reasonable. patch 1 fix getting dst buffer NULL. patch 2 fix inner racing mode fail condition. patch 3 fix h264 crash. patch 4 fix vp9 crash. patch 5 fix core thread empty list. --- changed with v1: - add Fix tag for patch 1. - fix comments for patch 3. --- Yunfei Dong (5): media: mediatek: vcodec: Fix getting NULL pointer for dst buffer media: mediatek: vcodec: Can't set dst buffer to done when lat decode error media: mediatek: vcodec: Fix h264 set lat buffer error media: mediatek: vcodec: Setting lat buf to lat_list when lat decode error media: mediatek: vcodec: Core thread depends on core_list .../vcodec/mtk_vcodec_dec_stateless.c | 13 +++++---- .../vcodec/vdec/vdec_h264_req_multi_if.c | 28 +++++++++++-------- .../vcodec/vdec/vdec_vp9_req_lat_if.c | 15 ++++++---- .../platform/mediatek/vcodec/vdec_msg_queue.c | 2 +- 4 files changed, 36 insertions(+), 22 deletions(-)