Received: by 10.223.176.5 with SMTP id f5csp2567111wra; Thu, 1 Feb 2018 02:30:04 -0800 (PST) X-Google-Smtp-Source: AH8x2272CefD48wjhxMaiWqn1ELGxJlKaKqzowU2ids44lBqq/h76u4VrMhhr1X6b2bj2+p9s7EO X-Received: by 10.101.88.130 with SMTP id d2mr28400293pgu.278.1517481004423; Thu, 01 Feb 2018 02:30:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517481004; cv=none; d=google.com; s=arc-20160816; b=fUYaoVfhqy7CbjgQG0ble8l8xNp33JqJY954gPZjaARUt5KUCMhN8Wkp323yzNSV3K rUHGvpKO7fvN3xgynxupMDNqaVA5MsvvoKMp3R9N9AynPmRIc1wEAJx2KC/rO/5VB2Jk ST6AQtVij1Yw6VoHEU6s4/lxz5+ibm65Frk/qn290/Xcl1PNpAE0b8Ee8L281wluIf0X rGsJwjFxeW/Iv+9O1L50fu5hGvWTE7py6adX7/2/d74SXQnB2NDGg3iGSt5DRsikJkEE OMAHTwKQBG/31UJgyyjCMhGbu5YVd2lujhn/dVWjbeN9l5tT5WAxzb4vbgZOzK7vBiWW Tqng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Ch8udtIagXzqZ0sQsr3HvILBfxOLfarFlnvUotRxSbY=; b=LwjG+mRM8GbQDYChFdIMkXi3UI0d1T2JCgnoY4pvl12nMmdR925WEyghhz7O7usRB0 P3DS82zjIzJypV3iJi7KEV8XhkR7mRMCR74eckxBjU603QUU0bspxru1P146p0B9eq3z ox2gCE3r7eo/XmlOPvpbdzkX8/KO2rAhF51XnZkwsMkwWvSG9VNUDnR6Cf4fgezX3/0D S4vXhZqVsdJAtu8BMzKeWY0ruN2ViachMoRCec/Md8hmgqPvjF8nu5smC0qC38ZMZcB7 69BAHLuDNz2mmbRqf7byh8Paj1ADScnAFiOIHZ5fP8dDO0mNywTf4b2vjF21irimkEm6 6xbw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si1411600pgu.56.2018.02.01.02.29.49; Thu, 01 Feb 2018 02:30:04 -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; 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 S1752064AbeBAK3Z (ORCPT + 99 others); Thu, 1 Feb 2018 05:29:25 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:55478 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751748AbeBAK3Y (ORCPT ); Thu, 1 Feb 2018 05:29:24 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0666FED4; Thu, 1 Feb 2018 10:29:22 +0000 (UTC) Date: Thu, 1 Feb 2018 11:29:20 +0100 From: Greg Kroah-Hartman To: Jiri Slaby Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Mika Westerberg , "Rafael J. Wysocki" , Hans de Goede Subject: Re: [PATCH 4.4 28/74] ACPI / scan: Prefer devices without _HID/_CID for _ADR matching Message-ID: <20180201102920.GB13686@kroah.com> References: <20180129123847.507563674@linuxfoundation.org> <20180129123848.888319573@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 09:57:21AM +0100, Jiri Slaby wrote: > On 02/01/2018, 09:46 AM, Jiri Slaby wrote: > > On 01/29/2018, 01:56 PM, Greg Kroah-Hartman wrote: > >> 4.4-stable review patch. If anyone has any objections, please let me know. > >> > >> ------------------ > >> > >> From: Rafael J. Wysocki > >> > >> commit c2a6bbaf0c5f90463a7011a295bbdb7e33c80b51 upstream. > >> > >> The way acpi_find_child_device() works currently is that, if there > >> are two (or more) devices with the same _ADR value in the same > >> namespace scope (which is not specifically allowed by the spec and > >> the OS behavior in that case is not defined), the first one of them > >> found to be present (with the help of _STA) will be returned. > >> > >> This covers the majority of cases, but is not sufficient if some of > >> the devices in question have a _HID (or _CID) returning some valid > >> ACPI/PNP device IDs (which is disallowed by the spec) and the > >> ASL writers' expectation appears to be that the OS will match > >> devices without a valid ACPI/PNP device ID against a given bus > >> address first. > >> > >> To cover this special case as well, modify find_child_checks() > >> to prefer devices without ACPI/PNP device IDs over devices that > >> have them. > >> > >> Suggested-by: Mika Westerberg > >> Signed-off-by: Rafael J. Wysocki > >> Tested-by: Hans de Goede > >> Signed-off-by: Jiri Slaby > > > > You seem you took this from SLE12-SP2? But where did you take the > > upstream commit SHA from? In SLE, I have "Git-commit: fdad4e7a876a2..." > > which is the correct SHA of this patch. The above c2a6bbaf0c is a > > different patch. So are your scripts broken or is this a manual oversight? > > Not only the SHA, the whole commit message is taken from c2a6bbaf0c. But > the diff below is fdad4e7a876a2. > > To clarify: upstream c2a6bbaf0c is in 4.4.80 already (as f4a42f8492). > The diff below is a fix for it with upstream SHA fdad4e7a876a2 (in 4.4 > as 1fe277d48f). So the code is correct, unlike meta data. This was my fault, I searched the kernel log for the real git commit id by just looking at the start of the shortlog string, not the full thing. It matched on the wrong one, which I used here for the body of the patch, but not the content. Thanks for finding this, sorry for the confusion. greg k-h