Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1510015pxy; Thu, 29 Apr 2021 08:29:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV0clQtyGldVTiwc+OAiTxzJCEtQx8tN1+goTKrAZ+AyOd0C/+g4qF9nmdk3rKsVBqyJPI X-Received: by 2002:aa7:c0ce:: with SMTP id j14mr83106edp.251.1619710184079; Thu, 29 Apr 2021 08:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619710184; cv=none; d=google.com; s=arc-20160816; b=qZ6xCB7yhIdtgN5BbXELaW1f1FJ3pclvuY1keTd/Pgl6ASPDya6blY59I8dND/B4Nw bhhODkq6ZkCuBOLcU+LrDd3o9JhxFY/0L0/hfA/7/vVb49sRFaTST46W+DwP8yY9Ny+Y FCZ1DtK2Jdj45oXdxTLAD6zl/JPAJ25vaR1WSWWyfDE4Ewvv91Fdrkmp2dDjlFAYr7IC LfbL1LK+sJOAylIpLUryDBQScuytOg8N48eKQR7dr8E4ij2bECNyGrQTJ3aXP6/LET9u Wnv+D26rKtvCE0YI2Pi2AvCf1OMV0scM5ZRdI1X9DBsKkEU7x5XJYz6U8/GYQLnbGYnX QT7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vbo4pKW3eCIThjMyIy6wsscOAdK3OJqwzPMbrwiTzTg=; b=XDU4bmmdTLklEmE10FvM0umj1JHwnN3D2mAR7n1sfQGqDezrAW2COnIXdsa/YSDbyf sMMs5LjnbirUDZ0e03HtRfrDbe6y0LcTHDnG5gjmMoldM3KJVh/KD4+2G0bMIwEoLEgx BWwxpIFfwYwBGed1FZ49DntTA9VU+FsrFx+BAa88u35nJ5U3KBFSTX78HooLy1ZD8koB K6dt1owfE13Kxn2TX5q4EUMVQtXUIWu/aWFnJt4qcAbIrwiL1+bEviwkQtyrP8lZzaID Vs7CE9Y3Tv+Z681IygmyRA5TV9etPRgIWAgSdtj97SsNJ4zmqHCDcqaJN4a018Raw+55 RUqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Srmr0fVO; 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 o10si258975ejd.653.2021.04.29.08.29.19; Thu, 29 Apr 2021 08:29:44 -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=Srmr0fVO; 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 S240603AbhD2P1j (ORCPT + 99 others); Thu, 29 Apr 2021 11:27:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232989AbhD2P1i (ORCPT ); Thu, 29 Apr 2021 11:27:38 -0400 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA58C06138B; Thu, 29 Apr 2021 08:26:50 -0700 (PDT) Received: by mail-ot1-x331.google.com with SMTP id n32-20020a9d1ea30000b02902a53d6ad4bdso6694298otn.3; Thu, 29 Apr 2021 08:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vbo4pKW3eCIThjMyIy6wsscOAdK3OJqwzPMbrwiTzTg=; b=Srmr0fVOgjkykvlE3qdpkc3N3K5sktCMj6v1OgxqDJL0bljoIWUSciurSzygMcC6+n Kvfe48eZrFMI4Vezxk+6d1SmAwUj3O8KStWxJ7C6QQj643wUL1pTlFt1cIl+3EPJlog8 Wjz7r5pur/St1BB4WjvL2c+1TRfSExFtimoriLOUN5bhVZxRQ7ceQ7l6u1U35bjVvgYO G+U3UQmd+zdqnS/9c59d2vTHPjnfybGBOMlKvgo2G6yt/3QwDjhtTZtb/DN7njCxMlfl Z+5BoYbOdcY8gHWg1rB52LVWnrX7HAjpecCdA5JJdAmydYP8GXTBu8hDuNRA/byDUNS0 rQAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vbo4pKW3eCIThjMyIy6wsscOAdK3OJqwzPMbrwiTzTg=; b=MGIyoT3NAD/pAQdjvHSrqqo1k4kH6MBdA1sEh9pRpd3fXo9qslVI9uoKtttwgAAXPW gJuxpJ/t4LTVXThMWAt4nNvCOi4JfezjRRPnOwVNAeGqZglDL4TtplRlp36hMoPm7ku5 wg0xcWyIhYjpSzzioz9V1TtYlfHJMhGQ9o8meJvOmW5sesvl6H4XVctFpnYjhIjtSTmp +2kQ/G/uqqZkhzxpXAmpeTtzivjqDC20nrrkSqVsbnCL/0t4CmSNA3OilzVYNgcO9uwJ xKahMtf4kZntTtMRpUOowEZ1su+ijRyxjtqkHGcJGVB7LqnXOTp0G9xMDNiMqnRRaUc4 3k2A== X-Gm-Message-State: AOAM533jIbvB3UAm8ogYkr3vxljxRfzFE0GB8aOdysfLHhxBL650XskD usUNe/HjR+3fSHsOgFK5GBZu0WIVsrIwz6aNLiQ= X-Received: by 2002:a9d:63d1:: with SMTP id e17mr1296573otl.311.1619710009654; Thu, 29 Apr 2021 08:26:49 -0700 (PDT) MIME-Version: 1.0 References: <20210427112738.15869-1-fmdefrancesco@gmail.com> In-Reply-To: From: Alex Deucher Date: Thu, 29 Apr 2021 11:26:38 -0400 Message-ID: Subject: Re: [PATCH v2] drm/amd/amdgpu: Fix errors in documentation of function parameters To: Felix Kuehling Cc: "Fabio M. De Francesco" , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Airlie , Daniel Vetter , Sumit Semwal , "open list:AMD KFD" , "open list:DRM DRIVERS" , open list , "open list:DMA BUFFER SHARING FRAMEWORK" , "moderated list:DMA BUFFER SHARING FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 2:44 AM Felix Kuehling wrote: > > On 2021-04-27 7:27, Fabio M. De Francesco wrote: > > In the documentation of functions, removed excess parameters, described > > undocumented ones, and fixed syntax errors. > > > > Signed-off-by: Fabio M. De Francesco > > --- > > > > Changes from v1: Cc'ed all the maintainers. > > Looks like Alex already applied V1. So this one doesn't apply. "git am > -3" tells me: Ah sorry, I didn't see the v2 patch. Alex > > Applying: drm/amd/amdgpu: Fix errors in documentation of function parameters > Using index info to reconstruct a base tree... > M drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > M drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c > M drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c > Falling back to patching base and 3-way merge... > No changes -- Patch already applied. > > Regards, > Felix > > > > > > drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 12 ++++++------ > > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c | 4 +++- > > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 8 ++++---- > > 3 files changed, 13 insertions(+), 11 deletions(-) > > > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > > index 2e9b16fb3fcd..bf2939b6eb43 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > > @@ -76,7 +76,7 @@ struct amdgpu_atif { > > /** > > * amdgpu_atif_call - call an ATIF method > > * > > - * @handle: acpi handle > > + * @atif: acpi handle > > * @function: the ATIF function to execute > > * @params: ATIF function params > > * > > @@ -166,7 +166,6 @@ static void amdgpu_atif_parse_functions(struct amdgpu_atif_functions *f, u32 mas > > /** > > * amdgpu_atif_verify_interface - verify ATIF > > * > > - * @handle: acpi handle > > * @atif: amdgpu atif struct > > * > > * Execute the ATIF_FUNCTION_VERIFY_INTERFACE ATIF function > > @@ -240,8 +239,7 @@ static acpi_handle amdgpu_atif_probe_handle(acpi_handle dhandle) > > /** > > * amdgpu_atif_get_notification_params - determine notify configuration > > * > > - * @handle: acpi handle > > - * @n: atif notification configuration struct > > + * @atif: acpi handle > > * > > * Execute the ATIF_FUNCTION_GET_SYSTEM_PARAMETERS ATIF function > > * to determine if a notifier is used and if so which one > > @@ -304,7 +302,7 @@ static int amdgpu_atif_get_notification_params(struct amdgpu_atif *atif) > > /** > > * amdgpu_atif_query_backlight_caps - get min and max backlight input signal > > * > > - * @handle: acpi handle > > + * @atif: acpi handle > > * > > * Execute the QUERY_BRIGHTNESS_TRANSFER_CHARACTERISTICS ATIF function > > * to determine the acceptable range of backlight values > > @@ -363,7 +361,7 @@ static int amdgpu_atif_query_backlight_caps(struct amdgpu_atif *atif) > > /** > > * amdgpu_atif_get_sbios_requests - get requested sbios event > > * > > - * @handle: acpi handle > > + * @atif: acpi handle > > * @req: atif sbios request struct > > * > > * Execute the ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS ATIF function > > @@ -899,6 +897,8 @@ void amdgpu_acpi_fini(struct amdgpu_device *adev) > > /** > > * amdgpu_acpi_is_s0ix_supported > > * > > + * @adev: amdgpu_device_pointer > > + * > > * returns true if supported, false if not. > > */ > > bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c > > index 5af464933976..98d31ebad9ce 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c > > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c > > @@ -111,6 +111,8 @@ static const char *amdkfd_fence_get_timeline_name(struct dma_fence *f) > > * a KFD BO and schedules a job to move the BO. > > * If fence is already signaled return true. > > * If fence is not signaled schedule a evict KFD process work item. > > + * > > + * @f: dma_fence > > */ > > static bool amdkfd_fence_enable_signaling(struct dma_fence *f) > > { > > @@ -131,7 +133,7 @@ static bool amdkfd_fence_enable_signaling(struct dma_fence *f) > > /** > > * amdkfd_fence_release - callback that fence can be freed > > * > > - * @fence: fence > > + * @f: dma_fence > > * > > * This function is called when the reference count becomes zero. > > * Drops the mm_struct reference and RCU schedules freeing up the fence. > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c > > index b43e68fc1378..ed3014fbb563 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c > > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c > > @@ -719,7 +719,7 @@ static void unlock_spi_csq_mutexes(struct amdgpu_device *adev) > > } > > > > /** > > - * @get_wave_count: Read device registers to get number of waves in flight for > > + * get_wave_count: Read device registers to get number of waves in flight for > > * a particular queue. The method also returns the VMID associated with the > > * queue. > > * > > @@ -755,19 +755,19 @@ static void get_wave_count(struct amdgpu_device *adev, int queue_idx, > > } > > > > /** > > - * @kgd_gfx_v9_get_cu_occupancy: Reads relevant registers associated with each > > + * kgd_gfx_v9_get_cu_occupancy: Reads relevant registers associated with each > > * shader engine and aggregates the number of waves that are in flight for the > > * process whose pasid is provided as a parameter. The process could have ZERO > > * or more queues running and submitting waves to compute units. > > * > > * @kgd: Handle of device from which to get number of waves in flight > > * @pasid: Identifies the process for which this query call is invoked > > - * @wave_cnt: Output parameter updated with number of waves in flight that > > + * @pasid_wave_cnt: Output parameter updated with number of waves in flight that > > * belong to process with given pasid > > * @max_waves_per_cu: Output parameter updated with maximum number of waves > > * possible per Compute Unit > > * > > - * @note: It's possible that the device has too many queues (oversubscription) > > + * Note: It's possible that the device has too many queues (oversubscription) > > * in which case a VMID could be remapped to a different PASID. This could lead > > * to an iaccurate wave count. Following is a high-level sequence: > > * Time T1: vmid = getVmid(); vmid is associated with Pasid P1 > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx