Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp667369rdb; Fri, 6 Oct 2023 15:17:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLMO4+6yB+Ezd0MUlG2sWUdKsjnbJrWQny1m+Io8XU+kYh6gYjzICuFGZjY/aEy5/y9auq X-Received: by 2002:a05:6358:2806:b0:14c:79ec:1b86 with SMTP id k6-20020a056358280600b0014c79ec1b86mr11939938rwb.24.1696630669001; Fri, 06 Oct 2023 15:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696630668; cv=none; d=google.com; s=arc-20160816; b=pIv5OX8CrHdyXK5Xuqj0TGP0r7EXh6E5cCnDYm75PS/AgSxu4XtRjX0M7Ex+CfeuPP u+as8xEeYC3L1xkxu39sy+IPo/YTNFtqY12V+y2GGr+uQtXdPsmhrJcYXXGLMCPuzQEP GTphqD5Q060hq/Oa3eswOLY8Jg+CZbk4WLiox7xqKKPMrVxiZ1/PC0cA24Plru2xbNgz 6JXQvM0H3tk4K5WxCWXw0y73r7l6hTaWCblgHzWqC6Nneq5g36b2/6Whk+Kg6tZ3S10f ciyARNG8tIYKriZHKdgX4Ybf8/hCycYz89CiBiQQyn0/jv/g6tJVemu6OV0yQklWTU3b YXJg== 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=xhO3ehWc1dLHvm/xZLr7SfH1xniT/+pUCjErhuF2vy4=; fh=3CgJ0CNwVVSNVQnm6HC1n1XjYvQXpZRNc1wPIyqwnzo=; b=alvJAYH2ufe6I8dm+r4AyFTE3kYqUgH+VK5mgGIGU8kLl09sR4496ND+ONapREUZb4 kf1tgOXLKx8nquN8SwrxIFKsCTqR+VTGKhPzj2b+xtMI/AIsi+5Q13tf3YiscGDWVPB6 rHiXYr4oStPqlOFnHXGzCZUkIPkDHfuDkePuTRNdNimzxLzFzYp6eq5aig9/lLE9SYk6 NKz8q8vgLSyPvdbJpnbwgX7v6zW9kHKmTXCmor97Lhq8WYnbKr0IOc4/rkefvbaBSLyP bHH5QhD9lOGrmUxrcohhqkCF0SPVRbFa7TgA248WPnTkWavdDdTCRv5PePu5hn+OFSYE SRIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XtIozXrf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id pg2-20020a17090b1e0200b0026d4adee541si6642820pjb.150.2023.10.06.15.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 15:17:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XtIozXrf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 1FB84801DBFA; Fri, 6 Oct 2023 15:17:48 -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 S233651AbjJFWRq (ORCPT + 99 others); Fri, 6 Oct 2023 18:17:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233545AbjJFWRp (ORCPT ); Fri, 6 Oct 2023 18:17:45 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C84BE for ; Fri, 6 Oct 2023 15:17:43 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9ad810be221so447998066b.2 for ; Fri, 06 Oct 2023 15:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696630662; x=1697235462; 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=xhO3ehWc1dLHvm/xZLr7SfH1xniT/+pUCjErhuF2vy4=; b=XtIozXrfIsIA9DPsPbmAyofab6jlrYN0K0xxhpLmqnXD4TyXc7mdPUJbpoiZDntM/q y2/GGKZR7iGHiXlEb+dL7fWqpkVWMy3oIu2434UYTVCHJX7HaSiMZ5EYJYrJiD3Ho8Kj uXYKVtA5WKKP9yxSZtX111HdhattYUPSs2Tjw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696630662; x=1697235462; 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=xhO3ehWc1dLHvm/xZLr7SfH1xniT/+pUCjErhuF2vy4=; b=wZ64MjJ3FNCdafb/Ufz1PFGc/t+dbPZsjLu9erc5up50AIAd5YTSPKjspTkGEF+uWY 5yYKMElCyyKV6xazel8IObxKF25NNobaL3Dd3KjL6DkFFpZA/7gB+Il8037vifZG+jjT dyIL+RWwNLPEGtAgCPW3ZwnS8qYZ+9rmvGbrEy572a9ATUqF52LvHh8ejAYoV5Ukm1ys 1k0EIymV8D0G0Ie7sHg5prkCKWp32OH8RdQxtg9smwuEcDgr42OX3/yipmvLaRnTdIxE QBNAqrRU7VtLXYaas0BxPgAjXEiSjen/jVojrSst5C6xaMAGe/YnDmG88cvfFiCQsTkB xByw== X-Gm-Message-State: AOJu0YzRVFYU4DtePzjLyzCWlD6cM18l9Wp0jNWEz7JffHiARt5Zdkss jDcWaapREU9inD37axEWSq/N9J5p0veLCvTOiOjve+N5 X-Received: by 2002:a17:906:13:b0:9ae:1de:f4fb with SMTP id 19-20020a170906001300b009ae01def4fbmr7621920eja.46.1696630661563; Fri, 06 Oct 2023 15:17:41 -0700 (PDT) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com. [209.85.128.46]) by smtp.gmail.com with ESMTPSA id q14-20020a170906360e00b009a5f1d1564dsm3415171ejb.126.2023.10.06.15.17.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Oct 2023 15:17:41 -0700 (PDT) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-405459d9a96so27835e9.0 for ; Fri, 06 Oct 2023 15:17:41 -0700 (PDT) X-Received: by 2002:a05:600c:2e11:b0:3fe:f32f:c57f with SMTP id o17-20020a05600c2e1100b003fef32fc57fmr226863wmf.0.1696630660734; Fri, 06 Oct 2023 15:17:40 -0700 (PDT) MIME-Version: 1.0 References: <20231002094526.1.Ie8f760213053e3d11592f892b30912dbac6b8b48@changeid> <86jzs2ofqs.wl-maz@kernel.org> <864jj4njb7.wl-maz@kernel.org> In-Reply-To: <864jj4njb7.wl-maz@kernel.org> From: Doug Anderson Date: Fri, 6 Oct 2023 15:17:24 -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 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]); Fri, 06 Oct 2023 15:17:48 -0700 (PDT) Hi, On Fri, Oct 6, 2023 at 3:20=E2=80=AFAM Marc Zyngier wrote: > > On Thu, 05 Oct 2023 11:27:26 +0100, > Mark Rutland wrote: > > > 3) Partial fix: make the ARM64_HAS_GIC_PRIO_MASKING cpucap depend on th= e > > absence of a "mediatek,broken-save-restore-fw" property in the DT. I= believe > > we can check that in early_enable_pseudo_nmi() or can_use_gic_priori= ties(). > > > > That'll avoid potential issues if/when we change the priorities used= for > > pNMI (which is something I've been looking at). > > > > I'm happy with (3) if Marc is. > > Definitely worth investigating if you have the bandwidth. I made an attempt at it. See: https://lore.kernel.org/20231006151547.1.Ide945748593cffd8ff0feb9ae22b79593= 5b944d6@changeid