Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp278502rdb; Fri, 6 Oct 2023 03:21:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFb0xNQ33Jik6O69vRPia3U+m+urgUpQjlDYWlPPh3xVuTTCY6aG9Pm2wDW/9smhDh0XgdK X-Received: by 2002:a17:902:9b8e:b0:1c3:3363:8aea with SMTP id y14-20020a1709029b8e00b001c333638aeamr6874281plp.61.1696587660073; Fri, 06 Oct 2023 03:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696587660; cv=none; d=google.com; s=arc-20160816; b=n9Vu9aIs5PYi8FPhtwqBk9WhzbrmyS5IrRC9ZJssnJPMvnNXBsT6Hn1F04OwBUL+Ui qTr7M4q6NOtoSChrYqRCYAaIvdt+yRQEQT3vKHfo+UHliKgpR5r61kO8n//0Q7i0ltg5 A2RFUobV3dpJYpmL9QiPjK0sazmCouyLtLHdjdV1K8JQtRVJ3jVUc6JSmIJCZZRIlTpI LFChKcFgh2Ir9Vs1mAAjxFr+PzkDYvjWWmWh8faHXKFX2ReCPeisHEhaj4r4k+bJvXYJ TxbtfA+HSJ+2ePbfQpyCOFqX+NnonQlZu7yrhUELJsRzNudOgu4q6icxO0Du9YagazzA 7WOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=dIsoYaK5fXIHyr0PS6Z7eJk2qAQqB7eN5vHftXNrxsU=; fh=34b9ZsRaIVstXUec1tjas0IMUF1uss/mBnk2UwPRQ3s=; b=uqURdzL1Q4mYd1NiuSmrBbiN5U3zntyjZCW8kwvAxjpmozRCi8K99tCcEItwKQckoJ wo3lKDmFRpW4W8Gu88HRpk1E0mCvMIPS0bVvgaGrxEj3e4QhytsHP4s4JuSDvP9Bbr2c VwkEoHeT8LD99oPIpvAF9qrPmow/EZQ7vmjQvp5/YKFmjFbohViQnLW889TqlrXCxt3e sxKD2KQQaPXiPkJXb8B6k9Id9NaM9E27tA56JGq8oCEoLQVDg6TPI921ewaqtzyGMkm7 WtDRWd5iU3EvjKwZvORaKcJmxawITpSXBd41v3UfQ7UWMBpva0ELL88m3Tyk2YGz2VC0 pZTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XyaAxD5q; 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=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f5-20020a170902684500b001bb377f8c8bsi3345167pln.2.2023.10.06.03.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 03:21:00 -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=@kernel.org header.s=k20201202 header.b=XyaAxD5q; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 06B1F831EDBE; Fri, 6 Oct 2023 03:20:59 -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 S231676AbjJFKUw (ORCPT + 99 others); Fri, 6 Oct 2023 06:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbjJFKUv (ORCPT ); Fri, 6 Oct 2023 06:20:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F12299F for ; Fri, 6 Oct 2023 03:20:49 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A352C433C8; Fri, 6 Oct 2023 10:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696587649; bh=X9o6NEtPOaUbt8J9+hy7Oi+szPetgHfUiy3SgUBoKO4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XyaAxD5qXPrzWL1HHeK+LKQ9vuZyiDhjiDjrYaWkESMLdr1SpEOa7smYi/lcMHwZh 43qtR0tqviPOiuNRkYpf73iLkqLysp+tvCtrR1R+64s1bFltlqMFjifCCwmqoQ0MD7 ZTMWBhxXY3korwJZmDzzbkw4vre+4TcbsEuFmWYVpR5wAzoT938LbJvAaHUJoMdtcj xOiWXCwhmkb2jCYbgQFfV9bsYqCDsxfHvrudRPb0We+HQAVEH6Yc0bsg+ABGmvuLG3 w6kn3TAjPFvfhwaFLgdThRGiuAREGCRiaS/F0WPw2dD+GNhKDxHiH4PnmnUKu6msvN 2oJCpAmz72lBg== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qohws-001g4t-8h; Fri, 06 Oct 2023 11:20:46 +0100 Date: Fri, 06 Oct 2023 11:20:44 +0100 Message-ID: <864jj4njb7.wl-maz@kernel.org> From: Marc Zyngier To: Mark Rutland Cc: Doug Anderson , 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 Subject: Re: [PATCH 1/2] arm64: smp: Fix pseudo NMI issues w/ broken Mediatek FW In-Reply-To: References: <20231002094526.1.Ie8f760213053e3d11592f892b30912dbac6b8b48@changeid> <86jzs2ofqs.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: mark.rutland@arm.com, dianders@chromium.org, catalin.marinas@arm.com, will@kernel.org, swboyd@chromium.org, vschneid@redhat.com, wenst@chromium.org, angelogioacchino.delregno@collabora.com, scott@os.amperecomputing.com, jpoimboe@kernel.org, matthias.bgg@gmail.com, misono.tomohiro@fujitsu.com, peterz@infradead.org, sumit.garg@linaro.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 03:20:59 -0700 (PDT) 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 the > 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_priorities(). > > 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. M. -- Without deviation from the norm, progress is not possible.