mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: tushar.n.dave@oracle.com
Cc: chris.hyser@oracle.com, sowmini.varadhan@oracle.com,
	vgupta@synopsys.com, robin.murphy@arm.com, jroedel@suse.de,
	egtvedt@samfundet.no, krzk@kernel.org, rkuo@codeaurora.org,
	sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/6] sparc64: Add FORCE_MAX_ZONEORDER and default to 13
Date: Mon, 24 Oct 2016 14:32:49 -0400 (EDT)	[thread overview]
Message-ID: <20161024.143249.602890744080296174.davem@davemloft.net> (raw)
In-Reply-To: <149c73af-f3a5-2704-ba73-5e2fbbb4749e@oracle.com>

From: tndave <tushar.n.dave@oracle.com>
Date: Mon, 24 Oct 2016 11:31:14 -0700

> 
> 
> On 10/24/2016 10:45 AM, David Miller wrote:
>> From: Tushar Dave <tushar.n.dave@oracle.com>
>> Date: Mon, 10 Oct 2016 11:12:02 -0700
>>
>>> From: Dave Kleikamp <dave.kleikamp@oracle.com>
>>>
>>> This change allows ATU (new IOMMU) in SPARC systems to request
>>> large (32M) contiguous memory during boot for creating IOTSB backing
>>> store.
>>>
>>> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
>>> Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
>>
>> If you need 32MB allocations, wouldn't a max zone order of 12 be
>> sufficient?  (8K << 12 == 32MB)
> Yes, but config FORCE_MAX_ZONEORDER is actually maximum order plus
> one.
> For example, a value of 13 means that the largest free memory block is
> 2^12 pages. For 32MB we need 2^12 8K pages, hence FORCE_MAX_ZONEORDER
> must be MAX_ORDER + 1 i.e. 13.

Ok, thanks for explaining.

  reply	other threads:[~2016-10-24 18:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10 18:12 [PATCH 0/6] sparc: Enable sun4v hypervisor PCI IOMMU v2 APIs and ATU Tushar Dave
2016-10-10 18:12 ` [PATCH 1/6] sparc64: Add FORCE_MAX_ZONEORDER and default to 13 Tushar Dave
2016-10-24 17:45   ` David Miller
2016-10-24 18:31     ` tndave
2016-10-24 18:32       ` David Miller [this message]
2016-10-10 18:12 ` [PATCH 2/6] sparc64: Add ATU (new IOMMU) support Tushar Dave
2016-10-24 17:46   ` David Miller
2016-10-24 20:40     ` tndave
2016-10-10 18:12 ` [PATCH 3/6] sparc64: Initialize iommu_map_table and iommu_pool Tushar Dave
2016-10-24 17:47   ` David Miller
2016-10-24 20:36     ` tndave
2016-10-10 18:12 ` [PATCH 4/6] sparc64: Bind PCIe devices to use IOMMU v2 service Tushar Dave
2016-10-10 18:12 ` [PATCH 5/6] sparc64: Enable sun4v dma ops to use IOMMU v2 APIs Tushar Dave
2016-10-10 18:12 ` [PATCH 6/6] sparc64: Enable 64-bit DMA Tushar Dave

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=20161024.143249.602890744080296174.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=chris.hyser@oracle.com \
    --cc=egtvedt@samfundet.no \
    --cc=jroedel@suse.de \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rkuo@codeaurora.org \
    --cc=robin.murphy@arm.com \
    --cc=sowmini.varadhan@oracle.com \
    --cc=sparclinux@vger.kernel.org \
    --cc=tushar.n.dave@oracle.com \
    --cc=vgupta@synopsys.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®