Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3191692rwd; Mon, 29 May 2023 07:02:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6OoS7UWwDzwbVO7jfnXJTS3wbHEwpFBXVLS4/dkVsoO9CCJggSssJKEolstfe3ds9bQ8nC X-Received: by 2002:a05:6a00:98e:b0:64a:c673:d064 with SMTP id u14-20020a056a00098e00b0064ac673d064mr15652534pfg.17.1685368971783; Mon, 29 May 2023 07:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685368971; cv=none; d=google.com; s=arc-20160816; b=f+4+K4E8LQLseJhEvjZsaqvjXHuV2E8gDkRcS5rw5aKo7oZiEJS4FwXau7tC9ylrCY B+Sm4yx7CCrBnCjsqXDYUk2zfHlH3emNKBYj/p8w2nMwbvNGvd+JCPyawjtI4xyldWp7 3SDnf3foIrnjTBnWn5g3P5jqXzJzPXEbUvFd10W5f0c2+cjESsyUPUgJjF0X/F1NWw9i oUTux5Z3iqBS4rxIDkN+3Zg7sW15VMnmT3UCYw1qqxx34NIc57n7QHjFvbVqJmOdCJRl gbNc7xVoSc4T/bd488+gRANtDyXJVQymgvALvKL0TDE7S9OtW/q1HDKVslc8taSJvzz4 Hwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=nbeDfglU9RuqTNjicprjwIl53dVBd5+75wJTdFjQtgw=; b=xpUlN5NqLYemtBXRj7v39rUlB6hHzzjKBNXTmtvQy9jto6Yv4nqQ1rK39hIjce6qJE feavyIOcV+j4Tf5hLP5puJ8R72L2CZmsdx1S7wpNpTHJ8jbV6Y41UHegM8CV6Fp2Sd/F /54sZX4qmjoEvBTEse/DbW21z3TCOHVSzgl4Ed3FjG3WUkDd8w/+mgXIDiqOvAy/wVpw /k5saRLbwXy7U/Ip+V34JcmpnOEk0ZKkBOVJ6l41Fmls5kU9CKzJiK7voz7dF/7Q7IHx ybm/KNoilZlPrmEJGP+SfWxje0zVRQnYHwLhHmq74SGL/mJLJWql7DIKswarGnJnEVvz tvEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kTmeGuDw; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020aa79617000000b0064e5f4ef6d9si293032pfg.250.2023.05.29.07.02.39; Mon, 29 May 2023 07:02:51 -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=@linaro.org header.s=google header.b=kTmeGuDw; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbjE2Nxa (ORCPT + 99 others); Mon, 29 May 2023 09:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbjE2Nw4 (ORCPT ); Mon, 29 May 2023 09:52:56 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F35751B5 for ; Mon, 29 May 2023 06:52:43 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f4b0a0b557so3533964e87.1 for ; Mon, 29 May 2023 06:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685368361; x=1687960361; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=nbeDfglU9RuqTNjicprjwIl53dVBd5+75wJTdFjQtgw=; b=kTmeGuDwHU7ur/4sCsdXFYp5FoWicN2xTDVsoJWnudN7w6K3dZD4YeNnSBuqew7TON 58SXqtcMN+NnCtucxZleD7d20JoqR8E1L0azxk1a5Pqk4OiRH9L2CQKMFv+NgW+J6+Mi Y4zK7R4L3i0rEm5jeG30d4F2LmsjpQDMpmSON/IedFUxBTHeCmmJt4JLzxIqvV2KjS3M Yyv5zTuXXSyFKfvhIBtwFD4W7RUVgCFm3XUmn2A1orAp1hjSiW/J9C4GrYVPjcZR9z5w zPkRRsLO7LI1ggBw0U82WHFL7qf3+CEp1fYNQdvBD5hPUJu2/pcaaAZwh+80oaSeOBpJ Qapw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685368361; x=1687960361; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nbeDfglU9RuqTNjicprjwIl53dVBd5+75wJTdFjQtgw=; b=MgYmgY/S3lWRhScUpP7FxtNqJcUmRVJsJVJyZnuv1suWK/xNW0EylJS0+4aQwcyjN3 RDYFsUaVb7We+5jTq+0fyVJUSb9rGizkYnEvFr0SVvQReI+Q22FSEFggMdFsdM9+ptFv f3Jv4phiLAAj/E3V1OUwlKf489EjpZOtz2DZ8vW9Ps3DEVkz7QQRDxwiUhi5a5NbUOjy ww4q6jYbhJSTjq3t/Yla36zITB0OZmB7nWCqfysl2BIedgQ3yNyroV+cK9eq6S/oaex0 pZDUXiD7YC/nXHhBhUtqWW5JFT5W2VSpjuB1cXrLDoAIRfxUvMhPzZpuN1O7W9GHiVNY SiAg== X-Gm-Message-State: AC+VfDwLk/aQ3l/XFsb2AdT+ju4QlTfoGi8Ci1+zKxUfdIlzmMMF/yrb d14IRPg+OZQ9Ro/WyfnRjwcdBA== X-Received: by 2002:a19:f616:0:b0:4f2:5aae:937 with SMTP id x22-20020a19f616000000b004f25aae0937mr3856646lfe.64.1685368361510; Mon, 29 May 2023 06:52:41 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id c16-20020ac25310000000b004f2532cfbc1sm4700lfh.81.2023.05.29.06.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 06:52:41 -0700 (PDT) From: Konrad Dybcio Date: Mon, 29 May 2023 15:52:30 +0200 Subject: [PATCH v8 11/18] drm/msm/adreno: Disable has_cached_coherent in GMU wrapper configurations MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230223-topic-gmuwrapper-v8-11-69c68206609e@linaro.org> References: <20230223-topic-gmuwrapper-v8-0-69c68206609e@linaro.org> In-Reply-To: <20230223-topic-gmuwrapper-v8-0-69c68206609e@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Akhil P Oommen , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Clark , Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685368343; l=1374; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Ocm0vLk+RPaXxNK50G6/CzW6Z0tf26goam4OhjTSWzI=; b=OqnZmmRzBagGO+AOTrI+XHelqF3EIrMG+V9wzMJiWxI2d7ec+LBLcEAQeWd3/PRVxqEVdvWEp mJS/OIqE32OBBWlH7Zwv4UhJkkd+aYRL2Vi2oGPZNQkASJogpaYiT/0 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A610 and A619_holi don't support the feature. Disable it to make the GPU stop crashing after almost each and every submission - the received data on the GPU end was simply incomplete in garbled, resulting in almost nothing being executed properly. Extend the disablement to adreno_has_gmu_wrapper, as none of the GMU wrapper Adrenos that don't support yet seem to feature it. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/adreno_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index 8cff86e9d35c..b133755a56c4 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_device.c +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c @@ -551,7 +551,6 @@ static int adreno_bind(struct device *dev, struct device *master, void *data) config.rev.minor, config.rev.patchid); priv->is_a2xx = config.rev.core == 2; - priv->has_cached_coherent = config.rev.core >= 6; gpu = info->init(drm); if (IS_ERR(gpu)) { @@ -563,6 +562,10 @@ static int adreno_bind(struct device *dev, struct device *master, void *data) if (ret) return ret; + if (config.rev.core >= 6) + if (!adreno_has_gmu_wrapper(to_adreno_gpu(gpu))) + priv->has_cached_coherent = true; + return 0; } -- 2.40.1