Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp156135lqz; Fri, 29 Mar 2024 11:39:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWs/Ph0as6vFQz5174ollb56EA/WPlxWBwTflrie1a2wf+K7w7LWm7CQbYHPi515RZ4GyYNv+nT/0Z7UOyyTDSJnEHIZhA1i53v2Om8VA== X-Google-Smtp-Source: AGHT+IF+RNQ0YAzHqTfH+cO24qoRX01a5leHnspWG0myWffUoCRJXOZYwXlNcjv/ZAvTdfZexxZf X-Received: by 2002:a05:6512:e9e:b0:513:cb8a:59a7 with SMTP id bi30-20020a0565120e9e00b00513cb8a59a7mr2730963lfb.2.1711737583498; Fri, 29 Mar 2024 11:39:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711737583; cv=pass; d=google.com; s=arc-20160816; b=UZ/GA9ty3bCk09FSwjSzGw8o9zonpSTCD0JoY5Zh1ODUBd+jz8mxArd8zPokRKrsn8 Z9FvMPqAnflezbFZibWnIGhJLot2A02A3lXeKjiMmN3LI40S24MmU8usGVpixxm+tjzi 13UUw0D6g2BE8aM4Uj5HzD5xOWJ8UV0xS7dsaPuUwB5XCEkSsoQNZG17RcpLAFCyE+PM 1kVcjE6CX0Wr+q9isMiP6o5OtBB2l25h2I17IsYoiF/yKD7rRreGaipiMiXGP3M4oJxN kpMZ7xhUU25x9/sEmXaz4eZFjfP1csqvdHu8jXl7Jcbu0YjdGF2qsYJ+SOIGi/gnfpph pYYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yRTwX+qHIYV9yXVJsqfoQZk6JWIEWiuhlYjrIn5+DXs=; fh=RT9aygGXxkg2yAI0NujFlN8K462SDw1gPYV0XgSI9xM=; b=WFRxK2AtEERIvvYoA7a44tYQ1By6amYz9xSwMfEDbRN4spl3PuB0VG13YvXlfU4xkX 3FNsz6Qm52dy/YAyzsw0szqOliAHfjZn6xN2yx//56MNe0hbENRNSEQECAeErYa0FXMS Ui9DbDVSftShCErVyXZB/FbD7bpe9lQX88+I+CwVokLeZ89Nz/p+wjLf6csE53o2PCWt 04NiIicic2CBDfmeyMRsF3PiPvQc47BjVZ3o1qmqo8FneiaVg6sujmvu9ghwlBevDcaR 1UVO1lws5PJs7KdkxT+va41QxYon7+AAAB8/mW1tO6CWiqFzzhCKs1t0YjWNB7/LH13k KkjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aHCraI5U; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-125288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q21-20020a50cc95000000b0056be0ed5480si2028906edi.484.2024.03.29.11.39.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 11:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aHCraI5U; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-125288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0F3441F2418E for ; Fri, 29 Mar 2024 18:39:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AE47535C1; Fri, 29 Mar 2024 18:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="aHCraI5U" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 433CB39FFE; Fri, 29 Mar 2024 18:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711737569; cv=none; b=ZFZ997cpmPM16jqFEBdwK4szwJOn/lt/StfFl5VvjK760St8maBGjfcRRS9vSRAPL43KLwAvjdpZ0G9PrixvOxwFRGd9ye11iZBsDUw+4hvBuaqQSezWAQdC+qj6Gj/xxSyxURkUZ1T/2z80hnCkq3Wsk+0yBxgv9BlXrlwtU9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711737569; c=relaxed/simple; bh=0wmSmgoOywQrbyPUt9U489p4pzF17Ln+ybkakmRaWic=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=mYPtZoA0F0i/SnmpIVMuU6FKFtuA+j/g0w/s6DJVAMqhohXvTXmWsn4PdfgC9f4f2jtZwLZoO3PIqr6qLhR4bia+9KvZ6OIQjNvhdNSaEqfzvxM7QZzJ8d0jLHWN058z0qljWORljEZ6dynRzJl7ilOUtqlBUKYUCkOosXJpjRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=aHCraI5U; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42THvciQ015978; Fri, 29 Mar 2024 18:39:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=yRTwX+qHIYV9yXVJsqfoQZk6JWIEWiuhlYjrIn5+DXs=; b=aH CraI5USeigX/vwtHYajXj9vCMHNSl452e2ql/1xW7eEDwgkwhmWqQK+ytMx9J8r1 uZywaiYb32zK3GSPsX2hyPMNIpK0szHL3JCryQb1/JGC9zXnsYIqnZwc1deFZppM 1Edusrnr0QfgTSIFifCZT/xW3mefb2xQkBO7BrFbaTRL+ved2SpDiDaf76HMWdpY d3t0ooM0KFWHjtUavM5nMDcO4BVayvK4blCVf/HZwlP9O1dyrOp121Vr8Tc6flrB IVQFf3gbA3sC+AG9sx49KVveHHmwwZd4v3fZt/7bitMtKiWveg5nPZPE8YplBuZq ME6V/eWhm/cU+l7kiZSA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x5w6g0tbq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 18:39:17 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42TIdGoU005391 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 18:39:16 GMT Received: from [10.110.118.161] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 29 Mar 2024 11:39:13 -0700 Message-ID: Date: Fri, 29 Mar 2024 11:39:11 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] drm/msm: fix the `CRASHDUMP_READ` target of `a6xx_get_shader_block()` Content-Language: en-US To: Miguel Ojeda , Rob Clark , Dmitry Baryshkov CC: Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Connor Abbott , , , , References: <20240326212324.185832-1-ojeda@kernel.org> From: Abhinav Kumar In-Reply-To: <20240326212324.185832-1-ojeda@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: P0GcQC4Y0AiUXacx71zjBPF3HBkp2tqH X-Proofpoint-ORIG-GUID: P0GcQC4Y0AiUXacx71zjBPF3HBkp2tqH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-29_13,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 malwarescore=0 adultscore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=948 impostorscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403290165 On 3/26/2024 2:23 PM, Miguel Ojeda wrote: > Clang 14 in an (essentially) defconfig arm64 build for next-20240326 > reports [1]: > > drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:843:6: error: > variable 'out' set but not used [-Werror,-Wunused-but-set-variable] > > The variable `out` in these functions is meant to compute the `target` of > `CRASHDUMP_READ()`, but in this case only the initial value (`dumper->iova > + A6XX_CD_DATA_OFFSET`) was being passed. > > Thus use `out` as it was intended by Connor [2]. > > There was an alternative patch at [3] that removed the variable > altogether, but that would only use the initial value. > > Fixes: 64d6255650d4 ("drm/msm: More fully implement devcoredump for a7xx") > Closes: https://lore.kernel.org/lkml/CANiq72mjc5t4n25SQvYSrOEhxxpXYPZ4pPzneSJHEnc3qApu2Q@mail.gmail.com/ [1] > Link: https://lore.kernel.org/lkml/CACu1E7HhCKMJd6fixZSPiNAz6ekoZnkMTHTcLFVmbZ-9VoLxKg@mail.gmail.com/ [2] > Link: https://lore.kernel.org/lkml/20240307093727.1978126-1-colin.i.king@gmail.com/ [3] > Signed-off-by: Miguel Ojeda > --- LGTM, Reviewed-by: Abhinav Kumar