Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1507039
| From | Bartosz Golaszewski <bgolaszewski@baylibre.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] drm: tilcdc: implement palette loading for rev1 |
| Date | 2016-10-24 11:50 +0200 |
| Message-ID | <svK3f-5Kp-5@gated-at.bofh.it> (permalink) |
| References | <svJ7c-5aa-21@gated-at.bofh.it> <svJJU-5DE-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2016-10-24 11:25 GMT+02:00 Jyri Sarha <jsarha@ti.com>: > On 10/24/16 11:43, Bartosz Golaszewski wrote: >> Revision 1 of the IP doesn't work if we don't load the palette (even >> if it's not used, which is the case for the RGB565 format). >> >> Add a function called from tilcdc_crtc_enable() which performs all >> required actions if we're dealing with a rev1 chip. >> >> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> >> --- >> v1 -> v2: >> - only allocate dma memory for revision 1 >> > > > Is it enough to load the palette only once? What if lcdc is powered down > by power management in the middle? > > I think you should reinit the completion struct at least in > tilcdc_pm_resume(), if not in tilcdc_crtc_disable(). > > Cheers, > Jyri > Hi Jyri, I ran the following test: - tilcdc_crtc_enable() was called on device init - ran modetest -M tilcdc -s 26:800x600@RG16 and quit - waited for the screen to go blank - tilcdc_crtc_disable() was called - ran modetest again - tilcdc_crtc_enable() was called again, this time without calling tilcdc_crtc_load_palette() - color bar still correctly displayed Seems like it's only needed once. Thanks, Bartosz
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] drm: tilcdc: implement palette loading for rev1 Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2016-10-24 10:50 +0200
Re: [PATCH v2] drm: tilcdc: implement palette loading for rev1 Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2016-10-24 11:20 +0200
Re: [PATCH v2] drm: tilcdc: implement palette loading for rev1 Jyri Sarha <jsarha@ti.com> - 2016-10-24 11:30 +0200
Re: [PATCH v2] drm: tilcdc: implement palette loading for rev1 Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2016-10-24 11:50 +0200
Re: [PATCH v2] drm: tilcdc: implement palette loading for rev1 Tomi Valkeinen <tomi.valkeinen@ti.com> - 2016-10-24 12:10 +0200
csiph-web