Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383638

Re: [PATCH 02/19] io-mapping: Specify mapping size for io_mapping_map_wc()

From "Luis R. Rodriguez" <mcgrof@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 02/19] io-mapping: Specify mapping size for io_mapping_map_wc()
Date 2016-04-20 21:00 +0200
Message-ID <rq5vY-3Ui-9@gated-at.bofh.it> (permalink)
References <rq5mi-3Pg-23@gated-at.bofh.it> <rq5mi-3Pg-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Apr 20, 2016 at 07:42:13PM +0100, Chris Wilson wrote:
> The ioremap() hidden behind the io_mapping_map_wc() convenience helper
> can be used for remapping multiple pages. Extend the helper so that
> future callers can use it for larger ranges.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> Cc: Daniel Vetter <daniel.vetter@intel.com>
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Cc: David Airlie <airlied@linux.ie>
> Cc: Yishai Hadas <yishaih@mellanox.com>
> Cc: Dan Williams <dan.j.williams@intel.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
> Cc: David Hildenbrand <dahi@linux.vnet.ibm.com>
> Cc: Luis R. Rodriguez <mcgrof@kernel.org>
> Cc: intel-gfx@lists.freedesktop.org
> Cc: dri-devel@lists.freedesktop.org
> Cc: netdev@vger.kernel.org
> Cc: linux-rdma@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org

We have 2 callers today, in the future, can you envision
this API getting more options? If so, in order to avoid the
pain of collateral evolutions I can suggest a descriptor
being passed with the required settings / options. This lets
you evolve the API without needing to go in and modify
old users. If you choose not to that's fine too, just
figured I'd chime in with that as I've seen the pain
with other APIs, and I'm putting an end to the needless
set of collateral evolutions this way.

Other than that possible API optimization:

Reviewed-by: Luis R. Rodriguez <mcgrof@kernel.org>

  Luis

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 02/19] io-mapping: Specify mapping size for io_mapping_map_wc() Chris Wilson <chris@chris-wilson.co.uk> - 2016-04-20 20:50 +0200
  Re: [PATCH 02/19] io-mapping: Specify mapping size for  io_mapping_map_wc() "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-04-20 21:00 +0200
    Re: [PATCH 02/19] io-mapping: Specify mapping size for  io_mapping_map_wc() Chris Wilson <chris@chris-wilson.co.uk> - 2016-04-20 21:20 +0200
      Re: [PATCH 02/19] io-mapping: Specify mapping size for  io_mapping_map_wc() "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-04-20 23:30 +0200

csiph-web