Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3211786rwi; Tue, 11 Oct 2022 21:17:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6XvUwb0vouXF2fpmIJQL0BBk90r0vcF8mXrTL8+ItuGAa9Iu8CsrR/C0iQQMFMG2u6hFPK X-Received: by 2002:a17:907:608d:b0:787:6e75:5111 with SMTP id ht13-20020a170907608d00b007876e755111mr21812698ejc.760.1665548229083; Tue, 11 Oct 2022 21:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665548229; cv=none; d=google.com; s=arc-20160816; b=Cl7ODJUuZkbic45Rgg1Iajt9gTL0kC6EvfT/h4p+kz88ceECP6CX/rbyC1CTnK3uOy tMDqctME4FnYAdgOBc69pgTmMduDb03ieditZhvvYwGlsDorNYqnH179WirqgXi3BeRv USn5UHIlwcj6CtjULTpphYc3aIObsBO8kXLZkDMwGuysHx7LUYiumiXTug/ZgR6Hm5y5 eUjAxLgl+5hYkTC/EA/j/VuqmT/IJCwm6Hug2NVEZAtVTjd647cyczSs+l8PtrOc8iqi 8v0FOls9T3LMQpB/5bR+zrxniuVnU3Azb5zGdvrQlPjnZ7Fbes/fNZ6KHOya77vb7npq IZlQ== 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=+fx2B4you5BE2FTxznvyQLDtQFyqq/F6+43cr6r8YNU=; b=gfJ/wy4ZWZXPEQYtT7B1pSUUY/zZ0hUIwcruC08OuWtQgl2hTOsnpHnf5W/a8/t2mZ klfAmD/8NetKCxnhMBHNVRmTfKn+gaQvkocdmwXlKjHIvtFFlEWl00oZ49JYlfQ3JKj9 wKC+fhm6EQPMAFNLeaxjbRUjpbH3L1mHQcOuxpZPU+e0D9MLos2Vc0+0qEx9Ksj9sVFH bhVkEPUkn5Cn6dGduc0GpuAxp3k2d2ToSS/X6P3dGueKUP3xA2nV63k6ceTdyXklR65T mGCxXilNsSWDNdFOuZUeS0OUjPqzseGcYmeU/wgKDSZkwxu2PLQUnpVG5Yp1+erMqp3Q KTgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=kFZl059C; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a056402254f00b00451bc675cc9si2001138edb.335.2022.10.11.21.16.43; Tue, 11 Oct 2022 21:17:09 -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=@samsung.com header.s=mail20170921 header.b=kFZl059C; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbiJLDur (ORCPT + 99 others); Tue, 11 Oct 2022 23:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbiJLDtb (ORCPT ); Tue, 11 Oct 2022 23:49:31 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0741ABD4F for ; Tue, 11 Oct 2022 20:48:22 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20221012034820epoutp0445f3c43d1ea53807626f03d3edc22b50~dNbfbhZoa0497304973epoutp04K for ; Wed, 12 Oct 2022 03:48:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20221012034820epoutp0445f3c43d1ea53807626f03d3edc22b50~dNbfbhZoa0497304973epoutp04K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1665546501; bh=+fx2B4you5BE2FTxznvyQLDtQFyqq/F6+43cr6r8YNU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kFZl059CbTrOKYJRWE7fei/3pQXZ+irevgsAh2GHHn+z7Dfk1ZNJKsNtL+XgcmbXW o0bszr8Ww46UDrpDK+ouw62k1sHOvqpkqn/XBNLLe9JmqxNQDxoIezvr/i9ziQGX8R PhwYBbUhQLGlFLH7WfBbCgj8kzfdh8sGizDOeGxk= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20221012034819epcas5p2be9d81cba2840d6ebbbdf2814b3d653a~dNbeIctYo1883318833epcas5p20; Wed, 12 Oct 2022 03:48:19 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.178]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4MnJXJ5rq5z4x9Q8; Wed, 12 Oct 2022 03:48:16 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 92.1C.39477.CF836436; Wed, 12 Oct 2022 12:48:12 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221011125219epcas5p22aa56f46aa326c8d643bfbb076c0062c~dBNJ44KCq1500615006epcas5p27; Tue, 11 Oct 2022 12:52:19 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221011125219epsmtrp20c14976087be1872d76070ecea0558fa~dBNJ3uBTZ1820318203epsmtrp2H; Tue, 11 Oct 2022 12:52:19 +0000 (GMT) X-AuditID: b6c32a4a-007ff70000019a35-c8-634638fc3251 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 09.94.18644.30765436; Tue, 11 Oct 2022 21:52:19 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221011125215epsmtip1500fb54b3a3c857d9d68ed8a049b593b~dBNGz2ZbB2675826758epsmtip1J; Tue, 11 Oct 2022 12:52:15 +0000 (GMT) From: aakarsh jain 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, ezequiel@vanguardiasur.com.ar, jernej.skrabec@gmail.com, benjamin.gaignard@collabora.com, stanimir.varbanov@linaro.org, dillon.minfei@gmail.com, david.plowman@raspberrypi.com, mark.rutland@arm.com, robh+dt@kernel.org, krzk+dt@kernel.org, andi@etezian.org, alim.akhtar@samsung.com, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, linux-fsd@tesla.com, smitha.t@samsung.com, aakarsh.jain@samsung.com Subject: [Patch v3 12/15] media: s5p-mfc: Set context for valid case before calling try_run Date: Tue, 11 Oct 2022 17:55:13 +0530 Message-Id: <20221011122516.32135-13-aakarsh.jain@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221011122516.32135-1-aakarsh.jain@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WTf0xTVxTHc/va15YM81JZdmmQsadzAlKpa7uLAUYE3WOIkhF1bhmsK48f 0l/2h7KZOCaCYnSMBQQ6BAYUJ6Bg+WEtGArU4cziRiVgkD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uJbyfqR2yivn94DP wHR0nMomCMj9VZJuyxglI3YWTR7fOJ73ShglbW3w/ZDPj5VpZr3rtPfXjkV/jgyw+ie0hgGd PS4yM2/z5blVCchHuzKMud566UChx5vTC5G7b8YGB1i0E44nC8X7ftVnfKoPXXcgNda9Kez2 KfFqPgh+vcJTIuQJYqJbVYnVirg0bDLsaLZp+26zV7j6PbbllpwMLMrwGeVjskRhaBAqlQn/ Aj+xlWMsAwAA X-CMS-MailID: 20221011125219epcas5p22aa56f46aa326c8d643bfbb076c0062c 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: 20221011125219epcas5p22aa56f46aa326c8d643bfbb076c0062c References: <20221011122516.32135-1-aakarsh.jain@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 From: Smitha T Murthy 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 Signed-off-by: Aakarsh Jain --- 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 ad04ec68921b..7e6fd130f7d4 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c @@ -589,6 +589,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); -- 2.17.1