Message ID | 20240301144403.2977-1-jason-jh.lin@mediatek.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1FB75C5478C for <linux-mediatek@archiver.kernel.org>; Fri, 1 Mar 2024 14:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=VnJZkRs7FJaidbK4N1YzbeeaXbJ0f9ifrcznh2lrwU4=; b=bCQGjz4t4YqdNFTuzGt/RVIRg9 buUUJjfAJ2yXhw/EqQ+2lqLAJ27qJrN2ZAX8S7G6FwbFB2ElRZO8/OHuhiHpdOprGIsrlsjCzpuf0 AlXS5Lmj12AJPdNvazA9hwxps9JORdQxd/RaWK8jRo7RHw8kTuvgep9p50myCtPIWw2WJvcQMLqLX p88nl4LQffZPUGc9oDmCx7/V6+cvWIOiRL3zQ1oySGT5o8CUZpDneS8l8r8vT/B69vo7+s3ru4CMo sHxNEHLDttWdGXyUcpauy7qa18RuU70IL4WPM9qL1ubfB+y9O7pydokanGKxULOK6RIxj2GM3zN+n e4MKEiTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rg47c-00000000lEH-1Wmb; Fri, 01 Mar 2024 14:44:24 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rg47X-00000000l80-1a23; Fri, 01 Mar 2024 14:44:22 +0000 X-UUID: 28b7a564d7da11eeb5c2bb47f3c01139-20240301 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=VnJZkRs7FJaidbK4N1YzbeeaXbJ0f9ifrcznh2lrwU4=; b=RhfsU9KWq/WpNm0b3isy4UfyMpLM1XpS1DUnKZyF3tqGzhr7KJZ8h7DeKornerK1Siu6ltFeg81eOhfGOkmlkxH13B5a7BsVyb7sTsuZpVlI0D2pd+l63qaKQWW+1Iqc3n1ff0Bg9C76phjr+beqfFAcV/VEvwzfbB9ncc3fk7g=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:a4689681-0780-490f-ac8e-c135a4bc7e44,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:6f543d0,CLOUDID:3444e88f-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 28b7a564d7da11eeb5c2bb47f3c01139-20240301 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from <jason-jh.lin@mediatek.com>) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1613469431; Fri, 01 Mar 2024 07:44:08 -0700 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.1118.26; Fri, 1 Mar 2024 22:44:04 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 1 Mar 2024 22:44:04 +0800 From: Jason-JH.Lin <jason-jh.lin@mediatek.com> To: Jassi Brar <jassisinghbrar@gmail.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com> CC: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Jason-ch Chen <jason-ch.chen@mediatek.com>, "Jason-JH . Lin" <jason-jh.lin@mediatek.com>, Singo Chang <singo.chang@mediatek.com>, "Nancy Lin" <nancy.lin@mediatek.com>, Shawn Sung <shawn.sung@mediatek.com>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, <Project_Global_Chrome_Upstream_Group@mediatek.com>, Jason-jh Lin <jason-jh.lin@mediatek.corp-partner.google.com> Subject: [RESEND, PATCH 0/5] Add CMDQ API for upcoming ISP feature Date: Fri, 1 Mar 2024 22:43:58 +0800 Message-ID: <20240301144403.2977-1-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--7.250400-8.000000 X-TMASE-MatchedRID: pJ+CdhK041Qssufzyd4qvjPDkSOzeDWW87QrIQgH3y3ANHjiWWI+7UBA 1mlGP0dBD8GU8iW2GCEADeLgM5ytYg8C7Ybhht/Cbc297PAGtWZ8s8pjIsOUB1SOymiJfTYXLZ9 FZe+H0T3QH2fwKI6prP3bv+uBVCY6WvrN47f+AFsflhDI6DvVln0tCKdnhB589yM15V5aWpj6C0 ePs7A07QsfaqMZktsdeTJ3hIPnfh9URPUP4yQgVvLkFbJ7SJpFYRV4a8a1enQ= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--7.250400-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 6CAB453DCAB0B639D7FA623EBB3E06D3D5343A105286ABA2BBF80135705A06A92000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240301_064419_608937_71B6F034 X-CRM114-Status: UNSURE ( 6.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org |
Series |
Add CMDQ API for upcoming ISP feature
|
expand
|
From: Jason-jh Lin <jason-jh.lin@mediatek.corp-partner.google.com> In order to support the upcoming ISP functions, some CMDQ APIs need to be prepared: - cmdq_pkt_mem_move(): for memory or register vaule copy - cmdq_pkt_poll_addr(): extending cmdq_pkt_poll() to support polling address of register - cmdq_pkt_acquire_event(): to support MUTEX_LOCK protection between GCE threads - cmdq_get_event()/cmdq_set_event(): to support ISP driver runtime control some GCE events. Change in RESEND v1: 1. Remove Change-Id in commit message. Jason-JH.Lin (5): soc: mediatek: mtk-cmdq: Add specific purpose register definitions for GCE soc: mediatek: mtk-cmdq: Add cmdq_pkt_mem_move() function soc: mediatek: mtk-cmdq: Add cmdq_pkt_poll_addr() function soc: mediatek: mtk-cmdq: Add cmdq_pkt_acquire_event() function mailbox: mtk-cmdq: Add support runtime get and set GCE event drivers/mailbox/mtk-cmdq-mailbox.c | 37 +++++++++++ drivers/soc/mediatek/mtk-cmdq-helper.c | 79 ++++++++++++++++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 2 + include/linux/soc/mediatek/mtk-cmdq.h | 44 +++++++++++++ 4 files changed, 162 insertions(+)