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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FA83C4332F for ; Tue, 21 Dec 2021 09:31:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234557AbhLUJb0 (ORCPT ); Tue, 21 Dec 2021 04:31:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232603AbhLUJb0 (ORCPT ); Tue, 21 Dec 2021 04:31:26 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFF1AC061574; Tue, 21 Dec 2021 01:31:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 900E26149F; Tue, 21 Dec 2021 09:31:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 727F5C36AE2; Tue, 21 Dec 2021 09:31:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1640079085; bh=yvxQ4XoLsMIX+Y8XPJ7+rWyqlktIq865SJFV9MrUjMw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0AESIwz7hKmjvdcscuowBfcbmlkCyOmIh8p/yvzZhhxcCb+qE23Y5FHXiIbRsqc7t u5Q84KA0u48A/KK2dJo1ELvYhriAwI7ZfnGmvT0ZNLjtLIlT+wr7b5sxqs1jlRGupf 7oMl8kHKhTksuXTrlCVSfOXYocmwcZFhrBJTZ4Sc= Date: Tue, 21 Dec 2021 10:31:22 +0100 From: Greg Kroah-Hartman To: Rob Herring Cc: James Morse , Jeremy Linton , 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: Re: [PATCH 0/6] cacheinfo: CPU affinity and Devicetree 'id' support Message-ID: References: <20211216233125.1130793-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211216233125.1130793-1-robh@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Thu, Dec 16, 2021 at 05:31:19PM -0600, Rob Herring wrote: > 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 > Acked-by: Greg Kroah-Hartman 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 64E5FC433EF for ; Tue, 21 Dec 2021 09:34:41 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sdZNniHGaO6TS0ZdG9K/7tVgu4CSuofGlfDPjeu6mmE=; b=HYJsFZcOGAbKhp KJL/mz+SHLundf+v0BC13RMR3GTPNJua3JjR/HUR3rt16mSWemZXWdKUTm++ShbSZW65eRjbrXyfu YvpKKzJjn/eg6BvxQ7Te7vioqdT5JkbbKEP/iDkn4uZWL6FrVe43Qgh16rPin79K6dUb4r428QEQD WlRgwJ7JW98iF5/8MT34SarVW3mbFuZG7EqWU7okPZ2EkWmIUHJmcCg1hkIUrXc4Y1rshbvd5Kzq6 Q+l30s9KvMfOpH21g2n0qyIzR6vMZ+bvVMZZ6JwoyIdsph5rqnn5R1HEMpIVxzQuhJIo42qkIkMrP PABqkmmO7XOwWoDYaeyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzbVt-006BA5-S0; Tue, 21 Dec 2021 09:32:54 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzbUU-006Ada-7S for linux-arm-kernel@lists.infradead.org; Tue, 21 Dec 2021 09:31:30 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 938CB614A3; Tue, 21 Dec 2021 09:31:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 727F5C36AE2; Tue, 21 Dec 2021 09:31:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1640079085; bh=yvxQ4XoLsMIX+Y8XPJ7+rWyqlktIq865SJFV9MrUjMw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0AESIwz7hKmjvdcscuowBfcbmlkCyOmIh8p/yvzZhhxcCb+qE23Y5FHXiIbRsqc7t u5Q84KA0u48A/KK2dJo1ELvYhriAwI7ZfnGmvT0ZNLjtLIlT+wr7b5sxqs1jlRGupf 7oMl8kHKhTksuXTrlCVSfOXYocmwcZFhrBJTZ4Sc= Date: Tue, 21 Dec 2021 10:31:22 +0100 From: Greg Kroah-Hartman To: Rob Herring Cc: James Morse , Jeremy Linton , 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: Re: [PATCH 0/6] cacheinfo: CPU affinity and Devicetree 'id' support Message-ID: References: <20211216233125.1130793-1-robh@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211216233125.1130793-1-robh@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211221_013126_360926_2ED6B919 X-CRM114-Status: GOOD ( 19.25 ) 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 On Thu, Dec 16, 2021 at 05:31:19PM -0600, Rob Herring wrote: > 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 > Acked-by: Greg Kroah-Hartman _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel