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 0638D409277 for ; Thu, 1 Oct 2026 07:48: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=1790840913; cv=none; b=bgWQ9ilOhP008xibrPxYu3HgDn/qeze5hWV79LYWFhEcIVMhDm0FhmuURxRK4IzM57/pJ1LeTMhAmm2VUpoqmlpncbk6X4s8IHpBOnEZQ2ZLUGFu5YDMB0cHLp7OEs242vCVKqDn9BWIW+wKZng4rqcc28GE2X9sf2KJ0dJAtH8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790840913; c=relaxed/simple; bh=l7UA7Xgr4sL9aZp+d9F3ZQnQjiF7VA/iVCyY2p6aaAU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DtkoLpLHo17KXIiF6ypuwLZKtxt78zfD+jHQVHla4gi5rAjiwzYUpS/GFdYpRGITcn3nC4OaibC/47ykxCiDPoKjtjGbamULFPd1zHux2jyKhBLNCWm4mXeAceD0KCvh6O9sLUOAa3PbRdbZX7LJ+4VHB9jfU59+bfgq7uKQCaA= 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=ddDKURof; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=cBphe96/; 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="ddDKURof"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="cBphe96/" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6916xhfr1512005 for ; Thu, 1 Oct 2026 07:48:31 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= iUE/x4AAkeHFO216HIlMg4ngpja2zUSnzj99mniJ9e4=; b=ddDKURofQRcQ9hYy Hq2aYwXGPVLXz+PHbeakAa7UV5gYiFvF1GeSwOqA8BykI38LrnOhvd2BgvVNGh9R 8IhFbBaieVVVYQ0aSNAGDSTQO7lwLm5GIK7uXpU4xpNkOVl/o/8Gs2mHybN2WLwb xVQkwFMjVIoGVXIFd7WwA7XqUmvFgVY/Ne3CLan3ojNQSQhU+GoDPq/Gogk4IrzY Rxcasv/xQYbkCrPZtxxjVjO3WyMufTTbhIAXi0QpbFxTOg3bkKx5ShEMhQP/imXm Sjw0GjE8+ZRSqEm5NKvj3G0NJ6GOYnKT3CbFpy2h/X//7Nuo0bP37MUcfnHfNNkQ ewj3eg== Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h188stdpg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 01 Oct 2026 07:48:30 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-9179ef12a03so3632926d6.1 for ; Thu, 01 Oct 2026 00:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790840910; x=1791445710; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=iUE/x4AAkeHFO216HIlMg4ngpja2zUSnzj99mniJ9e4=; b=cBphe96/4sy0q/tNYGCHwJyF9aKA4HYS2lnc0Plqn67F4PYtq4qaZu/Xf83frA1Twi yV84XPxUU76Lpaz1VYxyj6uDoczB74eCAow3ob5vM5Kn1G28FOlNlOPYgdsQ+HaDqDkC o7yzgrDixXKCEGPXkk8i171eNeI/46DK85nndptom28ZdzkoYfJyK0cYkh+vL7y13edh DSD/TkPxZUWBl5VHhsUwt6Ve/DJ6KTvdSQA5HSs/prPZBlFtTHCr4fmlL/SwazN1C6B+ IhoLOfRHjTKTBAaeNeuR5mArw0sbaRpQCgQVk8VSZNDKd+EmxDy178WDZ12WaJjnAhCT xoAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790840910; x=1791445710; h=content-transfer-encoding:content-type: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:content-type; bh=iUE/x4AAkeHFO216HIlMg4ngpja2zUSnzj99mniJ9e4=; b=RR3sNxSs7f86LtR/EmOrzlMUnmppRB1F6cMq3sSi55gDENUFiOBtJgyle92MxEU3Ji Ds8dlnA4fFcBH9vwYNCGZ0zFfT0K9JGwXzHz137jePZ1KhVnGTpo5oMwY2JQD9T3vml4 6GpLi76Aw4pShUXwZeKjW6SQFQP0pLDgP7yKfX8pM/H77dh5XEUd+4aLYbFAUykIJcJf thkKzlJt40HHnmyIsLRmZf4i4zKl2YfHruRLA1BHmrtJh4x2nvzYk3gV5r6F7K2x/bIr cHUp38FTW50FadpSdoATfHy3r2yTLbF3DplBKp0S1vhsM1WBxfRBAcKwlG4jKQqTbZhi 5h0Q== X-Forwarded-Encrypted: i=1; AKwUvBwsPuB/QqsJ2SyQZzUngpYuIcbZzjvGilag1yzrivVKhu626ALXtod9u0h406uqNLTpHi0uVwVwM18/PG0=@vger.kernel.org X-Gm-Message-State: AFuF++lZkJgyZoh02OkVxBBlirFccm4+1pzHw/7j4RkrMWiqGnQMyE/Q FtvE31gQKuqx9aASI5FwZ2JOk6/Cc98k5Dok/2TpNRKOlnlSK22QHpBMgCi60Vrmx/KcG2+lZX4 YjAvTkta1OGYkiiOPIjNIP5HDv06Eu+V6+bD6Z8TVdbsGILvsVZI6YMpO3ej1gGGqhps= X-Gm-Gg: AYBFou0aZFdGenEQQrx+GLsJmD41IdPmngrq3JNYRWE6myyqhz++BhaECvqmV+L5Be5 n5wL1pbWaBt+rww7hKjWitvc7oAMV/562oBaD6TdxkZUbacjdWl4IyvLX/2oUjkqU7oip3A/IaW EOlUVJtq+iSyPFx63nGFjytZntpllRf6h43js7pX0H061GqNgFZu3gNZmhRHNcKuo8p4BRxPTIQ Uc37+Wq9JC1tUWqnhhn4nMngINq8oEFRbl9LNDDh2OTS2yFklMQDHVbCLhJMpIcSXeyXku0dfxE /pWDtyF29aH6p0Im+1VKaLP/kGiSplTXcX0Z/s3UP5uY8gtQISFuCFiLf3iUiqVZdNrDcxPix7q s8J4YQnDWizmKwE3cTWrGuQ== X-Received: by 2002:a05:620a:3726:b0:939:94c4:b799 with SMTP id af79cd13be357-93ca9776d92mr691546485a.5.1790840910285; Thu, 01 Oct 2026 00:48:30 -0700 (PDT) X-Received: by 2002:a05:620a:3726:b0:939:94c4:b799 with SMTP id af79cd13be357-93ca9776d92mr691541785a.5.1790840909631; Thu, 01 Oct 2026 00:48:29 -0700 (PDT) Received: from [192.168.202.12] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6ae4c7efdbbsm597303a12.5.2026.10.01.00.48.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2026 00:48:28 -0700 (PDT) Message-ID: <557b1ce4-fdcb-42fa-baab-429c53830129@oss.qualcomm.com> Date: Thu, 1 Oct 2026 09:48:26 +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] drm/msm/a5xx: don't read the GPMU registers on GPUs without a GPMU To: Dmitry Baryshkov Cc: Rob Clark , Sean Paul , Konrad Dybcio , Akhil P Oommen , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Marijn Suijten , David Airlie , Simona Vetter , AngeloGioacchino Del Regno , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20260920-a5xx-no-gpmu-v1-1-714200254f76@oss.qualcomm.com> <1eca3b55-fce3-4a39-9e0d-2c6d1fcd6a86@oss.qualcomm.com> <5ibc3ap35a75ovwrhyeq2qrc55qo6zx43tsp2s5obyukzlivhw@n5tgfcsslxrv> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <5ibc3ap35a75ovwrhyeq2qrc55qo6zx43tsp2s5obyukzlivhw@n5tgfcsslxrv> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYxMDAxMDAzMCBTYWx0ZWRfXw2rLvLevKnCT 1JfxOX3q/iN/CClg70brjaj2NheliM5wEQE+hc2+yMivD7XqF/Ria0DSHJE81yeRBQofa1NmdhP 44Ql9rsrv4FMrOUJBRlCWRJmeFpTraI= X-Authority-Analysis: v=2.4 cv=OozaWC/t c=1 sm=1 tr=0 ts=6abe104e cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=4YALIuPG6eELS2f6wpoA:9 a=QEXdDO2ut3YA:10 a=OIgjcC2v60KrkQgK7BGD:22 X-Proofpoint-ORIG-GUID: ZzXnK0V05Lhh98GI5zYHi_jxR7CkSnpL X-Proofpoint-GUID: ZzXnK0V05Lhh98GI5zYHi_jxR7CkSnpL X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDAxMDAzMCBTYWx0ZWRfXz42jsreciIqN JRa5Vi2uj3L5KMk1k0+FHgj/odGVcd1CPqRrV+o0u/ewn7KRQD3pR3J0OD/hjt138Q2dCUHWzbz xT8YAQ8FffKq8f96/taqt+LEqIc1yjvLxV11W2KrCSUg0rChvd6fnHEQIEz8zHaXW/yKb8G20c8 R9MBwgctlJcGGfiwPfLA9QLUz8eMeUIWE7BcMEyL+qOZMOLw5JkR12lDm/mIKzQjD+PI/BrECJQ WbLvXBWOWEiiSx160so324MLg/llOro76SrMXAxjNEt8hPcPOWV6M1HKEjk1FO3ijthwkrvtJFk aU6d8lx3APKclaYcqefPvA1EzqBvgB4EHumU+DYnkWUUczQvPDSL9a8vi7IhDIo3sE+f/OpqqoL VrSA+h75b/5P272912mTTC07+xQlp6lUgCg7CXupQvIaAwzJ5gb1VxijL7hwwezT5lF7Xf7rV+P J0zZK5Pb9nJYqMxF+iQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-01_03,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2610010030 On 10/1/26 3:53 AM, Dmitry Baryshkov wrote: > On Mon, Sep 21, 2026 at 09:40:35AM +0200, Konrad Dybcio wrote: >> On 9/20/26 1:08 PM, Dmitry Baryshkov wrote: >>> Only a530/a540 have a GPMU. On the other a5xx parts, reading the >>> 0xa800-0xac60 GPMU aperture during a crashdump resets the board -- on >>> sda660 (a512) a GPU hang thus reboots the SoC instead of recovering. >>> >>> Split the GPMU block into its own array and collect it only when a GPMU >>> is present. [...] >> I'm not sure if there are holes in these ranges in the hw, but msm-3.18 >> (8998 kernel) simply has: >> >> 0xA800-0xA8FF >> and >> 0xAC60-0xAC60 >> >> (both ranges inclusive) > > Yes. However these tables list registers to dump. We don't need all GPMU > registers (and even if we do, it should be a separate patch). Fine. GPT points out that crashdec doesn't recognize the registers-gpmu section name, rename it to registers-gmu or fix up crashdec any which way: Reviewed-by: Konrad Dybcio Konrad