Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1064161imm; Fri, 29 Jun 2018 10:44:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKxz2K9W4+aclNHiErWKToyu3UwI6TAkillrJr0Zaa0LBZqYuSkBJBRxUvW38ESKgI+CI2E X-Received: by 2002:a17:902:b18c:: with SMTP id s12-v6mr15801890plr.187.1530294286330; Fri, 29 Jun 2018 10:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530294286; cv=none; d=google.com; s=arc-20160816; b=yN6KY0pYJ37Flczr/j8m1d1gpnjXieYl6uVVlFKngej9i+pDF/yMHT/Nrm4Hmu2eqO uWIWpiAJH5NCLUiFr+wpfjhvdrl5bylZm2dEM/pC0nNFYAfVuPq8F5VHbhOC8f3Cv5rt tJf0KU1WCC0N4cWOQzRwinJlLK6c//VRZHQY5K3NH37C0JCD7tF6R1DYkDHqjt8FnGuz R0SIgyCW1oN/dKu0ZIPtgLpiT8Ny7vkzbm2yHVziM2OBKSN9ZPyd2zmEp0eywI2Hg34s ggtZR1A5mezYthQS1toO2UTJP4viNTNheb8vB3USWZoZ1YPkAtp7x6YdmoTTXxEZ1F2Y x3RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=sua98ApPgrMnV8RyCeArUbPDuckrBQAlZDkn0JaM0uY=; b=CmKinGDTYBZEfYpXHj5J5BpJ7f3n8zwMyWn56DQ5EHZKxt+ed2lADDgATKPEyB1MzP /FEaV6LKfoHwb+iysmazO3PqIInXU5nsug80p2HhsW5cKGImrFXew2LshpEG0EuZqbsy hty3lQYs3Mv6UiAqk3WyQYq7jrbsJshcXQrnqKZv/sIW+U7ezxl0pSMmNEcvpPrQ63iP vZ7wsdPtnkJbhIpV+oHFMiUijE45MB+yAqqyCiec0ri1eW3G475zPWSo/6okNwpA4uhm itrgxGoEy+hstZM5I1QAAuRnbZIQHuT/g2Z79oAk2s2GaSdsEduxTXz5PtyOScW4tUMo EHbQ== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15-v6si6659311pfq.172.2018.06.29.10.44.32; Fri, 29 Jun 2018 10:44:46 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932925AbeF2Rkq convert rfc822-to-8bit (ORCPT + 99 others); Fri, 29 Jun 2018 13:40:46 -0400 Received: from mga12.intel.com ([192.55.52.136]:35495 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932377AbeF2Rkn (ORCPT ); Fri, 29 Jun 2018 13:40:43 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2018 10:40:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,286,1526367600"; d="scan'208";a="63241797" Received: from orsmsx107.amr.corp.intel.com ([10.22.240.5]) by orsmga003.jf.intel.com with ESMTP; 29 Jun 2018 10:40:41 -0700 Received: from orsmsx110.amr.corp.intel.com ([169.254.10.236]) by ORSMSX107.amr.corp.intel.com ([169.254.1.167]) with mapi id 14.03.0319.002; Fri, 29 Jun 2018 10:40:40 -0700 From: "Schmauss, Erik" To: "Rafael J. Wysocki" CC: Andy Shevchenko , =?iso-8859-1?Q?Toralf_F=F6rster?= , "Moore, Robert" , ACPI Devel Maling List , Linux Kernel , Guenter Roeck Subject: RE: small dmesg regression in kernel 4.17.3 Thread-Topic: small dmesg regression in kernel 4.17.3 Thread-Index: AQHUDXdECkakmC0QWk2YYx3JQkkCHqR00vWAgAFqwbCAATTCgP///vFA Date: Fri, 29 Jun 2018 17:40:40 +0000 Message-ID: References: <8837a9e2-e614-e2bf-ed32-6d49de4dd4ed@gmx.de> <3440214.eqW5gfvlOh@aspire.rjw.lan> In-Reply-To: <3440214.eqW5gfvlOh@aspire.rjw.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjljMTZlNDEtYmEwOC00MTA1LTk2MDUtZmY3N2I2N2I3M2E3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZVcrV2tJdlBJZXNOYUI0N0pISVlGdkdkR0x5K0NQNWF0QWNpR05wNUlLMlFlTTVnYUhrZFgrQWw0a1wvZGU2dkEifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi- > owner@vger.kernel.org] On Behalf Of Rafael J. Wysocki > Sent: Friday, June 29, 2018 2:32 AM > To: Schmauss, Erik > Cc: Andy Shevchenko ; Toralf F?rster > ; Moore, Robert ; ACPI > Devel Maling List ; Linux Kernel kernel@vger.kernel.org>; Guenter Roeck > Subject: Re: small dmesg regression in kernel 4.17.3 > > On Friday, June 29, 2018 12:13:54 AM CEST Schmauss, Erik wrote: > > > > > -----Original Message----- > > > From: Andy Shevchenko [mailto:andy.shevchenko@gmail.com] > > > Sent: Wednesday, June 27, 2018 10:29 AM > > > To: Toralf F?rster ; Schmauss, Erik > > > > > > Cc: ACPI Devel Maling List ; Linux > > > Kernel > > > Subject: Re: small dmesg regression in kernel 4.17.3 > > > > > > +Cc: Erik > > > > > > On Tue, Jun 26, 2018 at 8:57 PM, Toralf F?rster > > > > > > wrote: > > > > The attached dmesg contains non printable chars 0x01 33 around > > > > "ACPI BIOS Error (bug): Could not resolve" which is a new issue > > > > compared to the dmesg of 4.17.2 > > > > > > > > System is a stable hardened Gentoo Linux at a ThinkPad T440s. > > > > > > I bet the below commit makes this. > > > > > > commit 2e78935d1e27d31955ad2dad4abe6c453cf669fd > > > Author: Erik Schmauss > > > Date: Fri Jun 1 12:06:43 2018 -0700 > > > > > > ACPICA: AML parser: attempt to continue loading table after error > > > > > > > > Hi Andy, > > > > > So, it does add leading '\n' which flushes buffers followed by > > > printing the message you see. But, I'm guessing now, kernel adds a > > > default level since it's going to dmesg which you can see as unprintable > symbols. > > > > What do you mean by a default level? > > > > > Personally I'm not a fan of leading '\n':s since it brings more pain > > > than fixing something. It has special meaning (flushing buffers) and > > > many developers forget this. > > > > This leading '\n' made it in Linux kernel unintentionally. It was originally > intended as a change for acpiexec and it makes the dmesg look strange. I'll send > out a fix. > > Which would be something like the patch below I suppose? Yes, this is what I was thinking of Thanks, Erik > > --- > From: Rafael J. Wysocki > Subject: [PATCH] ACPICA: Drop leading newlines from error messages > > Commit 5088814a6e93 (ACPICA: AML parser: attempt to continue loading table > after error) unintentionally added leading newlines to error messages emitted by > ACPICA which caused unexpected things to be printed to the kernel log. Drop > these newlines (which effectively reverts the part of commit 5088814a6e93 > adding them). > > Fixes: 5088814a6e93 (ACPICA: AML parser: attempt to continue loading table > after error) > Reported-by: Toralf F?rster > Reported-by: Guenter Roeck > Signed-off-by: Rafael J. Wysocki > --- > drivers/acpi/acpica/uterror.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > Index: linux-pm/drivers/acpi/acpica/uterror.c > ================================================================= > == > --- linux-pm.orig/drivers/acpi/acpica/uterror.c > +++ linux-pm/drivers/acpi/acpica/uterror.c > @@ -182,19 +182,19 @@ acpi_ut_prefixed_namespace_error(const c > switch (lookup_status) { > case AE_ALREADY_EXISTS: > > - acpi_os_printf("\n" ACPI_MSG_BIOS_ERROR); > + acpi_os_printf(ACPI_MSG_BIOS_ERROR); > message = "Failure creating"; > break; > > case AE_NOT_FOUND: > > - acpi_os_printf("\n" ACPI_MSG_BIOS_ERROR); > + acpi_os_printf(ACPI_MSG_BIOS_ERROR); > message = "Could not resolve"; > break; > > default: > > - acpi_os_printf("\n" ACPI_MSG_ERROR); > + acpi_os_printf(ACPI_MSG_ERROR); > message = "Failure resolving"; > break; > } > > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of > a message to majordomo@vger.kernel.org More majordomo info at > http://vger.kernel.org/majordomo-info.html