Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1383907
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| 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 | Thu, 21 Apr 2016 09:30:02 +0200 |
| Message-ID | <rqhdM-5mD-7@gated-at.bofh.it> (permalink) |
| References | <rpD6G-6Tc-19@gated-at.bofh.it> <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> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=lQmAJurYUwdPMnSzl/mh84qt8senMaXfbp0JeGRtbGc=; b=V/AXpWrPSjYhvj1fQbUVAtY23u/2L/L9Hrf7G43Y9BfoUontEdPM+wFn4ijYwpTJC5 IiMnWZaPiqCITt9gcEwT8fMy0lnWxID4mDXijEACFCRLqHonpa9TzrX6kGYJcqovgHLn EVjBA/ZSpZsXzOSHdN79uVPHgthQxnFtODoZA= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=lQmAJurYUwdPMnSzl/mh84qt8senMaXfbp0JeGRtbGc=; b=aA0+NCoxYgqKivifdDOkiUztwY0ztmrNLaH39AbN3quEn5bfej81otKXl3glTHcAn4 SnIgVOZFPzuLiI1KGqpJFU2e/pqb+Roifc6WapiYk2Y7DK2b4ozT1Gx/ouOWKZF1oDWN BfVM+IE2LIy3Ou3id3eCnd2atlUKmiyR98194fVuqqJrzD4J899Vnc2oEto5bRQOcZd1 df8/fWWg/tdsHJ8Y7NEyFinXFO9R4wCgCyhGI49JI7hdmiBf0BdoNSntIX9HOvqohEA6 l7HC58j5GY+awhlrICJjiou5vTZpp+GxQHNJ3XeH+OJU1vq+s5TfZbqsoyvkBCzAlDkf 1UqQ== |
| X-Gm-Message-State | AOPr4FWbzHEf6eB/xQCeUbFZwuYaMiskkeO/TnaAJZsO+RO9N3QBmrFmY7i5fh5OU14bcw== |
| X-Received | by 10.194.2.210 with SMTP id 18mr13470472wjw.55.1461223662620; Thu, 21 Apr 2016 00:27:42 -0700 (PDT) |
| Mail-Followup-To | "Luis R. Rodriguez" <mcgrof@kernel.org>, Chris Wilson <chris@chris-wilson.co.uk>, David Airlie <airlied@linux.ie>, netdev@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, Daniel Vetter <daniel.vetter@intel.com>, Dan Williams <dan.j.williams@intel.com>, Yishai Hadas <yishaih@mellanox.com>, David Hildenbrand <dahi@linux.vnet.ibm.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Operating-System | Linux phenom 4.4.0-1-amd64 |
| User-Agent | Mutt/1.5.24 (2015-08-30) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Chris Wilson <chris@chris-wilson.co.uk>, David Airlie <airlied@linux.ie>, netdev@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, Daniel Vetter <daniel.vetter@intel.com>, Dan Williams <dan.j.williams@intel.com>, Yishai Hadas <yishaih@mellanox.com>, David Hildenbrand <dahi@linux.vnet.ibm.com> |
| X-Original-Date | Thu, 21 Apr 2016 09:27:39 +0200 |
| X-Original-Message-ID | <20160421072739.GV2510@phenom.ffwll.local> |
| X-Original-References | <20160419123028.GI1990@wotan.suse.de> <1461069238-31539-1-git-send-email-chris@chris-wilson.co.uk> <1461069238-31539-4-git-send-email-chris@chris-wilson.co.uk> <20160420091054.GL1990@wotan.suse.de> <20160420111730.GL2510@phenom.ffwll.local> <20160420212727.GS1990@wotan.suse.de> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1383907 |
Show key headers only | 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 | Next — Previous in thread | Find similar | Unroll 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