Displaying 20 results from an estimated 25 matches for "new_crtc".
2017 Jun 20
0
[PATCH 06/11] drm: i915: remove dead code and pointless local lut storage
...tic struct drm_fb_helper_crtc *
intel_fb_helper_crtc(struct drm_fb_helper *fb_helper, struct drm_crtc *crtc)
{
@@ -370,7 +349,6 @@ static bool intel_fb_initial_config(struct drm_fb_helper *fb_helper,
struct drm_connector *connector;
struct drm_encoder *encoder;
struct drm_fb_helper_crtc *new_crtc;
- struct intel_crtc *intel_crtc;
fb_conn = fb_helper->connector_info[i];
connector = fb_conn->connector;
@@ -412,13 +390,6 @@ static bool intel_fb_initial_config(struct drm_fb_helper *fb_helper,
num_connectors_enabled++;
- intel_crtc = to_intel_crtc(connector->state->c...
2018 Dec 14
0
[WIP PATCH 15/15] drm/nouveau: Use atomic VCPI helpers for MST
...n_state->state;
+ struct nv50_mstc *mstc = nv50_mstc(connector);
+ struct drm_dp_mst_topology_mgr *mgr = &mstc->mstm->mgr;
+ struct drm_connector_state *old_conn_state =
+ drm_atomic_get_old_connector_state(state, connector);
+ struct drm_crtc_state *old_crtc_state;
+ struct drm_crtc *new_crtc = new_conn_state->crtc,
+ *old_crtc = old_conn_state->crtc;
+
+ if (!old_crtc)
+ return 0;
+
+ old_crtc_state = drm_atomic_get_old_crtc_state(state, old_crtc);
+ if (!old_crtc_state || !old_crtc_state->enable)
+ return 0;
+
+ if (new_crtc)
+ return 0;
+
+ /* This connector will be lef...
2023 Feb 15
17
[PATCH 00/17] cirrus: Modernize the cirrus driver
Update the cirrus driver to follow current best practices. While the
driver's hardware is obsolete, the cirrus driver is still one of the
go-to modules to learn about writing a DRM driver. So keep it in good
shape.
Patches 1 to 3 simplify blitting and convert it to the DRM's current
helpers.
Patches 4 to 8 replace simple-KMS helpers with DRM's regular atomic
helpers. The former are
2019 Jan 09
0
[PATCH v5 18/20] drm/dp_mst: Start tracking per-port VCPI allocations
...w_conn_state->state;
- struct drm_connector_state *old_conn_state;
- struct drm_crtc *old_crtc;
+ struct drm_connector_state *old_conn_state =
+ drm_atomic_get_old_connector_state(state, connector);
+ struct intel_connector *intel_connector =
+ to_intel_connector(connector);
+ struct drm_crtc *new_crtc = new_conn_state->crtc;
struct drm_crtc_state *crtc_state;
- int slots, ret = 0;
+ struct drm_dp_mst_topology_mgr *mgr;
+ int ret = 0;
- old_conn_state = drm_atomic_get_old_connector_state(state, connector);
- old_crtc = old_conn_state->crtc;
- if (!old_crtc)
- return ret;
-
- crtc_state...
2018 Nov 16
8
[PATCH v6 0/6] drm/dp_mst: Improve VCPI helpers, use in nouveau
This patchset does some cleaning up of the atomic VCPI helpers for MST,
and converts nouveau over to using them. I would have included amdgpu in
this patch as well, but at the moment moving them over to the atomic
helpers is nontrivial.
[sorry for still not adding your R-Bs! I ended up needing to make a
lot of changes to make it so we do actually kref() each port in the
atomic state]
Cc: Daniel
2018 Dec 14
0
[WIP PATCH 13/15] drm/dp_mst: Start tracking per-port VCPI allocations
...>connector;
void *port = to_intel_connector(connector)->port;
struct drm_atomic_state *state = pipe_config->base.state;
+ struct drm_crtc *crtc = pipe_config->base.crtc;
+ struct drm_crtc_state *old_crtc_state =
+ drm_atomic_get_old_crtc_state(state, crtc);
+ struct drm_crtc_state *new_crtc_state = &pipe_config->base;
int bpp;
- int lane_count, slots = 0;
+ int lane_count, slots =
+ to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode;
int mst_pbn;
bool constant_n = drm_dp_has_quirk(&a...
2018 Nov 26
4
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...rt = to_intel_connector(connector)->port;
> struct drm_atomic_state *state = pipe_config->base.state;
> + struct drm_crtc *crtc = pipe_config->base.crtc;
> + struct drm_crtc_state *old_crtc_state =
> + drm_atomic_get_old_crtc_state(state, crtc);
> + struct drm_crtc_state *new_crtc_state = &pipe_config->base;
> int bpp;
> - int lane_count, slots = 0;
> + int lane_count, slots =
> + to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
> const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode;
> int mst_pbn;
> bo...
2018 Nov 16
0
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...>connector;
void *port = to_intel_connector(connector)->port;
struct drm_atomic_state *state = pipe_config->base.state;
+ struct drm_crtc *crtc = pipe_config->base.crtc;
+ struct drm_crtc_state *old_crtc_state =
+ drm_atomic_get_old_crtc_state(state, crtc);
+ struct drm_crtc_state *new_crtc_state = &pipe_config->base;
int bpp;
- int lane_count, slots = 0;
+ int lane_count, slots =
+ to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode;
int mst_pbn;
bool constant_n = drm_dp_has_quirk(&a...
2018 Nov 29
1
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...t; > > > > > + struct drm_crtc *crtc = pipe_config->base.crtc;
> > > > > > > + struct drm_crtc_state *old_crtc_state =
> > > > > > > + drm_atomic_get_old_crtc_state(state, crtc);
> > > > > > > + struct drm_crtc_state *new_crtc_state = &pipe_config->base;
> > > > > > > int bpp;
> > > > > > > - int lane_count, slots = 0;
> > > > > > > + int lane_count, slots =
> > > > > > > + to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
>...
2018 Nov 28
3
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...te = pipe_config->base.state;
> > > > > + struct drm_crtc *crtc = pipe_config->base.crtc;
> > > > > + struct drm_crtc_state *old_crtc_state =
> > > > > + drm_atomic_get_old_crtc_state(state, crtc);
> > > > > + struct drm_crtc_state *new_crtc_state = &pipe_config->base;
> > > > > int bpp;
> > > > > - int lane_count, slots = 0;
> > > > > + int lane_count, slots =
> > > > > + to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
> > > > > const struct drm_...
2018 Nov 27
2
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...> > struct drm_atomic_state *state = pipe_config->base.state;
> > > + struct drm_crtc *crtc = pipe_config->base.crtc;
> > > + struct drm_crtc_state *old_crtc_state =
> > > + drm_atomic_get_old_crtc_state(state, crtc);
> > > + struct drm_crtc_state *new_crtc_state = &pipe_config->base;
> > > int bpp;
> > > - int lane_count, slots = 0;
> > > + int lane_count, slots =
> > > + to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
> > > const struct drm_display_mode *adjusted_mode = &pipe_config-
&g...
2018 Nov 26
0
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...onnector)->port;
> > struct drm_atomic_state *state = pipe_config->base.state;
> > + struct drm_crtc *crtc = pipe_config->base.crtc;
> > + struct drm_crtc_state *old_crtc_state =
> > + drm_atomic_get_old_crtc_state(state, crtc);
> > + struct drm_crtc_state *new_crtc_state = &pipe_config->base;
> > int bpp;
> > - int lane_count, slots = 0;
> > + int lane_count, slots =
> > + to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
> > const struct drm_display_mode *adjusted_mode = &pipe_config-
> > >base.adjusted...
2018 Nov 26
0
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...onnector)->port;
> > struct drm_atomic_state *state = pipe_config->base.state;
> > + struct drm_crtc *crtc = pipe_config->base.crtc;
> > + struct drm_crtc_state *old_crtc_state =
> > + drm_atomic_get_old_crtc_state(state, crtc);
> > + struct drm_crtc_state *new_crtc_state = &pipe_config->base;
> > int bpp;
> > - int lane_count, slots = 0;
> > + int lane_count, slots =
> > + to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
> > const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode;
>...
2018 Nov 27
0
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...rm_atomic_state *state = pipe_config->base.state;
> > > > + struct drm_crtc *crtc = pipe_config->base.crtc;
> > > > + struct drm_crtc_state *old_crtc_state =
> > > > + drm_atomic_get_old_crtc_state(state, crtc);
> > > > + struct drm_crtc_state *new_crtc_state = &pipe_config->base;
> > > > int bpp;
> > > > - int lane_count, slots = 0;
> > > > + int lane_count, slots =
> > > > + to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
> > > > const struct drm_display_mode *adjusted_mo...
2018 Nov 28
0
[PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations
...;base.state;
> > > > > > + struct drm_crtc *crtc = pipe_config->base.crtc;
> > > > > > + struct drm_crtc_state *old_crtc_state =
> > > > > > + drm_atomic_get_old_crtc_state(state, crtc);
> > > > > > + struct drm_crtc_state *new_crtc_state = &pipe_config->base;
> > > > > > int bpp;
> > > > > > - int lane_count, slots = 0;
> > > > > > + int lane_count, slots =
> > > > > > + to_intel_crtc_state(old_crtc_state)->dp_m_n.tu;
> > > > >...
2019 Jan 11
20
[PATCH v7 00/20] MST refcounting/atomic helpers cleanup
This is 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 implementation requires a
2019 Jan 10
21
[PATCH v6 00/20] MST refcounting/atomic helpers cleanup
This is 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 implementation requires a
2019 Jan 09
27
[PATCH v5 00/20] MST refcounting/atomic helpers cleanup
This is 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 implementation requires a
2019 Jan 05
19
[PATCH v4 00/16] MST refcounting/atomic helpers cleanup
This is 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 implementation requires a
2019 Jan 03
16
[PATCH v3 00/16] MST refcounting/atomic helpers cleanup
This is 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 implementation requires a