Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1125003imm; Thu, 5 Jul 2018 15:25:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfN4ManiY7HnIIDLfRC1vUmQxV+ByRQIN5Ds8MXTkrc7mkZtNCt/mfKTgNfdGhky0xdpxET X-Received: by 2002:a17:902:24c7:: with SMTP id l7-v6mr7891529plg.170.1530829543591; Thu, 05 Jul 2018 15:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530829543; cv=none; d=google.com; s=arc-20160816; b=l4Pt/Zfd/JETkDDkdL37ELmuqRcA7D3Oanp7bQN+m94PZ3teNjGhsaqLzwZKCAUrC5 kPLY5ykVAI8AS9xHCmm8Fy3JA1XJbJcEyOEydybbJ2J+7mQNH8uns4SOfIbIntVWw7Xt +JjGLX5oCCUQdjeNesu8du6R3J1xXUmiYlUGqYeWepm8pzxf4znQZt27SInhwqWmBOaD hod/5xHl6970DVIHplaku9AZJm96F7R0VVlXnAXBSf2e006h/7/r1hNiyk+ZdtIFKeEd m7WRTCPifx8cEqlECmDb/1DctRNlQCXk00wr/i4y2FqRbNAumvm9VxnU1G+i4soN8sTv /o/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=QJfz60KODRdFqOqeBvtyLUqnDFpl3mt8rRqaUZ6ento=; b=iGbHpnHrvCySpAUsPavNBrye0fUgtgE/efP8q48NhogiXJWATJmpj9btWC12KxdaHK J2BlA4Nk4du2uHWCEsfXnSLsIG+Fc3BuxlSUA8GkWKEkMKH6rsSqKFmYn4VyvFaxmb5U CmPjLVz9SHYYSumYnUQ50uxIVGR/ziYNxzEhDADv21+bRz8Sd4Bv6TgyUpr9SElFwETz KV+UjpyPphZ1qDoX5mUOZm9JvtADzTasHpng8UzQEbu+5mu0mIxmjQeqlGulAsiSWOuK l4m+HQUyBGqQ97/yV8rYhyXVtEO6tVfgt6jF/Cj8Me9nSMzGpDuDd+5i7XRhmYlwNFX4 6DEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="qm48Z/Qh"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y187-v6si6326209pgd.459.2018.07.05.15.25.29; Thu, 05 Jul 2018 15:25:43 -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=fail header.i=@gmail.com header.s=20161025 header.b="qm48Z/Qh"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753555AbeGEWXI (ORCPT + 99 others); Thu, 5 Jul 2018 18:23:08 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39451 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753421AbeGEWXG (ORCPT ); Thu, 5 Jul 2018 18:23:06 -0400 Received: by mail-wr1-f68.google.com with SMTP id h10-v6so2296410wre.6 for ; Thu, 05 Jul 2018 15:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=QJfz60KODRdFqOqeBvtyLUqnDFpl3mt8rRqaUZ6ento=; b=qm48Z/QhJ8vUvisEaSpzTeGJoLC/TIUDTeLalgXPCB48MUFNkkNCoUv7MrHwYcHg3f L6Nw3+/epTtzUbL1/QS7smTNI+FRcnQgHt/2oCcpRKkHYrQ9BA7WLRolr2/1TlY8P1pi svodDr0tUMzYjHwddhRiZ1IuUjevfBsVt0sAzb8mQBfLlp6p2SGI8wVblLbzDfzFt6iX QJVwubnuIkQu/luGRpd+40JP+fvAtztS2hENJdOn3JyUcdcow2xh7QAsj5K0seykJOUZ vbg3DT2DaCBVhQmDzB0wjFAj3oBMAsiMMB94kAWM8fo/PFm0+SJoqZo9f5MfIXzq4trb PW8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=QJfz60KODRdFqOqeBvtyLUqnDFpl3mt8rRqaUZ6ento=; b=kH5/aowWONz2OaqUslHivQ7QO7JsfIlW+FzcomNLr/l1Uij4tsOVhFfOD/lteKmJdl UPXdKKzgTiMAqltoo5p41cVuE3cyYzR/RHfpDNJ21c3hz11pRjhTpNAvAEtTULR7lFc7 EPm6e+GnQiboIJ/XTPTk3jQcYq2QzBc7Fm4rbVx2YCjv+EkS0jFrgGpASKOcitlv5jnL dKmcTsspr908QYcBL8I4AuiX77mUZAInsowtmzuKffyE4mSggzG3SpV3r30r13OBSlMq netKkXLcf9CO9/J47DNYT1ECzwfiZl1wLt9LrL4bMiXRWukF216kYyL9qHU/fVI7deWo a7OA== X-Gm-Message-State: APt69E3yTNSHnF0z/zBsgZ+L7+AqaZPri0dLOa/NWqTi3lzCp3ci1Maz +vGeALiUjp5NR2wm0+DhV/Y= X-Received: by 2002:adf:f342:: with SMTP id e2-v6mr5599048wrp.161.1530829385074; Thu, 05 Jul 2018 15:23:05 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id a2-v6sm5111917wmb.6.2018.07.05.15.23.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jul 2018 15:23:04 -0700 (PDT) Date: Fri, 6 Jul 2018 00:23:02 +0200 From: Ingo Molnar To: KY Srinivasan Cc: "x86@kernel.org" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" , "tglx@linutronix.de" , "hpa@zytor.com" , Stephen Hemminger , "Michael Kelley (EOSG)" , "vkuznets@redhat.com" Subject: Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment. Message-ID: <20180705222302.GB5410@gmail.com> References: <20180703230155.15160-1-kys@linuxonhyperv.com> <20180704161039.GA23658@gmail.com> <20180705153820.GA26768@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * KY Srinivasan wrote: > > > > -----Original Message----- > > From: Ingo Molnar On Behalf Of Ingo Molnar > > Sent: Thursday, July 5, 2018 8:38 AM > > To: KY Srinivasan > > Cc: x86@kernel.org; gregkh@linuxfoundation.org; linux- > > kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepfle.de; > > apw@canonical.com; jasowang@redhat.com; tglx@linutronix.de; > > hpa@zytor.com; Stephen Hemminger ; Michael > > Kelley (EOSG) ; vkuznets@redhat.com > > Subject: Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI > > enlightenment. > > > > > > * KY Srinivasan wrote: > > > > > > > > > > > > -----Original Message----- > > > > From: Ingo Molnar On Behalf Of Ingo > > Molnar > > > > Sent: Wednesday, July 4, 2018 9:11 AM > > > > To: KY Srinivasan > > > > Cc: x86@kernel.org; gregkh@linuxfoundation.org; linux- > > > > kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepfle.de; > > > > apw@canonical.com; jasowang@redhat.com; tglx@linutronix.de; > > > > hpa@zytor.com; Stephen Hemminger ; > > Michael > > > > Kelley (EOSG) ; > > vkuznets@redhat.com > > > > Subject: Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI > > > > enlightenment. > > > > > > > > > > > > * kys@linuxonhyperv.com wrote: > > > > > > > > > From: "K. Y. Srinivasan" > > > > > > > > > > The IPI hypercalls depend on being able to map the Linux notion of CPU > > ID > > > > > to the hypervisor's notion of the CPU ID. The array hv_vp_index[] > > provides > > > > > this mapping. Code for populating this array depends on the IPI > > > > functionality. > > > > > Break this circular dependency. > > > > > > > > > > Fixes: 68bb7bfb7985 ("X86/Hyper-V: Enable IPI enlightenments") > > > > > > > > > > Signed-off-by: K. Y. Srinivasan > > > > > Tested-by: Michael Kelley > > > > > --- > > > > > arch/x86/hyperv/hv_apic.c | 5 +++++ > > > > > arch/x86/hyperv/hv_init.c | 5 ++++- > > > > > arch/x86/include/asm/mshyperv.h | 2 ++ > > > > > 3 files changed, 11 insertions(+), 1 deletion(-) > > > > > > > > Ugh, this patch wasn't even build tested, on 64-bit allyes/allmodconfig: > > > > > > > > arch/x86/hyperv/hv_apic.c: In function ‘__send_ipi_mask’: > > > > arch/x86/hyperv/hv_apic.c:171:4: error: label ‘ipi_mask_done’ used but > > not > > > > defined > > > > scripts/Makefile.build:317: recipe for target 'arch/x86/hyperv/hv_apic.o' > > > > failed > > > > make[2]: *** [arch/x86/hyperv/hv_apic.o] Error 1 > > > > > > Sorry Ingo. I had a clean build on the linux-next tree (tag: next-20180702) > > that > > > I used to base this patch. What was the tree you applied the patch to? > > > > If you look at the error message, it won't build against *any* tree, because > > there's no 'ipi_mask_done' label either in the kernel source, or introduced > > by the patch. > > > > So whatever tree you used it on, if you build arch/x86/hyperv/hv_apic.o it > > should > > be broken. > > Ingo, > > I am confused. The label ipi_mask_done was introduced in this patch > (the patch under question fixes a circular dependency in this patch): > > commit 68bb7bfb7985df2bd15c2dc975cb68b7a901488a > Author: K. Y. Srinivasan > Date: Wed May 16 14:53:31 2018 -0700 > > X86/Hyper-V: Enable IPI enlightenments > > Hyper-V supports hypercalls to implement IPI; use them. > > Signed-off-by: K. Y. Srinivasan > Signed-off-by: Thomas Gleixner > Reviewed-by: Michael Kelley > > This patch was committed by Thomas some weeks ago and is in linux-next. > This patch is also in 4.18-rc3. And then that name was changed to a different label in: 4bd06060762b: x86/hyper-v: Use cheaper HVCALL_SEND_IPI hypercall when possible So maybe you were testing on an older kernel. Could you try the latest -tip? Thanks, Ingo