ACK: [focal:linux-azure, eoan:linux-azure, bionic:linux-azure-4.15][PATCH] UBUNTU: SAUCE: ubuntu/sgx: Add module alias for ACPI device INT0E0C

Ian May ian.may at canonical.com
Thu Jun 25 13:48:50 UTC 2020


LGTM

Acked-by: Ian May <ian.may at canonical.com>


On 6/25/20 8:13 AM, 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




More information about the kernel-team mailing list