[Bug 99368] Full aspect scaling introduces interlacing on specific resolutions

2018-05-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99368 --- Comment #7 from Platin --- The issue is fixed on the mainline kernel 4.17.0-rc6 using the amdgpu drm driver. This was recently fixed it seems since the issue persists on 4.16.11. It is required to force enable DC though. Without it, it won't

[drm-intel:for-linux-next-fixes 4/4] include/linux/compiler.h:339:38: error: call to '__compiletime_assert_119' declared with attribute error: BUILD_BUG_ON failed: sizeof(_s) > sizeof(long)

2018-05-26 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel for-linux-next-fixes head: 57ebdafc306af9decd893b4cb11bd834a7e27ed1 commit: 57ebdafc306af9decd893b4cb11bd834a7e27ed1 [4/4] drm/i915/query: Protect tainted function pointer lookup config: i386-randconfig-s0-201821 (attached as .config) compiler: gcc

[Bug 106670] AMD GPU Error, random lockup, Ryzen 2500U Vega 8 GPU

2018-05-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106670 --- Comment #1 from Ernst Sjöstrand --- Please post some information about your hardware and the kernel version you're running. Full dmesg is also good, shows what the driver says when it's loading. -- You are receiving this mail because: You

[Bug 106670] AMD GPU Error, random lockup, Ryzen 2500U Vega 8 GPU

2018-05-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106670 Ernst Sjöstrand changed: What|Removed |Added Product|Mesa|DRI Component|Mesa core

[Bug 106594] [radeonsi,regression,apitrace] Prison Architect rendered unplayable by multicoloured flickering triangles and overlayed triangles when performing certain actions

2018-05-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106594 --- Comment #5 from Kai --- I just tested Debian's 18.1.0-1 package (also built against LLVM 6.0 (package version 1:6.0-3+b1)) and that version of Mesa doesn't produce the glitch either, thus narrowing the regression space to: - Mesa: between 18

[PATCH v2 41/60] drm/omap: dss: hdmi5: Move initialization code from bind to probe

2018-05-26 Thread Laurent Pinchart
There's no reason to delay initialization of most of the driver (such as mapping memory I/O or enabling runtime PM) to the component bind handler. Perform as much of the initialization as possible at probe time, initializing at bind time only the parts that depends on the DSS. The cleanup code is m

[PATCH v2 59/60] drm/omap: Set dispc_channel_connect from DSS output connect handlers

2018-05-26 Thread Laurent Pinchart
The omap_dss_device.dispc_channel_connect field is used by DSS outputs to fail the .enable() operation if they're not connected. Set the field directly from the (dis)connect handlers of the DSS outputs instead of going through the CRTC dss_mgr operations. Signed-off-by: Laurent Pinchart --- driv

[PATCH v2 58/60] drm/omap: Remove supported output check in CRTC connect handler

2018-05-26 Thread Laurent Pinchart
The CRTC connect handler checks whether the DSS output supports the DISPC channel assigned to it. As the channel is assigned to the output by the output driver a failure there could only result from a driver bug. All the output drivers have been verified and they are always assigned a DISPC channel

[PATCH v2 57/60] drm/omap: Remove omap_crtc_output global array

2018-05-26 Thread Laurent Pinchart
The omap_crtc_output global array is used to look up the DSS output device by channel. We can replace that by accessing the output device from the pipeline if we store the pipeline pointer in the omap_crtc structure. The global array is also used to protect against double connection of an output.

[PATCH v2 53/60] drm/omap: dss: Move display type validation to initialization time

2018-05-26 Thread Laurent Pinchart
The display type is validated when the display is connected to the DSS output. We already have all the information we need for validation when initializing the outputs. Move validation to output initialization to simplify pipeline connection handling. Signed-off-by: Laurent Pinchart --- drivers/

[PATCH v2 49/60] drm/omap: Create all planes before CRTCs

2018-05-26 Thread Laurent Pinchart
Creating all the planes in a single location instead of creating them per-CRTC with remaining planes then created in a second step simplifies the logic. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.c | 45 -- 1 file changed, 19 insertio

[PATCH v2 60/60] drm/omap: dss: Remove the dss_mgr_(dis)connect() operations

2018-05-26 Thread Laurent Pinchart
The dss_mgr .connect() and .disconnect() are implemented as no-op in omapdrm. The operations are unneeded, remove them. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dpi.c | 10 +- drivers/gpu/drm/omapdrm/dss/dsi.c | 10 +- drivers/gpu/drm/omapdrm/dss/hd

[PATCH v2 48/60] drm/omap: Remove unneeded variable assignments in omap_modeset_init

2018-05-26 Thread Laurent Pinchart
The crtc_idx and plane_idw variables in the main loop are always equal to the loop counter i, use it instead. Don't unnecessarily initialize dssdev to NULL. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.c | 18 +- 1 file changed, 5 insertions(+), 13 deletio

[PATCH v2 54/60] drm/omap: dss: Merge two disconnection helpers

2018-05-26 Thread Laurent Pinchart
To simplify the pipeline disconnection handling merge the omapdss_device_disconnect() and omapdss_output_unset_device() functions. The device state check is now called for every device in the pipeline, extending this sanity check coverage. There is no need to return an error from omapdss_device_di

[PATCH v2 11/60] drm/omap: dss: Constify omap_dss_driver operations structure

2018-05-26 Thread Laurent Pinchart
The structure contains function pointers that don't need to be modified. Make all its instances const to improve security. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c | 2 +- drivers/gpu/drm/omapdrm/displays/connector-dvi.c| 2 +- d

[PATCH v2 34/60] drm/omap: dss: Modify omapdss_find_output_from_display() to return channel

2018-05-26 Thread Laurent Pinchart
The omapdss_find_output_from_display() function is only used to retrieve the dispc channel corresponding to the display. Return the dispc channel directly, and rename the function to omapdss_device_get_dispc_channel() to match its new purpose. The dssdev->id check is removed as the dssdev is guara

[PATCH v2 50/60] drm/omap: Group CRTC, encoder, connector and dssdev in a structure

2018-05-26 Thread Laurent Pinchart
Create an omap_drm_pipeline structure to model display pipelines, made of a CRTC, an encoder, a connector and a DSS display device. This allows grouping related parameters together instead of storing them in independent arrays and thus improves code readability. Signed-off-by: Laurent Pinchart --

[PATCH v2 56/60] drm/omap: Store CRTC lookup by channel table in omap_drm_private

2018-05-26 Thread Laurent Pinchart
The omap_crtcs global array is used to store pointers to omap_crtc indexed by DISPC channel number, in order to look them up in the dss_mgr operations. Store the information in the omap_drm_private structure in the form of an array of omap_drm_pipeline pointers. Signed-off-by: Laurent Pinchart --

[PATCH v2 46/60] drm/omap: dss: Remove duplicated parameter to dss_mgr_(dis)connect()

2018-05-26 Thread Laurent Pinchart
The dss_mgr_connect() and dss_mgr_disconnect() functions take two omap_dss_device pointers as parameters, which are always set to the same value by all callers. Remove the duplicated pointer. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dpi.c | 8 +++- drivers/gpu/drm/

[PATCH v2 55/60] drm/omap: Pass pipe pointer to omap_crtc_init()

2018-05-26 Thread Laurent Pinchart
Replace the dss display device pointer by a pipe pointer that will allow the omap_crtc_init() function to access both the display and the DSS output. As a result we can remove the omapdss_device_get_dispc_channel() function that is now unneeded. Signed-off-by: Laurent Pinchart --- drivers/gpu/dr

[PATCH v2 52/60] drm/omap: dss: Move connection checks to omapdss_device_(dis)connect

2018-05-26 Thread Laurent Pinchart
When a DSS output is (dis)connected the omapdss_output_(un)set_device() function performs a sanity check to ensure that the output isn't already (dis)connected. The check is unnecessary as those situations should never happen, but can nonetheless be useful to catch driver bugs. To prepare for remov

[PATCH v2 42/60] drm/omap: dss: venc: Move initialization code from bind to probe

2018-05-26 Thread Laurent Pinchart
There's no reason to delay initialization of most of the driver (such as mapping memory I/O or enabling runtime PM) to the component bind handler. Perform as much of the initialization as possible at probe time, initializing at bind time only the parts that depends on the DSS. The cleanup code is m

[PATCH v2 51/60] drm/omap: Reverse direction of DSS device (dis)connect operations

2018-05-26 Thread Laurent Pinchart
The omapdrm and omapdss drivers are architectured based on display pipelines made of multiple components handled from sink (display) to source (DSS output). This is incompatible with the DRM bridge and panel APIs that handle components from source to sink. To reconcile the omapdrm and omapdss driv

[PATCH v2 45/60] drm/omap: dss: Add function to retrieve display for an output

2018-05-26 Thread Laurent Pinchart
Add a new omapdss_display_get() function to retrieve the omap_dss_device for a given DSS output. This will be used when reversing the direction of the DSS pipeline handling logic. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/display.c | 9 + drivers/gpu/drm/omapdrm/dss

[PATCH v2 47/60] drm/omap: dss: Get regulators at probe time

2018-05-26 Thread Laurent Pinchart
Regulators for the DPI, DSI, HDMI, SDI and VENC outputs are all looked up when connecting the output omap_dss_device. There's no need to delay regulator handling to that time, get the regulators at probe time. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dpi.c | 69 +

[PATCH v2 43/60] drm/omap: dss: Acquire next dssdev at probe time

2018-05-26 Thread Laurent Pinchart
Look up the next dssdev at probe time based on device tree links for all DSS outputs and encoders. This will be used to reverse the order of the dssdev connect and disconnect call chains. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/encoder-opa362.c| 9 + dri

[PATCH v2 38/60] drm/omap: dss: Cleanup error paths in output init functions

2018-05-26 Thread Laurent Pinchart
Rename the jump labels according to the cleanup they perform, not the location they're accessed from, and move functions from error checks to cleanup paths, and move reference handling to simplify cleanup. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dpi.c | 10 ++ d

[PATCH v2 40/60] drm/omap: dss: hdmi4: Move initialization code from bind to probe

2018-05-26 Thread Laurent Pinchart
There's no reason to delay initialization of most of the driver (such as mapping memory I/O or enabling runtime PM) to the component bind handler. Perform as much of the initialization as possible at probe time, initializing at bind time only the parts that depends on the DSS. The cleanup code is m

[PATCH v2 33/60] drm/omap: dss: Move DSS mgr ops and private data to dss_device

2018-05-26 Thread Laurent Pinchart
The DSS manager ops and private data pointer are specific to a DSS instance. Store them in the dss_device structure instead of global variable. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dss.h | 2 ++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 5 +-- drivers/gpu/drm/omapd

[PATCH v2 44/60] drm/omap: dss: Add for_each_dss_output() macro

2018-05-26 Thread Laurent Pinchart
Similarly to for_each_dss_display(), the for_each_dss_output() macro iterates over all the DSS connected outputs. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/base.c| 20 ++-- drivers/gpu/drm/omapdrm/dss/omapdss.h | 9 ++--- 2 files changed, 20 inserti

[PATCH v2 39/60] drm/omap: dss: dsi: Move initialization code from bind to probe

2018-05-26 Thread Laurent Pinchart
There's no reason to delay initialization of most of the driver (such as mapping memory I/O or enabling runtime PM) to the component bind handler. Perform as much of the initialization as possible at probe time, initializing at bind time only the parts that depends on the DSS. The cleanup code is m

[PATCH v2 31/60] drm/omap: dss: Move and rename omap_dss_(get|put)_device()

2018-05-26 Thread Laurent Pinchart
The functions operate on any omap_dss_device, move them from display.c to base.c. While at it rename them to match the naming of the other functions operating on struct omap_dss_device. Signed-off-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/connector-analog-tv.c | 4 ++-- drivers/gpu/

[PATCH v2 37/60] drm/omap: displays: Don't cast dssdev to panel data unnecessarily

2018-05-26 Thread Laurent Pinchart
The connect handle of the analog TV and HDMI connectors casts the dssdev to panel data only to then access fields of the panel data that are also present in the dssdev. Remove the cast and use dssdev directly. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/connector-analog-

[PATCH v2 27/60] drm/omap: dss: Rename for_each_dss_dev macro to for_each_dss_display

2018-05-26 Thread Laurent Pinchart
The macro iterates over displays only, rename it accordingly. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dss.c | 2 +- drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 +- drivers/gpu/drm/omapdrm/omap_drv.c| 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --g

[PATCH v2 22/60] drm/omap: dss: Move src and dst check and set to connection handlers

2018-05-26 Thread Laurent Pinchart
The encoders duplicate the same omap_dss_device src and dst fields set and checks in their connect and disconnect handlers. Move the code to the connect and disconnect wrappers. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/encoder-opa362.c | 10 - drivers/gpu/drm

[PATCH v2 30/60] drm/omap: dss: Remove panel devices list

2018-05-26 Thread Laurent Pinchart
The panel devices list isn't used anymore, all panel devices are accessed through the global devices list. Remove it. Signed-off-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/connector-analog-tv.c | 9 ++-- drivers/gpu/drm/omapdrm/displays/connector-dvi.c | 14 ++- drivers

[PATCH v2 35/60] drm/omap: dss: Replace omap_dss_device port number with bitmask

2018-05-26 Thread Laurent Pinchart
The omap_dss_device port_num field stores the DT port number associated with the device. The field is used in different ways depending on the device type: - For DPI outputs, the port number is used as an identifier of the DPI instance - For sources, the port number is used to look up the omap_dss

[PATCH v2 29/60] drm/omap: dss: Split omapdss_register_display()

2018-05-26 Thread Laurent Pinchart
Split the function into omapdss_display_init() to perform display-specific initialization of the omap_dss_device, and omapdss_register_display() to register the device. The latter will then be replaced by more generic registration. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/disp

[PATCH v2 17/60] drm/omap: dss: Rework output lookup by port node

2018-05-26 Thread Laurent Pinchart
The omap_dss_find_output_by_port_node() function defined in output.c looks up an output from its port node. To do so it needs to call helper functions from dss-of.c to lookup the port parent and the port number. As omap_dss_find_output_by_port_node() is only called by omapdss_of_find_source_for_fir

[PATCH v2 16/60] drm/omap: dss: Create and use omapdss_device_is_registered()

2018-05-26 Thread Laurent Pinchart
The omapdss_component_is_loaded() function test whether a component is loaded by checking whether it is present in the displays list or the outputs list. Simplify the implementation by checking for the component in the global omap_dss_device list. Signed-off-by: Laurent Pinchart --- drivers/gpu/

[PATCH v2 32/60] drm/omap: dss: Store dss_device pointer in omap_dss_device

2018-05-26 Thread Laurent Pinchart
Storing the dss_device pointer in the omap_dss_device structure will allow accessing the dss_device from the dss_mgr API functions. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c | 2 +- drivers/gpu/drm/omapdrm/displays/connector-dvi.c

[PATCH v2 26/60] drm/omap: dss: Remove output devices list

2018-05-26 Thread Laurent Pinchart
The output devices list isn't used anymore, all output devices are accessed through the global devices list. Remove it. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/encoder-opa362.c | 9 ++- drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c | 8 ++ .../gpu/drm

[PATCH v2 36/60] drm/omap: dss: Extend omapdss_of_find_source_for_first_ep() to sinks

2018-05-26 Thread Laurent Pinchart
The omapdss_of_find_source_for_first_ep() function locates the source corresponding to the first endpoint of the first port of a device node. We can easily extend it to locate sinks as well by passing the port number as a parameter. This will be useful to find sinks in encoders drivers. Extend the

[PATCH v2 28/60] drm/omap: dss: Make omap_dss_get_next_device() more generic

2018-05-26 Thread Laurent Pinchart
Despite its name, the omap_dss_get_next_device() function operates on display devices only. Make it more generic by allowing operation on all devices, with a parameter to specify the device type. While at it rename the function to omapdss_device_get_next() to match the naming of the other function

[PATCH v2 24/60] drm/omap: dsi: Simplify debugfs implementation

2018-05-26 Thread Laurent Pinchart
The DSI debugfs regs and irqs show handlers received a pointer to the DSI private data. There's no need to look it up from the list of DSS outputs. Use the pointer directly, this allows simplifying the implementation of the handlers. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/ds

[PATCH v2 25/60] drm/omap: Move DSI debugfs clocks dump to dsi%u_clks files

2018-05-26 Thread Laurent Pinchart
The DSI clocks are dumped in the DSS-level debugfs clocks file. This complicates the implementation as the DSI private data has to be looked up through the outputs list. Simplify it by creating two debugfs files, dsi1_clks and dsi2_clks, to dump the DSI clocks. Signed-off-by: Laurent Pinchart ---

[PATCH v2 23/60] drm/omap: displays: Remove input omap_dss_device from panel data

2018-05-26 Thread Laurent Pinchart
All connectors, encoders and panels store a pointer to their input omap_dss_device in the panel driver data structure. This duplicates the src field in the omap_dss_device structure. Remove the private copy and use the src field. Signed-off-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/c

[PATCH v2 20/60] drm/omap: dss: Add functions to connect and disconnect devices

2018-05-26 Thread Laurent Pinchart
The omap_dss_device objects model display components and are connected at runtime to create display pipelines. The connect and disconnect operations implemented by each component contain lots of duplicate code. As a first step towards fixing this, create new functions to wrap the direct calls to th

[PATCH v2 09/60] drm/omap: dss: Remove DSS encoders get_timings operation

2018-05-26 Thread Laurent Pinchart
The get_timings operation from DSS encoders (not to be confused with the identically named operation in omap_dss_driver) is never called. Remove it. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/encoder-opa362.c| 11 --- drivers/gpu/drm/omapdrm/displays/encoder

[PATCH v2 08/60] drm/omap: dss: Remove omapdss_atv_ops get_wss and set_wss operations

2018-05-26 Thread Laurent Pinchart
The operations are never used, remove them. If the need to set wide screen signaling data arises later, it should be implemented by extending the DRM bridge API. Signed-off-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/connector-analog-tv.c | 19 -- drivers/gpu/drm/omapdrm/dss/om

[PATCH v2 19/60] drm/omap: dss: Move common device operations to common structure

2018-05-26 Thread Laurent Pinchart
The various types of omapdss_*_ops structures define multiple operations that are not specific to a bus type. To simplify the code and remove dependencies on specific bus types move those operations to a common structure. Operations that are specific to a bus type are kept in the specialized ops st

[PATCH v2 21/60] drm/omap: dss: Move debug message and checks to connection handlers

2018-05-26 Thread Laurent Pinchart
The connectors, encoders and display duplicate the same debug messages and connection checks in their omap_dss_device connect and disconnect handlers. Move the code to the connect and disconnect wrappers. To simplify the code the connect function returns -EBUSY unconditionally if the device is alr

[PATCH v2 18/60] drm/omap: dss: Allow looking up any device by port

2018-05-26 Thread Laurent Pinchart
The omap_dss_find_output_by_port() function looks up an omap_dss_device by port from the list of devices registered as outputs. In preparation for looking up sinks in addition to sources, allow the function to look up any registered device. Rename it to omap_dss_find_device_by_port() to match its n

[PATCH v2 15/60] drm/omap: dss: Create global list of all omap_dss_device instances

2018-05-26 Thread Laurent Pinchart
The omap_dss_device instances are stored in two separate lists, depending on whether they are panels or outputs. Create a third list that stores all omap_dss_device instances to allow generic code to operate on all instances. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/base.c

[PATCH v2 14/60] drm/omap: dss: Rename omap_dss_device list field to output_list

2018-05-26 Thread Laurent Pinchart
For coherency with the panel_list field, rename list to output_list. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 +- drivers/gpu/drm/omapdrm/dss/output.c | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/ds

[PATCH v2 00/60] omapdrm: Reverse direction of DSS device (dis)connect operations

2018-05-26 Thread Laurent Pinchart
Hello, This patch series is a first step towards moving the omapdrm driver away from the custom bridge and panel drivers to drm_bridge and drm_panel. The main blocker to transition to drm_bridge and drm_panel is the direction of the bridge operations. While the omapdrm driver manages its componen

[PATCH v2 10/60] drm/omap: dss: Remove unused omapdss_default_get_timings()

2018-05-26 Thread Laurent Pinchart
All omap_dss_driver instances provide the get_timings operation. Remove the default function. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/display.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/display.c b/drivers/gpu/drm/omapdrm/

[PATCH v2 03/60] drm/omap: Do dss_device (display) ordering in omap_drv.c

2018-05-26 Thread Laurent Pinchart
From: Peter Ujfalusi Sort the dssdev array based on DT aliases. With this change we can remove the panel ordering from dss/display.c and have all sorting related to dssdevs in one place. Signed-off-by: Peter Ujfalusi Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart Signed-off-by:

[PATCH v2 01/60] drm/omap: Allocate drm_device earlier and unref it as last step

2018-05-26 Thread Laurent Pinchart
From: Peter Ujfalusi If we allocate the drm_device earlier we can just return the error code without the need to use goto. Do the unref of the drm_device as a last step when cleaning up. This will make the drm_device available longer for us and makes sure that we only free up the memory when all

[PATCH v2 07/60] drm/omap: dss: Handle DPI and SDI port initialization failures

2018-05-26 Thread Laurent Pinchart
The dpi_init_port() and sdi_init_port() functions can return errors but their return value is ignored. This prevents both probe failures and probe deferral from working correctly. Propagate the errors up the call stack. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dss.c | 13 +

[PATCH v2 02/60] drm/omap: Manage the usable omap_dss_device list within omap_drm_private

2018-05-26 Thread Laurent Pinchart
From: Peter Ujfalusi Instead of reaching back to DSS to iterate through the dss_devices every time, use an internal array where we store the available and usable dss_devices. At the same time remove the omapdss_device_is_connected() check from omap_modeset_init() as it became irrelevant: We are

[PATCH v2 06/60] drm/omap: dss: Move platform_device_register from core.c to dss.c probe

2018-05-26 Thread Laurent Pinchart
From: Jyri Sarha Register the omapdrm device when we know that dss device probe going to succeed. This avoids DSS6 and DSS2 omapdrm device registration from colliding with each other. Signed-off-by: Jyri Sarha Signed-off-by: Laurent Pinchart --- Changes since v0: - Store the OMAP DRM platform

[PATCH v2 13/60] drm/omap: dss: Remove omap_dss_device panel fields

2018-05-26 Thread Laurent Pinchart
The omap_dss_device panel.dsi_pix_fmt and panel.dsi_mode fields are unused. Remove them. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 1 - drivers/gpu/drm/omapdrm/dss/omapdss.h | 5 - 2 files changed, 6 deletions(-) diff --git a/drivers/gpu

[PATCH v2 12/60] drm/omap: displays: Remove videomode from omap_dss_device structure

2018-05-26 Thread Laurent Pinchart
The omap_dss_device structure stores a videomode. All the connector and panel drivers that use omap_dss_device also store the videomode in their own panel_drv_data structures. There's no need to duplicate, remove the videomode field from omap_dss_device. Signed-off-by: Laurent Pinchart --- drive

[PATCH v2 04/60] drm/omap: dss: Remove display ordering from dss/display.c

2018-05-26 Thread Laurent Pinchart
From: Peter Ujfalusi As ordering of the dss_devices based on DT aliases is now implemented in omap_drm.c, there is no need to do the ordering in dss/display.c anymore. At the same time remove the alias member of the omap_dss_device struct since it is no longer needed. The only place it was used

[PATCH v2 05/60] drm/omap: dss: Gather OMAP DSS components at probe time

2018-05-26 Thread Laurent Pinchart
The omapdss_gather_components() function walks the OF graph to create a list of all components part of the display device. There's no need to delay this operation until DSS bind time as we have all the information we need at probe time. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm

Re: [PATCH v2 4/6] drm/omap: gem: Replace struct_mutex usage with omap_obj private lock

2018-05-26 Thread Laurent Pinchart
Hello, On Friday, 25 May 2018 19:39:23 EEST Laurent Pinchart wrote: > The DRM device struct_mutex is used to protect against concurrent GEM > object operations that deal with memory allocation and pinning. All > those operations are local to a GEM object and don't need to be > serialized across di

[PATCH v2.1 4/6] drm/omap: gem: Replace struct_mutex usage with omap_obj private lock

2018-05-26 Thread Laurent Pinchart
The DRM device struct_mutex is used to protect against concurrent GEM object operations that deal with memory allocation and pinning. All those operations are local to a GEM object and don't need to be serialized across different GEM objects. Replace the struct_mutex with a local omap_obj.lock or d

Re: [RFC PATCH v2 1/2] drm: Add generic colorkey properties

2018-05-26 Thread Laurent Pinchart
On Saturday, 26 May 2018 19:16:54 EEST Laurent Pinchart wrote: > Hi Dimitri, And sorry for the spelling mistake :-/ > Thank you for the patch. > > I'll review this in details, but as this patch is based on the "[PATCH/RFC > 1/4] drm: Add colorkey properties" patch I've submitted, please retain t

Re: [RFC PATCH v2 1/2] drm: Add generic colorkey properties

2018-05-26 Thread Laurent Pinchart
Hi Dimitri, Thank you for the patch. I'll review this in details, but as this patch is based on the "[PATCH/RFC 1/4] drm: Add colorkey properties" patch I've submitted, please retain the authorship, both in the Signed-off-by line, and in the patch author in git. On Saturday, 26 May 2018 18:56:

[Bug 106594] [radeonsi,regression,apitrace] Prison Architect rendered unplayable by multicoloured flickering triangles and overlayed triangles when performing certain actions

2018-05-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106594 --- Comment #4 from Kai --- Still an issue with the following stack (fully updated Debian testing as a base): GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/79fe00efb4 libdrm: 2.4.92-1 LLVM: SVN:trunk/r39 (7.0 devel) X.Or

[Bug 106175] amdgpu.dc=1 shows performance issues with Xorg compositors when moving windows

2018-05-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106175 --- Comment #13 from tempel.jul...@gmail.com --- When I use modesetting driver with Option "PageFlip" "false", the stuttering is gone (however, as expected tearing is not fully prevented anymore). So there might be an actual connection to pagefli

[Bug 106666] amdgpu 0000:09:00.0: [gfxhub] VMC page fault (src_id:0 ring:56 vmid:3 pas_id:0), [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, last signaled seq=327845, last emitted seq=32

2018-05-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=10 --- Comment #1 from udo --- Created attachment 139790 --> https://bugs.freedesktop.org/attachment.cgi?id=139790&action=edit messages no xorg log messages for this one -- You are receiving this mail because: You are the assignee for the bug.

[Bug 106666] amdgpu 0000:09:00.0: [gfxhub] VMC page fault (src_id:0 ring:56 vmid:3 pas_id:0), [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, last signaled seq=327845, last emitted seq=32

2018-05-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=10 Bug ID: 10 Summary: amdgpu :09:00.0: [gfxhub] VMC page fault (src_id:0 ring:56 vmid:3 pas_id:0), [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, last signaled

Boot failures in -next on Jetson TK1

2018-05-26 Thread Mark Brown
Currently -next is failing to boot on Jetson TK1. The problem looks to be the Nouveau driver, during initialization it reports an address decode error then starts printing error messages saying "nouveau 5700.gpu: fifo: SCHED_ERROR 20 []" over and over again. I've pasted the start of the error