From patchwork Thu Mar 8 06:06: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: 10266581 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 73FEC60594 for ; Thu, 8 Mar 2018 06:07:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65CEF2974B for ; Thu, 8 Mar 2018 06:07:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A8272974E; Thu, 8 Mar 2018 06:07:15 +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 04BE92974C for ; Thu, 8 Mar 2018 06:07:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DBB636E809; Thu, 8 Mar 2018 06:07:12 +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 D74966E7FB; Thu, 8 Mar 2018 06:07:08 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9940660848; Thu, 8 Mar 2018 06:07:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520489228; bh=E62RsKt/u0EHmb7sUj+vHIG3ZI9nIM3AsfySvHilPU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JQChyXP8GfDGNYQBoH4JWLMs2b/3jpQrtdKJwl1tyiydngyByjGZfCB/v2R5ZfjU1 0kRrk8a5Qiz+LGpY5FpaCnQLyAaMQs9kBAIAuuo0OgiWC11FEmP7Qn/uSYM4LRIDly Bnedu7F0+e7UclSKpjZjurr0nD2VjPoVfQdCXX90= 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 12996607EB; Thu, 8 Mar 2018 06:07:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520489226; bh=E62RsKt/u0EHmb7sUj+vHIG3ZI9nIM3AsfySvHilPU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CYs6PNfTb9TgmWzWqkSyNL455pMy3Wc5HHCm+dnlZrak1zJO0Gm7Y+bmWang22297 55Fn0Ak3j5Gfi7kjbbT7Nicn/pjfz0m1ZzWinvdHtS2E2tXSIIo978Z6zjISSc1rT2 9QpCoPy4+uyxoBOrKI+yxCuD+Tqe6Uz4dXUIDn9A= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 12996607EB 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/6] drm/msm/A6xx: Enable preemption for A6xx targets Date: Thu, 8 Mar 2018 11:36:23 +0530 Message-Id: <1520489185-21828-5-git-send-email-smasetty@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520489185-21828-1-git-send-email-smasetty@codeaurora.org> References: <1520489185-21828-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 --- 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);