Print this page
8902 Panic with debug kernel on AMD Ryzen hardware

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/io/amd_iommu/amd_iommu_acpi.h
          +++ new/usr/src/uts/i86pc/io/amd_iommu/amd_iommu_acpi.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
       22 + * Copyright 2017 Gary Mills
  22   23   * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  23   24   */
  24   25  
  25   26  #ifndef _AMD_IOMMU_ACPI_H
  26   27  #define _AMD_IOMMU_ACPI_H
  27   28  
  28   29  #ifdef __cplusplus
  29   30  extern "C" {
  30   31  #endif
  31   32  
↓ open down ↓ 1 lines elided ↑ open up ↑
  33   34  #include <sys/acpi/acpi.h>
  34   35  #include <sys/acpica.h>
  35   36  #include <sys/amd_iommu.h>
  36   37  #include "amd_iommu_impl.h"
  37   38  
  38   39  #ifdef _KERNEL
  39   40  
  40   41  #define IVRS_SIG        "IVRS"
  41   42  
  42   43  /*
  43      - * IVINFO settings
       44 + * IVINFO bit fields
       45 + * Documented at: http://support.amd.com/TechDocs/48882_IOMMU.pdf
  44   46   */
  45   47  #define AMD_IOMMU_ACPI_IVINFO_RSV1      (31 << 16 | 23)
  46   48  #define AMD_IOMMU_ACPI_HT_ATSRSV        (22 << 16 | 22)
  47   49  #define AMD_IOMMU_ACPI_VA_SIZE          (21 << 16 | 15)
  48   50  #define AMD_IOMMU_ACPI_PA_SIZE          (14 << 16 | 8)
  49      -#define AMD_IOMMU_ACPI_IVINFO_RSV2      (7 << 16 | 0)
       51 +#define AMD_IOMMU_ACPI_GVA_SIZE         (7 << 16 | 5)
       52 +#define AMD_IOMMU_ACPI_IVINFO_RSV2      (4 << 16 | 1)
       53 +#define AMD_IOMMU_ACPI_IVINFO_EFRSUP    (0 << 16 | 0)
  50   54  
  51   55  /*
  52   56   * IVHD Device entry len field
  53   57   */
  54   58  #define AMD_IOMMU_ACPI_DEVENTRY_LEN     (7 << 16 | 6)
  55   59  
  56   60  /*
  57   61   * IVHD flag fields definition
  58   62   */
  59   63  #define AMD_IOMMU_ACPI_IVHD_FLAGS_RSV           (7 << 16 | 5)
↓ open down ↓ 247 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX