From 230fe0ef2f2e565a1b67ffea946d77c3c24ac0d4 Mon Sep 17 00:00:00 2001 From: Bruce Griffith Date: Sun, 31 Aug 2014 22:40:57 -0600 Subject: AMD Steppe Eagle: Disable "No Snoop Enable" to stop HDMI audio stutter Ubuntu's HDMI audio has noise and echo. Disable NoSnoopEnable can resolve this issue. The posted amd_late_init.c northbridge code is missing a test for Steppe Eagle northbridges. See coreboot Gerrit change 3934, commit ID 4ca721399c (AMD Olive Hill: Disable NoSnoopEnable to fix HDMI audio corruptions with Ubuntu). Change-Id: I89894d0ce4ad72ea16d61b445edb9e67920bca24 Signed-off-by: Bruce Griffith Reviewed-on: http://review.coreboot.org/6822 Tested-by: build bot (Jenkins) Reviewed-by: WANG Siyuan Reviewed-by: Ronald G. Minnich --- src/cpu/amd/agesa/amd_late_init.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/cpu/amd/agesa/amd_late_init.c b/src/cpu/amd/agesa/amd_late_init.c index faba328eea..c7927dc7c1 100644 --- a/src/cpu/amd/agesa/amd_late_init.c +++ b/src/cpu/amd/agesa/amd_late_init.c @@ -20,8 +20,11 @@ #include #include #include +#include +#include +#include -#include "agesawrapper.h" +#include #include #if IS_ENABLED(CONFIG_HUDSON_IMC_FWM) @@ -31,6 +34,9 @@ #include #endif +#define NORTHBRIDGE_00700F00 IS_ENABLED(CONFIG_NORTHBRIDGE_AMD_AGESA_FAMILY_16KB) +#define NORTHBRIDGE_00730F01 IS_ENABLED(CONFIG_NORTHBRIDGE_AMD_AGESA_00730F01) + static void agesawrapper_post_device(void *unused) { if (acpi_is_wakeup_s3()) @@ -38,7 +44,7 @@ static void agesawrapper_post_device(void *unused) AGESAWRAPPER(amdinitlate); -#if IS_ENABLED(CONFIG_NORTHBRIDGE_AMD_AGESA_FAMILY_16KB) +#if (NORTHBRIDGE_00700F00) || (NORTHBRIDGE_00730F01) device_t dev; u32 value; dev = dev_find_slot(0, PCI_DEVFN(0, 0)); /* clear IoapicSbFeatureEn */ -- cgit v1.2.3