From patchwork Mon Jun 10 12:13:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 10984733 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 80412924 for ; Mon, 10 Jun 2019 12:16:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70AA6285E2 for ; Mon, 10 Jun 2019 12:16:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64AE328874; Mon, 10 Jun 2019 12:16:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0F28B285E2 for ; Mon, 10 Jun 2019 12:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=qScIvuru6hSB9wdjSnAKFKTsAUvYxksvl1eOgv1Ao/I=; b=PK+ mFggnZdCTUehDBmwjDz7zU0jcWvXKrZWxL4nGpDqaN777YHhwYWylm/ufilrX1n2svresllZV+pFg agoFPPi/ev+MSP1837ZnozLxraN5eOavjt2uFJPmQcZTFdj1WDA5U9VDpHvjzO21x7wzq/K6ouVqM Ov42IWonJwBrBXCRJYYrOPL6Fws7Z1xC3NVKOYVUhO43LfVakZ1X1vjE70g7vjQfiV9yD+z6fsCLU fS6aPrb8iwowTOLqxdKyAF6H5HEc5c4Ksdocz57nMny+Mn3zDcqwEQfgXdNY4ckLhy9Gtua3FgeFj sT220tuO+ZuXoCvtE7L8vrg6Qjan4bQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1haJDT-0004MB-9R; Mon, 10 Jun 2019 12:15:59 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1haJDL-0004I7-8M for linux-arm-kernel@lists.infradead.org; Mon, 10 Jun 2019 12:15:53 +0000 Received: by mail-wm1-x344.google.com with SMTP id 22so7939608wmg.2 for ; Mon, 10 Jun 2019 05:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=G/jDmCEBdW+KnNnzIkI5FBxnykVJAEM3IcCO6wGYvxQ=; b=VjIypT6jxNeDcP3wUSkxn+P8CxxAUuMUNzeZgTuyvcKeoibelkyyRwRwXo7aPfSjUQ Q3v7OyN788mNnJacP6rY+JqmUhSABKuQjwGSKgdSIgNdHLdpPQiG4rtmNU1t7N7IHcmK nKHcw+Tloj67CNuGvh8/mUeuS7GEic2+TdmmDjK8bjZkORCIZAYC6801bb8F1Mu/UT5F F6yBHxWkYxGdneJVZ1cb6xAm5yVDez2tj2BC1zOA4h+/f03ff6iaj0CskD8DSNOOZsL1 I3zmkYmnRzyJg4TYipAau0Rqvbd2Mqn7JFZV+cg2TLmfJTOFkMY0MD4oDMOswXtX9aOg ZL4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G/jDmCEBdW+KnNnzIkI5FBxnykVJAEM3IcCO6wGYvxQ=; b=GNSSN+qpmb4niT8HhU/irnKUbdQOArlKrPeCnymZlFGcG9LtOcUSMwNYlYjMuqc554 SPUp5EsoZvjhb96rdLtPa7EJh7C/bR5yjEPQlZ+wyYZpwe3cFWnl90kGhrlbww4mpcZD nWWw/z+cr+y9I0LjgCPfZ6LuhU2CxNslVnZjH/d0p26hkDzh+y/IUn9nYfLFBFfWV+Jo PLi5fvWdih4HiWHXrtNUqbY6eB1OZVDTDT9olKcOwQVH3oAbEbfF47A176Uhryj08/rv uVivijrW10atTltSkJ6MAT96gpL5Z351b1iO9oB/aSlOUa44oDhMPL/LsJWPkX0mQd2U 3FAQ== X-Gm-Message-State: APjAAAVq+WgnN+zE3Zlvbw47cmWsjKTmIwY9GE3UBnHnnCSd3LBvSqoj H3YAiKC7QcYRt1aHg0NZtAs= X-Google-Smtp-Source: APXvYqxAzpVPFjmvXHC7Dyyt0DOCvzn4V9dg6udoS70h922GjJQFGyHYQYvnE4PoiIh4fnOVv7NBJw== X-Received: by 2002:a05:600c:228f:: with SMTP id 15mr14125457wmf.31.1560168949128; Mon, 10 Jun 2019 05:15:49 -0700 (PDT) Received: from ryzen.lan (5-12-114-167.residential.rdsnet.ro. [5.12.114.167]) by smtp.gmail.com with ESMTPSA id f21sm10385574wmb.2.2019.06.10.05.15.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jun 2019 05:15:48 -0700 (PDT) From: Abel Vesa X-Google-Original-From: Abel Vesa To: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Thomas Gleixner , Marc Zyngier , Lucas Stach , Bai Ping , Lorenzo Pieralisi , Leonard Crestez Subject: [RFC 0/2] Add workaround for core wake-up on IPI for i.MX8MQ Date: Mon, 10 Jun 2019 15:13:44 +0300 Message-Id: <20190610121346.15779-1-abel.vesa@nxp.com> X-Mailer: git-send-email 2.17.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190610_051551_646613_87A9B675 X-CRM114-Status: GOOD ( 11.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Carlo Caione , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is another alternative for the RFC: https://lkml.org/lkml/2019/3/27/545 This new workaround proposal is a little bit more hacky but more contained since everything is done within the irq-imx-gpcv2 driver. Basically, it 'hijacks' the registered gic_raise_softirq __smp_cross_call handler and registers instead a wrapper which calls in the 'hijacked' handler, after that calling into EL3 which will take care of the actual wake up. This time, instead of expanding the PSCI ABI, we use a new vendor SIP. I also have the patches ready for TF-A but I'll hold on to them until I see if this has a chance of getting in. Abel Vesa (2): irqchip: irq-imx-gpcv2: Add workaround for i.MX8MQ ERR11171 arm64: dts: imx8mq: Add idle states and gpcv2 wake_request broken property arch/arm64/boot/dts/freescale/imx8mq.dtsi | 20 +++++++++++++++ drivers/irqchip/irq-imx-gpcv2.c | 42 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+)