Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E48EDFC5903 for ; Thu, 26 Feb 2026 07:27:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A5F110E87E; Thu, 26 Feb 2026 07:27:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.b="HeOt6UQy"; dkim=pass (2048-bit key; unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="GMRhbRvg"; dkim-atps=neutral Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id C96CC10E142 for ; Thu, 26 Feb 2026 07:27:15 +0000 (UTC) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61Q4UxPL3433764 for ; Thu, 26 Feb 2026 07:27:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= G4I4m6RsEMahKFzP6p9o5hUH1KY7xoCXb1Vmpjga858=; b=HeOt6UQyAN5LvVFd JoKCXhQt98PQMHfAX6VeooTuqCf58+WzfbhkTSgcOieyP9fxKFq2WZy2WtQ7sIES Cw1nH8t/swlG5cnGN99JV0DHmAtHRELpFdji05pzbrKGc458iX2KHDCiwb6jEWZU Jomhy5BaZHcD5JgtRuxiS8+AYMo8y+wi6aKADlSJHCHHtNdL/r6wQe4TasxbmDWv bqL/5lnl/DoKXTI3o411QOOC6vWunONK/Svl9axtCEjFBEZ0J8haRbDWgjzbhtxB jjsS9YL47sLF2bTLiMTVMNIbLDI2EqvCYoVlpLW/cwcKU99VoZa5Cd5kSYoXyXoI DNOphw== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cjc0g8ytf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 26 Feb 2026 07:27:15 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2adb1bdf778so5464515ad.3 for ; Wed, 25 Feb 2026 23:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1772090834; x=1772695634; darn=lists.freedesktop.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=G4I4m6RsEMahKFzP6p9o5hUH1KY7xoCXb1Vmpjga858=; b=GMRhbRvg8xg1KzRxDlLpUQN0SypQeekLi2enEMhm3P2bf+aLqcRSVOYn/Xo326axZs Y50LVXiIFrtBCizfF7RO98lXBHzzaqeApqDWwfdqyb04w0t0HmBXuEKfZjOV458sAR00 oW8PrLIbgqfneVWBot+aEHzKwRaswQeP3XqaKJ/UPqqREdICiT0kid2fUHIgOD2dG8Tz C1wb9mtEBun4h6yUSkDM/ZOJr2k272boAFtylQBXVaLxnjM9YIGR53MbkwMdgqMewSnA YxR8XqYPqEdJQT0nU4jOltCEL2ZoHqGKRRz2w1ffxLXu6cl5Hd8yPExG07EhjdLNR8lB Po5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772090834; x=1772695634; h=content-transfer-encoding:in-reply-to:content-language:from :references: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=G4I4m6RsEMahKFzP6p9o5hUH1KY7xoCXb1Vmpjga858=; b=bPy/PQzX8pYUg9sG+5sjdC4aprNuTYXkdSnEDb9am/TBNiy4p1yupf4B1wynlXtiQ2 igNAWtbwgl/RIKG4mV4wBwQ841NLB2FlRyU7gJFKohXCYAQKqoC8WTFqpEUjlldyrizi 7mye/B1nrdCpgvDtB+nzcDNQKtt0fUcZHRCOGuh7PUPqt9MIg7NACUp4dp8Gn1JT4nZ3 CSB4Zw7iWkkSOUpkJYO8X5mgqI3HbMZccizWW9uH0RpCECNOWw8PY4L+TLyNhrqjBGZG q8cXpjPIAZDnBsVjhs6u7RT4gL5hWF0vErLViiZ9+bSeKVaWg7hLqw12eQtgQ0V65+cp l1bQ== X-Forwarded-Encrypted: i=1; AJvYcCUooshk3mw6tOZtOUzG185MLETOsXnq4+uEMR/LvylYZFpJlUzXBLj2N+fO7AWKIaNjI4YI/J94Q5U=@lists.freedesktop.org X-Gm-Message-State: AOJu0YzV6NZ87ASSfljjdq7rE0j+6KVDZcyiu8eKa29X5MVQpNgr6jk5 eHw5tmjiIWb++aIKdv9rxzuzQibiHquM8+5IO+SrLxUqyuh5MzISPXwCrm3GafpwZ2BLd2XUA/d pP7yqlKlN9SQ+qwlrPSJprvf8vclo7excf68i418PUuO//aDlf/BJ7G3IO/TEPLQB9frfQLQ= X-Gm-Gg: ATEYQzza6xodtsoKtPNJ91ZikhZk2BucEyTlmdB2BMbM3uwHipzZUlVLUxp7aZNee+0 2FXBr8jqcBKTdLhNBccEz93Ok8FJD7AHU/aKs1cC4XD8kbq347DemmpMkwqlTVwJiHoQq/qSWYC BecHteBL7svwivrsr5LcixcCgptK9FYBOW8kQyniCqYvMZqeRmUrAmaAuBBr35A13R9RlJqG/BB ZxIIJpBuiJgkLSctPHs0pxpuD6zVR4ajVg/04hBUcbMshVyC/vsF8HYBlQbWoz+s/npfNSHugEY GJuSIDpWZ2XTvPIE1lM6d9To3X1ECoGOLGc39aXNevz4ICtc+stb0Q5UHRaJakf9XP2e6JDsSMu 5J4uDNJ1NollTCeOnW1MUj2kNJtA7Ghe5IZwL9j+E9Jhd2A== X-Received: by 2002:a05:6a21:32a7:b0:394:f5a8:5123 with SMTP id adf61e73a8af0-395ad295e96mr3244261637.72.1772090834454; Wed, 25 Feb 2026 23:27:14 -0800 (PST) X-Received: by 2002:a05:6a21:32a7:b0:394:f5a8:5123 with SMTP id adf61e73a8af0-395ad295e96mr3244239637.72.1772090833936; Wed, 25 Feb 2026 23:27:13 -0800 (PST) Received: from [192.168.1.4] ([106.222.233.104]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c70fa82dab1sm1005344a12.27.2026.02.25.23.27.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Feb 2026 23:27:13 -0800 (PST) Message-ID: Date: Thu, 26 Feb 2026 12:57:10 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: adreno_gpu with multiple display-controllers To: Ben Dooks , freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Dmitry Baryshkov , Rob Clark References: <1a284543-9946-482d-a0ce-0d72304046f6@codethink.co.uk> From: Akhil P Oommen Content-Language: en-US In-Reply-To: <1a284543-9946-482d-a0ce-0d72304046f6@codethink.co.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=XI49iAhE c=1 sm=1 tr=0 ts=699ff5d3 cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=uU6qr6Mq+z3frnNC0vx4Mg==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=tBjSCWxmnoE_TOf2NasA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI2MDA2NSBTYWx0ZWRfX3PnUN3Kvq0c9 DI8yS1/ONnVaSojoapuvLZFs3z86MhDTcXvMv/Azm6bDkeO8W5nd/ERHYo/tNuxatfXVbDA533D e/7eEZxqV8gDPblNnohPHBNu+/gN2Gm+TzAArcNPgpzzimzdjjKrsCTBx5zTlDUCiTzSLLGUkvH SJRyjHu7ZgP96Y3i9pz8RsPvUKWboDzjCNbaGT0d34m2ufaZMXmQcHyRb2houJMQ2ygDMPJJ9/R e6fyAuVcm4z8R7ZQbl5MUqCHaHyQ5JApBD2R1euO6643Pcr/MlZCL79HXPAptuHShGfCMX4ST4W ak++JodX0ZuMRMgeOXO4dkhwIwVECZz7nt/rCcUuSACdirgkuSUg7LWAUMI46qk6fByVCaYxowp kRxFp48zOgtgpuskyWObb9IgDs6sf0QO4yvG2bRDLhwUU6qFTqz50c5w+hfFeNDoZJdxdAJGDYG RHm90fN6SHa3FmCYU3w== X-Proofpoint-ORIG-GUID: zoUP5Y-wpIsDGZ00BaMBKrQw-zUJOL1M X-Proofpoint-GUID: zoUP5Y-wpIsDGZ00BaMBKrQw-zUJOL1M X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-25_04,2026-02-25_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2602260065 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 2/25/2026 7:52 PM, Ben Dooks wrote: > I am currently looking at an SA8295P based device which has six eDP/DP > outputs and thus is configuring two of the qcom,sc8280xp-mdss devices. > > This is failing as the device registration as the first one binds the > two output channel devices and the adreno_gpu to it, followed by then > attempting to do the same with the next which fails as the aggregagte > device code can't handle this and leaves the gpu unbound. > > Fixing the aggregate device to then just causes the bind to fail as > the adreno_gpu is already bound to the first mdss with -EBUSY from > the irq code in the driver bind. > > The two driver binds are as follows: > >>> [   43.009894] adreno 3d00000.gpu: adreno_bind() bind as dev >>> [   43.020697] msm_dpu ae01000.display-controller: adreno_bind() bind >>> as master >>> [   43.076995] adreno 3d00000.gpu: supply vdd not found, using dummy >>> regulator >>> [   43.105257] adreno 3d00000.gpu: supply vddcx not found, using >>> dummy regulator >>> [   43.208582] msm_dpu ae01000.display-controller: bound 3d00000.gpu >>> (ops a3xx_ops) >>> [   43.233368] [drm:dpu_kms_hw_init:1173] dpu hardware >>> revision:0x80000000 >>> [   43.343842] [drm] Initialized msm 1.13.0 for ae01000.display- >>> controller on minor >> [   46.013271] adreno 3d00000.gpu: adreno_bind() bind as dev >> [   46.024075] msm_dpu 22001000.display-controller: adreno_bind() bind >> as master >> [   46.038039] genirq: Flags mismatch irq 243. 00000004 (gpu-irq) vs. >> 00000004 (gpu-irq) >> [   46.051349] adreno 3d00000.gpu: error -EBUSY: request_irq(243) >> irq_handler 0x0 gpu-irq > > Looking into the adreno_bind() it then passes the drm instance from the > msm_dpu into the msm_gpu_init() and then I am not sure where that all > gets used to try and work out if we can make the resources local to > the adreno_gpu device and then have the two display controllers share > this. > > Is there anyone looking into this? I have posted an RFC for the > aggregate device issue, but not sure how to deal with the adreno_gpu > side (and having other hw issues which means I can't even get the > driver to work with just one mdss node). I am not sure if binding a component to multiple masters is the right direction. I believe Dmitry (CC'ed) is exploring support for multi-DPU systems and the direction is to decouple gpu and display. https://lore.kernel.org/dri-devel/20260223-seperate_gpu_kms-v1-1-e8231e7f1685@oss.qualcomm.com/ Could you please check if this patch helps? -Akhil. >