From patchwork Wed Dec 7 11:29:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaoqian Lin X-Patchwork-Id: 30791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp133090wrr; Wed, 7 Dec 2022 03:54:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf64ft3UoHAQZ3ikAU9RSta9iKDeqZ9vp3snOPdOo1/9fAXNOborlNokgGfkwJ0rvggV+eut X-Received: by 2002:a17:90a:5581:b0:219:b015:58d5 with SMTP id c1-20020a17090a558100b00219b01558d5mr19982222pji.199.1670414098467; Wed, 07 Dec 2022 03:54:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670414098; cv=none; d=google.com; s=arc-20160816; b=JzdJcibUpB/pj+xePsVmXj+fpJ8zMrt4EvcDNsvFGXx3OTCiTANanQWGqwCCjKlkbp hOstihcf4Gi1d0ttb9blcJVYRXrexn6TNHtsNn+OTB+Y9TxHzmPqkk6R/T7xC/82c9cU w+2lW0lwOnOe+WHxCivqFmNlxKaM36QaN6m54f4Wzsah3jsbkGEuP/icXGXPC9mG3NVf 13r1of2iX9JeF9W/jq2fIeq988IyNRSaeMw9XkWZRdPsS0HADNiSJCiBP/PGyHhuUTxo ZD95jrfnScDC8BWf93JuVJ3/HAJg093D9eEg7faeAGNB59bTVlBh5SQy06O5bkb33u1I zZUA== 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=Xt0s6DqATufn0DNLjv/Y4V9qqe/cu6nc3D6m36jdz8E=; b=A7NNu7gi5vs3af/FdbOrZHudcYOawQXIh7hje77xptQgPopfdYr343Xqo8yd7zRYKN AnwFFsDUhNtcuhzlLPISk+2jfqUmRo1DBz/fLoEaVVlheMryY0WFvRC+kZr41SKgoGym xaqwIv8ANjdyOq2SqbkjcnmYmW2B8oYItxuyrCLOM5pteOmeWazs/LYQ0/FfT7Wzx87G DUmTQyTPVcT/AfBCAV6gmfV/5WJjHdLij4qLr+b//WpNPEUpY4ZV+QXuUptiA6Pdrgzp 5kR9bjll3eqZ57+FAFmNY1WRRMU5+vdVVaM0jK4UpbEdcCtEqSiOl1JpXRTHMtiNiLEt G4qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=crhz935D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k24-20020a63d858000000b0047071cc77f8si20403427pgj.803.2022.12.07.03.54.44; Wed, 07 Dec 2022 03:54:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=crhz935D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230003AbiLGL3Y (ORCPT + 99 others); Wed, 7 Dec 2022 06:29:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbiLGL3V (ORCPT ); Wed, 7 Dec 2022 06:29:21 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDB112E6BF for ; Wed, 7 Dec 2022 03:29:20 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id p24so16761770plw.1 for ; Wed, 07 Dec 2022 03:29:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Xt0s6DqATufn0DNLjv/Y4V9qqe/cu6nc3D6m36jdz8E=; b=crhz935DKX64Fr36S335EHU59RoazmPtGrt0qI7BOOSH1fCM5gIZyS2SJVdSAfEMZn qhRJwfUb/mhUoVszPDEUSZgu/FRX7M45GIrzgQSvZyDZb18DjRD+mI80hb5WJaFzTWeZ QdSZ5tmvS0X9Vf2fN4vkKKiZ1SmxNGsZRJy5zKkAR3Am52rr37KeEkYjj8wyJMDBraCl mvq76fS+bZXXPsLM3p7dYRhP1WbAbbJ1FnLoNAFGcSYcaoF2nt9aAnXK1xjZBfIFylSI 1r3K2GR6x0gwHRJRDO/vil6BECqyAycgw6Aok/SMwE3NnNhBvl+1j7QKULNKtT7E6zjD HEvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Xt0s6DqATufn0DNLjv/Y4V9qqe/cu6nc3D6m36jdz8E=; b=sy6F1G61qf/4+GG8fifJXhjUVthWFY4kHhoqW0tfoQEPyTUKy/ILzlmVVCLkWOuYoo Mu/bIQzMxF3UdKpY6y0curLlZV0QSrEbp6I+aJkNuJYNBFJO6i+l4JEIcvBkqK+WNr2B QeO1tW4OCEbAtlIGWrUtREI29w8OQtdz80ccADJee41sB2GoZ/Uh+A5wM5YzNtVbpsRk O+LS8EPX4elR4G+xBdjIaWR6Y7n12jAYkqhYo2MMAm0HwCL0Vf4ZG/eES1K9B0nv0BmT feh/sf4MOo66IWK/HMBQT3dUi+Br0lZFXVDrzuMSMYwDKTCkfFHX4+VQFtR5hpGdOEEc d5Gw== X-Gm-Message-State: ANoB5pknaPbRXqhA5mxRIngBJu6gcQRvcx8cpc5P8vBlpjhjvcNRIVQ3 bvAo37ZzsbBipoXH2anPwX56cCtQOeRYfPEF X-Received: by 2002:a17:90a:e648:b0:219:2567:dc1e with SMTP id ep8-20020a17090ae64800b002192567dc1emr54697020pjb.237.1670412560302; Wed, 07 Dec 2022 03:29:20 -0800 (PST) Received: from localhost.localdomain ([202.120.234.246]) by smtp.googlemail.com with ESMTPSA id i15-20020a63130f000000b00478eb777d18sm1372807pgl.72.2022.12.07.03.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 03:29:19 -0800 (PST) From: Miaoqian Lin To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Chris Wilson , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: linmq006@gmail.com Subject: [PATCH] drm/i915: Fix documentation for intel_uncore_forcewake_put__locked Date: Wed, 7 Dec 2022 15:29:09 +0400 Message-Id: <20221207112909.2655251-1-linmq006@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751556133808018204?= X-GMAIL-MSGID: =?utf-8?q?1751556133808018204?= intel_uncore_forcewake_put__locked() is used to release a reference. Fixes: a6111f7b6604 ("drm/i915: Reduce locking in execlist command submission") Signed-off-by: Miaoqian Lin Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_uncore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c index 5cd423c7b646..acb40543eb32 100644 --- a/drivers/gpu/drm/i915/intel_uncore.c +++ b/drivers/gpu/drm/i915/intel_uncore.c @@ -819,9 +819,9 @@ void intel_uncore_forcewake_flush(struct intel_uncore *uncore, } /** - * intel_uncore_forcewake_put__locked - grab forcewake domain references + * intel_uncore_forcewake_put__locked - release forcewake domain references * @uncore: the intel_uncore structure - * @fw_domains: forcewake domains to get reference on + * @fw_domains: forcewake domains to put references * * See intel_uncore_forcewake_put(). This variant places the onus * on the caller to explicitly handle the dev_priv->uncore.lock spinlock.