Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp659435ybg; Thu, 19 Mar 2020 06:33:30 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv2vQPwsBURd6sj6VYqVDt/nsGogtbYq3bCIvpTO36ynSZtJ97w6gbzI8+g0JW5KoHEWBGO X-Received: by 2002:a05:6830:4008:: with SMTP id h8mr2364554ots.295.1584624810705; Thu, 19 Mar 2020 06:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584624810; cv=none; d=google.com; s=arc-20160816; b=tlwpfqboEm9O4yRodY0Im2Jkq5p6u1s4pCXEx3/rSt5qRn9Og5+QnjQxV7Pr/PTa86 0wlSqMEJTSCZldsE+mvTu+KNb4yE1I/qRKLLPfuxE35Z1qUGZeF5oznzPMiYVnnfEWK1 vI+6fcskAflhuvZTQSTOAb5LNFWD9rqBigauAqn0/f/DMm1xm2ACqkb0D7A+vmj1SFLh 7swpXVI9nu+wzmN+lDpUZ0VoXORNGkMtpS+GjWRH1BffbobL8ky+rIkNt0HZHRiI4p1C S1jwGkTTzQmkSI1qPcC3vzktWJQH8Wu0YgPcUVORFq1Ca8JBj5jwX+eeqgJsx9+HTOXz l8rA== 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=rqqlRASXiRkRK+F0H2aayIEtOp1fwTWaKjiBOIx1BZQ=; b=vkP3YaOd6JIZUxx2zgozDNneDZmvUGqo2O8v1waz8O0FojIEGMi72M9J/vQ2hqNf7A /SwhTxOHt6MipaX5TL77fdXs0kiC9g4L0VWTTH2gwD08IaKgIBB2z2upWuHSuZeNKJjg 4oQqIIWmA6AErJtxyllO8bywG1nPfvsNJc9A/gCzhU09R6g3saLtw0su+8hiM7jIWM+O tOZBsmyGKSHrY1sUuBVbO7c+givTUrwqwc3YTEKMWzCkwGthM/hNQyD0kwxJ1MjpwFYf +gZCzmEFnZZbbnv9S2n7XLhVS8ysz5PYl5nbQCkwU+71LCIMVoOMbJtOFSzg2dp7juxw kSNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IJrmsX+2; 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 k3si1005609oib.82.2020.03.19.06.33.16; Thu, 19 Mar 2020 06:33:30 -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=IJrmsX+2; 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 S1729342AbgCSNQy (ORCPT + 99 others); Thu, 19 Mar 2020 09:16:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:37528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728503AbgCSNQv (ORCPT ); Thu, 19 Mar 2020 09:16:51 -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 1715A21835; Thu, 19 Mar 2020 13:16:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584623811; bh=2vhibI530la2nXP38czFOi1Gon/TlBG9XWRRNIpIJCA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IJrmsX+2LYfFu0Gwa8blkupS1rV8nSrVPX8AznEZ8Mq8EgizxOCp8xfBKEwg7IiYA shpqMrLccn1cRKy/clDsDBBQSyhLirGVORRa93ZCSFCUsAG6+gMkbg81qucAmUyM2O 5gL6fe4C38Vz94BAENl/o6NLJn3Sorc3BOGrjfm4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lu Baolu , Zhenzhong Duan , Joerg Roedel Subject: [PATCH 4.14 61/99] iommu/vt-d: Fix the wrong printing in RHSA parsing Date: Thu, 19 Mar 2020 14:03:39 +0100 Message-Id: <20200319124000.098327497@linuxfoundation.org> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200319123941.630731708@linuxfoundation.org> References: <20200319123941.630731708@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: Zhenzhong Duan commit b0bb0c22c4db623f2e7b1a471596fbf1c22c6dc5 upstream. When base address in RHSA structure doesn't match base address in each DRHD structure, the base address in last DRHD is printed out. This doesn't make sense when there are multiple DRHD units, fix it by printing the buggy RHSA's base address. Signed-off-by: Lu Baolu Signed-off-by: Zhenzhong Duan Fixes: fd0c8894893cb ("intel-iommu: Set a more specific taint flag for invalid BIOS DMAR tables") Signed-off-by: Joerg Roedel Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/dmar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c @@ -486,7 +486,7 @@ static int dmar_parse_one_rhsa(struct ac pr_warn(FW_BUG "Your BIOS is broken; RHSA refers to non-existent DMAR unit at %llx\n" "BIOS vendor: %s; Ver: %s; Product Version: %s\n", - drhd->reg_base_addr, + rhsa->base_address, dmi_get_system_info(DMI_BIOS_VENDOR), dmi_get_system_info(DMI_BIOS_VERSION), dmi_get_system_info(DMI_PRODUCT_VERSION));