<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/gpu/drm/etnaviv, branch dev-5.2</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-5.2</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-5.2'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2019-07-04T01:19:34+00:00</updated>
<entry>
<title>Merge branch 'etnaviv/fixes' of https://git.pengutronix.de/git/lst/linux into drm-fixes</title>
<updated>2019-07-04T01:19:34+00:00</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2019-07-04T01:19:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=b5252bdf099a465e6b707e7cf11b7ef0b1e4cf09'/>
<id>urn:sha1:b5252bdf099a465e6b707e7cf11b7ef0b1e4cf09</id>
<content type='text'>
Fix a kernel nullptr deref on module
unload when any etnaviv GPU failed to initialize properly.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
From: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1561974148.2321.1.camel@pengutronix.de
</content>
</entry>
<entry>
<title>drm/etnaviv: add missing failure path to destroy suballoc</title>
<updated>2019-06-28T08:59:44+00:00</updated>
<author>
<name>Lucas Stach</name>
<email>l.stach@pengutronix.de</email>
</author>
<published>2019-06-27T14:42:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=be132e1375c1fffe48801296279079f8a59a9ed3'/>
<id>urn:sha1:be132e1375c1fffe48801296279079f8a59a9ed3</id>
<content type='text'>
When something goes wrong in the GPU init after the cmdbuf suballocator
has been constructed, we fail to destroy it properly. This causes havok
later when the GPU is unbound due to a module unload or similar.

Fixes: e66774dd6f6a (drm/etnaviv: add cmdbuf suballocator)
Signed-off-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Tested-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
</content>
</entry>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234</title>
<updated>2019-06-19T15:09:07+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-06-03T05:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=caab277b1de0a22b675c4c95fc7b285ec2eb5bf5'/>
<id>urn:sha1:caab277b1de0a22b675c4c95fc7b285ec2eb5bf5</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license version 2 as
  published by the free software foundation this program is
  distributed in the hope that it will be useful but without any
  warranty without even the implied warranty of merchantability or
  fitness for a particular purpose see the gnu general public license
  for more details you should have received a copy of the gnu general
  public license along with this program if not see http www gnu org
  licenses

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 503 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Alexios Zavras &lt;alexios.zavras@intel.com&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Reviewed-by: Enrico Weigelt &lt;info@metux.net&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190602204653.811534538@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'etnaviv/fixes' of https://git.pengutronix.de/git/lst/linux into drm-fixes</title>
<updated>2019-05-30T00:50:41+00:00</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2019-05-30T00:48:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=b077dc23b548cbcac64040cae1e2d2658d4a5bfd'/>
<id>urn:sha1:b077dc23b548cbcac64040cae1e2d2658d4a5bfd</id>
<content type='text'>
etnaviv core dump locking fix

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
From: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1558966666.4039.4.camel@pengutronix.de
</content>
</entry>
<entry>
<title>drm/etnaviv: lock MMU while dumping core</title>
<updated>2019-05-27T14:08:38+00:00</updated>
<author>
<name>Lucas Stach</name>
<email>l.stach@pengutronix.de</email>
</author>
<published>2019-05-21T12:53:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=1396500d673bd027683a0609ff84dca7eb6ea2e7'/>
<id>urn:sha1:1396500d673bd027683a0609ff84dca7eb6ea2e7</id>
<content type='text'>
The devcoredump needs to operate on a stable state of the MMU while
it is writing the MMU state to the coredump. The missing lock
allowed both the userspace submit, as well as the GPU job finish
paths to mutate the MMU state while a coredump is under way.

Fixes: a8c21a5451d8 (drm/etnaviv: add initial etnaviv DRM driver)
Reported-by: David Jander &lt;david@protonic.nl&gt;
Signed-off-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Tested-by: David Jander &lt;david@protonic.nl&gt;
Reviewed-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>treewide: Add SPDX license identifier - Makefile/Kconfig</title>
<updated>2019-05-21T08:50:46+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-05-19T12:07:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1'/>
<id>urn:sha1:ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1</id>
<content type='text'>
Add SPDX license identifiers to all Make/Kconfig files which:

 - Have no license information of any form

These files fall under the project license, GPL v2 only. The resulting SPDX
license identifier is:

  GPL-2.0-only

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'etnaviv/next' of https://git.pengutronix.de/git/lst/linux into drm-next</title>
<updated>2019-05-06T22:27:23+00:00</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2019-05-06T22:27:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=d62bef1016e944a7602d6fade214f28e1f2157de'/>
<id>urn:sha1:d62bef1016e944a7602d6fade214f28e1f2157de</id>
<content type='text'>
things are still slow in etnaviv land, so we don't have anything major
to destage. Just a couple of non-critical fixes that I want to land in
5.2.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
From: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1556874643.2590.15.camel@pengutronix.de
</content>
</entry>
<entry>
<title>drm/etnaviv: initialize idle mask before querying the HW db</title>
<updated>2019-05-03T08:41:04+00:00</updated>
<author>
<name>Lucas Stach</name>
<email>l.stach@pengutronix.de</email>
</author>
<published>2018-12-19T14:16:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=2b76f5be7c2778ee2f6bacddc19248f6a4a467a0'/>
<id>urn:sha1:2b76f5be7c2778ee2f6bacddc19248f6a4a467a0</id>
<content type='text'>
If there is a match in the HW DB, the function is left early, before
inititalizing the idle mask. Fix this by doing the init earlier, as
only old GPUs, not present in the HW DB need a different idle mask.

Signed-off-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Reviewed-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>drm/etnaviv: clean up etnaviv_gem_new_handle</title>
<updated>2019-04-17T14:25:30+00:00</updated>
<author>
<name>Lucas Stach</name>
<email>l.stach@pengutronix.de</email>
</author>
<published>2019-02-19T13:10:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=fd2450a77d3360ac3d54c84e0aa0672f4d8ad4b2'/>
<id>urn:sha1:fd2450a77d3360ac3d54c84e0aa0672f4d8ad4b2</id>
<content type='text'>
Setting the GFP flags does not need a new code block if moved to
the right location, which makes this function a bit easier to read.

Signed-off-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Reviewed-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Reviewed-by: Christian Gmeiner &lt;christian.gmeiner@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm: etnaviv: avoid DMA API warning when importing buffers</title>
<updated>2019-04-17T12:20:00+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-02-25T10:51:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=1262cc8893ecb0eb2c21e042d0d268cc180edb61'/>
<id>urn:sha1:1262cc8893ecb0eb2c21e042d0d268cc180edb61</id>
<content type='text'>
During boot, I get this kernel warning:

WARNING: CPU: 0 PID: 19001 at kernel/dma/debug.c:1301 debug_dma_map_sg+0x284/0x3dc
etnaviv etnaviv: DMA-API: mapping sg segment longer than device claims to support [len=3145728] [max=65536]
Modules linked in: ip6t_REJECT nf_reject_ipv6 ip6t_rpfilter xt_tcpudp ipt_REJECT nf_reject_ipv4 xt_conntrack ip_set nfnetlink ebtable_broute ebtable_nat ip6table_raw ip6table_nat nf_nat_ipv6 ip6table_mangle iptable_raw iptable_nat nf_nat_ipv4 nf_nat nf_conntrack nf_defrag_ipv4 nf_defrag_ipv6 libcrc32c iptable_mangle ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter caam_jr error snd_soc_imx_spdif imx_thermal snd_soc_imx_audmux nvmem_imx_ocotp snd_soc_sgtl5000
caam imx_sdma virt_dma coda rc_cec v4l2_mem2mem snd_soc_fsl_ssi snd_soc_fsl_spdif imx_vdoa imx_pcm_dma videobuf2_dma_contig etnaviv dw_hdmi_cec gpu_sched dw_hdmi_ahb_audio imx6q_cpufreq nfsd sch_fq_codel ip_tables x_tables
CPU: 0 PID: 19001 Comm: Xorg Not tainted 4.20.0+ #307
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[&lt;c0019658&gt;] (unwind_backtrace) from [&lt;c001489c&gt;] (show_stack+0x10/0x14)
[&lt;c001489c&gt;] (show_stack) from [&lt;c07fb420&gt;] (dump_stack+0x9c/0xd4)
[&lt;c07fb420&gt;] (dump_stack) from [&lt;c00312dc&gt;] (__warn+0xf8/0x124)
[&lt;c00312dc&gt;] (__warn) from [&lt;c00313d0&gt;] (warn_slowpath_fmt+0x38/0x48)
[&lt;c00313d0&gt;] (warn_slowpath_fmt) from [&lt;c00b14e8&gt;] (debug_dma_map_sg+0x284/0x3dc)
[&lt;c00b14e8&gt;] (debug_dma_map_sg) from [&lt;c046eb40&gt;] (drm_gem_map_dma_buf+0xc4/0x13c)
[&lt;c046eb40&gt;] (drm_gem_map_dma_buf) from [&lt;c04c3314&gt;] (dma_buf_map_attachment+0x38/0x5c)
[&lt;c04c3314&gt;] (dma_buf_map_attachment) from [&lt;c046e728&gt;] (drm_gem_prime_import_dev+0x74/0x104)
[&lt;c046e728&gt;] (drm_gem_prime_import_dev) from [&lt;c046e5bc&gt;] (drm_gem_prime_fd_to_handle+0x84/0x17c)
[&lt;c046e5bc&gt;] (drm_gem_prime_fd_to_handle) from [&lt;c046edd0&gt;] (drm_prime_fd_to_handle_ioctl+0x38/0x4c)
[&lt;c046edd0&gt;] (drm_prime_fd_to_handle_ioctl) from [&lt;c0460efc&gt;] (drm_ioctl_kernel+0x90/0xc8)
[&lt;c0460efc&gt;] (drm_ioctl_kernel) from [&lt;c0461114&gt;] (drm_ioctl+0x1e0/0x3b0)
[&lt;c0461114&gt;] (drm_ioctl) from [&lt;c01cae20&gt;] (do_vfs_ioctl+0x90/0xa48)
[&lt;c01cae20&gt;] (do_vfs_ioctl) from [&lt;c01cb80c&gt;] (ksys_ioctl+0x34/0x60)
[&lt;c01cb80c&gt;] (ksys_ioctl) from [&lt;c0009000&gt;] (ret_fast_syscall+0x0/0x28)
Exception stack(0xd81a9fa8 to 0xd81a9ff0)
9fa0:                   b6c69c88 bec613f8 00000009 c00c642e bec613f8 b86c4600
9fc0: b6c69c88 bec613f8 c00c642e 00000036 012762e0 01276348 00000300 012d91f8
9fe0: b6989f18 bec613dc b697185c b667be5c
irq event stamp: 47905
hardirqs last  enabled at (47913): [&lt;c0098824&gt;] console_unlock+0x46c/0x680
hardirqs last disabled at (47922): [&lt;c0098470&gt;] console_unlock+0xb8/0x680
softirqs last  enabled at (47754): [&lt;c000a484&gt;] __do_softirq+0x344/0x540
softirqs last disabled at (47701): [&lt;c0038700&gt;] irq_exit+0x124/0x144
---[ end trace af477747acbcc642 ]---

The reason is the contiguous buffer exceeds the default maximum segment
size of 64K as specified by dma_get_max_seg_size() in
linux/dma-mapping.h.  Fix this by providing our own segment size, which
is set to 2GiB to cover the window found in MMUv1 GPUs.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;
</content>
</entry>
</feed>
