Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2988793rdg; Tue, 17 Oct 2023 00:34:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2NdBN2Utqo98isfpPRHhF0jIgmhWa6dOF7m0w+Z7IkzGP6yO93KG95jd8527GUHRNuzst X-Received: by 2002:aca:1e03:0:b0:3ab:83fe:e182 with SMTP id m3-20020aca1e03000000b003ab83fee182mr1422723oic.1.1697528055439; Tue, 17 Oct 2023 00:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697528055; cv=none; d=google.com; s=arc-20160816; b=NN1X1n/qcAVSts0JgPZF5RB00KUNEizoIzgKXtx35Uw5a76ZbQi4QZ6HGuFLR6hHNc Las8pBn9Ne3PNWBvzz4ONScSLipWLJjAa4DqlEuvukkRy5hH7kqkbUwMPSBLORBIbAAr fKIknRjhgqQIQ7tRTXRa2SXZjratdIXvrEFt1vqtDPAAKKXKqe2nE6Y+ncZxg2uG5r9Z 8Sd6CkV6uGkyXa0qJe5XiKvjPydQ2fEh6XPtIxN4W8ke97BabLxZLyBuJalMuP5pQZ/5 1/2+YtmDKFwRorccIn1AovbIvI8aFWhNP0zI/4Kii6NFdPrT3ewr0LkJBcKaMLmYMzSA O2AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/ApyDiANstYTWyWFRnukDgHnJl3tUXr1U5Y0xyV6mrc=; fh=e3BsOhHlkCeS8TAFgJZ9OL8/Kz2D78M/MW8AwhXgYpU=; b=SXTTHkXInI6OWrGXZtbmk3VjLBc9YstOU/5oOKDohyMkBjaFA5g9qfZT0ON3hgQC9Z O+MCDUJHieas2irgqFtNp1/fcEGAbKn2WJN8L98VurZXUQNBTEzOxpSANdxpl98yOvI8 mcW3nOUWYXY2pSfDIL3yNlOHE+WgccjLoy4hEqURLs0uZ0d12qi1UinxXhQ8QQu1p3AU 2WpHn49h/usf9Ua009STV//xrdQj9KkY7o7HRANZSBXAYO5xVyfD2pVmX3VsLeE/8s9+ sWB+1X5nS3AOwdDmCIfttJwQxoVbh/JJv6AS/zp0yrs0AlvfY38P4u9JdU1J78j1ETlE 1+1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="UP1qyIM/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id w29-20020a63935d000000b005a9fde46f98si1265218pgm.52.2023.10.17.00.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 00:34:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="UP1qyIM/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D2C918052705; Tue, 17 Oct 2023 00:34:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234613AbjJQHeB (ORCPT + 99 others); Tue, 17 Oct 2023 03:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232725AbjJQHd7 (ORCPT ); Tue, 17 Oct 2023 03:33:59 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59ADE95 for ; Tue, 17 Oct 2023 00:33:57 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-7a2a9e5451bso206064839f.1 for ; Tue, 17 Oct 2023 00:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1697528036; x=1698132836; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/ApyDiANstYTWyWFRnukDgHnJl3tUXr1U5Y0xyV6mrc=; b=UP1qyIM/5i3QaiC2OvN6xita6W2B7BoicollJXeex3cyiJwRu4auCzJNBJTP35HVMq 810C24YlJqSXU+q3D0xOVlFdNwOmakHDyQzku38N6Jm/wCWWH1yXPHHVuoVl1nG+1pxT 0Ru4LpPobj/TLicrmYvXKHhPgcU4okw+FFBU4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697528036; x=1698132836; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/ApyDiANstYTWyWFRnukDgHnJl3tUXr1U5Y0xyV6mrc=; b=g+ebRPWvI/xtEhKzXnZjXC9Kl+zAoXH49X01EKDjL2BD3Qcf6pLLar8gEGyEtKODRK pP/Obp2H1s4K6d/FkQJoW7xgUWKucSZ2xY09X/ZJP4JAoPzFF6wml562GobnIrn8PshA DH+/b8l3dmCPa4CpHHMANpSmVBnFjyRUEq5YephEZsu4EThepBmxXyd7Dj8o2bbmVnLI s5n353h3RDbrothqoi2A+6c16sh4ZRwWO5nGW5GfsctPL1EGl426s92GcizTOtkmdyG8 bwh29iH7y9x4QL9IwuFx8+DqSXSPxzk45DX8pz+C9lBEuqVlGehML6MJW9Uw33Ltvxqp 8Wrw== X-Gm-Message-State: AOJu0YxE7Q0lYpqMU8k7Z0SlLag47B229sOiA0Sc7bQm2+46c9N6t6sn //uQKuAwFzIZrVvP2TULG2qLOXfDFI2HL4fOIGRFYQ== X-Received: by 2002:a05:6602:1689:b0:790:f733:2f9e with SMTP id s9-20020a056602168900b00790f7332f9emr1564343iow.13.1697528036747; Tue, 17 Oct 2023 00:33:56 -0700 (PDT) MIME-Version: 1.0 References: <20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org> <20230926-topic-a643-v1-2-7af6937ac0a3@linaro.org> <43q6mui3lofa4rqh667o54b2qcbqn5fg34ss5o7y7k7uxbxsro@dxgovofsrvqx> In-Reply-To: <43q6mui3lofa4rqh667o54b2qcbqn5fg34ss5o7y7k7uxbxsro@dxgovofsrvqx> From: Rob Clark Date: Tue, 17 Oct 2023 00:33:45 -0700 Message-ID: Subject: Re: [PATCH 2/7] drm/msm/adreno: Add ZAP firmware name to A635 To: Akhil P Oommen Cc: Konrad Dybcio , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Marijn Suijten , Luca Weiss , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 00:34:13 -0700 (PDT) On Mon, Oct 16, 2023 at 1:12=E2=80=AFPM 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/d= rm/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[] =3D { > > .quirks =3D ADRENO_QUIRK_HAS_CACHED_COHERENT | > > ADRENO_QUIRK_HAS_HW_APRIV, > > .init =3D a6xx_gpu_init, > > + .zapfw =3D "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 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). Fwiw there are windows laptops with sc7180/sc7280 which do use zap fw. BR, -R > > -Ahil. > > > .hwcg =3D a660_hwcg, > > .address_space_size =3D SZ_16G, > > .speedbins =3D ADRENO_SPEEDBINS( > > > > -- > > 2.42.0 > >