From nobody Tue Feb 10 05:46:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+54852+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+54852+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1582711454; cv=none; d=zohomail.com; s=zohoarc; b=oLYnQNSTv/0NRaGG2i6lqv0M5g6GAH1sMaDm8DPzwo+Fe6OxvDPkcHbMpwM7/XH5cg/GAXTU6OeL1JHbf2HhLJzH7Fkh9jdu0syWOCwuZW9gVv6RtkQpwEfpLpW+Hh77pjrj4w8soWDsh0uPMfHD1XNmK2PiwGS3+CDKz0yXw5c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582711454; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=YUTbDIUsXigh7f8hM1MmtEoX1vnT6RMuv/gxO0FvwRA=; b=Ogus00HYSZTmDjwQZ79Vlhym3ADdPvMtYLYCKbmYcsTwNmARyGH9xss9/WjRghjk9RUMaDtg6Mt0WzecHTH0jBmj39AVE3STelCM3L4yT0gf99Cooncx4jkuJwW3VwQHmvbs9moj12cxiNg9UgL8UlpG5zhx0+F094ZPIWcNN7M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+54852+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1582711454156897.0589499478127; Wed, 26 Feb 2020 02:04:14 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id oB0xYY1788612xGBgtXTd8vf; Wed, 26 Feb 2020 02:04:13 -0800 X-Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mx.groups.io with SMTP id smtpd.web10.6070.1582711452323966753 for ; Wed, 26 Feb 2020 02:04:12 -0800 X-Received: by mail-wr1-f67.google.com with SMTP id r17so50317wrj.7 for ; Wed, 26 Feb 2020 02:04:12 -0800 (PST) X-Gm-Message-State: GYvhHfaHQ4SLUVM03JcdtxyWx1787277AA= X-Google-Smtp-Source: APXvYqz8/RDCbSoto4tymIoX8LxKWGGBrGmqQAll6a5FIWg+dZbj78mgBPxnW0geaIP8cneC5NU37g== X-Received: by 2002:a5d:6406:: with SMTP id z6mr4561779wru.294.1582711450343; Wed, 26 Feb 2020 02:04:10 -0800 (PST) X-Received: from e123331-lin.home ([2a01:cb1d:112:6f00:816e:ff0d:fb69:f613]) by smtp.gmail.com with ESMTPSA id b10sm2559159wrw.61.2020.02.26.02.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 02:04:09 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif@nuviainc.com, lersek@redhat.com, sami.mujawar@arm.com, Ard Biesheuvel Subject: [edk2-devel] [PATCH 6/6] ArmPkg/ArmLib: deprecate set/way cache maintenance routines Date: Wed, 26 Feb 2020 11:03:53 +0100 Message-Id: <20200226100353.31962-7-ard.biesheuvel@linaro.org> In-Reply-To: <20200226100353.31962-1-ard.biesheuvel@linaro.org> References: <20200226100353.31962-1-ard.biesheuvel@linaro.org> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ard.biesheuvel@linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1582711453; bh=g5ZjYrPpj5bAr4ijqLOrrSk7+sfOhhSzXA07FrKb66c=; h=Cc:Date:From:Reply-To:Subject:To; b=wDA8HldcduZNPQMPx+maSCq5FBq2rZlnJkGiScc0VE2YipAyifzNIhX9f3GYQUFLzwH puL6Snxbh1wfZW5ImdwSmpPkkIV5Z1KKqx/oQdgq8KvdNnP/BbqPkb8MU0dAN7VGDWIKF x0q16Ni66nwHXU15Wu47lLRK8PhzdG2SY7g= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Cache maintenance on ARMv7 systems and up should be done by virtual address if the purpose is to manage the cached state of contents of memory. Set/way operations are only intended to maintain the caches themselves, e.g., to ensure that the contents of dirty cachelines are brought to main memory before the core is powered off entirely. UEFI on ARM is typically not involved in the latter at all, and any cache maintenance it does is to ensure that the memory it occupies and modifies remains in a consistent state with respect to the caches. So let's deprecate the set/way routines now that we have removed all uses of it in the core code. Signed-off-by: Ard Biesheuvel --- ArmPkg/Include/Library/ArmLib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArmPkg/Include/Library/ArmLib.h b/ArmPkg/Include/Library/ArmLi= b.h index 5a27b7c2fc27..8330339302ca 100644 --- a/ArmPkg/Include/Library/ArmLib.h +++ b/ArmPkg/Include/Library/ArmLib.h @@ -156,6 +156,8 @@ ArmIsMpCore ( VOID ); =20 +#ifndef DISABLE_NEW_DEPRECATED_INTERFACES + VOID EFIAPI ArmInvalidateDataCache ( @@ -169,6 +171,8 @@ ArmCleanInvalidateDataCache ( VOID ); =20 +#endif + VOID EFIAPI ArmCleanDataCache ( --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#54852): https://edk2.groups.io/g/devel/message/54852 Mute This Topic: https://groups.io/mt/71562852/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-