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


Groups > linux.kernel > #1383907

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Move ioremap_wc tracking onto VMA

From Daniel Vetter <daniel@ffwll.ch>
Newsgroups linux.kernel
Subject Re: [Intel-gfx] [PATCH 4/4] drm/i915: Move ioremap_wc tracking onto VMA
Date 2016-04-21 09:30 +0200
Message-ID <rqhdM-5mD-7@gated-at.bofh.it> (permalink)
References (1 earlier) <rpWsG-5yx-25@gated-at.bofh.it> <rpWsG-5yx-27@gated-at.bofh.it> <rpWsG-5yx-23@gated-at.bofh.it> <rpYkO-70Z-13@gated-at.bofh.it> <rq7R9-6eA-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Apr 20, 2016 at 11:27:27PM +0200, Luis R. Rodriguez wrote:
> On Wed, Apr 20, 2016 at 01:17:30PM +0200, Daniel Vetter wrote:
> > On Wed, Apr 20, 2016 at 11:10:54AM +0200, Luis R. Rodriguez wrote:
> > > Reason I ask is since I noticed a while ago a lot of drivers
> > > were using info->fix.smem_start and info->fix.smem_len consistently
> > > for their ioremap'd areas it might make sense instead to let the
> > > internal framebuffer (register_framebuffer()) optionally manage the
> > > ioremap_wc() for drivers, given that this is pretty generic stuff.
> > 
> > All that legacy fbdev stuff is just for legacy support, and I prefer to
> > have that as dumb as possible. There's been some discussion even around
> > lifting the "kick out firmware fb driver" out of fbdev, since we'd need it
> > to have a simple drm driver for e.g. uefi.
> > 
> > But I definitely don't want a legacy horror show like fbdev to
> > automagically take care of device mappings for drivers.
> 
> Makes sense, it also still begs the question if more modern APIs
> could manage the ioremap for you. Evidence shows people get
> sloppy and if things were done internally with helpers it may
> be easier to later make adjustments.

Real gpus generally have so much mmio space that you want to ioremap them
on demand. At least if you still care about 32bit support. And on-die gpus
on socs or similar tend to not have an mmio range to access the gfx
remapping range at all, but instead expect that to be done with gpu
pagetables.

So at least with gpus I don't see a real demand for this, and the existing
users are mostly old fbdev drivers that really no one should be touching
;-)

Cheers, Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

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


Thread

[PATCH v2 2/4] io-mapping: Specify mapping size for io_mapping_map_wc() Chris Wilson <chris@chris-wilson.co.uk> - 2016-04-18 13:20 +0200
  Re: [PATCH v2 2/4] io-mapping: Specify mapping size for  io_mapping_map_wc() Chris Wilson <chris@chris-wilson.co.uk> - 2016-04-19 14:10 +0200
    Re: [PATCH v2 2/4] io-mapping: Specify mapping size for  io_mapping_map_wc() Chris Wilson <chris@chris-wilson.co.uk> - 2016-04-19 14:40 +0200
    Re: [PATCH v2 2/4] io-mapping: Specify mapping size for  io_mapping_map_wc() "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-04-19 14:40 +0200
      Re: [PATCH 4/4] drm/i915: Move ioremap_wc tracking onto VMA "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-04-20 11:20 +0200
        Re: [PATCH 4/4] drm/i915: Move ioremap_wc tracking onto VMA Chris Wilson <chris@chris-wilson.co.uk> - 2016-04-20 11:40 +0200
        Re: [Intel-gfx] [PATCH 4/4] drm/i915: Move ioremap_wc tracking onto  VMA Daniel Vetter <daniel@ffwll.ch> - 2016-04-20 13:20 +0200
          Re: [Intel-gfx] [PATCH 4/4] drm/i915: Move ioremap_wc tracking onto  VMA "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-04-20 23:30 +0200
            Re: [Intel-gfx] [PATCH 4/4] drm/i915: Move ioremap_wc tracking onto  VMA Daniel Vetter <daniel@ffwll.ch> - 2016-04-21 09:30 +0200

csiph-web