From patchwork Tue Jul 31 10:37:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nayan Deshmukh X-Patchwork-Id: 10550613 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 31958139A for ; Tue, 31 Jul 2018 10:38:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F7CE2A8BE for ; Tue, 31 Jul 2018 10:38:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 131B72A8C5; Tue, 31 Jul 2018 10:38:04 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,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 C46DC2A8BE for ; Tue, 31 Jul 2018 10:38:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 321776E33D; Tue, 31 Jul 2018 10:38:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id 318C26E33D; Tue, 31 Jul 2018 10:38:00 +0000 (UTC) Received: by mail-pg1-x544.google.com with SMTP id p23-v6so8850277pgv.13; Tue, 31 Jul 2018 03:38:00 -0700 (PDT) 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; bh=0jWvoVOtq03om8uCEJlSREn4OK5dylYbDim0wouprLU=; b=nEtOIwgGPQEueDmq1D4JpJ8eUiMp7vbkq808W3Owx1kK1MgNCvUkZZuuYqdTAJCSoR qdlcunb+NxsiSGDuOHRsaZmG0u3kQS+HnGzuKpR0CvSCLVkjja+jGvpPLWoSPV/JtL+H xgdHUpE/oa5O3AHJzQOGUVmH40M+RebJiep3n2QqWe3elXy5AYj3eFIpO9guZIS1dr/A 0cKLWObpdLsdibCfw0XD1OHmdBKZncA5Ov1yyxcpzsz9KgP5WFioD9papRpSFjURnCfg gtDqf0c2zYV8uQW2YM3nfGJuiKIfBwH7k1wcqgolalWrpzjMXeAxOLKJOmfjdOUmA0S9 JNfg== X-Gm-Message-State: AOUpUlHixIY8eQfb3s17E/Xhv/sIwnOx/Jd0J6yJWo2R0COMNEtYdW06 8tFVSjJOpVxPvhb//mmsMSSCWkn/Dc8= X-Google-Smtp-Source: AAOMgpe/lOWwP+TqeyRUfzfagg7m92sfP0LQNf/dvs00clOUi/6RImmB7iuQhlcwUOl3/i+k075eIA== X-Received: by 2002:a62:f909:: with SMTP id o9-v6mr21781921pfh.141.1533033479604; Tue, 31 Jul 2018 03:37:59 -0700 (PDT) Received: from localhost.localdomain ([47.247.27.231]) by smtp.gmail.com with ESMTPSA id u13-v6sm23196084pfg.79.2018.07.31.03.37.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jul 2018 03:37:58 -0700 (PDT) From: Nayan Deshmukh To: dri-devel@lists.freedesktop.org Subject: [PATCH 0/4] drm/scheduler: add dynamic balancing Date: Tue, 31 Jul 2018 16:07:32 +0530 Message-Id: <20180731103736.7813-1-nayan26deshmukh@gmail.com> X-Mailer: git-send-email 2.14.3 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nayan Deshmukh , amd-gfx@lists.freedesktop.org, christian.koenig@amd.com MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is the my first attempt to include dynamic balancing as part of the scheduler. I have tried to handle the easy cases first to get the basic implementation running. Please share your thoughts!! *** BLURB HERE *** Nayan Deshmukh (4): drm/scheduler: add a list of run queues to the entity drm/scheduler: add counter for total jobs in scheduler drm/scheduler: add new function to get least loaded sched drm/scheduler: move idle entities to scheduler with less load drivers/gpu/drm/scheduler/gpu_scheduler.c | 62 ++++++++++++++++++++++++++++--- include/drm/gpu_scheduler.h | 9 ++++- 2 files changed, 65 insertions(+), 6 deletions(-)