Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1425766pxf; Fri, 12 Mar 2021 09:12:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8kFImOhedQMyBoceGOR5anREkJlWKPTmZgX+qva9T8gEh4jbQvQB31gJgJggsp6KwWTef X-Received: by 2002:a17:906:4f8a:: with SMTP id o10mr9796826eju.484.1615569134365; Fri, 12 Mar 2021 09:12:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615569134; cv=none; d=google.com; s=arc-20160816; b=ZNHw/iqA9KSyVCYmhcRWdl8JTw/L2fKGXpCrKVOii0sJtnVyUtDLK+Fq5sr7wHs98i mhwmj2t3eK59vapfAHILTRDO4YFkcPtrZQjYcJ41QR2QPagfWAFao1/F3YngonmCe0Gw g+iVXg9CSATM1H0Bde8BDKsrbqPDKXIlUap1+vU8/HqEbgfMaKju+hJWLju2Gnhhd+n7 gXS6ny/8396k9devyS8RFBT30y6TGL4WpdYoJ6GfVH5k97UO6XFG8MQB7K+5RoqEcjdg Qtuh0J2qLGxIifnkgeLW6KyM/V6+qZwFh7YA5gwK/iPSMvTPk9c87YSFQCtkZ+Fxn63g y64Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from; bh=bzumZl2S4GK+GwqENk6JXV3uJdEHDCJ4EywZgLDW84Q=; b=UcDK2w5CQ/GqtDxKhEEwTVZN/FtCnYM9t7GtYOvFHokLLmDt3yobWP49shCTD/uA8D p5m9orzZFTBRZGy30uYGNNuey+yFd1UludfWmIGArC5i0FySzjFq9+LmXadELQUziS1n TMCe+CCZwQyDD/O2gG3AQIwQHWVVkXAwBlpXf4fMiwlHd+SWEvxu5QbSNmp0FuUWbWpL HnXMPtLgsTquK8keld4gG/QUE8axHtwIpCcarSM2XBxJRHx0+Lq2VTxSx7EnJTltjPh2 DSx2WAvrCv+Wo2SY6vwa4c6cf1HaVTy8NKg/iehaLu9ImUtoTsoMTA/2DNIGn0zzwJ1k z++Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si4438066edz.11.2021.03.12.09.11.51; Fri, 12 Mar 2021 09:12:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232253AbhCLRKg (ORCPT + 99 others); Fri, 12 Mar 2021 12:10:36 -0500 Received: from foss.arm.com ([217.140.110.172]:57570 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbhCLRK3 (ORCPT ); Fri, 12 Mar 2021 12:10:29 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7859511B3; Fri, 12 Mar 2021 09:10:29 -0800 (PST) Received: from [192.168.0.14] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D787B3F7D7; Fri, 12 Mar 2021 09:10:27 -0800 (PST) From: James Morse Subject: Re: [PATCH 04/24] x86/resctrl: Add a separate schema list for resctrl To: Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , shameerali.kolothum.thodi@huawei.com, Jamie Iles , D Scott Phillips OS References: <20201030161120.227225-1-james.morse@arm.com> <20201030161120.227225-5-james.morse@arm.com> <8c95f0d5-c543-a5bf-b3b6-df5c7a6f6c3c@intel.com> Message-ID: <3fd053b1-d25f-dbdd-47f4-54a5b1df349c@arm.com> Date: Fri, 12 Mar 2021 17:10:26 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <8c95f0d5-c543-a5bf-b3b6-df5c7a6f6c3c@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Reinette On 17/11/2020 21:29, Reinette Chatre wrote: > On 10/30/2020 9:11 AM, James Morse wrote: >> To support multiple architectures, the resctrl code needs to be split >> into a 'fs' specific part in core code, and an arch-specific backend. >> >> It should be difficult for the arch-specific backends to diverge, >> supporting slightly different ABIs for user-space. For example, >> generating, parsing and validating the schema configuration values >> should be done in what becomes the core code to prevent divergence. >> Today, the schema emerge from which entries in the rdt_resources_all >> array the arch code has chosen to enable. >> Start by creating a struct resctrl_schema, which will eventually hold >> the name and pending configuration values for resctrl. > > Looking ahead I am not able to identify the "pending configuration values" that will > eventually be held in resctrl_schema. With entire series applied there is the name, type, > num_closid, and pointer to the resource. Looks like a vestige from an earlier version: This referred to the staged configuration in a much earlier version, but this has to stay in the domain structure as its per-domain. This should refer to the type that is used as an index into the domain's staged configuration array. Thanks, James