From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F8C4ECAAD8 for ; Tue, 20 Sep 2022 08:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=M37an0uLNJ3oASbPtyw4aRdbUn0U3B9JYjVs2a+ylnY=; b=fJF9Pr4auN0YxI 3QgvbrxzTZYJiWkyj2YYSv+j+IuEl7yussOz8VgTw6mhaaEdHJo/rMIGlpTx8CaoHuhcVFclRuaNa ajNyjy5yEyjCemY+ZqgQzd6B3iLpgYV1quDccieV8Y6P655+rFi5wZGiaS87RwHrk4Y7ZT18Sil08 dDsLSCQ4qEVGcvqfZ4dOijJkkhSggBbmugyPi5Ck1LgGytK7SozECve7VREsi3ub/4+arxBvEP+Hq OAt7XGAQMLdCLzN3PczDFM2oshTBkRLJqelj7w+p8PB8C4GmIdLKNcSJeACASPXtnYU64JK36n2vG rt6fyxfnFGZV2/ectjEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaYV1-001kTK-EY; Tue, 20 Sep 2022 08:21:00 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaYUw-001kNO-9C for linux-arm-kernel@lists.infradead.org; Tue, 20 Sep 2022 08:20:55 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 78so1781915pgb.13 for ; Tue, 20 Sep 2022 01:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=VQpZRPjw97dLIW56sK+yQ0p4A8fqcnFL6FG6rvfKDvs=; b=Xt70jeatjEGHB9EdIqy92nlbkciC6fZlZYjqNoH+QKx8/l1yhaspy+XgHws9D61sOb WYK615yf16Hu8C3OnG8qdFWCJzdlpGMwHrGuMJvHKiwtA70LjZ5Xfo/YMjCbOzTrrktr cLkWAgbOk3E5wnQpUP235mzzn8fG6HNWn8gGk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=VQpZRPjw97dLIW56sK+yQ0p4A8fqcnFL6FG6rvfKDvs=; b=sKEJBc9SU3/XLmc4ASGcbbEk0atOKnut9jjpt67X1IJaaAfic6brBJobv4xCWRHqS6 7uVdolZk+ZwFb7X+cLuzdtNX4LsarLYzoP8XGzYft4NRKTtgEluc+vCudpT79i53+udf 7fZveY1xlwvuH00Y5A85DC60M1HDIMYJ0vRf4OQ6KV3su4Z/jzupvrX/tvath4ayjxZe 4SG4YMHcgApVJdDnUNneHhuQGAIZFN5DAeLfGzeg5YqFo/8ym7SnsrXF1SRhLzVBqIYP KVWjQdwACUr1geQChfheMwp5PO6LP+jWFpk3pD3lkSIyTjpp1hDp2NlKOiLnYkHi8kx+ K1sw== X-Gm-Message-State: ACrzQf2XY3dMU4rW10H9OPABCvg56vEiNWDhMSbU1xatlxgrB/bpEEuE Ry75288TZ1sL9xKf48NABhxYUg== X-Google-Smtp-Source: AMsMyM4rATdCzBtbaTbAdmV/XQanotaAz+eodIb2aEN5mTYDvcY/JSVpRneYmgaVzGvZe9+kOHwPTg== X-Received: by 2002:a63:d905:0:b0:439:c930:85a5 with SMTP id r5-20020a63d905000000b00439c93085a5mr15724205pgg.474.1663662050133; Tue, 20 Sep 2022 01:20:50 -0700 (PDT) Received: from localhost ([2620:15c:2ce:200:3001:aa57:999b:fd4a]) by smtp.gmail.com with UTF8SMTPSA id 14-20020a17090a0cce00b001fd9c63e56bsm1820259pjt.32.2022.09.20.01.20.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 01:20:49 -0700 (PDT) From: Denis Nikitin To: Marc Zyngier , Catalin Marinas , Will Deacon Cc: James Morse , Alexandru Elisei , Nick Desaulniers , Manoj Gupta , David Brazdil , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, Denis Nikitin Subject: [PATCH] KVM: arm64: nvhe: Disable profile optimization Date: Tue, 20 Sep 2022 01:20:05 -0700 Message-Id: <20220920082005.2459826-1-denik@chromium.org> X-Mailer: git-send-email 2.37.3.968.ga6b4b080e4-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_012054_372310_4AA8909C X-CRM114-Status: GOOD ( 12.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Kernel build with -fprofile-sample-use raises the following failure: error: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.tmp.o: Unexpected SHT_REL section ".rel.llvm.call-graph-profile" SHT_REL is generated by the latest lld, see https://reviews.llvm.org/rGca3bdb57fa1ac98b711a735de048c12b5fdd8086. Disable profile optimization in kvm/nvhe to fix the build with AutoFDO. Signed-off-by: Denis Nikitin --- arch/arm64/kvm/hyp/nvhe/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/kvm/hyp/nvhe/Makefile b/arch/arm64/kvm/hyp/nvhe/Makefile index b5c5119c7396..6a6188374a52 100644 --- a/arch/arm64/kvm/hyp/nvhe/Makefile +++ b/arch/arm64/kvm/hyp/nvhe/Makefile @@ -89,6 +89,9 @@ quiet_cmd_hypcopy = HYPCOPY $@ # Remove ftrace, Shadow Call Stack, and CFI CFLAGS. # This is equivalent to the 'notrace', '__noscs', and '__nocfi' annotations. KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_FTRACE) $(CC_FLAGS_SCS) $(CC_FLAGS_CFI), $(KBUILD_CFLAGS)) +# Profile optimization creates SHT_REL section '.llvm.call-graph-profile' for +# the hot code. SHT_REL is currently not supported by the KVM tools. +KBUILD_CFLAGS += $(call cc-option,-fno-profile-sample-use,-fno-profile-use) # KVM nVHE code is run at a different exception code with a different map, so # compiler instrumentation that inserts callbacks or checks into the code may -- 2.37.3.968.ga6b4b080e4-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel