Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2520140imu; Thu, 29 Nov 2018 06:20:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/WbdytoyiSKEYdlnxiqoDGhQ/W3NXwt3hqPT2Ms1te2v2AFRi73ocCVCamdL2cgOF8onJkL X-Received: by 2002:a63:741:: with SMTP id 62mr1378657pgh.352.1543501218130; Thu, 29 Nov 2018 06:20:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543501218; cv=none; d=google.com; s=arc-20160816; b=Etde/345v4E4AqxsTjhC0HLAVRQ2jNMq3DZRdun28sA/N9cJidbDLY2l//Kr/F1CaC N7PQi+8OEleogqntdiCtfyvcYbOzNHWS1XR7NwnhWyKT8etMr8b9JSapWMrF042GJqsN KNj2G22ALlJP+jLiPCJjqg43Xq40IfYUFAp7XhWAB26HdbenlfUgxYLz7fDYiSGHtczB 5RdsCpDXqUBMxVth1VCFFuVoswAjb90+41K+/XNzZ/UyhbR+w0dOZxq41N4QRuD5ztgu PhAYYpdbKHABGbFnyMaNc0KOx0Sjc8BT7N/849Pbatn0gv6SqwrRe00FJmTOg+E8pC+Z JOrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jLudGJpawiePKwG6DYbV5mscP+L92vRE+WDdjqlF7/0=; b=kPSsNplbb5C8W1fg7oZBpKOnb7Hf1PLHfM9Sm/e8xGdHXx6Qj9qQXVM+X7ldsOjGwF f56q1/bP7MAjlswd96sLBAQUpmBhZdyglGXImgAqZ+QE9KlYJxpS8jjlTsIDhzvfuAG5 TQ4HiRfiKNCHa4hLsIXmEY13wnas2azMdStAmtZZNqjqMUUK/7BC889hEhivxe7Dquh4 ans0ENqgggPxvP2sfSeV9l1XSqAt8qIV9Q9ucwAoepTYSML8weG/kXjUDBrCzwmGXwi+ bFVQnW4VsOr2rZSc0bJeyOAy21J0XMu8cGP1eV5J3v22ElURSVlqvyM0HKHXN7VXH3y0 X2Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jCe3B8s5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si2177195pgg.100.2018.11.29.06.20.03; Thu, 29 Nov 2018 06:20:18 -0800 (PST) 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=@kernel.org header.s=default header.b=jCe3B8s5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730316AbeK3BWp (ORCPT + 99 others); Thu, 29 Nov 2018 20:22:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:44552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728439AbeK3BWo (ORCPT ); Thu, 29 Nov 2018 20:22:44 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BCCC5205C9; Thu, 29 Nov 2018 14:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501034; bh=Y71PwOdpSPAl3lmHv+gJDfy6WNSOTwnRdTdtNqRFa+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jCe3B8s5mc8sohfs1yiWAcH6isCHaaFu58bXcZaPv3CC0JYpWZGHOEHEa3Tx7Qmul 3pr2E4luQRn2ZuODFl7MisH59e0JuqzJx0AyZLUC/I0nmcW5G1vtIRQ4QAvd/CuuS/ DnH+wkxZSudnIZypXS+R13cvVpqebKioCL+deGWs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jean-Marc Lenoir , Erik Schmauss , "Rafael J. Wysocki" , Jean Delvare Subject: [PATCH 4.4 16/86] ACPICA: AML interpreter: add region addresses in global list during initialization Date: Thu, 29 Nov 2018 15:11:41 +0100 Message-Id: <20181129140111.213450455@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140109.832117862@linuxfoundation.org> References: <20181129140109.832117862@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Erik Schmauss commit 4abb951b73ff0a8a979113ef185651aa3c8da19b upstream. The table load process omitted adding the operation region address range to the global list. This omission is problematic because the OS queries the global list to check for address range conflicts before deciding which drivers to load. This commit may result in warning messages that look like the following: [ 7.871761] ACPI Warning: system_IO range 0x00000428-0x0000042F conflicts with op_region 0x00000400-0x0000047F (\PMIO) (20180531/utaddress-213) [ 7.871769] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver However, these messages do not signify regressions. It is a result of properly adding address ranges within the global address list. Link: https://bugzilla.kernel.org/show_bug.cgi?id=200011 Tested-by: Jean-Marc Lenoir Signed-off-by: Erik Schmauss Cc: All applicable Signed-off-by: Rafael J. Wysocki Cc: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/acpica/dsopcode.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/acpi/acpica/dsopcode.c +++ b/drivers/acpi/acpica/dsopcode.c @@ -449,6 +449,10 @@ acpi_ds_eval_region_operands(struct acpi ACPI_FORMAT_UINT64(obj_desc->region.address), obj_desc->region.length)); + status = acpi_ut_add_address_range(obj_desc->region.space_id, + obj_desc->region.address, + obj_desc->region.length, node); + /* Now the address and length are valid for this opregion */ obj_desc->region.flags |= AOPOBJ_DATA_VALID;