Re: [Intel-gfx] [PATCH RESEND 05/14] drm: rockchip: Provide ddc symlink in rk3066_hdmi sysfs directory
Am Montag, 26. August 2019, 21:25:47 CEST schrieb Andrzej Pietrasiewicz: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz > Acked-by: Sam Ravnborg > Reviewed-by: Emil Velikov Acked-by: Heiko Stuebner ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH RESEND 06/14] drm: rockchip: Provide ddc symlink in inno_hdmi sysfs directory
Am Montag, 26. August 2019, 21:25:48 CEST schrieb Andrzej Pietrasiewicz: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz > Acked-by: Sam Ravnborg > Reviewed-by: Emil Velikov Acked-by: Heiko Stuebner ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 05/13] drm: rockchip: Provide ddc symlink in inno_hdmi sysfs directory
Am Mittwoch, 31. Juli 2019, 18:58:14 CEST schrieb Andrzej Pietrasiewicz: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz > Acked-by: Sam Ravnborg > Reviewed-by: Emil Velikov Acked-by: Heiko Stuebner ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 04/13] drm: rockchip: Provide ddc symlink in rk3066_hdmi sysfs directory
Am Mittwoch, 31. Juli 2019, 18:58:13 CEST schrieb Andrzej Pietrasiewicz: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz > Acked-by: Sam Ravnborg > Reviewed-by: Emil Velikov Acked-by: Heiko Stuebner ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 27/59] drm/rockchip: Drop drm_gem_prime_export/import
Am Freitag, 14. Juni 2019, 22:35:43 CEST schrieb Daniel Vetter: > They're the default. > > Aside: Would be really nice to switch the others over to > drm_gem_object_funcs. > > Signed-off-by: Daniel Vetter > Cc: Sandy Huang > Cc: "Heiko Stübner" > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-rockc...@lists.infradead.org On rk3399 with panfrost via prime Tested-by: Heiko Stuebner and it obviously looks correct, so Reviewed-by: Heiko Stuebner > --- > drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c > b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c > index 59091b6241ec..782979f1b55a 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c > @@ -219,8 +219,6 @@ static struct drm_driver rockchip_drm_driver = { > .dumb_create= rockchip_gem_dumb_create, > .prime_handle_to_fd = drm_gem_prime_handle_to_fd, > .prime_fd_to_handle = drm_gem_prime_fd_to_handle, > - .gem_prime_import = drm_gem_prime_import, > - .gem_prime_export = drm_gem_prime_export, > .gem_prime_get_sg_table = rockchip_gem_prime_get_sg_table, > .gem_prime_import_sg_table = rockchip_gem_prime_import_sg_table, > .gem_prime_vmap = rockchip_gem_prime_vmap, > ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [i-g-t] tests/kms_crtc_background_color: overhaul to match upstream ABI (v4)
Am Donnerstag, 31. Januar 2019, 01:00:34 CET schrieb Matt Roper: > CRTC background color kernel patches were written about 2.5 years ago > and floated on the upstream mailing list, but since no opensource > userspace materialized, we never actually merged them. However the > corresponding IGT test did get merged and has basically been dead code > ever since. > > A couple years later we finally have an open source userspace > (ChromeOS), so lets update the IGT test to match the ABI that's actually > going upstream and to remove some of the cruft from the original test > that wouldn't actually work. > > It's worth noting that we don't seem to be able to test this feature > with CRC's, at least on Intel gen9. Originally we wanted to draw a > color into a plane's FB (with Cairo) and then compare the CRC to turning > off all planes and just setting the CRTC background to the same color. > However the precision and rounding of the color components causes the > CRC's to come out differently, even though the end result is visually > identical. So at the moment this test is mainly useful for visual > inspection in interactive mode. > > v2: > - Swap red and blue ordering in property value to reflect change >in v2 of kernel series. > > v3: > - Minor updates to proposed uapi helpers (s/rgba/argb/). > > v4: > - General restructuring into pipe/color subtests. > - Use RGB2101010 framebuffers for comparison so that we match the bits >of precision that Intel hardware background color accepts > > Cc: igt-...@lists.freedesktop.org > Signed-off-by: Matt Roper [...] > +igt_main > { > - igt_display_t *display = >display; > + data_t data = {}; > igt_output_t *output; > + drmModeModeInfo *mode; > + int w, h; > enum pipe pipe; > - int valid_tests = 0; > - > - for_each_pipe_with_valid_output(display, pipe, output) { > - igt_plane_t *plane; > - > - igt_output_set_pipe(output, pipe); > - > - plane = igt_output_get_plane_type(output, > DRM_PLANE_TYPE_PRIMARY); > - igt_require(igt_pipe_has_prop(display, pipe, > IGT_CRTC_BACKGROUND)); > - > - prepare_crtc(data, output, pipe, plane, 1, PURPLE, BLACK64); > - > - /* Now set background without using a plane, i.e., > - * Disable the plane to let hw background color win blend. */ > - igt_plane_set_fb(plane, NULL); > - igt_pipe_set_prop_value(display, pipe, IGT_CRTC_BACKGROUND, > PURPLE64); > - igt_display_commit2(display, COMMIT_UNIVERSAL); > - > - /* Try few other background colors */ > - igt_pipe_set_prop_value(display, pipe, IGT_CRTC_BACKGROUND, > CYAN64); > - igt_display_commit2(display, COMMIT_UNIVERSAL); > - > - igt_pipe_set_prop_value(display, pipe, IGT_CRTC_BACKGROUND, > YELLOW64); > - igt_display_commit2(display, COMMIT_UNIVERSAL); > > - igt_pipe_set_prop_value(display, pipe, IGT_CRTC_BACKGROUND, > RED64); > - igt_display_commit2(display, COMMIT_UNIVERSAL); > + igt_fixture { > + data.gfx_fd = drm_open_driver_master(DRIVER_INTEL); DRIVER_ANY perhaps like in other tests? I'm currently looking into implementing your new background-property in the Rockchip kms driver and I guess this test shouldn't contain any intel-specifics? Heiko ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 21/26] drm/rockchip: Use drm_fb_helper_fill_info
Am Donnerstag, 24. Januar 2019, 17:58:26 CET schrieb Daniel Vetter: > This will set an fb name for the first time! > > Signed-off-by: Daniel Vetter > Cc: Sandy Huang > Cc: "Heiko Stübner" > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-rockc...@lists.infradead.org After looking up the rest of the series and also realizing that fbi->par seems to be set when a client attaches to the fb, this looks good to me, so Reviewed-by: Heiko Stuebner > --- > drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c > b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c > index 7bd3b89022be..d12164878e05 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c > @@ -90,13 +90,11 @@ static int rockchip_drm_fbdev_create(struct drm_fb_helper > *helper, > goto out; > } > > - fbi->par = helper; > fbi->flags = FBINFO_FLAG_DEFAULT; > fbi->fbops = _drm_fbdev_ops; > > fb = helper->fb; > - drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->format->depth); > - drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height); > + drm_fb_helper_fill_info(fbi, helper); > > offset = fbi->var.xoffset * bytes_per_pixel; > offset += fbi->var.yoffset * fb->pitches[0]; > ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] linux-next: Fixes tag needs some work in the drm-misc-fixes tree
Am Sonntag, 27. Januar 2019, 04:41:26 CET schrieb Stephen Rothwell: > Hi all, > > In commit > > 053ff09f1a8f ("drm/rockchip: rgb: update SPDX license identifier") > > Fixes tag > > Fixes: 1f0f01515172 ("Add support for Rockchip Soc RGB output interface") looks like I accidentially lost the "drm/rockchip:" prefix from the subject, sorry about that. I think it should still be recognizable, as the original was named "drm/rockchip: Add support for Rockchip Soc RGB output interface" It's too late to amend now anyway, so hopefully it will not cause too much trouble. Heiko ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 2/2] drm/atomic: Create and use __drm_atomic_helper_crtc_reset() everywhere
Am Montag, 12. November 2018, 16:01:14 CET schrieb Maarten Lankhorst: > We already have __drm_atomic_helper_connector_reset() and > __drm_atomic_helper_plane_reset(), extend this to crtc as well. > > Most drivers already have a gpu reset hook, correct it. > Nouveau already implemented its own __drm_atomic_helper_crtc_reset(), > convert it to the common one. > > Signed-off-by: Maarten Lankhorst > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > index fb70fb486fbf..d2d5aa676084 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > @@ -1071,13 +1071,14 @@ static void vop_crtc_destroy(struct drm_crtc *crtc) > > static void vop_crtc_reset(struct drm_crtc *crtc) > { > + struct rockchip_crtc_state *crtc_state = > + kzalloc(sizeof(*crtc_state), GFP_KERNEL); > + > if (crtc->state) > __drm_atomic_helper_crtc_destroy_state(crtc->state); > kfree(crtc->state); > > - crtc->state = kzalloc(sizeof(struct rockchip_crtc_state), GFP_KERNEL); > - if (crtc->state) > - crtc->state->crtc = crtc; > + __drm_atomic_helper_crtc_reset(crtc, _state->base); > } > > static struct drm_crtc_state *vop_crtc_duplicate_state(struct drm_crtc *crtc) for the Rockchip-part Acked-by: Heiko Stuebner ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH] drm: Update todo.rst
Am Mittwoch, 5. September 2018, 20:15:09 CEST schrieb Daniel Vetter: > - drmP.h is now fully split up. > - vkms is happening (and will gain its own todo and docs under a new > vkms.rst file real soon) > - legacy cruft is completely hidden now, drm_vblank.c is split out > from drm_irq.c now. I've decided to drop the task to split out > drm_legacy.ko, partially because Dave already rejected a patch to > hide the old dri1 drivers better. Current state feels good enough to > me. > - best_encoder atomic cleanup is done (it's now the default, not even > exported anymore) > - bunch of smaller things > > v2: > - Explain why the drm_legacy.ko task is dropped (Emil). > - typos (Sam). > > v3: Fix typo (Ilia) > > Cc: Ilia Mirkin > Cc: Sam Ravnborg > Cc: Emil Velikov > Signed-off-by: Daniel Vetter > Cc: Gustavo Padovan > Cc: Maarten Lankhorst > Cc: Sean Paul > Cc: David Airlie I've read through the text changes and didn't spot any glaring typos [beware non-native speaker], so fwiw Reviewed-by: Heiko Stuebner ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 5/7] drm/atomic: trim driver interface/docs
Am Mittwoch, 5. September 2018, 15:57:09 CEST schrieb Daniel Vetter: > Remove the kerneldoc and EXPORT_SYMBOL which aren't used and really > shouldn't ever be used by drivers directly. > > Unfortunately this means we need to move the set_writeback_fb function > around to avoid a forward decl. > > Signed-off-by: Daniel Vetter > Cc: David Airlie > Cc: Gustavo Padovan > Cc: Maarten Lankhorst > Cc: Sean Paul checked that the two moved functions keep identical content from old to new location, so Acked-by: Heiko Stuebner ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 07/10] drm/rockchip: Use drm_crtc_mask()
Am Dienstag, 26. Juni 2018, 21:47:13 CEST schrieb Ville Syrjala: > From: Ville Syrjälä > > Use drm_crtc_mask() where appropriate. > > Cc: Sandy Huang > Cc: "Heiko Stübner" > Signed-off-by: Ville Syrjälä thanks for that small cleanup, applied to drm-misc-next Thanks Heiko ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx