Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4437909pxj; Tue, 8 Jun 2021 14:25:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtb3y3TdML674gD2MUb2rVyyFBewdzTir05ijYTUTrgrja2yRg4Bon40XlOc+/Ki81kdB1 X-Received: by 2002:a17:906:f2d6:: with SMTP id gz22mr22581906ejb.137.1623187554752; Tue, 08 Jun 2021 14:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623187554; cv=none; d=google.com; s=arc-20160816; b=qmS9NrxEB0gRz7D5Rs0ahWz8TvxVjLJLylH+ZmvaQG11XFq7GLfZTT1bGz7fNzwdWi phJCwMyFJqQQnXKBQxafdMgXqRq0KhVdVDGPjoGE2fOcqiIKyP9B6FEolCVDPJpHVk/e PYUMnsWgtfLpCmqV596Snm9SQo0aN/qgQo79B/18hsQa/pPNe7Nf+APDZxriR+5jfFWW wNJ1BPl3Ektd+brO9LxW1bWhUvGAa+eND8UIOOFf93veTl/b3g8CYn58awbTlILOeysr N1w+gS71EecWJJyKe7jJtyVhdRdMwVcpZxcq23omtyNOq7vSIoLAB57GwWNYKcry43Qx OJEg== 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=DJybNIm7bt/Lt1qbRMzCwyyzZWchwnLCUvys9PiysUI=; b=kW4gacwfIYCnWBhZiNMcuH2/fCtxLJOgwDOAFjZ0i5UDbFl/BEeH5PTDVD+T6p/KG7 DloP7+nJghsbvu5IuTWp0+fKKFRQB4uZ+wUyh0tr/8Z0kMKxJd6LDA2C/eMmCqIhmTA/ /RTJweDd0hmEwnUMC9fpBVhOesQhYA7Q81kLGWVAH1QV8A+ihgSks7yM3rDoLhaZWjww PRceHXPLa9bKeI1TGnKCSSc7mPj7o53+/V6o7tX6vvwIaU1hj9fiiO9HdulrxYxllwO1 FB1rKk2/0CGjPilwm8i8kgkXcCDEM9ZA3S+WDsDvKeIJimotOKm+VjXVkpMDblzkK80q pYWw== 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 u6si663887eju.284.2021.06.08.14.25.30; Tue, 08 Jun 2021 14:25:54 -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 S231925AbhFHVZV (ORCPT + 99 others); Tue, 8 Jun 2021 17:25:21 -0400 Received: from mga05.intel.com ([192.55.52.43]:4271 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbhFHVZU (ORCPT ); Tue, 8 Jun 2021 17:25:20 -0400 IronPort-SDR: gj3fsiNWltRd+nevzd99v6A4aMr2gIgQEbAoVE/YKL/pyaQYwnvTl0BdFKP3dEdBYSU7VTCUkS qPj3GRJWf7xA== X-IronPort-AV: E=McAfee;i="6200,9189,10009"; a="290572221" X-IronPort-AV: E=Sophos;i="5.83,259,1616482800"; d="scan'208";a="290572221" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 14:23:27 -0700 IronPort-SDR: mBheP2NNJomVXZhQ+Lj6qxkKbNi/cUQCm/X0YuBfVJ/Lwy+dswVQsam18InQOeSUkO2dbqiyHy lQwCaOn6QDyg== X-IronPort-AV: E=Sophos;i="5.83,259,1616482800"; d="scan'208";a="482120515" Received: from rchatre-mobl3.amr.corp.intel.com (HELO [10.209.87.156]) ([10.209.87.156]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 14:23:27 -0700 Subject: Re: [PATCH] x86: kernel: cpu: resctrl: Fix kernel-doc in pseudo_lock.c To: "Fabio M. De Francesco" Cc: linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" References: <20210602222326.7765-1-fmdefrancesco@gmail.com> <017e9a77-d17e-effd-5639-72a06abc4fc3@intel.com> <1711024.RBxhUqbo4a@linux.local> From: Reinette Chatre Message-ID: Date: Tue, 8 Jun 2021 14:23:26 -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: <1711024.RBxhUqbo4a@linux.local> 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 Fabio, On 6/8/2021 1:12 PM, Fabio M. De Francesco wrote: > On Tuesday, June 8, 2021 1:30:34 AM CEST Reinette Chatre wrote: >> Hi Fabio, >> > Hi Reinette, >> >> Thank you very much for catching these. I am curious what your goal is >> because when I ran a kernel-doc check on the resctrl area there were >> many more warnings than are not addressed in this patch. Also, while >> this patch claims to fix the kernel-doc in pseudo_lock.c there seems to >> be a few more that are not addressed. >> > Actually this patch was just a preliminary test for checking if my > contributions to this subsystem would be taken into consideration or > completely ignored. That is the real reason why I just started with trying to > fix only a couple of kernel-doc issues in pseudo_lock.c. Your submissions are appreciated and will be taken into consideration. >> Are you planning to submit more >> patches to do a cleanup of kernel-doc or are these the only ones >> bothering you for some reason? >> > I'd like to submit more cleanup patches of kernel-doc, because I always read > carefully the kernel-doc above the functions I want to understand. I have a > long term plan to study the Linux code and try to contribute the better I can. > I'm into Linux developing since about two months, so I'm a newcomer and I > still have a lot to learn. >> >> Could you please fixup the subject to conform to this area: >> "x86/resctrl: Fix kernel-doc in pseudo_lock.c" >> > Sure. I was inadvertently using the drivers/staging convention I've used for > the patches I've submitted there. Unfortunately the kernel is not consistent in this regard. >> For this subject to be accurate though it should fix all the kernel-doc >> warnings found in pseudo_lock.c - or if not it would be helpful to >> explain what the criteria for fixes are. I tested this by running: >> $ scripts/kernel-doc -v -none arch/x86/kernel/cpu/resctrl/* >> > I've just run the above script and I see that there are a lot more warnings > that I was expecting. > > I want to fix as much as I can. Unfortunately I'm pretty sure I won't be able > to fix them all, just because the inner working and the purpose of some > functions are a bit obscure to me (at least until I get more knowledge of x86 > architecture - it may take a lot of time because I'm also studying other > subsystems at the same time). ... > region >>> >>> + * @rdtgrp: resource group to which the pseudo-locked region belongs >>> + * @sel: cache level selector >> >> This is not correct. A more accurate description could be: >> "select which measurement to perform on pseudo-locked region" >> > Here it is an example of my lack of knowledge/experience. Obviously, I'll > rewrite it according to your review. > > To summarize: as soon as possible I'll submit a v2 patch with the kernel-doc > fixes that I think I can understand. I am pretty sure that some fixes will not > be to your standards and that for what regards some others I will not even be > able to attempt to fix them :( > Thank you for giving me insight into your status and plans. Your approach sounds reasonable to me. When you submit fixes to parts you understand I can provide feedback based on my understandings to collaborate towards improved kernel-doc in this area. Thank you Reinette