Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp184953pxf; Tue, 6 Apr 2021 18:57:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmP7iPSqyVJ3TnHRlBo9KgAJqmRHmDoc26SOCc5YVfmEtzyareMqiXspty+78E1UEGONdw X-Received: by 2002:a6b:c997:: with SMTP id z145mr629242iof.36.1617760654661; Tue, 06 Apr 2021 18:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617760654; cv=none; d=google.com; s=arc-20160816; b=asB1JM3ZUx+yoOmTNilWb7bHwEi1xhmNMGKhKBOlCqIRdSbJDAxpd3flpkcB1g0YzD rFPEIUzmE38DA3tCuszlqepJs8nUBBlopP68bFjIsU4b4qXCBhU5Gc3h3IVdbsUpCmMF I5b6P/nH1aVJ3088CQ/1OncYs2b7+TS0GcsV69lmg8P3FoY6PM4osPQ82R6ZL6IrKQY5 7ZIaqbsQbD9nwBSELBvSAIK3C0xdpkNR82w+k8AReihwoiPH2x3MjJJAiqSCn8AhdjvQ V9h/7SetMDxQkWiqYElcu9e8l3jNsYg1OyPzs2lsudD8QoNc2HdzWueg+b4YGC0bg7a8 Xj2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rUBdxYlA68fe86QyvwxtRQyXIlgLQHSzQ+QI+FWvyNU=; b=kea7OlW8spHra7wVWRxNDSfC6FNNOnnsnnX+JxhFHufTrVjaYE0qO5wNrQpQWEPYpk Vl9GtUnyeIFU8zowWUnPIImI8foPGSWjDbkN3aP+7GIRk6duvW67igLNZAhb/8GD5Wey /u9okMduUxfUJDLup9zQBeA86ZwMdUiVxgK8ekwmnsxuVo0wx7UU5M04UMANI/vuCePq kwuOAjFfyoTk3NF5xvRMS30O4LqiUrjRlqYQ39EyznI085Zb5mh8uiaVlEYiXbBPG/3B DkM9kBlzzBcjoRxzgOH4vhUcB8HK67luLt8ouTwxPJFHzkXXWfMsNPOfqAdxwk3yaz1C HzQw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si19284249jat.46.2021.04.06.18.57.22; Tue, 06 Apr 2021 18:57:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243601AbhDFNSt (ORCPT + 99 others); Tue, 6 Apr 2021 09:18:49 -0400 Received: from elvis.franken.de ([193.175.24.41]:59079 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242515AbhDFNSr (ORCPT ); Tue, 6 Apr 2021 09:18:47 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lTlbK-0006qP-04; Tue, 06 Apr 2021 15:18:38 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 94ED5C24D9; Tue, 6 Apr 2021 15:09:12 +0200 (CEST) Date: Tue, 6 Apr 2021 15:09:12 +0200 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Huacai Chen , Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH RFC] MIPS: Loongson64: Use _CACHE_UNCACHED instead of _CACHE_UNCACHED_ACCELERATED Message-ID: <20210406130912.GF9505@alpha.franken.de> References: <1617701112-14007-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617701112-14007-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 05:25:12PM +0800, Tiezhu Yang wrote: > Loongson64 processors have a writecombine issue that maybe failed to > write back framebuffer used with ATI Radeon or AMD GPU at times, after > commit 8a08e50cee66 ("drm: Permit video-buffers writecombine mapping > for MIPS"), there exists some errors such as blurred screen and lockup, > and so on. > > [ 60.958721] radeon 0000:03:00.0: ring 0 stalled for more than 10079msec > [ 60.965315] radeon 0000:03:00.0: GPU lockup (current fence id 0x0000000000000112 last fence id 0x000000000000011d on ring 0) > [ 60.976525] radeon 0000:03:00.0: ring 3 stalled for more than 10086msec > [ 60.983156] radeon 0000:03:00.0: GPU lockup (current fence id 0x0000000000000374 last fence id 0x00000000000003a8 on ring 3) > > As discussed earlier [1], it might be better to disable writecombine > on the CPU detection side because the root cause is unknown now. > > Actually, this patch is a temporary solution to just make it work well, > it is not a proper and final solution, I hope someone will have a better > solution to fix this issue in the future. > > [1] https://lore.kernel.org/patchwork/patch/1285542/ > > Signed-off-by: Tiezhu Yang > --- > > Hi Thomas, > > If you are OK with this change, could you please apply it > to mips-next? Then, no need to do this change manually every > time when update the mainline kernel. looks good to me, applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]