Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1001984lqe; Sun, 7 Apr 2024 14:06:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUZGgpO/mEZDBRnLNHrSK9IP9QOdVRqu2KzJvxCztksxbP0debXYrSYrwiT4jV/g8wKy2SWNWLwUNwjEIf3f4I0gJ9aJ5B/KwypBrZpg== X-Google-Smtp-Source: AGHT+IFlJYGGEC01an6ir0i0GqtMuQtjGE7CePKNeVk5+hPsyiICOI7zonNrR32qYaMkIjdktBcu X-Received: by 2002:a05:6a20:3241:b0:1a7:807:ca2 with SMTP id hm1-20020a056a20324100b001a708070ca2mr7657989pzc.29.1712523961631; Sun, 07 Apr 2024 14:06:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712523961; cv=pass; d=google.com; s=arc-20160816; b=TfHA8Glp0Gb+7NqJI8gWrXcD1Ls/fexgJkEe1lBXRGGmOYurZjEBxlYv9XY7LL/MM3 2ohW7bkodHHrt9RO7e+5tcDuBsU39H0IYiX35M/BLC3bTAfbLEr11dSlRQjnyQ9AP9HU 9W2F9QhEIiH5X5YKzo5rckBIQLVUTPr3k0r/ffj9yexbeq5dCPdMzrHKruZZqtg65DMc +KjH5uKsL8U0IDhQuIPbuB5z1MetEO7dADcjUjFekOnU7gRSNVoxAwTgtwNoZe28ueQk nsu3C14HCYG3h7gjkS4sDiM15C9cIbekB7CrAFStSzPKsOYnHHeF5ylU+w8GUp76phOY jPmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=bR5XHUjGNLCfKZZHpQrzxBCG+XbCgSN9gFkcjudhasE=; fh=PivtRxAcc8B0QEjioKsoY1lgkFs1pVixPbWNUc1icUo=; b=PDzz5BSak1raAeWNjPTuCjxDQ20FxMM1CPjrRNZsUrOyP4E1uIjPk3Pjdw7lvA6Hii EERI8aZh+ef3X+dqh7W/F6y6j/+7KTABx5Q2NevNNMhD2CtJtJcS1jcEqsV0aJz3xEV2 0poLREiRfPPKp5F/V7c+mooJnfq1eARxUJl3AYOHO4ksTVatB3ZsMVA6kX6ODCl+J1JW IoGV059KKjxi1xaNAv5Z7PvtcRzquSS0/x5L4oCCTvqiEXxfODd4z15XNG9EomOLLAzR CBXDvjCUHDhnY9zS5FHBNw1smRBFbXp0duNHdRHy4JWR9aCGZRzpgmOUXHQ7WaoEfLxE Y8Xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ii2PtuJF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134644-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134644-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. [139.178.88.99]) by mx.google.com with ESMTPS id 75-20020a63004e000000b005dc8ccd36d9si5063890pga.250.2024.04.07.14.06.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 14:06:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134644-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ii2PtuJF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134644-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134644-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 4C4302816AA for ; Sun, 7 Apr 2024 21:06:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA72244C7C; Sun, 7 Apr 2024 21:05:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ii2PtuJF" 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 16B8D3D576; Sun, 7 Apr 2024 21:05:51 +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=1712523952; cv=none; b=n7L2/Bs6ncvClcuuruVYmotZIjG/6AtN6FWxztzZkkctezNevFf0T+Rz6trd5YpuJNqxwrVd9TkU/x0u7URYOD3K1aocS5VBT7yD7RWthzLG3BoEFpu/UDVgwhhvDPwMetg3BM5iuVKFvcu3c+Zm21MxRx2Y2uu1jbkRB7Pgp8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712523952; c=relaxed/simple; bh=alFJHuuY58av6Gpl72+zYmR9Fs+6674Zyv4hEKl/Gr4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=j9y6E47qUQVd9AlbnL7tAWFhHq5d6DBXRNq8MY+M3UMflV/jtAiCqaka4B96jP+IWVm5yyu9LEuYA5HeOOW1zHZNM3BujNd5m1WFlyktzTeMLmQztYXN56rKTlO+QzTHXCFFJvroBrhOD0xjCyVZcsgnVVPaD4a3oabtDZb5iaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ii2PtuJF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58EE4C433F1; Sun, 7 Apr 2024 21:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712523951; bh=alFJHuuY58av6Gpl72+zYmR9Fs+6674Zyv4hEKl/Gr4=; h=From:To:Cc:Subject:Date:From; b=ii2PtuJFpxgQJTh561Dx4dKf2IWsrqB7TOMg3giuAc6P751oRKiTaQduKvfsUV2i0 G95vbPJrMhO1bG3Xns9BIO5qtkcJYOJIZgKvJLRQsohZGzAIR7SDFlF4iNVsduRlfA bM2DZl2S91YA4hPfQ/3ruXpVEnkuX0GRAueC9laW9qJTctWj2VRRUYRjM1VxvfVv0x OU5tEhI7hUi34qaJ71Y11o86wU5iAsZdBBX8ix6XvM+IpAekH54IyXcP3oRRqv7wJb BHFoxhovJtj9uvNxrRHuNrPXj+aumivwHZJ/CHKu+9G1ElskaE6RjgQ51A6x19OQ2Q t9TxeFgVF3Pkg== From: ppwaskie@kernel.org To: Dan Williams , linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, PJ Waskiewicz Subject: [PATCH 1/1] cxl/acpi.c: Add buggy BIOS hint for CXL ACPI lookup failure Date: Sun, 7 Apr 2024 14:05:26 -0700 Message-Id: <20240407210526.8500-1-ppwaskie@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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." 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..56019466a09c 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, "unable to retrieve _UID. Potentially buggy BIOS\n"); return -ENOENT; } -- 2.40.1