From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753444AbbCBDgo (ORCPT ); Sun, 1 Mar 2015 22:36:44 -0500 Received: from mail-bl2on0121.outbound.protection.outlook.com ([65.55.169.121]:12096 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752240AbbCBDgn convert rfc822-to-8bit (ORCPT ); Sun, 1 Mar 2015 22:36:43 -0500 From: KY Srinivasan To: Greg KH , Jake Oshins CC: "rafael.j.wysocki@intel.com" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "vkuznets@redhat.com" Subject: RE: [PATCH 1/3] drivers:pnp Add support for descendants claiming memory address space Thread-Topic: [PATCH 1/3] drivers:pnp Add support for descendants claiming memory address space Thread-Index: AQHQSt9jeBdHWv2JA0ium6Nk6p6BrZ0InaWAgAAAOSA= Date: Mon, 2 Mar 2015 03:36:40 +0000 Message-ID: References: <1424202111-14461-1-git-send-email-jakeo@microsoft.com> <20150302033349.GA31395@kroah.com> In-Reply-To: <20150302033349.GA31395@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2601:8:9b00:fd:2979:f26:a1bd:2a37] authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1217; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006);SRVR:BN3PR0301MB1217;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1217; x-forefront-prvs: 0503FF9A3E x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(51704005)(13464003)(2950100001)(102836002)(2900100001)(1511001)(92566002)(86362001)(19580395003)(19580405001)(50986999)(54356999)(76176999)(87936001)(2656002)(106116001)(74316001)(122556002)(77156002)(62966003)(2421001)(46102003)(33656002)(76576001)(2561002)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR0301MB1217;H:BY2PR0301MB0711.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: microsoft.onmicrosoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2015 03:36:40.1980 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1217 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Greg KH [mailto:gregkh@linuxfoundation.org] > Sent: Sunday, March 1, 2015 7:34 PM > To: Jake Oshins > Cc: rafael.j.wysocki@intel.com; KY Srinivasan; linux-kernel@vger.kernel.org; > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com; > vkuznets@redhat.com > Subject: Re: [PATCH 1/3] drivers:pnp Add support for descendants claiming > memory address space > > On Tue, Feb 17, 2015 at 11:41:49AM -0800, Jake Oshins wrote: > > This patch adds some wrapper functions in the pnp layer. The intent > > is to allow memory address space claims by devices which are > > descendants (a child or grandchild of) a device which is already part > > of the pnp layer. This allows a device to make a resource claim that > > doesn't conflict with its "aunts" and "uncles." > > > > This is useful in a Hyper-V VM because some paravirtual "devices" need > > memory-mapped I/O space, and their aunts and uncles can be PCI devices. > > Furthermore, the hypervisor expresses the possible memory address > > combinations for the devices in the VM through the ACPI namespace. > > The paravirtual devices need to suballocate from the ACPI nodes, and > > they need to avoid conflicting with choices that the Linux PCI code > > makes about the PCI devices in the VM. > > > > It might seem like this should be done in the platform layer rather > > than the pnp layer, but the platform layer assumes that the > > configuration of the devices in the machine are static, or at least > > expressed by firmware in a static fashion. The nature of a Hyper-V VM > > is that new devices can be added while the machine is running, and the > > potential configurations for them are expressed as part of the > > paravirtual communications channel. This much more naturally aligns > > with the pnp layer. > > > > Signed-off-by: Jake Oshins > > --- > > drivers/pnp/Makefile | 2 +- > > drivers/pnp/base.h | 2 + > > drivers/pnp/core.c | 1 + > > drivers/pnp/descendant.c | 117 > +++++++++++++++++++++++++++++++++++++++++++++++ > > include/linux/pnp.h | 23 ++++++++++ > > 5 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 > > drivers/pnp/descendant.c > > At first glance, this looks ok. Does it change the sysfs layout of hyperv > devices? > > also, I'd like KY to sign-off on it, verifying that he at least tested the series and > it works for him. Greg, Dan had some comments that Jake will address and resend. Also, we are waiting for Rafael to review this patch. Regards, K. Y > > thanks, > > greg k-h