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 4C843EB1076 for ; Tue, 10 Mar 2026 21:27:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B82B10E1AA; Tue, 10 Mar 2026 21:27:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.b="Wp2Bla92"; dkim=pass (2048-bit key; unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="DcAxD14j"; dkim-atps=neutral Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 22E5210E1AA for ; Tue, 10 Mar 2026 21:27:00 +0000 (UTC) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62AHCorc1572990 for ; Tue, 10 Mar 2026 21:26:59 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= uwOSOwBGmaIVUDMaH8j1aEJ7swvV/z4tQv1hEoWmKx8=; b=Wp2Bla92JokbE1oN zYFjVnXowGyRjQ7nBMHyPC2ZYWTBEA7N8xbFwCr8W617SwT5Nv6VgAasLVURBAIV L2fiejL2RDPJYWBjJCSE77lY4yV+XKHM3bITLeSJaqQzBkocx35KJMXugUf49x84 8RVUoDYOYGps1vn4sA/fxnLl8SZ6s/TZWCxZVKiVPMqPMbIWeFr3RnMMwhKRSDYl YQYWWFlv8p4Qso5puiq4BP0MTNGwlzoA7sjiX62thBXbkW95Qc7dRspxy1HwpoTH TQk9u/iOloYuaDF3DSeVcDIZhOLqcZ7wGCyukjm9qIzi376kPPK9dcGXjuKWZKxC BpfMwQ== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ctqgk8vgr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 10 Mar 2026 21:26:58 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3568090851aso77084698a91.1 for ; Tue, 10 Mar 2026 14:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773178018; x=1773782818; darn=lists.freedesktop.org; h=content-transfer-encoding:in-reply-to:cc:content-language:from :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=uwOSOwBGmaIVUDMaH8j1aEJ7swvV/z4tQv1hEoWmKx8=; b=DcAxD14j0TUJwl8/INRuIYIoC0P5nlN/OGOxiJkrKTT0xQ8fqKdrpqAoxouHYBqYZL s4dnj7x/n2CiCBKOKK2QV96DiGiyrWqZvBEvKuaInNaV2UcF60U2Ykv7NkFzzl0KCcpX elteCzHfcrG34U7lvuwcUVXyv5K+koHP4h3UBSk5GcHMHilrHRBjKgvjruhLIfsJTUDD edM/Uy+HHgDGUQYJfcOY4lYXaizFATbL9pPHOvLTrm2vcDo1bQcVEH+4JPuYO5xhoXZo v0YOSVZuolkIxEAYMGaDgyFHtbRa5U8Xyx8goNLsbBMdnwvsOWhVJ79Jp1OAGRSg6v+t i55w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773178018; x=1773782818; h=content-transfer-encoding:in-reply-to:cc: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=uwOSOwBGmaIVUDMaH8j1aEJ7swvV/z4tQv1hEoWmKx8=; b=rzFEKiqdRE4TSmBPjVkNB8xch5JZacP/mIIhXdIMc+i5aMGV+OWsVApy2xaBHzymQX jEXIt12WnFwEVSjzDasIgOAZOSFAGXLrMUpGjJ6plLmSsExI5gqV4DxGSvoLzZzB+woB dAirb2jjSw+aqtJXcbOrSO4MX8MANkpnsGXCOzpBEkdOdufHu62pcPxSWS/Leh33Z2Bx +xoQmwtmVcfK174GG/TWcS+J4VW21/ttUeTebqFmdTmtymaHA48wwJTPGzl67X7aexHA ZYkvZbhOklaCALtfK6U9XJ/MjKemL3Uuv13As0OzXTUvckY3etdLr6zyNCn+8dcPzZyn oogA== X-Forwarded-Encrypted: i=1; AJvYcCX6wMc8MomJ/cA1Mi0qPP18NxjTzG+0xDaJkrOsLP4toOK4xl5EkGLkVhUfBT/VOc6vjN8OwSfzdVI=@lists.freedesktop.org X-Gm-Message-State: AOJu0YwwQQtRYRfULUoZ2AX+/6aYo2YcHR/74rP+3/m8kVuzqUhoKUDh Obf4XfNKg68HhllFeKlDylBZtgwYAcvZXN88fAg4NeB5e5c7v1u/7qGGds2CWj+hXr3Vwp8i/zX /XoGFoHpss0y8XMsaVFYllX6jV7iuqYRfUK4SZTXTGs+9r1714hCHF7LaYZuaDg9bogNX5rA= X-Gm-Gg: ATEYQzxxkXjDJnmcfy441yDVTBLYhALD/wn7bAPKh40HmN+Lrj4Hj6irnxqyKz83jTE EzI/0eIQ+6BmxmnUh8DS13Di5uPrU3DzRjWy3WBBHcCcf/BImVsssJPdZt5WcxXFVmawXUiqmsu Rk+X0G0/IPPWIOveX7uWLzTJeQRjCYkcNuuj3RlU1H5DDoquIuraWEzgdpRM0QnqfXid220uFcH xPi2BEeZFBz5axgD1Ch00JFqswG4v0p6bqh8l9ZpAkFSzUjK6ay9vAuUFkT6nnluJp0gZN1tgk9 l0PxTEJfqoxnOIfE9mgCu6Qv+ngQJSryBxZH9UFX5JkaHfEA4u/OYNGjopU88EiTiaRDPHrQaXA nUCkjmvAj1iIiQg741vqm1Jdq0jnvC7i9ZqhZVoH28415sg== X-Received: by 2002:a17:90b:3c06:b0:359:8e65:f83 with SMTP id 98e67ed59e1d1-35a011fb98emr344271a91.14.1773178017844; Tue, 10 Mar 2026 14:26:57 -0700 (PDT) X-Received: by 2002:a17:90b:3c06:b0:359:8e65:f83 with SMTP id 98e67ed59e1d1-35a011fb98emr344252a91.14.1773178017321; Tue, 10 Mar 2026 14:26:57 -0700 (PDT) Received: from [192.168.1.9] ([106.222.235.241]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35a02e660dcsm28837a91.5.2026.03.10.14.26.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Mar 2026 14:26:56 -0700 (PDT) Message-ID: <482b35a0-6ddf-42ce-a063-20e593dcab5a@oss.qualcomm.com> Date: Wed, 11 Mar 2026 02:56:52 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: adreno_gpu with multiple display-controllers To: Ben Dooks References: <1a284543-9946-482d-a0ce-0d72304046f6@codethink.co.uk> From: Akhil P Oommen Content-Language: en-US Cc: freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Dmitry Baryshkov , Rob Clark , James Thomas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: -65GGcILpODGmJGyv4TtNJzPvfs8aXdJ X-Proofpoint-ORIG-GUID: -65GGcILpODGmJGyv4TtNJzPvfs8aXdJ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzEwMDE4MSBTYWx0ZWRfX3lUGQLtzd7H6 uhp2poztDxRRBfpLWyMoMnPLDzBU6KR8+u6YRj9q3tUqykQMdCw2yKGjplQRBb9109Yv5gbFGg7 2y6oUm1YpVHttm7NJ44XHXHpkSJ/uJlcKQmSvUXYW/HryJU96sJiwCo7aRKjtHOiO4T6u+92p7c 7EqoewGBfSlLSW9nBLSm+0snX/W2GoDEjNGek1NWXxsOBsegzICJj6uJyqjgfuQWNW7Mrgwatgm x7k0EM5JuG69jyXp/Kp4bmMAnvE4E6avUfkEfP5BAn5yD/2klOYLPDKlKy6Yk9YNH/C3FeaRwqq fdCbOXJoul4Ahz64FUWJ7sEcrvtKjgDkQubRrk3i/pEe5wpg9pJYaTYa+KIVKDFREqtIz1FJ+Wv pOsxK4Dh8v6u8DqYKf7Xna+dhZ0Mlbe4hLJ/YH+yF4eQNgf0c+JsAWGwUVTX5TIvdRHpRDnsXow C/fAQciE0vNKybIQVXw== X-Authority-Analysis: v=2.4 cv=M4JA6iws c=1 sm=1 tr=0 ts=69b08ca2 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=BW+shDmDd6ONvfG71J/jLg==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=ehd34EdH-o1B5BNdxvgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-10_04,2026-03-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 spamscore=0 suspectscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2603100181 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 3/9/2026 9:15 PM, Ben Dooks wrote: > On 26/02/2026 07:27, Akhil P Oommen wrote: >> 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? > > I've applied those and it does seem to be binding a device now. > > Not had a chance to actually check display output yet as we may well > be moving to a different project. > > I did notice there is no firmware for the zap-shader node in the > device tree, which has: > > gpu@3d00000 { >     zap-shader { >         firmware-name = "qcom/sa8295p/a690_zap.mbn"; >     }; > }; > > this isn't in the linux-firmware repo, who should we ask at qcom to see > if this firmware is going to be released or where it can be found. > I am not familiar with the Automotive software releases, but this firmware should be present somewhere in the image that was provided with your board. If you are contracted to do this work by Qcom, then the PoC from the QC product team should be able to help you out with the necessary firmware blobs. https://mysupport.qualcomm.com/supportforums/ As a last option, maybe try the above forum. It is IoT oriented, so not sure if it would be helpful for Auto chipsets. -Akhil.