From patchwork Fri Jun 23 14:01:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Szwichtenberg, Radoslaw" X-Patchwork-Id: 9806635 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C68036086C for ; Fri, 23 Jun 2017 14:01:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4FAA2877B for ; Fri, 23 Jun 2017 14:01:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9E9628789; Fri, 23 Jun 2017 14:01:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3D1AB2877B for ; Fri, 23 Jun 2017 14:01:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D8B3B6E0F4; Fri, 23 Jun 2017 14:01:11 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 62EC86E0F4 for ; Fri, 23 Jun 2017 14:01:10 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jun 2017 07:01:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.39,378,1493708400"; d="scan'208"; a="1163903962" Received: from rszwicht-desk.igk.intel.com ([172.28.171.52]) by fmsmga001.fm.intel.com with ESMTP; 23 Jun 2017 07:01:09 -0700 From: Radoslaw Szwichtenberg To: intel-gfx@lists.freedesktop.org Date: Fri, 23 Jun 2017 16:01:05 +0200 Message-Id: <20170623140105.25550-1-radoslaw.szwichtenberg@intel.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170623132122.24698-1-radoslaw.szwichtenberg@intel.com> References: <20170623132122.24698-1-radoslaw.szwichtenberg@intel.com> Subject: [Intel-gfx] [PATCH i-g-t v2] lib/ioctl_wrappers: Fix function descriptions X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Function description incorrectly stated that gem_context_get_param and gem_context_set_param were freeing hw context. v2: removed additional incorrect information Signed-off-by: Radoslaw Szwichtenberg Reviewed-by: Arkadiusz Hiler --- lib/ioctl_wrappers.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 0816a7b..8e5ec88 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -977,10 +977,8 @@ int __gem_context_get_param(int fd, struct local_i915_gem_context_param *p) * @fd: open i915 drm file descriptor * @p: i915 hw context parameter * - * This is a wraps the CONTEXT_GET_PARAM ioctl, which is used to free a hardware - * context. Not that similarly to gem_set_caching() this wrapper calls - * igt_require() internally to correctly skip on kernels and platforms where hw - * context parameter support is not available. + * This is a wraps the CONTEXT_GET_PARAM ioctl, which is used to get a context + * parameter. */ void gem_context_get_param(int fd, struct local_i915_gem_context_param *p) { @@ -1003,10 +1001,8 @@ int __gem_context_set_param(int fd, struct local_i915_gem_context_param *p) * @fd: open i915 drm file descriptor * @p: i915 hw context parameter * - * This is a wraps the CONTEXT_SET_PARAM ioctl, which is used to free a hardware - * context. Not that similarly to gem_set_caching() this wrapper calls - * igt_require() internally to correctly skip on kernels and platforms where hw - * context parameter support is not available. + * This is a wraps the CONTEXT_SET_PARAM ioctl, which is used to set a context + * parameter. */ void gem_context_set_param(int fd, struct local_i915_gem_context_param *p) {