Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2777207imj; Mon, 11 Feb 2019 08:18:27 -0800 (PST) X-Google-Smtp-Source: AHgI3Iavn10DzD41t33XvVxmN0FpjOJQIgqIjdISEDz/DEUX3eF4VrwHILWgaERkVKeBneXGNRZN X-Received: by 2002:a17:902:7148:: with SMTP id u8mr10591066plm.110.1549901907883; Mon, 11 Feb 2019 08:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901907; cv=none; d=google.com; s=arc-20160816; b=WFC6CVaU6lgrzFRMnd61dr6gWRRC2VTQiRxkSzta82VI0MY0yWZvkr09qQJdIdU6a6 oyTLRedNlo4LGQpCZCBEq29St2pyILkhs/uu8pdORFWuzTBRgDMnwvH7GgDKfDEQsXU4 Wd4dR8rNEMAYZ+pGCkY7nE179NXnIzttdrXOri3C4Mil2dpPDHVUc5fCj/US+BtnuMRk 3X0e524Fp/St7p5f91GpbyotlukN08DXGZluGYgj75AzXq+edj+0JmQf2ZZhDsKbxPGz VUoUpbSWp1xG1fCRSm8ijD0zfqISXCNkqqoGiKgMt9V+MSMgCw8118n0uBh+yG1X2k4/ 6fhQ== 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:date:cc:to:from:subject :message-id:dkim-signature; bh=H7yfy1o+RpuXfDtk8j+KsO/uzl/JEpDRaJbGio8J5J4=; b=mRH+8a+2HVwV5/LALtW3ndOaoIorM6qf79j01cs7Q118TuxPGwVI4tBAvHhvbb8S8w cp0YgPYaY1JoGiQSO0Alyh37BixWIEPHqHrAP0CstCIzmAbL5a7zoR9r43r8y6Yai/+e /03va+FvIiYGW7bq0dzraU7MLAy9Kcupae1oR8PBNlDp9OoEchScNj2ljKlj8UaTIY3P G3je0Q17ipwdb6bA0BnzbBkNoRhBFAhXWhjn83KmtrgtQ07Q2VWFayn93QvIy9y0agOS l388bt/apT5UHGZvMKUOYKzOb1/h9IZe2in+B/Lz5R8oNIwgANqIWOwC0Y+fqKzcH9CK FpTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fQ2AJskV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u129si10336772pfu.117.2019.02.11.08.18.08; Mon, 11 Feb 2019 08:18:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fQ2AJskV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728301AbfBKQPu (ORCPT + 99 others); Mon, 11 Feb 2019 11:15:50 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38833 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727954AbfBKQPt (ORCPT ); Mon, 11 Feb 2019 11:15:49 -0500 Received: by mail-wm1-f68.google.com with SMTP id v26so17892488wmh.3; Mon, 11 Feb 2019 08:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=H7yfy1o+RpuXfDtk8j+KsO/uzl/JEpDRaJbGio8J5J4=; b=fQ2AJskVbNA2cLKHz6/NUMEaJ0cBTemdjhrIHpH/New/czeq8Obi+QGCMG0+7W7r1S AxyP2C1I36f7iGxc4rs4xfP/ojDsQEUru0C3w6X94s1mkFiwOUPDk2muxsr+8j3PAaMv BbloIx+LzorT44ok3V8vZvdT8ovBZzpASu1tMqT8bR0E00BfiTXmX7br0k6RutQBd5Ny Iiyhw61MNV59macj4O4Zydrf+qv91BLY9xs7Y4sidIaJz9I8QSmfLZ8KAtyIUBG1geC7 rOJtoMWG38R2itMohtYRKl9OMyVE/eH3t7BdW8q3ZdonREIFKm7+jKFcVyfvns06/DMh dTFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=H7yfy1o+RpuXfDtk8j+KsO/uzl/JEpDRaJbGio8J5J4=; b=i0I9I09EeFBSNd0ooqnikGqfEBtJKrzzFNznF1YASie29aAv4hB/iXS9ey1SDXcaB6 vAbIFspWUzGHV2rU1Wel2KP6Hpcqd5SP0VnQzFPDrFvLSuMUcGJwCk5bn/R+KYrclhj1 7HuzT0jA6j9LPXA5HyS9kTP+iFTTQM/3kWw0df85qIjgLGEuIYTvHyglslMBHO84i3s+ hT50UQCI06USaN6dm1QNss+N3TUwhjvvWm5sOegRo+8f2VLK2xIe3vftY1r2BPswPaNP fFwrj+GsPHBTgbQQTNDzZhalUwsj1zaQ72+Utw5PkzskqEq91zGlgAfOaAMSS7+CKXuZ cDrA== X-Gm-Message-State: AHQUAuZ6GIpncdh9czNZsxn2TR+i+5LQyZeKvi0wmAXpfLgqWpxP4acz 2BU/VKBZs7HKiWgUW1317Z0= X-Received: by 2002:a1c:99c3:: with SMTP id b186mr175186wme.79.1549901746609; Mon, 11 Feb 2019 08:15:46 -0800 (PST) Received: from [192.168.1.100] ([93.51.16.173]) by smtp.gmail.com with ESMTPSA id k2sm1665050wmj.45.2019.02.11.08.15.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 08:15:45 -0800 (PST) Message-ID: Subject: Re: [PATCH] arm64/io: Don't use WZR in writel From: AngeloGioacchino Del Regno To: Marc Zyngier , Will Deacon Cc: Jens Axboe , Catalin Marinas , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Date: Mon, 11 Feb 2019 17:15:45 +0100 In-Reply-To: <235d20ef-3054-69d9-975d-25aebf32aad3@arm.com> References: <68b71c15f32341468a868f6418e4fcb375bc49ba.camel@gmail.com> <20190211105755.GB30880@fuggles.cambridge.arm.com> <38d8965a-cd41-17cf-1b95-8dd58c079be4@arm.com> <874c702b8af760aa8fae38d478c79e3ecba00515.camel@gmail.com> <235d20ef-3054-69d9-975d-25aebf32aad3@arm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il giorno lun, 11/02/2019 alle 14.59 +0000, Marc Zyngier ha scritto: > On 11/02/2019 14:29, AngeloGioacchino Del Regno wrote: > > [...] > > > Also, just one more thing: yes this thing is going ARM64-wide and > > - from my findings - it's targeting certain Qualcomm SoCs, but... > > I'm not sure that only QC is affected by that, others may as well > > have the same stupid bug. > > > > At the moment, only QC SoCs seem to be affected, probably because > everyone else has debugged their hypervisor (or most likely doesn't > bother with shipping one). > Between all the ARM SoCs, as far as I know, the only (?) ones using actual "smartphones", so actually provisioned SoCs, for upstream development are using Qualcomm SoCs.. of which, some development boards are not entirely security enabled, or have got newer firmwares which can't be used on production phones etc, so.. that's why I said that I'm not sure that only QC is affected. It's just relative to what we currently know, but looking at, for example, MediaTek, I'm not sure that the only bugged hypervisor is on QC (because MTK is very similar on certain aspects). I mean, it's highly possible that some other is affected and we don't know (and we possibly don't care...). > In all honesty, we need some information from QC here: which SoCs are > affected, what is the exact nature of the bug, can it be triggered > from It'd be wonderful if Qualcomm gives us some information about that. Would really be helpful and nice from them. > EL0. Randomly papering over symptoms is not something I really like > doing, and is likely to generate problems on unaffected systems. > > Thanks, > > M. I also don't like "randomly papering over symptoms", I totally agree with you on that... but this change potentially generating problems on unaffected systems is something I don't really agree on: this is a partial revert of a commit that was done purely to introduce some vmlinux (relatively small) size saving on ARM64 and no other reason (as far as I can read on the original commit), so I really don't think that my partial revert could ever harm anything. Though, this is a personal opinion, I can be right, but I can obviously be totally wrong on that. Though I have to make this clear: if there's another (better/cleaner) solution to this issue, I'd be totally happy (and, of course, curious too) to see it!