From: Robin Murphy <robin.murphy@arm.com>
To: Ganapatrao Kulkarni <gklkml16@gmail.com>
Cc: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>,
Joerg Roedel <joro@8bytes.org>,
iommu@lists.linux-foundation.org,
LKML <linux-kernel@vger.kernel.org>,
tomasz.nowicki@cavium.com, jnair@caviumnetworks.com,
Robert Richter <Robert.Richter@cavium.com>,
Vadim.Lomovtsev@cavium.com, Jan.Glauber@cavium.com
Subject: Re: [PATCH] iommu/iova: Update cached node pointer when current node fails to get any free IOVA
Date: Fri, 27 Jul 2018 17:18:54 +0100 [thread overview]
Message-ID: <642cefaf-9ce7-bf0f-e6b6-e2e520e2427b@arm.com> (raw)
In-Reply-To: <CAKTKpr5eERRzxDcH5cno5kDQ10XO9nHXbLTmk=ShEi8HK05fsg@mail.gmail.com>
On 27/07/18 13:56, Ganapatrao Kulkarni wrote:
[...]
>>> did you get any chance to look in to this issue?
>>> i am waiting for your suggestion/patch for this issue!
>>
>>
>> I got as far as [1], but I wasn't sure how much I liked it, since it still
>> seems a little invasive for such a specific case (plus I can't remember if
>> it's actually been debugged or not). I think in the end I started wondering
>> whether it's even worth bothering with the 32-bit optimisation for PCIe
>> devices - 4 extra bytes worth of TLP is surely a lot less significant than
>> every transaction taking up to 50% more bus cycles was for legacy PCI.
>
> how about tracking previous attempt to get 32bit range iova and avoid
> further attempts, if it was failed. Later Resume attempts once
> replenish happens.
> Created patch for the same [2]
Ooh, that's a much neater implementation of essentially the same concept
- now why couldn't I think of that? :)
Looks like it should be possible to make it entirely self-contained too,
since alloc_iova() is in a position to both test and update the flag
based on the limit_pfn passed in.
Robin.
>
> [2] https://github.com/gpkulkarni/linux/commit/e2343a3e1f55cdeb5694103dd354bcb881dc65c3
> note, the testing of this patch is in progress.
>
>>
>> Robin.
>>
>> [1]
>> http://www.linux-arm.org/git?p=linux-rm.git;a=commitdiff;h=a8e0e4af10ebebb3669750e05bf0028e5bd6afe8
>
> thanks
> Ganapat
>
next prev parent reply other threads:[~2018-07-27 16:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-19 17:12 Ganapatrao Kulkarni
2018-04-23 16:37 ` Robin Murphy
2018-04-23 17:41 ` Ganapatrao Kulkarni
2018-04-26 9:45 ` Ganapatrao Kulkarni
2018-05-21 1:15 ` Ganapatrao Kulkarni
2018-06-04 4:06 ` Ganapatrao Kulkarni
2018-07-12 7:45 ` Ganapatrao Kulkarni
2018-07-25 14:20 ` Robin Murphy
2018-07-27 12:56 ` Ganapatrao Kulkarni
2018-07-27 16:18 ` Robin Murphy [this message]
2018-07-30 7:10 ` Ganapatrao Kulkarni
2018-07-31 2:40 ` Ganapatrao Kulkarni
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=642cefaf-9ce7-bf0f-e6b6-e2e520e2427b@arm.com \
--to=robin.murphy@arm.com \
--cc=Jan.Glauber@cavium.com \
--cc=Robert.Richter@cavium.com \
--cc=Vadim.Lomovtsev@cavium.com \
--cc=ganapatrao.kulkarni@cavium.com \
--cc=gklkml16@gmail.com \
--cc=iommu@lists.linux-foundation.org \
--cc=jnair@caviumnetworks.com \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tomasz.nowicki@cavium.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
Powered by JetHome