From patchwork Thu Jan 16 15:53:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nirmoy Das X-Patchwork-Id: 11338515 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 51CEC921 for ; Fri, 17 Jan 2020 08:13:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 300592072B for ; Fri, 17 Jan 2020 08:13:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="t394Fjd2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 300592072B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28D316F412; Fri, 17 Jan 2020 08:13:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 933996EDA8 for ; Thu, 16 Jan 2020 15:52:35 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id c14so19659620wrn.7 for ; Thu, 16 Jan 2020 07:52:35 -0800 (PST) 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=RYd215MGwbtyx8TO2Lq76zx4YR7/TZxm4/f4N/JxQ0c=; b=t394Fjd2kjuuvhpFMwqR/RgxFbTF9QreSaGqWiH78GT8QaNhs/vYSTyiWL7hccPs/I JPCeyA5ulRHXenEggdBK88v26VMPSQJBTnopJpaXswX0u78ddKYZW9cuAvlpNf9adWgs wu41MDJ5//G+azoEcNa5Xp8i2LreQzAaS6Sbui0VqHTUQWN61w3HRX4vFsjVsUIGhm+x 3pbWjCbXhIdH4BJeHtXf2YPmte29UVLL1hpzqPeETyPSmh//fhsvpokiOsy/i2UF4x1m Lt4mW0JMWlIPIgGsGEwAXON8ebsHfGLF75qoXdbFwJfyVjK54NODO6QrxVwr0yGBsSmZ J7CA== 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=RYd215MGwbtyx8TO2Lq76zx4YR7/TZxm4/f4N/JxQ0c=; b=podTO25I9PaWCRKjOlofVhUuP4vep6YW6PzzeK8fXRr+c8oHwELVQX5Bf76tqduah8 1WsQPPVxbVCJxFp5Hfl58JtHPSWPKP6x9xLAmOUcYVz3D4fcqR9KlPxOmojXgnRcGUaI CgBAFUSaMaPxZEZGrfXq+NuMRUZ4H/ub5GTuKCyUo34O8cbrv5HPvTDrr9lCwYKc5Vty iIgFUA/tobKpL7PoEFsnt/CPsDar8uoohGrMBUuazEs2U3k5S/lk2xco6ExLaEudlaU8 3Gc2AMoyDrALFtsjfXlTGwcYPMfpR2k3tYDAbitxGHkwbQCXIoPAU6lWv3zqlocUyRsJ 8uLA== X-Gm-Message-State: APjAAAVsZ4GXeD/EG29CP0lrqVYiFWT2TRxhKZtimrT/P3TnSnrM1XHP O+jT86t531xpFW6b3Whpmka9y06rzx+CoHVf X-Google-Smtp-Source: APXvYqzWQ593sHsHdJgiszLle3IFAS2je86ZzySyALnwB6MlyXZUWrbJezVZgOfNi/kOphvTR6RCVA== X-Received: by 2002:adf:e58d:: with SMTP id l13mr3866253wrm.135.1579189953854; Thu, 16 Jan 2020 07:52:33 -0800 (PST) Received: from brihaspati.amd.com (p200300C58F2F9500BD0C32DA1D260485.dip0.t-ipconnect.de. [2003:c5:8f2f:9500:bd0c:32da:1d26:485]) by smtp.gmail.com with ESMTPSA id m7sm4705477wma.39.2020.01.16.07.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 07:52:32 -0800 (PST) From: Nirmoy Das X-Google-Original-From: Nirmoy Das To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/scheduler: fix documentation by replacing rq_list with sched_list Date: Thu, 16 Jan 2020 16:53:46 +0100 Message-Id: <20200116155346.7659-1-nirmoy.das@amd.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 17 Jan 2020 08:13:08 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nirmoy.das@amd.com, christian.koenig@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This also replaces old artifacts with a correct one in drm_sched_entity_init() declaration Signed-off-by: Nirmoy Das Reviewed-by: Christian König --- drivers/gpu/drm/scheduler/sched_entity.c | 2 +- include/drm/gpu_scheduler.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/scheduler/sched_entity.c b/drivers/gpu/drm/scheduler/sched_entity.c index 33e2cd1089a2..ec79e8e5ad3c 100644 --- a/drivers/gpu/drm/scheduler/sched_entity.c +++ b/drivers/gpu/drm/scheduler/sched_entity.c @@ -45,7 +45,7 @@ * @guilty: atomic_t set to 1 when a job on this queue * is found to be guilty causing a timeout * - * Note: the rq_list should have atleast one element to schedule + * Note: the sched_list should have atleast one element to schedule * the entity * * Returns 0 on success or a negative error code on failure. diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index 537f7a4655a5..9e71be129c30 100644 --- a/include/drm/gpu_scheduler.h +++ b/include/drm/gpu_scheduler.h @@ -52,9 +52,9 @@ enum drm_sched_priority { * @list: used to append this struct to the list of entities in the * runqueue. * @rq: runqueue on which this entity is currently scheduled. - * @rq_list: a list of run queues on which jobs from this entity can - * be scheduled - * @num_rq_list: number of run queues in the rq_list + * @sched_list: a list of drm_gpu_schedulers on which jobs from this entity can + * be scheduled + * @num_sched_list: number of drm_gpu_schedulers in the sched_list. * @rq_lock: lock to modify the runqueue to which this entity belongs. * @job_queue: the list of jobs of this entity. * @fence_seq: a linearly increasing seqno incremented with each @@ -81,8 +81,8 @@ enum drm_sched_priority { struct drm_sched_entity { struct list_head list; struct drm_sched_rq *rq; - unsigned int num_sched_list; struct drm_gpu_scheduler **sched_list; + unsigned int num_sched_list; enum drm_sched_priority priority; spinlock_t rq_lock; @@ -315,7 +315,7 @@ void drm_sched_rq_remove_entity(struct drm_sched_rq *rq, int drm_sched_entity_init(struct drm_sched_entity *entity, enum drm_sched_priority priority, struct drm_gpu_scheduler **sched_list, - unsigned int num_rq_list, + unsigned int num_sched_list, atomic_t *guilty); long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout); void drm_sched_entity_fini(struct drm_sched_entity *entity);