Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp337102lqg; Fri, 1 Mar 2024 06:44:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUh+uH5cJW4UMX99uJDA6+iaOevrUBpP2ZHrxi88vCtvxJbLOXI1+LRJ4u8vKn9A+iEv633/GH6JvVZg6AEa2qgFdaZBeIBIGbKSQ6hRw== X-Google-Smtp-Source: AGHT+IEUysGlKTxWIMzRuCEiTW3DL9HpwBKGPwKDjusmqocCHNEacEXwx666F0Hqe13OhPeQT0KP X-Received: by 2002:a05:622a:148e:b0:42e:c1b7:81eb with SMTP id t14-20020a05622a148e00b0042ec1b781ebmr2141372qtx.14.1709304261876; Fri, 01 Mar 2024 06:44:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709304261; cv=pass; d=google.com; s=arc-20160816; b=mlcj9BBvpuu6BXNnNRyqY1YgqGZmA5s+mrvVLRQ4ffY3JIX28QuOP0+sOpS4eVAzx5 mCDcveKVz0qytJJdPBM+lQxaXLlUqfca068keNUaOEjo0Ud3UHeY9U4TiyjYnLEG1CTN FKCgNonf8zzV7/mDnRQ7QLHVpUOxLnRtN/3U9eQHcGSeh/5XHwkMPbdx5S94IhrLk0xo ZehMXd4tIC6s4OGuhD5JlWwzBsrAXg53RHuGyp8FoJErAbiODpd6AJ4D25FrNXGK4XIX OT+/krxjhlqD7eTrvtcQDJCnT3vCfVJ/1EoZpv4wx51iSF5MuEGLejdU/lF8SKrz7r5g O9MA== 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=VnJZkRs7FJaidbK4N1YzbeeaXbJ0f9ifrcznh2lrwU4=; fh=HNHVOYm4GgyY25JP5XM9QyG7etgkDMwmmmbNIHUI1OI=; b=OXDsV34XOZRgASaHYIfg28qz1Yb9/n4m04nFe8X4NDVHPiUuAZlscygoISZ39AtdIo +etkZ3FEzprOtAlRedcVY/jDKv2OBtX5q5NjpAah3wWkkRkA8uTLq3n12jHdmDXId2ls pp7Mm+5MjEtul09NUlYWxv9As5ekEi2+G6G37USKqM/okHhq9OsSTbXMuLaVght3SSdd Z3TXaSjBrV0k1cAGLIiD8F8Ch05O9liulJKUSNN+f9fYF2qFo6vSvIm5i66ftKyPo3tP A+StrHavLiPCxrNjaVaH3aJOdTuKUptE9oxqADIyP/ugTwYOxWQZwwj0KyB+AukGnFal D9aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RhfsU9KW; 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-88574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r18-20020ac85c92000000b0042df128ecd0si3924896qta.218.2024.03.01.06.44.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 06:44:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RhfsU9KW; 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-88574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88574-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8E7FD1C22A07 for ; Fri, 1 Mar 2024 14:44:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 168CA39FCF; Fri, 1 Mar 2024 14:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="RhfsU9KW" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 6C0FF442A for ; Fri, 1 Mar 2024 14:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304252; cv=none; b=fzFzPYpEdhoWWcsU8AfqzJWCSuCCNqXwm37jGF4KbMMlviI4tALm9FS4nDa8pv75cmX6EqDHAGvg3TSHNvVYQYlWemBcdrorVpkbgC7jgr6kouHcRCsObLCgzBBM2qfaVgWT1Z/xPwqSUmwj05iOHpNMDifVhrISTOfXZl2QGbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304252; c=relaxed/simple; bh=4cri7GWZvtfymO3i4ifGYTtb1dzB1XFX69OL/8181YQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dvYPjDoMfTSrlSeN6LUnxudvStt4Rc2lFfyFXFcGs7K0th0rbpf7fohzGHHoDaQmx6Sk24kQoQtZx8Znu4quIH1LIa8cybPTwYFbmWsb+yG3rf9LC5Et5ekEJcbSy9Beb3aL+uD04dxBIDr6ADbS1dupHK7Agob3VWqbbK4rpFI= 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=RhfsU9KW; arc=none smtp.client-ip=60.244.123.138 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: 27d25dc4d7da11eeb8927bc1f75efef4-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:0572084e-6cd3-4296-8eff-27c28bb2ac9d,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:216d8184-8d4f-477b-89d2-1e3bdbef96d1,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: 27d25dc4d7da11eeb8927bc1f75efef4-20240301 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 5759617; Fri, 01 Mar 2024 22:44:06 +0800 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 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: [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 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-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 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. 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(+) -- 2.18.0