From patchwork Mon Sep 7 18:16:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1359179 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=MpDV4ocF; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Blc2Y3Ypmz9sT6 for ; Tue, 8 Sep 2020 04:17:41 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED3F9824FA; Mon, 7 Sep 2020 20:17:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MpDV4ocF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E94CE824B1; Mon, 7 Sep 2020 20:17:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 83DFA824B1 for ; Mon, 7 Sep 2020 20:17:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x742.google.com with SMTP id v123so1808294qkd.9 for ; Mon, 07 Sep 2020 11:17:17 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=PqGXUMGj+UZtyjA66eKl4BulkyJk1ilGhvaBq7ZBBrU=; b=MpDV4ocFj7QNdjxup+7KpYjqKcBGZ/NRVdsA1BEOcXpG/4TQLhQnZt2CIqxC5e1cJA IP/avNmaYqHXnyEOBnlSKRprhEZlD16k+8ef2nAx8hIKxo5r2D9KPp+NcBOUbTfWaFRW QJ1kezT5RQLzubvnJcKLKf8ghdvJQ5xGqQm9kbS/jlkLNaEL4Qc0IyyWniD63uDgFV5J nhUrQYKjmeQHx+4hNKbWFWhTTGgx6q3eJJzEV391JZCGCeWrDITsKlR//kN8uHfJIZ8/ SgsQpsBXsGT5mkUGTT1Ds7wV1BViYKY+tB/zKgk1SprJXInEYj8hTzVnW3FdsRH4QJpj lc+A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=PqGXUMGj+UZtyjA66eKl4BulkyJk1ilGhvaBq7ZBBrU=; b=MMFvP0sq1NybsUlXCbwoIu5EtqXAnpa4A19vCeqer9SHYaKLXiR0GRUthhYs6iVp5Z FQlzEgcZhWyapFl9rgjA2VX82Hbj14Xxywpr2iCWTmQBArMF3d8f4EPGtlGL5ZpIQBEy fIL+s1kDUprRuDC8+sFR24ifmEJGAKIHXOCN4O2mbTSOecrEclV+KGPeOpVyC+P/uR18 wFbAUZb5O45QyyhMZdCX67Ja2V7w++MOTbRceJwHD108cVi/q1u5yjXpJMoN+fqUrdVq 8gOlXSSYkd3LiLB/WroCoOWrv8pHa8rDtiEBqVnSVzGeXLj/befQwfO8dG9e9NFlq9eg Svxw== X-Gm-Message-State: AOAM532VqDFPSgfinxePuIB6R+U/XgjR50jPcqfRhimMThsX35G6u6cu gpg5johU48N2w/eEKdh8MI8oyGJxI1E5LA== X-Google-Smtp-Source: ABdhPJwYO+KUFjqhfJbQw0f+0cKv0b30pft2pWomnSrAgXxUJnvf3F0oVkn5QoeMp75K7GG0dWjs6w== X-Received: by 2002:a37:4711:: with SMTP id u17mr19522858qka.54.1599502636336; Mon, 07 Sep 2020 11:17:16 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id w3sm11577212qkc.10.2020.09.07.11.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 11:17:15 -0700 (PDT) From: Sean Anderson To: u-boot@lists.denx.de Cc: Rick Chen , Heinrich Schuchardt , Bin Meng , Sean Anderson Subject: [PATCH 1/7] Revert "riscv: Clear pending interrupts before enabling IPIs" Date: Mon, 7 Sep 2020 14:16:53 -0400 Message-Id: <20200907181659.92449-2-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200907181659.92449-1-seanga2@gmail.com> References: <20200907181659.92449-1-seanga2@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Clearing MIP doesn't do anything. Whoops. The following commits should tackle this problem in a more robust manner. This reverts commit 9472630337e7c4ac442066b5a752aaa8c3b4d4a6. Signed-off-by: Sean Anderson --- arch/riscv/cpu/start.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S index bf9fdf369b..e3222b1ea7 100644 --- a/arch/riscv/cpu/start.S +++ b/arch/riscv/cpu/start.S @@ -65,8 +65,6 @@ _start: #else li t0, SIE_SSIE #endif - /* Clear any pending IPIs */ - csrc MODE_PREFIX(ip), t0 csrs MODE_PREFIX(ie), t0 #endif