[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <90b6e371-3cc2-ff0c-92fa-51fc9691c1f1@intel.com>
Date: Thu, 17 Nov 2022 14:44:37 -0800
From: "Joseph, Jithu" <jithu.joseph@...el.com>
To: Hans de Goede <hdegoede@...hat.com>, <markgross@...nel.org>
CC: <tglx@...utronix.de>, <mingo@...hat.com>, <bp@...en8.de>,
<dave.hansen@...ux.intel.com>, <x86@...nel.org>, <hpa@...or.com>,
<gregkh@...uxfoundation.org>, <ashok.raj@...el.com>,
<tony.luck@...el.com>, <linux-kernel@...r.kernel.org>,
<platform-driver-x86@...r.kernel.org>, <patches@...ts.linux.dev>,
<ravi.v.shankar@...el.com>, <thiago.macieira@...el.com>,
<athenas.jimenez.gonzalez@...el.com>, <sohil.mehta@...el.com>
Subject: Re: [PATCH v3 04/16] platform/x86/intel/ifs: Remove memory allocation
from load path
On 11/17/2022 1:13 PM, Hans de Goede wrote:
> Hi,
>
> On 11/17/22 20:59, Jithu Joseph wrote:
>> IFS requires tests to be authenticated once for each CPU socket
>> on a system.
>>
>> scan_chunks_sanity_check() was dynamically allocating memory
>> to store the state of whether tests have been authenticated on
>> each socket for every load operation.
>>
>> Move the memory allocation to init path and store the pointer
>> in ifs_data struct.
>>
>> Also rearrange the adjacent error checking in init for a
>> more simplified and natural flow.
>>
>> Reviewed-by: Tony Luck <tony.luck@...el.com>
>> Suggested-by: Borislav Petkov <bp@...en8.de>
>> Signed-off-by: Jithu Joseph <jithu.joseph@...el.com>
>> ---
>> - Replaced global pkg_auth pointer to struct ifs_data (Hans)
>> - Rearrange the adjacent error checking flow in ifs_init (Hans)
>> - With this change there are conflicts in patches 11 and 12 (I will
>> post the updated 11 and 12 if this is satisfactory)
>
> Thanks, this patch looks good to me now:
>
> Reviewed-by: Hans de Goede <hdegoede@...hat.com>
>
Thanks for the detailed review and suggestions.
I will now resend patches 11 and 12 which will apply ontop of this revised patch4 .
Jithu
Powered by blists - more mailing lists