Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3487843rdb; Wed, 13 Sep 2023 13:40:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZSiw+M+9SOYZ+bcdO7nC9i7dHgIn8n/8FAsEEtCYc91ysTtE0Sn9NI5TiTPEmKJQvSwT5 X-Received: by 2002:a05:6358:9992:b0:135:43da:b16d with SMTP id j18-20020a056358999200b0013543dab16dmr4426597rwb.11.1694637611037; Wed, 13 Sep 2023 13:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694637610; cv=none; d=google.com; s=arc-20160816; b=ANP7IghqZRqOQjDaNMBiSg9a/4QJKqg78cTut9b5Jh7GLwgTcwqgDDG4ol0YMq11nR oIQUb0BzDE/o3qUn8206AUEVmGV7YDH+7ACKA5mimz2TPo3wgqMxHTWH7jcjuDn3CyYT tiU/1lYkBlcn2CoG+Z/+Nae+vKV/AOjD9YnycDIQuBcGaAhqYrQKu2rcGjlb83p2FYOS 8PrsDqE3z3ypVjtZFhNAid3CsuVhps4j9LHL0PeNT3Ow1t4rOMYaEj6GKaFrmUhCSuff YxEwiy1K5UGJUxAjFXkUswRShlYKjYxUTBvgp/ZAOZ+W7Ni7CtzbAoETD9xrBevVd0Ze hFfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=yb6IOfY9+vEec+6xIf+iuXQW3Hl/QkNUzvliIRsca1Y=; fh=nP2GvvH2ouUYUIq2g2jwrbdlBASi5/r59uOkJowSWQ8=; b=HIg1aVKMRsA1CFQaDi9NAQcUgwNtvlG+D9NoD1uX/0NY8fz7PJMG9vZveeThHmvJMT OVmKqhHWCpA2HxRfwXYzsvv5M2OP9Dr1CdZieAmiNoxb3jKlzsYVRNxCW/Bxj7i2RUdj ty0X34BbkK5v28hkXZOLcPUY+xgbeExDg+s1FT9Vft+L0/ZD5x86PauPg7gHZq83Do8Z lt2JaXW4HCvvYL+as/bfASYxsM6RLOiCU6KWPWAJZcXWLN832BhprzXzuvnI933/dLnt HTc20bgMgd8WFzWnO06Y/sPz6vzm4eyans+h64ieQ3kZ5Un8s9biqtpB21L5Vu4GUjJl dpQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i4YlHtPf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id c2-20020a656182000000b00573efae0ee1si10180437pgv.515.2023.09.13.13.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 13:40:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i4YlHtPf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 26EA1812E349; Wed, 13 Sep 2023 12:24:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232301AbjIMTYC (ORCPT + 99 others); Wed, 13 Sep 2023 15:24:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232236AbjIMTYB (ORCPT ); Wed, 13 Sep 2023 15:24:01 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D43C1999 for ; Wed, 13 Sep 2023 12:23:57 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b962535808so2917911fa.0 for ; Wed, 13 Sep 2023 12:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694633035; x=1695237835; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yb6IOfY9+vEec+6xIf+iuXQW3Hl/QkNUzvliIRsca1Y=; b=i4YlHtPfORwaUiaqbNeUYTOfaZU6dRbuZ9GlZF/S1VWYDJ8cnki5ZJYwgHsg8Xek6d lZgvX26fXY0iS5PX4NjWlcV//NqOAcMS5uESZgjoYXk4L3cXtrc6ywJN64qyRFzSU7fN lD4xtgg5bTzWjafIMyoCfotWiwSbz1PGMjpx21y10a/kLbypO3OnIU9IMsgN0oedVPvx IduXZS7fc1K0I1JJnMzFFN4yWIWOiSpEVDjEwxuK4jDf5gikiDcCsgmZEylBAIJ7zSTr 65RBqgAHRnSiGZtjq2DdMDnXJMFqluo5xNLd2YLON7ouNSKhLMsNQjzzIpz/Xiph/itt BgAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694633035; x=1695237835; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yb6IOfY9+vEec+6xIf+iuXQW3Hl/QkNUzvliIRsca1Y=; b=KxEBDClj5uQsVTZeBbdZm+yw6lJGiTdvoNf7ybg5Ozmi0cV9I2yD6hqaDqNkKo0JLg mSq8BKGLL+5pjaYEGyoq1MZ71ZwBs5DLC1Sn0OYK0QKJ2hrm59HOaKRkaSrlXPCUFG6S kLG7Dq+e/QTYeE/0BrFauFCBAREKX4zYg7SS3ReO2zrHn0ukHu3lFr0SePTjx4n3kXYE nIWcUgBUqKE5wHVdbe0gBKuHQqoqMsorVdTwtCQ7Qa/s2Mz6RkF3x1jafC4/5Gs+bOil 24fu3fvlBWJc68BpbHzeVCcBuKAEvsLdqPd9+K9JAWVe0L5QeL87VUzwnirSz81BHz+D Cg+Q== X-Gm-Message-State: AOJu0YwXfiP2+RdetoXdgfGyrKinEgZ8IW43Ncfxn1KLlqb1g4sC8bSo 4bvNCPe28tD8LTDFj+U1IL278w== X-Received: by 2002:a2e:8182:0:b0:2bf:a0d1:b122 with SMTP id e2-20020a2e8182000000b002bfa0d1b122mr2926640ljg.5.1694633035453; Wed, 13 Sep 2023 12:23:55 -0700 (PDT) Received: from [192.168.37.232] (178235177172.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.172]) by smtp.gmail.com with ESMTPSA id q18-20020a170906a09200b0099b8234a9fesm8901041ejy.1.2023.09.13.12.23.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Sep 2023 12:23:54 -0700 (PDT) Message-ID: <7671aa93-3967-45c0-bf09-a2d63a99ced6@linaro.org> Date: Wed, 13 Sep 2023 21:23:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/msm/adreno: Add support for SM7150 SoC machine Content-Language: en-US To: Danila Tikhonov , robdclark@gmail.com, quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, marijn.suijten@somainline.org, airlied@gmail.com, daniel@ffwll.ch, johan+linaro@kernel.org, andersson@kernel.org Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230913191957.26537-1-danila@jiaxyga.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAmQ5bqwCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQR4cBcg5dfFjO BQ//YQV6fkbqQCceYebGg6TiisWCy8LG77zV7DB0VMIWJv7Km7Sz0QQrHQVzhEr3trNenZrf yy+o2tQOF2biICzbLM8oyQPY8B///KJTWI2khoB8IJSJq3kNG68NjPg2vkP6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3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20230913191957.26537-1-danila@jiaxyga.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 12:24:07 -0700 (PDT) X-Spam-Status: No, score=-0.9 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 pete.vger.email On 13.09.2023 21:19, Danila Tikhonov wrote: > SM7150 has 5 power levels which correspond to 5 speed-bin values: 0, > 128, 146, 167, 172. Speed-bin value is calulated as FMAX/4.8MHz round up > to zero decimal places. > > The vendor's FW GMU is called a618_gmu.bin. And also a618 on SM7150 uses > a615 zapfw. Interesting. GMU fw comes from Qualcomm and should not(?) have any vendor modifications, btw. Can you try loading the upstream a630_gmu.bin or a619_gmu.bin from linux-firmware and seeing if anything changes? > + }, { > + .machine = "qcom,sm7150", > + .chip_ids = ADRENO_CHIP_IDS(0x06010800), > + .family = ADRENO_6XX_GEN1, > + .revn = 618, I'm not sure what Rob's stance on using revn is for values that have already been used before.. Konrad > + .fw = { > + [ADRENO_FW_SQE] = "a630_sqe.fw", > + [ADRENO_FW_GMU] = "a618_gmu.bin", > + }, > + .gmem = SZ_512K, > + .inactive_period = DRM_MSM_INACTIVE_PERIOD, > + .quirks = ADRENO_QUIRK_HAS_CACHED_COHERENT, > + .init = a6xx_gpu_init, > + .zapfw = "a615_zap.mdt", .mbn? > + .hwcg = a615_hwcg, > + .speedbins = ADRENO_SPEEDBINS( > + { 0, 0 }, > + { 128, 1 }, > + { 146, 2 }, > + { 167, 3 }, > + { 172, 4 }, > + ), > }, { > .chip_ids = ADRENO_CHIP_IDS(0x06010800), > .family = ADRENO_6XX_GEN1, > @@ -507,6 +529,10 @@ MODULE_FIRMWARE("qcom/a530_zap.b00"); > MODULE_FIRMWARE("qcom/a530_zap.b01"); > MODULE_FIRMWARE("qcom/a530_zap.b02"); > MODULE_FIRMWARE("qcom/a540_gpmu.fw2"); > +MODULE_FIRMWARE("qcom/a615_zap.mbt"); > +MODULE_FIRMWARE("qcom/a615_zap.b00"); > +MODULE_FIRMWARE("qcom/a615_zap.b01"); > +MODULE_FIRMWARE("qcom/a615_zap.b02"); and here too? Konrad