Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2874107rwd; Fri, 16 Jun 2023 09:13:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5wU/XXmB3P8prv5qDG7ci/DEJG30R4dBFZ2wqgwFuM6xkPbvtKgnv1+ftVqXo3o0l6JROS X-Received: by 2002:a17:90b:2246:b0:24e:1575:149 with SMTP id hk6-20020a17090b224600b0024e15750149mr1603863pjb.48.1686932017183; Fri, 16 Jun 2023 09:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686932017; cv=none; d=google.com; s=arc-20160816; b=LPttVDcFhMG4nUxpXf1s8d/q9pYFlhAVFh5i11C+aQLuOER+xtdMfRV+pvBv568gBu Jd9Nu/hp36ESQUgBTYFN6EGAh8dr6gBS4r09OkQZrrVYMf1i4YFlLgjWfwZ7dAz8NVuR 1L6a1lbtLLz4uG3XHl2SWPQROYnvulLhZR1O7G4Cm3HY2TjzbtPi6QDGVFqTR6W0DkSu k/YFsS1oFAt9hfxz454VSxjq/IdxPsMYh08PLP5w/Nd0S8PAW3FfbXeEyId8lxfrVR/3 +H9IvAnQ8oYrT+H22o1siE6oU3l50TQ3OKj0b5QlWouL5Je/7WaT2CHiXhEWS01IAtc1 vXqA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5XJf5W0wyk5XaqWmM1JbV1XojqSBiRTdlkYDZYp5WJk=; b=D3p621louDLjDU0lZMsrBkBztJ6FpmUgHSjsC82di+vMX89X/siMC+rrXNNGBgxuYY UZPzf8mE/Jf4m3wsbeyYwTWNPTfdBQfm8QzRAKuTRyvlJLUEanpIe2yXnwwnEq2awo4B 8R70OX80uIeSeNrBqwaCw2ME5GrBboKzvKio9FA97kw6c4wERhluNUFJs4gRXmZFlaft 8Z1oyqqlXSFcZbW7DGOVW/dB4+eS6WXXwDjGAFJy+Zdz1YhloIRXN+A2yE92xVj4UOHY viMM3ltIx5GQJNjBlt+tn9PS/masKaSVLRBxmEmv6zDevsz7ajmWiDApmxc5g0HioZPS G1OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Y7ka0x4x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ft18-20020a17090b0f9200b002569e5bd4a2si1882952pjb.87.2023.06.16.09.13.17; Fri, 16 Jun 2023 09:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Y7ka0x4x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229521AbjFPPz1 (ORCPT + 99 others); Fri, 16 Jun 2023 11:55:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231208AbjFPPz0 (ORCPT ); Fri, 16 Jun 2023 11:55:26 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4B782D6B; Fri, 16 Jun 2023 08:55:24 -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 35GDc1Li028801; Fri, 16 Jun 2023 15:55:10 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 : in-reply-to; s=qcppdkim1; bh=5XJf5W0wyk5XaqWmM1JbV1XojqSBiRTdlkYDZYp5WJk=; b=Y7ka0x4xrs6Uu53IFxcWSEwu3BvaAOSyQxkH6Y22gUJAEpdjMENWE8UQbIcdW10xgFXi bdGKrkDNYPFKpWqWP5CLllk62zuXJCpas07ZJDQJLsU73Fiy9YBjfxpwRS4b59WFBOVA VwVGvaiiTH1hFLWT4uxu/pN4IRGuJuy5UEeNLdos4kwocZn9h2xcmXcbtH1pBAQniAlV thih1frz+LGT2nYtFzyf//qDRnpRXfL2D/N5pLR94g8a086b3OEOkI2XTXhSS+SDi34Z nXjoSPaYx98D+TRfGxHmjRqEcYq5klXQg8TmsU3PS/AhUf6JeD3/a3MFsXK6SO/HhuWp LA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r8fdh1drh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 15:55:10 +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 35GFt87n027791 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 15:55:08 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.986.42; Fri, 16 Jun 2023 08:55:04 -0700 Date: Fri, 16 Jun 2023 21:25:01 +0530 From: Akhil P Oommen To: Juerg Haefliger CC: , , , , , , , , , , , , , Subject: Re: [PATCH] drm/msm/adreno: Update MODULE_FIRMWARE macros Message-ID: References: <20230616122815.1037425-1-juerg.haefliger@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230616122815.1037425-1-juerg.haefliger@canonical.com> 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: NcgE4SsizypJ0NQpYADfCBCaXp4l3QYh X-Proofpoint-GUID: NcgE4SsizypJ0NQpYADfCBCaXp4l3QYh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-16_10,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=795 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306160142 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 16, 2023 at 02:28:15PM +0200, Juerg Haefliger wrote: > > Add missing MODULE_FIRMWARE macros and remove some for firmwares that > the driver no longer references. > > Signed-off-by: Juerg Haefliger > --- > drivers/gpu/drm/msm/adreno/adreno_device.c | 23 ++++++++++++++++++---- > 1 file changed, 19 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c > index 8cff86e9d35c..9f70d7c1a72a 100644 > --- a/drivers/gpu/drm/msm/adreno/adreno_device.c > +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c > @@ -364,17 +364,32 @@ MODULE_FIRMWARE("qcom/a330_pm4.fw"); > MODULE_FIRMWARE("qcom/a330_pfp.fw"); > MODULE_FIRMWARE("qcom/a420_pm4.fw"); > MODULE_FIRMWARE("qcom/a420_pfp.fw"); > +MODULE_FIRMWARE("qcom/a506_zap.mdt"); > +MODULE_FIRMWARE("qcom/a508_zap.mdt"); > +MODULE_FIRMWARE("qcom/a512_zap.mdt"); > MODULE_FIRMWARE("qcom/a530_pm4.fw"); > MODULE_FIRMWARE("qcom/a530_pfp.fw"); > MODULE_FIRMWARE("qcom/a530v3_gpmu.fw2"); > MODULE_FIRMWARE("qcom/a530_zap.mdt"); > -MODULE_FIRMWARE("qcom/a530_zap.b00"); > -MODULE_FIRMWARE("qcom/a530_zap.b01"); > -MODULE_FIRMWARE("qcom/a530_zap.b02"); Why are these not required when "qcom/a530_zap.mdt" is present? mdt & b0* binaries are different partitions of the same secure firmware. Even though we specify only the .mdt file here, the PIL driver will load the *.b0* file automatically. OTOH, "*.mbn" is a standalone unified binary format. If the requirement is to ensure that all necessary firmwares are part of your distribution, you should include the *.b0* files too here. -Akhil > +MODULE_FIRMWARE("qcom/a540_gpmu.fw2"); > +MODULE_FIRMWARE("qcom/a540_zap.mdt"); > +MODULE_FIRMWARE("qcom/a615_zap.mdt"); > MODULE_FIRMWARE("qcom/a619_gmu.bin"); > MODULE_FIRMWARE("qcom/a630_sqe.fw"); > MODULE_FIRMWARE("qcom/a630_gmu.bin"); > -MODULE_FIRMWARE("qcom/a630_zap.mbn"); > +MODULE_FIRMWARE("qcom/a630_zap.mdt"); > +MODULE_FIRMWARE("qcom/a640_gmu.bin"); > +MODULE_FIRMWARE("qcom/a640_zap.mdt"); > +MODULE_FIRMWARE("qcom/a650_gmu.bin"); > +MODULE_FIRMWARE("qcom/a650_sqe.fw"); > +MODULE_FIRMWARE("qcom/a650_zap.mdt"); > +MODULE_FIRMWARE("qcom/a660_gmu.bin"); > +MODULE_FIRMWARE("qcom/a660_sqe.fw"); > +MODULE_FIRMWARE("qcom/a660_zap.mdt"); > +MODULE_FIRMWARE("qcom/leia_pfp_470.fw"); > +MODULE_FIRMWARE("qcom/leia_pm4_470.fw"); > +MODULE_FIRMWARE("qcom/yamato_pfp.fw"); > +MODULE_FIRMWARE("qcom/yamato_pm4.fw"); > > static inline bool _rev_match(uint8_t entry, uint8_t id) > { > -- > 2.37.2 >