Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3366876rdg; Tue, 17 Oct 2023 12:22:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrYI1buvkprL4+8zVDoSuY2coY3Zr/GW5xse20Lyw5jJtFePC8Pwy/4DwhzKNmwqzrP9Kr X-Received: by 2002:a05:6358:ee88:b0:142:fd2b:d165 with SMTP id il8-20020a056358ee8800b00142fd2bd165mr4260554rwb.13.1697570532883; Tue, 17 Oct 2023 12:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697570532; cv=none; d=google.com; s=arc-20160816; b=qV84fXEqMRCco9LhPcpa1pfEFUcpWBDO+pH+nz/qQveqwRQWqvLhCeBNPgSVxHAbI0 6rDnxRseGUXxxA/J2adgqpwt2EydoYLkjDrPrDMacPn9thQJ45gmOWgF9b1tl5BqbZox uCnJR80e3SG17TH0HC5eKx7OXONzMYmUlxZ09GwyXWRUpzpyuWjpjYyB182eY1mG2Wrt ZwrTL8JBm1MEg8jziH7HnBmCUhACaF1/aobJoC8zRCoYTRg8ylkSiVlqfl0Jg4DPLwLS V5OrG9lIImuO3NYnB1zX/vFzSMtCXBwH/1fEST4bCt+48a3k4+0muoSZLnjN4oa4gJug YFIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0LQuUlcaFUHetJiym4qKpAFghbPfRLvpwUs9ECHtN7o=; fh=rdqRAF90Ugm7latMwY0+18o7aCjRgYk8Of/0PjqZxkY=; b=ohgBPWzjGzh1hgL9LPfh48tKBC+hFqqtie33vkroZ4X4w49P6x1YnmyPbWbJ5EcLcl TfVJpbu7dDwZ7PKn47aSOK9R88yKPeQQJ/BCzJ5nv4L6DSi3RVpWZITrGZBwwamili4H 0ASG4stoNuxXOqUd5dQv462UVS8C/8vWDBQlhhkE3jHupcBbgF2Bday+7wzzGTB5i7Cm GC5M29f5hPYOr+HbNXeH427mwP7aC9fbGS7THv6viQiaVLyfjPB8+axSXHJ7AWyqL2Ii rMDQM6KDZNRWXP6jtsW8ltIINs6FyScCjtz74TzrUrRue8n/9Hdhi9gO4hv6VmWyTpzX 5Zbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PuB1LbVx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k2-20020a633d02000000b0056b0b30d05csi426447pga.245.2023.10.17.12.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:22:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PuB1LbVx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 83DC68028FC1; Tue, 17 Oct 2023 12:22:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343522AbjJQTWF (ORCPT + 99 others); Tue, 17 Oct 2023 15:22:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234988AbjJQTWD (ORCPT ); Tue, 17 Oct 2023 15:22:03 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E0DAED; Tue, 17 Oct 2023 12:22:02 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39HJKJYE001291; Tue, 17 Oct 2023 19:21:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=qcppdkim1; bh=0LQuUlcaFUHetJiym4qKpAFghbPfRLvpwUs9ECHtN7o=; b=PuB1LbVxtgWCkaW5m2DPkDGTCxcBAmnpp4etA7IsiOmax86tX3EHLtSApDnQWIwUtXPu spw+LTpgDf6zWDnalUyLu5sjIOzs72rmpOSK6bXXF0/6CLMzne1YV0cY7/JGQozI6x0M pWVDu2qGkSIw/9ZNK8p7cNM5lgkWLDxRcT3JSDom9giM/WU1yDzCbEAC4NDCKQZvDul3 9OV0Bz8ns3hH6vuf6dvyv8LxFaYq2facJkOdA6N+DauyfRqgX5uh77xnsbsHy3tMEAFv 20Clp2GhHXAnMcIFzNgyNxrwIjz9qjP83AYTs5bsfKgF57texZR/C7m4Uj5XoBeiJzLj zg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tsb7xjvnv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 19:21:51 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39HJLNYW006533 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 19:21:23 GMT Received: from akhilpo-linux.qualcomm.com (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.39; Tue, 17 Oct 2023 12:21:16 -0700 Date: Wed, 18 Oct 2023 00:51:13 +0530 From: Akhil P Oommen To: Rob Clark CC: Konrad Dybcio , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , , Andy Gross , "Bjorn Andersson" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Stephen Boyd , Marijn Suijten , Luca Weiss , , , , , Subject: Re: [PATCH 2/7] drm/msm/adreno: Add ZAP firmware name to A635 Message-ID: References: <20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org> <20230926-topic-a643-v1-2-7af6937ac0a3@linaro.org> <43q6mui3lofa4rqh667o54b2qcbqn5fg34ss5o7y7k7uxbxsro@dxgovofsrvqx> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: cl4rbfVQDzRvzEbrtwXrLKy6DPQYGpYW X-Proofpoint-GUID: cl4rbfVQDzRvzEbrtwXrLKy6DPQYGpYW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-17_03,2023-10-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 mlxscore=0 phishscore=0 malwarescore=0 impostorscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310170164 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 12:22:10 -0700 (PDT) On Tue, Oct 17, 2023 at 12:33:45AM -0700, Rob Clark wrote: > > On Mon, Oct 16, 2023 at 1:12 PM Akhil P Oommen wrote: > > > > On Tue, Sep 26, 2023 at 08:24:37PM +0200, Konrad Dybcio wrote: > > > > > > Some (many?) devices with A635 expect a ZAP shader to be loaded. > > > > > > Set the file name to allow for that. > > > > > > Signed-off-by: Konrad Dybcio > > > --- > > > drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c > > > index fa527935ffd4..16527fe8584d 100644 > > > --- a/drivers/gpu/drm/msm/adreno/adreno_device.c > > > +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c > > > @@ -454,6 +454,7 @@ static const struct adreno_info gpulist[] = { > > > .quirks = ADRENO_QUIRK_HAS_CACHED_COHERENT | > > > ADRENO_QUIRK_HAS_HW_APRIV, > > > .init = a6xx_gpu_init, > > > + .zapfw = "a660_zap.mbn", > > > > sc7280 doesn't have a TZ and so no zap shader support. Can we handle > > this using "firmware-name" property in your top level platform dt? Zap > > firmwares are signed with different keys for each OEMs. So there is > > cross-compatibility anyway. I had a typo here. I meant "no cross compatibility". > > I think this ends up working out because the version of sc7280 that > doesn't have TZ also doesn't have the associated mem-region/etc.. but > maybe we should deprecate the zapfw field as in practice it isn't > useful (ie. always overriden by firmware-name). Sounds good. > > Fwiw there are windows laptops with sc7180/sc7280 which do use zap fw. Aah! right. > > BR, > -R > > > > > -Ahil. > > > > > .hwcg = a660_hwcg, > > > .address_space_size = SZ_16G, > > > .speedbins = ADRENO_SPEEDBINS( > > > > > > -- > > > 2.42.0 > > >