Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4235326yba; Tue, 7 May 2019 14:40:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhcO4ICArCV/nF8+ruEEL0bV/g9ZfPovBFmFfmKArxtT8G4FYHgumOFQ9bLTH5RL9c40oK X-Received: by 2002:a62:128a:: with SMTP id 10mr42002053pfs.225.1557265208787; Tue, 07 May 2019 14:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557265208; cv=none; d=google.com; s=arc-20160816; b=0aBqMUiOEjRtqAtemYX38F8ztWfqczKXEBWis4MmeYYUv7B+prQ3+irFeuBb9DBbLB I3B99VyYFFXVdPNrKXkd0bCBw5VCFS8ZK2IcyNMx1Mjm9HlDAE6bR1O4RN5pEvS0ERdI 3vu0HmcksbBl7Yt740E+e/S0FySg+BTveK6XN+LJ/BRnkdF66h4tPoV47qV+y92Y1tuQ A9AjIs6ujfxHkGYLHV9+ll9QmxZRjPSp8GqrGq+o4CH3jhWugd1rVlOqnL81SHx4IOGS uiZqjDzIOJvqqTels6sZ2ntLwX46gdXEVF18LaUrc4RdKMM43hkKtY0yukC/wh3Cu972 1oPw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=c2AE0M9uKxK1GU3dXIY+HrWBQ1aPXALof+/VlxHoO1M=; b=G0UcWGyw3zvIqinA5980p8aLI+w2+kDEKmsb5OxC8xdlWjCoeO8QOp2t/sk4N+fK+T sq+YnG/A7atxKbo+81rMx55MGGQJMxtGgF8KPq6B8xIBpZxrNVkFMG5Cet6OBDh6kmAa heaTaSvFTfAYJNNWrQoEmRP14ZdQ2BvKeoYbPLkdfjZkOkSwtPiwn9YL1BRmJj0Qd95V 0Dl5OFnNpnYwxknHSvCnvb237f9wFpCDL7JkF/hj16nt5PaH5DdwxqJ2WHkiqhF0otXV wiNWUs7w+/BmPCXDH3kkPfGDIWhCG9qwMBjh+UxosDSWU7EirAVPrO9N0eLJEstUN/Oa pCng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DbNXzgMp; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o32si22475363pld.190.2019.05.07.14.39.52; Tue, 07 May 2019 14:40:08 -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=pass header.i=@gmail.com header.s=20161025 header.b=DbNXzgMp; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728660AbfEGVh5 (ORCPT + 99 others); Tue, 7 May 2019 17:37:57 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:40597 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbfEGVh4 (ORCPT ); Tue, 7 May 2019 17:37:56 -0400 Received: by mail-lf1-f67.google.com with SMTP id o16so12940358lfl.7; Tue, 07 May 2019 14:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c2AE0M9uKxK1GU3dXIY+HrWBQ1aPXALof+/VlxHoO1M=; b=DbNXzgMpRyh83SvjTc5fgop9liZROTeCkrJGrIMAKnH2aSH/LcjlunA9HTEQgF+rul fVxaDKk7NMt9d6pbHZBJzW5ng7rRKuykuwsuBittWxi+JRaxuAxvPpAn4q/FjOo1yfoT rwmLbWRldEEy6U6vrxyKPVpA2gSly1lNMmXbH5XKQjbd+rJTRhPY03YWyqEcxuJGDDsy ORZVda2Rdjm9HP6Vw+wX+WE7ZIvr2g3DUY5F8KOvIcdIoUtPnsScpb1T6NBfSnpOem3F y6hDn5TVggVc14Fdk4eCrk5RSrMgd9YWfBGkK0Jgf/tUduV4OnBlu7alxcXegoxpXiDm J1uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c2AE0M9uKxK1GU3dXIY+HrWBQ1aPXALof+/VlxHoO1M=; b=R1JkDsMrPya4xu3DLCDDYIk4hH8dbSjOzGByG+ve6J4+pe+1MiPfiOxWRrbUtif1X/ 4ntK3FU4Ga4VgITPRDX8IoPgpqtwotTWjbVoIjFtd48C5CdHz7f9vV6QVMLN8wnsyrOX LEL8D5SmNSM5Dyrjv9lU3c5q7WmbpuVIUYS2DIu08w+5vKRITJKEo0JCtL1eCOwkCqMd 7/3/Q3TOn6H4PS102UZwm3sMtx0o3MqdaocfaJBAJPCVEWIplPcqk+R6NentWeAxkKds +eqNQHHFn5ETgr/5p0/aWwhqiQfScPPsMP9L6LPj3rToJ+82SYBwCeavL93l6dGIUeey 0hQA== X-Gm-Message-State: APjAAAXNqV/P99wR8OQxxOgp0UoRHT7lQbJS02Yql2DRFD9NZd/NVZcI r4+uz/W8uXoUl+ZO3Wb76Z739uVdcVIeiyRd2g== X-Received: by 2002:ac2:53ad:: with SMTP id j13mr4458442lfh.14.1557265074026; Tue, 07 May 2019 14:37:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gabriel C Date: Tue, 7 May 2019 23:39:13 +0200 Message-ID: Subject: Re: [Kernel 5.1] ACPI_DEBUG messages without CONFIG_ACPI_DEBUG being set To: "Schmauss, Erik" Cc: "Rafael J. Wysocki" , ACPI Devel Maling List , LKML , "Moore, Robert" 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 Am Di., 7. Mai 2019 um 22:17 Uhr schrieb Schmauss, Erik : > > > > > -----Original Message----- > > From: Gabriel C [mailto:nix.or.die@gmail.com] > > Sent: Tuesday, May 7, 2019 12:06 PM > > To: Schmauss, Erik > > Cc: Rafael J. Wysocki ; ACPI Devel Maling List > acpi@vger.kernel.org>; LKML ; Moore, > > Robert > > Subject: Re: [Kernel 5.1] ACPI_DEBUG messages without > > CONFIG_ACPI_DEBUG being set > > > > Am Di., 7. Mai 2019 um 20:46 Uhr schrieb Schmauss, Erik > > : > > > > > > > > > > > > > -----Original Message----- > > > > From: Gabriel C [mailto:nix.or.die@gmail.com] > > > > Sent: Tuesday, May 7, 2019 2:33 AM > > > > To: Rafael J. Wysocki > > > > Cc: ACPI Devel Maling List ; LKML > > > > ; Schmauss, Erik > > > > > > > > Subject: Re: [Kernel 5.1] ACPI_DEBUG messages without > > > > CONFIG_ACPI_DEBUG being set > > > > > > > > Am Di., 7. Mai 2019 um 10:35 Uhr schrieb Rafael J. Wysocki > > > > : > > > > > > > > > > On Tue, May 7, 2019 at 9:31 AM Gabriel C > > wrote: > > > > > > > > > > > > Am Di., 7. Mai 2019 um 09:01 Uhr schrieb Rafael J. Wysocki > > > > : > > > > > > > > > > > > > Hello Rafael , Erik > > > > > > > > > > > > > +Erik > > > > > > > > > > > > > > On Tue, May 7, 2019 at 1:33 AM Gabriel C > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > while testing kernel-5.1 I get on one of my Lenovo Laptops > > > > > > > > very strange 'ACPI Debug:' messages. > > > > > > > > > > > > > > > > After some grepping I realized these are Debug messages from > > > > > > > > DSDT , however my kernel does not have ACPI_DEBUG enabled. > > > > > > > > > > > > > > > > I found out the module triggering this, on this Laptop is > > > > > > > > ideapad_laptop , but looking at the code I cannot see what > > > > > > > > would causes that. > > > > > > > > > > > > > > > > Also on the same Laptop with any 5.0.X kernels I cannot see these. > > > > > > > > > > > > > > > > > > > > > > > > ~$ grep -i ACPI_DEBUG /boot/config-5.1-fw1 # > > > > > > > > CONFIG_ACPI_DEBUGGER is not set # CONFIG_ACPI_DEBUG is > > not > > > > set # > > > > > > > > CONFIG_THINKPAD_ACPI_DEBUGFACILITIES is not set # > > > > > > > > CONFIG_THINKPAD_ACPI_DEBUG is not set > > > > > > > > > > > > > > > > .. dmesg .. > > > > > > > > ... > > > > > > > > [ 68.020812] calling ideapad_acpi_driver_init+0x0/0x1000 > > > > > > > > [ideapad_laptop] @ 1322 > > > > > > > > [ 68.026708] input: Ideapad extra buttons as > > > > > > > > > > > > /devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input16 > > > > > > > > [ 68.038236] ACPI Debug: "=====QUERY_64=====" > > > > > > > > [ 68.050232] ACPI Debug: "=====QUERY_65=====" > > > > > > > > [ 68.060218] ACPI Debug: "=====QUERY_64=====" > > > > > > > > [ 68.092216] probe of VPC2004:00 returned 1 after 71386 usecs > > > > > > > > [ 68.092245] initcall ideapad_acpi_driver_init+0x0/0x1000 > > > > > > > > [ideapad_laptop] returned 0 after 69751 usecssg > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > These =====QUERY_XX===== messages are from DSDT: > > > > > > > > > > > > > > > > ~/acpi$ grep QUERY dsdt.dsl > > > > > > > > Debug = "=====QUERY_11=====" > > > > > > > > Debug = "=====QUERY_12=====" > > > > > > > > Debug = "=====QUERY_24=====" > > > > > > > > Debug = "=====QUERY_25=====" > > > > > > > > Debug = "=====QUERY_37=====" > > > > > > > > Debug = "=====QUERY_38=====" > > > > > > > > Debug = "=====QUERY_64=====" > > > > > > > > Debug = "=====QUERY_65=====" > > > > > > > > > > > > > > > > Also this is the code from DSDT for QUERY 64 and 65: > > > > > > > > > > > > > > > > ... > > > > > > > > Method (_Q64, 0, NotSerialized) // _Qxx: EC Query > > > > > > > > { > > > > > > > > Debug = "=====QUERY_64=====" > > > > > > > > If ((OSYS == 0x07D9)) > > > > > > > > { > > > > > > > > If (((WLEX == One) & (WLAT == One))) > > > > > > > > { > > > > > > > > SGOV (0x02040005, One) > > > > > > > > } > > > > > > > > Else > > > > > > > > { > > > > > > > > SGOV (0x02040005, Zero) > > > > > > > > } > > > > > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > Method (_Q65, 0, NotSerialized) // _Qxx: EC Query > > > > > > > > { > > > > > > > > Debug = "=====QUERY_65=====" > > > > > > > > If ((OSYS == 0x07D9)) > > > > > > > > { > > > > > > > > If (((BTEX == One) & (BTAT == One))) > > > > > > > > { > > > > > > > > SGOV (0x0202000B, One) > > > > > > > > } > > > > > > > > Else > > > > > > > > { > > > > > > > > SGOV (0x0202000B, Zero) > > > > > > > > } > > > > > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > Any idea what would cause this ? > > > > > > > > > > > > I think I found what is causing that. > > > > > > > > > > > > Commit aa9aaa4d61c0048d3faad056893cd7860bbc084c is moving > > > > definition > > > > > > of Linux's ACPI_DEBUG_DEFAULT to incude/acpi/platform/aclinux.h > > > > > > , however include/acpi/acpi.h didn't got updated and > > > > > > ACPI_DEBUG_DEFAULT now being always defined as (ACPI_LV_INIT > > | > > > > > > ACPI_LV_DEBUG_OBJECT | ACPI_LV_EVALUATION | > > ACPI_LV_REPAIR) > > > > > > > > > > I'm not sure what you mean by this. > > > > > > > > > > include/acpi/acpi.h should get the right definitions through > > > > > include/acpi/platform/acenv.h and include/acpi/acoutput.h that are > > > > > included by it. > > > > > > > > > > > > > Hmm yes should , I missed that include. However it does not work. > > > > > > > > I've just put back old code back into drivers/acpi/bus.c to test and > > > > all working now fine without any other changes. > > > > > > > > > It looks like incude/acpi/platform/aclinux.h has not been included > > > > > by include/acpi/platform/acenv.h for some reason when building > > > > > this module. > > > > > > > > If this one getting it wrong all will do so , they all just include > > . > > > > > > > > Probably not so much users will notice that , I just did because my > > > > BIOS vendor forgot DEBUG around. > > > > > > Do you still get this issue after doing make clean and rebuilding your > > kernel? > > > > A clean build from tarball has this issue for me. I don't think is a building > > problem , any <5.1 kernel is fine , kernel 5.1 with your commit reverted is fine > > too , kernel 5.1 with your commit in but the removed hunk in bus.c re-added > > is fine also. > > I took a closer look. This was an obvious mistake on my part. Thanks for catching it. > > The following should fix it: > I can confirm it does fix the bug , thx. > diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h > index 624b90b34085..70b55b8fe48b 100644 > --- a/include/acpi/platform/aclinux.h > +++ b/include/acpi/platform/aclinux.h > @@ -66,6 +66,12 @@ > > #define ACPI_INIT_FUNCTION __init > > + > +/* Use a specific bugging default separate from ACPICA */ > + > +#undef ACPI_DEBUG_DEFAULT > +#define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR) > + > #ifndef CONFIG_ACPI > > /* External globals for __KERNEL__, stubs is needed */ > @@ -82,11 +88,6 @@ > #define ACPI_NO_ERROR_MESSAGES > #undef ACPI_DEBUG_OUTPUT > > -/* Use a specific bugging default separate from ACPICA */ > - > -#undef ACPI_DEBUG_DEFAULT > -#define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR) > - > /* External interface for __KERNEL__, stub is needed */ > > #define ACPI_EXTERNAL_RETURN_STATUS(prototype) \