From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVkSU-0000HP-RT for qemu-devel@nongnu.org; Tue, 16 Feb 2016 13:34:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVkST-000378-Tn for qemu-devel@nongnu.org; Tue, 16 Feb 2016 13:34:46 -0500 Received: from mail-vk0-x229.google.com ([2607:f8b0:400c:c05::229]:33164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVkST-00036s-Pr for qemu-devel@nongnu.org; Tue, 16 Feb 2016 13:34:45 -0500 Received: by mail-vk0-x229.google.com with SMTP id k196so142075136vka.0 for ; Tue, 16 Feb 2016 10:34:45 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1454334712-12360-8-git-send-email-eric.auger@linaro.org> References: <1454334712-12360-1-git-send-email-eric.auger@linaro.org> <1454334712-12360-8-git-send-email-eric.auger@linaro.org> From: Peter Maydell Date: Tue, 16 Feb 2016 18:34:24 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v6 7/8] hw/arm/sysbus-fdt: enable amd-xgbe dynamic instantiation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Auger Cc: Baptiste Reynal , Thomas Huth , eric.auger@st.com, Patch Tracking , Peter Crosthwaite , QEMU Developers , Alex Williamson , qemu-arm , Suravee Suthikulpanit , Paolo Bonzini , thomas.lendacky@amd.com, =?UTF-8?B?QWxleCBCZW5uw6ll?= , Christoffer Dall , David Gibson On 1 February 2016 at 13:51, Eric Auger wrote: > This patch allows the instantiation of the vfio-amd-xgbe device > from the QEMU command line (-device vfio-amd-xgbe,host=""). > > The guest is exposed with a device tree node that combines the description > of both XGBE and PHY (representation supported from 4.2 onwards kernel): > Documentation/devicetree/bindings/net/amd-xgbe.txt. > > There are 5 register regions, 6 interrupts including 4 optional > edge-sensitive per-channel interrupts. > > Some property values are inherited from host device tree. Host device tree > must feature a combined XGBE/PHY representation (>= 4.2 host kernel). > > 2 clock nodes (dma and ptp) also are created. It is checked those clocks > are fixed on host side. > > AMD XGBE node creation function has a dependency on vfio Linux header and > more generally node creation function for VFIO platform devices only make > sense with CONFIG_LINUX so let's protect this code with #ifdef CONFIG_LINUX. > > Signed-off-by: Eric Auger Reviewed-by: Peter Maydell thanks -- PMM