Displaying 20 results from an estimated 144 matches for "vdisplay".
Did you mean:
display
2015 Oct 02
2
[PATCH v3 7/7] [wip] virtio-gpu: add page flip support
...>fb = fb;
+ vgfb = to_virtio_gpu_framebuffer(plane->fb);
+ bo = gem_to_virtio_gpu_obj(vgfb->obj);
+ handle = bo->hw_res_handle;
+
+ DRM_DEBUG("handle 0x%x%s, crtc %dx%d\n", handle,
+ bo->dumb ? ", dumb" : "",
+ crtc->mode.hdisplay, crtc->mode.vdisplay);
+ if (bo->dumb) {
+ virtio_gpu_cmd_transfer_to_host_2d
+ (vgdev, handle, 0,
+ cpu_to_le32(crtc->mode.hdisplay),
+ cpu_to_le32(crtc->mode.vdisplay),
+ 0, 0, NULL);
+ }
+ virtio_gpu_cmd_set_scanout(vgdev, output->index, handle,
+ crtc->mode.hdisplay,
+ crtc-&g...
2015 Oct 02
2
[PATCH v3 7/7] [wip] virtio-gpu: add page flip support
...>fb = fb;
+ vgfb = to_virtio_gpu_framebuffer(plane->fb);
+ bo = gem_to_virtio_gpu_obj(vgfb->obj);
+ handle = bo->hw_res_handle;
+
+ DRM_DEBUG("handle 0x%x%s, crtc %dx%d\n", handle,
+ bo->dumb ? ", dumb" : "",
+ crtc->mode.hdisplay, crtc->mode.vdisplay);
+ if (bo->dumb) {
+ virtio_gpu_cmd_transfer_to_host_2d
+ (vgdev, handle, 0,
+ cpu_to_le32(crtc->mode.hdisplay),
+ cpu_to_le32(crtc->mode.vdisplay),
+ 0, 0, NULL);
+ }
+ virtio_gpu_cmd_set_scanout(vgdev, output->index, handle,
+ crtc->mode.hdisplay,
+ crtc-&g...
2020 Feb 25
2
[PATCH 04/12] drm: Nuke mode->vrefresh
...> @@ -229,7 +229,7 @@ static int boe_panel_get_modes(struct drm_panel *panel,
> > mode = drm_mode_duplicate(connector->dev, m);
> > if (!mode) {
> > DRM_DEV_ERROR(pinfo->base.dev, "failed to add mode %ux%u@%u\n",
> > - m->hdisplay, m->vdisplay, m->vrefresh);
> > + m->hdisplay, m->vdisplay, drm_mode_vrefresh(m));
> > return -ENOMEM;
> > }
> >
> > @@ -262,7 +262,6 @@ static const struct drm_display_mode default_display_mode = {
> > .vsync_start = 1920 + 10,
> > .vsync_en...
2020 Feb 24
0
[PATCH 04/12] drm: Nuke mode->vrefresh
...nel-boe-himax8279d.c
> @@ -229,7 +229,7 @@ static int boe_panel_get_modes(struct drm_panel *panel,
> mode = drm_mode_duplicate(connector->dev, m);
> if (!mode) {
> DRM_DEV_ERROR(pinfo->base.dev, "failed to add mode %ux%u@%u\n",
> - m->hdisplay, m->vdisplay, m->vrefresh);
> + m->hdisplay, m->vdisplay, drm_mode_vrefresh(m));
> return -ENOMEM;
> }
>
> @@ -262,7 +262,6 @@ static const struct drm_display_mode default_display_mode = {
> .vsync_start = 1920 + 10,
> .vsync_end = 1920 + 10 + 14,
> .vtotal...
2020 Feb 25
0
[PATCH 04/12] drm: Nuke mode->vrefresh
...9,7 +229,7 @@ static int boe_panel_get_modes(struct drm_panel *panel,
>>> mode = drm_mode_duplicate(connector->dev, m);
>>> if (!mode) {
>>> DRM_DEV_ERROR(pinfo->base.dev, "failed to add mode %ux%u@%u\n",
>>> - m->hdisplay, m->vdisplay, m->vrefresh);
>>> + m->hdisplay, m->vdisplay, drm_mode_vrefresh(m));
>>> return -ENOMEM;
>>> }
>>>
>>> @@ -262,7 +262,6 @@ static const struct drm_display_mode default_display_mode = {
>>> .vsync_start = 1920 + 10,
>...
2020 Feb 19
5
[PATCH 04/12] drm: Nuke mode->vrefresh
.../drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -920,7 +920,8 @@ static int hdmi_mode_valid(struct drm_connector *connector,
DRM_DEV_DEBUG_KMS(hdata->dev,
"xres=%d, yres=%d, refresh=%d, intl=%d clock=%d\n",
- mode->hdisplay, mode->vdisplay, mode->vrefresh,
+ mode->hdisplay, mode->vdisplay,
+ drm_mode_vrefresh(mode),
(mode->flags & DRM_MODE_FLAG_INTERLACE) ? true :
false, mode->clock * 1000);
@@ -1019,7 +1020,7 @@ static bool hdmi_mode_fixup(struct drm_encoder *encoder,
DRM_DEV_DEBUG_KMS(de...
2018 May 11
3
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...rtc_state(pstate->state,
> > > > > + pstate->crtc);
> > > > > +
> > > > > + if (conn_state->underscan.hborder >= crtc_state->mode.hdisplay ||
> > > > > + conn_state->underscan.vborder >= crtc_state->mode.vdisplay)
> > > > > + return -EINVAL;
> > > >
> > > > border * 2 ?
> > >
> > > Oops, indeed. I'll fix that.
> > >
> > > >
> > > > > +
> > > > > + vc4_pstate->crtc_x += conn_state...
2018 Nov 22
0
[PATCH v3 2/3] drm/vc4: Take underscan setup into account when updating planes
...vc4_plane.c
@@ -258,6 +258,52 @@ static u32 vc4_get_scl_field(struct drm_plane_state *state, int plane)
}
}
+static int vc4_plane_underscan_adj(struct drm_plane_state *pstate)
+{
+ struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate);
+ unsigned int vborder, hborder, adjhdisplay, adjvdisplay;
+ struct drm_crtc_state *crtc_state;
+
+ crtc_state = drm_atomic_get_new_crtc_state(pstate->state,
+ pstate->crtc);
+
+ vc4_crtc_get_underscan_borders(crtc_state, &vborder, &hborder);
+ if (!vborder && !hborder)
+ return 0;
+
+ if (hborder * 2 >= crtc_state->mo...
2018 May 11
2
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
..._UNDERSCAN_ON)
> + return 0;
> +
> + crtc_state = drm_atomic_get_new_crtc_state(pstate->state,
> + pstate->crtc);
> +
> + if (conn_state->underscan.hborder >= crtc_state->mode.hdisplay ||
> + conn_state->underscan.vborder >= crtc_state->mode.vdisplay)
> + return -EINVAL;
border * 2 ?
> +
> + vc4_pstate->crtc_x += conn_state->underscan.hborder;
> + vc4_pstate->crtc_y += conn_state->underscan.vborder;
> + vc4_pstate->crtc_w = (vc4_pstate->crtc_w *
> + (crtc_state->mode.hdisplay -
> + (...
2018 May 11
2
[PATCH v2 2/4] drm/vc4: Take underscan setup into account when updating planes
...> + crtc_state = drm_atomic_get_new_crtc_state(pstate->state,
> > > + pstate->crtc);
> > > +
> > > + if (conn_state->underscan.hborder >= crtc_state->mode.hdisplay ||
> > > + conn_state->underscan.vborder >= crtc_state->mode.vdisplay)
> > > + return -EINVAL;
> >
> > border * 2 ?
>
> Oops, indeed. I'll fix that.
>
> >
> > > +
> > > + vc4_pstate->crtc_x += conn_state->underscan.hborder;
> > > + vc4_pstate->crtc_y += conn_state->underscan.vborder...
2014 Sep 05
1
[PATCH 1/8] nv50/display: Set VBLANK time in modeset script
...gt; + u32 vblan2e = 0, vblan2s = 1, vblankus;
> u32 *push;
> int ret;
>
> @@ -1087,6 +1087,7 @@ nv50_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *umode,
> vblanke = vsynce + vbackp;
> vfrontp = (mode->vsync_start - mode->vdisplay) * vscan / ilace;
> vblanks = vactive - vfrontp - 1;
> +
> if (mode->flags & DRM_MODE_FLAG_INTERLACE) {
> vblan2e = vactive + vsynce + vbackp;
> vblan2s = vblan2e + (mode->vdisplay * vscan / ilace);
> @@ -1100,17 +1101,22 @...
2020 Apr 03
3
[PATCH v2 03/17] drm: Nuke mode->vrefresh
.../drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -921,7 +921,8 @@ static int hdmi_mode_valid(struct drm_connector *connector,
DRM_DEV_DEBUG_KMS(hdata->dev,
"xres=%d, yres=%d, refresh=%d, intl=%d clock=%d\n",
- mode->hdisplay, mode->vdisplay, mode->vrefresh,
+ mode->hdisplay, mode->vdisplay,
+ drm_mode_vrefresh(mode),
(mode->flags & DRM_MODE_FLAG_INTERLACE) ? true :
false, mode->clock * 1000);
@@ -1020,7 +1021,7 @@ static bool hdmi_mode_fixup(struct drm_encoder *encoder,
DRM_DEV_DEBUG_KMS(de...
2020 Apr 04
0
[PATCH v2 03/17] drm: Nuke mode->vrefresh
....c
> +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
> @@ -921,7 +921,8 @@ static int hdmi_mode_valid(struct drm_connector
> *connector,
>
> DRM_DEV_DEBUG_KMS(hdata->dev,
> "xres=%d, yres=%d, refresh=%d, intl=%d clock=%d\n",
> - mode->hdisplay, mode->vdisplay, mode->vrefresh,
> + mode->hdisplay, mode->vdisplay,
> + drm_mode_vrefresh(mode),
> (mode->flags & DRM_MODE_FLAG_INTERLACE) ? true :
> false, mode->clock * 1000);
>
> @@ -1020,7 +1021,7 @@ static bool hdmi_mode_fixup(struct drm_encoder
>...
2020 Apr 28
0
[PATCH v3 03/16] drm: Nuke mode->vrefresh
.../drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -921,7 +921,8 @@ static int hdmi_mode_valid(struct drm_connector *connector,
DRM_DEV_DEBUG_KMS(hdata->dev,
"xres=%d, yres=%d, refresh=%d, intl=%d clock=%d\n",
- mode->hdisplay, mode->vdisplay, mode->vrefresh,
+ mode->hdisplay, mode->vdisplay,
+ drm_mode_vrefresh(mode),
(mode->flags & DRM_MODE_FLAG_INTERLACE) ? true :
false, mode->clock * 1000);
@@ -1020,7 +1021,7 @@ static bool hdmi_mode_fixup(struct drm_encoder *encoder,
DRM_DEV_DEBUG_KMS(de...
2011 Oct 10
2
2 remaining patches in my patch queue that can be merged
Hi,
Here I post these 2 misc patches.
Best regards,
Maxim Levitsky
2019 Dec 20
0
[PATCH AUTOSEL 5.4 38/52] drm/nouveau/kms/nv50-: fix panel scaling
...b/drivers/gpu/drm/nouveau/dispnv50/disp.c
@@ -326,9 +326,9 @@ nv50_outp_atomic_check_view(struct drm_encoder *encoder,
* same size as the native one (e.g. different
* refresh rate)
*/
- if (adjusted_mode->hdisplay == native_mode->hdisplay &&
- adjusted_mode->vdisplay == native_mode->vdisplay &&
- adjusted_mode->type & DRM_MODE_TYPE_DRIVER)
+ if (mode->hdisplay == native_mode->hdisplay &&
+ mode->vdisplay == native_mode->vdisplay &&
+ mode->type & DRM_MODE_TYPE_DRIVER)
break;
mode...
2016 May 25
0
[PATCH v3 7/7] [wip] virtio-gpu: add page flip support
...bo = gem_to_virtio_gpu_obj(vgfb->obj);
> + handle = bo->hw_res_handle;
> +
> + DRM_DEBUG("handle 0x%x%s, crtc %dx%d\n", handle,
> + bo->dumb ? ", dumb" : "",
> + crtc->mode.hdisplay, crtc->mode.vdisplay);
> + if (bo->dumb) {
> + virtio_gpu_cmd_transfer_to_host_2d
> + (vgdev, handle, 0,
> + cpu_to_le32(crtc->mode.hdisplay),
> + cpu_to_le32(crtc->mode.vdisplay),
> +...
2017 Mar 27
1
[PATCH v2 09/10] drm/nouveau: Handle frame-packing mode geometry and timing effects
...4
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -1963,6 +1963,7 @@ nv50_head_atomic_check_view(struct nv50_head_atom *armh,
struct drm_display_mode *umode = &asyh->state.mode;
int mode = asyc->scaler.mode;
struct edid *edid;
+ int umode_vdisplay, omode_hdisplay, omode_vdisplay;
if (connector->edid_blob_ptr)
edid = (struct edid *)connector->edid_blob_ptr->data;
@@ -1977,12 +1978,18 @@ nv50_head_atomic_check_view(struct nv50_head_atom *armh,
mode = DRM_MODE_SCALE_FULLSCREEN;
}
+ /* For the user-specified mode, we must...
2018 May 07
2
[PATCH 1/3] drm/connector: Add generic underscan properties
...cal borders are
>>> + * specified through the "underscan hborder" and
>>> + * "underscan vborder" properties.
>>
>> How is the output scaled?
>
> In HW. The formula is
>
> hfactor = (hdisplay - hborder) / hdisplay
> vfactor = (vdisplay - vborder) / vdisplay
>
>> What does the user mode hdisplay/vdisplay mean
>> in this case?
>
> The same as before this patch: the output resolution. You just add
> black margins.
>
>> What if I want underscan without scaling?
>
> Then don't involve the...
2019 May 25
3
[PATCH 1/2] drm/nouveau/disp/nv50-: force scaler for any non-default LVDS/eDP modes
...modes. */
- if (adjusted_mode->type & DRM_MODE_TYPE_DRIVER)
+ /* Don't force scaler for EDID modes with
+ * same size as the native one (e.g. different
+ * refresh rate)
+ */
+ if (adjusted_mode->hdisplay == native_mode->hdisplay &&
+ adjusted_mode->vdisplay == native_mode->vdisplay &&
+ adjusted_mode->type & DRM_MODE_TYPE_DRIVER)
break;
mode = native_mode;
asyc->scaler.full = true;
--
2.21.0