From patchwork Wed Apr 11 23:50:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 151946 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 201ABB705C for ; Thu, 12 Apr 2012 09:52:37 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SI7L1-0001zn-Pe for incoming@patchwork.ozlabs.org; Wed, 11 Apr 2012 23:52:35 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SI7KJ-0001xO-2O for fwts-devel@lists.ubuntu.com; Wed, 11 Apr 2012 23:51:51 +0000 Received: from cpc19-craw6-2-0-cust5.croy.cable.virginmedia.com ([77.102.228.6] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SI7KI-00051g-Uh for fwts-devel@lists.ubuntu.com; Wed, 11 Apr 2012 23:51:51 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 10/11] acpica: force infinite loops and OS delays to complete faster since timing is not relevant Date: Thu, 12 Apr 2012 00:50:55 +0100 Message-Id: <1334188256-26566-11-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1334188256-26566-1-git-send-email-colin.king@canonical.com> References: <1334188256-26566-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- src/acpica/Makefile.am | 22 ++++++++++++++-------- src/acpica/fwts_acpica.c | 4 ++++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/acpica/Makefile.am b/src/acpica/Makefile.am index 9da918a..6a7b4b5 100644 --- a/src/acpica/Makefile.am +++ b/src/acpica/Makefile.am @@ -21,15 +21,21 @@ osunixxf_munged.c: $(ACPICA_OSL)/osunixxf.c sed 's/^AcpiOsSignalSemaphore/__AcpiOsSignalSemaphore/' | \ sed 's/^AcpiOsWaitSemaphore/__AcpiOsWaitSemaphore/' | \ sed 's/^AcpiOsVprintf/__AcpiOsVprintf/' | \ - sed 's/^AcpiOsSignal/__AcpiOsSignal/' \ + sed 's/^AcpiOsSignal/__AcpiOsSignal/' | \ + sed 's/^AcpiOsSleep/__AcpiOsSleep/' \ > osunixxf_munged.c -dsopcode_munged.c: $(ACPICA_COMP)/dispatcher/dsopcode.c - cat $(ACPICA_COMP)/dispatcher/dsopcode.c | \ - sed 's/ACPI_MAX_LOOP_ITERATIONS/0x0400/' \ - > dsopcode_munged.c +# +# Force maximum loop iterations to be just 128 instead of 0xffff +# because we really don't want to wait until the sun turns into +# a lump of coal before we complete a blocked operation +# +dscontrol_munged.c: $(ACPICA_COMP)/dispatcher/dscontrol.c + cat $(ACPICA_COMP)/dispatcher/dscontrol.c | \ + sed 's/ACPI_MAX_LOOP_ITERATIONS/0x0080/' \ + > dscontrol_munged.c -BUILT_SOURCES = osunixxf_munged.c dsopcode_munged.c +BUILT_SOURCES = osunixxf_munged.c dscontrol_munged.c CLEANFILES = osunixxf_munged.c @@ -38,7 +44,7 @@ libfwtsacpica_la_LDFLAGS = -lpthread -version-info 1:0:0 libfwtsacpica_la_SOURCES = \ fwts_acpica.c \ osunixxf_munged.c \ - dsopcode_munged.c \ + dscontrol_munged.c \ $(ACPICA_COMP)/debugger/dbcmds.c \ $(ACPICA_COMP)/debugger/dbdisply.c \ $(ACPICA_COMP)/debugger/dbexec.c \ @@ -70,9 +76,9 @@ libfwtsacpica_la_SOURCES = \ $(ACPICA_COMP)/dispatcher/dswload.c \ $(ACPICA_COMP)/dispatcher/dswscope.c \ $(ACPICA_COMP)/dispatcher/dswstate.c \ - $(ACPICA_COMP)/dispatcher/dscontrol.c \ $(ACPICA_COMP)/dispatcher/dsargs.c \ $(ACPICA_COMP)/dispatcher/dswload2.c \ + $(ACPICA_COMP)/dispatcher/dsopcode.c \ $(ACPICA_COMP)/events/evevent.c \ $(ACPICA_COMP)/events/evgpe.c \ $(ACPICA_COMP)/events/evgpeblk.c \ diff --git a/src/acpica/fwts_acpica.c b/src/acpica/fwts_acpica.c index 7d851e9..3dc5ced 100644 --- a/src/acpica/fwts_acpica.c +++ b/src/acpica/fwts_acpica.c @@ -608,6 +608,10 @@ ACPI_STATUS AcpiOsSignal(UINT32 function, void *info) return AE_OK; } +void AcpiOsSleep(UINT64 milliseconds) +{ +} + int fwtsInstallLateHandlers(fwts_framework *fw) { int i;