Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1542632pxa; Thu, 6 Aug 2020 09:53:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoB7ZDHdzGhKWjDmMACRIb5UOEgBakKswcg+3wBubh9pqcrytk7wj4vuoxWX6OGITqHM8y X-Received: by 2002:a17:906:d930:: with SMTP id rn16mr5461604ejb.330.1596732788700; Thu, 06 Aug 2020 09:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596732788; cv=none; d=google.com; s=arc-20160816; b=uKltChHxf3uqxo5DPGbiRB9qX2++ld4qfoJYX9/LuIxmrGKJ/qxU0S/lwiOS2NChr3 q3HBG8Qq4hxzPHpMuXgTg8htRfHj7+Y5gz922PQlb8klXXlYT1ivnvnPCk92mtSnJkLM AW4bMqNh04+GDKbn7tM2PcgXO9Cx90ANCVYpRL9LTmLKEDvHa1rbBqOHAOiioEcxo2an LwqG1tzW0i8ZiDDB/IcWj744m9aqpMtOiRWymY1i6mqGawsuDsSNbIwzCF/F5oOcluJT tTYmACi00qLcrkwR8dzazoQcxqhWCfYmmxMAAcd8O8GnNbc7hKIl0nvIFBxGHUeFYZlX P7UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=J1QEmAmUsPq4iLEZg8BNLBabBQlELY1KJl57iAh1eA8=; b=i/XqRBuvTBUxMCrxz+47y4OPoxO8WSHLQp3jlTgK19ijgnle1fKINBeaXNF9iIyZV0 L7HlIf9HV+7aga0k4B7ZMm6DVHPn1aEAnPmqdoE1QtJB2J3Z/BmZ9xTG0CsFc55e7jk6 64Uzj0/nqvSGKSxcGxqHm8z6Ay6nSeefewm7u3kWs69JUSUmbnW2PQNL6K9lNp/RpdSU RiwUMvL91ixNMa1iZn6pXwK9z1B/7jNFPrxQnSehnCAKh6FkM++v5MKgBNVs8o7FGZkS 5KRQmshYKkmf2mgbWPNi47ywVrBrKWKfKXX4t9I8GmPOXFXi/zydQxi6aRTTJL9Ibiy8 Uhgw== 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 dk14si3419672edb.61.2020.08.06.09.52.46; Thu, 06 Aug 2020 09:53:08 -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 S1729509AbgHFQwk (ORCPT + 99 others); Thu, 6 Aug 2020 12:52:40 -0400 Received: from elvis.franken.de ([193.175.24.41]:36755 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729642AbgHFQwc (ORCPT ); Thu, 6 Aug 2020 12:52:32 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1k3j81-0004MZ-00; Thu, 06 Aug 2020 18:52:29 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 70C2AC0C65; Thu, 6 Aug 2020 18:52:12 +0200 (CEST) Date: Thu, 6 Aug 2020 18:52:12 +0200 From: Thomas Bogendoerfer To: Jiaxun Yang Cc: Tiezhu Yang , Huacai Chen , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: Introduce cmdline argument writecombine= Message-ID: <20200806165212.GA2754@alpha.franken.de> References: <1596697741-3561-1-git-send-email-yangtiezhu@loongson.cn> <10e04885-b775-e7db-b927-6400382fd32d@flygoat.com> <20200806101733.GA8136@alpha.franken.de> <9e563c75-ffaa-45b4-0e99-25a8b1eff828@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9e563c75-ffaa-45b4-0e99-25a8b1eff828@flygoat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 06, 2020 at 07:56:20PM +0800, Jiaxun Yang wrote: > Our current problem is Loongson's writecombine implementation seems buggy. > This is our platform issue rather than target hardware issue. ok, so simply clear cpu_data[0].writecombine for the fauly parts > And we don't even know which hardware is known to be good. The same graphic > card became a different story on different user's hand. find out what is broken and add the needed workarounds then. > I understood what Teizhu thought. For entry-level users, we don't want to > trouble > them, so we have writecombine disabled by default. However, for advanced > user > trying to tweak their system, we should leave a switch for them to get it > back. IMHO if we do it that way, we end up with millions of knobs for tweaking broken hardware, and nobody knows what's exactly broken. Sorry I won't go that way. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]