From: "Terje Bergström" <tbergstrom@nvidia.com>
To: Erik Faye-Lund <kusmabite@gmail.com>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Cc: "thierry.reding@gmail.com" <thierry.reding@gmail.com>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] gpu: host1x: do not check previously handled gathers
Date: Thu, 30 Jan 2014 15:51:48 +0200 [thread overview]
Message-ID: <52EA58F4.8070601@nvidia.com> (raw)
In-Reply-To: <1389124986-32501-1-git-send-email-kusmabite@gmail.com>
On 07.01.2014 22:03, Erik Faye-Lund wrote:
> When patching gathers, we don't need to check against
> gathers with lower indices than the current one, as
> they are guaranteed to already have been handled.
>
> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
> ---
>
> Here's a trivial optimization I have been running with for a while.
>
> 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 de5ec33..e965805 100644
> --- a/drivers/gpu/host1x/job.c
> +++ b/drivers/gpu/host1x/job.c
> @@ -534,7 +534,7 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev)
>
> g->base = job->gather_addr_phys[i];
>
> - for (j = 0; j < job->num_gathers; j++)
> + for (j = i + 1; j < job->num_gathers; j++)
> if (job->gathers[j].bo == g->bo)
> job->gathers[j].handled = true;
>
Hi,
Thanks. This looks good logically, and I ran some tests that agree.
Acked-By: Terje Bergstrom <tbergstrom@nvidia.com>
Terje
next prev parent reply other threads:[~2014-01-30 13:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-07 20:03 [PATCH] gpu: host1x: do not check previously handled gathers Erik Faye-Lund
2014-01-23 17:31 ` Erik Faye-Lund
2014-01-30 13:51 ` Terje Bergström [this message]
2014-02-10 13:10 ` Thierry Reding
2014-02-12 10:18 ` Thierry Reding
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52EA58F4.8070601@nvidia.com \
--to=tbergstrom@nvidia.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kusmabite@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).