platform/x86/intel/sdsi: Add in-band BIOS lock support
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Thu, 11 Apr 2024 02:58:50 +0000 (19:58 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 15 Apr 2024 14:05:59 +0000 (16:05 +0200)
commitd9a4b2aaec4c6f6c9ba1a956d0cf118e439e941c
tree1f4e29780dd63aae5d9447adaa6de92839005628
parent688ee9b9ec6cbf238aa3874e742221279b5e7667
platform/x86/intel/sdsi: Add in-band BIOS lock support

As per SDSi in-band interface specification, sec titled "BIOS lock for
in-band provisioning", when IB_LOCK bit is set in control qword, the
SDSI agent is only allowed to perform the read flow, but not allowed to
provision license blob or license key. So add check for it in
sdsi_provision().

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240411025856.2782476-4-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/sdsi.c