From patchwork Wed Jun 14 23:18:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 9787743 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 1856C602CB for ; Thu, 15 Jun 2017 00:58:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E2A1284DC for ; Thu, 15 Jun 2017 00:58:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01DAD284ED; Thu, 15 Jun 2017 00:58:39 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 A9DA5284DC for ; Thu, 15 Jun 2017 00:58:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1131D6E66C; Thu, 15 Jun 2017 00:57:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 33B356E637 for ; Wed, 14 Jun 2017 23:19:06 +0000 (UTC) Received: by mail-lf0-x243.google.com with SMTP id o28so1618507lfk.1 for ; Wed, 14 Jun 2017 16:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=G7ekh55jGMCR99aPYwRfZ89w/rAXGhCq52BmeL1g2HU=; b=lF787hA7Ch+9N8+0Ebu2Hdcsu5LPYvsAu2Ne6Bm0wweWRKikhZl74L/GvW8+QNsoBB Gh8vSJ0ddaZgKErv3CmypclQYt6GgtV9Vs9iCM6XNHH/kztHuDf6i3DoXu0gO2bARXqo XjIqq4mljPN/pH7be21ofyTZHtJQyZwjLC27jV024qPidjpV5pQjuFJfEYtbh2CYTW/w ByPl5RkdCDneGbEKkP0dB/en9nabtFad5j9/vPX7fxXNvBgcE239OrZ9AUbu+jtCRFQn sv56Bl+ox3mohMXEo5FuVcGl2N0tf6wjD4X9aC5lba4dbnnsoMNI18zl3QzqOxFLhloS 5UlA== 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:in-reply-to :references:in-reply-to:references; bh=G7ekh55jGMCR99aPYwRfZ89w/rAXGhCq52BmeL1g2HU=; b=WTXq1Nrqy7QXKcvGkgI0vEItuXbsj34w8NcuxmsA2qr5i8wN4RJ+qxJecNIPQu6PD5 EM5s1Uq+jTJaZ6+rqfs+QRDLbG4lESZ4AY7fzrFkpT0WG9dDF4/jw+Hy7VA9Sf79U4SP 4lB0TVXLeUVHwUoTXZRpHAkcZhJvRnoRxJmq2v9QhKzLyKwkfEk/D0nh/Tg+OrTivIGW tNIIOnLdgeYbbtNjB+NUDJ3r3QkfZ9psK/IN373vFGYG5zTDrfpFFBpPyMfwu+cpcmhS KqnICrldxbqErvDV3l32R9NzeHVqAGw6IX+Z3ehvx1UNLsXVxdQIkxTC6Wz4Tn7vz0+e +dIg== X-Gm-Message-State: AKS2vOwK74OqZLsmek2yunGv5XAe2E2aK8R7urDbDvHnIIAdiBbINYZI sJprVcKdNc5I7zs1TPg= X-Received: by 10.25.201.196 with SMTP id z187mr774835lff.62.1497482344686; Wed, 14 Jun 2017 16:19:04 -0700 (PDT) Received: from localhost.localdomain (ppp109-252-91-7.pppoe.spdop.ru. [109.252.91.7]) by smtp.gmail.com with ESMTPSA id i24sm290165ljb.63.2017.06.14.16.19.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 16:19:04 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Mikko Perttunen , Erik Faye-Lund Subject: [PATCH v3 09/20] gpu: host1x: Initialize firewall class to the jobs one Date: Thu, 15 Jun 2017 02:18:32 +0300 Message-Id: <4e2ff1a455f825f63579ad2fd146b075b0630012.1497480757.git.digetx@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: References: In-Reply-To: References: X-Mailman-Approved-At: Thu, 15 Jun 2017 00:57:20 +0000 Cc: linux-tegra@vger.kernel.org, DRI Development X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The commands stream is prepended by the jobs class on the CDMA submission, so that explicitly setting a module class in the commands stream isn't necessary. The firewall initializes its class to 0 and the command stream that doesn't explicitly specify the class effectively bypasses the firewall. Signed-off-by: Dmitry Osipenko Reviewed-by: Mikko Perttunen Reviewed-by: Erik Faye-Lund --- drivers/gpu/host1x/job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c index 5f5f8ee6143d..d9933828fe87 100644 --- a/drivers/gpu/host1x/job.c +++ b/drivers/gpu/host1x/job.c @@ -504,7 +504,7 @@ static inline int copy_gathers(struct host1x_job *job, struct device *dev) fw.dev = dev; fw.reloc = job->relocarray; fw.num_relocs = job->num_relocs; - fw.class = 0; + fw.class = job->class; for (i = 0; i < job->num_gathers; i++) { struct host1x_job_gather *g = &job->gathers[i];