Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5465345imb; Thu, 7 Mar 2019 16:48:51 -0800 (PST) X-Google-Smtp-Source: APXvYqz0cJR0C5dmJaaOkuZrR00FA4yqttuUGdDS761d7Q4+6nCNoqLIDVm4BKtwq+Ui0I4a72ht X-Received: by 2002:a17:902:8ec1:: with SMTP id x1mr16108299plo.52.1552006131036; Thu, 07 Mar 2019 16:48:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552006131; cv=none; d=google.com; s=arc-20160816; b=1Hoc5bFakgMNvJb3YGHn73tft88olPgrXyakp5c0oI1B9b6EbtfB7Lyh2O0/1YFebL EwBhPtYV6mJOIWNRzqQUbwvJTqeqK57ozMplxSaWYywxW+2NKE3BPpNGAthrImiqXVa1 ZT87OdooDzjkzGKIhqQuCPYDCmA0DbFEve6jpyCUuuMbFn39Uzx1WQ9haAFQO8Q/Qz0R iM/J0yuWmSj/i+gDFpj8nWejsZ7SFJuz4i0Xnn4Kg1sv5VkmLYEQB1SNVMVXMAnmfRZC qNgoNz7HFEhP3F+uIgvGVfHcRBS/N11o7cEtigcRb3Kk4hzH+c/Jg7HxVy0Eeo9nXmtB yHiA== 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:message-id:in-reply-to:date:references:organization :subject:cc:to:from; bh=B1ak7AO1UlbnCvLO32Mw2a46TQpKGan5LxC5eN/oJno=; b=m/NPTz7lDMX/xF3QrzKCg+MbpFJ8Zg6tGMiKZ5AcNjBqbIlJN2qxMspPYR6vVcBV/p R1PsDKXU9s8brRAKzv2oWjr8Gu3mtchQR8fZnExXglLLDnJXVwm7UIRWzdBLILtS5SNB jFHS0Wg8jx6Me19n6oX5onOjkilvQlIBn3ZnIelmYLr13qTuq+nO5gVNfeUn2/WPaXZR qQsN9yxiBoaGqCQzxtakjKNno8PPl5AfsEkHgeHtP9dsEo1vb9RNbbxdsHH6LZiEpzjk aEvfYd7GswOF/gvXBo0YiCOW9COnqUHL0ByvjfzABxPyW12Kfl2xmGL1AlOhLtTPajII 4mlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u37si5095963pgl.128.2019.03.07.16.48.35; Thu, 07 Mar 2019 16:48:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726305AbfCHArs convert rfc822-to-8bit (ORCPT + 99 others); Thu, 7 Mar 2019 19:47:48 -0500 Received: from linux-libre.fsfla.org ([209.51.188.54]:38844 "EHLO linux-libre.fsfla.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726237AbfCHArs (ORCPT ); Thu, 7 Mar 2019 19:47:48 -0500 Received: from free.home (home.lxoliva.fsfla.org [172.31.160.164]) by linux-libre.fsfla.org (8.15.2/8.15.2/Debian-3) with ESMTP id x280lDiH031397; Fri, 8 Mar 2019 00:47:15 GMT Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTP id x280kkci391076; Thu, 7 Mar 2019 21:46:46 -0300 From: Alexandre Oliva To: "Maciej W. Rozycki" Cc: Aaro Koskinen , Tom Li , James Hogan , Jiaxun Yang , Huacai Chen , Ralf Baechle , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] On the Current Troubles of Mainlining Loongson Platform Drivers Organization: Free thinker, not speaking for FSF Latin America References: <20190208083038.GA1433@localhost.localdomain> <20190211125506.GA21280@localhost.localdomain> <20190211230614.GB22242@darkstar.musicnaut.iki.fi> <20190217235951.GA20700@darkstar.musicnaut.iki.fi> Date: Thu, 07 Mar 2019 21:46:46 -0300 In-Reply-To: (Maciej W. Rozycki's message of "Thu, 7 Mar 2019 17:59:42 +0000 (GMT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Scanned-By: MIMEDefang 2.84 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mar 7, 2019, "Maciej W. Rozycki" wrote: > So this seems backwards to me, port I/O is supposed to be strongly > ordered, so if removing the ordering guarantee "fixes" your problem, then > there must be a second bottom here. Well, it partially restores the earlier state, so the actual bug goes back to latent. We just have to find out what it is. My plan, in the next time slot I can devote to this investigation, is to try to bisect source files that use these interfaces to identify a minimal set that can switch to the new barriers without breaking anything, then report back after failing to make sense of it myself ;-) So, yeah, several more bottoms to dig through. > Does your platform use `war_io_reorder_wmb'? Err... I'm not sure I understand your question. It uses it in __BUILD_IOPORT_SINGLE within the expanded out function, given !barrier, but you already knew that. Did you mean to ask what war_io_reorder_wmb expand to, or whether there are other uses of war_io_reorder_wmb, or what? -- Alexandre Oliva, freedom fighter https://FSFLA.org/blogs/lxo Be the change, be Free! FSF Latin America board member GNU Toolchain Engineer Free Software Evangelist Hay que enGNUrecerse, pero sin perder la terGNUra jamás-GNUChe