From patchwork Tue May 23 00:14:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 765638 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wWwz42Fbsz9s2P for ; Tue, 23 May 2017 10:15:28 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="F1jo29CJ"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932782AbdEWAP1 (ORCPT ); Mon, 22 May 2017 20:15:27 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35538 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763320AbdEWAP1 (ORCPT ); Mon, 22 May 2017 20:15:27 -0400 Received: by mail-lf0-f66.google.com with SMTP id 99so6669563lfu.2 for ; Mon, 22 May 2017 17:15:26 -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=F1jo29CJZutGxJEUndb7Q+MJMLvdaM/HP9oQg+wE1E+OarwTI+6yKqbLObVSoxZXeR rWtVWBr8wKheYWiIDIEjdMdPN1KNTLN5TSFekD3Htkfn2BlZ8huqsDZmwt/eMEyOxCtV RA8+xpdF4RVTNAtShV9cVw/Cx/T8uoyZO1L7QWf8ERKz3gGA7chNeNJbyLFlRAMFCL/t 58azIRXWLeaA+wD6zDk/12zNa25XStDbJ1ecUxIMG0AMMdSoVkWkjixnjhmw+q63CL6E i0WmHltPIvEfAVdhnDDps9Gn1j+nyU0BNOt15QoGBSnkqOo2I8Jd6203Ojhv7pfn6CEc RIRw== 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=Cfpq35LZlfg/4KwUhk1UyLinkA5trsxdlbj1WvYplSrKU3QVKvhthIBoytUBQipy11 X7WIYoxyZTW+lEowEV44+rdPcOhqZiKFD2er1N6lSBeiHuAvsgz3+g4OR9gWUdnVabST At2TlKUKF3MHN2r8tdJNPQXi17WC2ngNuhSYNesszcwPR65rOhXqoQzcrTqHgACaHUzu jydfalbZoj3kItod91kiGiZCDIgvbqZbEZG6yO6/LilZCVZOpVQzJYu2DbWXuCXTJFWP wxpzxEv/raXaJDm763/uV2PDuCd220bmfvRZ1F8UlwUIOSLeGZAUxZoCDvboesfxEOds UjrA== X-Gm-Message-State: AODbwcC6yvf/vnewZN/NbAYWNQ/i9ikeGrq2YhzoNIL6RZdFxxHTRv7y lImpHvnxff9m4Q== X-Received: by 10.25.24.94 with SMTP id o91mr7483927lfi.143.1495498525672; Mon, 22 May 2017 17:15:25 -0700 (PDT) Received: from localhost.localdomain (ppp109-252-91-175.pppoe.spdop.ru. [109.252.91.175]) by smtp.gmail.com with ESMTPSA id v30sm3440904ljd.9.2017.05.22.17.15.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 17:15:24 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Mikko Perttunen Cc: linux-tegra@vger.kernel.org, DRI Development , Erik Faye-Lund Subject: [PATCH 11/22] gpu: host1x: Initialize firewall class to the jobs one Date: Tue, 23 May 2017 03:14:26 +0300 Message-Id: <5d5419a312a018503b055c71376499d12321191d.1495498184.git.digetx@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org 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 --- 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];