From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55782C433ED for ; Mon, 17 May 2021 07:57:32 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CF040600D4 for ; Mon, 17 May 2021 07:57:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF040600D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:From:Subject:References:Mime-Version: Message-Id:In-Reply-To:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jkku/NH5WxgSRSbFk9Q8st7tj/1tkeBJwjoO8i0mmr4=; b=KW1a0PlRkucWgR t64iOmJs9CQRG4R0BPMNUSq24ElKH8CPC9PmySoki0qkbDH+pJNmnLNCEM1uI+9rv+HiOUEz6PjOk xgdfldbw7cWtIBPgSBQFLrbJUZSiI/VccIvmOX0mxrihwwVQnrzpHRm52xcMDHmapGTUdYHdplRi+ 23pN1BEKr1QCb/ByeVAk9h7vrt+mo0DSZnnz05/UpGQbrxRxs+tP2ac/r2kE/uuvkBGI9Fo9ZBCn8 7r9wDPGLExagsfDdGfzNir2G8VSd758Ylio8CJhX5Mc7ycJhYCsqRYbel0ge5A275AhXZ+nYBAv2F AU6pB/jO0oT8yKZ/kHHQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liY5s-00E7Mm-Ap; Mon, 17 May 2021 07:55:16 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liY2H-00E6UW-6X for linux-arm-kernel@desiato.infradead.org; Mon, 17 May 2021 07:51:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:Cc:To:From:Subject: References:Mime-Version:Message-Id:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ahqZ8V/+zcLNEI2Yj0kSxAMlF/YVwDMa5CLwXEXBovw=; b=vdZFtBHKK4fyjxSxuFsFjvpyyK +SnpoP9AGKWQnXOijEmqh5ebP9EleNTRTzG1pRCNA6TNNl4trhW1LugEL9/Y1moyIwE5cTk2odxXf 0NQ8NJ2yHhT/GFmc+HSQHqma+TUy8OjEh6XwcMLOuone8+kxfHyKn7WtBDKrUD3AC/xGoTvTkT0Mf IjwURMFfJYFTw3Mlf/xqf70kIvFozaMIfQDQKoySGwYzHpmP8JHTs6ia6/AA8mxew5xUiS/YBob0d NTrb11OZeF/0oKneMDfG2gYgb8kr2wgMolEnkFyUk8A9OJV3PAk9lUKimyIKwwr1rte0aveHOt5ud 3YHAv2WA==; Received: from mail-qv1-xf49.google.com ([2607:f8b0:4864:20::f49]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liY2E-00DYuq-GY for linux-arm-kernel@lists.infradead.org; Mon, 17 May 2021 07:51:31 +0000 Received: by mail-qv1-xf49.google.com with SMTP id d11-20020a0cdb0b0000b02901c0da4391d5so4124889qvk.12 for ; Mon, 17 May 2021 00:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=ahqZ8V/+zcLNEI2Yj0kSxAMlF/YVwDMa5CLwXEXBovw=; b=YZhni3RFxT6XSnxNDu6uquj+9pci//PNf5EgSqnDAwTwWfyq2GPYAYt1YR7q+AcJQ/ YgQfopQ0LqX/ZEtkVs4Fc6fCUurqH5SAib6gVIUAnkHVikByj9ReQdG/OHHHo0fVlBIb +0p+QxOuOiKkbObwS6mFECoIkMVQVnWi+YvahMfdr8OMnBM6d2gnEM1PW882fTe3KE9N 1/JdVeuxolm8v/LriuWDXKesWuBmshfjX/6LOChLsnj5zSzilDi6ACBcKJwcUtnQ2KB4 FojM1lYmxsGfQO2QA72WSU0sfBGmlTIwPgoRMQuPrci+l3XdRUvGnFg7XN7v9F5IpERd SpZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ahqZ8V/+zcLNEI2Yj0kSxAMlF/YVwDMa5CLwXEXBovw=; b=oHXNqkiPTmJyv/lsefHM+/qVwISLN2NvR2aCSQc5cgbpWq86ItvVki9Lf5KxpEqSkE 6RzjeHT9IYfxMan/m4OEI9TVFMl1PFmtVCiyhv9eq0qlh8a9AoYOF8G6JiKyCNyW7vHK WeZn1es8JahTivfg1zJwd8oZnvfypP4CL7Z+1mruM5sACgxb+rl9PqCWOJbDDC60GJ/q MGme4VxNxtS58BCewsXGJL3FsLTxl26N4lvEhkt/knHqoJQJqSee0H05S1+Xyh8lfAlx pc0UP5+3+ct7wpjfjuzmGU9VHjJ7JdEgd6U7FiF1kHoHuZYJmi1pr/1bsiFpxOtZ6wMi 1jCA== X-Gm-Message-State: AOAM530lPFop2Q8WHFxZ/0mideQ4BBSJpCgMftG4U/vZoH82A9TcpmXM jllYhMGHkPGEsJ4nj/qD+2YZTlaI5bkH5M+WyqKyj/Lnp8ylpnIGnHGm73ecjVqzs+98W7hZEkS KRNUsoUJ44kKn9tfLY0i2Ev1EpK1p2bF2Sq4cQC4Qh6KoQ0PdRYM6vdEt3+t9LLQstmPk36aTd6 i3lg== X-Google-Smtp-Source: ABdhPJwVmSmMxjE5xReyRdkDn2kHP0guMmUdsAtzLnBRbXDyZngbkhukfI9CZWDh3D1OLzvtTh4dxKIgvw== X-Received: from tabba.c.googlers.com ([fda3:e722:ac3:10:28:9cb1:c0a8:482]) (user=tabba job=sendgmr) by 2002:a0c:ea2e:: with SMTP id t14mr40031841qvp.40.1621237888113; Mon, 17 May 2021 00:51:28 -0700 (PDT) Date: Mon, 17 May 2021 08:51:09 +0100 In-Reply-To: <20210517075124.152151-1-tabba@google.com> Message-Id: <20210517075124.152151-2-tabba@google.com> Mime-Version: 1.0 References: <20210517075124.152151-1-tabba@google.com> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog Subject: [PATCH v2 01/16] arm64: Apply errata to swsusp_arch_suspend_exit From: Fuad Tabba To: linux-arm-kernel@lists.infradead.org Cc: will@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com, maz@kernel.org, ardb@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, robin.murphy@arm.com, tabba@google.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210517_005130_569536_DF6C4A1D X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Arm errata covered by ARM64_WORKAROUND_CLEAN_CACHE require that "dc cvau" instructions get promoted to "dc civac". Reported-by: Mark Rutland Signed-off-by: Fuad Tabba --- arch/arm64/kernel/hibernate-asm.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/hibernate-asm.S b/arch/arm64/kernel/hibernate-asm.S index 8ccca660034e..0ed2f72a6b94 100644 --- a/arch/arm64/kernel/hibernate-asm.S +++ b/arch/arm64/kernel/hibernate-asm.S @@ -91,7 +91,8 @@ SYM_CODE_START(swsusp_arch_suspend_exit) raw_dcache_line_size x2, x3 sub x3, x2, #1 bic x4, x10, x3 -2: dc cvau, x4 /* clean D line / unified line */ +2: /* clean D line / unified line */ +alternative_insn "dc cvau, x4", "dc civac, x4", ARM64_WORKAROUND_CLEAN_CACHE add x4, x4, x2 cmp x4, x1 b.lo 2b -- 2.31.1.751.gd2f1c929bd-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel