Message ID | 20240222154120.16959-1-chunkuang.hu@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-76796-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp28450dyb; Thu, 22 Feb 2024 07:50:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU8hwLHyS8nhreuL8k47lqYJL856AF35RYoI/5akT4htrsjaLEYk4x5GY1ronvSXYQUu1Af5Rq9ETpRBUlTIzk4P2/idw== X-Google-Smtp-Source: AGHT+IE4s65SUbUo6gGML13RO1Pwrb7J2WBuDzGjE1leR14yr7a/3m6JJxkymauQOJqu5IM/VdfK X-Received: by 2002:a05:6a20:7b10:b0:1a0:85ed:4769 with SMTP id s16-20020a056a207b1000b001a085ed4769mr3078663pzh.11.1708617002480; Thu, 22 Feb 2024 07:50:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708617002; cv=pass; d=google.com; s=arc-20160816; b=FgTPmhdnQmzAxOhyZnctQ/nCcmb05feA5GLvtV7kXlmKTtrhYvmclCCOrgY7u7r+Ml G2UPEgMf8f1DzJpiNIvAqzUwPiavAmsRdfWw2ZX0bUVEWeqQ3dhsswNt8LVbltug+OJ6 6wxLls66D/u2JGMqzTp0UhGObLNwvA2IzT695YqIlWuNYb3dSlbnlzw+K9vT1vpFcbww 67QBXb5OIAlTgXwm1cVYeVTqtjDESx6H1OP0T2CE5h9cKl+r7iQAXCLuBBogpU0H/M2n vqsOEG3ZdvLPdMKo0uTfyh6I4OV43Lfzjd0ID1gwvv6pz8hUxIuvmN9pP86YOy7ML7lH 64VQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8ZJXXIO/Z27DdKF+R5z0BjskZvjom9IOxtjPx4sT9Wo=; fh=vD8tJ9d2mp7H51jNKyMUDglMjHY1Ew4hzsuiSabS+YY=; b=M9mn4fWcvG/ivkgUBtW3kbvK8z0mfSSiG0BV3XrDIFWHGoPYRnX6XDbExjxV942m7H H2z0DBLXYHRXGiD7FZP5cSIZB+ZzCCi1zunw/SEapbKjm64p+rBmThKd5hKCwRiODmVt RKdqUYUK9M4YBOU+RgDkd/y+zlKziRyKl78f+onNQbpO056OQud59rNmGFb57Ln/vMzE reD5N7tQxniFGdo5aSGO/NB7s+Eb4ULm46IKawW1XLu3ps6gdY0qA+xvTPM0oP7RZCDn uT7iTa/0x7cux21ecX7inmnF3HGO29O4IlJ5vtn4WbaHQoK2usFYGDTDncZkJPtQ1KjQ IsBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jTvQ8XMW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76796-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76796-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ca17-20020a056a02069100b005dc892e61d3si11302133pgb.657.2024.02.22.07.50.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 07:50:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76796-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jTvQ8XMW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76796-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76796-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 74964289E89 for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 15:42:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3775D14F9DE; Thu, 22 Feb 2024 15:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jTvQ8XMW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A81B714D42B; Thu, 22 Feb 2024 15:41:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708616489; cv=none; b=deonoUnCBWS8w0R0SFtklVNyBoEHyiyyl6CmGtI/8iIpDGMn1szGpOucP6Ahz+GcN/6Ij0P5iLYhY+qpOdxQgyBZE6ofaht2rXeUnLkoJHI75tWCxvu134naoVae/PdJPhLM53w1nJufxp5iadzm95UHH1XXgwnHIollSh/lBl4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708616489; c=relaxed/simple; bh=pjixf3oXo63dg7qf7lXjwZCTLnX0p47lkDin0H4I8LU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=m6P7IxdMrSQMXfZWrp9XCdPETUmhLSVlO9cZqZviiNd9YG9ovxA/zvexOREPU+b8vwjrCkW0q/ANFdzgongn8MYiW3OVU4e6CFsahzNBxI4/hHP39P9WxoQ+NU6i9Th8mV+vYliUHPZJkVFUQ5B2W8qfGJCDULWJjnAt/cXcXX4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jTvQ8XMW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35792C433F1; Thu, 22 Feb 2024 15:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708616489; bh=pjixf3oXo63dg7qf7lXjwZCTLnX0p47lkDin0H4I8LU=; h=From:To:Cc:Subject:Date:From; b=jTvQ8XMWDulUTguO1lrSEX+LInOIjmnQhNbrGk7y8o2w699XXvhWZcAgJYmiY2KON 0sUvlq7/4FDFHEw8Lvn78gWeubpi7fVJjcaZjgo/G4hGOoROEwq2pdFXbSkyvp2ae+ did0penN8Xd26Y30/5mxSFS6CecVq7wdM3tmRn/SWunNkeqziWhj4ifCN6MH8kQSn2 D577EuZiKtmQf4eXSgqWqV8AbzBJILrLIX+L9/RF5T//HavbM3WEHnEOhSczsLy9Ax xunLJqrFaYar7GJrBEGLTpu0AFUnbHdGp7c40xhoWAqs9NGuOM4uh6NgCL2fudjoPQ 2fi/Mp1krDFVA== From: Chun-Kuang Hu <chunkuang.hu@kernel.org> To: Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Moudy Ho <moudy.ho@mediatek.com>, "Jason-JH . Lin" <jason-jh.lin@mediatek.com>, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org> Subject: [PATCH v2 00/12] Remove cl in struct cmdq_pkt Date: Thu, 22 Feb 2024 15:41:08 +0000 Message-Id: <20240222154120.16959-1-chunkuang.hu@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791614781953498459 X-GMAIL-MSGID: 1791614781953498459 |
Series |
Remove cl in struct cmdq_pkt
|
|
Message
Chun-Kuang Hu
Feb. 22, 2024, 3:41 p.m. UTC
cl in struct cmdq_pkt is used to store struct cmdq_client, but every client driver has the struct cmdq_client information, so it's not necessary to store struct cmdq_client in struct cmdq_pkt. Because mailbox maintainer do not like to mix mailbox patch with other patches in a series, so mailbox patch [1] would be sent independently. Changes in v2: 1. Fix typo of CMDQ_JUMP_RELATIVE 2. Refine cmdq_pkt_create() and cmdq_pkt_destroy() 3. Rename cmdq_pkt_jump() to cmdq_pkt_jump_abs() 4. Add cmdq_pkt_jump_rel() helper function 5. drm/mediatek: Use cmdq_pkt_create() and cmdq_pkt_destroy() 6. mtk-mdp3: Get fine-grain control of cmdq_pkt_finalize() 7. mtk-mdp3: Use cmdq_pkt_create() and cmdq_pkt_destroy() [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/commit/?h=mediatek-cmdq8&id=a1b2f7a7488285975c1f439086f1c4cc51a13bb9 Chun-Kuang Hu (12): soc: mediatek: cmdq: Fix typo of CMDQ_JUMP_RELATIVE soc: mediatek: cmdq: Add parameter shift_pa to cmdq_pkt_jump() soc: mediatek: cmdq: Rename cmdq_pkt_jump() to cmdq_pkt_jump_abs() soc: mediatek: cmdq: Add cmdq_pkt_jump_rel() helper function soc: mediatek: cmdq: Add cmdq_pkt_eoc() helper function soc: mediatek: cmdq: Remove cmdq_pkt_flush_async() helper function soc: mediatek: cmdq: Refine cmdq_pkt_create() and cmdq_pkt_destroy() drm/mediatek: Use cmdq_pkt_eoc() instead of cmdq_pkt_finalize() drm/mediatek: Use cmdq_pkt_create() and cmdq_pkt_destroy() media: platform: mtk-mdp3: Get fine-grain control of cmdq_pkt_finalize() media: platform: mtk-mdp3: Use cmdq_pkt_create() and cmdq_pkt_destroy() soc: mediatek: cmdq: Remove cmdq_pkt_finalize() helper function drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 48 ++---------- .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 48 ++---------- .../platform/mediatek/mdp3/mtk-mdp3-core.c | 2 + .../platform/mediatek/mdp3/mtk-mdp3-core.h | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 73 ++++++------------- include/linux/soc/mediatek/mtk-cmdq.h | 60 +++++++++------ 6 files changed, 73 insertions(+), 159 deletions(-)