From patchwork Fri Sep 10 19:55:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Henrique Barboza X-Patchwork-Id: 12485917 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=-8.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 C9AE9C433F5 for ; Fri, 10 Sep 2021 19:58:01 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 7E305611BD for ; Fri, 10 Sep 2021 19:58:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7E305611BD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOmeu-0007uh-97 for qemu-devel@archiver.kernel.org; Fri, 10 Sep 2021 15:58:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOmcy-0005K6-IS; Fri, 10 Sep 2021 15:56:00 -0400 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:40902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOmcx-00064z-2w; Fri, 10 Sep 2021 15:56:00 -0400 Received: by mail-qk1-x730.google.com with SMTP id t190so3314305qke.7; Fri, 10 Sep 2021 12:55:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=v7x3yIU2XPxdzxIhB6rQ/zeto9dRlHQXK30m/Vv0AK0=; b=SSVUW6c0h93qo3kLaPdLpA4a9Gwiroz0YTxLB/xR1ZqEPIAbvmjUt1j5P24DV33+sV azXCjKprGyxyqxrvW+Fm9kcG7JyNsV2EEpXCjv0yMromHM9Z/rSroTCxnUcbbHWfOg0/ E2Ss9BYwMjeVstLzsEJ853xG2DZKreONbeIgGGeyog/uNnkgbJqGMcSZOHDK1Xb5E4nM 2CpcF1Jn81yXBw+KkseyDiFUvQb9s/ZpQ3EpZHEogK/gllotJGVujRIxMKiRmATSF1BQ wbXlo0h7L1shI6AeDel8ZOLWhZcbNbgWom50sp4P9aT8WaGJzAIyBdvsL+4xriUXWB9X x5fw== 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=v7x3yIU2XPxdzxIhB6rQ/zeto9dRlHQXK30m/Vv0AK0=; b=2Y+PxArD17WG+7OxjQcRPR7eD3Hnw9khaDy2KGKtZSfKQyVmuTkqS1+4xEyP9MJzlQ EtSoNYo4GcIIlXnsMr6IU0SSmVsCO2x6WMjUmhRSMTsnvYtLlC3YQY7E91c6w/v0BnM9 CE+F89mFCBsNw8orv6IXUgFm7ThcfUusFd/P/dw8Y6+SLHDinANE/pEolHLMLsUViFf4 tdPyx88HJg/1UYG3OJQqHgYJNxilJuFJeC52jgCEUjgfNKebkrvyPnIUhJ/yg/Xzw0Vo E7ySip7DtEvqSQ207fY1mapui24LOAXMrDBBPGh8h2xaq5Gn2Af1EAQUmczZt504hTYF xz3A== X-Gm-Message-State: AOAM531JIFD9qS5+Uv+/Rx7QQTapCfz/+bdvWo9mTPf/BVYRBSID99pn EumsaAJQcslXVRXoSijg7/sSQuhZDbQ= X-Google-Smtp-Source: ABdhPJxXvGiieI6Q6y0Q88dACCGM0Hx+4AxwgYPTg49WQ/XdC2CyFYSfHcgHINSy6F6UB0TIjIls4Q== X-Received: by 2002:ae9:ef48:: with SMTP id d69mr9107433qkg.232.1631303756880; Fri, 10 Sep 2021 12:55:56 -0700 (PDT) Received: from rekt.COMFAST ([191.193.98.206]) by smtp.gmail.com with ESMTPSA id k10sm3873356qth.44.2021.09.10.12.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 12:55:56 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH v6 0/6] pSeries FORM2 affinity support Date: Fri, 10 Sep 2021 16:55:33 -0300 Message-Id: <20210910195539.797170-1-danielhb413@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=danielhb413@gmail.com; helo=mail-qk1-x730.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, groug@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, In this version there was significant design changes after the v5 review. Only patches 1 and 5 were present in the last version. changes from v5: - patch order was changed to make all the preliminary work without adding FORM2 code; - FORM1 and FORM2 data now co-exists. Both are being initialized in spapr_numa_associativity_init() in two static arrays called 'FORM1_assoc_array' and 'FORM2_assoc_array'. 'numa_assoc_array' is now a pointer that toggles between those 2; - spapr_numa_associativity_reset() switches the NUMA affinity data to be used. It is not a replace for associativity_init() as it was in v5; - 'legacy_numa' concept was removed; - FORM2 affinity init() is now completely separated from FORM1; - FORM2 ibm,associativity array only contains size and numa_id for non-CPU resources, and an extra vcpu_id for CPUs; - FORM2 reference-points is { 1 }; - FORM2 maxdomain has size = 2; - several other changes to accomodate the new design of having to deal with 2 different data structures, while minimizing changes in the write_dt() functions Daniel Henrique Barboza (6): spapr_numa.c: split FORM1 code into helpers spapr_numa.c: scrap 'legacy_numa' concept spapr: introduce spapr_numa_associativity_reset() spapr_numa.c: parametrize FORM1 macros spapr: move FORM1 verifications to post CAS spapr_numa.c: FORM2 NUMA affinity support hw/ppc/spapr.c | 55 +++--- hw/ppc/spapr_hcall.c | 7 + hw/ppc/spapr_numa.c | 382 ++++++++++++++++++++++++++++++------ include/hw/ppc/spapr.h | 25 +-- include/hw/ppc/spapr_numa.h | 2 + include/hw/ppc/spapr_ovec.h | 1 + 6 files changed, 362 insertions(+), 110 deletions(-)