From patchwork Tue Jun 21 01:48:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 583607 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp1216656mab; Mon, 20 Jun 2022 18:50:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1utXDylM4m4o5ltcjoXUmlPiMMixsLJE+OLObPfadyHgeo4+W6cCob/iBkayaHMrgpdzOYK X-Received: by 2002:a05:622a:5cd:b0:305:2acb:30d2 with SMTP id d13-20020a05622a05cd00b003052acb30d2mr21951192qtb.398.1655776213068; Mon, 20 Jun 2022 18:50:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655776213; cv=none; d=google.com; s=arc-20160816; b=XdiuJa0sU7G0HM9Eqc7FoWYuQt9YPDnSobO//U+CtdRy0+ZqkCyAItrV7aVtDvbOvl HE8eIWcxYtPaekeTONn3gZJPK6l1ORxOZXBb4yGBy2tMc8+XEEvci5foDxa3HR7n7TOQ +iv/3LmZ2TY0kMtVRIkSxdtq5gTB9V0y+ain6ODEI9L06vb7gRlu10fezSCM11hsGh8l 1FUYWEy7VFmvrXV3yu8O94FGXuP5sTyBek5u3vpfgLcuhOz7ppHs5opC2VQxk27Hd2GJ 95GgZwrNdRTL0ITrCO3HTiC9SgOd4a+3Nj6hfMRjZTmD/a/5v0VcteMPezDNV4BkuPbs th2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=P4BA2iKdBEMkxE2ofwBmHASz6W3lmAQv7Fk+tiz3hJI=; b=YYiCVbAleiSxKxlDbCFnbvzEWXeADBCV/GmqhQqLBSjv7d4vml99u3CgmKJmhIdFFD VfuhMDlyNKUJ2KRIW1QeO0Fd5ntk3/zgZbizs+Rx6/+mGHXwwTBsJpZC5JMrPxnWAHqJ KCPDPsDBAW0eOBZNkuIQNeQRdMpHmBIJHqXUCz3HdU0NoHfwL2Rhbqcv4RlP6N3PdNPd Z+wclfuDjUf8EyVTd2IceuKoL0wWjVheN535Io7bA9hAdRcjjDS5FNy0SwjWm3THhLEM KbG+lSUbCgRzbqj7Wgwk6GZKZhpkRLYvAKFMY3JtlK4Aq6zgw3WqkpSQHg793jgzT9xp g3wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x1yB8kJJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w23-20020a376217000000b006a68ac1aeddsi8214371qkb.427.2022.06.20.18.50.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Jun 2022 18:50:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x1yB8kJJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3T1w-0003S1-Kg for patch@linaro.org; Mon, 20 Jun 2022 21:50:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3T0T-0003R6-Mv for qemu-devel@nongnu.org; Mon, 20 Jun 2022 21:48:41 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:45773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3T0S-0001tB-4z for qemu-devel@nongnu.org; Mon, 20 Jun 2022 21:48:41 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d5so11204495plo.12 for ; Mon, 20 Jun 2022 18:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P4BA2iKdBEMkxE2ofwBmHASz6W3lmAQv7Fk+tiz3hJI=; b=x1yB8kJJ7uRfUBSg6Cas/KSlJpF3t9KCifc5UlM48w0J1wwkVwnsPVUtzxZpLmLgwi WIedAIomS1oduKoJeCmEys3TNZSypKquBxP4Ew5jayUi1DTCAs5FbCJKN5czZVhy2t3/ fjCeQB6VImkmrQqRxi6c0PWg6hzWkdjPDTv5tduWFGJKq5j/KklBwAbmCeeSjV2kBJHp 1DUA9H74JduYF6S+hW2gounpr9hG7v+nW2xKPGrnsOe2C6qTXCUqFFHX9weKFwE7jUgt a8TnBRkhNs9EJmdqwNjd/ZNX4catfKAxTutcPf9X+yCuWkyXa6KtfYB3bOw1ngzut2VD NOaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P4BA2iKdBEMkxE2ofwBmHASz6W3lmAQv7Fk+tiz3hJI=; b=uOs6Rc7jo5XScNfZGPSzHP08ImeOcjrg67tYizkNbTg9NCHMUY7SxAgkazHuCW5x5q ayVWSNEjl81pYsuDdVWQhPqaJ7UbbRbJOQ6MN/8QGnaJJNv+W+W7mg4p5fgqPvlu9Enb SMhPfzSRZeckD9qjiWDBr3mSMX6Thfy3ScW3obLCjo2y9q+vExDvthqqK5PX9QcDnfDP WlbxDwrChiHVJvI4xxFUWRzJNzIoxeMMVxVhUBx5D3tLrcGe9QC4O5Ijst34yIIE1UOD Pbmv+OHadUx76jVKxVntnUNjRhlHQUdkCvKE/c8zSKJFWJgoOSkb0neQt/k2AbuNrVCX JDxA== X-Gm-Message-State: AJIora9jkknaoj3gZf4xnfreVxlRbhlDrkn/wiPi5RtFapS0/IvbdNso 0hglITsYEjcmOOgi15UUeWZJmmyGUQMZbQ== X-Received: by 2002:a17:90a:8b8c:b0:1ec:711e:c426 with SMTP id z12-20020a17090a8b8c00b001ec711ec426mr24408118pjn.17.1655776118596; Mon, 20 Jun 2022 18:48:38 -0700 (PDT) Received: from stoup.. ([2602:47:d49e:3c01:a3e0:8a80:7b85:aea6]) by smtp.gmail.com with ESMTPSA id q11-20020a056a00084b00b0051bc3a2355csm9907875pfk.64.2022.06.20.18.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 18:48:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: npiggin@gmail.com, qemu-ppc@nongnu.org Subject: [PATCH v2 0/3] util: Optimize flushing when ppc host has coherent icache Date: Mon, 20 Jun 2022 18:48:34 -0700 Message-Id: <20220621014837.189139-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is Nick's patch, with the merge of the two files as I suggested, and the aarch64 cleanup I promised. r~ Nicholas Piggin (1): util/cacheflush: Optimize flushing when ppc host has coherent icache Richard Henderson (2): util: Merge cacheflush.c and cacheinfo.c util/cacheflush: Merge aarch64 ctr_el0 usage util/cacheflush.c | 247 +++++++++++++++++++++++++++++++++++++++++++--- util/cacheinfo.c | 200 ------------------------------------- util/meson.build | 2 +- 3 files changed, 232 insertions(+), 217 deletions(-) delete mode 100644 util/cacheinfo.c