From: "Pali Rohár" <pali@kernel.org>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Rob Herring <robh+dt@kernel.org>,
Marek Behun <marek.behun@nic.cz>,
Gregory Clement <gregory.clement@bootlin.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
devicetree@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
PCI <linux-pci@vger.kernel.org>
Subject: Re: [PATCH] arm64: dts: marvell: armada-37xx: Set linux,pci-domain to zero
Date: Sat, 17 Apr 2021 21:42:41 +0200 [thread overview]
Message-ID: <20210417194241.zobxpau3ejwzhzbj@pali> (raw)
In-Reply-To: <YHr8ikD+zoT2/K3W@lunn.ch>
On Saturday 17 April 2021 17:19:38 Andrew Lunn wrote:
> > Currently this code is implemented in pci_bus_find_domain_nr() function.
> > IIRC domain number is 16bit integer, so plain bitmap would consume 8 kB
> > of memory. I'm not sure if it is fine or some other tree-based structure
> > for allocated domain numbers is needed.
>
> Hi Pali
>
> Have a look at lib/idr.c
>
> Andrew
Great! So number allocation is already implemented in kernel (via radix trees).
next prev parent reply other threads:[~2021-04-17 19:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-12 12:39 [PATCH] arm64: dts: marvell: armada-37xx: Set linux,pci-domain to zero Pali Rohár
2021-04-13 18:17 ` Rob Herring
2021-04-15 8:36 ` Pali Rohár
2021-04-15 8:45 ` Marek Behun
2021-04-15 15:13 ` Rob Herring
2021-04-17 14:49 ` Pali Rohár
2021-04-17 15:19 ` Andrew Lunn
2021-04-17 19:42 ` Pali Rohár [this message]
2021-04-23 15:33 ` Rob Herring
2021-04-25 15:21 ` Pali Rohár
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=20210417194241.zobxpau3ejwzhzbj@pali \
--to=pali@kernel.org \
--cc=andrew@lunn.ch \
--cc=devicetree@vger.kernel.org \
--cc=gregory.clement@bootlin.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=marek.behun@nic.cz \
--cc=robh+dt@kernel.org \
--cc=sebastian.hesselbarth@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).