From: Logan Gunthorpe <logang@deltatee.com>
To: Daniel Mentz <danielmentz@google.com>, sbates@raithlin.com
Cc: corbet@lwn.net,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Andrew Morton <akpm@linux-foundation.org>,
Will Deacon <will.deacon@arm.com>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] genalloc: Make the avail variable an atomic64_t
Date: Wed, 25 Oct 2017 12:11:07 -0600 [thread overview]
Message-ID: <cf8a0c3e-af64-addf-9065-72e75cc75eb2@deltatee.com> (raw)
In-Reply-To: <CAE2F3rC_faMNHV00JDkG62wzZjBj2za=pYX1oO8V97tjMTJ9Aw@mail.gmail.com>
On 25/10/17 11:55 AM, Daniel Mentz wrote:
> avail is defined as size_t (32 bit). Aren't you going to overflow that variable?
I think the point is to get support for 64-bit systems (ie. ARM64 and
x64. We're working with large PCI BARs and need some way to allocate
memory from them. You aren't likely to ever get >4GB chunks on 32-bit
systems but you certainly can on 64-bit systems.
Logan
next prev parent reply other threads:[~2017-10-25 18:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 15:32 sbates
2017-10-25 15:47 ` Logan Gunthorpe
2017-10-25 17:55 ` Daniel Mentz
2017-10-25 18:11 ` Logan Gunthorpe [this message]
2017-10-25 22:20 ` Stephen Bates
2017-10-26 0:47 ` Mathieu Desnoyers
2017-10-26 11:25 ` Stephen Bates
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=cf8a0c3e-af64-addf-9065-72e75cc75eb2@deltatee.com \
--to=logang@deltatee.com \
--cc=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=danielmentz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=sbates@raithlin.com \
--cc=will.deacon@arm.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
all inboxes | Powered by JetHome®