Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2473592yba; Mon, 15 Apr 2019 12:22:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJ7enpZsSkxEWUnHGP1LEo4Rvbvh3Nz1XVdjbsYGHQUvwxLA2RN229FAr/pZmL3n1ap0xG X-Received: by 2002:a17:902:801:: with SMTP id 1mr1865971plk.14.1555356172905; Mon, 15 Apr 2019 12:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555356172; cv=none; d=google.com; s=arc-20160816; b=w/X6932uV1zMR8BHvvQ9EVD99jcHULFgtflQ9RYHip0XWRWn5+Kn3rLx3DxMKThibJ lbunsyNFCVb7jnYW/KFLzxTNhXU/ODPCIMZf7ZaHbhIYssCSN5+0LMFDrBBNIAMZYEK6 wIj3WuxsAOI/bXRN6+O7C07oROpB7r4EF00ee32q7rD1vtK2s/kj+arc/q2vNImdCQsm TYUcMecQRnpJDrpGlEHbASXwL/BoNxg6yeh62JRIqxtBCxyZgVrH2Dkr3W7UkbVyn3tq nyatLKkTsQt0o0OJYjpQ65dF0GMt4TLGoiMCCcvKENKMKqNbcVWzksBSzuWDxzbaC3qy q6lw== 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=jVa74iEdti3EVmWKRV3WbvKcDhTKXEvkeDbAeK+9LY4=; b=x1TJAkAbuGLUoYUTO6WOm7pceoU1CWyeCl8lrXepRyPaH0M3vlPF+yGtdZ8iMgmT0J 3+0nzl6vYFErX7zIsPsPFRQEuYlFrZlQcQ6nxhodFmrhpibazgI9KyZzlev5/JogMKwd vX0+2es9L0HJ39QBKVpTL0j+/TES7lRf4GsLGNI5axXduwfZRIgGQl9WwVzmtV94pPqd pJeg1QhRwv1tMidVKWjBxApYuWU+nCf0p/MblhmtFnzSms3ANdmbp3mzqZkbGRmTt29m oLPe/cHezZIpdvO9z5JBYtrCID93J74yOy/kUEOQlsfnwFwc8W+UZR6V4tEzzppgx5a4 mTRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D3dKq1Be; 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 f16si40100378pgh.309.2019.04.15.12.22.35; Mon, 15 Apr 2019 12:22:52 -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=@kernel.org header.s=default header.b=D3dKq1Be; 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 S1730692AbfDOTJT (ORCPT + 99 others); Mon, 15 Apr 2019 15:09:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:44982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729440AbfDOTJQ (ORCPT ); Mon, 15 Apr 2019 15:09:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 8D4A621904; Mon, 15 Apr 2019 19:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355355; bh=PuDEf0BYHuTBz0oNon366ti76fjZS6muLMNojq9iwOs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D3dKq1Be0zyfAO7slVItK8EvIYlH/59YpK27NraemZ2+qQviTf78pm8ZZql22oAX6 QNMUuyjDC0AGgkuUTa6k8gXcTPKWn0xrfLsHOcDr6/IkOK5Ms+FWXlJ0vmCQp/dIbg bI9itPQwzbjmizHmt8z7Q5F6WHTSDyBOQTHOyvZo= 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" Subject: [PATCH 4.19 099/101] ACPICA: AML interpreter: add region addresses in global list during initialization Date: Mon, 15 Apr 2019 20:59:37 +0200 Message-Id: <20190415183745.605732928@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183740.341577907@linuxfoundation.org> References: <20190415183740.341577907@linuxfoundation.org> User-Agent: quilt/0.66 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 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 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 @@ -523,6 +523,10 @@ acpi_ds_eval_table_region_operands(struc 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;