Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp57912pxj; Wed, 16 Jun 2021 20:13:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1kIcAb0/mJ28zpVEb0HK7ln5Inbe94dGJFnn3vjj3I3lSSzpBYxSniLolKbbewtnpxzeb X-Received: by 2002:a92:7303:: with SMTP id o3mr1876556ilc.203.1623899589203; Wed, 16 Jun 2021 20:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623899589; cv=none; d=google.com; s=arc-20160816; b=P2m+lY5qFg2e1YVFrbIejdL5vFkkiSECZpbJeAq4IRUjHudaGSyA+il0hYmR5U+5ts c2tXvKC03Jt2sapTAx0m1XlJBl1OT403YViS8b60RFW26GDyFbd1kbq+v1lop8cRgtao Es49ay/IzxsLIUXPNpcqO9HtU3aH7SHI5eN0BziJZPCMFeWs2pNlRlW4t/Huy086mIBk Ezc/WtyWHJc2Ie+3aDw2V8FqWcgWej5Lm3xxfeAld+MIP61xwbBRRbS9JoqPbTaOmseg MCZP/sh6q97sBUuIeEGYCSpRblwQm7Su+Uq04pVvbhsoAcRkTnxNqHbRZUcK7esZe21Z yebA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YMA7/vK7LRnjFQgxNv0v2/iGODVmVsDh1vqgQp94or4=; b=FzA+xn3kZhvRiLqg2Dp12ddZpwagjNoeUQYEfyqbkzWw6tWhyBKZ+MXGwl5DMRBYRB LngL51A8A66ss6pKa27z1ZDHLgVpwZd7Z0JS0CnJQP9w9kNUiuKfESSrBJiT+GD/aOsD Ayt1B4Y5l4FhKapa1WRriw5qnwzt83rIqfV3WRrDZqsCN5ePqyh58d8nTHR3LtWNh0tx FBuSRVH7L8mzWlkbuBrWA5kcjs3n5CIuySeTADKcjFvex8VtnZLXIbVc4lFefE8gkxio /YRTfN5YEqsE+nhowBDYh93bZaZSg2hCWC3EGDyN1up9fHQiJTaHF89yBfIPALbKcJMF twCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H+HT7gja; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si3868198iod.20.2021.06.16.20.12.57; Wed, 16 Jun 2021 20:13:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H+HT7gja; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231986AbhFPSpn (ORCPT + 99 others); Wed, 16 Jun 2021 14:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231892AbhFPSpn (ORCPT ); Wed, 16 Jun 2021 14:45:43 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F12C3C061574 for ; Wed, 16 Jun 2021 11:43:35 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id k7so5402882ejv.12 for ; Wed, 16 Jun 2021 11:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YMA7/vK7LRnjFQgxNv0v2/iGODVmVsDh1vqgQp94or4=; b=H+HT7gjaDeTB++P1/dH3+l0kimHfczGMOya5cg0290WPPUYV4CNlc4afR+SMT1vjx9 IBxZmjw6XsSDPEw++DWuCxhH2yvswYBOGcg6tJKl3FHpjBfkkLzbix54f1xxDnx4FJmd GaLMHb0XqwBEH7eLaIRDU4kCgkSPGpvgAQWp6XmivuPJMxjP3qag1pl16nydWiRhTKsf PZ3QkFgiCbEicDxCALHP9cklBbT9xhY2b9snHFXKdOk8k1CICI/Wb+EvmDNmjG+q37ld PskSOCI3AdnLugESKgVq+I++rvSCiyiefz/llyRtJ/f4Tjq1x2CulqkAJfy/GxWnGI31 FRDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YMA7/vK7LRnjFQgxNv0v2/iGODVmVsDh1vqgQp94or4=; b=c9qPhHx6dhRM5Q93Kr5hlmUO+506hXejWxnurJsUiJNSbL/FNEaWveHt/u/dfIt0xt Mu1baG8ZZ0TvS9x+tyVvTxRSsZ7q9rRlHFHS97H/gUNxNgM3Pqd6SL0r4g9DBp3NkjNu swFgQ+SSTVd5br+B7RvtjGEhbZVpJMlp/DuqwKPVgFnCvzQpnYMjMhTKRcUkf4yFzAJU JD/6lch/nPsK18mBCkhJfzQiusVZvEGyNKkhjoEVf3MOG9E7a24R+xTACe0DPFg7OPSN pzXFIZXDo5ZJm5M4Rd6kk4i4EsFj+g3QDrqnhE1Zq1tepeDQfnY5n8+dxprRCCJFmiaL ceDA== X-Gm-Message-State: AOAM531lbfXbRzwVjFMPXHmcVk5OGHEnTh72wqWZDw6apVO3e3acyCcI 0WAGoFoZiw+tT0eNIHfROOY= X-Received: by 2002:a17:907:2b26:: with SMTP id gc38mr943621ejc.31.1623869014357; Wed, 16 Jun 2021 11:43:34 -0700 (PDT) Received: from linux.local (host-82-59-55-132.retail.telecomitalia.it. [82.59.55.132]) by smtp.gmail.com with ESMTPSA id n11sm2159275ejg.43.2021.06.16.11.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 11:43:33 -0700 (PDT) From: "Fabio M. De Francesco" To: Reinette Chatre , Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Cc: "Fabio M. De Francesco" Subject: [PATCH v3] x86/resctrl: Fix kernel-doc in internal.h Date: Wed, 16 Jun 2021 20:43:30 +0200 Message-Id: <20210616184330.13301-1-fmdefrancesco@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add description of undocumented parameters. Issues detected by scripts/kernel-doc. Signed-off-by: Fabio M. De Francesco --- v2->v3: Fix typo. Inherit the descriptions of membw and mbm_width from commit https://lore.kernel.org/lkml/20210614200941.12383-2-james.morse@arm.com/ to make it easier to merge both patches. v1->v2: According to a first review by Reinette Chartre, remove changes unrelated to the subject of this patch and modify the descriptions of two parameters. arch/x86/kernel/cpu/resctrl/internal.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h index c4d320d02fd5..956b83681bcb 100644 --- a/arch/x86/kernel/cpu/resctrl/internal.h +++ b/arch/x86/kernel/cpu/resctrl/internal.h @@ -70,6 +70,7 @@ DECLARE_STATIC_KEY_FALSE(rdt_mon_enable_key); * struct mon_evt - Entry in the event list of a resource * @evtid: event id * @name: name of the event + * @list: entry in &rdt_resource->evt_list */ struct mon_evt { u32 evtid; @@ -78,10 +79,13 @@ struct mon_evt { }; /** - * struct mon_data_bits - Monitoring details for each event file - * @rid: Resource id associated with the event file. + * union mon_data_bits - Monitoring details for each event file + * @priv: Used to store monitoring event data in @u + * as kernfs private data + * @rid: Resource id associated with the event file * @evtid: Event id associated with the event file * @domid: The domain to which the event file belongs + * @u: Name of the bit fields struct */ union mon_data_bits { void *priv; @@ -119,6 +123,7 @@ enum rdt_group_type { * @RDT_MODE_PSEUDO_LOCKSETUP: Resource group will be used for Pseudo-Locking * @RDT_MODE_PSEUDO_LOCKED: No sharing of this resource group's allocations * allowed AND the allocations are Cache Pseudo-Locked + * @RDT_NUM_MODES: Total number of modes * * The mode of a resource group enables control over the allowed overlap * between allocations associated with different resource groups (classes @@ -142,7 +147,7 @@ enum rdtgrp_mode { /** * struct mongroup - store mon group's data in resctrl fs. - * @mon_data_kn kernlfs node for the mon_data directory + * @mon_data_kn: kernfs node for the mon_data directory * @parent: parent rdtgrp * @crdtgrp_list: child rdtgroup node list * @rmid: rmid for this rdtgroup @@ -282,11 +287,11 @@ struct rftype { /** * struct mbm_state - status for each MBM counter in each domain * @chunks: Total data moved (multiply by rdt_group.mon_scale to get bytes) - * @prev_msr Value of IA32_QM_CTR for this RMID last time we read it + * @prev_msr: Value of IA32_QM_CTR for this RMID last time we read it * @prev_bw_msr:Value of previous IA32_QM_CTR for bandwidth counting - * @prev_bw The most recent bandwidth in MBps - * @delta_bw Difference between the current and previous bandwidth - * @delta_comp Indicates whether to compute the delta_bw + * @prev_bw: The most recent bandwidth in MBps + * @delta_bw: Difference between the current and previous bandwidth + * @delta_comp: Indicates whether to compute the delta_bw */ struct mbm_state { u64 chunks; @@ -456,11 +461,13 @@ struct rdt_parse_data { * @data_width: Character width of data when displaying * @domains: All domains for this resource * @cache: Cache allocation related data + * @membw: If the component has bandwidth controls, their properties. * @format_str: Per resource format string to show domain value * @parse_ctrlval: Per resource function pointer to parse control values * @evt_list: List of monitoring events * @num_rmid: Number of RMIDs available * @mon_scale: cqm counter * mon_scale = occupancy in bytes + * @mbm_width: Monitor width, to detect and correct for overflow. * @fflags: flags to choose base and info files */ struct rdt_resource { -- 2.32.0