Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2638190rdb; Mon, 4 Dec 2023 03:28:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4kzofIs7lcv0L6/QMwK5e36zzUYfwGzD4hUQvbWSwvP3lmLgX9GY4lNSDl1By8WsEEBvC X-Received: by 2002:a05:6a21:6d85:b0:189:6cf5:7901 with SMTP id wl5-20020a056a216d8500b001896cf57901mr5416412pzb.33.1701689316829; Mon, 04 Dec 2023 03:28:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701689316; cv=none; d=google.com; s=arc-20160816; b=ETk+bDLiuNBRbXgOA4CdUugZAVrYHflUW+NV3Bv3NtX+pgoI0b9RNMXNOmPIyInAwV sgR/2KeH027yX3e/HP71XhsvnwHKoUbQWooKOsL0Agho46oOxVJ7lkh0++ca8Fkim+XM BzY6My9NzlLU8iEowg6I6pU3XO4qmf9Qi7CbyJ8MSnw7hTCU99Su237rTUs5tV5KKDQe FViBGbRoY4fsdqRPRyLaG8Dysz7eu5idaUFrUax9i36ahHln81owGFhgN/xBdc7EN7oX Zgq9+zgthYIk7rheJi8rKBfq4HPXkubFnZt841WR0iRgNFcTm5uL57CrJv9jFTJrKZZr cdqw== 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 :references:cc:to:from:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=Lz+E+wLWwW8b7AOyJ2PaT0gpAg9bci3vqDG+CSgpeuM=; fh=eIp1kZPyEVSaboaaMFlsfHwf9EdgAMyzBGQoZTsDlQU=; b=kUfuHrN9MXxt4WwAJwUHo7QTnSxni5zIvHD1gbgudoN1ORJvmz+flaMBpFYy4Qetmq xcR+2TnuqhT29LbuWdIM7GGKYc7/piewPhu010CTejvEufpl8+hQtWnFl8Fpgw3+4vD6 3TiaXxjr+oHSLZQGmXzoLEjAe7n0IDbl0EL9mfdxcpm2VgkLHU+W0BPhj11Ep197WuQY 6hfjcTh0MvcV+BX0VpwRM4dJgHt7ivVlrGHbgq8tTCS5lp2tsOCc0CN7UYe30xywx5HN p/QAV3BTgKXvA7Hfd5PctCoHp6zxfVui8z2s2dv7AroFcg6uPiSVw33qXUTtRBeZ+DBa xu7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Z4n/k2TS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x20-20020a63fe54000000b005bdfd3a269fsi7651405pgj.581.2023.12.04.03.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:28:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Z4n/k2TS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 56A1F8065EFF; Mon, 4 Dec 2023 03:28:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230174AbjLDL2U (ORCPT + 99 others); Mon, 4 Dec 2023 06:28:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjLDL2T (ORCPT ); Mon, 4 Dec 2023 06:28:19 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B95BA8 for ; Mon, 4 Dec 2023 03:28:25 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50abb83866bso5614884e87.3 for ; Mon, 04 Dec 2023 03:28:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701689303; x=1702294103; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=Lz+E+wLWwW8b7AOyJ2PaT0gpAg9bci3vqDG+CSgpeuM=; b=Z4n/k2TS5Q3uvStcH6b9m+l1wx5JoWv1vQSXGXh7+4YmAKjlaRBzt0Z2gz3fK+7RZr OOFcL+lCSSthPVxft40mwFMIb4Da+l8Kb9TyLF4l93yAjFrvx6gYmIsIbe6PI/5hKq5T DmxUscBMDpqhqB8QGf0a4iFJFu1M0NwjT8xWIOkKaAemG7scnlNnFS2H5SsrvmQG+IAi VYevq+8eczLgygbP+3XWeOUMBA42r5ey5WoQKp/2b+adyp9bi0L75Zr3DhYyo5Elv9FJ dOTB0gt78o18ZtYbq6h0ufHMjdYDqPZkX2009kV8NP/Df6bxauo/hJds8gsouRFHLa1D j6dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701689303; x=1702294103; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Lz+E+wLWwW8b7AOyJ2PaT0gpAg9bci3vqDG+CSgpeuM=; b=SNOPJx86Dffpa2jt3dWDsxflyZ82pfO4vxg4Zq0ZXfTj3zyjuXUgqTeNdv+c13j5xz EhzG0BuTLktnee8jv6yTd6f5Guwwf3bW8+664RPhyJE5JEAIhICAO8sJvOkBSDU6EM5k xySsNze2u6CZknUeWk4QtHJ3EbIoB67lpdZFBNc+XbDPxoueBRjARA3+bD66ohaG4Upx Oo9BmT8wRmVY3vtDANAunZWOLl5RSNjMEv66E3waePuwzdjb7Z1IzWpJw5HXx91doHQK LpX7dtGHeiJCvpwsxahMDs1iuYPrpwNE8qsE0oCwplsLgE/nXPj1JkwAFeK/xJv1Pc4G ALuA== X-Gm-Message-State: AOJu0Yyk7oGMCE3c0CyYC25sOxNn0CGhGgaA6AGLqvykBg7W7ZVuhqwA e62NpSTDqc4KSIDi2FXobStgAg== X-Received: by 2002:ac2:4d07:0:b0:50b:f83b:fe62 with SMTP id r7-20020ac24d07000000b0050bf83bfe62mr384695lfi.25.1701689303176; Mon, 04 Dec 2023 03:28:23 -0800 (PST) Received: from [192.168.209.83] (178235179097.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.97]) by smtp.gmail.com with ESMTPSA id b100-20020a509f6d000000b0054c7a5a76b8sm2942768edf.0.2023.12.04.03.28.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 03:28:22 -0800 (PST) Message-ID: <630d10c6-326a-4cdb-be6b-cd832378187b@linaro.org> Date: Mon, 4 Dec 2023 12:28:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/msm/adreno: Drop WARN_ON from patchid lookup for new GPUs Content-Language: en-US From: Konrad Dybcio To: Rob Clark Cc: Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Marijn Suijten , Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Abel Vesa References: <20231023-topic-adreno_warn-v1-1-bb1ee9391aa2@linaro.org> <6a0398d1-22f4-4eb7-ba43-c448055be323@linaro.org> <6146cc54-b3f9-4875-851e-3d2981b23ffc@linaro.org> 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///KJTWI2kho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M4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <6146cc54-b3f9-4875-851e-3d2981b23ffc@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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]); Mon, 04 Dec 2023 03:28:34 -0800 (PST) On 26.10.2023 21:16, Konrad Dybcio wrote: > > > On 10/23/23 22:20, Rob Clark wrote: >> On Mon, Oct 23, 2023 at 12:56 PM Konrad Dybcio wrote: >>> >>> >>> >>> On 10/23/23 21:42, Rob Clark wrote: >>>> On Mon, Oct 23, 2023 at 7:29 AM Konrad Dybcio wrote: >>>>> >>>>> New GPUs still use the lower 2 bytes of the chip id (in whatever form >>>>> it comes) to signify silicon revision. Drop the warning that makes it >>>>> sound as if that was unintended. >>>>> >>>>> Fixes: 90b593ce1c9e ("drm/msm/adreno: Switch to chip-id for identifying GPU") >>>>> Signed-off-by: Konrad Dybcio >>>>> --- >>>>>    drivers/gpu/drm/msm/adreno/adreno_gpu.h | 5 ----- >>>>>    1 file changed, 5 deletions(-) >>>>> >>>>> diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.h b/drivers/gpu/drm/msm/adreno/adreno_gpu.h >>>>> index 80b3f6312116..9a1ec42155fd 100644 >>>>> --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.h >>>>> +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.h >>>>> @@ -203,11 +203,6 @@ struct adreno_platform_config { >>>>> >>>>>    static inline uint8_t adreno_patchid(const struct adreno_gpu *gpu) >>>>>    { >>>>> -       /* It is probably ok to assume legacy "adreno_rev" format >>>>> -        * for all a6xx devices, but probably best to limit this >>>>> -        * to older things. >>>>> -        */ >>>>> -       WARN_ON_ONCE(gpu->info->family >= ADRENO_6XX_GEN1); >>>> >>>> Maybe just change it to ADRENO_6XX_GEN4? >>> That also applies to 700 >> >> Then the warn is warning about what it is supposed to ;-) >> >> I guess this is coming from a6xx_gmu_fw_start()?  I think we need a >> different way to construct the gmu chipid, since the point of this was >> to not depend on the low 8b having any particular meaning.  Perhaps we >> should just get the gmu chipid from the device table. > Guess that could work as well.. Well, I realized that we already sorta do this.. MAJ is always set to 7 (duh) MIN has a lookup table that will expand with future additions PATCHID needs to vary, and that should be CHIPID & 0xff Konrad