Message ID | 20230511150539.6.Ia0b6ebbaa351e3cd67e201355b9ae67783c7d718@changeid |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4697181vqo; Thu, 11 May 2023 15:08:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SCJVji9Y6Sawuu4wIUS7wSFSWyiCPATX8LYE9JfpUrFkU8O08hqc5tk52DEVncK51as1N X-Received: by 2002:a17:90b:38c1:b0:252:94b5:36f1 with SMTP id nn1-20020a17090b38c100b0025294b536f1mr2819855pjb.27.1683842883412; Thu, 11 May 2023 15:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683842883; cv=none; d=google.com; s=arc-20160816; b=mZGeRACLCjcM6SvlX/Ws9ZSNfa3cRPTEsAvRkVIs1xiYAmUwKhZCDu4AxXQhyvPioC BKJuVvYZU6xbJ4ockaIV9Jb9L2h74F3IJOSAwGKdwWX/cskWKEFPTaJ8uqKZMjB86FnF ADnd2X3XAIklgusz4CHOgzCw86jXzKUV6sImzvcKPNqZ/9tx6o5aAozaWk9oIZhJQIJX TZYoDmXUjWX39hrFf+1owTmG9Ba3LqiTehXfT/1gbmiReLFn2YMNqhbhxjJedeesEix0 LgrbSe6mzF+HjxOaNEVJLBgpFcv9bhsjuXR8T9mrGZG9hVIrI8YmJMqwNhfXmpJryXbt ZtAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hpVJsmC3hyyCOV39d1XA4fZrHLIG7rwi+xqTsa1S20U=; b=jBBBBnrBKS5WU4ZEFlPdhCpKfbgvkCjfXzevRlQHNNnEPDKD5gMg8wNtVvu7wBUuhS SHOEmXGsd1qw4sBS6htVn8pr8eepLLZt1c75S3o5NI0Mn5dVkE9i+6qj/M/X9tFZd1w3 sFCEx/RPPIGT/PbNM2rz1ctShP+SsGSs9J1tIZG31+9y2Hs6N+NZRsFrmq/kSgYXOXpy PQJw4I5bH++/uPI5WPKQPVIGRK6AN8+dR6d3cDuw80vx+6xDm4PWI9OfUSdzFXmksz50 ACUPr6S8RXMl15E6k4wuobL5t5S3GNKyLLI6lGol0k9Gw9FhgKJWOXfWdUcCJXV6EQNA BS4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=apOp6wOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a17090341cd00b001a1bbc5bea5si8416785ple.537.2023.05.11.15.07.48; Thu, 11 May 2023 15:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=apOp6wOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238254AbjEKWHU (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Thu, 11 May 2023 18:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbjEKWHT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 11 May 2023 18:07:19 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCEBF6A4B for <linux-kernel@vger.kernel.org>; Thu, 11 May 2023 15:07:17 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1ab01bf474aso70692515ad.1 for <linux-kernel@vger.kernel.org>; Thu, 11 May 2023 15:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683842837; x=1686434837; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hpVJsmC3hyyCOV39d1XA4fZrHLIG7rwi+xqTsa1S20U=; b=apOp6wOIiyc0bM0pbLWmLbNrAH8nPimt13/Fe40g/kkmqv/jTh+cIfvOVS/TOb6lzI 5tkY/eBXIzTBk4pnxTf0HCjbbXF0A3BUsNBN8s57G4ArflMx2Tgqmn4NmHKNBtXvfrtM Z2MuMp7hMMkWDAATMFaTy931zIfY4ioVVbcuk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683842837; x=1686434837; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hpVJsmC3hyyCOV39d1XA4fZrHLIG7rwi+xqTsa1S20U=; b=ljCr8yKo+8UdErBIO1QNSP9WKPJOD7hbq0bot/75cq/851NbdQ8j4Q+eNgcpCGv8nK zJEoBEqJehPYKgGTUyBDMqqmjnpLw9WcCM+kxRCMfAEjhCUBkznKijkXdUXDP4BiUPYX PtHgE4qVGPNogn2bGAJm87oMh9xU7jy8shWgxDWMy9DlCgKgOjg/h3KdKoCHr+8Xro3k BUawYsgDiWS9A2g+OhvdKj9XMWlnahuj2Zomcsh/+nVHCzeNr29T0y+QuT9nOEjycMuQ iKQBcTYHqf9qZwwuEOXhCfOhSi2H54lmCBqtXZel/h60AlsfMFKRUqPxBZqA0LnWv0/J t5KA== X-Gm-Message-State: AC+VfDwsJMc74/fpCvX0YEKU+jvSytsFnUdys8RdagmHw/66JLWPXi4s 3FXMfqVRbyudDmm5eLU5QHq6Yw== X-Received: by 2002:a17:903:191:b0:1ac:aaf6:ee48 with SMTP id z17-20020a170903019100b001acaaf6ee48mr11781934plg.67.1683842837318; Thu, 11 May 2023 15:07:17 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:b96a:d776:ee3:e572]) by smtp.gmail.com with ESMTPSA id h24-20020a17090a9c1800b00247735d1463sm17589457pjp.39.2023.05.11.15.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 15:07:16 -0700 (PDT) From: Douglas Anderson <dianders@chromium.org> To: Marc Zyngier <maz@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Matthias Brugger <matthias.bgg@gmail.com> Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, Eddie Huang <eddie.huang@mediatek.com>, Allen-KH Cheng <allen-kh.cheng@mediatek.com>, Ben Ho <Ben.Ho@mediatek.com>, Weiyi Lu <weiyi.lu@mediatek.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, linux-arm-kernel@lists.infradead.org, Tinghan Shen <tinghan.shen@mediatek.com>, jwerner@chromium.org, Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>, yidilin@chromium.org, Seiya Wang <seiya.wang@mediatek.com>, Douglas Anderson <dianders@chromium.org>, Conor Dooley <conor+dt@kernel.org>, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] irqchip/gic-v3: Disable pseudo NMIs on Mediatek Chromebooks w/ bad FW Date: Thu, 11 May 2023 15:05:34 -0700 Message-ID: <20230511150539.6.Ia0b6ebbaa351e3cd67e201355b9ae67783c7d718@changeid> X-Mailer: git-send-email 2.40.1.606.ga4b1b128d6-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765637235089515527?= X-GMAIL-MSGID: =?utf-8?q?1765637235089515527?= |
Series |
irqchip/gic-v3: Disable pseudo NMIs on Mediatek Chromebooks w/ bad FW
|
|
Message
Doug Anderson
May 11, 2023, 10:05 p.m. UTC
As talked about in the bindings patch included in this series ("dt-bindings: interrupt-controller: arm,gic-v3: Add quirk for Mediatek SoCs w/ broken FW"), many Mediatek-based Chromebooks shipped with firmware that doesn't properly save/restore some GICR registers. This causes the system to crash if "pseudo NMIs" are turned on. This series makes sure that we never allow turning on "pseudo NMIs" if we are running with the problematic firmware. The patches in this series can land in any order and can go through entirely different trees. None of the patches are harmful on their own, but to get things fixed we need all of them. Douglas Anderson (6): dt-bindings: interrupt-controller: arm,gic-v3: Add quirk for Mediatek SoCs w/ broken FW irqchip/gic-v3: Disable pseudo NMIs on Mediatek devices w/ firmware issues arm64: dts: mediatek: mt8183: Add mediatek,gicr-save-quirk arm64: dts: mediatek: mt8186: Add mediatek,gicr-save-quirk arm64: dts: mediatek: mt8192: Add mediatek,gicr-save-quirk arm64: dts: mediatek: mt8195: Add mediatek,gicr-save-quirk .../interrupt-controller/arm,gic-v3.yaml | 6 ++++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 1 + arch/arm64/boot/dts/mediatek/mt8186.dtsi | 1 + arch/arm64/boot/dts/mediatek/mt8192.dtsi | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 + drivers/irqchip/irq-gic-common.c | 8 ++++++-- drivers/irqchip/irq-gic-common.h | 1 + drivers/irqchip/irq-gic-v3.c | 20 +++++++++++++++++++ 8 files changed, 37 insertions(+), 2 deletions(-)