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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B504C433EF for ; Thu, 16 Dec 2021 23:33:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hB1quMFVSDFXZHIzVyaR2zQ1Kidbs0FvlkvC9KIct70=; b=LLpgHCsR0xWcti Ljtmdf6qAyEA3rPlsWQDEP+8pH2AG/kAkY+RJYpUUbYwEyjSe3MIYQqvESRuHaJ7UtQwAwq/wULbu yzIdTmOS8cVNiC52z+BSt6MTq681VpOSr1dceeKsnU2ID9uEsfqQI+azYk7p5PClHcAP/VH8gPyOT F3OOjxXoidpdWs3nX7rW13cLegN0k/ySPUpQ/Bv3RgEcZMcXpslEj1qv3E149EchBtQP3l8puUqRL S/VKublp+Ys/1VOMZyvmanE0N0yjqguSuGbcB3dFnUI3F0RSKkb0LPT4zysAOAznSF8s4WtKWiNo2 cNGUORH7f6Pjrr7yB4lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1my0Dj-007wH2-Jg; Thu, 16 Dec 2021 23:31:31 +0000 Received: from mail-ot1-f42.google.com ([209.85.210.42]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1my0Dg-007wGO-0X for linux-arm-kernel@lists.infradead.org; Thu, 16 Dec 2021 23:31:29 +0000 Received: by mail-ot1-f42.google.com with SMTP id w6-20020a9d77c6000000b0055e804fa524so800402otl.3 for ; Thu, 16 Dec 2021 15:31:27 -0800 (PST) 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=ISZr1aZ8E2hlGFBNnfyHuvzOhe4RdEc7KunvIww2klM=; b=lZ564MjbFe+iqaMNvTUtfO0Dw63VeHoZpwtmb1oPVuFhMgAbeC0Av7ODAet0hPNPT9 rMpD8VjdoXBO+AZOgv68CY4BQ+rTwt2SYfwjH2JM/RepxVIt9A0CWoH85GOhwoXlSItv hzWAp/AkNNPWIXB5lTiGIVcvLpNzC3rhn2ztrskF/FDk44BWxepJfczSeJPk2Yh58xFL wRc5PV7T34z1csaUEhvgfFcJe3oyALrGGxkCT+xsKf9eBYhNCbFnAUMP3v4/4YCqAuox Mp/J3zY8VJsj/6YdHlBOzmSCznotQ2D3fVyblb7t2DZI6E4eqFj3xNnboUdIh3aiPdFf v9cA== X-Gm-Message-State: AOAM533zJx0fX2kw8fpo3J1M8+SQR6WpnqBlFtdh711t9bUaDtsciXy6 mcDJa3TnZO7hOc0x800Shw== X-Google-Smtp-Source: ABdhPJwRnPEqP6CDdJdWuxDIEplYmdIX9C15u0NdOJv94DZ7P0i9j4ulfS8Lbl94HsmPCcnAzs8QZw== X-Received: by 2002:a05:6830:2683:: with SMTP id l3mr345202otu.258.1639697487067; Thu, 16 Dec 2021 15:31:27 -0800 (PST) Received: from xps15.herring.priv (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.googlemail.com with ESMTPSA id n11sm1256646oor.9.2021.12.16.15.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Dec 2021 15:31:26 -0800 (PST) From: Rob Herring To: Greg Kroah-Hartman , James Morse , Jeremy Linton Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sudeep Holla , "Rafael J. Wysocki" , Len Brown , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH 0/6] cacheinfo: CPU affinity and Devicetree 'id' support Date: Thu, 16 Dec 2021 17:31:19 -0600 Message-Id: <20211216233125.1130793-1-robh@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211216_153128_076599_E8985AA1 X-CRM114-Status: GOOD ( 11.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org For upcoming Arm MPAM support in resctrl, it is necessary to have the cacheinfo 'id' for MPAM enabled caches. The 'id' is part of the resctrl ABI. While this support already exists for ACPI based systems, it is missing for DT. This series adds the support. The 'id' value used is the smallest CPU h/w id value associated with a cache. This requires walking the cache hierarchy from every CPU node to get all CPUs associated with a cache. As MPAM also needs to know this, the CPU affinity is also saved to avoid reimplementing and walking the firmware tables again. Patches 1 and 2 are v2 from the prior series[1]. The rest are new. Tested on arm64 with DT. ACPI changes are untested. I don't have a system with an appropriate PPTT nor do I know how to modify ACPI tables. Rob [1] https://lore.kernel.org/all/20211006164332.1981454-1-robh@kernel.org/ Rob Herring (6): cacheinfo: Allow for >32-bit cache 'id' cacheinfo: Set cache 'id' based on DT data cacheinfo: Add cpu_affinity_map to store affinity for all CPUs ACPI / PPTT: Populate the cacheinfo.cpu_affinity_map cacheinfo: Use cpu_affinity_map for populating shared_cpu_map cacheinfo: Add cacheinfo_get_cache_affinity() function drivers/acpi/pptt.c | 29 +++++++++++++++-- drivers/base/cacheinfo.c | 65 ++++++++++++++++++++++++++------------- include/linux/cacheinfo.h | 29 +++++++++++++++-- 3 files changed, 97 insertions(+), 26 deletions(-) -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel