2023-10-04 19:13:58

by Jeff Johnson

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] tee: amdtee: use page_alloc_exact() for memory allocations

On 8/29/2023 1:19 PM, Devaraj Rangasamy wrote:> Use page_alloc_exact()
to get buffers, instead of
> get_free_pages(), so as to avoid wastage of memory.
> Currently get_free_pages() is allocating at next order,
> while page_alloc_exact() will free the unused pages.

s/page_alloc_exact()/alloc_pages_exact()/ everywhere including subject
to match the actual code change?


2023-10-23 14:02:45

by Devaraj Rangasamy

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] tee: amdtee: use page_alloc_exact() for memory allocations


On 10/5/2023 12:39 AM, Jeff Johnson wrote:
> On 8/29/2023 1:19 PM, Devaraj Rangasamy wrote:> Use page_alloc_exact()
> to get buffers, instead of
>> get_free_pages(), so as to avoid wastage of memory.
>> Currently get_free_pages() is allocating at next order,
>> while page_alloc_exact() will free the unused pages.
>
> s/page_alloc_exact()/alloc_pages_exact()/ everywhere including subject
> to match the actual code change?

Ack. Thanks for the catching this.

While I could send an updated patch taking care of this, we are working
on a rearchitected patch, due to a new requirement.

Kindly abandon this patch series, and we will be posting new support
soon to the community.