Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4120523ybg; Fri, 25 Oct 2019 13:39:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNc49iR92R0LvTmF2P7V3oRpW1hS0Z7kLb+jNNEgIBGrn/mQE9tHRoTG0rXwejTugZNiON X-Received: by 2002:aa7:d852:: with SMTP id f18mr6044867eds.110.1572035958847; Fri, 25 Oct 2019 13:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572035958; cv=none; d=google.com; s=arc-20160816; b=e2seLSAU/SJYRgeGTMteti86wBUD3fTcikpBgyE4V2eYA6kFxcA2xCz2yScqAEn8wA 5SyqSWpWQ6p/eJetPpFPiO4fxy6EB0Ld5iV687yCM6pKPxViNHwLHwo1HjCB1ZZ4XMey vOIeKoAsNsqfPuEENt72NaLZZ0kIzZAztdB9v9Lhzge2tPww7GKsb52wQkPYFiC5uxTN rFf23+aNHhz35XnVq2LDrJh0/WRbzg1RJ2jy7YfQssvQ3gjYYZgdR72lzHf4W8LVDhPI 47JWGCH4mmA9pPyVZNcajn1tpZOsfTcmT7iJq6YkngMvEjvwZrY4VeG8cA07cjMpcEmR /e2g== 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=ZEMxOixcPClOY216QFWUQwYRspzyWMnPR2lR9F3R/BY=; b=o8L/3/XMAWqKiJG7AOPft4vSHr92mN7KhN8R2nM7gNKa8TcEEOs82DJkGz4tdICXWg FOB6zddxuOmRT0EmXIa27/tDo/+9TbVzJhNPOnx16VabCfJX0ta1tX9/X4yX67KY9RD4 y412ZOP/PELZnU4QLy4caXhhQIiihJZWiQQLmLURPHN4nEDu+3iAYkN5nFNBOY9llqLT ffVnpA8ejxKvKV3DF+j5Ix3ZGi+y9x9vQ8qwBLEAiGiWRJgSxfp2hBOMh/z4g5n4Tfmk iu3G9gkyA7fsdfLpoiNSTlI+PD+jTshyRMug3uVTW29w2bywQk0KzbuGTu2e/FwRbvBc UDhw== 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 s15si1924705edm.333.2019.10.25.13.38.54; Fri, 25 Oct 2019 13:39:18 -0700 (PDT) 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 S2409471AbfJYPD4 (ORCPT + 99 others); Fri, 25 Oct 2019 11:03:56 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:5040 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408186AbfJYPDz (ORCPT ); Fri, 25 Oct 2019 11:03:55 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id x9PF3jbx023942; Fri, 25 Oct 2019 17:03:45 +0200 Date: Fri, 25 Oct 2019 17:03:45 +0200 From: Willy Tarreau To: Andy Lutomirski Cc: dev@dpdk.org, Thomas Gleixner , Peter Zijlstra , LKML Subject: Re: Please stop using iopl() in DPDK Message-ID: <20191025150345.GE23687@1wt.eu> References: <20191025064225.GA22917@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 25, 2019 at 07:45:47AM -0700, Andy Lutomirski wrote: > But, for uses like DPDK, /sys/.../resource0 seems like a *far* better > API, since it actually uses the kernel's concept of which io range > corresponds to which device instead of hoping that the mappings don't > change out from under user code. And it has the added benefit that > it's restricted to a single device. For certain such uses with real device management, very likely yes. It's just that in a number of programs using hard-coded ports to access stupid devices with no driver (and often even no name), such an approach could be overkill, and these are typically the annoyingly itchy ones which could require your config entry to remain enabled. I'll add to my todo list to have a look at this as time permits. Cheers, Willy