From patchwork Mon Feb 26 07:38:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharat Masetty X-Patchwork-Id: 10241339 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 4A47E605F3 for ; Mon, 26 Feb 2018 07:39:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2945A29352 for ; Mon, 26 Feb 2018 07:39:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E76E29307; Mon, 26 Feb 2018 07:39:20 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 D74DD2998A for ; Mon, 26 Feb 2018 07:39:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 84AC36E1DC; Mon, 26 Feb 2018 07:39:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8B5DA6E23E; Mon, 26 Feb 2018 07:39:16 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6BA7560BEB; Mon, 26 Feb 2018 07:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519630756; bh=E62RsKt/u0EHmb7sUj+vHIG3ZI9nIM3AsfySvHilPU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QNCN4Y/PbuaF6IlL91+6FGIjQqgr4DuS4zYIld0RmnvojkV8q4wocmQ76Sm7z64vB osaYkQDCemH6wqEXZpz4Xt6Fwx5OQmzsOZ57+9cNSjHN56ZLQ+VHfUSMyKiTEqJmxK 8JfXeue9RoC3x7KKyIrQqN9+eP8sgtuiG+QzV/hI= Received: from smasetty-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: smasetty@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6619960F8D; Mon, 26 Feb 2018 07:39:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519630755; bh=E62RsKt/u0EHmb7sUj+vHIG3ZI9nIM3AsfySvHilPU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cPQdrIlsktHTta5teJJrQNfWlPg7Fm7Lv27m5F1rdsYFzChissXzjF04QARGrJbs8 PjcgRsP6UixxRkOvhpKDNTGrp1LeSeGA37WA0xt8IbQsK/mqdWR8lEyl9qvSFzfTtj N4aSIBrbP3CdKJOpAFe+gXUn5WT5yUBdTDwdTRdI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6619960F8D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=smasetty@codeaurora.org From: Sharat Masetty To: freedreno@lists.freedesktop.org Subject: [PATCH 4/4] drm/msm/A6xx: Enable preemption for A6xx targets Date: Mon, 26 Feb 2018 13:08:23 +0530 Message-Id: <1519630703-2957-5-git-send-email-smasetty@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519630703-2957-1-git-send-email-smasetty@codeaurora.org> References: <1519630703-2957-1-git-send-email-smasetty@codeaurora.org> 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: linux-arm-msm@vger.kernel.org, Sharat Masetty , dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch simply increases the number of available ringbuffers, therefore enabling preemption. Signed-off-by: Sharat Masetty Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c index b1a80ec..e83b066 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c @@ -1040,7 +1040,7 @@ struct msm_gpu *a6xx_gpu_init(struct drm_device *dev) adreno_gpu->registers = a6xx_registers; adreno_gpu->reg_offsets = a6xx_register_offsets; - ret = adreno_gpu_init(dev, pdev, adreno_gpu, &funcs, 1); + ret = adreno_gpu_init(dev, pdev, adreno_gpu, &funcs, 4); if (ret) { a6xx_destroy(&(a6xx_gpu->base.base)); return ERR_PTR(ret);