Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2020 22:26:12 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357669 - head/sys/dev/acpica
Message-ID:  <202002072226.017MQCnX025816@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Feb  7 22:26:11 2020
New Revision: 357669
URL: https://svnweb.freebsd.org/changeset/base/357669

Log:
  acpi_hpet: Add Hygon Dhyana support.
  
  Submitted by:	Pu Wen <puwen@hygon.cn>
  MFC after:	1 week
  Differential revision:	https://reviews.freebsd.org/D23555

Modified:
  head/sys/dev/acpica/acpi_hpet.c

Modified: head/sys/dev/acpica/acpi_hpet.c
==============================================================================
--- head/sys/dev/acpica/acpi_hpet.c	Fri Feb  7 22:21:44 2020	(r357668)
+++ head/sys/dev/acpica/acpi_hpet.c	Fri Feb  7 22:26:11 2020	(r357669)
@@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$");
 
 #define HPET_VENDID_AMD		0x4353
 #define HPET_VENDID_AMD2	0x1022
+#define HPET_VENDID_HYGON	0x1d94
 #define HPET_VENDID_INTEL	0x8086
 #define HPET_VENDID_NVIDIA	0x10de
 #define HPET_VENDID_SW		0x1166
@@ -606,7 +607,8 @@ hpet_attach(device_t dev)
 	 * properly, that makes it very unreliable - it freezes after any
 	 * interrupt loss. Avoid legacy IRQs for AMD.
 	 */
-	if (vendor == HPET_VENDID_AMD || vendor == HPET_VENDID_AMD2)
+	if (vendor == HPET_VENDID_AMD || vendor == HPET_VENDID_AMD2 ||
+	    vendor == HPET_VENDID_HYGON)
 		sc->allowed_irqs = 0x00000000;
 	/*
 	 * NVidia MCP5x chipsets have number of unexplained interrupt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002072226.017MQCnX025816>