Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp217992lqg; Fri, 1 Mar 2024 03:13:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWV2FKVtgAXP99lHTa5Bcw5wyHuMeEu/IB3DHvNgokCfe3uG7XUzXr/AduaLC5s1zOBLeWCRYO5v0R3ctzMn/odmvfRg9HWWeXqEZ55jg== X-Google-Smtp-Source: AGHT+IHOa0MXVGf09L/zEUSJF8Q9Oakdp5pfTd8Bpq7BCngaau73fsc61Im3t9VsiXQDk0EryTc9 X-Received: by 2002:a17:906:699:b0:a44:9616:b3a3 with SMTP id u25-20020a170906069900b00a449616b3a3mr816573ejb.9.1709291587763; Fri, 01 Mar 2024 03:13:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709291587; cv=pass; d=google.com; s=arc-20160816; b=fWHqhXA6TP1qqez1pYnsPlQUD/Mjnzz6kp+Km4OQgVVZkZ3wvb5DLV30WMNxblc2Ur iuobI16mrkDbUXzGz0hO81yn3g6+5GoTKJ8UvXagiA10Cloh0JxYD+GZ7Qy+1TVy6JzQ L3h5g6KM4CK3jaxf651J6VriAjL5Sqn1cHdMyMCQGgZDR5LSHNxgZlKM1aF6RiR6vwL8 6Ut03qK2jWKWU6lWbimh74pzU9UhNWOz6QboNCfbhdg+GhFeq7Cnz6QjoY4KhgF5/c0b cXvRZVT38wJKfbXoZrGYj6yUbK+F4E652u9rpxAwW5Bz7VSIJtXrOg+Q+j1FstZeZ/kY krnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=Q5WuaCMJDw1pbZ4ztPZ18MjsiyYlAPImik90vW7Ffm8=; fh=+zJCp9Jl6ZClB/jrk6qJWvp8CFQsPW8DVERwWxsamck=; b=I+2+YZ25B7TUxdXG7LhZZuJ1oVwWjCtG9FYc2OANJioLq7xcBkPL3Y4mPVHyHCsN73 1yvkWdc3q38+6t299kRwg1qsZ2ao3ckctwt1Um+upi+hZKAh7BAdeZU7Ii9U95GPDCcY cukLsJFvNhxIevEHHJYe5unw3vBDtTTNb/ukCQ0/bVwQL7xMF1MZ0/qVsBxPDLlASKoy L2ewUczbHgIiQ0az2Ydh+xq6+UOZBQqP3shRBWXKn25mdICfyhJyO/DlUsBazZyhAiF3 Ip+QqaOwAbej1ygamQE2bAN4/Fzy7kIXdTHZdUF21hN0gn9BXKPk5YY09JGGfuVUnA5x qQdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UrkEDeyY; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-88310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cb17-20020a170906a45100b00a43fd9e2d4esi1324207ejb.222.2024.03.01.03.13.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:13:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UrkEDeyY; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-88310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 51FB01F21797 for ; Fri, 1 Mar 2024 11:13:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2436F6D1AB; Fri, 1 Mar 2024 11:11:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="UrkEDeyY" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80C426BFC2 for ; Fri, 1 Mar 2024 11:11:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709291509; cv=none; b=dSQgg/Dzn/ro8IZbD5L/dSl53bLWXrrTe2Xqs1PH6pfOxgDKMDV+ComkJIgoZGPf+tIeaHHKSHi8Dpi4sEzyM2cRPW3y0AQiETMijNk2rLw+cDeXCD3jrFZ2cjI+em+9m959MxgvjjTzQq3zArwFkNuqrljqPnY4++n7TZS5H8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709291509; c=relaxed/simple; bh=/xDonUNC7ocYSfrZF0cRihan81CJlJLUmGBfW2so27Y=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=AH5npPzQwqu6UkkFoS/AsPW54lksGJyIUS8naenYAIWHo+iwDcbZ2YZyiRtk9SU4K7iG2AmAj+AdtqE+fOxdNhs1KViKiulyIEa6wgD1xinIkxgfUyssgN0Qoq/wsMmvKbCVb8yoc6tKDxP4FI0H6/yMJpYDnxBVgVSYusfU03I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=UrkEDeyY; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 7a84b0dad7bc11ee935d6952f98a51a9-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=Q5WuaCMJDw1pbZ4ztPZ18MjsiyYlAPImik90vW7Ffm8=; b=UrkEDeyYB8C0tXbtAs6ECT+ZyTDSt/I9p6j4HpVXU3mXt7wK9D5/aUO4/HDN0FXvlxMKefC07hzbmlcPiDRnvHeBjx4u6VZnaAb4p7vlFd9JPD7O38bbeSGcbj4DbqLwrRKXXyG82KovOs4f/91cIDRPDz3oqbvYvGrOkiuIuGk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:405a7b23-959c-4610-8378-1368add7859a,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:6cf664ff-c16b-4159-a099-3b9d0558e447,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: 7a84b0dad7bc11ee935d6952f98a51a9-20240301 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 358478159; Fri, 01 Mar 2024 19:11:40 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n1.mediatek.inc (172.21.101.193) 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 19:11:39 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 1 Mar 2024 19:11:39 +0800 From: Jason-JH.Lin To: Jassi Brar , Chun-Kuang Hu , Matthias Brugger CC: AngeloGioacchino Del Regno , Jason-ch Chen , "Jason-JH . Lin" , Singo Chang , Nancy Lin , Shawn Sung , , , , , Jason-jh Lin Subject: [PATCH 0/5] Add CMDQ API for upcoming ISP feature Date: Fri, 1 Mar 2024 19:11:21 +0800 Message-ID: <20240301111126.22035-1-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N From: Jason-jh Lin 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. 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(+) -- 2.18.0