Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp399140rdb; Thu, 15 Feb 2024 03:52:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUTThlwgFRyxg0tvlmjEIIWmLc58EksTNUUKWStnHEPGkj1cMyW7t4mfme8auZDEylf+vEKxbUDewumKO3jKMQk2T4UDZXc+WCadZy/Gw== X-Google-Smtp-Source: AGHT+IFyLUhNfhOpo+nzOr+980BcdvIN87qinumehkDXxzusKk9CYB4qlPpCGoXH1AQSq4QXbe0G X-Received: by 2002:a17:90b:305:b0:299:1802:4c54 with SMTP id ay5-20020a17090b030500b0029918024c54mr1039129pjb.16.1707997955158; Thu, 15 Feb 2024 03:52:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707997955; cv=pass; d=google.com; s=arc-20160816; b=XK5ZJM8NebnwRNxKycvG4V3QZaqVJzxIC8ZM1ttvRy5sZ1xX/h/HTNbLUwa4WivBM7 wny4LiKU7eKoh4uylOHGwQXG5f8UE+sub8H6UyjJ7exChrWy1tbm+K1O9XpcQUFntaiS zEeoNgE8DUCd3MAL0XGmQdpWhP0TWU5JahgCYK1IKtZuN5FujQf2WTx/+kqeBmBst1jH KV3PSJIGRw9xTdoR15CpGYOY/S1GKCCLd9JqsvOWCSBOtLo5c8mL1k/RqaFxAk0TT2jq xPTS/tNdBPNB1NuPr57e+rqyjQeceaGe0ofBRBdJXBrBxuS4K1Kom7HzzrN0zVJZhuMa 6SXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=6ErX067TYJKzZJp2I/jMfImtHSL+anDkxzXn7bEboCA=; fh=MJq6gyhXv2riyZaBp4ZqRdBbbMTYBrz3bznmfbSMjnc=; b=c3h8RgGqstcrdIt3nrr/qKtNHFRPfwnpRCQVwWzNhP4I4wx7D0Qgps79+/MTpLqdmE q3XFQC4dQInqybQ3eAKiqXKzxVl2qFnIXDBzgmZv6r9ggfF89Qp9ar2VJYSQWVWevP4R SiILdCdYwp9fJE4COxAgEsK+WlC01SEC3mEsJt08LeJ8UHR3yEz5lhbrJG8sx0+mJsHi dzKr2O0gwKX28/nH/r5ZNiv6Wt2hGORRku6jSMiD604z9AP4xyyhhldRTii8OCqoWzqm 2Ijm1CviDYGBy1WaUAzqxFL5gWuPo/fGtbgU4++gnHS3/g6CgNnA+GkqJBsu5c3I+kQ9 ioZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lLDSyuor; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-66689-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66689-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f10-20020a170902684a00b001db5b2535e4si963946pln.565.2024.02.15.03.52.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 03:52:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66689-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lLDSyuor; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-66689-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66689-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A9B59B33E3A for ; Thu, 15 Feb 2024 10:53:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CBAA131E34; Thu, 15 Feb 2024 10:40:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="lLDSyuor" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 221DC131754; Thu, 15 Feb 2024 10:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707993642; cv=none; b=Khp8ykPcSbFkTFKWUyS8C/ZByZ+uTDBKI1/qH5vClJ1Y2d0O/cVhgM/kffcxAP3W1SQZvpUaSmwFqOKaVy/sNZwsJ1ANDGCGg9Hh/sxvu585FAQUXbFM5yw1FI2bZEBnuptgmn5rdfBsFjrVSP4LDEH1zYTrVM56CHpPuSWudKw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707993642; c=relaxed/simple; bh=Z2I/2iS1wg6hKZc0HSZWdzEp3y5P2j0JmOn+KktqECE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=uKPALx7D7dvAqnptU2Z/B72rIOK28CV3tQED1aPLbo3h9p7IN+Oc+UsX+IXkw6HEGBIC2JhcVQ9+0Dd3ovsn8bTv7LmiEj73ylr85aDP0mEQDQ6dMi3GnVxHu/hDwmVgFUyiCawtds9hJV2jCYyO43vGHazLldlBdj7XOcNCzXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=lLDSyuor; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707993639; bh=Z2I/2iS1wg6hKZc0HSZWdzEp3y5P2j0JmOn+KktqECE=; h=Date:Subject:To:References:From:In-Reply-To:From; b=lLDSyuorzfgMILXk5YCfu2LUE2BOOMbM38F+LNMj0yCjj0cV3mtSUg9aKseaNlpA9 VFf5wAynXJKAD5JXp4NvZQyI3dOozcIdTskAgixzriXkcB9hikPUPhGZMjnh4ct1bB c08IPM2vCJILsmzrfWzWaHkbJU0OQVScC0CoCt1zSM85IWtpvoxk5PyQ41LUiRVhpA n6sra+3LWtPdiJWL2d1SwsZEWv7A7yzQrsBflzpCbjVVN0znHwqQeomvFITsaRWj9j PEAUVv0LdiMDeDBBYEzb7yvh3+WDQNnGIVe35XYKE+N/ZtsPWBYGkQPn2rxWHmD5Zd 3+OzjmgGwSGig== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id BA51C37820B1; Thu, 15 Feb 2024 10:40:38 +0000 (UTC) Message-ID: <8f34e44c-48d7-43b4-ae6a-827d4e3fa122@collabora.com> Date: Thu, 15 Feb 2024 11:40:38 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/9] drm/mediatek: Drop calling cmdq_pkt_finalize() Content-Language: en-US To: Chun-Kuang Hu , Matthias Brugger , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org References: <20240215004931.3808-1-chunkuang.hu@kernel.org> <20240215004931.3808-6-chunkuang.hu@kernel.org> From: AngeloGioacchino Del Regno In-Reply-To: <20240215004931.3808-6-chunkuang.hu@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 15/02/24 01:49, Chun-Kuang Hu ha scritto: > For some client driver, it want to reduce latency between excuting > previous packet command and next packet command, so append jump > command to the end of previous packet and the jump destination > address is the start address of next packet command buffer. Before > next packet exist, the previous packet has no information of where > to jump to, so append nop command first. When next packet exist, > change nop command to jump command. For mediatek drm driver, it > never has next packet, so appending nop command is redundant. > Because cmdq_pkt_finalize() would append nop command, so change > calling cmdq_pkt_finalize() to cmdq_pkt_eoc() to prevent append > redundant nop command. > > Signed-off-by: Chun-Kuang Hu Makes sense. Reviewed-by: AngeloGioacchino Del Regno