diff options
author | Jorge Lopez <jorge.lopez2@hp.com> | 2022-03-10 15:08:53 -0600 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-03-15 10:49:37 +0100 |
commit | 4b4967cbd2685f313411e6facf915fb2ae01d796 (patch) | |
tree | 298862ed4cc67f04aaaef39b432f3ff525b03288 /drivers/platform/x86/intel/pmt/class.c | |
parent | be9d73e64957bbd31ee9a0d11adc0f720974c558 (diff) |
platform/x86: hp-wmi: Changing bios_args.data to be dynamically allocated
The purpose of this patch is to remove 128 bytes buffer limitation
imposed in bios_args structure.
A limiting factor discovered during this investigation was the struct
bios_args.data size restriction. The data member size limits all
possible WMI commands to those requiring buffer size of 128 bytes or
less. Several WMI commands and queries require a buffer size larger
than 128 bytes hence limiting current and feature supported by the
driver. It is for this reason, struct bios_args.data changed and is
dynamically allocated. hp_wmi_perform_query function changed to
handle the memory allocation and release of any required buffer size.
All changes were validated on a HP ZBook Workstation notebook,
HP EliteBook x360, and HP EliteBook 850 G8. Additional
validation was included in the test process to ensure no other
commands were incorrectly handled.
Signed-off-by: Jorge Lopez <jorge.lopez2@hp.com>
Link: https://lore.kernel.org/r/20220310210853.28367-5-jorge.lopez2@hp.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions