Displaying 20 results from an estimated 46 matches for "drm_object_attach_property".
2013 Sep 08
1
[PATCH] drm/nv10/plane: add plane support for nv10-nv40
...device, 0, "iturbt_709", 0, 1);
+ if (!plane->props.colorkey ||
+ !plane->props.contrast ||
+ !plane->props.brightness ||
+ !plane->props.hue ||
+ !plane->props.saturation ||
+ !plane->props.iturbt_709)
+ goto cleanup;
+
+ plane->colorkey = 0;
+ drm_object_attach_property(&plane->base.base,
+ plane->props.colorkey, plane->colorkey);
+
+ plane->contrast = 0x1000;
+ drm_object_attach_property(&plane->base.base,
+ plane->props.contrast, plane->contrast);
+
+ plane->brightness = 512;
+ drm_object_attach_property(&plane->...
2018 May 07
2
[PATCH 1/3] drm/connector: Add generic underscan properties
...t; + connector->underscan_hborder_property = prop;
> +
> + prop = drm_property_create_range(dev, 0, "underscan vborder", 0,
> + max_vborder);
> + if (!prop)
> + goto err_free_hborder_prop;
> +
> + connector->underscan_vborder_property = prop;
> +
> + drm_object_attach_property(&connector->base,
> + connector->underscan_mode_property,
> + DRM_UNDERSCAN_OFF);
> + drm_object_attach_property(&connector->base,
> + connector->underscan_hborder_property, 0);
> + drm_object_attach_property(&connector->base,
> +...
2018 May 07
8
[PATCH 0/3] drm/connector: Provide generic support for underscan
Hello,
This is an attempt at providing generic support for underscan connector
props. We already have 3 drivers defining the same underscan, underscan
vborder and underscan hborder properties (amd, radeon and nouveau) and
I am about to add a new one, hence my proposal to put the prop parsing
code in the core and add ->underscan fields to drm_connector_state.
Note that I use this new
2018 Feb 20
4
[PATCH] drm/nouveau: Replace the iturbt_709 prop with the standarad COLOR_ENCODNIG prop
....contrast ||
!plane->props.brightness ||
!plane->props.hue ||
- !plane->props.saturation ||
- !plane->props.iturbt_709)
+ !plane->props.saturation)
goto cleanup;
plane->colorkey = 0;
@@ -343,9 +339,13 @@ nv10_overlay_init(struct drm_device *device)
drm_object_attach_property(&plane->base.base,
plane->props.saturation, plane->saturation);
- plane->iturbt_709 = 0;
- drm_object_attach_property(&plane->base.base,
- plane->props.iturbt_709, plane->iturbt_709);
+ plane->color_encoding = DRM_COLOR_YCBCR_BT601;
+ drm_plane_create...
2017 Aug 17
2
[PATCH][V2] drm/nouveau: perform null check on msto[i] rathern than msto
...properties(&mstc->connector);
- for (i = 0; i < ARRAY_SIZE(mstm->msto) && mstm->msto; i++)
+ for (i = 0; i < ARRAY_SIZE(mstm->msto) && mstm->msto[i]; i++)
drm_mode_connector_attach_encoder(&mstc->connector, &mstm->msto[i]->encoder);
drm_object_attach_property(&mstc->connector.base, dev->mode_config.path_property, 0);
--
2.11.0
2014 Jul 03
2
[PATCH] drm: default scaling to NONE for external connectors
...ECTOR_TV_3:
- nv_connector->scaling_mode = DRM_MODE_SCALE_NONE;
break;
default:
- nv_connector->scaling_mode = DRM_MODE_SCALE_FULLSCREEN;
+ if (type == DRM_MODE_CONNECTOR_LVDS ||
+ type == DRM_MODE_CONNECTOR_eDP)
+ nv_connector->scaling_mode = DRM_MODE_SCALE_FULLSCREEN;
drm_object_attach_property(&connector->base,
dev->mode_config.scaling_mode_property,
--
1.8.5.5
2016 Nov 16
0
[bug report] drm/nouveau/kms/nv50: initial support for DP 1.2 multi-stream
...tm->msto; i++)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This doesn't make sense. Maybe mstm->msto[i] was intended??
3159 drm_mode_connector_attach_encoder(&mstc->connector, &mstm->msto[i]->encoder);
3160
3161 drm_object_attach_property(&mstc->connector.base, dev->mode_config.path_property, 0);
3162 drm_object_attach_property(&mstc->connector.base, dev->mode_config.tile_property, 0);
3163 drm_mode_connector_set_path_property(&mstc->connector, path);
3164 return 0;
regard...
2018 Dec 14
0
[WIP PATCH 09/15] drm/nouveau: Fix potential use-after-frees for MSTCs
...or *connector)
{
struct nv50_mstc *mstc = nv50_mstc(connector);
+
drm_connector_cleanup(&mstc->connector);
+ if (mstc->port)
+ drm_dp_mst_put_port_malloc(mstc->port);
+
kfree(mstc);
}
@@ -1012,6 +1016,7 @@ nv50_mstc_new(struct nv50_mstm *mstm, struct drm_dp_mst_port *port,
drm_object_attach_property(&mstc->connector.base, dev->mode_config.path_property, 0);
drm_object_attach_property(&mstc->connector.base, dev->mode_config.tile_property, 0);
drm_connector_set_path_property(&mstc->connector, path);
+ drm_dp_mst_get_port_malloc(port);
return 0;
}
@@ -1077,6 +1...
2017 Aug 17
2
[PATCH][V2] drm/nouveau: perform null check on msto[i] rathern than msto
...quot;.
>
> I haven't the faintest clue whether the msto array can have "holes" or not.
Indeed. Let's see what Ben says.
>
>> drm_mode_connector_attach_encoder(&mstc->connector, &mstm->msto[i]->encoder);
>>
>> drm_object_attach_property(&mstc->connector.base, dev->mode_config.path_property, 0);
>> --
>> 2.11.0
>>
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http...
2018 May 07
0
[PATCH 1/3] drm/connector: Add generic underscan properties
...er);
+ if (!prop)
+ goto err_free_mode_prop;
+
+ connector->underscan_hborder_property = prop;
+
+ prop = drm_property_create_range(dev, 0, "underscan vborder", 0,
+ max_vborder);
+ if (!prop)
+ goto err_free_hborder_prop;
+
+ connector->underscan_vborder_property = prop;
+
+ drm_object_attach_property(&connector->base,
+ connector->underscan_mode_property,
+ DRM_UNDERSCAN_OFF);
+ drm_object_attach_property(&connector->base,
+ connector->underscan_hborder_property, 0);
+ drm_object_attach_property(&connector->base,
+ connector->underscan_vbord...
2018 Feb 20
0
[PATCH] drm/nouveau: Replace the iturbt_709 prop with the standarad COLOR_ENCODNIG prop
...gt; - !plane->props.saturation ||
> - !plane->props.iturbt_709)
> + !plane->props.saturation)
> goto cleanup;
>
> plane->colorkey = 0;
> @@ -343,9 +339,13 @@ nv10_overlay_init(struct drm_device *device)
> drm_object_attach_property(&plane->base.base,
> plane->props.saturation, plane->saturation);
>
> - plane->iturbt_709 = 0;
> - drm_object_attach_property(&plane->base.base,
> - plane->props.iturbt_709, plan...
2018 Nov 22
0
[PATCH v3 1/3] drm/connector: Add generic underscan properties
...er);
+ if (!prop)
+ goto err_free_mode_prop;
+
+ connector->underscan_hborder_property = prop;
+
+ prop = drm_property_create_range(dev, 0, "underscan vborder", 0,
+ max_vborder);
+ if (!prop)
+ goto err_free_hborder_prop;
+
+ connector->underscan_vborder_property = prop;
+
+ drm_object_attach_property(&connector->base,
+ connector->underscan_mode_property,
+ DRM_UNDERSCAN_OFF);
+ drm_object_attach_property(&connector->base,
+ connector->underscan_hborder_property, 0);
+ drm_object_attach_property(&connector->base,
+ connector->underscan_vbord...
2018 May 11
5
[PATCH v2 0/4] drm/connector: Provide generic support for underscan
Hello,
This is an attempt at providing generic support for underscan connector
props. We already have 3 drivers defining the same underscan, underscan
vborder and underscan hborder properties (amd, radeon and nouveau) and
I am about to add a new one, hence my proposal to put the prop parsing
code in the core and add ->underscan fields to drm_connector_state.
In this v2, I also converted the
2018 May 07
0
[PATCH 1/3] drm/connector: Add generic underscan properties
...= prop;
> > +
> > + prop = drm_property_create_range(dev, 0, "underscan vborder", 0,
> > + max_vborder);
> > + if (!prop)
> > + goto err_free_hborder_prop;
> > +
> > + connector->underscan_vborder_property = prop;
> > +
> > + drm_object_attach_property(&connector->base,
> > + connector->underscan_mode_property,
> > + DRM_UNDERSCAN_OFF);
> > + drm_object_attach_property(&connector->base,
> > + connector->underscan_hborder_property, 0);
> > + drm_object_attach_property(&connect...
2013 Nov 15
4
[PATCH 1/5] drm/nv10/plane: fix format computation
Otherwise none of the format checks pass, since the width was still in
16.16 encoding.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
This must have been some sort of last-second cleanup I made and forgot to
test, because with this code, there's no way it could ever have worked...
drivers/gpu/drm/nouveau/dispnv04/overlay.c | 17 +++++++++--------
1 file changed, 9
2018 Nov 22
1
[PATCH v3 1/3] drm/connector: Add generic underscan properties
...;
>+
>+ connector->underscan_hborder_property = prop;
>+
>+ prop = drm_property_create_range(dev, 0, "underscan vborder", 0,
>+ max_vborder);
>+ if (!prop)
>+ goto err_free_hborder_prop;
>+
>+ connector->underscan_vborder_property = prop;
>+
>+ drm_object_attach_property(&connector->base,
>+ connector->underscan_mode_property,
>+ DRM_UNDERSCAN_OFF);
>+ drm_object_attach_property(&connector->base,
>+ connector->underscan_hborder_property, 0);
>+ drm_object_attach_property(&connector->base,
>+ conne...
2018 Nov 22
5
[PATCH v3 0/3] drm/connector: Provide generic support for underscan
Hello,
This is an attempt at providing generic support for underscan connector
props. We already have 3 drivers defining the same underscan, underscan
vborder and underscan hborder properties (amd, radeon and nouveau) and
I am about to add a new one, hence my proposal to put the prop parsing
code in the core and add ->underscan fields to drm_connector_state.
This v3 was based on the "VC4
2018 May 07
2
[PATCH 1/3] drm/connector: Add generic underscan properties
...t; + connector->underscan_hborder_property = prop;
> +
> + prop = drm_property_create_range(dev, 0, "underscan vborder", 0,
> + max_vborder);
> + if (!prop)
> + goto err_free_hborder_prop;
> +
> + connector->underscan_vborder_property = prop;
> +
> + drm_object_attach_property(&connector->base,
> + connector->underscan_mode_property,
> + DRM_UNDERSCAN_OFF);
> + drm_object_attach_property(&connector->base,
> + connector->underscan_hborder_property, 0);
> + drm_object_attach_property(&connector->base,
> +...
2017 Aug 17
0
[PATCH][V2] drm/nouveau: perform null check on msto[i] rathern than msto
...for (...; i < ARRAY_SIZE; i++)
if (mstm->msto[i])
do_stuff()
I haven't the faintest clue whether the msto array can have "holes" or not.
> drm_mode_connector_attach_encoder(&mstc->connector, &mstm->msto[i]->encoder);
>
> drm_object_attach_property(&mstc->connector.base, dev->mode_config.path_property, 0);
> --
> 2.11.0
>
2020 Feb 07
0
[PATCH 5/6] drm/qxl: Use simple encoder
...NECTOR_POLL_HPD;
encoder->possible_crtcs = 1 << num_output;
drm_connector_attach_encoder(&qxl_output->base,
&qxl_output->enc);
- drm_encoder_helper_add(encoder, &qxl_enc_helper_funcs);
drm_connector_helper_add(connector, &qxl_connector_helper_funcs);
drm_object_attach_property(&connector->base,
--
2.25.0