Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1540982lqs; Sat, 15 Jun 2024 13:41:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0vYIQagnTEjMqEc+oERgOsL0Y58Xt6D//3Z4+htxdqMJ36gk4wezndhpkJVtBkgN0AXpQS2mB7MfMrUjOut9pV4Khe8n+a7mci+Q0Pw== X-Google-Smtp-Source: AGHT+IGtLckqM+ZsYuOO0lUqWs9Bu6zcGD25UCvfjlAVxOpJnIEtnITfRiYMUl5JBY2nm2Ru30vh X-Received: by 2002:a05:6a00:8901:b0:704:1a2d:4a0a with SMTP id d2e1a72fcca58-705c935cf45mr11650845b3a.1.1718484086090; Sat, 15 Jun 2024 13:41:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718484086; cv=pass; d=google.com; s=arc-20160816; b=QFiPiqaUpNMsNSgsf6AhG422P7yfCGfm8PpYx1TJeE/v+WrbB4/xwFPQscUWoavBqs 4/x1aaCYS7YqcYqOAI+wbxBM3iJPisuBnJlpDcGZefGWDRAH0kGU3uP+pB8/WznQiyR/ jmZp05ZqGp5hkFVkxx7fsgbaM5qQTtOaEv0kWidKHLOFVmXcEnSiJ+e7Rf79MGgpms5I tpw5/74mhuiC4qjyRlxc7nr2WzCICPQ4f1beGN+WSGB/H/D8Kk/8iR1pdtx4S5NL+uqb g8cDK550Zxl2NepELzTDIaaUVcM8QVSIwP75Vvj9gD0+D805XpH5PtR2pWkB/DvTjNVn ik1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=NyfSuUkK9NXU2IrSjh8qgcwbYQ1cIHDSzfqUIvRuMUU=; fh=AEabbh3QqY0EP6Xm7Dflj+Cck9ZVoPxN+OTwDwpeqJo=; b=02bgngz6x8icE7Ua3XDipupWtYD6+XpS7JUgU5aXTiw4yftyS2cQALbwcOa2iHfSZB R0vvHEPZgdItyNBal2rTNyh0pZSc22kppSIBkDYwG2L19oZUbGBih6MrNcoYomCIQQ66 z0soSIWnahoHpCghChFmhqgpKpOVq3ONxE8c8FYQGrfyVen4irlHJF34sOUSD9FkLGaE WspIy4UpuLd6zgk4tCW0NX+jEMfy0iN0cff3Sa6GHoEiIS1sSFHBeViYI9+J942CyoxT A9Ud8hv1ZQEeTdfqcMEf3Al1hXaLkYQ6Dw40fj42aRpoJHVukUJ7Rh3WAWBw+L2PWXWT Hnow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="GgV/0WqU"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-216011-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb718d1si6005979b3a.254.2024.06.15.13.41.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 13:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216011-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=@broadcom.com header.s=google header.b="GgV/0WqU"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-216011-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com 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 B15D3282F8C for ; Sat, 15 Jun 2024 20:41:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32D6F61FD1; Sat, 15 Jun 2024 20:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="GgV/0WqU" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9BD492629C for ; Sat, 15 Jun 2024 20:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718484079; cv=none; b=IHbHDDygAGPqNuyDmt295JjyLnD0UJ//DR7tcN3mlTVX/b2JCCbB1RXP/Uar02P6OGhaNrerR2CtQQ6Dngfkk5Silmn7b8UzR2MvptViREHgwezpuAZcikXAd7N+MLzYmZqQTn+/6IEYqI0r8xWs+pFKbsHg4hq7DzCCd7KzlGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718484079; c=relaxed/simple; bh=41/OChH0rngz/yclsHybbNmGkPUMEbh5tsSA3lPC0ok=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ub7pvWQj2l3QCV3F5B161O7r2ZiPd+c7NAzxkNqze7Vq17zs9qvmGSTWQbsKkhyDZkl947XYCh8lJU8AnTA2A+aiqgE0aNZImp5xPnlEOhOPO1J6+oLqNJrMo8pP48u89jmZtPf6dsrOXmgS6qPlhJu4/Ge5nGkGDsjK3rBE1h8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=GgV/0WqU; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-7042a8ad9f5so2840369b3a.0 for ; Sat, 15 Jun 2024 13:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1718484077; x=1719088877; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=NyfSuUkK9NXU2IrSjh8qgcwbYQ1cIHDSzfqUIvRuMUU=; b=GgV/0WqUPf2ccM3VxiQj3jnYXdVol2/MKvpvn+V0a11JrhcfCx9GKyj40gdPfbYI0i HOAXC+jDQ9Fz3LL4UzcOCLiG/wD2/vg7I/bGsPgS0ddy2g+CgoCdPDLUpjbyA54XmJ/1 cZ1N1aZJHuB2X3XfyvP3FlG4VIdtyBdnL/huI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718484077; x=1719088877; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NyfSuUkK9NXU2IrSjh8qgcwbYQ1cIHDSzfqUIvRuMUU=; b=nbJYgQ2WgV3p2CnXnpZS/SB9QpuQfbCaetn03dmV7xtF9MbX/6o4z7XvN/+jcbXNiL eh8vira8spmCt69DWW0sf6yLzWpgriYYGS/xebSFbWUB+vFOSGdwocH7SwOjWCdYDXCm qb7r3p5pOF5q9QrsWRJAAKV6vEnj20PK25zXCUY5yksaRwKynYZwlHxcdjj2Ox6PCN4S JTuvdxGNYQAXPUxbaRP6IOkahdJDp4zYXBXXbxZftxGsxiH7S8Cr92KKc3mV7wM77U+/ FoVWjAD4osbGlNZODPL9r0c42iP1aphBbWIdi5R879Dbvib3X+Iv0cbnDp9PtM5mPFty DgkQ== X-Forwarded-Encrypted: i=1; AJvYcCULjxhYAKJtRrv2TptVAipDYmxELJIxAWLadYHKJmWrOqax1Pmv7IVcTLDOvOhOmny0mgjApscoldEFor/8vYUqFKc6fqSd0CvgOcpz X-Gm-Message-State: AOJu0YyjSt3UmvlVXj0fp/8ah6crSJi6MFGsgmsFZML++J76PeRKLOFZ 86Op4GF5qBh0jZzYVoDWljoCHgYc3lDjYe6A33yWfGjMyMwN0joaB7DApT4EwO8Ust00lhaZNDg = X-Received: by 2002:a05:6a21:19f:b0:1b8:5967:45cd with SMTP id adf61e73a8af0-1bae7e7a23bmr9501831637.13.1718484076743; Sat, 15 Jun 2024 13:41:16 -0700 (PDT) Received: from [192.168.0.212] ([50.35.46.55]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705cc96ce30sm5047610b3a.79.2024.06.15.13.41.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jun 2024 13:41:16 -0700 (PDT) Message-ID: <327b5f58-441a-434e-ac07-615ba9a1e3f2@broadcom.com> Date: Sat, 15 Jun 2024 13:41:14 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [tip:x86/vmware 4/8] vmwgfx_msg.c:undefined reference to `vmware_hypercall_slow' To: Borislav Petkov , kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org References: <202406152104.FxakP1MB-lkp@intel.com> <20240615143344.GDZm2mSB-qyB0Vt28Q@fat_crate.local> Content-Language: en-US From: Alexey Makhalov Autocrypt: addr=alexey.makhalov@broadcom.com; keydata= xsFNBGVo9lkBEACeouRIm6Q3QTvjcnPczfBqgLffURstVJz5nqjnrNR4T+8dwNrZB8PTgOWA QdGV4bIyqtNG7UHQuZ7sVKr2tx0gYJyQ5uZgncEHB5YIuhQ/CyAHrVmO+5/0/xWCLI0g44rF ZJqsYw2JQ2+vayTWbR65rkOiKL8GOVFNZanDg80BRh6qCmCEMXd/tymxvgnvWpHtxMgukexk 4vV9nV4XhxRVYdpLk8mBxsh+AEbHE+nbWgIuJDrmrZDGI2Dha7JFoB0Mi6hbbYd9BdkcHKQ7 6c+S1xOrZL3jX7OIFhb4NNnEOhh8/+BDlyby478p6YsimNa7TgAUbrygGyfVG8usrZy8SvO+ vUbVQwqjcJaCK1xazK12dfuZm2kSMJUrJqa9ng6OMjkE2/WrtnK8ruFNSCdytzbuheT0nYUJ Uwy84cU4p2K/N2C4vYjcn+IT+l1BFr5FViKYruoRLVH6zK/WOoZjA+Fc6tdM5nC1pgSB9c7h XLQqDSzYPzk3nqeHWG1qJ0Hu7pscIrjxyNTIZ5le0TlpblJdoRcL5maDNw22yle8m4D18ERF VrqNoqwW8fObMCHbd6C3m75lzerq1HhrSvLyU4UfprEyAcjOI1C0319SXfYlXDjKXRQyaDZP wxln8uShSitSSnx0AsSAjcUa8Cc7km81+G2WSK3S2wVIAN11awARAQABzS5BbGV4ZXkgTWFr aGFsb3YgPGFsZXhleS5tYWtoYWxvdkBicm9hZGNvbS5jb20+wsGNBBMBCAA3FiEEjLzRtST/ a5u42vOKbM7yHr5SJ3cFAm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s9pGTrO4U 5RoS4gXK65ECcBH8/mumV6oBmLrNxKUrzTczdo9PnkmRyZcAa6AndbjmQDznwxvTZu2LjMPC EuY0 In-Reply-To: <20240615143344.GDZm2mSB-qyB0Vt28Q@fat_crate.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for the report and provided .config file. The problem with DRM_VMWGFX=y when HYPERVISOR_GUEST is not set, i.e arch/x86/kernel/cpu/vmware.c is not built. It is even a problem today. For VMWARE_HYPERCALL alternative to work, vmware guest code must set cpu capabilities properly. The kernel based on the current config file will not work on a SEV-ES enabled machine. DRM_VMWGFX must depend on HYPERVISOR_GUEST similarly to VMWARE_BALLOON, MOUSE_PS2_VMMOUSE and PTP_1588_CLOCK_VMW. Borislav, I'm going to send a fix shortly. It has to be applied before this patchset. Thanks, --Alexey On 6/15/24 7:33 AM, Borislav Petkov wrote: > On Sat, Jun 15, 2024 at 09:22:00PM +0800, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/vmware >> head: ef08e7dc21307b226b5280d5e8cfea687bfd2866 >> commit: e5ac9008b79c59235c34494e555419665022f5e1 [4/8] drm/vmwgfx: Use VMware hypercall API >> config: i386-buildonly-randconfig-002-20240615 (https://download.01.org/0day-ci/archive/20240615/202406152104.FxakP1MB-lkp@intel.com/config) >> compiler: gcc-9 (Ubuntu 9.5.0-4ubuntu2) 9.5.0 >> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240615/202406152104.FxakP1MB-lkp@intel.com/reproduce) >> >> If you fix the issue in a separate patch/commit (i.e. not just a new version of >> the same patch/commit), kindly add following tags >> | Reported-by: kernel test robot >> | Closes: https://lore.kernel.org/oe-kbuild-all/202406152104.FxakP1MB-lkp@intel.com/ >> >> All errors (new ones prefixed by >>): >> >> ld: drivers/gpu/drm/vmwgfx/vmwgfx_msg.o: in function `vmw_open_channel.constprop.0': >>>> vmwgfx_msg.c:(.text+0x203): undefined reference to `vmware_hypercall_slow' >> ld: drivers/gpu/drm/vmwgfx/vmwgfx_msg.o: in function `vmw_recv_msg': >> vmwgfx_msg.c:(.text+0x46f): undefined reference to `vmware_hypercall_slow' >>>> ld: vmwgfx_msg.c:(.text+0x49c): undefined reference to `vmware_hypercall_slow' >> ld: vmwgfx_msg.c:(.text+0x4c3): undefined reference to `vmware_hypercall_slow' >> ld: drivers/gpu/drm/vmwgfx/vmwgfx_msg.o: in function `vmw_close_channel': >> vmwgfx_msg.c:(.text+0x580): undefined reference to `vmware_hypercall_slow' >> ld: drivers/gpu/drm/vmwgfx/vmwgfx_msg.o:vmwgfx_msg.c:(.text+0x729): more undefined references to `vmware_hypercall_slow' follow >> ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_read': >> regmap-spi.c:(.text+0xf): undefined reference to `spi_write_then_read' >> ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_gather_write': >> regmap-spi.c:(.text+0x2b4): undefined reference to `spi_sync' >> ld: drivers/base/regmap/regmap-spi.o: in function `spi_sync_transfer.constprop.0': >> regmap-spi.c:(.text+0x337): undefined reference to `spi_sync' >> ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_async_write': >> regmap-spi.c:(.text+0x445): undefined reference to `spi_async' >> ld: drivers/iio/dac/ad9739a.o: in function `ad9739a_driver_init': >> ad9739a.c:(.init.text+0x10): undefined reference to `__spi_register_driver' >> >> Kconfig warnings: (for reference only) >> WARNING: unmet direct dependencies detected for REGMAP_SPI >> Depends on [n]: SPI [=n] >> Selected by [y]: >> - AD9739A [=y] && IIO [=y] && (SPI [=n] || COMPILE_TEST [=y]) >> >> -- > > Zapping tip:x86/vmware from the tip/master lineup for the time being, until this > is fixed. > > Thx 0day guys for reporting. >