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 C6370C433FE for ; Tue, 11 Oct 2022 02:16:52 +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:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hMaONe/WR7suh9eLd42/+drJwYEA6OXKijcrz8R5wKI=; b=Q7ygVEWBt2uIlY JO6T9sM9syRTVDPwYABOS0hXMHWzjyi6Enw2ICM/+NlE4OEs1Q+5y0WqRhVn6+7AOOTS8EAOTuV6v A0l4tsRFXkaZOyrqSR+76hSX+15rDPuugeVWIkUoGrztzFwBsxFYKxlSQNJtMlVGfRZi9a68vpzCJ msIdo5uJoQhP5HmhAHjeiYzmPHiiaor0x1Ni1vbVGgFjDsWiQTCjwGmWXizqIBY92/KcLu7aKbxfD MWnFSj4PhZPIfXZc5u3SvqF3tHgRqJ8PHdmQLHi1hklUFKI7X6zpwzO5cGhLa4tCpZkfHViVUj3+a LZjkwBmO7DFGfzw5AAjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oi4oC-002zLq-Ch; Tue, 11 Oct 2022 02:15:52 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oi4o9-002zL3-CP for linux-arm-kernel@lists.infradead.org; Tue, 11 Oct 2022 02:15:50 +0000 Received: by mail-il1-x133.google.com with SMTP id y17so6502146ilq.8 for ; Mon, 10 Oct 2022 19:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=H/xYrhJE+jRHh/6xuRZ4OUPEvZUDe865/O/aakyh1Jc=; b=cA3mVR/CGxcV72s28yIpSLl8Ry3QNBNtiqfQRJk1LI87DGdgCtvhtL6ju5NrdFgp0v jYbavGUnyyFdJJdSvAc+k/dXxseV1w+wYt7qd2Z+qBFjnBIe0LXWbBKllfNKCbfjAlGe 4S75Ef/hxbmI7DLha0tUVkEeTJmS1s/2ot+vQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H/xYrhJE+jRHh/6xuRZ4OUPEvZUDe865/O/aakyh1Jc=; b=zJyq6e/eWMYG5N3yys5Nfav1btgr93FYkeF8G+8WWeXOyC6UeZJftygMPxDbYh888b xjrQPI7zqA5WIUpTrSmSfglqrb5jMyk4Hqh9H/PnolHgMlUU/GXB+3MZgSHZ1GBY0rXg h0X7C6aJ7pFQN8WZfh5jT+VvqlEVQKttV1fv4v7QeHWCkQ7OS/dxmSfpjZVegvKpZsTb bClYR5NPsuMQ8ktXfa74mT1VsnagksDCWnnvFBQCluY6u8eOplEnOpe6lf8SBaKp0G8C lmnr3XKkSIJWhW9mXGdNqA+ehXuwniQ0Ic+qbXswUpXsSm7l1mKAh1k6KE4WuBoBl+WS smPw== X-Gm-Message-State: ACrzQf3kyDXLilbUNFLQYMjN94rThzkitU0ZPf7EvcfnITZ9CNkLZi7o 6Xudr8YFNFncyy+/LC0VsEs2yQrYt4q1Wf++uPPC9Q== X-Google-Smtp-Source: AMsMyM5JQvbMqETxKQHEq6txeP+r87znPWfN/6DVQDwiA28XRis95uxqOPRsPOisPJqXnkwrVBqASlH34ysfeq3CL9g= X-Received: by 2002:a05:6e02:1749:b0:2fa:5de2:4cc9 with SMTP id y9-20020a056e02174900b002fa5de24cc9mr10531673ill.214.1665454547546; Mon, 10 Oct 2022 19:15:47 -0700 (PDT) MIME-Version: 1.0 References: <20220920082005.2459826-1-denik@chromium.org> <20220922053145.944786-1-denik@chromium.org> <87h70zk83g.wl-maz@kernel.org> <87sfjxhh4k.wl-maz@kernel.org> In-Reply-To: <87sfjxhh4k.wl-maz@kernel.org> From: Denis Nikitin Date: Mon, 10 Oct 2022 19:15:36 -0700 Message-ID: Subject: Re: [PATCH v2] KVM: arm64: nvhe: Fix build with profile optimization To: Marc Zyngier Cc: Catalin Marinas , Will Deacon , James Morse , Alexandru Elisei , Nick Desaulniers , David Brazdil , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, Manoj Gupta X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_191549_476878_C30221EE X-CRM114-Status: GOOD ( 16.09 ) 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 On Sat, Oct 8, 2022 at 7:22 PM Marc Zyngier wrote: > > On Thu, 06 Oct 2022 17:28:17 +0100, > Denis Nikitin wrote: > > > > Hi Mark, > > s/k/c/ > > > > > This problem currently blocks the PGO roll on the ChromeOS kernel and > > we need some kind of a solution. > > I'm sorry, but I don't feel constrained by your internal deadlines. I > have my own... > > > Could you please take a look? > > I have asked for a reproducer. All I got for an answer is "this is > hard". Providing a profiling file would help, for example. Could you please try the following profile on the 5.15 branch? $ cat < prof.txt kvm_pgtable_walk:100:10 2: 5 3: 5 5: 5 6: 5 10: 5 10: _kvm_pgtable_walk:50 5: 5 7: 5 10: 5 13.2: 5 14: 5 16: 5 __kvm_pgtable_walk:5 13: kvm_pgd_page_idx:30 2: __kvm_pgd_page_idx:30 2: 5 3: 5 5: 5 2: kvm_granule_shift:5 3: 5 EOF $ make LLVM=1 ARCH=arm64 KCFLAGS=-fprofile-sample-use=prof.txt -j8 vmlinux Thanks, Denis > > M. > > -- > Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel