APPLIED: [focal:linux-azure, eoan:linux-azure, bionic:linux-azure-4.15][PATCH] UBUNTU: SAUCE: ubuntu/sgx: Add module alias for ACPI device INT0E0C
Khaled Elmously
khalid.elmously at canonical.com
Wed Jul 1 03:46:43 UTC 2020
On 2020-06-25 10:13:41 , Marcelo Henrique Cerri wrote:
> BugLink: https://bugs.launchpad.net/bugs/1881338
>
> Based on version LD_1.22 and:
>
> https://github.com/intel/SGXDataCenterAttestationPrimitives/pull/115/commits/8390589ed10ac2ec431d6d607a5ac71d10bc9c72
>
> The INT0E0C device denotes SGX support in the DSDT ACPI table. Add
> this as an alias to the SGX driver. This allows the module to be
> auto-probed when the module is build with the kernel (rather than
> DKMS) and the entry is present in the machine's DSDT.
>
> Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
> ---
> ubuntu/sgx/driver.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/ubuntu/sgx/driver.c b/ubuntu/sgx/driver.c
> index 379eb636fd8b..bcca5a676eca 100644
> --- a/ubuntu/sgx/driver.c
> +++ b/ubuntu/sgx/driver.c
> @@ -221,3 +221,11 @@ int __exit sgx_drv_exit(void)
>
> return 0;
> }
> +
> +#ifdef CONFIG_ACPI
> +static struct acpi_device_id sgx_device_ids[] = {
> + {"INT0E0C", 0},
> + {"", 0},
> +};
> +MODULE_DEVICE_TABLE(acpi, sgx_device_ids);
> +#endif
> --
> 2.25.1
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list