Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3098812imm; Thu, 17 May 2018 03:25:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMjZVikm8eQOgSS2m5ya+dldCx5Kd4iDgjIjiW1G2hTx+J10bHpLahcV3PlcB+u+0hO39s X-Received: by 2002:a17:902:3181:: with SMTP id x1-v6mr4725823plb.198.1526552722269; Thu, 17 May 2018 03:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526552722; cv=none; d=google.com; s=arc-20160816; b=H5mxgtL6LfyulGWFrxyRv9YXZcGg1uCgwYcSn9A3PgIm7YJ3rCSNRuIiLmBCtDzpvA 6nho+dmVRLN0q/rQPmK7LnnTIH0tbx36bfDusH3oJXJhVigxJ9dD+X2UKd3dd3MZtS1Y /AlWGxA1/+o5NZvKhieSWQkdYF/jwiIMFerkj4POJWJkUbI3rXMyGsYiVVF/JmxPhGp2 VeFyxaIE0tgnO4BApcIsTVSGOa21sA1tpJIOec73KsWF1qLyPWVwC3SJJOXBaffS+f7L q71r14VXWjClWhVuBT2cyY0bCw45C5N7iH0NQYeJ1kF9C+fH45Yh6lyZrMC45BqUrC5h 7yTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=0hF7d39ypwjwVDbihHvSmz+ka9LWG+wkTmC7tmmmY+4=; b=0PDxd96A/3MzFBL4O1izp1JAWYhWBaDDQdHOA3TaUDwGWsQdTbZeO1M7W8fMIGodgH tMwAbDlogQlUaTyq5ySmYUcjgIZp25oyPW6s5kvbOoK7iWoNphjnQZbVFLKZrj7Okuce /KlrFDPfRPJMak6PxyeQvRDZcRFbp7HPPe9Ke5Qwfsf0lfR2cp+KfVl7yHGuqYu15tTg Bgo0/bbjIDjjKGc0NDJig2sN2jG37xjGyYI8ZOniPVTyQpMn6hHebNuvT3dETFi+W6t7 GzTngjOD6fWDxZj1kHuJgQLcxH4rAWvCw17YkrCPCUHFxVhx+g7utCDlPFi0WBnJdRR9 AZCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Xu+6KhfF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si4933101pln.445.2018.05.17.03.25.07; Thu, 17 May 2018 03:25:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Xu+6KhfF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752024AbeEQKYs (ORCPT + 99 others); Thu, 17 May 2018 06:24:48 -0400 Received: from mail-oi0-f47.google.com ([209.85.218.47]:45708 "EHLO mail-oi0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751379AbeEQKYq (ORCPT ); Thu, 17 May 2018 06:24:46 -0400 Received: by mail-oi0-f47.google.com with SMTP id b130-v6so3483131oif.12; Thu, 17 May 2018 03:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=0hF7d39ypwjwVDbihHvSmz+ka9LWG+wkTmC7tmmmY+4=; b=Xu+6KhfFi687ZgVvCMvzhT+MX+CBaibA425nhinWno7AVbcGO/igBann99M3AXOcd8 qFFTJjM699jqtR0ogvT1F7oqlswIxbfvHL2EdNLmp14n7n2qX2HWVXMrjB6WTnRXq647 XKVFHjh+rQR3+pwoqPurj108m7tlzcVKqf53KS3fP1hpt8XdiPQ2YwO56QP+GciKv9ET SFJEhTa0xrB4GCL63kBgXZXywWEOEDuV6tLCEx0WyYgoZyM088PP/somptwgzlfDXsxD a0bQA2Fi0fw2eozlMPyFge4ZzMJLUcKG/NIL1vAdycl/9+W1/7QHbE/HTHzXJz4S0fTm h/Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=0hF7d39ypwjwVDbihHvSmz+ka9LWG+wkTmC7tmmmY+4=; b=Ou5dB5/k67Ebo22k6eWUaRHRdCIpdpJwKI9NmdFltw27RgqUaohlNvM/XgpGozkljn UszFMQk2xuMNteLefI+l2POZ0LosxzFvOT4EWyCsBXRBmr52+gxS9DtbiTpCXP997aZx AEiazpa6O3rd1563MbCG5DvuaeNWjB7DsCTpEoOZytPlh2x8LhoZoLjGcKduXpOZEsRD WHpk3sRHB1rUEHR+ODlY6SFgl2AId8o8kgdkRiYRgxQ/bYgEIoe8VPVEGEpk6Shjftbf PujokZZxr5v9sP20axTY8eN9b+kaZO5vMZHWIVBbIaEmIh6daqTBfMV1vTeuJDXqlmpH 8pOw== X-Gm-Message-State: ALKqPwe0CmaqvwmOgBG6raaV8Jw29N+N1cQAkpNxkLxW9nc/9eYZ1cMS rUVSOdOCHPb7UWwMmbekbs2pgyZBx53bG5Ns/hE= X-Received: by 2002:aca:ac06:: with SMTP id v6-v6mr2993131oie.227.1526552685502; Thu, 17 May 2018 03:24:45 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1468:0:0:0:0:0 with HTTP; Thu, 17 May 2018 03:24:45 -0700 (PDT) In-Reply-To: References: <20180501003907.4322-1-ahs3@redhat.com> <20180501003907.4322-4-ahs3@redhat.com> <17197481-bd76-f2ec-9d6e-4cd0d94b9265@codeaurora.org> From: "Rafael J. Wysocki" Date: Thu, 17 May 2018 12:24:45 +0200 X-Google-Sender-Auth: TWzuX6s-uDwYQflWFnOEjEYXMK4 Message-ID: Subject: Re: [PATCH v4 3/3] mailbox: ACPI: erroneous error message when parsing the ACPI, PCCT To: Al Stone Cc: "Rafael J. Wysocki" , "Prakash, Prashanth" , ACPI Devel Maling List , Linux Kernel Mailing List , Jassi Brar , "Rafael J . Wysocki" , Len Brown Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 12:01 AM, Al Stone wrote: > There have been multiple reports of the following error message: > > [ 0.068293] Error parsing PCC subspaces from PCCT > > This error message is not correct. In multiple cases examined, the PCCT > (Platform Communications Channel Table) concerned is actually properly > constructed; the problem is that acpi_pcc_probe() which reads the PCCT > is making the assumption that the only valid PCCT is one that contains > subtables of one of two types: ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE or > ACPI_PCCT_TYPE_HW_REDUCED_TYPE2. The number of subtables of these > types are counted and as long as there is at least one of the desired > types, the acpi_pcc_probe() succeeds. When no subtables of these types > are found, regardless of whether or not any other subtable types are > present, the error mentioned above is reported. > > In the cases reported to me personally, the PCCT contains exactly one > subtable of type ACPI_PCCT_TYPE_GENERIC_SUBSPACE. The function > acpi_pcc_probe() does not count it as a valid subtable, so believes > there to be no valid subtables, and hence outputs the error message. > > An example of the PCCT being reported as erroneous yet perfectly fine > is the following: > > Signature : "PCCT" > Table Length : 0000006E > Revision : 05 > Checksum : A9 > Oem ID : "XXXXXX" > Oem Table ID : "XXXXX " > Oem Revision : 00002280 > Asl Compiler ID : "XXXX" > Asl Compiler Revision : 00000002 > > Flags (decoded below) : 00000001 > Platform : 1 > Reserved : 0000000000000000 > > Subtable Type : 00 [Generic Communications Subspace] > Length : 3E > > Reserved : 000000000000 > Base Address : 00000000DCE43018 > Address Length : 0000000000001000 > > Doorbell Register : [Generic Address Structure] > Space ID : 01 [SystemIO] > Bit Width : 08 > Bit Offset : 00 > Encoded Access Width : 01 [Byte Access:8] > Address : 0000000000001842 > > Preserve Mask : 00000000000000FD > Write Mask : 0000000000000002 > Command Latency : 00001388 > Maximum Access Rate : 00000000 > Minimum Turnaround Time : 0000 > > To fix this, we count up all of the possible subtable types for the > PCCT, and only report an error when there are none (which could mean > either no subtables, or no valid subtables), or there are too many. > We also change the logic so that if there is a valid subtable, we > do try to initialize it per the PCCT subtable contents. This is a > change in functionality; previously, the probe would have returned > right after the error message and would not have tried to use any > other subtable definition. > > Tested on my personal laptop which showed the error previously; the > error message no longer appears and the laptop appears to operate > normally. I'd like to know the Prashanth's opinion here.