[Bug 109179] Surviving Mars - Graphical artifacts on game map

2019-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109179 Yury Zhuravlev changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 110813] Vega hang on Surviving Mars game

2019-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110813 --- Comment #3 from Yury Zhuravlev --- Looks like with kernel 5.2 and latest mesa I have no hang anymore, at lest very quick. I still want to test more but it's definitely better. -- You are receiving this mail because: You are the assignee fo

RE: [EXT] Re: [PATCH] drm/arm/mali-dp: Add display QoS interface configuration

2019-07-17 Thread Wen He
> -Original Message- > From: Liviu Dudau > Sent: 2019年7月17日 19:22 > To: Wen He > Cc: dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org; > brian.star...@arm.com; airl...@linux.ie; dan...@ffwll.ch; Leo Li > > Subject: [EXT] Re: [PATCH] drm/arm/mali-dp: Add display QoS interfa

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #55 from Hadet --- So I think this might have something to do with something Xorg is doing because I've not had it happen while gaming for many hours since just seeing if it happened on wayland on a whim. I now have 21 hours of uptim

[PATCH] drm/amdgpu/dm: Remove unneeded hotplug event in s3_handle_mst()

2019-07-17 Thread Lyude Paul
The DRM DP MST topology manager will send it's own hotplug events when connectors are destroyed, so there's no reason to send an additional hotplug event here. Signed-off-by: Lyude Paul --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 - 1 file changed, 4 insertions(+), 5 deleti

[PATCH 26/26] drm/dp_mst: Add topology ref history tracking for debugging

2019-07-17 Thread Lyude Paul
For very subtle mistakes with topology refs, it can be rather difficult to trace them down with the debugging info that we already have. I had one such issue recently while trying to implement suspend/resume reprobing for MST, and ended up coming up with this. Inspired by Chris Wilson's wakeref tr

[PATCH 24/26] drm/dp_mst: Add basic topology reprobing when resuming

2019-07-17 Thread Lyude Paul
Finally! For a very long time, our MST helpers have had one very annoying issue: They don't know how to reprobe the topology state when coming out of suspend. This means that if a user has a machine connected to an MST topology and decides to suspend their machine, we lose all topology changes that

[PATCH 25/26] drm/dp_mst: Also print unhashed pointers for malloc/topology references

2019-07-17 Thread Lyude Paul
Currently we only print mstb/port pointer addresses in our malloc and topology refcount functions using the hashed-by-default %p, but unfortunately if you're trying to debug a use-after-free error caused by a refcounting error then this really isn't terribly useful. On the other hand though, everyt

[PATCH 21/26] drm/nouveau: Don't grab runtime PM refs for HPD IRQs

2019-07-17 Thread Lyude Paul
In order for suspend/resume reprobing to work, we need to be able to perform sideband communications during suspend/resume, along with runtime PM suspend/resume. In order to do so, we also need to make sure that nouveau doesn't bother grabbing a runtime PM reference to do so, since otherwise we'll

[PATCH 19/26] drm/dp_mst: Protect drm_dp_mst_port members with connection_mutex

2019-07-17 Thread Lyude Paul
Yes-you read that right. Currently there is literally no locking in place for any of the drm_dp_mst_port struct members that can be modified in response to a link address response, or a connection status response. Which literally means if we're unlucky enough to have any sort of hotplugging event h

[PATCH 22/26] drm/amdgpu: Iterate through DRM connectors correctly

2019-07-17 Thread Lyude Paul
Currently, every single piece of code in amdgpu that loops through connectors does it incorrectly and doesn't use the proper list iteration helpers, drm_connector_list_iter_begin() and drm_connector_list_iter_end(). Yeesh. So, do that. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry We

[PATCH 20/26] drm/dp_mst: Don't forget to update port->input in drm_dp_mst_handle_conn_stat()

2019-07-17 Thread Lyude Paul
This probably hasn't caused any problems up until now since it's probably nearly impossible to encounter this in the wild, however if we were to receive a connection status notification from the MST hub after resume while we're in the middle of reprobing the link addresses for a topology then there

[PATCH 15/26] drm/dp_mst: Refactor pdt setup/teardown, add more locking

2019-07-17 Thread Lyude Paul
Since we're going to be implementing suspend/resume reprobing very soon, we need to make sure we are extra careful to ensure that our locking actually protects the topology state where we expect it to. Turns out this isn't the case with drm_dp_port_setup_pdt() and drm_dp_port_teardown_pdt(), both o

[PATCH 23/26] drm/amdgpu/dm: Resume short HPD IRQs before resuming MST topology

2019-07-17 Thread Lyude Paul
Since we're going to be reprobing the entire topology state on resume now using sideband transactions, we need to ensure that we actually have short HPD irqs enabled before calling drm_dp_mst_topology_mgr_resume(). So, do that. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland S

[PATCH 16/26] drm/dp_mst: Rename drm_dp_add_port and drm_dp_update_port

2019-07-17 Thread Lyude Paul
The names for these functions are rather confusing. drm_dp_add_port() sounds like a function that would simply create a port and add it to a topology, and do nothing more. Similarly, drm_dp_update_port() would be assumed to be the function that should be used to update port information after initia

[PATCH 17/26] drm/dp_mst: Remove lies in {up,down}_rep_recv documentation

2019-07-17 Thread Lyude Paul
These are most certainly accessed from far more than the mgr work. In fact, up_req_recv is -only- ever accessed from outside the mgr work. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- include/drm/drm_dp_mst_helper.h | 8 ++-- 1 file chang

[PATCH 14/26] drm/dp_mst: Cleanup drm_dp_send_link_address() a bit

2019-07-17 Thread Lyude Paul
Declare local pointer to the drm_dp_link_address_ack_reply struct instead of constantly dereferencing it through the union in txmsg->reply. Then, invert the order of conditionals so we don't have to do the bulk of the work inside them, and can wrap lines even less. Then finally, rearrange variable

[PATCH 18/26] drm/dp_mst: Handle UP requests asynchronously

2019-07-17 Thread Lyude Paul
Once upon a time, hotplugging devices on MST branches actually worked in DRM. Now, it only works in amdgpu (likely because of how it's hotplug handlers are implemented). On both i915 and nouveau, hotplug notifications from MST branches are noticed - but trying to respond to them causes messaging ti

[PATCH 05/26] drm/dp_mst: Add sideband down request tracing + selftests

2019-07-17 Thread Lyude Paul
Unfortunately the DP MST helpers do not have much in the way of debugging utilities. So, let's add some! This adds basic debugging output for down sideband requests that we send from the driver, so that we can actually discern what's happening when sideband requests timeout. Note that with this co

[PATCH 12/26] drm/dp_mst: Refactor drm_dp_mst_handle_down_rep()

2019-07-17 Thread Lyude Paul
* Remove the big ugly have_eomt conditional * Store &mgr->down_rep_recv.initial_hdr in a var to make line wrapping easier * Remove duplicate memset() calls * Actually wrap lines Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- drivers/gpu/drm/d

[PATCH 04/26] drm/print: Add drm_err_printer()

2019-07-17 Thread Lyude Paul
A simple convienence function that returns a drm_printer which prints using pr_err() Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_print.c | 6 ++ include/drm/drm_print.h | 17 + 2 files changed, 23

[PATCH 07/26] drm/dp_mst: Get rid of list clear in drm_dp_finish_destroy_port()

2019-07-17 Thread Lyude Paul
This seems to be some leftover detritus from before the port/mstb kref cleanup and doesn't do anything anymore, so get rid of it. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_mst_topology.c | 2 -- 1 file changed, 2 del

[PATCH 09/26] drm/dp_mst: Remove huge conditional in drm_dp_mst_handle_up_req()

2019-07-17 Thread Lyude Paul
Which reduces indentation and makes this function more legible. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_mst_topology.c | 90 +-- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git

[PATCH 13/26] drm/dp_mst: Destroy topology_mgr mutexes

2019-07-17 Thread Lyude Paul
Turns out we've been forgetting for a while now to actually destroy any of the mutexes that we create in drm_dp_mst_topology_mgr. So, let's do that. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_mst_topology.c | 5 +

[PATCH 01/26] drm/dp_mst: Move link address dumping into a function

2019-07-17 Thread Lyude Paul
Since we're about to be calling this from multiple places. Also it makes things easier to read! Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_mst_topology.c | 35 ++- 1 file changed, 23 insertions

[PATCH 03/26] drm/dp_mst: Move test_calc_pbn_mode() into an actual selftest

2019-07-17 Thread Lyude Paul
Yes, apparently we've been testing this for every single driver load for quite a long time now. At least that means our PBN calculation is solid! Anyway, introduce self tests for MST and move this into there. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyud

[PATCH 00/26] DP MST Refactors + debugging tools + suspend/resume reprobing

2019-07-17 Thread Lyude Paul
This is the large series for adding MST suspend/resume reprobing that I've been working on for quite a while now. In addition, I: - Refactored and cleaned up any code I ended up digging through in the process of understanding how some parts of these helpers worked. - Added some debugging tools a

[PATCH 10/26] drm/dp_mst: Constify guid in drm_dp_get_mst_branch_by_guid()

2019-07-17 Thread Lyude Paul
And it's helper, we'll be using this in just a moment. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_mst_topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topol

[PATCH 11/26] drm/dp_mst: Refactor drm_dp_mst_handle_up_req()

2019-07-17 Thread Lyude Paul
There's a couple of changes here, so to summarize: * Remove the big ugly mgr->up_req_recv.have_eomt conditional to save on indenting * Store &mgr->up_req_recv.initial_hdr in a variable so we don't keep going over 80 character long lines * De-duplicate code for calling drm_dp_send_up_ack_reply(

[PATCH 02/26] drm/dp_mst: Destroy mstbs from destroy_connector_work

2019-07-17 Thread Lyude Paul
Currently we remove MST branch devices from the in-memory topology immediately when their topology refcount reaches 0. This works just fine at the moment, but since we're about to add suspend/resume reprobing for MST topologies we're going to need to be able to travel through the topology and drop

[PATCH 06/26] drm/dp_mst: Move PDT teardown for ports into destroy_connector_work

2019-07-17 Thread Lyude Paul
This will allow us to add some locking for port PDTs, which can't be done from drm_dp_destroy_port() since we don't know what locks the caller might be holding. Also, this gets rid of a good bit of unneeded code. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: L

[PATCH 08/26] drm/dp_mst: Refactor drm_dp_send_enum_path_resources

2019-07-17 Thread Lyude Paul
Use more pointers so we don't have to write out txmsg->reply.u.path_resources each time. Also, fix line wrapping + rearrange local variables. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_mst_topology.c | 24

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 --- Comment #24 from Shawn Anastasio (sh...@anastas.io) --- Done. I've also updated the product/component to Platform Specific/PPC-64 since this wasn't an issue with amdgpu after all. -- You are receiving this mail because: You are watching the

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 Shawn Anastasio (sh...@anastas.io) changed: What|Removed |Added Component|Video(DRI - non Intel) |PPC-64 Kernel Ve

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 --- Comment #23 from Timothy Pearson (tpear...@raptorengineering.com) --- A nit, but might want to mark this bug as a regression and update the kernel version to 5.2.1? -- You are receiving this mail because: You are watching the assignee of the

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 --- Comment #22 from Shawn Anastasio (sh...@anastas.io) --- Great! I've posted the patch to the linuxppc-dev mailing list here: https://patchwork.ozlabs.org/patch/1133466/. -- You are receiving this mail because: You are watching the assignee of

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 --- Comment #21 from Timothy Pearson (tpear...@raptorengineering.com) --- Patch #3 confirmed working when applied against kernel 5.2.1. Thanks Shawn! -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 Robert Bridge (rob...@robbieab.com) changed: What|Removed |Added CC||rob...@robbieab.com

Re: [v5 6/7] drm/mediatek: change the dsi phytiming calculate method

2019-07-17 Thread Ryan Case
On Sun, Jun 30, 2019 at 6:43 PM CK Hu wrote: > > Hi, Jitao: > > On Thu, 2019-06-27 at 16:01 +0800, Jitao Shi wrote: > > Change the method of frame rate calc which can get more accurate > > frame rate. > > > > data rate = pixel_clock * bit_per_pixel / lanes > > Adjust hfp_wc to adapt the additional

Re: next/master boot: 265 boots: 17 failed, 243 passed with 4 offline, 1 conflict (next-20190717)

2019-07-17 Thread Rob Clark
On Wed, Jul 17, 2019 at 5:10 AM Mark Brown wrote: > > On Wed, Jul 17, 2019 at 04:27:56AM -0700, kernelci.org bot wrote: > > Today's -next fails to boot on a couple of apq8064 boards: > > > arm: > > qcom_defconfig: > > gcc-8: > > qcom-apq8064-cm-qs600: 1 failed lab > >

Re: [PATCH v1 05/33] drm/mxsfb: drop use of drmP.h

2019-07-17 Thread Stefan Agner
On 2019-07-15 18:28, Sam Ravnborg wrote: > On Fri, Jul 05, 2019 at 10:47:30PM +0200, Stefan Agner wrote: >> On 2019-06-30 08:18, Sam Ravnborg wrote: >> > Drop use of the deprecated drmP.h header file. >> > >> > While touching the list of include files divided them >> > in blocks and sort them withi

Re: [v5 1/7] drm/mediatek: move mipi_dsi_host_register to probe

2019-07-17 Thread Ryan Case
On Thu, Jun 27, 2019 at 11:11 PM CK Hu wrote: > > Hi, Jitao: > > On Thu, 2019-06-27 at 16:01 +0800, Jitao Shi wrote: > > DSI panel driver need attach function which is inculde in > > mipi_dsi_host_ops. > > > > If mipi_dsi_host_register is not in probe, dsi panel will > > probe more delay. > > > >

[PATCH] drm/vgem: fix cache synchronization on arm/arm64

2019-07-17 Thread Rob Clark
From: Rob Clark drm_cflush_pages() is no-op on arm/arm64. But instead we can use dma_sync API. Fixes failures w/ vgem_test. Signed-off-by: Rob Clark --- An alternative approach to the series[1] I sent yesterday On the plus side, it keeps the WC buffers and avoids any drm core changes. On th

Re: [PATCH 10/10] drm/tinydrm: Move tinydrm_display_pipe_init() to mipi-dbi

2019-07-17 Thread David Lechner
On 7/17/19 6:58 AM, Noralf Trønnes wrote: tinydrm_display_pipe_init() has only one user now, so move it to mipi-dbi. Changes: - Remove drm_connector_helper_funcs.detect, it's always connected. - Store the connector and mode in mipi_dbi instead of it's own struct. Otherwise remove some leftover

Re: [PATCH 09/10] drm/tinydrm/mipi-dbi: Add mipi_dbi_init_with_formats()

2019-07-17 Thread David Lechner
On 7/17/19 6:58 AM, Noralf Trønnes wrote: The MIPI DBI standard support more pixel formats than what this helper supports. Add an init function that lets the driver use different format(s). This avoids open coding mipi_dbi_init() in st7586. st7586 sets preferred_depth but this is not necessary s

Re: [PATCH] drm: Add Grain Media GM12U320 driver

2019-07-17 Thread Hans de Goede
Hi Noralf, Thank you for the review. On 17-07-19 17:24, Noralf Trønnes wrote: Den 12.07.2019 20.53, skrev Hans de Goede: Add a modesetting driver for Grain Media GM12U320 based devices (primarily Acer C120 projector, but there may be compatible devices). This is based on the fb driver from

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 --- Comment #19 from Shawn Anastasio (sh...@anastas.io) --- Created attachment 283803 --> https://bugzilla.kernel.org/attachment.cgi?id=283803&action=edit test patch #3 oops, missed a couple of includes and made a typo. Fixed those. -- You ar

Re: [PATCH 07/10] drm/tinydrm: Move tinydrm_machine_little_endian()

2019-07-17 Thread David Lechner
On 7/17/19 6:58 AM, Noralf Trønnes wrote: The tinydrm helper is going away so move it into the only user mipi-dbi. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c| 15 --- include/drm/tinydrm/tinydrm-helpers.h | 15 --- 2 files changed, 12 in

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 --- Comment #18 from Shawn Anastasio (sh...@anastas.io) --- Created attachment 283801 --> https://bugzilla.kernel.org/attachment.cgi?id=283801&action=edit test patch #2 Here's the new patch that should restore the previous behavior correctly.

Re: [PATCH 06/10] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-17 Thread David Lechner
On 7/17/19 6:58 AM, Noralf Trønnes wrote: This is only used by mipi-dbi drivers so move it there. The reason this isn't moved to the SPI subsystem is that it will in a later patch pass a dummy rx buffer for SPI controllers that need this. Low memory boards (64MB) can run into a problem allocatin

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 --- Comment #17 from Shawn Anastasio (sh...@anastas.io) --- On second glance, it seems I got it backwards. pgprot_noncache /is/ actually being set via the default implementation of arch_dma_mmap_pgprot, but this creates the opposite issue. In the

Re: [PATCH 01/10] drm: Add SPI connector type

2019-07-17 Thread David Lechner
On 7/17/19 6:58 AM, Noralf Trønnes wrote: tinydrm drivers announce DRM_MODE_CONNECTOR_VIRTUAL for its SPI drivers. Stop lying and add a SPI connector type Cc: David Lechner Signed-off-by: Noralf Trønnes --- Acked-by: David Lechner ___ dri-devel m

Re: [PATCH 05/10] drm/tinydrm: Clean up tinydrm_spi_transfer()

2019-07-17 Thread David Lechner
On 7/17/19 6:58 AM, Noralf Trønnes wrote: Prep work before moving the function to mipi-dbi. tinydrm_spi_transfer() was made to support one class of drivers in drivers/staging/fbtft that has not been converted to DRM yet, so strip away the unused functionality: - Start byte (header) is not used.

[PATCH v10 2/2] drm/i915: update cursors asynchronously through atomic

2019-07-17 Thread Helen Koike
From: Gustavo Padovan Replace the legacy cursor implementation by the async callbacks Signed-off-by: Gustavo Padovan Signed-off-by: Enric Balletbo i Serra Signed-off-by: Helen Koike --- Changes in v10: None Changes in v9: - v8: https://patchwork.kernel.org/patch/10843397/ - rebased and fi

[PATCH v10 1/2] drm/i915: Introduce async plane update to i915

2019-07-17 Thread Helen Koike
From: Gustavo Padovan Add implementation for async plane update callbacks Signed-off-by: Gustavo Padovan Signed-off-by: Enric Balletbo i Serra Signed-off-by: Tina Zhang Signed-off-by: Helen Koike Tested-by: Tina Zhang --- Hi, This is v10, I just fixed the order in how the commit_ready fen

[Bug 204145] amdgpu video playback causes host to hard reset (checkstop) on POWER9 with RX 580

2019-07-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204145 --- Comment #16 from Shawn Anastasio (sh...@anastas.io) --- Created attachment 283799 --> https://bugzilla.kernel.org/attachment.cgi?id=283799&action=edit test patch #1 Though I'm not familiar with this code, a quick spot check shows what I bel

[PATCH 3/5] drm/panfrost: Add a no execute flag for BO allocations

2019-07-17 Thread Rob Herring
Executable buffers have an alignment restriction that they can't cross 16MB boundary as the GPU program counter is 24-bits. This restriction is currently not handled and we just get lucky. As current userspace assumes all BOs are executable, that has to remain the default. So add a new PANFROST_BO_

[PATCH 2/5] drm/panfrost: Split panfrost_mmu_map SG list mapping to its own function

2019-07-17 Thread Rob Herring
In preparation to create partial GPU mappings of BOs on page faults, split out the SG list handling of panfrost_mmu_map(). Cc: Tomeu Vizoso Cc: Boris Brezillon Cc: Robin Murphy Cc: Steven Price Cc: Alyssa Rosenzweig Signed-off-by: Rob Herring --- drivers/gpu/drm/panfrost/panfrost_mmu.c | 52

[PATCH 4/5] drm/panfrost: Add support for GPU heap allocations

2019-07-17 Thread Rob Herring
The midgard/bifrost GPUs need to allocate GPU heap memory which is allocated on GPU page faults and not pinned in memory. The vendor driver calls this functionality GROW_ON_GPF. This implementation assumes that BOs allocated with the PANFROST_BO_NOEXEC flag are never mmapped or exported. Both of t

[PATCH 5/5] drm/panfrost: Bump driver version to 1.1

2019-07-17 Thread Rob Herring
Increment the driver version to expose the new BO allocation flags. Cc: Tomeu Vizoso Cc: Boris Brezillon Cc: Robin Murphy Cc: Steven Price Cc: Alyssa Rosenzweig Signed-off-by: Rob Herring --- drivers/gpu/drm/panfrost/panfrost_drv.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-)

[PATCH 1/5] drm/panfrost: Restructure the GEM object creation

2019-07-17 Thread Rob Herring
Setting the GPU VA when creating the GEM object doesn't allow for any conditional adjustments. In preparation to support adjusting the mapping, restructure the GEM object creation to map the GEM object after we've created the base shmem object. Cc: Tomeu Vizoso Cc: Boris Brezillon Cc: Robin Murp

Re: [Letux-kernel] [PATCH v3 0/5] drm/panel-simple: Add panel parameters for ortustech-com37h3m05dtc/99dtc and sharp-lq070y3dg3b

2019-07-17 Thread Sam Ravnborg
Hi Nikolaus. > BTW: should also be applied to 5.2 > >>> The drm bits are reviewed. The DT bits needs OK from DT people. > >>> When we have OK from DT people we can apply them all to drm-misc-next. > >> > >> I got OK on irc from Rob to process these. > >> All patches are now applied to drm-mi

Re: [PATCH 05/10] drm/tinydrm: Clean up tinydrm_spi_transfer()

2019-07-17 Thread Sam Ravnborg
Hi Noralf. On Wed, Jul 17, 2019 at 06:18:39PM +0200, Noralf Trønnes wrote: > > > Den 17.07.2019 15.09, skrev Sam Ravnborg: > > On Wed, Jul 17, 2019 at 01:58:12PM +0200, Noralf Trønnes wrote: > >> Prep work before moving the function to mipi-dbi. > >> > >> tinydrm_spi_transfer() was made to suppo

Re: [Letux-kernel] [PATCH v3 0/5] drm/panel-simple: Add panel parameters for ortustech-com37h3m05dtc/99dtc and sharp-lq070y3dg3b

2019-07-17 Thread H. Nikolaus Schaller
Hi Sam, > Am 26.06.2019 um 14:40 schrieb H. Nikolaus Schaller : > > Hi Sam, > >> Am 26.06.2019 um 09:33 schrieb Sam Ravnborg : >> >> Hi Nikolaus. >> any progress towards merging this somewhere? It did not yet arrive in linux-next. BTW: should also be applied to 5.2

Re: [PATCH] drm/panel: simple: Doxygenize 'struct panel_desc'; rename a few functions

2019-07-17 Thread Sam Ravnborg
Hi Doug. On Fri, Jul 12, 2019 at 09:33:33AM -0700, Douglas Anderson wrote: > This attempts to address outstanding review feedback from commit > b8a2948fa2b3 ("drm/panel: simple: Add ability to override typical > timing"). Specifically: > > * It was requested that I document (in the structure def

Re: [PATCH] drm: Make the bw/link rate calculations more forgiving

2019-07-17 Thread Sean Paul
On Wed, Jul 17, 2019 at 07:20:29PM +0300, Ville Syrjälä wrote: > On Wed, Jul 17, 2019 at 12:01:48PM -0400, Sean Paul wrote: > > From: Sean Paul > > > > Although the DisplayPort spec explicitly calls out the 1.62/2.7/5.4/8.1 > > link rates, the value of LINK_BW_SET is calculated. The DisplayPort

Limits for ION Memory Allocator

2019-07-17 Thread Alexander Popov
Hello! The syzkaller [1] has a trouble with fuzzing the Linux kernel with ION Memory Allocator. Syzkaller uses several methods [2] to limit memory consumption of the userspace processes calling the syscalls for testing the kernel: - setrlimit(), - cgroups, - various sysctl. But these methods d

Re: [PATCH 00/10] drm/tinydrm: Remove tinydrm.ko

2019-07-17 Thread Noralf Trønnes
Den 17.07.2019 15.31, skrev Sam Ravnborg: > Hi Noralf. > > Nice series of patches! > > > > On Wed, Jul 17, 2019 at 01:58:07PM +0200, Noralf Trønnes wrote: >> This series removes the remaining bits of tinydrm.ko. >> >> There's only one item left on the tinydrm todo list and that is moving >> o

Re: [PATCH 06/10] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-17 Thread Noralf Trønnes
Den 17.07.2019 15.15, skrev Sam Ravnborg: > Hi Noralf. > > On Wed, Jul 17, 2019 at 01:58:13PM +0200, Noralf Trønnes wrote: >> This is only used by mipi-dbi drivers so move it there. >> >> The reason this isn't moved to the SPI subsystem is that it will in a >> later patch pass a dummy rx buffer

Re: [PATCH] drm: Make the bw/link rate calculations more forgiving

2019-07-17 Thread Ville Syrjälä
On Wed, Jul 17, 2019 at 12:01:48PM -0400, Sean Paul wrote: > From: Sean Paul > > Although the DisplayPort spec explicitly calls out the 1.62/2.7/5.4/8.1 > link rates, the value of LINK_BW_SET is calculated. The DisplayPort > spec says "Main-Link Bandwidth Setting = Value x 0.27Gbps/lane". > > A

Re: [PATCH 05/10] drm/tinydrm: Clean up tinydrm_spi_transfer()

2019-07-17 Thread Noralf Trønnes
Den 17.07.2019 15.09, skrev Sam Ravnborg: > On Wed, Jul 17, 2019 at 01:58:12PM +0200, Noralf Trønnes wrote: >> Prep work before moving the function to mipi-dbi. >> >> tinydrm_spi_transfer() was made to support one class of drivers in >> drivers/staging/fbtft that has not been converted to DRM yet

Re: [Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-07-17 Thread sylvain . bertrand
power management related code is in amdgpu, then the right place is here, the "dri" and "amdgfx" mailing lists (aka linux gpu driver mailing lists). As far as I am concerned, when I play dota2, I always switch the GPU dpm to high and the CPU freq governor to perf (because, all those things steal

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #54 from Sylvain BERTRAND --- power management related code is in amdgpu, then the right place is here, the "dri" and "amdgfx" mailing lists (aka linux gpu driver mailing lists). As far as I am concerned, when I play dota2, I always

[PATCH] drm: Make the bw/link rate calculations more forgiving

2019-07-17 Thread Sean Paul
From: Sean Paul Although the DisplayPort spec explicitly calls out the 1.62/2.7/5.4/8.1 link rates, the value of LINK_BW_SET is calculated. The DisplayPort spec says "Main-Link Bandwidth Setting = Value x 0.27Gbps/lane". A bridge that we're looking to upstream uses 6.75Gbps rate (value 0x19) [1

Re: [PATCH] drm: Add Grain Media GM12U320 driver

2019-07-17 Thread Noralf Trønnes
Den 12.07.2019 20.53, skrev Hans de Goede: > Add a modesetting driver for Grain Media GM12U320 based devices > (primarily Acer C120 projector, but there may be compatible devices). > > This is based on the fb driver from Viacheslav Nurmekhamitov: > https://github.com/slavrn/gm12u320 > > This dr

Re: [PATCH] staging: android: ion: Remove unused rbtree for ion_buffer

2019-07-17 Thread Laura Abbott
On 7/12/19 4:47 AM, Lecopzer Chen wrote: ion_buffer_add() insert ion_buffer into rbtree every time creating an ion_buffer but never use it after ION reworking. Also, buffer_lock protects only rbtree operation, remove it together. Signed-off-by: Lecopzer Chen Cc: YJ Chiang Cc: Lecopzer Chen --

[PATCH v2] Staging: fbtft: Fix GPIO handling

2019-07-17 Thread Jan Sebastian Götte
Commit c440eee1a7a1 ("Staging: fbtft: Switch to the gpio descriptor interface") breaks GPIO handling. In several places, checks to only set a GPIO if it was configured ended up backwards. I have tested this fix. The fixed driver works with a ili9486 display connected to a raspberry pi via SPI. Fix

WARNING in con_is_bound

2019-07-17 Thread Jens Remus
Hello! Our CI on s390x constantly triggers the following warning in function con_is_bound() when reading the SysFS attribute /sys/class/vtconsole/vtcon0/bind. I verified this to be the case since WARN_CONSOLE_UNLOCKED() was introduced in function con_is_bound() with commit ddde3c18b700 ("vt: Mo

[PATCH v4 1/4] leds: Add of_led_get() and led_put()

2019-07-17 Thread Jean-Jacques Hiblot
From: Tomi Valkeinen This patch adds basic support for a kernel driver to get a LED device. This will be used by the led-backlight driver. Only OF version is implemented for now, and the behavior is similar to PWM's of_pwm_get() and pwm_put(). Signed-off-by: Tomi Valkeinen Signed-off-by: Jean-

[PATCH v4 3/4] dt-bindings: backlight: Add led-backlight binding

2019-07-17 Thread Jean-Jacques Hiblot
Add DT binding for led-backlight. Signed-off-by: Jean-Jacques Hiblot --- .../bindings/leds/backlight/led-backlight.txt | 28 +++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/led-backlight.txt diff --git a/Documentation/de

[PATCH v4 2/4] leds: Add managed API to get a LED from a device driver

2019-07-17 Thread Jean-Jacques Hiblot
If the LED is acquired by a consumer device with devm_led_get(), it is automatically released when the device is detached. Signed-off-by: Jean-Jacques Hiblot Acked-by: Pavel Machek --- drivers/leds/led-class.c | 42 include/linux/leds.h | 2 ++ 2 fi

[PATCH v4 4/4] backlight: add led-backlight driver

2019-07-17 Thread Jean-Jacques Hiblot
From: Tomi Valkeinen This patch adds a led-backlight driver (led_bl), which is similar to pwm_bl except the driver uses a LED class driver to adjust the brightness in the HW. Multiple LEDs can be used for a single backlight. Signed-off-by: Tomi Valkeinen Signed-off-by: Jean-Jacques Hiblot Acke

[PATCH v4 0/4] Add a generic driver for LED-based backlight

2019-07-17 Thread Jean-Jacques Hiblot
This series aims to add a led-backlight driver, similar to pwm-backlight, but using a LED class device underneath. A few years ago (2015), Tomi Valkeinen posted a series implementing a backlight driver on top of a LED device: https://patchwork.kernel.org/patch/7293991/ https://patchwork.kernel.org

kernel panic: stack is corrupted in pointer

2019-07-17 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1438cde7 Add linux-next specific files for 20190716 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1398805860 kernel config: https://syzkaller.appspot.com/x/.config?x=3430a151e1452331 dashboard

Re: [PATCH 10/10] drm/tinydrm: Move tinydrm_display_pipe_init() to mipi-dbi

2019-07-17 Thread Sam Ravnborg
On Wed, Jul 17, 2019 at 01:58:17PM +0200, Noralf Trønnes wrote: > tinydrm_display_pipe_init() has only one user now, so move it to mipi-dbi. > > Changes: > - Remove drm_connector_helper_funcs.detect, it's always connected. > - Store the connector and mode in mipi_dbi instead of it's own struct. >

Re: [PATCH 00/10] drm/tinydrm: Remove tinydrm.ko

2019-07-17 Thread Sam Ravnborg
Hi Noralf. Nice series of patches! On Wed, Jul 17, 2019 at 01:58:07PM +0200, Noralf Trønnes wrote: > This series removes the remaining bits of tinydrm.ko. > > There's only one item left on the tinydrm todo list and that is moving > out mipi_dbi. > > Note: > This depends on a commit that just

[Bug 111161] Gmail>>Compose>>Clicking on Attachment file throws error

2019-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61 nareshrajus...@gmail.com changed: What|Removed |Added Status|VERIFIED|CLOSED -- You are receiving

[Bug 111161] Gmail>>Compose>>Clicking on Attachment file throws error

2019-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61 nareshrajus...@gmail.com changed: What|Removed |Added Status|RESOLVED|VERIFIED -- You are receivin

[Bug 111161] Gmail>>Compose>>Clicking on Attachment file throws error

2019-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61 nareshrajus...@gmail.com changed: What|Removed |Added Status|NEW |ASSIGNED -- You are receivin

[Bug 111161] Gmail>>Compose>>Clicking on Attachment file throws error

2019-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61 nareshrajus...@gmail.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|-

Re: [PATCH 06/10] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-17 Thread Sam Ravnborg
Hi Noralf. On Wed, Jul 17, 2019 at 01:58:13PM +0200, Noralf Trønnes wrote: > This is only used by mipi-dbi drivers so move it there. > > The reason this isn't moved to the SPI subsystem is that it will in a > later patch pass a dummy rx buffer for SPI controllers that need this. > Low memory boar

Re: [PATCH 05/10] drm/tinydrm: Clean up tinydrm_spi_transfer()

2019-07-17 Thread Sam Ravnborg
On Wed, Jul 17, 2019 at 01:58:12PM +0200, Noralf Trønnes wrote: > Prep work before moving the function to mipi-dbi. > > tinydrm_spi_transfer() was made to support one class of drivers in > drivers/staging/fbtft that has not been converted to DRM yet, so strip > away the unused functionality: > - S

Re: next/master boot: 265 boots: 17 failed, 243 passed with 4 offline, 1 conflict (next-20190717)

2019-07-17 Thread Mark Brown
On Wed, Jul 17, 2019 at 04:27:56AM -0700, kernelci.org bot wrote: Today's -next fails to boot on a couple of apq8064 boards: > arm: > qcom_defconfig: > gcc-8: > qcom-apq8064-cm-qs600: 1 failed lab > qcom-apq8064-ifc6410: 1 failed lab In both cases it looks lik

[PATCH 06/10] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-17 Thread Noralf Trønnes
This is only used by mipi-dbi drivers so move it there. The reason this isn't moved to the SPI subsystem is that it will in a later patch pass a dummy rx buffer for SPI controllers that need this. Low memory boards (64MB) can run into a problem allocating such a "large" contiguous buffer on every

[PATCH 08/10] drm/tinydrm/repaper: Don't use tinydrm_display_pipe_init()

2019-07-17 Thread Noralf Trønnes
tinydrm.ko is going away so let's implement a connector. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/repaper.c | 58 --- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/tinydrm/repaper.c b/drivers/gpu/drm/tinydrm/repaper.c

[PATCH 10/10] drm/tinydrm: Move tinydrm_display_pipe_init() to mipi-dbi

2019-07-17 Thread Noralf Trønnes
tinydrm_display_pipe_init() has only one user now, so move it to mipi-dbi. Changes: - Remove drm_connector_helper_funcs.detect, it's always connected. - Store the connector and mode in mipi_dbi instead of it's own struct. Otherwise remove some leftover tinydrm-helpers.h inclusions. Cc: Eric Anho

[PATCH 01/10] drm: Add SPI connector type

2019-07-17 Thread Noralf Trønnes
tinydrm drivers announce DRM_MODE_CONNECTOR_VIRTUAL for its SPI drivers. Stop lying and add a SPI connector type Cc: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_connector.c| 1 + drivers/gpu/drm/tinydrm/mipi-dbi.c | 3 +-- drivers/gpu/drm/tinydrm/repaper.c | 2 +- d

[PATCH 04/10] drm/tinydrm: Remove tinydrm_spi_max_transfer_size()

2019-07-17 Thread Noralf Trønnes
spi-bcm2835 can handle >64kB buffers now so there is no need to check ->max_dma_len. The tinydrm_spi_max_transfer_size() max_len argument is not used by any callers, so not needed. Then we have the spi_max module parameter. It was added because staging/fbtft has support for it and there was a repo

[PATCH 00/10] drm/tinydrm: Remove tinydrm.ko

2019-07-17 Thread Noralf Trønnes
This series removes the remaining bits of tinydrm.ko. There's only one item left on the tinydrm todo list and that is moving out mipi_dbi. Note: This depends on a commit that just entered Linus' tree: e6f3f7e4dc76 ("spi: Add spi_is_bpw_supported()") Series is also available here: https://github.

[PATCH 09/10] drm/tinydrm/mipi-dbi: Add mipi_dbi_init_with_formats()

2019-07-17 Thread Noralf Trønnes
The MIPI DBI standard support more pixel formats than what this helper supports. Add an init function that lets the driver use different format(s). This avoids open coding mipi_dbi_init() in st7586. st7586 sets preferred_depth but this is not necessary since it only supports one format. Cc: David

  1   2   >