<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/gpu/drm/mgag200, branch v5.9.10</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v5.9.10</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v5.9.10'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2020-07-14T07:14:06+00:00</updated>
<entry>
<title>drm/mgag200: Inline mga_crtc_{prepare, commit}() into enable function</title>
<updated>2020-07-14T07:14:06+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-07-07T08:24:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=895a479039e0ee4c540d34f0848360ef21d10421'/>
<id>urn:sha1:895a479039e0ee4c540d34f0848360ef21d10421</id>
<content type='text'>
There's only trivial code left in mga_crtc_{prepare,commit}(). Merge the
functions into the simple pipe's enable function.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Lyude Paul &lt;lyude@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200707082411.6583-8-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Rename G200WB prepare/commit function</title>
<updated>2020-07-14T07:14:06+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-07-07T08:24:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=904347fb5ab40c1f4d11d76144d7cc0c8d405ef9'/>
<id>urn:sha1:904347fb5ab40c1f4d11d76144d7cc0c8d405ef9</id>
<content type='text'>
The prepare and commit helpers for G200WB devices control the BMC.
Rename them accordingly. While at it, also change the passed value's
type to struct mga_device and remove some type upcasting.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Lyude Paul &lt;lyude@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200707082411.6583-7-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Set/clear &lt;syncrst&gt; field in display enable/disable helpers</title>
<updated>2020-07-14T07:14:06+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-07-07T08:24:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=70c3881eedd072c4df88b662dc1362a63baa6a91'/>
<id>urn:sha1:70c3881eedd072c4df88b662dc1362a63baa6a91</id>
<content type='text'>
Modifying the &lt;syncrst&gt; field in mgag200_{enable,disable}_display()
makes the code more readable. Also clear the &lt;asyncrst&gt; field to enable
the display. The other bits in SEQ0 are unused, so no functional changes
are made.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Lyude Paul &lt;lyude@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200707082411.6583-6-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Split DPMS function into helpers</title>
<updated>2020-07-14T07:13:40+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-07-07T08:24:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=153fef4115e886de8db2e5c58dc3bc63e7a68a09'/>
<id>urn:sha1:153fef4115e886de8db2e5c58dc3bc63e7a68a09</id>
<content type='text'>
Of the DPMS code, only ON and OFF states are used. Simplify mode setting
by moving both into separate functions and removing the rest.

The original code busy waited in the middle of updating the screen state
in SEQ1. To simplify the procedure, the new code busy waits first and then
updates SEQ1 in one chunk.

The DPMS code also set the LUT before enabling the screen. The patch moves
this code into the simple-display pipe's enable function.

v2:
	* comment on SEQ1 updates in commit message

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Lyude Paul &lt;lyude@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200707082411.6583-5-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Don't set or clear &lt;scroff&gt; field during modeset</title>
<updated>2020-07-14T07:06:30+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-07-07T08:24:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=379ba8043db2251302dbe623013effa696e52b2a'/>
<id>urn:sha1:379ba8043db2251302dbe623013effa696e52b2a</id>
<content type='text'>
The simple pipe's disable function disables the screen by calling
mgag200_disable_screen(). The simple pipe's enable function enables the
screen by calling mgag200_enable_display().

During modeset operations the screen is off and remains off. It's only
enabled after the modeset has been completed. Therefore remove all code
that sets or clears the &lt;scroff&gt; field while in modeset.

The related code also modifies the &lt;syncrst&gt; field in SEQ0. For now, keep
this code in place.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Lyude Paul &lt;lyude@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200707082411.6583-4-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Move PLL setup out of mode-setting function</title>
<updated>2020-07-14T07:06:27+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-07-07T08:24:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=fc42e89fe514cecc52b8547ffb7784a758c2c450'/>
<id>urn:sha1:fc42e89fe514cecc52b8547ffb7784a758c2c450</id>
<content type='text'>
Makes the code slightly more flexible. No functional changes.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Lyude Paul &lt;lyude@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200707082411.6583-3-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Don't write-protect CRTC 0-7 while in mga_crtc_prepare()</title>
<updated>2020-07-14T07:06:14+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-07-07T08:24:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=da568d5e352c95c6278ddc2778cbd36b5ea65b09'/>
<id>urn:sha1:da568d5e352c95c6278ddc2778cbd36b5ea65b09</id>
<content type='text'>
The prepare function write-protects several registers that it doesn't
even touch. Removed the related code.

The code for unprotecting registers also clears VINT interrupts. Both
is now done once during initialization.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Lyude Paul &lt;lyude@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200707082411.6583-2-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Use managed device initialization</title>
<updated>2020-06-11T08:06:14+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-06-05T13:58:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=fb7ba0c7cf92000b93b2286b4b55a75549e4a313'/>
<id>urn:sha1:fb7ba0c7cf92000b93b2286b4b55a75549e4a313</id>
<content type='text'>
The mgag200 driver now uses managed functions for DRM devices. The
individual helpers for modesetting and memory managed are already
covered, so only device allocation and initialization is left for
conversion.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Acked-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200605135803.19811-15-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Embed instance of struct drm_device in struct mga_device</title>
<updated>2020-06-11T08:06:10+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-06-05T13:58:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=832eddf5d8f4d83983b7674faa009b2a5ead1848'/>
<id>urn:sha1:832eddf5d8f4d83983b7674faa009b2a5ead1848</id>
<content type='text'>
Following current best practice, the instance of struct drm_device is now
embedded in struct mga_device. The respective field has been renamed from
'dev' to 'base' to reflect the relationship. Conversion from DRM device is
done via upcast. Using dev_private is no longer possible.

The patch also open-codes drm_dev_alloc() and DRM device initialization
is now performed by a call to drm_device_init().

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Acked-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200605135803.19811-14-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/mgag200: Allocate device structures in mgag200_driver_load()</title>
<updated>2020-06-11T08:06:07+00:00</updated>
<author>
<name>Thomas Zimmermann</name>
<email>tzimmermann@suse.de</email>
</author>
<published>2020-06-05T13:58:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3c8923c3f15e1c7f84b804f218500febf46868a3'/>
<id>urn:sha1:3c8923c3f15e1c7f84b804f218500febf46868a3</id>
<content type='text'>
Instances of struct drm_device and struct mga_device are now allocated
next to each other in mgag200_driver_load(). Yet another preparation
before embedding the DRM device instance in struct mga_device.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Acked-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200605135803.19811-13-tzimmermann@suse.de
</content>
</entry>
</feed>
