From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by mx.groups.io with SMTP id smtpd.web12.7591.1582722847380344676 for ; Wed, 26 Feb 2020 05:14:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=dT6k1NKw; spf=pass (domain: linaro.org, ip: 209.85.128.68, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wm1-f68.google.com with SMTP id p17so3028534wma.1 for ; Wed, 26 Feb 2020 05:14:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=yKg4PGtEXlhXz10PHahb5kdXFyoAywCuwx53CWHf1BU=; b=dT6k1NKwoftZg3BgLVEUZDGYGYGxPDDJRXR73uG9W0QyV2PXI65s8gU+Hxv6zJ5os6 RS3MEtDMci8DGH/eQHWXQ7wvvdntA7m06+ohBj7RycrIa+qaqfTq4azlVmyGN6eXx/k7 b5gUqjQ+f44wtCKsaPs9ea28zJAEz8WH/7KvQYf8hEuSZQ5ivqblesEOn2m9U8f/iEj4 EM+HrdPjIGbSWie63HFNs4KwcW0vl53oYiThnCeSwO7POJ4C1JnTSxP0TycyOB8HUkRv EeEle8Bwbc93pbGPpBshtbjDb3ybL+ImiSjUJtidW0CiltaYfz21jOF4qVaZF6n3hACq OF+g== 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=yKg4PGtEXlhXz10PHahb5kdXFyoAywCuwx53CWHf1BU=; b=fleC0fQrLIE/4nfUi4IVj2tCyV3BRmQp2Nv/O08irgE7i3w8GGTEMbsBtsiUWCN5+t vxSBN4ANwrXvrSWhC0XWb7fGa9sSekBMtlwAriy/vMd95ww7Rc7R35csXvgqwunMboi6 rqm0RcFKQ3liZKiC/FbOsivuRAKTwLdVnohvOPSdJdA2Uk93sjeeI1WO6z8HO9GDCuI9 oo7LLgS+K/10u0HoJOPDJkhYeVgV0PJSx4EQVYmEXg0y2bFXpNzD2jKZOchCDzFDD6r9 92NDfwR4yfgFLtUxyF2Q6x/mqxDgfShaj5lenMRlBZoejMOAf1XSsCTsGg0QLo3+BBrQ rGHg== X-Gm-Message-State: APjAAAWMPzm+KnODPVUMduQs1tAHwrzr73floF34/t6p6R1sAbKnb3dH wfdfso2jLH1h+wnv5pQB3MqvR6lNgw122w== X-Google-Smtp-Source: APXvYqzeONE4/jbSUd4gGxctqD4aSn4J3E4KQuzoBL6WMuRg9JR1Dimv/00arozHrrCfeVmvPA0+Tw== X-Received: by 2002:a7b:c935:: with SMTP id h21mr5436544wml.173.1582722845570; Wed, 26 Feb 2020 05:14:05 -0800 (PST) Return-Path: Received: from e123331-lin.home ([2a01:cb1d:112:6f00:816e:ff0d:fb69:f613]) by smtp.gmail.com with ESMTPSA id s8sm3321690wrt.57.2020.02.26.05.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 05:14:04 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif@nuviainc.com, Ard Biesheuvel Subject: [PATCH 0/3] ArmPkg/ArmLib: ASSERT() on misuse of set/way ops Date: Wed, 26 Feb 2020 14:13:59 +0100 Message-Id: <20200226131402.30317-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Talking to Leif on IRC, we decided that deprecating cache maintenance by set/way, as I proposed in the series I just sent out [0] may be too strict, especially considering that some v7 based uniprocessor platforms such as BeagleBoard may actually need it to clean any junk from the caches before turning them on. So instead, ensure that this use cache remains supported, but discourage/ prevent misuse by ASSERT()ing that they are only used with the MMU off. [0] https://edk2.groups.io/g/devel/topic/patch_0_6_armpkg_eradicate/71562844 Ard Biesheuvel (3): ArmPkg/ArmLib: clean up library includes ArmPkg/ArmLib: remove bogus protocol declaration ArmPkg/ArmLib: ASSERT on set/way cache ops being used with MMU on ArmPkg/Library/ArmLib/AArch64/AArch64Lib.c | 16 ++++++++++++---- ArmPkg/Library/ArmLib/Arm/ArmV7Lib.c | 17 +++++++++++++---- ArmPkg/Library/ArmLib/ArmBaseLib.inf | 6 +++--- ArmPkg/Library/ArmLib/ArmLib.c | 2 -- 4 files changed, 28 insertions(+), 13 deletions(-) -- 2.17.1