Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp714561imu; Tue, 27 Nov 2018 05:21:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/W5DTglyU1I+srUlr1dXF9+q1upKlsVdpsSNMLLYw2e4egYECosBzkJG38IHPt7tAEYRDes X-Received: by 2002:a17:902:5a4d:: with SMTP id f13mr33365380plm.49.1543324864164; Tue, 27 Nov 2018 05:21:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543324864; cv=none; d=google.com; s=arc-20160816; b=rP8jijqTBk4Iiwu3Id2Okalh1ri6nWhCpstUhTRKOPIomqym+kSLkU5jbAz3cfSEHP IQmE/kgcYWYCJ5GiXDzJyrmb53TlhOSmLPZeMftSaBWFX2mSi84XcgR/eexgVb2QncGJ TH5EdV4FkE0uh6D8nhjY3dDGUsKM0O14s51GTFA48VqckAVoH48A0Okrk/C2CgPqwLPu BGiunJxPKoMonqab7WWD32WMc1tzUyu+n+Vk5r4S5neKFa036vVzeR1F60p2wmu7lJ/k yu/vfrFWZVLcMaHe9CPIiY44r1DAP/aj6ehm0r2H3IdwWZM3E+MPllXJ+KseQBC9X6LO lxTA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xas9YTpHBctHFh3+N+1co6ZrGglxqGUnHOmoY2J63L0=; b=AIOQ3H4/S1iw6z1FbQzkVrCuqqyKCLgcH/Jgjyky13NVUjEbkA6rkcUw75RCL5yPgU t6CT+hvSMRlW5pkrBWxovbWOaBW6A9buXnUt1v0QxbQcZZtWxhLPzJ7zWXjHuxMUthjx bas3UQFSGVB1gGB7SGDiw6DB0Nw/lCI7LfcRaDWjS8UVFuDrqg6GlYJ7BmnEdP8lK8fu yrXFdrjjM1hwewKv/5sZExdy01NUSInFcUuLA1VKBkC/X337TY1if1GlEwQNDR7U7Hhs pZnMzLL8lDGQZkDnfNYuFW2eenrI4WtNMsjiLb7nfzp2UIoS/AroyEN7dDS02awu/rVx jpqQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si3712036pgk.341.2018.11.27.05.19.24; Tue, 27 Nov 2018 05:21:04 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730572AbeK0VQN (ORCPT + 99 others); Tue, 27 Nov 2018 16:16:13 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:60734 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbeK0VQN (ORCPT ); Tue, 27 Nov 2018 16:16:13 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EB4063563; Tue, 27 Nov 2018 02:18:47 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B9D703F575; Tue, 27 Nov 2018 02:18:47 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 6D20C1AE0A0D; Tue, 27 Nov 2018 10:19:05 +0000 (GMT) Date: Tue, 27 Nov 2018 10:19:05 +0000 From: Will Deacon To: Greg KH Cc: Michael Kelley , KY Srinivasan , "catalin.marinas@armm.com" , "mark.rutland@arm.com" , "marc.zyngier@arm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" , Stephen Hemminger , vkuznets Subject: Re: [PATCH 3/4] Drivers: hv: vmbus: Add hooks for per-CPU IRQ Message-ID: <20181127101904.GA2928@arm.com> References: <20181122030914.16274-1-kys@linuxonhyperv.com> <20181122031059.16338-1-kys@linuxonhyperv.com> <20181122031059.16338-3-kys@linuxonhyperv.com> <20181126192101.GC32208@kroah.com> <20181126195727.GA9957@kroah.com> <20181127062056.GA30285@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181127062056.GA30285@kroah.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 27, 2018 at 07:20:56AM +0100, Greg KH wrote: > On Mon, Nov 26, 2018 at 08:56:50PM +0000, Michael Kelley wrote: > > From: Greg KH Monday, November 26, 2018 11:57 AM > > > > > > > You created "null" hooks that do nothing, for no one in this patch > > > > > series, why? > > > > > > > > > > > > > hv_enable_vmbus_irq() and hv_disable_vmbus_irq() have non-null > > > > implementations in the ARM64 code in patch 2 of this series. The > > > > implementations are in the new file arch/arm64/hyperv/mshyperv.c. > > > > Or am I misunderstanding your point? > > > > > > So you use a hook in an earlier patch and then add it in a later one? > > > > > > Shouldn't you do it the other way around? As it is, the earlier patch > > > should not work properly, right? > > > > The earlier patch implements the hook on the ARM64 side but it is > > unused -- it's not called. The later patch then calls it. Wouldn't the > > other way around be backwards? > > Ah, it wasn't obvious that the previous patch added it at all, why not > just make that addition part of this patch? > > > The general approach is for patches 1 and 2 of the series to provide > > all the new code under arch/arm64 to enable Hyper-V. But the code > > won't get called (or even built) with just these two patches because > > CONFIG_HYPERV can't be selected. Patch 3 is separate because it > > applies to architecture independent code and arch/x86 code -- I thought > > there might be value in keeping the ARM64 and x86 patches distinct. > > Patch 4 applies to architecture independent code, and enables the > > ARM64 code in patches 1 and 2 to be compiled and run when > > CONFIG_HYPERV is selected. > > > > If combining some of the patches in the series is a better approach, I'm > > good with that. > > Ok, that makes more sense, if it is easier to get the ARM people to > review this, that's fine. Doesn't seem like anyone did that yet :( It's on the list, but thanks for having a look as well! Will