<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/gpu/drm/mediatek, branch v4.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.9</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2016-11-24T06:53:15Z</updated>
<entry>
<title>drm/mediatek: fix null pointer dereference</title>
<updated>2016-11-24T06:53:15Z</updated>
<author>
<name>Matthias Brugger</name>
<email>matthias.bgg@gmail.com</email>
</author>
<published>2016-11-18T10:06:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5ad45307d990020b25a8f7486178b6e033790f70'/>
<id>urn:sha1:5ad45307d990020b25a8f7486178b6e033790f70</id>
<content type='text'>
The probe function requests the interrupt before initializing
the ddp component. Which leads to a null pointer dereference at boot.
Fix this by requesting the interrput after all components got
initialized properly.

Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC
MT8173.")
Signed-off-by: Matthias Brugger &lt;matthias.bgg@gmail.com&gt;

Change-Id: I57193a7ab554dfb37c35a455900689333adf511c
</content>
</entry>
<entry>
<title>drm/mediatek: fixed the calc method of data rate per lane</title>
<updated>2016-11-24T06:53:14Z</updated>
<author>
<name>Jitao Shi</name>
<email>jitao.shi@mediatek.com</email>
</author>
<published>2016-11-16T03:20:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f6c872397028837c80685ee96c4011c62abe9a73'/>
<id>urn:sha1:f6c872397028837c80685ee96c4011c62abe9a73</id>
<content type='text'>
Tune dsi frame rate by pixel clock, dsi add some extra signal (i.e.
Tlpx, Ths-prepare, Ths-zero, Ths-trail,Ths-exit) when enter and exit LP
mode, those signals will cause h-time larger than normal and reduce FPS.
So need to multiply a coefficient to offset the extra signal's effect.
  coefficient = ((htotal*bpp/lane_number)+Tlpx+Ths_prep+Ths_zero+
		 Ths_trail+Ths_exit)/(htotal*bpp/lane_number)

Signed-off-by: Jitao Shi &lt;jitao.shi@mediatek.com&gt;
Reviewed-by: Daniel Kurtz &lt;djkurtz@chromium.org&gt;
</content>
</entry>
<entry>
<title>drm/mediatek: fix a typo of DISP_OD_CFG to OD_RELAYMODE</title>
<updated>2016-11-24T06:53:14Z</updated>
<author>
<name>Bibby Hsieh</name>
<email>bibby.hsieh@mediatek.com</email>
</author>
<published>2016-10-18T08:23:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1ee6f347f81925fa8f3816e69ca1b49021f37850'/>
<id>urn:sha1:1ee6f347f81925fa8f3816e69ca1b49021f37850</id>
<content type='text'>
If we want to set the hardware OD to relay mode,
we have to set DISP_OD_CFG register rather than
OD_RELAYMODE; otherwise, the system will access
the wrong address.

Change-Id: Ifb9bb4caa63df906437d48b5d5326b6d04ea332a
Fixes: 7216436420414144646f5d8343d061355fd23483 ("drm/mediatek: set mt8173 dithering function")
Cc: stable@vger.kernel.org # v4.9+
Signed-off-by: Bibby Hsieh &lt;bibby.hsieh@mediatek.com&gt;
Acked-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
</entry>
<entry>
<title>Revert "drm/mediatek: set vblank_disable_allowed to true"</title>
<updated>2016-11-18T00:27:00Z</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2016-11-18T00:27:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7d40c2cf080950eab63a0747482027f5f1dae0d3'/>
<id>urn:sha1:7d40c2cf080950eab63a0747482027f5f1dae0d3</id>
<content type='text'>
This reverts commit f752fff611b99f5679224f3990a1f531ea64b1ec.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>Revert "drm/mediatek: fix a typo of OD_CFG to OD_RELAYMODE"</title>
<updated>2016-11-18T00:26:44Z</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2016-11-18T00:26:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e9f01049d1ea4679a3258b8423fe54bae424ee0e'/>
<id>urn:sha1:e9f01049d1ea4679a3258b8423fe54bae424ee0e</id>
<content type='text'>
This reverts commit 83ba62bc700bab710b22be3a1bf6cf973f754273.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm/mediatek: modify the factor to make the pll_rate set in the 1G-2G range</title>
<updated>2016-10-19T01:07:08Z</updated>
<author>
<name>Junzhi Zhao</name>
<email>junzhi.zhao@mediatek.com</email>
</author>
<published>2016-09-29T03:02:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0d2200794f0a2c1ebb3b6613842914d8ce4b67f9'/>
<id>urn:sha1:0d2200794f0a2c1ebb3b6613842914d8ce4b67f9</id>
<content type='text'>
Currently, the code sets the "pll" to the desired multiple
of the pixel clock manully(4*3m 8*3,etc).  The valid range
of the pll is 1G-2G, however, when the pixel clock is bigger
than 167MHz,  the "pll" will be set to a invalid value( &gt; 2G),
then the "pll" will be 2GHz, thus the pixel clock will be in
correct. Change the factor to make the "pll" be set in the
(1G, 2G) range.

Signed-off-by: Junzhi Zhao &lt;junzhi.zhao@mediatek.com&gt;
Signed-off-by: Bibby Hsieh &lt;bibby.hsieh@mediatek.com&gt;
</content>
</entry>
<entry>
<title>drm/mediatek: enhance the HDMI driving current</title>
<updated>2016-10-19T01:06:53Z</updated>
<author>
<name>Junzhi Zhao</name>
<email>junzhi.zhao@mediatek.com</email>
</author>
<published>2016-09-29T03:02:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=968253bd7caae5621f6806dd5055353fe33d366e'/>
<id>urn:sha1:968253bd7caae5621f6806dd5055353fe33d366e</id>
<content type='text'>
In order to improve 4K resolution performance,
we have to enhance the HDMI driving current
when clock rate is greater than 165MHz.

Signed-off-by: Junzhi Zhao &lt;junzhi.zhao@mediatek.com&gt;
Signed-off-by: Bibby Hsieh &lt;bibby.hsieh@mediatek.com&gt;
</content>
</entry>
<entry>
<title>drm/mediatek: do mtk_hdmi_send_infoframe after HDMI clock enable</title>
<updated>2016-10-19T01:06:41Z</updated>
<author>
<name>Junzhi Zhao</name>
<email>junzhi.zhao@mediatek.com</email>
</author>
<published>2016-09-29T03:02:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d542b7c473f0eb34455974d66ea93653b3eb40ce'/>
<id>urn:sha1:d542b7c473f0eb34455974d66ea93653b3eb40ce</id>
<content type='text'>
The mtk_hdmi_send_infoframe have to
be run after PLL and PIXEL clock of HDMI enable.
Make sure that HDMI inforframes can be sent
successfully.

Signed-off-by: Junzhi Zhao &lt;junzhi.zhao@mediatek.com&gt;
Signed-off-by: Bibby Hsieh &lt;bibby.hsieh@mediatek.com&gt;
</content>
</entry>
<entry>
<title>drm/mediatek: clear IRQ status before enable OVL interrupt</title>
<updated>2016-10-19T01:06:12Z</updated>
<author>
<name>Bibby Hsieh</name>
<email>bibby.hsieh@mediatek.com</email>
</author>
<published>2016-09-29T03:29:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=56e4b1e183555c74097fa012f1606b22223f027b'/>
<id>urn:sha1:56e4b1e183555c74097fa012f1606b22223f027b</id>
<content type='text'>
To make sure that the first vblank IRQ after enabling
vblank isn't too short or immediate, we have to clear
the IRQ status before enable OVL interrupt.

Signed-off-by: Bibby Hsieh &lt;bibby.hsieh@mediatek.com&gt;
Acked-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
</entry>
<entry>
<title>drm/mediatek: set vblank_disable_allowed to true</title>
<updated>2016-10-19T01:05:44Z</updated>
<author>
<name>Bibby Hsieh</name>
<email>bibby.hsieh@mediatek.com</email>
</author>
<published>2016-09-29T03:29:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f752fff611b99f5679224f3990a1f531ea64b1ec'/>
<id>urn:sha1:f752fff611b99f5679224f3990a1f531ea64b1ec</id>
<content type='text'>
MTK DRM driver didn't set the vblank_disable_allowed to
true, it cause that the irq_handler is called every
16.6 ms (every vblank) when the display didn't be updated.

Signed-off-by: Bibby Hsieh &lt;bibby.hsieh@mediatek.com&gt;
Acked-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
</entry>
</feed>
