Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1806950pxk; Sat, 26 Sep 2020 05:55:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw39Ofoi5ZCEADXO1m7dylDIvVrpa9wcqik2DBWdjczNffXWsWyPQFTzVDdFUML4OF34ZK/ X-Received: by 2002:a17:906:e08f:: with SMTP id gh15mr7195902ejb.443.1601124914400; Sat, 26 Sep 2020 05:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601124914; cv=none; d=google.com; s=arc-20160816; b=0dVdKWI/e8iVq/5lLExQD+TQ7bf6xAkHRTewxpDdiX0fwz8U3z4DlFIxmtbii6pXDp 47yZpk2ln7ioVkXyai1zfTuT1cam54g7WRsJajQn8IkNUqxOahwKzCIYc2EZzAHx+6h+ nW90oi5gOpvvdQBRJtlxJdpD1pWEVKQT/MH8gmnmuXNCpW38NCuhNZHQ+selyKcpcdwF XqVfIrmxVRNbXrN+wVKwPEYJ7UIFi1Vzbh0dsWYhcS1Da65py1wAFN5r5rJCa7iAem0u iS5v8Y+Os887QArvC5q+pR7sch6v6skydY1U8ZQPt5ur1kJh5Qp+nliDHZyeDDBGaOti tCeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=foqK6d6PeFS41hCQFnmZHZLvMNZeja8GwkTNzpenNPE=; b=taOABEpO2dlrjXqEwj18j0vZeKC6ejJY2v79OG3zW2ksSwbH3wXzdqasN1GytmddiD W8TYLIXLkZo+GnnYbKPIEq61MC0JhSjzJvSFpeRsgzCNy8P9aWaahmCLewR/DPgJQNfu /5O8nM9xCocVSKGtk1feuONDjyurNNtPXevvnubjol5G9aZLswOdRG+CO4oufJZTStJD KEIy7ZJ6kleyR4mn2jzB4GYEmXOriNU35793uZ2GWNvvbIugl1UzOSQ4dDVLLNAtXjXH YO4cUm77WCW/U6auM8+YKh9i0Jh7yjPpYPXQapUF88wGZBPP9y5wo+bE+xHqZAdhej0f HlyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HZ5zxkP2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt7si3769636ejb.694.2020.09.26.05.54.51; Sat, 26 Sep 2020 05:55:14 -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=@gmail.com header.s=20161025 header.b=HZ5zxkP2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729588AbgIZMwO (ORCPT + 99 others); Sat, 26 Sep 2020 08:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729448AbgIZMwD (ORCPT ); Sat, 26 Sep 2020 08:52:03 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D7B5C0613CE; Sat, 26 Sep 2020 05:52:02 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id k15so6806555wrn.10; Sat, 26 Sep 2020 05:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=foqK6d6PeFS41hCQFnmZHZLvMNZeja8GwkTNzpenNPE=; b=HZ5zxkP2mVnrLayUJOr3gUjOa49srhi8RntJAa++LZmdX4rp3uW0qGuZBgLxsOBB14 qOJ8QQqciOxgx6cjavko9c0jfKNfSyAKC02HUBiwGszIzhTG9jf8O7Vmq7uTm/acLfPo 6G1n9WMFR0r/PxgAYrmlQZDp0lcqDTq4Q0D+2Vjg3GghubLw2PPsl8x9qOYkab1LTl7h 4k4YlEGyVYrCFXpDvdQ05hGKmVqqeJhaj6i0YS1a9vLC3aD40D7/1+V2wDmJ90K7GPw0 W23gaq6402ta5qnpbhx4eISlTXdHEOleAHtnPofynlrq/zr0fuGyx5liHS7gm1f1t9Va 9YJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=foqK6d6PeFS41hCQFnmZHZLvMNZeja8GwkTNzpenNPE=; b=Eow24aJ9OLfdLKG+y7w2GEG7KqSvDYfhZWPN4bCZOpMFaeSAGlgGgoXpgq8iGcFIOJ DaJBfmTU3XzJG3MMhu0o63YfDFA57MhxwOiU4PnA1S/rw3sN0AKes6de3vxV1ZeHwKzC a5Ak9J3UmNys6xSAS7WBvHcx7V05cpI+1VNegUfFAHFW6Vf0iY8ozVHKxHv9lMYjOebQ Zjj/gIaWLe7WLEJTWWtCu6Zod0rLFZM6Hvu2XREhkbuz0lLb/dqMnkXrsU2PSP1RIFI4 eiNROPj6fl91wgxPuv+sDK7FrQSPwWpogeAVe4YCfF0YX+Ij14mv+qATC57tsfpfQXMY MsqA== X-Gm-Message-State: AOAM532rr0xchNHNvfnEjGF8jonpb//K3iMPnwpc75p1A2a3X9vFwOLe D7AT4zKQ9pOVv2eUQNowHyk= X-Received: by 2002:adf:cd05:: with SMTP id w5mr9428546wrm.62.1601124721243; Sat, 26 Sep 2020 05:52:01 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu ([2.237.20.237]) by smtp.gmail.com with ESMTPSA id a10sm2520451wmj.38.2020.09.26.05.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 05:52:00 -0700 (PDT) From: kholk11@gmail.com To: robdclark@gmail.com Cc: sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, jcrouse@codeaurora.org, konradybcio@gmail.com, kholk11@gmail.com, marijns95@gmail.com, martin.botka1@gmail.com, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] drm/msm/a5xx: Disable UCHE global filter Date: Sat, 26 Sep 2020 14:51:46 +0200 Message-Id: <20200926125146.12859-8-kholk11@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200926125146.12859-1-kholk11@gmail.com> References: <20200926125146.12859-1-kholk11@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Konrad Dybcio Port over the command from downstream to prevent undefined behaviour. Signed-off-by: Konrad Dybcio Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c index bdc852e7d979..71cd8a3a6bf1 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -722,6 +722,9 @@ static int a5xx_hw_init(struct msm_gpu *gpu) adreno_is_a512(adreno_gpu)) gpu_rmw(gpu, REG_A5XX_RB_DBG_ECO_CNTL, 0, (1 << 9)); + /* Disable UCHE global filter as SP can invalidate/flush independently */ + gpu_write(gpu, 0x00000E81, BIT(29)); + /* Enable USE_RETENTION_FLOPS */ gpu_write(gpu, REG_A5XX_CP_CHICKEN_DBG, 0x02000000); -- 2.28.0