Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2169645iof; Tue, 7 Jun 2022 22:03:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0NCaObM74mnWPcmOz/GC+UMDBWlN/4GOuOdqaGL50LLO9FdG7HL5HAgOKiturRN/n1Oks X-Received: by 2002:a17:90b:4d90:b0:1e8:951b:40c8 with SMTP id oj16-20020a17090b4d9000b001e8951b40c8mr10945838pjb.130.1654664605074; Tue, 07 Jun 2022 22:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664605; cv=none; d=google.com; s=arc-20160816; b=fdyjjRBPcRQZaNIlAe8inlKvKC4r6uRYhG9nq2l28X53XzulHq3YNINgX3z2LWC+gT a6JeJJshWWVU53JELdfz76EwuLLDRtNtEX4e57v8UYVdffsgDlIEi0ZoimgbYMgoT64U YwpVeCqgoKw7Oz/OjeA8KNcuvnrW52SCTbkutE2MnVgTnu6wdapCZ0d5UlqYJdVoPml0 MNInquT/yRmkmIouzxuXewp2/AGkSHRi6FZRgTwO3vrFQ7/45fymEYCu+77B50BP7rKu 4FabScCxmiIdQ2puxI/KdfBQ2SxM8XOnX/V9Kr7YbbuAzKBKI7yAQO0n8GZNfaY4+DHu KMpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JRyA5A5ZeyIwGekjIcxe/MgErLz8yxefkOZ/3MwZZD4=; b=IVBa2VEyOalPdI+5evU+latdvRJMBhxuGOHx3W2Eiu5P/G4BCYcUVb+45ALW/rslaW MnfjsrGALrHLrq+OcQImCwjYKAmS9AQhpKiSxbl/Ktxmu/kYjb6uoONxStrr5jShZom5 cUgld4MOn/Nix/AcnlB+cPhyy6ZJc5NpM1KUZuK5CTs7Gs/w4nRIQEO6is93MdoHoMgf CWuDVkrmdKGPXmHYkZp+UyzHKJC2Who7X2pTOjwuYTBSvFueoNZ+S6xLSVJpPkRu0fmn 4p5baMQKHcf7sLYonoq/5EiG6qQgk2PFvkWellSWrujQtXVgXhPd/1EMi3mIYg3Uea4p zccA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZotGOdSy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b74-20020a63344d000000b0039da72fcd63si27544806pga.472.2022.06.07.22.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:03:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZotGOdSy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17A8FC0E1F; Tue, 7 Jun 2022 21:31:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381718AbiFGW20 (ORCPT + 99 others); Tue, 7 Jun 2022 18:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377921AbiFGVTB (ORCPT ); Tue, 7 Jun 2022 17:19:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BB2A224441; Tue, 7 Jun 2022 11:59:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 699DFB823A1; Tue, 7 Jun 2022 18:59:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC5CAC385A2; Tue, 7 Jun 2022 18:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628366; bh=B1mGJDCgUMNLtQ+ObxvdZWb5V/Djv7GIn7G0SDoX2cM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZotGOdSyVxZ06yYKLS/kboY38Zgc+iFDQdKSUmvWFyv/nxavpuBbRdrZ6LaVYxZAT oumi/aVpxnBuWTsaqYaQPNAMdTMHOuItQ+YoRW2TmRQtW5ZB78L3gntpZIfSdkBO0M sW0wJLRtKrWRd/kUyvw/v1nVnnhsRxR+94jl4rT0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Yongqiang Sun , Alex Deucher , Sasha Levin Subject: [PATCH 5.18 303/879] drm/amd/amdgpu: Fix asm/hypervisor.h build error. Date: Tue, 7 Jun 2022 18:57:01 +0200 Message-Id: <20220607165011.644122781@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yongqiang Sun [ Upstream commit d9e50239a9611b9a1759e007e9a810c8d178da28 ] Add CONFIG_X86 check to fix the build error. Fixes: 49aa98ca30cd18 ("drm/amd/amdgpu: Only reserve vram for firmware with vega9 MS_HYPERV host.") Reported-by: kernel test robot Signed-off-by: Yongqiang Sun Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c index 3e9582c245bb..88b852b3a2cb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c @@ -25,7 +25,9 @@ */ #include +#ifdef CONFIG_X86 #include +#endif #include "amdgpu.h" #include "amdgpu_gmc.h" @@ -650,10 +652,12 @@ void amdgpu_gmc_get_vbios_allocations(struct amdgpu_device *adev) /* * VEGA10 SRIOV VF with MS_HYPERV host needs some firmware reserved area. */ +#ifdef CONFIG_X86 if (amdgpu_sriov_vf(adev) && hypervisor_is_type(X86_HYPER_MS_HYPERV)) { adev->mman.stolen_reserved_offset = 0x500000; adev->mman.stolen_reserved_size = 0x200000; } +#endif break; case CHIP_RAVEN: case CHIP_RENOIR: -- 2.35.1