Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp45735pxk; Tue, 15 Sep 2020 17:19:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoNjiN8Ax0m19n2w0Z99hbmfk848mN0xPD0lTa9SHjnx66+focAxOV6BhUr7l9D+/wnjcS X-Received: by 2002:aa7:df14:: with SMTP id c20mr25282925edy.334.1600215578724; Tue, 15 Sep 2020 17:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600215578; cv=none; d=google.com; s=arc-20160816; b=eG5GjsCPYwiF2pIUWvLcYU2cFIiTyi+zkREyYY8IyASoaeOjCOCUBPV5Kj3+OfzsRd C/iBGGYjvQ50j0uKiB5/8p2AFQVyNsLeZQ0zTjk+u2AiFBKlGjR+lgQnWkzvnp1lNPLl 28F1DHbxvScwob9MOnGIwiymeus7OpQgDAR8bYKMTRRO7OiLRno1WiqCZkiGJtYHfLpK 6BCqSLbnSO+NwnSCqq9+iEW40M+jNYzdNcTvnInTCR0PGqw/ociAR/eYSQDX8jNSYhsT XWaqkYd5FNE1NMductpn95tdjLczSzF/WFYOSJoVitNNG2fB3if2keFuqIclZ0XGcIaJ hQgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=moV8KTHm1pZp2T6SZD7M7Bwg7RbKlaao2T2Z1vY8XYo=; b=eY9UAWzLfGH6jC4SyeWuMVSb6tmTc4amVDiC9ISPdtCZA1y1HRK3Lo6VHahiqiek52 MImJCyQbtCHAu7G40jQ7BS3Qf2yioY7N+3mEDSynjvx9XnZKsNIFXjbOUp+Wmj1Ia+Xx KFPuaC1fsDiLGEPWF8+jfe1Ry3VVdTLID4OCXf+8qhHeT72j9teZA4eCf+pJPDMiZ7Ez gN4A751ITBCVB02HuASQf9mS++Fwd55k0mHQMtbTBxUvcskf+XyS1jQvCiy6ir7hu62f dwGvPblw4fYrA72oxJS4YPrDlVBW7teeBcTzuuFxTXlJsiQPDSyYAsuapARSWJXC3MdQ aR3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EKb7bycj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si10263733eji.66.2020.09.15.17.19.16; Tue, 15 Sep 2020 17:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EKb7bycj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727387AbgIPASf (ORCPT + 99 others); Tue, 15 Sep 2020 20:18:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:38258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726888AbgIOOWr (ORCPT ); Tue, 15 Sep 2020 10:22:47 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 257AB22283; Tue, 15 Sep 2020 14:17:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600179463; bh=ok2OLz2rPKbYt+xuKoWrzvuEQmmIrwDQe/WMPCfMvEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EKb7bycj7F3BIL3Kxjry+eULP0+5EUvvCks0GLHxlfsIO5Og/Se3XSeyYavaLaS+c JG9jgNGa/3SUziaV+k0yrT+7ZMkT7Lm/jywi9T3qu1VQ8qtCs45EEl8Qs1DjjYDZGu oBH+ZspHHfBUBPydspbKqmG/2VI3ke5OwVZ8HALs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jordan Crouse , Rob Clark Subject: [PATCH 4.19 62/78] drm/msm: Disable preemption on all 5xx targets Date: Tue, 15 Sep 2020 16:13:27 +0200 Message-Id: <20200915140636.681025431@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915140633.552502750@linuxfoundation.org> References: <20200915140633.552502750@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jordan Crouse commit 7b3f3948c8b7053d771acc9f79810cc410f5e2e0 upstream. Temporarily disable preemption on a5xx targets pending some improvements to protect the RPTR shadow from being corrupted. Cc: stable@vger.kernel.org Signed-off-by: Jordan Crouse Signed-off-by: Rob Clark Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -1518,7 +1518,8 @@ struct msm_gpu *a5xx_gpu_init(struct drm check_speed_bin(&pdev->dev); - ret = adreno_gpu_init(dev, pdev, adreno_gpu, &funcs, 4); + /* Restricting nr_rings to 1 to temporarily disable preemption */ + ret = adreno_gpu_init(dev, pdev, adreno_gpu, &funcs, 1); if (ret) { a5xx_destroy(&(a5xx_gpu->base.base)); return ERR_PTR(ret);