<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/gpu/drm/msm/msm_fb.c, branch linux-4.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.16.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2017-08-22T17:20:39Z</updated>
<entry>
<title>drm/msm: make msm_framebuffer_init() static</title>
<updated>2017-08-22T17:20:39Z</updated>
<author>
<name>Rob Clark</name>
<email>robdclark@gmail.com</email>
</author>
<published>2017-07-11T14:08:05Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6c0693b1ed500082516a13df53f688ef37a6b6e1'/>
<id>urn:sha1:6c0693b1ed500082516a13df53f688ef37a6b6e1</id>
<content type='text'>
Only needed in msm_fb.c so don't export it.

Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: add helper to allocate stolen fb</title>
<updated>2017-08-22T17:20:39Z</updated>
<author>
<name>Rob Clark</name>
<email>robdclark@gmail.com</email>
</author>
<published>2017-07-11T14:40:13Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=466e5606cc21fc75e3c6ce2d16c6ddde48e1e4fa'/>
<id>urn:sha1:466e5606cc21fc75e3c6ce2d16c6ddde48e1e4fa</id>
<content type='text'>
We'll later want to re-use this for state-readback when bootloader
enables display, so that we can create an fb for the initial
plane-&gt;state-&gt;fb.

Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: pass address-space to _get_iova() and friends</title>
<updated>2017-06-16T15:16:04Z</updated>
<author>
<name>Rob Clark</name>
<email>robdclark@gmail.com</email>
</author>
<published>2017-06-13T15:07:08Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8bdcd949bbe7e7f9e60a3564baa600884f8f4ba7'/>
<id>urn:sha1:8bdcd949bbe7e7f9e60a3564baa600884f8f4ba7</id>
<content type='text'>
No functional change, that will come later.  But this will make it
easier to deal with dynamically created address spaces (ie. per-
process pagetables for gpu).

Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: fix include notation and remove -Iinclude/drm flag</title>
<updated>2017-05-17T12:35:54Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2017-04-24T04:50:28Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=78f27b1ce3f852543443b5d2f12a40f217e3555e'/>
<id>urn:sha1:78f27b1ce3f852543443b5d2f12a40f217e3555e</id>
<content type='text'>
Include &lt;drm/*.h&gt; instead of relative path from include/drm, then
remove the -Iinclude/drm compiler flag.

While we are here, sort the touched parts with public headers first.
mdp4_kms.h must declare struct device_node to be self-contained.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1493009447-31524-11-git-send-email-yamada.masahiro@socionext.com
</content>
</entry>
<entry>
<title>drm: Nuke fb-&gt;pixel_format</title>
<updated>2016-12-15T12:55:34Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2016-12-14T21:32:55Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=438b74a5497c36d6d59baded434002e30267cabe'/>
<id>urn:sha1:438b74a5497c36d6d59baded434002e30267cabe</id>
<content type='text'>
Replace uses of fb-&gt;pixel_format with fb-&gt;format-&gt;format.
Less duplicated information is a good thing.

Note that coccinelle failed to eliminate the
"/* fourcc format */" comment from drm_framebuffer.h, so I had
to do that part manually.

@@
struct drm_framebuffer *FB;
expression E;
@@
 drm_helper_mode_fill_fb_struct(...) {
	...
-	FB-&gt;pixel_format = E;
	...
 }

@@
struct drm_framebuffer *FB;
expression E;
@@
 i9xx_get_initial_plane_config(...) {
	...
-	FB-&gt;pixel_format = E;
	...
 }

@@
struct drm_framebuffer *FB;
expression E;
@@
 ironlake_get_initial_plane_config(...) {
	...
-	FB-&gt;pixel_format = E;
	...
 }

@@
struct drm_framebuffer *FB;
expression E;
@@
 skylake_get_initial_plane_config(...) {
	...
-	FB-&gt;pixel_format = E;
	...
 }

@@
struct drm_framebuffer *a;
struct drm_framebuffer b;
@@
(
- a-&gt;pixel_format
+ a-&gt;format-&gt;format
|
- b.pixel_format
+ b.format-&gt;format
)

@@
struct drm_plane_state *a;
struct drm_plane_state b;
@@
(
- a-&gt;fb-&gt;pixel_format
+ a-&gt;fb-&gt;format-&gt;format
|
- b.fb-&gt;pixel_format
+ b.fb-&gt;format-&gt;format
)

@@
struct drm_crtc *CRTC;
@@
(
- CRTC-&gt;primary-&gt;fb-&gt;pixel_format
+ CRTC-&gt;primary-&gt;fb-&gt;format-&gt;format
|
- CRTC-&gt;primary-&gt;state-&gt;fb-&gt;pixel_format
+ CRTC-&gt;primary-&gt;state-&gt;fb-&gt;format-&gt;format
)

@@
struct drm_mode_set *set;
@@
(
- set-&gt;fb-&gt;pixel_format
+ set-&gt;fb-&gt;format-&gt;format
|
- set-&gt;crtc-&gt;primary-&gt;fb-&gt;pixel_format
+ set-&gt;crtc-&gt;primary-&gt;fb-&gt;format-&gt;format
)

@@
@@
 struct drm_framebuffer {
	 ...
-	 uint32_t pixel_format;
	 ...
 };

v2: Fix commit message (Laurent)
    Rebase due to earlier removal of many fb-&gt;pixel_format uses,
    including the 'fb-&gt;format = drm_format_info(fb-&gt;format-&gt;format);'
    snafu
v3: Adjusted the semantic patch a bit and regenerated due to code
    changes

Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt; (v1)
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1481751175-18463-1-git-send-email-ville.syrjala@linux.intel.com
</content>
</entry>
<entry>
<title>drm: Replace drm_format_num_planes() with fb-&gt;format-&gt;num_planes</title>
<updated>2016-12-15T12:55:31Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2016-12-14T21:30:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=bcb0b461454c9cb3b5804cf75bacaadb52348864'/>
<id>urn:sha1:bcb0b461454c9cb3b5804cf75bacaadb52348864</id>
<content type='text'>
Replace drm_format_num_planes(fb-&gt;pixel_format) with just
fb-&gt;format-&gt;num_planes. Avoids the expensive format info lookup.

@@
struct drm_framebuffer *a;
struct drm_framebuffer b;
@@
(
- drm_format_num_planes(a-&gt;pixel_format)
+ a-&gt;format-&gt;num_planes
|
- drm_format_num_planes(b.pixel_format)
+ b.format-&gt;num_planes
)

@@
struct drm_plane_state *a;
struct drm_plane_state b;
@@
(
- drm_format_num_planes(a-&gt;fb-&gt;pixel_format)
+ a-&gt;fb-&gt;format-&gt;num_planes
|
- drm_format_num_planes(b.fb-&gt;pixel_format)
+ b.fb-&gt;format-&gt;num_planes
)

@@
struct drm_framebuffer *a;
identifier T;
@@
  T = a-&gt;pixel_format
&lt;+...
- drm_format_num_planes(T)
+ a-&gt;format-&gt;num_planes
...+&gt;

@@
struct drm_framebuffer b;
identifier T;
@@
  T = b.pixel_format
&lt;+...
- drm_format_num_planes(T)
+ b.format-&gt;num_planes
...+&gt;

v2: Rerun spatch due to code changes

Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Suggested-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1481751022-18015-1-git-send-email-ville.syrjala@linux.intel.com
</content>
</entry>
<entry>
<title>drm: Pass 'dev' to drm_helper_mode_fill_fb_struct()</title>
<updated>2016-12-15T12:03:30Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2016-12-14T20:48:59Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a3f913ca98925d7e5bae725e9b2b38408215a695'/>
<id>urn:sha1:a3f913ca98925d7e5bae725e9b2b38408215a695</id>
<content type='text'>
Pass the drm_device to drm_helper_mode_fill_fb_struct() so that we can
populate fb-&gt;dev early. Will make it easier to use the fb before we
register it.

@@
identifier fb, mode_cmd;
@@
 void drm_helper_mode_fill_fb_struct(
+				     struct drm_device *dev,
				     struct drm_framebuffer *fb,
				     const struct drm_mode_fb_cmd2 *mode_cmd
				     );

@@
identifier fb, mode_cmd;
@@
 void drm_helper_mode_fill_fb_struct(
+				     struct drm_device *dev,
				     struct drm_framebuffer *fb,
				     const struct drm_mode_fb_cmd2 *mode_cmd
				     )
{ ... }

@@
function func;
identifier dev;
expression E1, E2;
@@
func(struct drm_device *dev, ...)
{
 ...
 drm_helper_mode_fill_fb_struct(
+				dev,
				E1, E2);
 ...
}

@@
expression E1, E2;
@@
 drm_helper_mode_fill_fb_struct(
+				dev,
				E1, E2);

v2: Rerun spatch due to code changes

Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1481748539-18283-1-git-send-email-ville.syrjala@linux.intel.com
</content>
</entry>
<entry>
<title>drm/msm: convert iova to 64b</title>
<updated>2016-11-28T20:14:08Z</updated>
<author>
<name>Rob Clark</name>
<email>robdclark@gmail.com</email>
</author>
<published>2016-11-11T17:06:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=78babc1633c4b0664ea516500c2ace9bf1f17bc7'/>
<id>urn:sha1:78babc1633c4b0664ea516500c2ace9bf1f17bc7</id>
<content type='text'>
For a5xx the gpu is 64b so we need to change iova to 64b everywhere.  On
the display side, iova is still 32b so it can ignore the upper bits.
(Although all the armv8 devices have an iommu that can map 64b pa to 32b
iova.)

Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: Delete unnecessary checks before drm_gem_object_unreference_unlocked()</title>
<updated>2016-07-16T14:29:34Z</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2016-07-13T17:15:35Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e73a8569731aebd21832b34bf7ce8121dec2e98d'/>
<id>urn:sha1:e73a8569731aebd21832b34bf7ce8121dec2e98d</id>
<content type='text'>
The drm_gem_object_unreference_unlocked() function tests whether
its argument is NULL and then returns immediately.
Thus the test around the calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: Nuke dummy fb-&gt;dirty callback</title>
<updated>2016-06-01T07:41:52Z</updated>
<author>
<name>Daniel Vetter</name>
<email>daniel.vetter@ffwll.ch</email>
</author>
<published>2016-05-30T17:53:13Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=90450caf968805cdbc8edf61611aac5d281457f0'/>
<id>urn:sha1:90450caf968805cdbc8edf61611aac5d281457f0</id>
<content type='text'>
It's an optional hook.

Cc: Rob Clark &lt;robdclark@gmail.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1464630800-30786-22-git-send-email-daniel.vetter@ffwll.ch
</content>
</entry>
</feed>
