search for: get_valid

Displaying 9 results from an estimated 9 matches for "get_valid".

2009 Aug 21
4
[PATCH] drm/nouveau: rewrite nouveau_dma_wait()
...ushbuf_base) >> 2; return true; @@ -123,54 +128,79 @@ READ_GET(struct nouveau_channel *chan, uint32_t *get) int nouveau_dma_wait(struct nouveau_channel *chan, int size) { - const int us_timeout = 100000; - uint32_t get; - int ret = -EBUSY, i; + uint32_t get, prev_get = 0, cnt = 0; + bool get_valid; + + while (chan->dma.free < size) { + /* reset counter as long as GET is still advancing, this is + * to avoid misdetecting a GPU lockup if the GPU happens to + * just be processing an operation that takes a long time + */ + get_valid = READ_GET(chan, &get); + if (get != prev_ge...
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across something that kinda bothers me... In order to implement validators you have to override the clone method. The directors seems to be set up to specifically handle this situation. However, whenever C++ calls back to the object''s methods the swig_get_up function is returning false. It seems like swig_up
2007 Mar 18
0
[894] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Document changed Window methods in 2.6 -> 2.8 API
...title":#Window_gettitle </del><span class="cx"> * "Window#get_tool_tip":#Window_gettooltip </span><span class="cx"> * "Window#get_update_region":#Window_getupdateregion </span><span class="cx"> * "Window#get_validator":#Window_getvalidator </span><span class="lines">@@ -213,7 +210,6 @@ </span><span class="cx"> * "Window#set_size_hints":#Window_setsizehints </span><span class="cx"> * "Window#set_sizer":#Window_setsizer...
2018 Dec 19
1
[WIP PATCH 03/15] drm/dp_mst: Introduce new refcounting scheme for mstbs and ports
...gt; > + if (ret) > > > + DRM_DEBUG("port %p (%d)\n", port, > > > + kref_read(&port->topology_kref)); > > > + > > > + return ret; > > > } > > > > > > -static struct drm_dp_mst_branch > > > *drm_dp_mst_get_validated_mstb_ref_locked(struct drm_dp_mst_branch *mstb, > > > struct drm_dp_mst_branch *to_find) > > > +/** > > > + * drm_dp_mst_topology_ref_port() - Increment the topology refcount of a > > > port > > > + * @port: The &struct drm_dp_mst_port to increme...
2018 Dec 14
2
[WIP PATCH 03/15] drm/dp_mst: Introduce new refcounting scheme for mstbs and ports
...estroy_port); > + int ret = kref_get_unless_zero(&port->topology_kref); > + > + if (ret) > + DRM_DEBUG("port %p (%d)\n", port, > + kref_read(&port->topology_kref)); > + > + return ret; > } > > -static struct drm_dp_mst_branch *drm_dp_mst_get_validated_mstb_ref_locked(struct drm_dp_mst_branch *mstb, struct drm_dp_mst_branch *to_find) > +/** > + * drm_dp_mst_topology_ref_port() - Increment the topology refcount of a port > + * @port: The &struct drm_dp_mst_port to increment the topology refcount of > + * > + * Increments @po...
2018 Dec 18
0
[WIP PATCH 03/15] drm/dp_mst: Introduce new refcounting scheme for mstbs and ports
...p;port->topology_kref); > > + > > + if (ret) > > + DRM_DEBUG("port %p (%d)\n", port, > > + kref_read(&port->topology_kref)); > > + > > + return ret; > > } > > > > -static struct drm_dp_mst_branch > > *drm_dp_mst_get_validated_mstb_ref_locked(struct drm_dp_mst_branch *mstb, > > struct drm_dp_mst_branch *to_find) > > +/** > > + * drm_dp_mst_topology_ref_port() - Increment the topology refcount of a > > port > > + * @port: The &struct drm_dp_mst_port to increment the topology refcount...
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...n><span class="cx"> h3(#Window_getupdateregion). Window#get_update_region </span><span class="lines">@@ -1206,12 +1204,12 @@ </span><span class="cx"> </span><span class="cx"> "Validator":validator.html *get_validator*() </span><span class="cx"> </span><del>-Returns a pointer to the current validator for the window, or NULL if there is none. </del><ins>+Returns a pointer to the current validator for the window, or @nil@ if there is none. </ins><span cla...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...uot;Window#get_scroll_thumb":#Window_getscrollthumb </span><span class="lines">@@ -131,19 +136,25 @@ </span><span class="cx"> * "Window#get_update_region":#Window_getupdateregion </span><span class="cx"> * "Window#get_validator":#Window_getvalidator </span><span class="cx"> * "Window#get_virtual_size":#Window_getvirtualsize </span><ins>+* "Window#get_window_border_size":#Window_getwindowbordersize </ins><span class="cx"> * "Window#ge...
2018 Dec 14
22
[WIP PATCH 00/15] MST refcounting/atomic helpers cleanup
This is a WIP version of the series I've been working on for a while now to get all of the atomic DRM drivers in the tree to use the atomic MST helpers, and to make the atomic MST helpers actually idempotent. Turns out it's a lot more difficult to do that without also fixing how port and branch device refcounting works so that it actually makes sense, since the current upstream