Re: [PATCH 03/14] iommu: Create a base struct for io_mm

2018-03-02 Thread Jordan Crouse
On Fri, Mar 02, 2018 at 12:25:48PM +, Jean-Philippe Brucker wrote: > Hi Jordan, > > Thank you for this, SMMUv3 and virtio-iommu need these SVA patches as well. > > On 21/02/18 22:59, Jordan Crouse wrote: > [...]> diff --git a/include/linux/iommu.h b/include/linux/iommu.h > > index

Re: [PATCH 04/14] iommu: sva: Add support for pasid allocation

2018-03-02 Thread Jean-Philippe Brucker
On 21/02/18 22:59, Jordan Crouse wrote: [...] > +int iommu_sva_alloc_pasid(struct iommu_domain *domain, struct device *dev) > +{ > + int ret, pasid; > + struct io_pasid *io_pasid; > + > + if (!domain->ops->pasid_alloc || !domain->ops->pasid_free) > + return -ENODEV; > + > +

[Bug 103953] [DC] Polaris10: Missing modes when enabling DC

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103953 --- Comment #9 from Marc Cousin --- Bug solved for me too with amd-staging-drm-next. Thanks a lot. -- You are receiving this mail because: You are the assignee for the bug.___

Re: [PATCH 02/14] iommu/arm-smmu: Add support for TTBR1

2018-03-02 Thread Robin Murphy
On 21/02/18 22:59, Jordan Crouse wrote: Allow a SMMU device to opt into allocating a TTBR1 pagetable. The size of the TTBR1 region will be the same as the TTBR0 size with the sign extension bit set on the highest bit in the region unless the upstream size is 49 bits and then the sign-extension

Re: [PATCH 02/14] iommu/arm-smmu: Add support for TTBR1

2018-03-02 Thread Jordan Crouse
On Fri, Mar 02, 2018 at 05:57:21PM +, Robin Murphy wrote: > On 21/02/18 22:59, Jordan Crouse wrote: > >Allow a SMMU device to opt into allocating a TTBR1 pagetable. > > > >The size of the TTBR1 region will be the same as > >the TTBR0 size with the sign extension bit set on the highest > >bit

[Patch 4/4] drm/omap: Add virtual plane support to omap_plane

2018-03-02 Thread Benoit Parrot
Add virtual plane support by adding an array to contain all of the actual plane_id a "omap_plane" correspond to. When at least one 'plane' child node is present in DT then omap_plane_init will only used the plane described in DT. Some of these nodes may be a virtual plane if they are defined as

Re: [PATCH 2/2] drm/sun4i: add lvds mode_valid function

2018-03-02 Thread Giulio Benetti
Hi, Il 02/03/2018 15:37, Maxime Ripard ha scritto: On Fri, Mar 02, 2018 at 12:42:14PM +0100, Giulio Benetti wrote: Hi, Il 01/03/2018 10:57, Maxime Ripard ha scritto: On Wed, Feb 28, 2018 at 06:53:52PM +0100, Giulio Benetti wrote: static struct drm_connector_helper_funcs

[Bug 105046] Screen resolution reset to 1368x768 when turning monitor off

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105046 --- Comment #10 from Michael Zapf --- It seems to be related to EDID, as I see it. Once I turn off the display, I lose the EDID information. Before: # find /sys -name edid -exec echo {} \; -exec od -tx1 -Ax {} \;

[PATCH 1/1] intel: align reuse buffer's size on page size instead

2018-03-02 Thread James Xiong
From: "Xiong, James" With gem_reuse enabled, when a buffer size is different than the sizes of buckets, it is aligned to the next bucket's size, which means about 25% more memory than the requested is allocated in the worst senario. For example: Orignal sizeActual

[PATCH libdrm 1/1] intel: allocate buffer with the requested size when reuse is disabled

2018-03-02 Thread James Xiong
From: "Xiong, James" Previously a bucket size was used for buffer allocation whether bo_reuse is false or true. This patch returns NULL in function drm_intel_gem_bo_bucket_for_size() when bo_reuse is false, the original requested size is used instead. Signed-off-by:

[Patch 2/4] dt-bindings: display/ti: Add plane binding to dispc node

2018-03-02 Thread Benoit Parrot
Add 'plane' child node to generic DISPC node as an optional property. Signed-off-by: Benoit Parrot --- .../devicetree/bindings/display/ti/ti,omap-dss.txt | 63 ++ 1 file changed, 63 insertions(+) diff --git

Re: [PATCH] drm/vc4: Ignore alpha on primary plane

2018-03-02 Thread Ville Syrjälä
On Fri, Mar 02, 2018 at 04:48:03PM +0100, Stefan Schake wrote: > On Fri, Mar 2, 2018 at 4:21 PM, Ville Syrjälä > wrote: > > On Fri, Mar 02, 2018 at 04:06:58PM +0100, Stefan Schake wrote: > >> Hey Ville, > >> > >> On Fri, Mar 2, 2018 at 3:43 PM, Ville Syrjälä > >>

Re: [PATCH 04/14] iommu: sva: Add support for pasid allocation

2018-03-02 Thread Jordan Crouse
On Fri, Mar 02, 2018 at 12:27:58PM +, Jean-Philippe Brucker wrote: > On 21/02/18 22:59, Jordan Crouse wrote: > [...] > > +int iommu_sva_alloc_pasid(struct iommu_domain *domain, struct device *dev) > > +{ > > + int ret, pasid; > > + struct io_pasid *io_pasid; > > + > > + if

Re: [PATCH] drm/vc4: Ignore alpha on primary plane

2018-03-02 Thread Eric Anholt
Ville Syrjälä writes: > On Fri, Mar 02, 2018 at 04:06:58PM +0100, Stefan Schake wrote: >> Hey Ville, >> >> On Fri, Mar 2, 2018 at 3:43 PM, Ville Syrjälä >> wrote: >> > On Fri, Mar 02, 2018 at 04:39:22PM +0200, Ville Syrjälä wrote:

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-03-02 Thread Claudiu Beznea
On 28.02.2018 21:44, Thierry Reding wrote: > On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: >> Add PWM mode to pwm_config() function. The drivers which uses pwm_config() >> were adapted to this change. >> >> Signed-off-by: Claudiu Beznea >> --- >>

Re: [PATCH v5 1/6] dt-bindings: add bindings for USB physical connector

2018-03-02 Thread Heikki Krogerus
Hi, On Tue, Feb 27, 2018 at 08:11:29AM +0100, Andrzej Hajda wrote: > +2. USB-C connector attached to CC controller (s2mm005), HS lines routed > +to companion PMIC (max77865), SS lines to USB3 PHY and SBU to DisplayPort. > +DisplayPort video lines are routed to the connector via SS mux in USB3

Re: [PATCH v8 4/8] drm/rockchip: dw-mipi-dsi: Fix error handling path

2018-03-02 Thread Enric Balletbo i Serra
Hi Heiko, On 01/03/18 16:50, Heiko Stübner wrote: > Hi Jeffy, Thierry, Enric, > > Am Mittwoch, 10. Januar 2018, 17:23:44 CET schrieb Thierry Escande: >> From: Jeffy Chen >> >> Add missing pm_runtime_disable() in bind()'s error handling path. >> >> Also cleanup encoder

Re: [PATCH v8 4/8] drm/rockchip: dw-mipi-dsi: Fix error handling path

2018-03-02 Thread Enric Balletbo i Serra
Hi Heiko, On 02/03/18 13:17, Heiko Stuebner wrote: > Hi Enric, > > Am Freitag, 2. März 2018, 13:09:02 CET schrieb Enric Balletbo i Serra: >> Hi Heiko, >> >> On 01/03/18 16:50, Heiko Stübner wrote: >>> Hi Jeffy, Thierry, Enric, >>> >>> Am Mittwoch, 10. Januar 2018, 17:23:44 CET schrieb Thierry

Re: [PATCH 11/14] drm/msm: Add support for iommu-sva PASIDs

2018-03-02 Thread Jean-Philippe Brucker
On 21/02/18 22:59, Jordan Crouse wrote: [...]> +static int install_pasid_cb(int pasid, u64 ttbr, u32 asid, void *data) > +{ > + struct pasid_entry *entry = kzalloc(sizeof(*entry), GFP_KERNEL); > + > + if (!entry) > + return -ENOMEM; > + > + entry->pasid = pasid; > +

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-03-02 Thread Claudiu Beznea
On 28.02.2018 22:04, Jani Nikula wrote: > On Wed, 28 Feb 2018, Thierry Reding wrote: >> Anyone that needs something other than normal mode should use the new >> atomic PWM API. > > At the risk of revealing my true ignorance, what is the new atomic PWM > API? Where?

Re: [PATCH 03/14] iommu: Create a base struct for io_mm

2018-03-02 Thread Jean-Philippe Brucker
Hi Jordan, Thank you for this, SMMUv3 and virtio-iommu need these SVA patches as well. On 21/02/18 22:59, Jordan Crouse wrote: [...]> diff --git a/include/linux/iommu.h b/include/linux/iommu.h > index e2c49e583d8d..e998389cf195 100644 > --- a/include/linux/iommu.h > +++ b/include/linux/iommu.h >

Re: [PATCH] drm/vc4: Ignore alpha on primary plane

2018-03-02 Thread Ville Syrjälä
On Fri, Mar 02, 2018 at 09:13:14AM -0800, Eric Anholt wrote: > Ville Syrjälä writes: > > > On Fri, Mar 02, 2018 at 04:06:58PM +0100, Stefan Schake wrote: > >> Hey Ville, > >> > >> On Fri, Mar 2, 2018 at 3:43 PM, Ville Syrjälä > >>

[Bug 104001] GPU driver hung when start steam client while playback video on Youtube (it occurs on latest staging kernel)

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104001 --- Comment #28 from Dennis Schridde --- Linux kernel is at 4.15.7-gentoo-r1, LLVM at 5.0.1, Mesa at 18.0.0_rc4. -- You are receiving this mail because: You are the assignee for the

Re: [Patch 2/4] dt-bindings: display/ti: Add plane binding to dispc node

2018-03-02 Thread Rob Herring
On Fri, Mar 2, 2018 at 7:48 AM, Benoit Parrot wrote: > Add 'plane' child node to generic DISPC node as an optional > property. Why? What problem are you solving? > > Signed-off-by: Benoit Parrot > --- > .../devicetree/bindings/display/ti/ti,omap-dss.txt | 63 >

[Bug 104001] GPU driver hung when start steam client while playback video on Youtube (it occurs on latest staging kernel)

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104001 Dennis Schridde changed: What|Removed |Added CC|

Re: [PATCH libdrm] omap: add Android build support

2018-03-02 Thread Emil Velikov
On 28 February 2018 at 18:54, Andrew F. Davis wrote: > From: Gowtham Tammana > > Add Android.mk file to build libdrm_omap library. > Zero objections on my end, but can we have the use case mentioned in the commit message. Years ago I was looking for users of the

Re: [PATCH v2 05/10] video: add MIPI DSI host controller bridge

2018-03-02 Thread Brian Norris
Hi, On Fri, Mar 02, 2018 at 04:44:06PM +0100, yannick fertre wrote: > Add a Synopsys Designware MIPI DSI host bridge driver, based on the > Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. How many times are we going to allow copy-and-pasting the same driver? Last time we

Re: [PATCH v2 05/10] video: add MIPI DSI host controller bridge

2018-03-02 Thread Brian Norris
On Fri, Mar 02, 2018 at 10:57:59AM -0800, Brian Norris wrote: > Hi, > > On Fri, Mar 02, 2018 at 04:44:06PM +0100, yannick fertre wrote: > > Add a Synopsys Designware MIPI DSI host bridge driver, based on the > > Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. > > How many

[Bug 91880] Radeonsi on Grenada cards (r9 390) exceptionally unstable and poorly performing

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91880 --- Comment #181 from Sandeep --- I was able to reliably reproduce the bug with openarena on my XFX R9 390 - here's a link to a trace file (1.8 GB) -

Re: Aspirant for GSOC 2018 for Nouveau Vulkan driver

2018-03-02 Thread Anusha Srivastava
Hi Martin, Any update on this ? Regards, Anusha Srivastava On 28 February 2018 at 23:37, Anusha Srivastava wrote: > Hi, > > I would like to participate in GSOC 2018 with Xorg to contribute to > project "Initial Nouveau Vulkan driver' > I would need some help in how to

[PATCH] drm: Fix typo in lastclose description

2018-03-02 Thread Gwan-gyeong Mun
ownershipe -> ownership Signed-off-by: Mun Gwan-gyeong --- include/drm/drm_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h index d23dcdd1bd95..64cb5975613c 100644 --- a/include/drm/drm_drv.h +++

Re: [PULL] drm-misc-next

2018-03-02 Thread Sean Paul
On Wed, Feb 28, 2018 at 3:34 PM, Sean Paul wrote: > > Hi Dave, > Here's this weeks pull, relatively small when you pull out the trivial fixes. > > drm-misc-next-2018-02-28: > drm-misc-next for 4.17: > > UAPI Changes: > Fix drm_color_ctm matrix docs to match usage and

[PATCH 1/3] PM / OPP: Add dev_pm_opp_get_np()

2018-03-02 Thread Jordan Crouse
Add a function to return the device node associated with a specific opp which will facilitate detailing with custom properties in client drivers. Signed-off-by: Jordan Crouse --- drivers/opp/of.c | 20 include/linux/pm_opp.h | 6 ++ 2

[Bug 105046] Screen resolution reset to 1368x768 when turning monitor off

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105046 --- Comment #11 from dwagner --- I solved the same problem for me a long time ago by adding a "drm_kms_helper.edid_firmware=edid/my_monitor_model_edid.bin" option to my kernel command line, after saving the EDID blob of my

[Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104193 --- Comment #5 from Shmerl --- Starting from Wine 3.3, the patch for invisible monsters that's causing the freeze is in Wine source, so you can test regular stock Wine from 3.3 and newer to narrow down the freeze using the

[PATCH] drm/vc4: Add some missing HVS register definitions.

2018-03-02 Thread Eric Anholt
At least the RGBA expand field we should have been setting, because we aren't expanding correctly for 565 -> . Other registers are ones that may be interesting for various projects that have been discussed. Signed-off-by: Eric Anholt Cc: Stefan Schake

Re: [PATCH] drm/dp: only accept valid DP_TRAINING_AUX_RD_INTERVAL values

2018-03-02 Thread Rodrigo Vivi
On Fri, Mar 02, 2018 at 02:25:58PM -0800, matthew.s.atw...@intel.com wrote: > From: Matt Atwood > > For panels that do not follow Display Port specifications mask off invalid > values for DP_TRAINING_AUX_RD_INTERVAL. Specification lists acceptable > values 0-4 all

Re: [PATCH] drm/dp: only accept valid DP_TRAINING_AUX_RD_INTERVAL values

2018-03-02 Thread Manasi Navare
Thanks for the patch. Masking the training AUX RD interval value to get only the allowed values sounds of 0-4 is absolutely needed. Just one nit below: On Fri, Mar 02, 2018 at 02:25:58PM -0800, matthew.s.atw...@intel.com wrote: > From: Matt Atwood > > For panels that

Re: [DPU PATCH 01/11] drm/msm: Skip seamless disables in crtc/encoder

2018-03-02 Thread jsanka
On 2018-02-28 11:18, Sean Paul wrote: Instead of duplicating whole swaths of atomic helper functions (which are already out-of-date), just skip the encoder/crtc disables in the .disable hooks. Change-Id: I7bd9183ae60624204fb1de9550656b776efc7202 Signed-off-by: Sean Paul

[PATCH 3/3] drm/msm: Add A6XX device support

2018-03-02 Thread Jordan Crouse
Add support for the A6XX family of Adreno GPUs. The biggest addition is the GMU (Graphics Management Unit) which takes over most of the power management of the GPU itself but in a ironic twist of fate needs a goodly amount of management itself. Add support for the A6XX core code, the GMU and the

[PATCH 2/3] drm/msm: Add generated headers for A6XX

2018-03-02 Thread Jordan Crouse
From: Sharat Masetty Add initial register headers for A6XX targets. Change-Id: If7b37634aed55c8e05ac26465d628205b6130f09 Signed-off-by: Sharat Masetty Signed-off-by: Jordan Crouse ---

[v3 PATCH 0/3] Add support for Adreno a6xx

2018-03-02 Thread Jordan Crouse
a6xx GPU support for drm/msm - follow along here: https://patchwork.freedesktop.org/series/37428/ Per suggestions from various folks for the associated device tree changes for the sdm845 GPU (coming immediately after this) add a new opp function to query the device tree node for a specific opp so

Re: [PATCH v9 5/5] drm/bridge/synopsys: dw-hdmi: Add missing bridge detach

2018-03-02 Thread Laurent Pinchart
Hi Enric, Thank you for the patch. On Friday, 2 March 2018 19:57:57 EET Enric Balletbo i Serra wrote: > From: Jeffy Chen > > We inited connector in attach(), so need a detach() to cleanup. Do we ? The dw-hdmi driver already sets drm_connector_cleanup() as the

[PATCH 0/2] arm64: dts: Add sdm845 GPU/GMU and SMMU

2018-03-02 Thread Jordan Crouse
Building on the sdm845 changes from Rajendra and SMMU changes from Vivek this is an initial stab at the DT nodes for the sdm845 GPU and GMU (graphics management unit) which is responsible for the direct power control of the GPU including the companion arm-smmu-v2 compatible SMMU. Please refer to

[PATCH 1/2] dt-bindings: Document qcom,adreno-gmu

2018-03-02 Thread Jordan Crouse
Document the device tree bindings for the Adreno GMU device available on Adreno a6xx targets. Change-Id: I3cfd5fb35ab0045e39905ff12393006e60f1a124 Signed-off-by: Jordan Crouse --- .../devicetree/bindings/display/msm/gmu.txt| 54 ++

[PATCH 2/2] arm64: dts: sdm845: Support GPU/GMU

2018-03-02 Thread Jordan Crouse
Add the nodes and other bits to describe the Adreno GPU and GMU devices. Change-Id: Ibf4dc0ebb0ac03d8b6b8e65747e142c440e70b0a Signed-off-by: Jordan Crouse --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 120 +++ 1 file changed, 120

[PATCH] drm/dp: only accept valid DP_TRAINING_AUX_RD_INTERVAL values

2018-03-02 Thread matthew . s . atwood
From: Matt Atwood For panels that do not follow Display Port specifications mask off invalid values for DP_TRAINING_AUX_RD_INTERVAL. Specification lists acceptable values 0-4 all other values are reserved and bit 7 of DPCD 0xe describes another feature. Currently

Re: [PATCH v9 5/5] drm/bridge/synopsys: dw-hdmi: Add missing bridge detach

2018-03-02 Thread JeffyChen
Hi Laurent, On 03/03/2018 05:49 AM, Laurent Pinchart wrote: Hi Enric, Thank you for the patch. On Friday, 2 March 2018 19:57:57 EET Enric Balletbo i Serra wrote: From: Jeffy Chen We inited connector in attach(), so need a detach() to cleanup. Do we ? The

Re: [DPU PATCH 04/11] drm/msm: Move implicit sync fence handling to prepare_fb

2018-03-02 Thread jsanka
On 2018-02-28 11:18, Sean Paul wrote: This is another piece that can be moved out of atomic to facilitate using the atomic helpers. Change-Id: I6dc3c4e5df508942bbc378c73a44e46e511b8469 Signed-off-by: Sean Paul Reviewed-by: Jeykumar Sankaran

Re: [DPU PATCH 08/11] drm/msm: Remove hand-rolled out fences

2018-03-02 Thread Jeykumar Sankaran
On 2018-02-28 11:19, Sean Paul wrote: Remove release/output/retire fences from the dpu driver. These are already available via drm core's OUT_FENCE property. Change-Id: Id4238d0b5457f2c8ee2e87bb7814e1850a573623 Signed-off-by: Sean Paul ---

[PATCH] drm/vc4: Add support for SAND modifier.

2018-03-02 Thread Eric Anholt
From: Dave Stevenson This is the format generated by VC4's H.264 engine, and preferred by the ISP as well. By displaying SAND buffers directly, we can avoid needing to use the ISP to rewrite the SAND H.264 output to linear before display. This is a joint effort

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105262 --- Comment #11 from Roland Scheidegger --- Created attachment 137762 --> https://bugs.freedesktop.org/attachment.cgi?id=137762=edit copy over export color mask Would this patch help? I think the r600 code forgot to copy

[Bug 99710] [amdgpu R9 390] GPU hang when playing Hearthstone in Wine

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99710 --- Comment #16 from Sandeep --- Ok, I was able to successfully reproduce using a trace from OpenArena. I'll try uploading the file and paste a link here. -- You are receiving this mail because: You are the assignee for

[Bug 99710] [amdgpu R9 390] GPU hang when playing Hearthstone in Wine

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99710 --- Comment #17 from Sandeep --- Definitely seems to be DPM related, I used the following command to force DPM performance level, and Left 4 Dead 2 and OpenArena worked fine with no hangs. "echo high >

Re: [DPU PATCH 11/11] drm/msm: Remove dpu input fences

2018-03-02 Thread Jeykumar Sankaran
On 2018-02-28 11:19, Sean Paul wrote: These are already provided by drm atomic core. In conjunction with the output fences removed earlier, this obsoletes dpu_fence, and it can be entirely removed as well. Change-Id: Ida4924a09c455d7a84bfee569bd0d2fb436418de Signed-off-by: Sean Paul

[Bug 99710] [amdgpu R9 390] GPU hang when playing Hearthstone in Wine

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99710 --- Comment #15 from Sandeep --- Trying to get an apitrace trace so that I can reproduce consistently. Found out that I can reproduce reliably with OpenArena. Will try to create a trace now. -- You are receiving this

Re: [RFC][PATCH 04/11] drm: Split the display info into static and dynamic parts

2018-03-02 Thread Linus Walleij
On Tue, Feb 27, 2018 at 1:56 PM, Ville Syrjala wrote: > From: Ville Syrjälä > > Currently we have a mix of static and dynamic information stored in > the display info structure. That makes it rather difficult to repopulate > the

[PATCH v3 10/16] drm/sun4i: Add support for variants to DW HDMI PHY

2018-03-02 Thread Jernej Skrabec
There are multiple variants of DW HDMI PHYs in Allwinner SoCs. While some things like clock and reset setup are the same, PHY configuration differs a lot. Split out code which is PHY specific to separate functions and create a structure which holds pointers to those functions. Signed-off-by:

[PATCH v3 11/16] drm/sun4i: Move and expand DW HDMI PHY register macros

2018-03-02 Thread Jernej Skrabec
DW HDMI PHY macros are moved to header file and expanded with the registers present on newer SoCs like H3 and H5. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 131 + drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c |

[PATCH v3 00/16] Implement H3/H5 HDMI driver

2018-03-02 Thread Jernej Skrabec
This series implements H3/H5 HDMI driver. It was tested on OrangePi 2 (H3), OrangePi Plus2e (H3) and OrangePi PC2 (H5) with many resolutions and it works well. Code is based on linux-next, next-20180228 tag. Best regards, Jernej Changes in v3: - Removed TCON patch to skip LVDS procesing - Added

[PATCH v3 01/16] clk: sunxi-ng: Add check for minimal rate to NM PLLs

2018-03-02 Thread Jernej Skrabec
Some NM PLLs doesn't work well when their output clock rate is set below certain rate. Add support for that constrain. Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu_nm.c | 7 +++ drivers/clk/sunxi-ng/ccu_nm.h | 27 +++ 2 files

[PATCH v3 16/16] ARM64: dts: sun50i: h5: Enable HDMI output on H5 boards

2018-03-02 Thread Jernej Skrabec
Enable HDMI output on all boards with HDMI connector. Signed-off-by: Jernej Skrabec --- .../boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | 25 ++ .../dts/allwinner/sun50i-h5-orangepi-prime.dts | 25 ++

[PATCH v3 02/16] clk: sunxi-ng: h3: h5: Add minimal rate for video PLL

2018-03-02 Thread Jernej Skrabec
Although user manuals for H3 and H5 SoCs state that minimal rate supported by video PLL is around 30 MHz, it seems that in reality minimal rate is around 192 MHz. Experiments showed that any rate below 96 MHz doesn't produce any video output at all. Even at this frequency, stable output depends

[PATCH v3 04/16] clk: sunxi-ng: h3: h5: export CLK_PLL_VIDEO

2018-03-02 Thread Jernej Skrabec
CLK_PLL_VIDEO needs to be referenced in HDMI DT entry as a possible PHY clock parent. Export it so it can be used later in DT. Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu-sun8i-h3.h | 4 +++- include/dt-bindings/clock/sun8i-h3-ccu.h | 2 ++ 2 files

[PATCH v3 05/16] dt-bindings: display: sun4i-drm: Add compatibles for H3 HDMI pipeline

2018-03-02 Thread Jernej Skrabec
Add missing compatibles for H3 HDMI pipeline. These compatibles can also be used with H5 SoC. Signed-off-by: Jernej Skrabec --- Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 4/4] drm/pl111: Support the Versatile Express

2018-03-02 Thread Linus Walleij
The Versatile Express uses a special configuration controller deeply embedded in the system motherboard FPGA to multiplex the two to three (!) CLCD instances out to the single SiI9022 bridge. Set up an extra file with the logic to probe to the FPGA mux register on the system controller bus, then

[PATCH 3/4] drm/pl111: Handle the RealView variant separately

2018-03-02 Thread Linus Walleij
We want to cut down the default bpp to 16 on the RealView so we can have a 1024x768 framebuffer console by default. The memory bandwidth limitations makes this not work with the PL111 default of 32bpp. This builds on top of the earlier patches making the framebuffer default bpp a per-variant

[PATCH 1/4] drm/pl111: Make the default BPP a per-variant variable

2018-03-02 Thread Linus Walleij
The PL110, Integrator and Versatile boards strongly prefer to use 16 BPP even if other modes are supported, both to keep down memory consumption and also to easier find a good match to supported resolutions with consideration taken to the memory bandwidth of the platforms. Reviewed-by: Eric

[PATCH 2/4] drm/pl111: Use max memory bandwidth for resolution

2018-03-02 Thread Linus Walleij
We were previously selecting 1024x768 and 32BPP as the default set-up for the PL111 consumers. This does not work on elder systems: the device tree bindings support a property "max-memory-bandwidth" in bytes/second that states that if you exceed this the memory bus will saturate. The result is

[PATCH 0/4] drm/pl111: RealView and Versatile Express

2018-03-02 Thread Linus Walleij
This is the base for finally getting RealView and Versatile Express supported in the PL111 DRM driver. We have then moved all the way up from the first ARM Integrator versions to the last Versatile Express reference designs using PL111. After this, forked hardware such as Nomadik and SPEAr

Re: [PATCH v2 08/10] drm/panel: Add Huarui LHR050H41 panel driver

2018-03-02 Thread Maxime Ripard
Hi, On Wed, Feb 21, 2018 at 11:36:10PM +0800, Chen-Yu Tsai wrote: > On Wed, Feb 21, 2018 at 5:20 PM, Maxime Ripard > wrote: > > From: Maxime Ripard > > > > The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic. Add a > >

[Bug 105324] R9 285 weston hangs since drm/amd/pp: Fix bug that dpm level was not really locked

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105324 Bug ID: 105324 Summary: R9 285 weston hangs since drm/amd/pp: Fix bug that dpm level was not really locked Product: DRI Version: DRI git Hardware: Other

Re: v4.16-rc0: missing includes in framebuffers break N900 compilation

2018-03-02 Thread Pavel Machek
On Mon 2018-02-26 16:05:53, Tomi Valkeinen wrote: > v4.16-rc1 has a fix (b9058afcd6c7). Yep, thanks. I was bisecting sound problem on N900, so this hit me... Pavel > On 26/02/18 15:00, Pavel Machek wrote: > > I needed this to get -rc0

[PATCH v3] bridge: Elaborate a bit on dumb VGA bridges in Kconfig

2018-03-02 Thread Linus Walleij
It's better if we explain a bit that this pertains to non-programmable VGA DAC bridges. Reviewed-by: Laurent Pinchart Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Fix wording and commit message. - Collect Laurent's review tag.

Re: [PATCH v3 00/16] Implement H3/H5 HDMI driver

2018-03-02 Thread Maxime Ripard
On Thu, Mar 01, 2018 at 10:34:26PM +0100, Jernej Skrabec wrote: > This series implements H3/H5 HDMI driver. It was tested on OrangePi 2 (H3), > OrangePi Plus2e (H3) and OrangePi PC2 (H5) with many resolutions and it > works well. > > Code is based on linux-next, next-20180228 tag. Applied

[Bug 105317] The GPU Vega 56 was hang while try to pass #GraphicsFuzz shader15 test

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105317 Michel Dänzer changed: What|Removed |Added Product|DRI |Mesa QA

[PATCH] rnndb/adreno: Add more PM4 opcodes

2018-03-02 Thread Sharat Masetty
Add CP_SECURE_MODE and CP_SET_PSEUDO_REG opcodes needed for A6xx hardware features. Signed-off-by: Sharat Masetty --- rnndb/adreno/adreno_pm4.xml | 5 + 1 file changed, 5 insertions(+) diff --git a/rnndb/adreno/adreno_pm4.xml b/rnndb/adreno/adreno_pm4.xml index

Re: [PATCH] drm/radeon/mkregtable: Delete unused list functions and macros

2018-03-02 Thread Guenter Roeck
On Wed, Feb 28, 2018 at 2:17 PM, Matthias Kaehlcke wrote: > The util mkregtable includes a copy of the kernel API for linked lists, > only a small subset of it is used. Delete the unused functions and macros. > > Signed-off-by: Matthias Kaehlcke

Re: [PATCH v5 6/6] drm/bridge/sii8620: use micro-USB cable detection logic to detect MHL

2018-03-02 Thread Chanwoo Choi
On 2018년 02월 28일 22:44, Andrzej Hajda wrote: > On 27.02.2018 23:26, Chanwoo Choi wrote: >> Hi, >> >> On 2018년 02월 27일 21:05, Andrzej Hajda wrote: >>> On 27.02.2018 12:08, Chanwoo Choi wrote: Hi, On 2018년 02월 27일 16:11, Andrzej Hajda wrote: > From: Maciej Purski

[PATCH v3 06/16] drm/sun4i: Release exclusive clock lock when disabling TCON

2018-03-02 Thread Jernej Skrabec
Currently exclusive TCON clock lock is never released, which, for example, prevents changing resolution on HDMI. In order to fix that, release clock when disabling TCON. TCON is always disabled first before new mode is set. Signed-off-by: Jernej Skrabec ---

[PATCH v3 03/16] clk: sunxi-ng: h3: h5: Allow some clocks to set parent rate

2018-03-02 Thread Jernej Skrabec
Some units have to be able to set it's own clock precisely to work correctly. Allow them to do so by adding CLK_SET_RATE_PARENT flag. Add this flag to DE, TCON and HDMI clocks. Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 9 ++--- 1 file

[PATCH v3 12/16] drm/sun4i: Add support for H3 HDMI PHY variant

2018-03-02 Thread Jernej Skrabec
While A83T HDMI PHY seems to be just customized Synopsys HDMI PHY, H3 HDMI PHY is completely custom PHY. However, they still have many things in common like clock and reset setup, setting sync polarity and more. Add support for H3 HDMI PHY variant. While documentation exists for this PHY

[PATCH v3 15/16] ARM: dts: sun8i: h3: Enable HDMI output on H3 boards

2018-03-02 Thread Jernej Skrabec
Enable HDMI output on all boards which have HDMI connector. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts| 25 ++ arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 25 ++

[PATCH v3 08/16] drm/sun4i: Add support for H3 mixer 0

2018-03-02 Thread Jernej Skrabec
This mixer supports 1 VI plane, 3 UI plane and HW scaling on all planes. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c

[PATCH v3 14/16] ARM: dts: sunxi: h3/h5: Add HDMI pipeline

2018-03-02 Thread Jernej Skrabec
This commit adds all entries needed for HDMI to function properly. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 108 + 1 file changed, 108 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi

[PATCH v3 09/16] drm/sun4i: Fix polarity configuration for DW HDMI PHY

2018-03-02 Thread Jernej Skrabec
Current polarity configuration code is cleary wrong since it compares same flag two times. However, even if flag name is fixed, it won't work well for resolutions which have one polarity positive and another negative. Fix that by properly set each bit according to each polarity. Since those two

[PATCH v3 13/16] drm/sun4i: Allow building on arm64

2018-03-02 Thread Jernej Skrabec
64-bit ARM SoCs from Allwinner have DE2/TCON/HDMI periphery which is compatible to 32-bit SoCs, so allow building DRM driver for arm64 architecture. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v3 07/16] drm/sun4i: Add support for H3 display engine

2018-03-02 Thread Jernej Skrabec
H3 display engine has two mixers which are connected to HDMI and TV output. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c

Re: [PATCH] drm/bridge: sii902x: Fall back to standard modes

2018-03-02 Thread Ville Syrjälä
On Thu, Mar 01, 2018 at 11:12:15PM +0100, Linus Walleij wrote: > On Thu, Mar 1, 2018 at 10:18 PM, Ville Syrjälä > wrote: > > On Thu, Mar 01, 2018 at 10:02:55PM +0100, Linus Walleij wrote: > >> Hm, hard to get review feedback on this one. > >> > >> It gives me proper

Re: [PATCH v2 06/16] drm/sun4i: Don't process LVDS if TCON doesn't support it

2018-03-02 Thread Maxime Ripard
Hi, On Wed, Feb 28, 2018 at 10:43:30PM +0100, Jernej Škrabec wrote: > Dne sreda, 28. februar 2018 ob 08:36:08 CET je Maxime Ripard napisal(a): > > On Tue, Feb 27, 2018 at 11:26:51PM +0100, Jernej Skrabec wrote: > > > TCON checks for LVDS properties even if it doesn't support it. Add a > > > check

Re: [RFC PATCH hwc] drm_hwcomposer: set CRTC background color when available

2018-03-02 Thread Robert Foss
Ack, thanks for the heads up! Rob. On 03/02/2018 01:41 AM, Stefan Schake wrote: Hey Rob, On Wed, Feb 28, 2018 at 11:53 AM, Robert Foss wrote: Hey, Stefan: Are you looking at an entirely kernel side fix now, or are you pushing this series forward? I've sent out

Re: [PATCH 2/2] drm/sun4i: add lvds mode_valid function

2018-03-02 Thread Maxime Ripard
On Fri, Mar 02, 2018 at 12:42:14PM +0100, Giulio Benetti wrote: > Hi, > > Il 01/03/2018 10:57, Maxime Ripard ha scritto: > > On Wed, Feb 28, 2018 at 06:53:52PM +0100, Giulio Benetti wrote: > > > static struct drm_connector_helper_funcs sun4i_lvds_con_helper_funcs = { > > > .get_modes

Re: [PATCH] drm/vc4: Ignore alpha on primary plane

2018-03-02 Thread Ville Syrjälä
On Fri, Mar 02, 2018 at 01:32:40AM +0100, Stefan Schake wrote: > We allow alpha formats on the primary plane but a partially transparent > framebuffer will cause a corrupted display. With this change black pixels > are output instead, in line with the behavior for other DRM drivers. > >

Re: [PATCH] drm/vc4: Ignore alpha on primary plane

2018-03-02 Thread Ville Syrjälä
On Fri, Mar 02, 2018 at 04:39:22PM +0200, Ville Syrjälä wrote: > On Fri, Mar 02, 2018 at 01:32:40AM +0100, Stefan Schake wrote: > > We allow alpha formats on the primary plane but a partially transparent > > framebuffer will cause a corrupted display. With this change black pixels > > are output

Re: [DPU PATCH 06/11] drm/msm: Remove msm_commit/kthread, use atomic helper commit

2018-03-02 Thread Sean Paul
On Thu, Mar 01, 2018 at 07:37:10PM -0500, Rob Clark wrote: > On Thu, Mar 1, 2018 at 3:37 PM, wrote: > > On 2018-03-01 07:27, Sean Paul wrote: > >> > >> On Wed, Feb 28, 2018 at 08:07:00PM -0800, jsa...@codeaurora.org wrote: > >>> > >>> On 2018-02-28 11:19, Sean Paul wrote:

Re: [PATCH 01/14] iommu: Add DOMAIN_ATTR_ENABLE_TTBR1

2018-03-02 Thread Robin Murphy
On 21/02/18 22:59, Jordan Crouse wrote: Add a new domain attribute to enable the TTBR1 pagetable for drivers and devices that support it. This will enabled using a TTBR1 (otherwise known as a "global" or "system" pagetable for devices that support a split pagetable scheme for switching

[Bug 105300] amd-staging-drm-next-git 4.16 & RX 560 DL-DVI: corruption with refreshrates >73Hz when DPM changing VRAM clock

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105300 --- Comment #9 from Harry Wentland --- Are you messing with TMDS_MAX_PIXEL_CLOCK as Andrew is doing in this ticket: https://bugs.freedesktop.org/show_bug.cgi?id=105302 ? With DC clock switching might happen more

[Bug 105302] [DC] - Maximum pixel clock of dual-link DVI too low for some modes

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105302 --- Comment #4 from Harry Wentland --- This sounds like a feature request, rather than a bug. -- You are receiving this mail because: You are the assignee for the bug.___

Re: [PATCH] drm/vc4: Ignore alpha on primary plane

2018-03-02 Thread Stefan Schake
Hey Ville, On Fri, Mar 2, 2018 at 3:43 PM, Ville Syrjälä wrote: > On Fri, Mar 02, 2018 at 04:39:22PM +0200, Ville Syrjälä wrote: >> If you want the plane to always be opaque you shouldn't expose any >> formats with alpha. >> >> Also what happens if one disables the

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

2018-03-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105262 --- Comment #10 from LoneVVolf --- The first bad commit was submitted by Dave Airlie and reviewed by Roland Scheidegger Added Roland Scheidegger to CC List. -- You are receiving this mail because: You are the assignee for

  1   2   >