From: Denys Vlasenko <dvlasenk@redhat.com>
To: "Christian König" <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] radeon: Deinline indirect register accessor functions
Date: Mon, 18 May 2015 20:50:09 +0200 [thread overview]
Message-ID: <555A3461.90000@redhat.com> (raw)
In-Reply-To: <555A2A1E.9000706@amd.com>
On 05/18/2015 08:06 PM, Christian König wrote:
> I'm actually surprised how often people come along with that. The last time we tried this it caused a noticeable performance drop.
>
> Basic problem is that this line:
>> + if ((reg < rdev->rmmio_size || reg < RADEON_MIN_MMIO_SIZE) && !always_indirect)
> optimizes away in most of the cases which reduces the call to a readl which is way faster than the spinlock path.
>
> So this is a NAK,
Fair enough.
I'm preparing a v2 where the fast branch of r100_mm_{r,w}reg() will stay inlined.
next prev parent reply other threads:[~2015-05-18 18:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 17:59 [PATCH] radeon: Deinline indirect register accessor functions Denys Vlasenko
2015-05-18 17:59 ` [PATCH] radeon: Shrink radeon_ring_write() Denys Vlasenko
2015-05-18 18:11 ` Christian König
2015-05-18 18:25 ` Denys Vlasenko
2015-05-18 19:01 ` Christian König
2015-05-18 18:06 ` [PATCH] radeon: Deinline indirect register accessor functions Christian König
2015-05-18 18:50 ` Denys Vlasenko [this message]
2015-05-18 19:04 ` Christian König
2015-05-18 19:22 ` Ilia Mirkin
2015-05-18 19:22 ` Ilia Mirkin
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=555A3461.90000@redhat.com \
--to=dvlasenk@redhat.com \
--cc=alexander.deucher@amd.com \
--cc=christian.koenig@amd.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.