Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1084944lqe; Sun, 7 Apr 2024 19:03:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4W4G8kPMRALe4MHwk9optDJ++55CPRiWOSJOiVesC6QdAu1DnkLaulzVZdWeN45EbtYiT3YLXucWFYsF4q/ifo6U4naH7pJS4WZ254g== X-Google-Smtp-Source: AGHT+IFGd9e3O4f5mdhk56c8zS82o59FdqrzsbOQke+UBmwiZGYc93iOBwQxxkehg0LVCBywiWKu X-Received: by 2002:a05:6a21:625:b0:1a7:554b:7a51 with SMTP id ll37-20020a056a21062500b001a7554b7a51mr2828025pzb.39.1712541814510; Sun, 07 Apr 2024 19:03:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712541814; cv=pass; d=google.com; s=arc-20160816; b=RHNln46FMr5r/7hSqGVJR/HjUHMoYqUmivDbotyQL+goPt+2wZc0+nfTWLeojGFc7B goiByUkA1oALk76/AppoTHrZwmKQlqqWlYZEtP9QuFENN2g029zPI7kt6PigsZdyT6Ji fDOJlP67SVuFqKCzTBtqn9qJ8d5QonK3i4TkLrASTDGRs9P4qIjzeAkw2KHWnD4VsHxA BIbl6PZYYM+n59PtihPv70hm6Q9roD757xoaXTpBWN4WhBKHyzj7/xf32GTLEhrotIth IGWqQD5+PIpOzxssrOEqCH38992yzpBT6a46z+qy/Qg84ibOREa+a3dxgy56kTPdrjux 5rGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AeNbpSAl1Lg/htHRo8hWiG7lwqHw+bqt6JiA2MlG4Qk=; fh=lnemFO/5yGDgr7XA2gsYFJUq3ixTrBhNQsapr6m4ccE=; b=JHRjA4sA9zN7vXf6HvMrDPBK29zUDsdCzqwALHmStAO/VnlfpqOJN4AjqZMFw5gfn6 MnwipsMM/EI9e3UCp1k4OBYZegHWzWlmhACzc8qnwWnoaDAMcvSFMH19w2YCqdsC1Z6s 3aokHU2uC+sVnye5iUwdULDLzp2vOB0pzwJaslY3V5xYHRWYpC/ncxPpa3y5kdR8t1cj sFPpqtE8PqJxOSbtMKsfUL6aH+ZtkKLF87zvZ/Hls1ZGNejN4JITtLDoSzQ5YfhxFxqj 67WawevohIpzG9DeocOQtvx1c5XjYt1S2pfEU1t8AO+xjS1moZILeNoEVffCLnFqYEBL lS1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i3fwipnk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c4-20020a170902d90400b001e026b9d4f6si5253497plz.333.2024.04.07.19.03.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 19:03:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i3fwipnk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 34E5F281753 for ; Mon, 8 Apr 2024 02:03:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2021F17F6; Mon, 8 Apr 2024 02:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="i3fwipnk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40B614A1D; Mon, 8 Apr 2024 02:03:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712541806; cv=none; b=Vwv5SOgg3fKW829454Kp7okGjaEUAnnrfG/nEugQApcGcq7jdann5akl0WE2xV/N2JKDuRQ0BFozl8mCbFcsdcrqXM4gVuFNX+IAF590sdUQK1Q3Rxw3mVuINWtB/1UC6hpNSKjvf2Rim2X0jlf6q5z7nA7bAVLzJy772BLoCHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712541806; c=relaxed/simple; bh=fYm7KFC5U/QW6ssZd3s4lbnjdDOAG3MIETvCHATRU/4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dNmS0upVfT0I9UAT4/00wICgw8xBoGUfBWDuOdCQa7SeJFfTBovEOhN6aVr6Dse9SK8xvq3alFRlPpqR2WzLqEYXkwDtaf02s6lGmIf57osZIv2eblTXiuxv0ELTOEsrOVmGsgLNpKOPE2njD4Aaq+uUg4pPTKIlrCyoJRt6VNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=i3fwipnk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B5A1C433C7; Mon, 8 Apr 2024 02:03:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712541805; bh=fYm7KFC5U/QW6ssZd3s4lbnjdDOAG3MIETvCHATRU/4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i3fwipnkx6662oFevfQz2J4ciSbXSf21so8hiZqbSljhAvlKH8VYiNvw+NRr6GsN7 hp/Z6Qb4NkhLbCepMYG9xa0vOLCxBiSQZ8bxY0JHyt2em0USzvzC2JJuFkypiE0KwF TS0qrxtN3JzKro+CKn5Ck3Gdyq7EIWSdW569C1l+sjL8+J4qMr7OvtsLLWoR1g75PX GhVO5BRABtyRiHOri+SFI2hEprS/UBvoL9O9nXeqZZHsQ279JFsQgR5I22Do2WxhUi /7mDX+yEFbhwc6+DmmRSUeRqQp+PyI1Zc2MYXayBMIxQVtaLSWfbkh2cr2pgHPoktY MTuhaCFUeJCmQ== Date: Sun, 7 Apr 2024 19:03:23 -0700 From: PJ Waskiewicz To: Lukas Wunner Cc: Dan Williams , linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] cxl/acpi.c: Add buggy BIOS hint for CXL ACPI lookup failure Message-ID: References: <20240407210526.8500-1-ppwaskie@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On 24/04/07 11:28PM, Lukas Wunner wrote: Hi Lukas, > On Sun, Apr 07, 2024 at 02:05:26PM -0700, ppwaskie@kernel.org wrote: > > --- a/drivers/cxl/acpi.c > > +++ b/drivers/cxl/acpi.c > > @@ -504,7 +504,7 @@ static int cxl_get_chbs(struct device *dev, struct acpi_device *hb, > > > > rc = acpi_evaluate_integer(hb->handle, METHOD_NAME__UID, NULL, &uid); > > if (rc != AE_OK) { > > - dev_err(dev, "unable to retrieve _UID\n"); > > + dev_err(dev, "unable to retrieve _UID. Potentially buggy BIOS\n"); > > return -ENOENT; > > } > > dev_err(dev, FW_BUG "unable to retrieve _UID\n"); > ^^^^^^ > > There's a macro for that. Doh...it's been awhile since I've crossed buggy BIOS's. Thanks for the review and comment. Updated patch: cxl/acpi.c: Add buggy BIOS hint for CXL ACPI lookup failure From: PJ Waskiewicz Currently, Type 3 CXL devices (CXL.mem) can train using host CXL drivers on Emerald Rapids systems. However, on some production systems from some vendors, a buggy BIOS exists that improperly populates the ACPI => PCI mappings. This leads to the cxl_acpi driver to fail probe when it cannot find the root port's _UID, in order to look up the device's CXL attributes in the CEDT. Add a bit more of a descriptive message that the lookup failure could be a bad BIOS, rather than just "failed." v2: Updated message to use existing FW_BUG macro Signed-off-by: PJ Waskiewicz --- drivers/cxl/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c index af5cb818f84d..d321cfbd4682 100644 --- a/drivers/cxl/acpi.c +++ b/drivers/cxl/acpi.c @@ -504,7 +504,7 @@ static int cxl_get_chbs(struct device *dev, struct acpi_device *hb, rc = acpi_evaluate_integer(hb->handle, METHOD_NAME__UID, NULL, &uid); if (rc != AE_OK) { - dev_err(dev, "unable to retrieve _UID\n"); + dev_err(dev, FW_BUG "unable to retrieve _UID\n"); return -ENOENT; } -- 2.40.1