Received: by 10.213.65.68 with SMTP id h4csp2118298imn; Sun, 8 Apr 2018 20:09:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx481kRK2YyThjT7236i7IOHT4BT3U4y1Uk3VgYKE9DEibsZq5yWiOoTYaJ8RBz3hr0JDdrja X-Received: by 10.101.66.70 with SMTP id d6mr23690735pgq.234.1523243377139; Sun, 08 Apr 2018 20:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243377; cv=none; d=google.com; s=arc-20160816; b=jAb6m54v+Uu9OTW4bVT+4+zFxGWDEPNdj8u7MFuFpsq1u6zEl7ec7JodEr/VjS1F16 PLk/8zAZvO5on6GsvJTTlD6bb9sIOWGTxJt7TWgKlXgUFrff2U6C1Ga4a+vIi5wYKFFD lkisKva7sCoHO7dPBfO6IVh05Zec3H7pa62zU1ClcmavBVR6McOUs5e3VTWlDnAg+4wF kg1g+p3dpSMma/ChTbr2FOvt2vIHQm+3pcxQjAgg/asND28p3P/3H42LD/PiqGHY7qJL zH6As03qVfO15EnwncpZbZbucJewNXvZuOz0kIjpPrM2ri2MNdVnrOal8sLAsHE7ujW7 R60w== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=+6EQKIp/9kusE/E6D81BWt+ch7XXn20uv6Tard4/2ec=; b=wrUtzTQLDV1LlJYdW23iNvu36In8X0ahCPCjsplhlDc8RMenumhzF3w8CiFbvLZKUO VQBzRo5FgCleS1TqvS3X69uqNWBvfs8WgFNbQKpYlny5+IdrHRbn9hMfW2fvr245B0rA O2Pd0sjyeZbPK20+v6nB4Ay92owJMwBcGT7ZC366HBibkDD4Mb/2Z7f1D4xHdBx2CCne oPkMVY7Qv0JBV8S7SLvfw2PA37FqXzjyF3NFdzQbOX3hV1IasPmQOuF5n8O20oCkCaI8 wlbXW2BCwLtj9kjhRiCYb6urFGVx5pqIllO8EGAK0N8BMVYPw7UKFUGSiR72X6+hAGV/ EUxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=os7eVhaD; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23si11335943pfn.287.2018.04.08.20.09.00; Sun, 08 Apr 2018 20:09:37 -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=@microsoft.com header.s=selector1 header.b=os7eVhaD; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758100AbeDICis (ORCPT + 99 others); Sun, 8 Apr 2018 22:38:48 -0400 Received: from mail-cys01nam02on0094.outbound.protection.outlook.com ([104.47.37.94]:22752 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755578AbeDIA13 (ORCPT ); Sun, 8 Apr 2018 20:27:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+6EQKIp/9kusE/E6D81BWt+ch7XXn20uv6Tard4/2ec=; b=os7eVhaDMJABKrfsSB+fRWyfPG+FX7Xzl+YOZYbPNR3a4WVLW0vpQNo0nSGsOWtdx3qgnpJ2x8PDrkvBYhGuGab+5K0KP0qeu+9QGjS5UpLnCCTwDhsf0uf0fqTT4hiNaSAeKQRrfAieDZY3U5ePhfQPEU6qmE1SyhO+Z+paL/0= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1031.namprd21.prod.outlook.com (52.132.128.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:27:23 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:27:23 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Lv Zheng , Bob Moore , "Rafael J . Wysocki" , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 041/293] ACPICA: Events: Add runtime stub support for event APIs Thread-Topic: [PATCH AUTOSEL for 4.9 041/293] ACPICA: Events: Add runtime stub support for event APIs Thread-Index: AQHTz5j34/OQG2ztPEyKKT+NB5iipw== Date: Mon, 9 Apr 2018 00:23:21 +0000 Message-ID: <20180409002239.163177-41-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1031;7:fH43lYXSsqTZyBtecEVgUQJ+fh0kSH8rgM0GmWJ1cn+yfA7RuInZjEW74QEat/r0hwlKxNfT8BZoyph+uNwWTydTTNW+5DiiG+SHj8Dp/8MPsCafqZEr0otw0/WXMGprgbEz3b2eyfex5jUf3GxDMljQyLsVaqkqmeUaBVMS8mBV6wutgUxJeuQsPX9xsehyGZV3QshM2yfqfKEDUOwokp4qwwtlX2yfxRhvEuznA8BPveZuBlJU1MKl2iMwWRAu;20:Xa7tg6svEXFpHs+3XIx8Troq+Dl35OePteefU/qiRoxX64qiKf84JOKZOANdTxvcY0Pt1PFRTcT6VoIJUxPxc9XzWPEc5b5n5CqqUNTwZc3hX1PXiCuxerWWof0uwJJ48jyd5iqipHGiCcSXylBEj1OqZfjJppLoyETADrW6hKg= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 9cc78653-5a0d-416f-42eb-08d59db0aa26 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1031; x-ms-traffictypediagnostic: DM5PR2101MB1031: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(166708455590820)(85827821059158)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1031;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1031; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(366004)(39380400002)(346002)(39860400002)(189003)(199004)(2900100001)(10290500003)(99286004)(76176011)(14454004)(966005)(7736002)(11346002)(26005)(86612001)(72206003)(478600001)(36756003)(106356001)(66066001)(2616005)(186003)(22452003)(86362001)(68736007)(305945005)(54906003)(102836004)(486006)(59450400001)(110136005)(316002)(6506007)(446003)(107886003)(53936002)(4326008)(105586002)(6306002)(6436002)(6486002)(476003)(6512007)(5660300001)(5250100002)(25786009)(3846002)(6116002)(1076002)(97736004)(3280700002)(2501003)(2906002)(81156014)(8676002)(10090500001)(81166006)(8936002)(3660700001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1031;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 05XWZX1fhnKTSNlEgJizIaw12Uzd6f5+iednOCRE1ccRywU0SsWRwpE/FCRa/J/sP6cdRbwQu2zulEslOghiuyJfHU4x8y5gNx0M5P2hZEtC++QLKUFjAR/alhO5bC+rcDYunBGi8vx9l2+xvyJTYtpdCDQQ8s2RTsIhvv/0vj4bKFusrXyAnvDXw1qGuV/d4LGRrXNloPmbuxqF5K6S43yuGH4RzoPByB6qhzwx976acW0c6Ja4ULgBv4EbM713mFsGEzFajyUchEvNBjlkAmohmEyXH8QdiwlUam+Pkv6aXu04BRjra4YZGayYl9DJh26Ac2oAG5a/M2l+9hit76a+XgHgY90FSDfII+HVUb866Y0MP8sgM2pZL+ze2B4yF5ExMf3edmo59+uRd5kioAkjZruIosyL1SdLXVQAw2A= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9cc78653-5a0d-416f-42eb-08d59db0aa26 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:23:21.9248 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1031 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lv Zheng [ Upstream commit 861ba6351c520328e94a78c923b415faa9116287 ] ACPICA commit 99bc3beca92c6574ea1d69de42e54f872e6373ce It is reported that on Linux, RTC driver complains wrong errors on hardware reduced platform: [ 4.085420] ACPI Warning: Could not enable fixed event - real_time_clo= ck (4) (20160422/evxface-654) This patch fixes this by correctly adding runtime reduced hardware check. Reported by Chandan Tagore, fixed by Lv Zheng. Link: https://github.com/acpica/acpica/commit/99bc3bec Tested-by: Chandan Tagore Signed-off-by: Lv Zheng Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/acpica/evxfevnt.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/acpi/acpica/evxfevnt.c b/drivers/acpi/acpica/evxfevnt.= c index 9179e9abe3db..35a2d9ea0654 100644 --- a/drivers/acpi/acpica/evxfevnt.c +++ b/drivers/acpi/acpica/evxfevnt.c @@ -180,6 +180,12 @@ acpi_status acpi_enable_event(u32 event, u32 flags) =20 ACPI_FUNCTION_TRACE(acpi_enable_event); =20 + /* If Hardware Reduced flag is set, there are no fixed events */ + + if (acpi_gbl_reduced_hardware) { + return_ACPI_STATUS(AE_OK); + } + /* Decode the Fixed Event */ =20 if (event > ACPI_EVENT_MAX) { @@ -237,6 +243,12 @@ acpi_status acpi_disable_event(u32 event, u32 flags) =20 ACPI_FUNCTION_TRACE(acpi_disable_event); =20 + /* If Hardware Reduced flag is set, there are no fixed events */ + + if (acpi_gbl_reduced_hardware) { + return_ACPI_STATUS(AE_OK); + } + /* Decode the Fixed Event */ =20 if (event > ACPI_EVENT_MAX) { @@ -290,6 +302,12 @@ acpi_status acpi_clear_event(u32 event) =20 ACPI_FUNCTION_TRACE(acpi_clear_event); =20 + /* If Hardware Reduced flag is set, there are no fixed events */ + + if (acpi_gbl_reduced_hardware) { + return_ACPI_STATUS(AE_OK); + } + /* Decode the Fixed Event */ =20 if (event > ACPI_EVENT_MAX) { --=20 2.15.1