Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1767475rwb; Thu, 17 Nov 2022 01:29:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7XCb+3N9ubGAcFxHN0+ltxKGFuku55NvMlOTMafIqQ1jWIj3hBYoy/C9C+lmrEqro8qyGb X-Received: by 2002:a17:90a:6046:b0:213:1936:e6b1 with SMTP id h6-20020a17090a604600b002131936e6b1mr7829937pjm.125.1668677357973; Thu, 17 Nov 2022 01:29:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668677357; cv=none; d=google.com; s=arc-20160816; b=RoqJI6JdXtDdjCKmfDPyJ6wrJa8dAT8WWPb8NGM/GIWcHpExT81PAR0tLtNb5MYfhX /omTVKMcJf2bAYxkDrnDnMjTYJTAinRZ+uiJBY6jyGnwS+9T+C6UxQsmHppTtubWnrxh mhE53eopQwFsSZK6TgIE7fDcook+4Muv2auV/quNrqhMcbaEez/twM7f/pVSF7JrFNZ1 4EI8X64IP8pXit55OBQNC83Am1MthSiP2OIsIjIDDWDjGTD005GlZh71/G0fVBWLcXiU 0D0PuVaTU0nlhTIdMuTJ5DA4VSOQOx1vcGNCE01uFxd3waRwL7arrojKSGl+XxqIx1ft 9eZg== 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 Return-Path: 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.29.06; Thu, 17 Nov 2022 01:29:17 -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 + 91 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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(-) -- 2.18.0