Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2629031rdb; Wed, 4 Oct 2023 07:04:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeIyxZEzjGXv3stgYyEg2f1FQHtuDijNGxaT+5QQYsYcSJNhz63MC5Rq3J3PCjhVh9D89y X-Received: by 2002:a05:6a21:a101:b0:162:6588:7174 with SMTP id aq1-20020a056a21a10100b0016265887174mr2001788pzc.28.1696428278675; Wed, 04 Oct 2023 07:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696428278; cv=none; d=google.com; s=arc-20160816; b=b1bi1F8Pl0Q6ICwndAW8wNDG9ECwRVKYHGQVUf82M2y0Bxz20p/ho4w3xQvQr7qYW6 S2mimkggp0FyYQrPyWKQnTdPNmk+vdHgjuZ5e51dBcS5ZlPp8x9X7hzpu9Jq789be7eP eiQrcG72rQx4XOGOpeCpuXFtaXjYCf1Td87odPtBjQjl+RIpWYKyjGbL0ENZ9f6tQkQW i1LG1iXvDkDhOnF3MWqaJw3lpFMnGLPnoMLJ2QWzdxw5VEUYnR7ErKqCvia1ldF5T5FC 6VVoVsNOFRUn0nayNuZ7mZUxTBO2f7SXUhruQrKQlXESKW2/LRE3kS16LxxLBuK9GMZW cqqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ih3CfAMz92qznR9krJdX9z6vkwyBn8t8x+cmpetFh0c=; fh=3CgJ0CNwVVSNVQnm6HC1n1XjYvQXpZRNc1wPIyqwnzo=; b=0QoMHr4kaCaKQlvr4fOZ52dTs6Je/RJTRL1K5496PX1TJbpz8EHUZx1v1IvPaz8kCT uwxFpBQJzELPqq8eLUMkQsXZ/GayyS/OZAtMEaoriu0vgrfse1DeE+J8rLR1DF9foGcJ XeiEIXKA3pZ+Cv99Yt9gJnLpsqy6x9Bls8+AcURcW+bJp45ObfFavLwWWvH6FOrJkTNw o92FdT9P+5DWvwdIVBPL1TIrrPupv2RWwp3vEzqlGw5DW/VDDhSWhhSAx8PJvgo+VdaF kJuOAb2nROuRNV2kGmsOUzu5zQUsuzPlYOeqJXbXNu6O/UrN3rJPQSb+Bc3gP8E/O22A S47A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dLytbwgM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l191-20020a6388c8000000b00565f611a1f8si3987928pgd.263.2023.10.04.07.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:04:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dLytbwgM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C23668218E45; Wed, 4 Oct 2023 07:04:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242762AbjJDOEi (ORCPT + 99 others); Wed, 4 Oct 2023 10:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242758AbjJDOEh (ORCPT ); Wed, 4 Oct 2023 10:04:37 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49E32A1 for ; Wed, 4 Oct 2023 07:04:34 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-533d9925094so3818414a12.2 for ; Wed, 04 Oct 2023 07:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696428272; x=1697033072; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ih3CfAMz92qznR9krJdX9z6vkwyBn8t8x+cmpetFh0c=; b=dLytbwgM52DZKBegKBt34M93sndiSKahBPIcqjBr4gWDnSMixrLSCf8VMulGL0meJ8 wM+dYJ6aATwJxiPVc+MTpI45kX0o1LOk4A6x/kf4XhYtdfmprmjvUUYaM6MW94v7wqX8 Zr8H5W1S6sBDcmx0+Z5w62iDY0cHJQAuazFUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696428272; x=1697033072; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ih3CfAMz92qznR9krJdX9z6vkwyBn8t8x+cmpetFh0c=; b=M/Vod8g264xXsF9Ie9EQgR59rZNmWTqP6os1W2arAsQ4poy5rpQnoyfF5uMUIyDXZz 8AQujyK4M020ya7OZ2qnlSFBi2Flbm8cOdlTGBtEEAl0RCImQIYIl4mHq/IWOuIcdp4v sXA0ZOEMmU0+tlPj+maQTGfWArN+/43VBTPrcPNmy26EzG5IFCamVr0foTTGJ9IGmkdT 8/EDLi67DkcJUTeUvQL31QxajzgR4nOqjhbReQ//fwtL3Jd5WcQ4pwWudn8hG7KUdMVM a2qABsRkC6sgdfa6a0COCa9d94ryr5N+0a08F8TgLJyAu3/X+j+gaqRDLCQMkKAzefT6 FqOw== X-Gm-Message-State: AOJu0Yy5cJX3f+Oww/yI9fod9wdOEBarR+OawsbUSQqfd0eBlFwilIRP dd5OdRm52uvt6Qfdo3vWyscM30M5YzZwO8LLo6ykn7gs X-Received: by 2002:a05:6402:160b:b0:530:bad5:248e with SMTP id f11-20020a056402160b00b00530bad5248emr2265155edv.3.1696428268936; Wed, 04 Oct 2023 07:04:28 -0700 (PDT) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com. [209.85.128.44]) by smtp.gmail.com with ESMTPSA id x15-20020aa7dacf000000b005224f840130sm2483503eds.60.2023.10.04.07.04.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 07:04:28 -0700 (PDT) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-405459d9a96so88965e9.0 for ; Wed, 04 Oct 2023 07:04:27 -0700 (PDT) X-Received: by 2002:a05:600c:438a:b0:400:46db:1bf2 with SMTP id e10-20020a05600c438a00b0040046db1bf2mr101611wmn.2.1696428267648; Wed, 04 Oct 2023 07:04:27 -0700 (PDT) MIME-Version: 1.0 References: <20231002094526.1.Ie8f760213053e3d11592f892b30912dbac6b8b48@changeid> <86jzs2ofqs.wl-maz@kernel.org> In-Reply-To: <86jzs2ofqs.wl-maz@kernel.org> From: Doug Anderson Date: Wed, 4 Oct 2023 07:04:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] arm64: smp: Fix pseudo NMI issues w/ broken Mediatek FW To: Marc Zyngier Cc: Mark Rutland , Catalin Marinas , Will Deacon , Stephen Boyd , Valentin Schneider , Chen-Yu Tsai , AngeloGioacchino Del Regno , D Scott Phillips , Josh Poimboeuf , Matthias Brugger , Misono Tomohiro , Peter Zijlstra , Sumit Garg , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 07:04:37 -0700 (PDT) Hi, On Wed, Oct 4, 2023 at 3:15=E2=80=AFAM Marc Zyngier wrote: > > On Wed, 04 Oct 2023 10:59:50 +0100, > Mark Rutland wrote: > > > > Given you haven't seen any issues, I suspect those are getting reset to= fixed > > values that happens to work out for us, but it is a bit worrisome more > > generally (e.g. the LPI case above). > > It is likely that these SoCs don't even have an ITS. Right. That was what we decided [1] when Marc pointed this out earlier. Overall: we know that this firmware behavior is not good but we're stuck with it. :( At the very least, any new devices coming out will have this fixed. Presumably if old devices are working OK enough today (as long as you don't enable pseudo-NMI) then they can be made to keep working? So circling back: what patch should we actually land? As of right now only pseudo-NMI is broken, but it would be good to make sure that if the kernel later adds other features that would be broken on this hardware that it gets handled properly... [1] https://issuetracker.google.com/issues/281831288#comment4