From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhXjy-00087b-GG for qemu-devel@nongnu.org; Wed, 07 Sep 2016 03:57:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhXjt-00076O-J1 for qemu-devel@nongnu.org; Wed, 07 Sep 2016 03:57:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhXjt-000768-DH for qemu-devel@nongnu.org; Wed, 07 Sep 2016 03:57:45 -0400 References: <1472736127-18137-1-git-send-email-marcel@redhat.com> <6c9103e7-70ad-55c6-5533-d6d9bbaa39b4@redhat.com> <1473161728.31857.20.camel@redhat.com> From: Marcel Apfelbaum Message-ID: <5915c427-e5d1-6a07-143f-f7ca9a864cd7@redhat.com> Date: Wed, 7 Sep 2016 10:57:36 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC] docs: add PCIe devices placement guidelines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek , Gerd Hoffmann Cc: qemu-devel@nongnu.org, mst@redhat.com, Peter Maydell , Drew Jones , Laine Stump , Andrea Bolognani , Alex Williamson On 09/07/2016 10:53 AM, Laszlo Ersek wrote: > On 09/06/16 13:35, Gerd Hoffmann wrote: >> Hi, >> [...] >> >> Side note: the linux kernel allocates io space nevertheless, so >> checking /proc/ioports after boot doesn't tell you what the firmware >> did. > > Yeah, we've got to convince Linux to stop doing that. Earlier Alex > mentioned the "hpiosize" and "hpmemsize" PCI subsystem options for the > kernel: > > hpiosize=nn[KMG] The fixed amount of bus space which is > reserved for hotplug bridge's IO window. > Default size is 256 bytes. > hpmemsize=nn[KMG] The fixed amount of bus space which is > reserved for hotplug bridge's memory window. > Default size is 2 megabytes. > > This document (once complete) would be the basis for tweaking that stuff > in the kernel too. Primarily, "hpiosize" should default to zero, because > its current nonzero default (which gets rounded up to 4KB somewhere) is > what exhausts the IO space, if we have more than a handful of PCI > Express downstream / root ports. > > Maybe we can add a PCI quirk for this to the kernel, for QEMU's PCI > Express ports (all of them -- root, upstream, downstream). > Yes, once we will have our "own" controllers and not Intel emulations as today. Thanks, Marcel > Thanks > Laszlo >