From patchwork Wed Oct 14 21:26:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 54968 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 7317820490 for ; Wed, 14 Oct 2015 21:26:55 +0000 (UTC) Received: by wijq8 with SMTP id q8sf784139wij.1 for ; Wed, 14 Oct 2015 14:26:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=nsllNzVYgvJbEt1uNvBS1fOLHqiWdQOHl6gKu/ElHx4=; b=BS9r/62FJ9Lx3SKAddMdRgoFmiANLLIiWH88Le8IUUNPUZ74esga2xBn3QbRJwOvQC E+fRKf3Lei8loguiI/xkqujGPEF0qqYoYHXjzdmcavIL966zUurtykTFfwZj61zfJ7tD wlsX0UEwweRHLGVSXVes51i/ebIF1AMkZq13l+jJe5Jblu39S/2ISEl+0McuqRkEo3eM vyWsfe+Skyz54O/zK4qV6/Z/C6yKmB2dmlgvTuoONTLiIrupcHx+IqPi3IhQMEB5zO0C q5bO/fsKnmhQWOzXrBpst0AyXbSYf5LzrfFg7BmB+mDKuZY+mZD8mr+e/WygN7xdMAiR wmPA== X-Gm-Message-State: ALoCoQk7godrDn2cFyJnFPk3YxbaCG+xfNfSeso3ocwkn6q9r5OxZwOGrxG7sEKvaz0Hzr36OoDM X-Received: by 10.194.192.71 with SMTP id he7mr1268889wjc.2.1444858014776; Wed, 14 Oct 2015 14:26:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.24.84 with SMTP id o81ls100805lfi.48.gmail; Wed, 14 Oct 2015 14:26:54 -0700 (PDT) X-Received: by 10.112.147.39 with SMTP id th7mr2704987lbb.82.1444858014636; Wed, 14 Oct 2015 14:26:54 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id er18si6865150lbc.143.2015.10.14.14.26.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 14:26:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbpp2 with SMTP id pp2so26640796lbb.0 for ; Wed, 14 Oct 2015 14:26:54 -0700 (PDT) X-Received: by 10.112.132.7 with SMTP id oq7mr2814656lbb.32.1444858014516; Wed, 14 Oct 2015 14:26:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp239281lbq; Wed, 14 Oct 2015 14:26:53 -0700 (PDT) X-Received: by 10.107.152.134 with SMTP id a128mr6582581ioe.164.1444858003486; Wed, 14 Oct 2015 14:26:43 -0700 (PDT) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com. [209.85.223.169]) by mx.google.com with ESMTPS id h65si8949978ioi.167.2015.10.14.14.26.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 14:26:43 -0700 (PDT) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 209.85.223.169 as permitted sender) client-ip=209.85.223.169; Received: by iofl186 with SMTP id l186so70219769iof.2 for ; Wed, 14 Oct 2015 14:26:43 -0700 (PDT) X-Received: by 10.107.14.196 with SMTP id 187mr7516604ioo.11.1444858003109; Wed, 14 Oct 2015 14:26:43 -0700 (PDT) Received: from fidelio.ahs3.com (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id d7sm4385194igl.1.2015.10.14.14.26.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 14:26:41 -0700 (PDT) From: Al Stone To: linux-acpi@vger.kernel.org Cc: linaro-acpi@lists.linaro.org, linaro-kernel@lists.linaro.org, patches@linaro.org, Al Stone Subject: [PATCH 4/4] ACPI: for bad_madt_entry(), the GIC ITS table is 20 bytes long, not 16 Date: Wed, 14 Oct 2015 15:26:25 -0600 Message-Id: <1444857985-28844-5-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1444857985-28844-1-git-send-email-al.stone@linaro.org> References: <1444857985-28844-1-git-send-email-al.stone@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: al.stone@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Correct a typo where bad_madt_entry() expected the MADT GIC ITS subtable to be 16 bytes long, but it is actually 20 bytes. This is a cut'n'paste error picked up from the spec and inadvertently replicated in code. Signed-off-by: Al Stone --- drivers/acpi/tables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index 790d4b0..1b7c13e 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c @@ -292,7 +292,7 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header) * GICD 0xc 24 24 24 * GICv2m MSI 0xd 24 24 * GICR 0xe 16 16 - * GIC ITS 0xf 16 + * GIC ITS 0xf 20 * * In the table, each length entry is what should be in the length * field of the subtable, and -- in general -- it should match the @@ -366,7 +366,7 @@ static struct acpi_madt_subtable_lengths spec_info[] = { .madt_version = 3, .num_types = 16, .lengths = { 8, 12, 10, 8, 6, 12, 16, SUBTABLE_VARIABLE, - 16, 16, 12, 80, 24, 24, 16, 16 } + 16, 16, 12, 80, 24, 24, 16, 20 } }, { /* terminator */ .major_version = 0,