From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 535D930171A for ; Mon, 26 Jan 2026 10:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769422412; cv=none; b=gIEu/miYlKqLSG4d+pi/AXiyDC7bt3f61NHR1td4e5abp8c5IK11rbhIHzfcLO1HyTOwNSceoSdg1ESL6wh4Dq38RCsoPRKoQ4676IwLjgY8U6drxnjzNL+/KBVq6HjjKpv1C0eDW7/JGZeKNGSMn6z4AfRuEHEJTvxWQlDzPi8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769422412; c=relaxed/simple; bh=4dLxl9ZxgBxb1yPpyOrIQvEZzSXaOt2jwpQa1i7zFf8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZiDSmIk2ApQHza9qltHUg2hi+8zb4d6Rx/nWHFfn0m2wFmChKPkyLH6NCjTmIbVdgo/H/yJLXO/RVF765ZbDdh2iH/b4rwMWvYKyE07s3P/PTv9TjPvP4qKUI/vsjfNPOGocCZDg+OrhSG4ahp3kXKc6KkBvlfPHYRxUSLijMso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=fMOcTvId; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=h1BtNAxP; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="fMOcTvId"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="h1BtNAxP" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60Q8OX48344832 for ; Mon, 26 Jan 2026 10:13:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 919VH1z/KO4piWrGs8r1dcfvIGrj9JNBtgoqDYAJ5XY=; b=fMOcTvIdQPDgjFDs jIZ/0VcEtKXXBFy5xxrmD5Nq40m/Pw/IjAbClC1TmASJKArPtajLCpXMOBLZsHVV AtZlppsW6LVHVa2OmThj7ZY3LOAtnG/Q5ilSoB4J5AyCsAGKJTyNL44C2tHilIJu 8jgkcmoWWy7ixir7WVNLFCXLkJDXF5Jk0J9NBSxUEm+YdsutMGZQZFWWU0ntPEPg MudHEfoc1YGNi/vPbV23OJGivXO8K1fDJqRMx87iUlWwnxhrvRcTsg0qQAhjvYxo diK75qgPtyAAZM+Dyz+YgL5/R65hXNw5+NIkWskIX4pvDWeXslOqjsySoc2DayIz RlKuUw== Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bvq9tv558-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 26 Jan 2026 10:13:30 +0000 (GMT) Received: by mail-vs1-f72.google.com with SMTP id ada2fe7eead31-5ee99a57fe6so4705963137.2 for ; Mon, 26 Jan 2026 02:13:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1769422409; x=1770027209; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=919VH1z/KO4piWrGs8r1dcfvIGrj9JNBtgoqDYAJ5XY=; b=h1BtNAxPdXObVnwzvXiXPUM/ej/4mZvYV0xUaM4y90TKo7b/4+iL6jWtb7VOUYE5sC kv+J1amBHJsZzYfOUhQfOg+I6NSNDToVBkzVdtRu56SlVzNRLg8QJsY3QRddvoyF3UXx oM28OtYWiFI+bOZmGhHLGmUHymUBAIpaccthkfK9IwklhoJP+6tyc86V7tm5CgM+OT9U CEv6aXZ5gIu2sYUZwQUizPLvPzheg2ad2nNBKkIk/A41t41NBJhcdfzNkIfadMVhp9TI U+EiidjJ6A2LUxny8ScPa/Rw+IGo4PdM4fwp+1Qfd1hXjtKKn2v/dsh9t/ae5F97khBv QsDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769422409; x=1770027209; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=919VH1z/KO4piWrGs8r1dcfvIGrj9JNBtgoqDYAJ5XY=; b=Kdq8iI+Giyx4B8qCpBwYGCppIz0Tg15yA+Z443Xt7HRsL6LYTdabwDXW6SAdTPjPJs P8R9Tqf6FnYyIu9ti8U++qOog8yGxJMPQSi4nVNE22vMTgXWbijQUq2bIe4v2kx8nCV2 eYnIrlIYE7QVontDUf+092A9zDP+EBhXM3jqUWri62DB+qBv77V9ESn9Ah8sx7UAnhri UwigwWg6pqIRVBp5gy41czdaiHSILFf73RiyTKPHlzljb7lsCiEuYTNP7QUqSf/ZUFOQ F8hR/VCoNoQu7p9nDEtt8q73pPozNer7/wqeYHgk3WVchCPDAxeN6dSA8leWvEsMIALI Wrlg== X-Forwarded-Encrypted: i=1; AJvYcCXm3K9+COIHLR+U4ryMmaITjxx/H3HKMNSnJMHuqaWCvyAIyp01ZpZNYXXehnXYBYhDRZIOYSnP8gtIFjo=@vger.kernel.org X-Gm-Message-State: AOJu0YxTA3gOaE5F2ODG45eI+7ruqAEyxIKzO0klIPqR5FmgFjgfJtBx 7hrrf1pplu6NgGU9vR9JEqfMdJoSMYXHbsxxed5Y/SRbNApk7GGE/uwLwYrepDQg+np6irKMA92 bFsaBevPs3o39YCnR3yhLdBE8Mcx9x+bKGDozM3KxOdAJbPHpfAlY3CoG7oWCPP5dGVQ= X-Gm-Gg: AZuq6aKuapZ73Jz+hy6eWfMXT8nHLYZrF2Gp0HO6XGXReQ+3UO72gPC7mHaC5PvLca8 PAf+EYfgvssktsXYK3S0uMIYxRUhb9z73+9rww05lw6BzhThfFIVFKXgNxldfOVJ3s390SyIYS0 0XrE/GHwGa0qlCGMAMGnkqHvRuOaz17gfiBU7/K1pB+x9V7vGieTcRESJLzTsjVQ6JdOTQcUKNt +lk+pBBNRqnShJ2Hca40H9+dtpjFgLVX2QiEmFuUdE3DIEhlvUa6eAf8UyWRzgh9gVmjZpJbYXg Ob1wEh8j93x6Wc0h5Y17xk47ufxaOhAV6FVmoJeAFNZgNnP26GRXvTVFz5U4YOFs0pB6bu6Ucvz hLGAYII372y/EZ5octigHkndA9S/0Ht+PSqtAcxr0sAkOlzh+4TjgCNQDqC22VlI9 X-Received: by 2002:a05:6102:3ec6:b0:5f5:37f6:2b4e with SMTP id ada2fe7eead31-5f57654956amr978544137.40.1769422409599; Mon, 26 Jan 2026 02:13:29 -0800 (PST) X-Received: by 2002:a05:6102:3ec6:b0:5f5:37f6:2b4e with SMTP id ada2fe7eead31-5f57654956amr978543137.40.1769422409217; Mon, 26 Jan 2026 02:13:29 -0800 (PST) Received: from [10.205.56.101] (84-253-213-87.bb.dnainternet.fi. [84.253.213.87]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59de48e5d0asm2542556e87.22.2026.01.26.02.13.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jan 2026 02:13:28 -0800 (PST) Message-ID: <91d590de-fa00-4df3-923f-b49ad00cd9da@oss.qualcomm.com> Date: Mon, 26 Jan 2026 12:13:27 +0200 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 v17 2/4] drm/msm/dpu: Defer SSPP allocation until CRTC check To: Jun Nie Cc: Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Rob Clark , Neil Armstrong , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20260121-msm-next-quad-pipe-split-v17-0-6eb6d8675ca2@linaro.org> <20260121-msm-next-quad-pipe-split-v17-2-6eb6d8675ca2@linaro.org> <6kzd2g4hgffqz5ipaqbourgiefuxxh3njj44n35blo37z6hhhj@us7lzlgmjuld> Content-Language: en-US From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTI2MDA4NyBTYWx0ZWRfX4Quk5pfxCADb tINj9X8rSw21y4G15C/hBKHIDpFOsR3Rv5gd8WJFSVPGZvaSa9ep8O6J3URIzGfvHnIm3INeAmL NYLE4KVTehdACx4+/BOY/N5FzkC2g/EGSYgm2SS6+BnZUR9o85PFULDV+WZJ+gBAd4799ZVLZ6O JUMCG1QLefPUEvax5D938ilRnB2oZIal3Zyg5MxtNPL+OE6Rb+GD5urF/dsdR97ZAvZ+hjP+q2Z nCNESiWBg5QvW+9TJbkD7l3KGTvTHct78tVqrdwS5ZA2PnI00uhwWdbyMpixJPv7RcGmcXDCb9x P9pWsQJQMcswV64N1lqBVg6WchUL5P2znbwxanFibrfNUUl0ek7DNPKotlwYSX4E+vcSLfWJWOX KtmvXOIk5MBBQB2CucM46VIwckBuV/6wugEGL+NY3f1z8BUamVnq+xh6W9jDvF+OkM1tn15gUyd GLGgzQYTND2THieByYQ== X-Authority-Analysis: v=2.4 cv=QN5lhwLL c=1 sm=1 tr=0 ts=69773e4a cx=c_pps a=DUEm7b3gzWu7BqY5nP7+9g==:117 a=oW9j1mrv7lfAxSiOe78TcA==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=JU2WE-GTjbXmrkkuVJ4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=-aSRE8QhW-JAV6biHavz:22 X-Proofpoint-GUID: V83lSjYvgjijkP2cOuI6wid6ouFgWeXL X-Proofpoint-ORIG-GUID: V83lSjYvgjijkP2cOuI6wid6ouFgWeXL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.20,FMLib:17.12.100.49 definitions=2026-01-26_02,2026-01-22_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 adultscore=0 malwarescore=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601260087 On 26/01/2026 12:06, Jun Nie wrote: > Dmitry Baryshkov 于2026年1月22日周四 18:22写道: >> >> On Thu, Jan 22, 2026 at 02:03:25PM +0800, Jun Nie wrote: >>> Dmitry Baryshkov 于2026年1月21日周三 17:30写道: >>>> >>>> On Wed, Jan 21, 2026 at 04:01:51PM +0800, Jun Nie wrote: >>>>> Currently, plane splitting and SSPP allocation occur during the plane >>>>> check phase. Defer these operations until dpu_assign_plane_resources() >>>>> is called from the CRTC side to ensure the topology information from >>>>> the CRTC check is available. >>>> >>>> Why is it important? What is broken otherwise? >>> >>> I see. Thanks! Will add below lines in next version. >>> >>> By default, the plane check occurs before the CRTC check. >>> Without topology information from the CRTC, plane splitting >>> cannot be properly executed. Consequently, the SSPP >>> engine starts without a valid memory address, which triggers >>> an IOMMU warning. >> >> What is plane splitting? Write commit message for somebody who doesn't >> exactly know what is going on. > > Thanks for the suggestion! Any more revise is needed? Sadly enough the text below is not a significant improvement. > > Currently, splitting plane into SSPP rectangles the allocation occur > during the plane check phase, so that a plane can be supported by > multiple hardware pipe. What does this mean? Without virtual planes in place, there are no multiple hardware pipes. > While pipe topology is decided in CRTC check. ?? What does it mean here? > By default, the plane check occurs before the CRTC check in DRM > framework. Without topology information from the CRTC, plane splitting > cannot be properly executed. What does 'properly' mean here? How is it executed? What happens? > Consequently, the SSPP engine starts > without a valid memory address, which triggers IOMMU warning. IOMMU faults. There are no "warnings". > > Defer above plane operations until dpu_assign_plane_resources() > is called from the CRTC side to ensure the topology information from > the CRTC check is available. -- With best wishes Dmitry