[CFT] i915: add HW context support (for Mesa 9.2+)

Konstantin Belousov kostikbel at gmail.com
Mon Sep 8 09:01:38 UTC 2014


On Sun, Sep 07, 2014 at 10:51:52AM +0200, Jean-S??bastien P??dron wrote:
> Hello!
> 
> Mesa 9.2+ requires "hardware context support" [1] in the i915 driver to
> work on Intel GPUs found in Sandy Bridge and later. Our driver lacks
> this feature, that's why we're stuck with Mesa 9.1 in the ports tree.
> 
> If you have one of those GPUs and you try Mesa 10.2 for instance
> (available from the xorg-dev's experimental branch [2]), it will
> complain with the following message:
> 
>   # glxinfo
>   name of display: :0.0
>   Gen6+ requires Kernel 3.6 or later.
>   Assertion failed: (ctx->Version > 0), (...)
>   Abort (core dumped)
> 
> I prepared a patch to add this feature to our i915 driver; the goal is
> to have it in 10.1-RELEASE:
> https://wiki.freebsd.org/Graphics/Add%20HW%20context%20support%20to%20i915
> 
> The article above explains how to test the patch. We're interested in
> success/failure reports for any GPU, not just Intel ones. So please test
> it! :)
> 
> Thank you!
> 
> [1]
> https://bwidawsk.net/blog/index.php/2013/01/i915-hardware-contexts-and-some-bits-about-batchbuffers/
> [2] https://wiki.freebsd.org/Graphics#experimental
> 

Please do not add dependency on OFED to the drm2.  It seems you need
idr, and all previous idr uses were replaced by unr(9) for drm2, please
do not break this.  It seems that unr(9) interface would need to be
extended to provide analog of idr_get_new_above().

What is the revision which you used for import of i915_gem_context.c ?
There were some very subtle semantical changes in the global gtt
mappings functions, esp. WRT interaction with lowmem conditions.  I am
not sure if it is applicable, and it would get me some time to really
remember the details there.

The i915 reset rework looks fine, I have it imported in my WIP branch,
but I think it will be merged without troubles.

Why do you need the changes to struct eb_objects ? If this is due to
OFED, please do not.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20140908/113c7714/attachment.sig>


More information about the freebsd-x11 mailing list