From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: Re: [PATCH] eal: map io resources for non x86 architectures Date: Wed, 16 Dec 2015 14:29:21 +0100 Message-ID: References: <1450269064-23608-1-git-send-email-david.marchand@6wind.com> <20151216131540.GD10020@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" To: Bruce Richardson Return-path: Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by dpdk.org (Postfix) with ESMTP id 3BE9EDE6 for ; Wed, 16 Dec 2015 14:29:22 +0100 (CET) Received: by mail-oi0-f44.google.com with SMTP id y66so24198438oig.0 for ; Wed, 16 Dec 2015 05:29:22 -0800 (PST) In-Reply-To: <20151216131540.GD10020@bricha3-MOBL3> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Bruce, On Wed, Dec 16, 2015 at 2:15 PM, Bruce Richardson < bruce.richardson@intel.com> wrote: > > > +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) > > + /* x86 can not remap ioports, so skip it, remapping code > will > > + * look at dev->mem_resource[i].phys_addr == 0 and skip it > */ > > + if (flags & IORESOURCE_IO) > > + continue; > > +#endif > > As a tangential comment: We maybe could look to make certain preprocessor > defines available as C globals as well. There is no reason that the ifdef > here > could not be implemented as a runtime check in C code. > > Well, instead of having the same information as the preprocessor define, maybe some capability per arch/cpu would be better "arch supports io remap". Maybe we can extend the cpuflags ? -- David Marchand