Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1635704

Re: [PATCH v1] ACPI: Switch to use generic UUID API

From Joerg Roedel <joro@8bytes.org>
Newsgroups linux.kernel
Subject Re: [PATCH v1] ACPI: Switch to use generic UUID API
Date 2017-05-04 14:50 +0200
Message-ID <tDomK-3tZ-15@gated-at.bofh.it> (permalink)
References <tDlfd-1wD-59@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, May 04, 2017 at 12:21:51PM +0300, Andy Shevchenko wrote:
> diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
> index cbf7763d8091..420d51b286ad 100644
> --- a/drivers/iommu/dmar.c
> +++ b/drivers/iommu/dmar.c
> @@ -1808,10 +1808,9 @@ IOMMU_INIT_POST(detect_intel_iommu);
>   * for Directed-IO Architecture Specifiction, Rev 2.2, Section 8.8
>   * "Remapping Hardware Unit Hot Plug".
>   */
> -static u8 dmar_hp_uuid[] = {
> -	/* 0000 */    0xA6, 0xA3, 0xC1, 0xD8, 0x9B, 0xBE, 0x9B, 0x4C,
> -	/* 0008 */    0x91, 0xBF, 0xC3, 0xCB, 0x81, 0xFC, 0x5D, 0xAF
> -};
> +static uuid_le dmar_hp_uuid =
> +	UUID_LE(0xD8C1A3A6, 0xBE9B, 0x4C9B,
> +		0x91, 0xBF, 0xC3, 0xCB, 0x81, 0xFC, 0x5D, 0xAF);
>  
>  /*
>   * Currently there's only one revision and BIOS will not check the revision id,
> @@ -1824,7 +1823,7 @@ static u8 dmar_hp_uuid[] = {
>  
>  static inline bool dmar_detect_dsm(acpi_handle handle, int func)
>  {
> -	return acpi_check_dsm(handle, dmar_hp_uuid, DMAR_DSM_REV_ID, 1 << func);
> +	return acpi_check_dsm(handle, &dmar_hp_uuid, DMAR_DSM_REV_ID, 1 << func);
>  }
>  
>  static int dmar_walk_dsm_resource(acpi_handle handle, int func,
> @@ -1843,7 +1842,7 @@ static int dmar_walk_dsm_resource(acpi_handle handle, int func,
>  	if (!dmar_detect_dsm(handle, func))
>  		return 0;
>  
> -	obj = acpi_evaluate_dsm_typed(handle, dmar_hp_uuid, DMAR_DSM_REV_ID,
> +	obj = acpi_evaluate_dsm_typed(handle, &dmar_hp_uuid, DMAR_DSM_REV_ID,
>  				      func, NULL, ACPI_TYPE_BUFFER);
>  	if (!obj)
>  		return -ENODEV;

DMAR part is

	Acked-by: Joerg Roedel <jroedel@suse.de>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v1] ACPI: Switch to use generic UUID API Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-05-04 11:30 +0200
  Re: [PATCH v1] ACPI: Switch to use generic UUID API Jani Nikula <jani.nikula@linux.intel.com> - 2017-05-04 11:40 +0200
  Re: [PATCH v1] ACPI: Switch to use generic UUID API Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2017-05-04 14:20 +0200
  Re: [PATCH v1] ACPI: Switch to use generic UUID API Joerg Roedel <joro@8bytes.org> - 2017-05-04 14:50 +0200
  Re: [PATCH v1] ACPI: Switch to use generic UUID API Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-05-04 17:30 +0200
  Re: [Intel-gfx] [PATCH v1] ACPI: Switch to use generic UUID API kbuild test robot <lkp@intel.com> - 2017-05-05 08:10 +0200
  Re: [PATCH v1] ACPI: Switch to use generic UUID API Dan Williams <dan.j.williams@intel.com> - 2017-05-05 08:30 +0200
    Re: [PATCH v1] ACPI: Switch to use generic UUID API Amir Goldstein <amir73il@gmail.com> - 2017-05-05 09:10 +0200
      Re: [PATCH v1] ACPI: Switch to use generic UUID API Christoph Hellwig <hch@lst.de> - 2017-05-05 09:40 +0200
      Re: [PATCH v1] ACPI: Switch to use generic UUID API Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-05-05 11:30 +0200
        Re: [PATCH v1] ACPI: Switch to use generic UUID API Amir Goldstein <amir73il@gmail.com> - 2017-05-05 12:00 +0200
          Re: [PATCH v1] ACPI: Switch to use generic UUID API Christoph Hellwig <hch@lst.de> - 2017-05-05 12:00 +0200
            Re: [PATCH v1] ACPI: Switch to use generic UUID API Amir Goldstein <amir73il@gmail.com> - 2017-05-05 12:10 +0200
  Re: [PATCH v1] ACPI: Switch to use generic UUID API Felipe Balbi <balbi@kernel.org> - 2017-05-09 10:00 +0200
  Re: [PATCH v1] ACPI: Switch to use generic UUID API Mathias Nyman <mathias.nyman@linux.intel.com> - 2017-05-09 10:30 +0200
  Re: [PATCH v1] ACPI: Switch to use generic UUID API Zhang Rui <rui.zhang@intel.com> - 2017-05-10 03:30 +0200

csiph-web