Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp626941rwd; Thu, 25 May 2023 01:19:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XJaPIvVXupeG2i6rsIse701vCGCJiJmvEfJddzdLbLNoCaqx+nDDqQSCOZe+Pg5JdkaFk X-Received: by 2002:a05:6a00:2d29:b0:62d:8376:3712 with SMTP id fa41-20020a056a002d2900b0062d83763712mr7237369pfb.28.1685002784612; Thu, 25 May 2023 01:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685002784; cv=none; d=google.com; s=arc-20160816; b=Um2nF6TBXLiRbWBPO8xs5dLvgY87MEckCz6RIjFF8J+llFfl7sstZM5Xf/qPuw31A8 AuSUhUyXgdBD5Fr4Omh2qgUYNFt0ZdQ646mL8gyR+Qs5k5UNQEt/C2HLbSmunq779dm7 6PLnnfVk7mKTWr0dg4ilMrDPnG4N4E6CvKnAqnYOD2SfUTByhMNhILDyaMvub76pPgQc P7E67Yyyfk8AwEdJq2tmiLlvFYvCcfg+3NHJJnAB6cj1xtdrCmQs1VQqEg89WKMtD9jk imGUhaqwxbyfpuVHmTYigYzvgaOoDDeM4FifLcgWhJneVgfIaOHRsTkU4pQ8rXNEl1l0 PtGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2cxPPjWqLuUAp9zE66pkb4iNbDL4XjUNmuYOVuIS6rc=; b=jHGJ7IKaRqDVAe6JLiemG4YNFBSwE6VH7U+i1IOJIuOLzrA9P8xYPrNc8Rbm6W+TJ0 nKoFCf4DqES3fRxc300X7LG+vhptyfZRQ7vl8WjLqZEu8bIXiZsmtooxbzq4WVqGxm+4 +B8WJTK/pAZOAvTNZbVRRuRd7P/WXwBQRC9/6Xv1o9tsLtKGaEnpXO6vYnokf7xo7llo sZld6/XtoH2UVLHmAW2Bkd98FWnQVT1prEuqOaZR7gTNtcdJyzHVTSOhgB5qYif6I5Tk qhtIEKEp0P/d7fUR/RzdIIQfRWxXtVR8/OtrnHjcXvF0+rahJvFurXech4V64cYgfz7h QnpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DmGcEqdB; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a63b544000000b005343c3db9ebsi553991pgo.616.2023.05.25.01.19.29; Thu, 25 May 2023 01:19:44 -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=@collabora.com header.s=mail header.b=DmGcEqdB; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239092AbjEYIMe (ORCPT + 99 others); Thu, 25 May 2023 04:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239153AbjEYIMa (ORCPT ); Thu, 25 May 2023 04:12:30 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3325C18C; Thu, 25 May 2023 01:12:27 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab] (unknown [IPv6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 14C126605835; Thu, 25 May 2023 09:12:25 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685002346; bh=U1OuA9KiKKzfHNwI0WOpa1d4Zr7n714CcEvD1zhZC6w=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DmGcEqdBZfRjNcCcg7vdJC4KvaOEXYsriTTxXv9PiB5qaeWLi3/Np6g8XCm/JnHnz B7Om60vQzFU4ymuNaKOgC7ABYX3qUbI+jHxMiFGDkBdAPuK0sQEuWvtdh+9t1Wxbyg VQV9iPQmzM8Tw57Imzm4oTdyRWBgOHymsnt3cB0RMOf6b7wDAVfiU8O+5xFi9dng/A PgxGMIPjl+CWWl9RaJMptRFtv8+vD0EX+EHYqKrKBAOLEQcqmzb47tfDH4ckp/59oo p/bgWhnWtjf/LSvKX7bGUa9DotB04pteK80SRG/gEAp3iZiLyhDCx7xgEAAlwOiMqG DUbt2EcCgRAcA== Message-ID: <9c160f44-c9ab-99a6-6ae6-ee4e0790b7f0@collabora.com> Date: Thu, 25 May 2023 10:12:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v4,3/4] media: mediatek: vcodec: move core context from device to each instance Content-Language: en-US To: Yunfei Dong , Chen-Yu Tsai , Nicolas Dufresne , Hans Verkuil , Benjamin Gaignard , =?UTF-8?Q?N=c3=adcolas_F_=2e_R_=2e_A_=2e_Prado?= , Nathan Hebert Cc: Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20230525014009.23345-1-yunfei.dong@mediatek.com> <20230525014009.23345-4-yunfei.dong@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230525014009.23345-4-yunfei.dong@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Il 25/05/23 03:40, Yunfei Dong ha scritto: > There are so many lat buffer in core context list, some instances > maybe be scheduled for a very long time. Moving the core context to > each instance, it only be used to control lat buffer of each instance. > And the core work queue of each instance is scheduled by system. > > Fixes: 2cfca6c1bf80 ("media: mediatek: vcodec: move lat_buf to the top of core list") > Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno