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=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 41178C433E0 for ; Tue, 28 Jul 2020 11:06:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 0F16C20656 for ; Tue, 28 Jul 2020 11:06:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ArIcZrJ3"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="Rxc0FLvG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0F16C20656 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org 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=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sfez2c13Stcg02ai/s7cRVu+N46wKwrCP8mSdmaEHfI=; b=ArIcZrJ3cY1PYy4kDkvjQGYJU h+niKax5VFEiI4Md5P6GyRnlDdX5Dqk7pyOEqFCxYSeDWSa3Si97f3n6yROEbb6Ymlsv0vjd0krtY JKd/mxND1HKOBGDnJEcScBW870zazhixq9x1oA5nOOvI4vNPbdequJ7hp7m80mfZWB/OW08RVzHte 4uN/fOPJDE/kfWgXNRmf5jElNN+tniLutr6wZsD2EGiQNowXq/iUaqdkZb0x3zcmnDEMFZl83CzEL 1OZW5KJuS+QevB7ABVn4DS4x3RS1WVD2eR1et/y5MPCTF4M/VpOwp6swVqJ5f2IZstx4f1WkxUTM7 F4N2K7cXg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0NPr-00065v-Vh; Tue, 28 Jul 2020 11:05:04 +0000 Received: from m43-7.mailgun.net ([69.72.43.7]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0NPn-00063m-R6 for linux-arm-kernel@lists.infradead.org; Tue, 28 Jul 2020 11:05:02 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595934301; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=Bh1T1kgIpH3l6UPLkmP/MuDMByeg95yGzpXFCFWXxQ8=; b=Rxc0FLvG50+G4SLRbsMxElrFY8a62bJeTpV6FA8eVs0hYLtDMCxAAiHTZTv6jfFOPT7OFG0z C3QVQl+atc9IC4z5kzAQWq4agI9a8ofx1QnhfC4GmBWMLwme6JlCKlsk3Xy0nght98oCgbiG GEFboga3knYjm/diLppZNI5NZ+g= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyJiYzAxZiIsICJsaW51eC1hcm0ta2VybmVsQGxpc3RzLmluZnJhZGVhZC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n18.prod.us-east-1.postgun.com with SMTP id 5f200652ca55a5604c41e528 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 28 Jul 2020 11:04:50 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B47A6C433A0; Tue, 28 Jul 2020 11:04:49 +0000 (UTC) Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan) by smtp.codeaurora.org (Postfix) with ESMTPSA id 064BFC433C6; Tue, 28 Jul 2020 11:04:49 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 28 Jul 2020 16:34:48 +0530 From: Sai Prakash Ranjan To: Marc Zyngier Subject: Re: [PATCH 1/2] arm64: Move handling of erratum 1418040 into C code In-Reply-To: <20200728092112.3865765-2-maz@kernel.org> References: <20200728092112.3865765-1-maz@kernel.org> <20200728092112.3865765-2-maz@kernel.org> Message-ID: <085f6277636399f0ac33b9a556e36a0a@codeaurora.org> X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200728_070501_878403_3D1E0377 X-CRM114-Status: GOOD ( 14.72 ) 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: swboyd@google.com, kernel-team@android.com, Suzuki K Poulose , Catalin Marinas , dianders@google.com, Will Deacon , linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2020-07-28 14:51, Marc Zyngier wrote: > Instead of dealing with erratum 1418040 on each entry and exit, > let's move the handling to __switch_to() instead, which has > several advantages: > > - It can be applied when it matters (switching between 32 and 64 > bit tasks). > - It is written in C (yay!) > - It can rely on static keys rather than alternatives > > Signed-off-by: Marc Zyngier > --- > arch/arm64/kernel/entry.S | 21 --------------------- > arch/arm64/kernel/process.c | 29 +++++++++++++++++++++++++++++ > 2 files changed, 29 insertions(+), 21 deletions(-) > Thanks Marc, tested the series on SC7180 and SM8150 SoCs which are affected by this erratum. Tested-by: Sai Prakash Ranjan -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel