Message ID | 20231213081105.25817-9-aakarsh.jain@samsung.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp7690870dys; Wed, 13 Dec 2023 03:02:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEW3qF+O+aEN0CdNKdVS5Xz4cOMSTeVpyU8T1aDHLDGhRLpIHTAi2Fxa43I0YX+ZsvnofE8 X-Received: by 2002:a05:6a21:3281:b0:18f:c339:3fc4 with SMTP id yt1-20020a056a21328100b0018fc3393fc4mr10348495pzb.83.1702465337466; Wed, 13 Dec 2023 03:02:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702465337; cv=none; d=google.com; s=arc-20160816; b=DCgHpfO7yqBOodl6i+GVszL/JPFFa1v7K7jl4RxrWlmay+4ljLhdtQ0hrZvBgnVVNw D0hjFgUbQmhS6Xn8II9lMkXN0uVvxuxuA1xIEYmjyiyt2zTRfDDpHouL0zQYj0D7yDsz eEiy5h85MLSUXGAUuzkRV/FMak2MQz2imTGrYDCg/kF2Szcfm+e3m0xttbmvffxCAxPZ nE8Et6voCfDkQ9SaQ+ijQoTwapcpQXEYqz4cODbE8dHdby1YwFcsQEA4RwA9T67My8sw pUN0yFafqguAX7iCarTThZrL2NyAkyo14sIe5LHLCSSBlA8qV8jd7b71aRk0pUc3cLS8 Io7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=kUuKQ/GugZxCJUnbvhRG+iSpQR3fWRlMwpAYp/298R8=; fh=jRZx2CGeeFZcE3BVWyyQfQMU6DACuExpX/LJhkP3QWU=; b=DD5Lo5y5ZKf6+72bXOd4EOLFhvqFYLMfalI7tdzPBZUwrogMrX4B5ufp1QepgDUqgV zOtZSVqbFcebkyyuJqMOsfuJ+6ZHQXmPtOz+2nUGpXIaKGMI2S9S2dL1e9SuH7rcKKS4 FJcdBM/Y3bOX/h7PTPAoU3cFyKBLt00NXsR3HQwqnWBkUkH5utXTMKpT6nhKwawsbGLX r09NUu4XkgmMuAHv6JAkiMdGAYRUqOiRXtyTD0yg3HH8oacNwuQXA701LKbm1JRL6dqj GK0pgfskB0JsuU2+rjT2r65OOhY1wiRqF6WA0hUoDTrjmk89AQvp+xPCEfDh8fuNIGfd uqFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FiwTrArC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id pl17-20020a17090b269100b002869d1b1921si9834637pjb.31.2023.12.13.03.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:02:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FiwTrArC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CDF3880B8E7B; Wed, 13 Dec 2023 03:02:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377931AbjLMLBx (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Wed, 13 Dec 2023 06:01:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378325AbjLMLBu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 13 Dec 2023 06:01:50 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C351EB for <linux-kernel@vger.kernel.org>; Wed, 13 Dec 2023 03:01:55 -0800 (PST) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20231213110153epoutp0165c5a77b88d200f70c578288850c1268~gXy7LpUge1398613986epoutp01w for <linux-kernel@vger.kernel.org>; Wed, 13 Dec 2023 11:01:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20231213110153epoutp0165c5a77b88d200f70c578288850c1268~gXy7LpUge1398613986epoutp01w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1702465313; bh=kUuKQ/GugZxCJUnbvhRG+iSpQR3fWRlMwpAYp/298R8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FiwTrArCsrLOTQHzmJtePve++wzQeLPNgwWKxfsFbfhcrIFkoxA27J9LU/U36Y5Jy 4kF97/vmxm1cph3Yn9VTkoa4zwPqFxFzDhZPZWcdUsS/06Ys1soWRbh8L1fj78qJVZ PZjqLAf4uR5l6HUuWlEfwoI2k4FLOEV4GrA7mGqQ= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20231213110153epcas5p301df61e33c3c0db7fa9cd28325c57342~gXy6l8XSe0879108791epcas5p38; Wed, 13 Dec 2023 11:01:53 +0000 (GMT) Received: from epsmgec5p1-new.samsung.com (unknown [182.195.38.174]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4SqsxV14mGz4x9Q1; Wed, 13 Dec 2023 11:01:50 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmgec5p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 53.40.19369.D1F89756; Wed, 13 Dec 2023 20:01:49 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20231213081140epcas5p2bf0e2edea2d24224d775b348b1d5ca50~gVeTgz4fW1902319023epcas5p2c; Wed, 13 Dec 2023 08:11:40 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20231213081140epsmtrp24b96d6c14f801dfb74005a5bf747588e~gVeTfugeq2150821508epsmtrp2f; Wed, 13 Dec 2023 08:11:40 +0000 (GMT) X-AuditID: b6c32a50-9e1ff70000004ba9-61-65798f1da40f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id E5.96.18939.C3769756; Wed, 13 Dec 2023 17:11:40 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231213081137epsmtip2470d0607b940186ae57a923ef5884fb8~gVeQtmtcD1293312933epsmtip2d; Wed, 13 Dec 2023 08:11:37 +0000 (GMT) From: Aakarsh Jain <aakarsh.jain@samsung.com> To: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: m.szyprowski@samsung.com, andrzej.hajda@intel.com, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org, linux-samsung-soc@vger.kernel.org, andi@etezian.org, gost.dev@samsung.com, alim.akhtar@samsung.com, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, ajaykumar.rs@samsung.com, aakarsh.jain@samsung.com, linux-fsd@tesla.com, Smitha T Murthy <smithatmurthy@gmail.com> Subject: [Patch v6 08/10] media: s5p-mfc: Set context for valid case before calling try_run Date: Wed, 13 Dec 2023 13:41:03 +0530 Message-Id: <20231213081105.25817-9-aakarsh.jain@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231213081105.25817-1-aakarsh.jain@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WTf0xTVxTH895r+16JNS9V4l03WPeMbrAUKZRymRa2qeQlc4TFbEtcFLv2 jSKlrW0RxGWCk03IwB/gRrG0jB9b+N1VYEXLYG0N/prTyJibJdDhkB8CTrYJMtkoT9x/n3Pv 95zzvefeS2DCbp6IyNCZGaNOqaV4IZxOb8RLkrDjB5noe9Wb4e8uCxf2znzPgcO2Th6snbuL wqHaWQ70nO3AYXP3NRTafde48JfeLhTesAxyYOlYAIPOkQEuDEy8C2+es/LgZ44OLqz48TsU tvgGcfiV8x8U1nT8icPCbh8OjxbUcV8NpX+ue4DRXZWDOF3rHkdpZ2MRj/YPuHn02brDdGl7 I0IvHqnC6VlnOH35r1k8NWRX5hYNo1QzRjGjU+nVGbp0BfXGzrStaXHyaKlEmgDjKbFOmcUo qG07UiXJGdqlM1LiA0pt9tJSqtJkojYlbjHqs82MWKM3mRUUY1BrDTJDlEmZZcrWpUfpGPMr 0ujomLgl4d5MTfOpGsxwkZ97cWaKm4+UEcUInwCkDFzv7+cUIyGEkHQj4Ov7NowNHiCgZKoB eRpcuWXnraRYb/qWWUh2IaA0sI8VFaJgYNGBFyMEwSMl4IdvtUHNWrIAASPHzEENRvZhoPqE hRPcWEPuBgtF3uVCHHIDKB/vRIMsIBXAl38PZZs9D5ocvViQ+WQimD7Ss+wIkFcJULtYgQWb AXIbGPsmmdWvARN97TjLIjA73f3EtAqM1IxjLGtBm7ucw3IS6O23coJlMDICtJ3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0TxAZ5idUbDjCD2JwCdhLvmvaDXSEEVLN8 923mCYx8CxgZVjGKphYU56bnJhcY6hUn5haX5qXrJefnbmIEx4pW0A7GZev/6h1iZOJgPMQo wcGsJMJ7ckd5qhBvSmJlVWpRfnxRaU5q8SFGaQ4WJXFe5ZzOFCGB9MSS1OzU1ILUIpgsEwen VAOT9JcPaov6TqRkXp+0YElQbGN22v0nZcYfP65hSvdwP/H4UAHbY7Hsqst+t7QPeMpOeT+P z/a1kp+xxvx8r5nFTx364q7a1fv/3iomqBxTfVibr6viZfWul72+9wKmdl4QNH6rv5nrqeb/ yWme/FMMfq9i2/XfaKGLwrTo78Lr2ItlNwe8O+ygtiLtyMFqU2/nQu9DuZ5xk+6sC7dtETn5 TDHmD6PqvfoVc2JZlTNYG3MYpkaFci+v4eip627LlPvrk5cs0aX1UfSfXfHNTfKiWXs2pv6b fHHnGbn0Jx+Top3qjzNvK/thZH73VYJTyg1hJoZrhiZzhLIbRWfqzf19hUGK77cLD2tt9brJ OkosxRmJhlrMRcWJAOnczgQEAwAA X-CMS-MailID: 20231213081140epcas5p2bf0e2edea2d24224d775b348b1d5ca50 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20231213081140epcas5p2bf0e2edea2d24224d775b348b1d5ca50 References: <20231213081105.25817-1-aakarsh.jain@samsung.com> <CGME20231213081140epcas5p2bf0e2edea2d24224d775b348b1d5ca50@epcas5p2.samsung.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 03:02:01 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785164293807082712 X-GMAIL-MSGID: 1785164293807082712 |
Series |
Add MFC v12 support
|
|
Commit Message
Aakarsh Jain
Dec. 13, 2023, 8:11 a.m. UTC
Context bit is set for hardware execution if there is a buffer in source and destination queue before calling try_run in the init_buffers function. Now there will be a new context created and hardware will be invoked for the buffer queued instead of waiting for another buffer to be queued from userspace to set this context bit for hw execution. Cc: linux-fsd@tesla.com Signed-off-by: Smitha T Murthy <smithatmurthy@gmail.com> Signed-off-by: Aakarsh Jain <aakarsh.jain@samsung.com> --- drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c index bd055dea827e..fbb047eadf5a 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c @@ -604,6 +604,8 @@ static void s5p_mfc_handle_init_buffers(struct s5p_mfc_ctx *ctx, s5p_mfc_clock_off(); wake_up(&ctx->queue); + if (ctx->src_queue_cnt >= 1 && ctx->dst_queue_cnt >= 1) + set_work_bit_irqsave(ctx); s5p_mfc_hw_call(dev->mfc_ops, try_run, dev); } else { WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0);