From patchwork Tue Jun 13 23:15:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 9785093 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 0990460384 for ; Wed, 14 Jun 2017 00:43:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F04B428567 for ; Wed, 14 Jun 2017 00:43:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3B6728573; Wed, 14 Jun 2017 00:43:08 +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 7FA9028567 for ; Wed, 14 Jun 2017 00:43:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 605066E3EB; Wed, 14 Jun 2017 00:41:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com [IPv6:2a00:1450:4010:c07::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9BD966E3D2 for ; Tue, 13 Jun 2017 23:38:55 +0000 (UTC) Received: by mail-lf0-x242.google.com with SMTP id o28so14872931lfk.1 for ; Tue, 13 Jun 2017 16:38:55 -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=Z173KS7gqI545UoAudVKdjynQAamwuu22FDxML6ZHuM=; b=SsEGCGoaL3EOOjpqex520AWySiu43VexS/oMzfXc0W2jSTCh1jLqOeMNMKYqjG/ZYG Ov8cnLi9WwBYQoWcO4PBoYpzKJBjniLL90gZJU7P5lCekI+hnAx6kTI2k2b1L4Qofni1 eNnBOKcZTpRR9M4I5+gwsFUg/hTDx1wmEwB4SOV0rQ0Ftb2MQhzgNN5EmnBCugLM0UOC vjMswgO8orVgECH3PoV7be0kZNALiPzFGBkxmoJaoVQWMVcT4xei4+I6L8VAsyiendKy n/dMJVQn78/rY5ANAzeZjm0VrlKgWFYvtxL9dPmiZ2Wc35Oxe6OY+18x31LbWedN1+M/ EszA== 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=Z173KS7gqI545UoAudVKdjynQAamwuu22FDxML6ZHuM=; b=C/T4lhWPONSUpYOMru5PHigrCJDC5R9CMfIRXXGFpihp0h+U+mUOp69uwTPoKL1jzG lG+yuhR7XrOn7xbkQ4tsY0+TVp+2tOyLGta48dKtCsz7bo8fC1/iLQLme2v3ac1T8haF 2yfCfBGZ16w6ICIAZCC+d27UCoyLoUBvaJzJgkS7DtqovbGupHneyA/FW/HG0Fclyr2I 0RaW8+kgm/EvJa2ia9eZdNjW5id+q9G9L20BAfsTuizU4LY0dM4gs0Dfmus7mv11mpgi WY+JDzS1OKtujUJs6W1pROsthq/1oIUKhxhhMf6ZzPGKB9sjOY1gLapVRgYBqoRYAx3Y N4Zw== X-Gm-Message-State: AKS2vOx0KnCH/WdHX21srUT2nKC3hV7B2GrArsCrc85ULsvuJhXLPA/8 jLy/a+Xh1AYnxQ== X-Received: by 10.46.92.137 with SMTP id q131mr726896ljb.124.1497397134121; Tue, 13 Jun 2017 16:38:54 -0700 (PDT) Received: from localhost.localdomain (ppp109-252-91-7.pppoe.spdop.ru. [109.252.91.7]) by smtp.gmail.com with ESMTPSA id f27sm3785725lfa.27.2017.06.13.16.38.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jun 2017 16:38:53 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Mikko Perttunen , Erik Faye-Lund Subject: [PATCH v2 11/22] gpu: host1x: Initialize firewall class to the jobs one Date: Wed, 14 Jun 2017 02:15:50 +0300 Message-Id: <8c0a2417584ce51b716f2c286027bcb18fceda56.1497394243.git.digetx@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: References: In-Reply-To: References: X-Mailman-Approved-At: Wed, 14 Jun 2017 00:41:00 +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];