Message ID | 20231213081105.25817-10-aakarsh.jain@samsung.com |
---|---|
State | New |
Headers | show
Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="hLs/edNb" Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECF68EB for <linux-samsung-soc@vger.kernel.org>; Wed, 13 Dec 2023 03:02:00 -0800 (PST) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20231213110159epoutp0259b9b4aa5dbb1d332d55f7a043b40921~gXzAMm9uH0691506915epoutp02Q for <linux-samsung-soc@vger.kernel.org>; Wed, 13 Dec 2023 11:01:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20231213110159epoutp0259b9b4aa5dbb1d332d55f7a043b40921~gXzAMm9uH0691506915epoutp02Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1702465319; bh=LZVgTWOA7yYp3sqdPTipSEAOFAHSGmyu544A5a7oNAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hLs/edNbmVQA+1gU653vWLLH4aA1S8npxnVSaSxmEeHO5ixbSWqNLjldIif/t+ufY 6a/fD7hTJ1W0L5iEYUspv4D6lzFGRGFeLfeA5vF7954+uJ+F59Ghd7ZbutNgZ7vb9/ X+a7/qV4SBzUEI1MBN5VEEXin0xOcxqnqRxFe7jE= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20231213110158epcas5p37b00b3c0862782e3aa9bc0aec604fa8b~gXy-nWIxR0874808748epcas5p3G; Wed, 13 Dec 2023 11:01:58 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.182]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Sqsxc5ZG3z4x9Pp; Wed, 13 Dec 2023 11:01:56 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id EA.95.10009.42F89756; Wed, 13 Dec 2023 20:01:56 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20231213081143epcas5p1a3acbe09ca033b356a19e2acb2d9411f~gVeWUshgv2135121351epcas5p1O; Wed, 13 Dec 2023 08:11:43 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20231213081143epsmtrp2c0e11dd3fe1087765e4a4a11ed62e190~gVeWTxp-z2150821508epsmtrp2j; Wed, 13 Dec 2023 08:11:43 +0000 (GMT) X-AuditID: b6c32a4a-ff1ff70000002719-08-65798f244c6f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 5B.E2.08817.F3769756; Wed, 13 Dec 2023 17:11:43 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231213081140epsmtip2f9f8f2364db705d0388396386aeada86~gVeTjDDOS0553305533epsmtip2V; Wed, 13 Dec 2023 08:11:40 +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 09/10] media: s5p-mfc: Load firmware for each run in MFCv12. Date: Wed, 13 Dec 2023 13:41:04 +0530 Message-Id: <20231213081105.25817-10-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: H4sIAAAAAAAAA0WTf0xbVRTHc9/r63sQWV4Y0yubk3Q6MhKgnaW7GNhcLO45B2FOg6KRFfpS atvX+l5hgtEBs5PhGBA3A8iPhV9B2Abr+FUGk0KBDB045cd0gCAwB5hOYW5k4mJLQf/7nHO+ 35xzz72Xwn07xP6UljOzPKfSS8TeopaeXYHBz+WlsdLx0iA011ZEoK57dhGaKmsRo8qV3zD0 S+WyCHVfaSbRhc5BDJU7Bgn0U5cNQzeLJkTozN1pHFlnRgk0vRCHfmwvEaPTjc0EKhy6hqGL jgkS1VhXMVTRfJ9Elk4HiT7NrCJe2sKMVS3hjK14gmQqO+Yxxlp3SsyMj3aImStVx5kzTXWA eZxVSjLL1u3MwF/LZKx3vC4imVWpWT6A5ZKMai2niZS8diTh5YQwhVQWLAtHeyQBnMrARkqU h2KDX9HqXWeUBKSq9CmuVKxKECSheyN4Y4qZDUg2CuZICWtS601yU4igMggpnCaEY80vyqTS 3WEu4VFd8pzlOmayen+Yd1uZAUaoHOBFQVoOv81vJnKAN+VLXwWwbKABeIIlAB+VjOKe4AGA 9tU+8YalwFlLegqdABZeXVkPLBjsHTkpygEUJaaD4Y1WvdvgR2cCOJNtdmtwuh+H5/OLRO7C ZvowrOksJt0sop+HZZZswu31offCO7ZYT7NnYX1jF+5mL1famfXN2niQHqZg5q17Io9ICadH vsM9vBku9DeRHvaHy87O9amT4EzF/LpGDxs6zq5798Gu4ZK1mXF6F2xoD/Wkn4HnBi5hbsbp TTD371nMk/eBbWUbvBOWjK8QHt4Ge+qrgYcZOHlhen0nBQA6Bi9j+WB78f8tzgNQB55mT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MnEw HmKU4GBWEuE9uaM8VYg3JbGyKrUoP76oNCe1+BCjNAeLkjjvt9e9KUIC6YklqdmpqQWpRTBZ Jg5OqQamTpXlU26uvjRdtyvLc6+Cln+8TW79J2+7g3ck7q7gCdw84ZDNw/sCsSE3T0tkKr1u y9ywyMOUa1an3IHL96+lzz9l0PP/87IPzKeuxU/4q6++PXGOR8qLHdUHfvxdfsXm1HGLT36Z bg3Prt1eLLr/w5F/OvMZwn9fSzj87U33xsCfP+bb64XNr3VYnzchPf9dEkv5TJf0ZV8/9i8R aDsm4WJ4x6Z87d1ZG1JqOTO0hDzDdxfMPDmdQ7F4wVUNczkBL7a53SbHLuuxSUjsY92kvGbN Ke/ZDApnPy78YCuTvOLCIrPVnrP4J2ypjwiMO7Sy/d+ujVb8OiWSTSsD2tK6gyNkXx86EKmT HZWpKhu8VImlOCPRUIu5qDgRAIFHRxAGAwAA X-CMS-MailID: 20231213081143epcas5p1a3acbe09ca033b356a19e2acb2d9411f 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: 20231213081143epcas5p1a3acbe09ca033b356a19e2acb2d9411f References: <20231213081105.25817-1-aakarsh.jain@samsung.com> <CGME20231213081143epcas5p1a3acbe09ca033b356a19e2acb2d9411f@epcas5p1.samsung.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: <linux-samsung-soc.vger.kernel.org> List-Subscribe: <mailto:linux-samsung-soc+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-samsung-soc+unsubscribe@vger.kernel.org> |
Series |
Add MFC v12 support
|
expand
|
diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c index b49159142c53..503487f34a80 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c @@ -51,8 +51,14 @@ int s5p_mfc_load_firmware(struct s5p_mfc_dev *dev) * into kernel. */ mfc_debug_enter(); - if (dev->fw_get_done) - return 0; + /* In case of MFC v12, RET_SYS_INIT response from hardware fails due to + * incorrect firmware transfer and therefore it is not able to initialize + * the hardware. This causes failed response for SYS_INIT command when + * MFC runs for second time. So, load the MFC v12 firmware for each run. + */ + if (!IS_MFCV12(dev)) + if (dev->fw_get_done) + return 0; for (i = MFC_FW_MAX_VERSIONS - 1; i >= 0; i--) { if (!dev->variant->fw_name[i])