Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3909191pxj; Tue, 15 Jun 2021 11:11:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe4n908+MwOoz0UsZ+Pn6GCJD6YeZ7NI50zjOUssZ6wiwTPOQUcqN56KBbG8m1SDWcoNXj X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr927667ejf.416.1623780689269; Tue, 15 Jun 2021 11:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623780689; cv=none; d=google.com; s=arc-20160816; b=niwzcnG2EuKzRuSyg03/KkkNkyubYiaSQ8OLJPkVigDtIJM7N1KT2ok9uJANcuWChR V43+w9YgAkhUYmW2R+FZTjk5eX+eeMMFklMOR6Vi1+D/CGpak3padUkCAEqoMR8VA8Hm AhGS7EbWzyoBIdRfeOooKJs1M88Vdbyp57BkOazmhNJWN+YXkb6u9qpFBcqKqLKoIfCM dOou4JYVb+x0wC2M//1u1wqHGvVlDuQDUrU1iF3T1sUiXHZBCa0BUedo9aO8l9nnRqoO Ir5UxsL5f6aUS0NWfnWrvmjPKtRx49pDF2ZG0o0BiddVPV4sjZeOErsE4yxTZinvaxDj Owsw== 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:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=mufAwSlc/WrYcJyhJyO0p3ZM7Ss9jW0jTKfdUIoHCyI=; b=lGl822dFOOxGuWfF6Cjez1TDhVVX3s/76Erg8K9dSUWs/Ryqglitzc/D8imNSTR7QU 1ksbHKC0QZQ0SyjUiWrdx1AxA9OZUShd9ppGw2B6Q6AWzLrSm91ubRNdzvK5mu2Ok55r w+8dzQ1/S8ftkkq7D9Hms83FSbESb2NQ8pr4IZ5M9scOBNMD04yuNBnV8gRgcKx+RfKm BhsElgF+Gf8HCAAezHFon/kVesJkzxS/jMH1UesMuqoJM3XHyjR1nyEtLVrP0kGzxjh2 gAGbImcQiX9fOH9L1YoTbIN3KL+53at1gL6hc9uFChQo9Hfl3HHAFaYqdRoJCnOao3rU BxJQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m27si15764081ejn.391.2021.06.15.11.11.06; Tue, 15 Jun 2021 11:11:29 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbhFOSJw (ORCPT + 99 others); Tue, 15 Jun 2021 14:09:52 -0400 Received: from mga03.intel.com ([134.134.136.65]:49511 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbhFOSJv (ORCPT ); Tue, 15 Jun 2021 14:09:51 -0400 IronPort-SDR: 7gnpVFo/UvS44MN3sKN2thUKI98WpWHV0g0LUfcryRbxNoWuWzPrvbAH6vFjwf0XGuazFR2Zst XhM+H5kGKhIQ== X-IronPort-AV: E=McAfee;i="6200,9189,10016"; a="206080330" X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="206080330" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2021 11:07:46 -0700 IronPort-SDR: OGpEapkgwJ2ija8VunQ5NTZdtY4ZHImtRdAf9IeAOjWn66ynwYuLmRmCYFlXu0+bD1GYtifBQ6 hA1eacoM1JbQ== X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="554528620" Received: from rchatre-mobl3.amr.corp.intel.com (HELO [10.212.184.247]) ([10.212.184.247]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2021 11:07:45 -0700 Subject: Re: [PATCH v4 02/24] x86/resctrl: Split struct rdt_domain To: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, Jamie Iles , D Scott Phillips OS , lcherian@marvell.com References: <20210614200941.12383-1-james.morse@arm.com> <20210614200941.12383-3-james.morse@arm.com> From: Reinette Chatre Message-ID: <317be161-3316-729f-5c49-4a3275226e01@intel.com> Date: Tue, 15 Jun 2021 11:07:45 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210614200941.12383-3-james.morse@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, On 6/14/2021 1:09 PM, James Morse wrote: > resctrl is the defacto Linux ABI for SoC resource partitioning features. > > To support it on another architecture, it needs to be abstracted from > the features provided by Intel RDT and AMD PQoS, and moved to /fs/. > struct rdt_resource contains a mix of architecture private details > and properties of the filesystem interface user-space users. rdt_resource -> rdt_domain ? user-space users -> user-space uses ? > > Continue by splitting struct rdt_domain, into an architecture private > 'hw' struct, which contains the common resctrl structure that would be > used by any architecture. The hardware values in ctrl_val and mbps_val > need to be accessed via helpers to allow another architecture to convert > these into a different format if necessary. After this split, filesystem > code paths touching a 'hw' struct indicates where an abstraction > is needed. > > Splitting this structure only moves types around, and should not lead > to any change in behaviour. > > Reviewed-by: Jamie Iles > Signed-off-by: James Morse Reinette