From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1D9545C1C for ; Wed, 28 Aug 2024 20:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724878573; cv=none; b=kFlT3xk5dS+3tZ0T/vqU8yNWEx/sIrRkmMLG3rel2ezi6mnQ6gJ0qgN/vG5au4iezBY+Rys+WKa8Sbt6DRfl+pfSxbZRfwtRSOGUx8RCajYf3CeqME0audsX9Tr0JNebFc6tLekwNWu2zmD54lGDIXh/8zDEQitPzDHqx7ktaXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724878573; c=relaxed/simple; bh=Hz6doQ+DgqCIDr4ttXGzjMO1f4gtYCHlVaOxuLtsBV4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=re0qmqMDILOk+URIjOLoAlOVzOue7ZrLcfV8TgIRHZBcaozgo+xwbOWK5QDjXscRcMQQFhXGBuqtZSsYxNAkVqm5R3lU0lG3fF8Z0/CfDPyW/P3GuQLPK9KC2VyT0iha2bjjRTZD4hA5zKR67Sx2JjWAUx0ejAot0NAd7CWrNF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KUj1qIpJ; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KUj1qIpJ" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-7cf5e179b68so803150a12.1 for ; Wed, 28 Aug 2024 13:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724878571; x=1725483371; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HTBxWJ9wyPByAunmw2nMzBk9ACw5+Pc6tm8AO9OHjfY=; b=KUj1qIpJCgVLAs7zSJ2FXICxS+6og0vg8zMycDjKqeVCiklUw6HbWpw/IMh9LXczi4 7q+ajb1iL7ZNDPSmf/Am9WiztIn772pJ3UmqvE+84qEhivgkJavbplCBJiXiSpE5Vnc/ Gqfds/IEgTVycvl/nwAgc10s2LCrlJrTlKB0nvasT4rVVC6j5+fxnWCEWaztrNh0FS0l XYiOGh4hqYcPElkZ8eJ78EeuJVdNi3WIeQYXqi3tp98ML/fcqO7XEYUAZQrLgOgxyirT gW5VRe1Tb1Xb6g3UJTzGgb7A0zqdAQfgzuOZGDqngXdHsbFq5ow+Uz4+PiLlQFlZdrLQ 4dzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724878571; x=1725483371; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HTBxWJ9wyPByAunmw2nMzBk9ACw5+Pc6tm8AO9OHjfY=; b=L0csf7QYDXIHAPLFW8KFe63A3avNmfGS6DgoOWUK/9O/cn82yNN7mmQ5yUoQWR7wQ/ W2qvNyK93jwvkHQL126ouTyRzK6Hyo0wfVOR4z8W+CnJ4+TuBssUJuypsM/ljXGE8Owo kTGu1d1S5kZTYdNT1LTcBcjcBZdz8kn2DNgxNbeQsYlTncRm+XGL9frox6XrX/3jh1cT q6z8a0n2NibyOECPejI7CozLki9FbNwpJQfk5m0SJILKERNEyVkL2dVPshGJqALJPxB+ ps/ktWEfd+9wY5BmPSwCwmdpnctLIErv/8/EH48zeYbUOT1WQPFGiwUvphKXS8mXtbVw 6YyQ== X-Forwarded-Encrypted: i=1; AJvYcCUoQQl2ptqFZ+sNL4WG2hwyJjwtYH5TGDmx/T651Ye7ykFY9Dv4LEP1wuVgKdcrheKId3UX4tI31jZhuAc=@vger.kernel.org X-Gm-Message-State: AOJu0YyJr2rPZdKkJlLEzKb59Y4v3THOtJwDB7Ii+W7wOk3cNPwz/elJ otYdfQ3kGjvmbLaxgyUuJoSNvESGlbJHbgPeNPFkOyBiL3iwZBUWtd326UDnkOCI1cXsCDian5w JmxE4M3bkX4va1FEcpw+MCFMHJrfG47zCpc9LPw== X-Google-Smtp-Source: AGHT+IEz2rPhLvv7n23E6bzDV4iFmPIxFnrezQOlNwUK6zlcWpRR3csAoLfs4O3Xg+lVb6jAr5o5pCLeaKqNmgyCv14= X-Received: by 2002:a05:6a20:2594:b0:1c4:8694:6be8 with SMTP id adf61e73a8af0-1cce15f7ea3mr602404637.3.1724878570814; Wed, 28 Aug 2024 13:56:10 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240627-dpu-virtual-wide-v5-0-5efb90cbb8be@linaro.org> <20240627-dpu-virtual-wide-v5-9-5efb90cbb8be@linaro.org> <1bb90821-bc6f-4828-b947-d3123a035c60@quicinc.com> In-Reply-To: <1bb90821-bc6f-4828-b947-d3123a035c60@quicinc.com> From: Dmitry Baryshkov Date: Wed, 28 Aug 2024 23:55:58 +0300 Message-ID: Subject: Re: [PATCH v5 09/12] drm/msm/dpu: move rot90 checking to dpu_plane_atomic_check_pipe() To: Abhinav Kumar Cc: Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 28 Aug 2024 at 22:05, Abhinav Kumar wrote: > > > > On 6/26/2024 2:46 PM, Dmitry Baryshkov wrote: > > Move a call to dpu_plane_check_inline_rotation() to the > > dpu_plane_atomic_check_pipe() function, so that the rot90 constraints > > are checked for both pipes. Also move rotation field from struct > > dpu_plane_state to struct dpu_sw_pipe_cfg. > > > > Signed-off-by: Dmitry Baryshkov > > --- > > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 2 ++ > > drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 55 +++++++++++++++-------------- > > drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h | 2 -- > > 3 files changed, 31 insertions(+), 28 deletions(-) > > > > Change LGTM and addresses one of the questions I had in the prev patch. > > One question though, till patch 11 which adds support for 2 different > SSPPs for the plane this change is not necessary right? Because till > that change we assign the same SSPP OR two rectangles of the same SSPP > so we dont need a per pipe_cfg check till then because both the > pipe_cfgs point to the same SSPP. > > What is your thought on squashing this with patch 11 because from a > logical split PoV, this change is meaningful only after that. I'd say patch 11 is complicated enough. I'll check if I can change the order of patches 09 and 10 to make it more obvious. -- With best wishes Dmitry