Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795007335; b=fU47UtQraU/L4vmJsMvVzkag7BxVk89SE5EqHWM6HpLxMeg+DJoxu50waUBqiYIxMuFP DN1DRxx1PMrN3MxLowa31X8I/9Zw8UbJfuLEpSC7IwGjz/OeVNDA2NNatmSRdFWyF3fiO 9T4yuCvvqr3OITYIhoUB2FctEKz4uU2jl7ey/EkXnBGytYju519fO9DZN7Jb8kRAtEwjU PVunWjk4KxPRv2af4JtnquMUwTm+v/XRq2JjAP/AX1MRO386nxREQzmXQdY/cnCLynWPn dkdKK+ov48n5BK+CTBO6g1slJKhi2dD+CUmtkIm66fjjqV+Qo/R+Dgi2NUsljyudYmg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795007335; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:X-Received:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Proofpoint-Spam-Info:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=lwWJzT+CNGMBrEdoIlyyR+008uz6+/iyQlSYxDP77N4=; b=sabr6quYaML6Bh3Hm/b2Qhc7dfsyfe9Ee9SgHR3bodaNPZoEGIn8k7W9FkTAD2Mew17f OKsjkwAN1/Oj/I7C8BbOy/Hdh1s2gZmbAV0WfOTHJJV0XOXcqu0bWt5FOw3QzDtpL/xlr 4dVqkmF4QSOHLZaQuDoTjGFi/sdNDNZqLi+UdeJWS214+ZBHzEOC7WflAbmK4GtJTPJHZ Z93Hfv9TdgjWwhfAEdJeUjdPKKYJr+3AjVffZU5dOKQxHKClAn2IKzewQdH84T/WqEFvP vrj0FK5tVAZDSAVr8Zslrx9EIPoSv73jDbcP+42HrVi9SfEVLqAlDAb4Y0eGiK0ra9A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=S7ml5cgO; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ViHDzEim; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73D42606A331 for ; Wed, 18 Nov 2026 13:08:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 73D42606A331 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=S7ml5cgO; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ViHDzEim 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 6AICLCtY3769908 for ; Wed, 18 Nov 2026 13:08:53 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= lwWJzT+CNGMBrEdoIlyyR+008uz6+/iyQlSYxDP77N4=; b=S7ml5cgOh9eF92oT 0Yyfzgj3aiPQPac/eoCJF0EBk8w5c/rdajTuskJIq7gFY/0Sb1+KQCh2O6zXVCQ4 NJTGtwF5i+/KyQRT9H1jfk3SU0XprPJ7C5Y+g/rOpfjQA0lu2bXFMemvtgb6glWi jrxKfS/aW32fleXr0O2Gr3O7Ceam4iACzWEYJk0OSgB0Mlm3N9RTd2GZ6aRZBKPW P4BZD5XjS5gNOz8zOLd2jD5AfIY2ZZZyQuA/eNEZCa9BjZE4SIGg/91oqrWIS1bd a1Er3HaEMhZFwnMAyQn0eMTFJGYuSao0m0npokSpMhtHrgtb3jJMaNtezPAS78w4 oVzF/g== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j0yv9b38t-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 18 Nov 2026 13:08:53 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3b18b69a018so129825a91.0 for ; Wed, 18 Nov 2026 05:08:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795007332; x=1795612132; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=lwWJzT+CNGMBrEdoIlyyR+008uz6+/iyQlSYxDP77N4=; b=ViHDzEimn0yiTzzEOfIz3d4SbAmsQPGNVea0Tq458GkpI6Tb+IODDm4Fcad4Zuu2RD ePPspx82ps+Tm1baC0+rBtzwDya5oJioNW02R2kyGHiWBJIijY5Ly+7Mb5zcx17di3Hy Zo/Mh1NzbiTIK0xwZYmIBEyR0V0QWXSEK60xFoj21AW+nMwOBjzKK11d3/GS1jzi3n2D 6xg2WPgP27FVwcicbn0mLchSdC4IwGEG4LdfqK/BoURPp5hZJz2vUZJcSyjlELyjbF0z E8csDAnmjN+JsIQ/OD9RDmtXwRWyUbbiSMwmi86MDtRk+FezgYy/1BWCDv70SelKpg2n EV4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795007332; x=1795612132; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=lwWJzT+CNGMBrEdoIlyyR+008uz6+/iyQlSYxDP77N4=; b=QHEr4P7Yu3R/YJFhum8WtAiWWoaWWKs1Z2qmWDdbGzjCQuRIo+fKbgnjf0XyRkwIsP HKKBJrRzqfIJyP+XW5v//r00lVC1HS/+FMGrPBWmNpCxD5mrB8Wat/oylnqt6+cz8z36 ZGqsXyWnzupt12nhicRFc2BU6GpqE6lMqfFNy4VB+x+Nj6XWDHdeFSHQ0W0HCkTEThpC LrEE33HSFzmdJquYZqki/ZNISVzgu/sjudTbH4csIRbFhHeUvfBQE0vkvk0oHpMzZGLi XHpgistwKavZ3NHZL326/90348gCrCfoX2gZQItTJ8OVtl4Qvbq6ubSf3giMUeFQeUfa WvnA== X-Gm-Message-State: APuU4Z+BHpNKfchskLQCkL707gV5Zz+g1HA1fc1InBrX1gzFVYenY75c 2sP3oYjVBWiio+2Kq+7tjgP7SDUI7hCAMwSuvlcvP8n3N3W4UQ1rJ3e4M8LbWAFsLpUrbfPxisd meGkIMUqlaqhLuPgpWXGP4PPhog3Ikx5aNG7V4VgEgNIz7CnSdcWQS/ZCdJc82A2MTS5G X-Gm-Gg: AZFdTZd3oBt8fNgP8Y9BZaBKh7RFHEKWlMbSxMxgb7UPQfr/a7EUgpIj7NkR2ECKAzp EKS+W1MTePuw1E6wFbIhwZxdzjPESVmZb7OoCsZEOohvfyJyrj3d++TlCKOI1XJqWHZHS1T7avT 2aSKINJwmlYi/Dx4yF6NY/sBVivdBuICfjLRe538KoQhypx+V0CTygyBhJ6Nk9LGEt9wtQuqrQQ tbSWJWqOKfP8VrcBUu1llx/inYCUAISVv1evOpU+IFR+D7Qll5MNlbpsltOrjukFqNKZVSwURTX T+1d3IY4PheTP/1m9UfoMv2ErYIfDKJPb204irZLGoBwbOa5G2zVqETurHxPmTGvxMrYt1c9ofj 6KnuzEE2Ps1Z682blE1PHxKDn5DF7JIANx2JWtiWUk6KzrdzGnpTogHeEUXem7jYIJxzmeTnf7L hU1a2hWj9/ X-Received: by 2002:a17:90b:4c90:b0:3b0:9984:18c6 with SMTP id 98e67ed59e1d1-3b3d07a0068mr4500180a91.3.1795007332222; Wed, 18 Nov 2026 05:08:52 -0800 (PST) X-Received: by 2002:a17:90b:4c90:b0:3b0:9984:18c6 with SMTP id 98e67ed59e1d1-3b3d07a0068mr4500143a91.3.1795007331730; Wed, 18 Nov 2026 05:08:51 -0800 (PST) Received: from hu-pvgtejas-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b3d187dc82sm4909533a91.6.2026.11.18.05.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 05:08:51 -0800 (PST) From: Puranam V G Tejaswi Date: Wed, 18 Nov 2026 18:38:26 +0530 Subject: [PATCH 2/6] drm/msm/a6xx: Don't fail GMU resume if the GPU init regs SCM call is absent X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261118-adreno-scm-fallback-v1-2-e99cdbf3121d@oss.qualcomm.com> References: <20261118-adreno-scm-fallback-v1-0-e99cdbf3121d@oss.qualcomm.com> In-Reply-To: <20261118-adreno-scm-fallback-v1-0-e99cdbf3121d@oss.qualcomm.com> To: Bjorn Andersson , Konrad Dybcio , Abel Vesa , Rob Clark , Sean Paul , Akhil P Oommen , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Marijn Suijten , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Puranam V G Tejaswi X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795007310; l=2583; i=puranam.tejaswi@oss.qualcomm.com; s=20261118; h=from:subject:message-id; bh=Ikh8Jp25ybn28MQXj+X5KpMXylrXqgcLJNRSS0C2Amw=; b=qgO2mCSHBkMT2IZBJ4y6YVMtedj4fnlA8tElxBtxvVLp6Reyfv/TVy5jdV0nrJFJfV1l6IXlk uBOXs6Y5cABBO5P042Bqye2Ak3nnTt2nodrQ/XoHE775VoQY9kO0i1q X-Developer-Key: i=puranam.tejaswi@oss.qualcomm.com; a=ed25519; pk=I7kFxZ7dcroo7ZWUatk8fR/J/KVbRzZq4ZBLhRRGpJo= X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE4MDA1MiBTYWx0ZWRfX89LtE14WW/gN c28QQX5uYgt1V7rAqzWIqJwBtA021D5Rvroa9cT3EztWj10VbZPLOKwI4J84aei+4mBV3Bd+kRY CKhx3bUiTWrf7phGRMZxI2y3pYhNQ90= X-Authority-Analysis: v=2.4 cv=acT0Dhot c=1 sm=1 tr=0 ts=6afda365 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=cHdlivVmVl0iieOMt08A:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE4MDA1MiBTYWx0ZWRfX24fT8nt35hSR XrzcctZF+e+9Usvhu0J1UyLdiv8lJLqDasXutl77tgkl6wyTmQKiX0TS3mJxUvRlSdmBjUy40uH wH7pM/mxlWEnXZAeXbqx8NckTd0B0KjAYya9ZNxpSm0OjD1dTplA0KlCSzO+KmJmA4hgPjCPiJn F63wSrIMapV88NwzBIktjms6GeSGaEpszZFJrYgbS98PF24+NvD+2nq0LEcs6e/uluSuTteuQda rl2o2FkOyiVgy1NyHt/MUvTjPJ8VwMzKfx6sDXatWod/VKRNVuZ8eMRI1OjIdq8Zk7giAzn9kRP W24QWkn7e8/Ppj4zuLD0C52taI3iuywAy0PcNAnjQ14LJ6rwoitdy6LSAuiAmiLFrOD6kuu4/8R 29eGDpFLPUF47gUxazFcvUN4F4QAlEfQhl9uvxkgKHjOb3LA5UVE5TfeaAXneT7sPIR5bN1oT0h 3W91dPvAeyc9nSbBraA== X-Proofpoint-ORIG-GUID: p1364h4k9hpIyNw2-tKn1CGKeSElkI3m X-Proofpoint-GUID: p1364h4k9hpIyNw2-tKn1CGKeSElkI3m X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-18_03,2026-11-16_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 spamscore=0 clxscore=1011 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611180052 On A750, A753 and A8xx, a6xx_gmu_secure_init() asks the secure world to program CX_MISC_SW_FUSE_VALUE through qcom_scm_gpu_init_regs(), and aborts the GMU resume if that call fails. Some platforms have a secure world that does not implement this call. The call fails every time and the GPU never powers up. The fuse register is still protected from the kernel, so the driver cannot program it directly either. If the secure world does not support the call, skip it, but still read the fuse register back. An earlier boot stage may have programmed it, and the features it enables, such as raytracing, are then reported correctly. If nothing programmed it, they stay disabled. Log once when the call is skipped. Signed-off-by: Puranam V G Tejaswi --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c index 0fa2d2091f3e..95636dabee38 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c @@ -1249,22 +1249,31 @@ static int a6xx_gmu_secure_init(struct a6xx_gpu *a6xx_gpu) goto done; } - u32 gpu_req = QCOM_SCM_GPU_ALWAYS_EN_REQ | QCOM_SCM_GPU_TSENSE_EN_REQ; + /* + * Some secure world implementations do not provide this call. + * Skip it then. An earlier boot stage may still have + * programmed the fuse register, so read it back either way. + */ + if (qcom_scm_gpu_init_regs_is_available()) { + u32 gpu_req = QCOM_SCM_GPU_ALWAYS_EN_REQ | + QCOM_SCM_GPU_TSENSE_EN_REQ; - if (adreno_gpu->info->a6xx->clx_tbl) - gpu_req |= QCOM_SCM_GPU_CLX_EN_REQ; + if (adreno_gpu->info->a6xx->clx_tbl) + gpu_req |= QCOM_SCM_GPU_CLX_EN_REQ; - ret = qcom_scm_gpu_init_regs(gpu_req); - if (ret) { - dev_warn_once(gpu->dev->dev, - "SCM call failed\n"); - return ret; + ret = qcom_scm_gpu_init_regs(gpu_req); + if (ret) { + dev_warn_once(gpu->dev->dev, "SCM call failed\n"); + return ret; + } + } else { + dev_info_once(gpu->dev->dev, "GPU init regs SCM call not available, skipping\n"); } /* * On A7XX_GEN3 and newer, raytracing may be disabled by the * firmware, find out whether that's the case. The scm call - * above sets the fuse register. + * above, or an earlier boot stage, sets the fuse register. */ fuse_val = a6xx_cx_misc_read(a6xx_gpu, REG_A7XX_CX_MISC_SW_FUSE_VALUE); -- 2.34.1