[Bug 111087] SteamOS boots to black screen

2019-07-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111087 --- Comment #14 from Ludovico de Nittis --- (In reply to Michel Dänzer from comment #12) > Sounds like Xorg keeps crashing, please attach the Xorg.0.log.old file. Yes apparently Xorg keeps rebooting. In the latest Xorg.0.log.old file that I att

[PATCH] drm/i915: Fix reporting of size of created GEM object

2019-07-08 Thread Janusz Krzysztofik
Commit e163484afa8d ("drm/i915: Update size upon return from GEM_CREATE") (re)introduced reporting of actual size of created GEM objects, possibly rounded up on object alignment. Unfortunately, its implementation resulted in a possible use-after-free bug. The bug has been fixed by commit 929eec99

[Bug 111087] SteamOS boots to black screen

2019-07-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111087 --- Comment #13 from Ludovico de Nittis --- Created attachment 144731 --> https://bugs.freedesktop.org/attachment.cgi?id=144731&action=edit Xorg.0.log.old -- You are receiving this mail because: You are the assignee for the bug._

[PATCH v7 15/18] Documentation: kunit: add documentation for KUnit

2019-07-08 Thread Brendan Higgins
Add documentation for KUnit, the Linux kernel unit testing framework. - Add intro and usage guide for KUnit - Add API reference Signed-off-by: Felix Guo Signed-off-by: Brendan Higgins Cc: Jonathan Corbet Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- Documentation/dev-tools

[PATCH v7 17/18] kernel/sysctl-test: Add null pointer test for sysctl.c:proc_dointvec()

2019-07-08 Thread Brendan Higgins
From: Iurii Zaikin KUnit tests for initialized data behavior of proc_dointvec that is explicitly checked in the code. Includes basic parsing tests including int min/max overflow. Signed-off-by: Iurii Zaikin Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunt

[PATCH v7 14/18] kunit: defconfig: add defconfigs for building KUnit tests

2019-07-08 Thread Brendan Higgins
Add defconfig for UML and a fragment that can be used to configure other architectures for building KUnit tests. Add option to kunit_tool to use a defconfig to create the kunitconfig. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- arch/um/config

[PATCH v7 12/18] kunit: test: add tests for KUnit managed resources

2019-07-08 Thread Brendan Higgins
From: Avinash Kondareddy Add unit tests for KUnit managed resources. KUnit managed resources (struct kunit_resource) are resources that are automatically cleaned up at the end of a KUnit test, similar to the concept of devm_* managed resources. Signed-off-by: Avinash Kondareddy Signed-off-by: B

[PATCH v7 18/18] MAINTAINERS: add proc sysctl KUnit test to PROC SYSCTL section

2019-07-08 Thread Brendan Higgins
Add entry for the new proc sysctl KUnit test to the PROC SYSCTL section, and add Iurii as a maintainer. Signed-off-by: Brendan Higgins Cc: Iurii Zaikin Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Acked-by: Luis Chamberlain --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions

[PATCH v7 10/18] kunit: test: add tests for kunit test abort

2019-07-08 Thread Brendan Higgins
Add KUnit tests for the KUnit test abort mechanism (see preceding commit). Add tests both for general try catch mechanism as well as non-architecture specific mechanism. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- kunit/Makefile| 3 +-

[PATCH v7 16/18] MAINTAINERS: add entry for KUnit the unit testing framework

2019-07-08 Thread Brendan Higgins
Add myself as maintainer of KUnit, the Linux kernel's unit testing framework. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 677ef41cb01

[PATCH v7 11/18] kunit: test: add the concept of assertions

2019-07-08 Thread Brendan Higgins
Add support for assertions which are like expectations except the test terminates if the assertion is not satisfied. The idea with assertions is that you use them to state all the preconditions for your test. Logically speaking, these are the premises of the test case, so if a premise isn't true,

[PATCH v7 13/18] kunit: tool: add Python wrappers for running KUnit tests

2019-07-08 Thread Brendan Higgins
From: Felix Guo The ultimate goal is to create minimal isolated test binaries; in the meantime we are using UML to provide the infrastructure to run tests, so define an abstract way to configure and run tests that allow us to change the context in which tests are built without affecting the user.

[PATCH v7 08/18] objtool: add kunit_try_catch_throw to the noreturn list

2019-07-08 Thread Brendan Higgins
Fix the following warning seen on GCC 7.3: kunit/test-test.o: warning: objtool: kunit_test_unsuccessful_try() falls through to next function kunit_test_catch() kunit_try_catch_throw is a function added in the following patch in this series; it allows KUnit, a unit testing framework for the kern

[PATCH v7 09/18] kunit: test: add support for test abort

2019-07-08 Thread Brendan Higgins
Add support for aborting/bailing out of test cases, which is needed for implementing assertions. An assertion is like an expectation, but bails out of the test case early if the assertion is not met. The idea with assertions is that you use them to state all the preconditions for your test. Logica

[PATCH v7 06/18] kbuild: enable building KUnit

2019-07-08 Thread Brendan Higgins
KUnit is a new unit testing framework for the kernel and when used is built into the kernel as a part of it. Add KUnit to the root Kconfig and Makefile to allow it to be actually built. Signed-off-by: Brendan Higgins Cc: Masahiro Yamada Cc: Michal Marek Reviewed-by: Greg Kroah-Hartman Reviewed

[PATCH v7 07/18] kunit: test: add initial tests

2019-07-08 Thread Brendan Higgins
Add a test for string stream along with a simpler example. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- kunit/Kconfig | 21 + kunit/Makefile | 4 ++ kunit/example-test.c | 88

[PATCH v7 03/18] kunit: test: add string_stream a std::stream like string builder

2019-07-08 Thread Brendan Higgins
A number of test features need to do pretty complicated string printing where it may not be possible to rely on a single preallocated string with parameters. So provide a library for constructing the string as you go similar to C++'s std::string. Signed-off-by: Brendan Higgins Reviewed-by: Greg

[PATCH v7 04/18] kunit: test: add kunit_stream a std::stream like logger

2019-07-08 Thread Brendan Higgins
A lot of the expectation and assertion infrastructure prints out fairly complicated test failure messages, so add a C++ style log library for for logging test results. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- include/kunit/kunit-stream.h |

[PATCH v7 05/18] kunit: test: add the concept of expectations

2019-07-08 Thread Brendan Higgins
Add support for expectations, which allow properties to be specified and then verified in tests. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- include/kunit/test.h | 525 +++ kunit/test.c | 66 ++

[PATCH v7 01/18] kunit: test: add KUnit test runner core

2019-07-08 Thread Brendan Higgins
Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group together related test cases in test suites (here we call the

[PATCH v7 02/18] kunit: test: add test resource management API

2019-07-08 Thread Brendan Higgins
Create a common API for test managed resources like memory and test objects. A lot of times a test will want to set up infrastructure to be used in test cases; this could be anything from just wanting to allocate some memory to setting up a driver stack; this defines facilities for creating "test r

[PATCH v7 00/18] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-07-08 Thread Brendan Higgins
## TL;DR This is a pretty straightforward follow-up to Luis' comments on PATCH v6: There is nothing that changes any functionality or usage. As for our current status, we only need reviews/acks on the following patches: - [PATCH v7 06/18] kbuild: enable building KUnit - Need a review or ack fr

Re: [PATCH 19/60] drm/panel: Add driver for the LG Philips LB035Q02 panel

2019-07-08 Thread Sam Ravnborg
Hi Laurent. > > > > + unsigned int i; > > > > index to arrays are default "int" IIRC. > > Not that it matters but noticed it. > > Are they ? I've always advocated for unsigned indexes to use unsigned > int. I did not dig up anything authorative - but found this: https://stackoverflow.com/quest

[Bug 109246] HDMI connected monitors fail to sleep and instead turn back on when amdgpu.dc=1

2019-07-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109246 --- Comment #22 from valentin...@gmail.com --- This is happening to me as well. RX570 w/ Acer H236HL Dual head, both inputs HDMI I didn't have this issue with the same monitors and an nvidia card, so it seems specific to the amdgpu driver. The

RE: [EXT] Re: [v1] gpu: ipu-v3: allow to build with ARCH_LAYERSCAPE

2019-07-08 Thread Wen He
> -Original Message- > From: Philipp Zabel > Sent: 2019年7月5日 18:32 > To: Wen He ; linux-ker...@vger.kernel.org; > dri-devel@lists.freedesktop.org > Cc: Leo Li > Subject: [EXT] Re: [v1] gpu: ipu-v3: allow to build with ARCH_LAYERSCAPE > > Caution: EXT Email > > Hi Wen, > > On Wed, 201

Re: [PATCH v3 5/5] dt-bindings: drm/panel: simple: add sharp,lq070y3dg3b panel

2019-07-08 Thread Rob Herring
On Fri, 7 Jun 2019 13:11:11 +0200, "H. Nikolaus Schaller" wrote: > Signed-off-by: H. Nikolaus Schaller > --- > .../bindings/display/panel/sharp,lq070y3dg3b.txt | 12 > 1 file changed, 12 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/display/panel/sharp

Re: [PATCH v3 4/5] dt-bindings: drm/panel: simple: add ortustech,com37h3m99dtc panel

2019-07-08 Thread Rob Herring
On Fri, 7 Jun 2019 13:11:10 +0200, "H. Nikolaus Schaller" wrote: > Signed-off-by: H. Nikolaus Schaller > --- > .../display/panel/ortustech,com37h3m99dtc.txt| 12 > 1 file changed, 12 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/display/panel/ortus

Re: [PATCH v3 3/5] dt-bindings: drm/panel: simple: add ortustech,com37h3m05dtc panel

2019-07-08 Thread Rob Herring
On Fri, 7 Jun 2019 13:11:09 +0200, "H. Nikolaus Schaller" wrote: > Signed-off-by: H. Nikolaus Schaller > --- > .../display/panel/ortustech,com37h3m05dtc.txt| 12 > 1 file changed, 12 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/display/panel/ortus

Re: [PATCH v3, 04/27] dt-bindings: mediatek: add dither description for mt8183 display

2019-07-08 Thread Rob Herring
On Wed, 5 Jun 2019 19:42:43 +0800, wrote: > From: Yongqiang Niu > > Update device tree binding documention for the display subsystem for > Mediatek MT8183 SOCs > > Signed-off-by: Yongqiang Niu > --- > Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + > 1 file changed

Re: [PATCH v3, 03/27] dt-bindings: mediatek: add ccorr description for mt8183 display

2019-07-08 Thread Rob Herring
On Wed, 5 Jun 2019 19:42:42 +0800, wrote: > From: Yongqiang Niu > > Update device tree binding documention for the display subsystem for > Mediatek MT8183 SOCs > > Signed-off-by: Yongqiang Niu > --- > Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + > 1 file changed

Re: [PATCH v3, 02/27] dt-bindings: mediatek: add ovl_2l description for mt8183 display

2019-07-08 Thread Rob Herring
On Wed, Jun 05, 2019 at 07:42:41PM +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > Update device tree binding documention for the display subsystem for > Mediatek MT8183 SOCs > > Signed-off-by: Yongqiang Niu > --- > Documentation/devicetree/bindings/display/mediatek/mediatek

Re: [PATCH 17/60] dt-bindings: Add legacy 'toppoly' vendor prefix

2019-07-08 Thread Rob Herring
On Mon, Jul 8, 2019 at 7:00 PM Laurent Pinchart wrote: > > Hi Rob, > > On Mon, Jul 08, 2019 at 01:00:35PM -0600, Rob Herring wrote: > > On Sun, Jul 7, 2019 at 12:25 PM Laurent Pinchart wrote: > > > > > > The 'toppoly' vendor prefix is in use and refers to TPO, whose DT vendor > > > prefix is alrea

Re: [PATCH 17/60] dt-bindings: Add legacy 'toppoly' vendor prefix

2019-07-08 Thread Laurent Pinchart
Hi Rob, On Mon, Jul 08, 2019 at 01:00:35PM -0600, Rob Herring wrote: > On Sun, Jul 7, 2019 at 12:25 PM Laurent Pinchart wrote: > > > > The 'toppoly' vendor prefix is in use and refers to TPO, whose DT vendor > > prefix is already defined as 'tpo'. Add 'toppoly' as an alternative and > > document i

Re: [PATCH 19/60] drm/panel: Add driver for the LG Philips LB035Q02 panel

2019-07-08 Thread Laurent Pinchart
Hi Sam, On Mon, Jul 08, 2019 at 08:51:29PM +0200, Sam Ravnborg wrote: > Hi Laurent. > > Good to move omapdrm to a more standard way to do things. I hope it will help defining the next step for the standard ;-) > > new file mode 100644 > > index ..d8a8c3a3a8c5 > > --- /dev/null > > +

Re: [PATCH v2 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I

2019-07-08 Thread Vasily Khoruzhick
On Mon, Jul 1, 2019 at 2:58 AM Maxime Ripard wrote: > > Hi! > > On Fri, Jun 28, 2019 at 12:39:32PM +0200, Andrzej Hajda wrote: > > On 12.06.2019 17:20, Maxime Ripard wrote: > > >> I am not sure if I understand whole discussion here, but I also do not > > >> understand whole edp-connector thing. >

Re: linux-next: manual merge of the akpm-current tree with the drm tree

2019-07-08 Thread Stephen Rothwell
Hi all, On Mon, 24 Jun 2019 21:06:59 +1000 Stephen Rothwell wrote: > > On Mon, 24 Jun 2019 20:49:08 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the akpm-current tree got a conflict in: > > > > mm/memory.c > > > > between commit: > > > > 29875a52915e ("mm: Add an

Re: linux-next: manual merge of the drm-intel tree with the pci tree

2019-07-08 Thread Stephen Rothwell
Hi all, On Mon, 24 Jun 2019 13:53:52 +1000 Stephen Rothwell wrote: > > On Mon, 17 Jun 2019 13:20:27 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the drm-intel tree got a conflict in: > > > > drivers/gpu/drm/i915/i915_drv.h > > > > between commit: > > > > 151f4e2bd

Re: linux-next: manual merge of the drm tree with the jc_docs tree

2019-07-08 Thread Stephen Rothwell
Hi all, On Mon, 24 Jun 2019 13:41:47 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the drm tree got a conflict in: > > Documentation/fb/modedb.rst > > between commit: > > ab42b818954c ("docs: fb: convert docs to ReST and rename to *.rst") > > from the jc_docs tree and co

Re: [PATCH v6 18/18] MAINTAINERS: add proc sysctl KUnit test to PROC SYSCTL section

2019-07-08 Thread Iurii Zaikin
> On Mon, Jul 8, 2019 at 4:16 PM Brendan Higgins > wrote: >> >> CC'ing Iurii Zaikin >> >> On Fri, Jul 5, 2019 at 1:48 PM Luis Chamberlain wrote: >> > >> > On Wed, Jul 03, 2019 at 05:36:15PM -0700, Brendan Higgins wrote: >> > > Add entry for the new proc sysctl KUnit test to the PROC SYSCTL secti

Re: linux-next: manual merge of the drm tree with the kbuild tree

2019-07-08 Thread Stephen Rothwell
Hi all, On Wed, 19 Jun 2019 14:19:49 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the drm tree got a conflict in: > > drivers/gpu/drm/i915/Makefile.header-test > > between commit: > > e846f0dc57f4 ("kbuild: add support for ensuring headers are self-contained") > > from

Re: [PATCH v6 18/18] MAINTAINERS: add proc sysctl KUnit test to PROC SYSCTL section

2019-07-08 Thread Brendan Higgins
CC'ing Iurii Zaikin On Fri, Jul 5, 2019 at 1:48 PM Luis Chamberlain wrote: > > On Wed, Jul 03, 2019 at 05:36:15PM -0700, Brendan Higgins wrote: > > Add entry for the new proc sysctl KUnit test to the PROC SYSCTL section. > > > > Signed-off-by: Brendan Higgins > > Reviewed-by: Greg Kroah-Hartman

[PATCH v4, 02/33] dt-bindings: mediatek: add ovl_2l description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- .../bindings/display/mediatek/mediatek,disp.txt| 27 +++--- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Docume

[PATCH v4, 06/33] dt-bindings: mediatek: add mutex description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add mutex description for mt8183 display Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.tx

[PATCH v4, 04/33] dt-bindings: mediatek: add dither description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bind

[PATCH v4, 07/33] arm64: dts: add display nodes for mt8183

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add display nodes for mt8183 Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 109 +++ 1 file changed, 109 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/

[PATCH v4, 29/33] drm/mediatek: add connection from OVL_2L0 to RDMA0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu this patch add add connection from OVL_2L0 to RDMA0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c i

[PATCH v4, 18/33] drm/mediatek: add component DITHER

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add component DITHER Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drivers/

[PATCH v4, 23/33] drm/mediatek: add ovl0/ovl_2l0 usecase

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add ovl0/ovl_2l0 usecase in ovl->ovl_2l0 direct link usecase: 1. the crtc support layer number will 4+2 2. ovl_2l0 background color input select ovl0 when crtc init and disable it when crtc finish 3. config ovl_2l0 layer, if crtc config layer number is bigger than o

[PATCH v4, 15/33] drm/mediatek: add ddp component CCORR

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add ddp component CCORR Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drive

[PATCH v4, 16/33] drm/mediatek: add commponent OVL_2L0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add commponent OVL_2L0 Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp

[PATCH v4, 11/33] drm/mediatek: add mutex sof register offset into ddp private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu mutex sof register offset will be private data of ddp Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediate

[PATCH v4, 17/33] drm/mediatek: add component OVL_2L1

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add component OVL_2L1 Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_co

[PATCH v4, 20/33] drm/medaitek: add layer_nr for ovl private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add layer_nr for ovl private data ovl_2l almost same with with ovl hardware, except the layer number for ovl_2l is 2 and ovl is 4. this patch is a preparation for ovl-2l and ovl share the same driver. Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/g

[PATCH v4, 10/33] drm/mediatek: add mutex sof into ddp private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu mutex sof will be ddp private data Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 43 +++--- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/media

[PATCH v4, 09/33] drm/mediatek: add mutex mod register offset into ddp private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu mutex mod register offset will be private data of ddp. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu

[PATCH v4, 03/33] dt-bindings: mediatek: add ccorr description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bind

[PATCH v4, 28/33] drm/mediatek: add connection from RDMA1 to DSI0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA1 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index c87bc4c..fbea47

[PATCH v4, 31/33] drm/mediatek: add connection from DITHER0 to DSI0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from DITHER0 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 4d75cef..c4

[PATCH v4, 19/33] drm/mediatek: add gmc_bits for ovl private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add gmc_bits for ovl private data GMC register was set RDMA ultra and pre-ultra threshold. 10bit GMC register define is different with other SOC, gmc_thrshd_l not used. Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c |

[PATCH v4, 33/33] drm/mediatek: add support for mediatek SOC MT8183

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add support for mediatek SOC MT8183 1.ovl_2l share driver with ovl 2.rdma1 share drive with rdma0, but fifo size is different 3.add mt8183 mutex private data, and mmsys private data 4.add mt8183 main and external path module for crtc create Signed-off-by: Yongqiang

[PATCH v4, 27/33] drm/mediatek: add connection from RDMA0 to COLOR0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA0 to COLOR0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index fe4a458..c87b

[PATCH v4, 24/33] drm/mediatek: distinguish ovl and ovl_2l by layer_nr

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu distinguish ovl and ovl_2l by layer_nr when get comp id Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/

[PATCH v4, 22/33] drm/mediatek: add background color input select function for ovl/ovl_2l

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add background color input select function for ovl/ovl_2l ovl include 4 DRAM layer and 1 background color layer ovl_2l include 4 DRAM layer and 1 background color layer DRAM layer frame buffer data from render hardware, GPU for example. backgournd color layer is em

[PATCH v4, 21/33] drm/mediatek: add function to background color input select for ovl/ovl_2l direct link

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add function to background color input select for ovl/ovl_2l direct link for ovl/ovl_2l direct link usecase, we need set background color input select for these hardware. this is preparation patch for ovl/ovl_2l usecase Signed-off-by: Yongqiang Niu --- drivers/g

[PATCH v4, 32/33] drm/mediatek: add connection from RDMA0 to DSI0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA0 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index c4c8531..c4d8e

[PATCH v4, 30/33] drm/mediatek: add connection from OVL_2L1 to RDMA1

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from OVL_2L1 to RDMA1 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 0a63dd0..

[PATCH v4, 01/33] dt-bindings: mediatek: add binding for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- .../bindings/display/mediatek/mediatek,display.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/dev

[PATCH v4, 08/33] drm/mediatek: add mutex mod into ddp private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu except mutex mod, mutex mod reg,mutex sof reg, and mutex sof id will be ddp private data Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 41 +- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/drivers/

[PATCH v4, 05/33] dt-bindings: mediatek: add RDMA1 description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add RDMA1 description for mt8183 display Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.tx

[PATCH v4, 12/33] drm/mediatek: split DISP_REG_CONFIG_DSI_SEL setting into another use case

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Here is two modifition in this patch: 1.bls->dpi0 and rdma1->dsi are differen usecase, Split DISP_REG_CONFIG_DSI_SEL setting into anther usecase 2.remove DISP_REG_CONFIG_DPI_SEL setting, DPI_SEL_IN_BLS is 0 and this is same with hardware defautl setting, Signed-off-by: Yongqi

[PATCH v4, 00/33] add drm support for MT8183

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This series are based on 5.2-rc1 and provid 27 patch to support mediatek SOC MT8183 Change since v3 - fix reviewed issue in v3 - fix type error in v3 - fix conflict with iommu patch Yongqiang Niu (33): dt-bindings: mediatek: add binding for mt8183 display dt-bindings: me

Re: [PATCH v6 01/18] kunit: test: add KUnit test runner core

2019-07-08 Thread Brendan Higgins
On Mon, Jul 8, 2019 at 11:08 AM Brendan Higgins wrote: > > On Fri, Jul 5, 2019 at 1:15 PM Luis Chamberlain wrote: > > > > On Wed, Jul 03, 2019 at 05:35:58PM -0700, Brendan Higgins wrote: > > > Add core facilities for defining unit tests; this provides a common way > > > to define test cases, func

Re: [PATCH 1/7] drm/amdgpu/mes10.1: Fix header guard

2019-07-08 Thread Arnd Bergmann
On Thu, Jul 4, 2019 at 7:52 AM Nathan Chancellor wrote: > > clang warns: > > In file included from drivers/gpu/drm/amd/amdgpu/nv.c:53: > drivers/gpu/drm/amd/amdgpu/../amdgpu/mes_v10_1.h:24:9: warning: > '__MES_V10_1_H__' is used as a header guard here, followed by #define of > a different macr

Re: [PATCH v2] gpu/drm_memory: fix a few warnings

2019-07-08 Thread Thomas Gleixner
On Mon, 8 Jul 2019, Qian Cai wrote: > On Mon, 2019-07-08 at 15:21 -0400, Ilia Mirkin wrote: > > > -/** > > > +// SPDX-License-Identifier: MIT > > > +/* > > >   * \file drm_memory.c > > >   * Memory management wrappers for DRM > > >   * > > > @@ -12,25 +13,6 @@ > > >   * Copyright 1999 Precision Ins

Re: [PATCH 21/60] drm/panel: Add driver for the Sharp LS037V7DW01 panel

2019-07-08 Thread Sam Ravnborg
Hi Laurent. > > + > > +MODULE_DEVICE_TABLE(of, ls037v7dw01_of_match); > > + > > +static struct platform_driver ls037v7dw01_driver = { > > + .probe = ls037v7dw01_probe, > > + .remove = __exit_p(ls037v7dw01_remove), I hope _exit_p() is not needed. No other panel drivers use it

Re: [PATCH 21/60] drm/panel: Add driver for the Sharp LS037V7DW01 panel

2019-07-08 Thread Sam Ravnborg
Hi Laurent. Third panel driver in line for review. Review comments that are duplicates from the first two will have only a brief remark - if any. On Sun, Jul 07, 2019 at 09:18:58PM +0300, Laurent Pinchart wrote: > This panel is used on the SDP3430. Add a little more context and put it in Kconfig

Re: [PATCH v2] gpu/drm_memory: fix a few warnings

2019-07-08 Thread Qian Cai
On Mon, 2019-07-08 at 15:21 -0400, Ilia Mirkin wrote: > On Mon, Jul 8, 2019 at 2:06 PM Qian Cai wrote: > > > > The opening comment mark "/**" is reserved for kernel-doc comments, so > > it will generate a warning with "make W=1". > > > > drivers/gpu/drm/drm_memory.c:2: warning: Cannot understand

Re: [PATCH 20/60] drm/panel: Add driver for the NEC NL8048HL11 panel

2019-07-08 Thread Sam Ravnborg
Hi Laurent. > > Use __maybe_unused, and loose the #ifdef > And why does this panel need suspend/resume? > The panel is supposed to be turned off in disable() Sorry - the panel is supposed to be turned off in unprepare. disable() is mainly for backlight and such. Sam

Re: [PATCH v2] gpu/drm_memory: fix a few warnings

2019-07-08 Thread Ilia Mirkin
On Mon, Jul 8, 2019 at 2:06 PM Qian Cai wrote: > > The opening comment mark "/**" is reserved for kernel-doc comments, so > it will generate a warning with "make W=1". > > drivers/gpu/drm/drm_memory.c:2: warning: Cannot understand * \file > drm_memory.c > > Also, silence a checkpatch warning by a

[Bug 111082] Severe stutter in CS:GO surf servers, despite ~300fps

2019-07-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111082 --- Comment #7 from Sylvain BERTRAND --- > My CPU load is also super low and never above 50 % on a single > core. This is the issue: looks like cpu capping in the 3d engine. But, since csgo 3d engine is direct3d designed, this is why vulkan. l

Re: [Bug 111082] Severe stutter in CS:GO surf servers, despite ~300fps

2019-07-08 Thread sylvain . bertrand
> My CPU load is also super low and never above 50 % on a single > core. This is the issue: looks like cpu capping in the 3d engine. But, since csgo 3d engine is direct3d designed, this is why vulkan. linux csgo devs are the ones who can profile properly their game and figure out the culprit. (co

Re: [PATCH 20/60] drm/panel: Add driver for the NEC NL8048HL11 panel

2019-07-08 Thread Sam Ravnborg
Hi Laurent. Thanks for keeping me busy :-) On Sun, Jul 07, 2019 at 09:18:57PM +0300, Laurent Pinchart wrote: > This panel is used on the Zoom2/3/3630 SDP boards. This information may be good to have in the Kconfig help entry too. Maybe tell in the changelog where this code originates from. > --

Re: [PATCH 17/60] dt-bindings: Add legacy 'toppoly' vendor prefix

2019-07-08 Thread Rob Herring
On Sun, Jul 7, 2019 at 12:25 PM Laurent Pinchart wrote: > > The 'toppoly' vendor prefix is in use and refers to TPO, whose DT vendor > prefix is already defined as 'tpo'. Add 'toppoly' as an alternative and > document it as legacy. > > Signed-off-by: Laurent Pinchart > --- > Documentation/device

Re: [PATCH 19/60] drm/panel: Add driver for the LG Philips LB035Q02 panel

2019-07-08 Thread Sam Ravnborg
Hi Laurent. Good to move omapdrm to a more standard way to do things. > new file mode 100644 > index ..d8a8c3a3a8c5 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-lg-lb035q02.c > @@ -0,0 +1,235 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * LG.Philips LB035Q02 LCD Panel Dr

Re: use exact allocation for dma coherent memory

2019-07-08 Thread Christoph Hellwig
On Tue, Jul 02, 2019 at 11:48:44AM +0200, Arend Van Spriel wrote: > You made me look ;-) Actually not touching my drivers so I'm off the hook. > However, I was wondering if drivers could know so I decided to look into > the DMA-API.txt documentation which currently states: > > """ > The flag para

Re: [PATCH] drm/amd/display: avoid 64-bit division

2019-07-08 Thread Abramov, Slava
Acked-by: Slava Abramov Tested-by: Slava Abramov From: amd-gfx on behalf of Arnd Bergmann Sent: Monday, July 8, 2019 9:52:08 AM To: Wentland, Harry; Li, Sun peng (Leo); Deucher, Alexander; Koenig, Christian; Zhou, David(ChunMing); David Airlie; Daniel Vetter

[PATCH v9 6/6] drm/hdcp: reference for srm file format

2019-07-08 Thread Ramalingam C
In the kernel documentation, HDCP specifications links are shared as a reference for SRM table format. Signed-off-by: Ramalingam C --- drivers/gpu/drm/drm_hdcp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/drm_hdcp.c b/drivers/gpu/drm/drm_hdcp.c index 77433ee3d652.

[PATCH v9 3/6] drm: uevent for connector status change

2019-07-08 Thread Ramalingam C
DRM API for generating uevent for a status changes of connector's property. This uevent will have following details related to the status change: HOTPLUG=1, CONNECTOR= and PROPERTY= Need ACK from this uevent from userspace consumer. v2: Minor fixes at KDoc comments [Daniel] v3: Check the

[PATCH v9 5/6] drm/i915: update the hdcp state with uevent

2019-07-08 Thread Ramalingam C
drm function to update the content protection property state and to generate a uevent is invoked from the intel hdcp property work. Hence whenever kernel changes the property state, userspace will be updated with a uevent. Need a ACK for uevent generating uAPI from userspace. v2: state update

[PATCH v9 4/6] drm/hdcp: update content protection property with uevent

2019-07-08 Thread Ramalingam C
drm function is defined and exported to update a connector's content protection property state and to generate a uevent along with it. Need ACK for the uevent from userspace consumer. v2: Update only when state is different from old one. v3: KDoc is added [Daniel] v4: KDoc is extended bit m

[PATCH v9 2/6] drm/i915: Attach content type property

2019-07-08 Thread Ramalingam C
Attaches the content type property for HDCP2.2 capable connectors. Implements the update of content type from property and apply the restriction on HDCP version selection. Need ACK for content type property from userspace consumer. v2: s/cp_content_type/content_protection_type [daniel] disab

[PATCH v9 1/6] drm: Add Content protection type property

2019-07-08 Thread Ramalingam C
This patch adds a DRM ENUM property to the selected connectors. This property is used for mentioning the protected content's type from userspace to kernel HDCP authentication. Type of the stream is decided by the protected content providers. Type 0 content can be rendered on any HDCP protected dis

[PATCH v9 0/6] HDCP2.2 Phase II

2019-07-08 Thread Ramalingam C
Adding the uAPI support for the HDCP content type is the main focus here. Along with that uevent is implemented for the "Content Protection" state change that got triggered by kernel. v9: KDoc improvements [pekka] Ramalingam C (6): drm: Add Content protection type property drm/i915: Attach

Re: [PATCH] drm/msm/a6xx: add missing MODULE_FIRMWARE()

2019-07-08 Thread Bjorn Andersson
On Wed 03 Jul 07:00 PDT 2019, Rob Clark wrote: > From: Rob Clark > > For platforms that require the "zap shader" to take the GPU out of > secure mode at boot, we also need the zap fw to end up in the initrd. > > Signed-off-by: Rob Clark My upcoming pull request for this merge window includes

Re: [PATCH v6 01/18] kunit: test: add KUnit test runner core

2019-07-08 Thread Brendan Higgins
On Fri, Jul 5, 2019 at 1:20 PM Luis Chamberlain wrote: > > On Wed, Jul 03, 2019 at 05:35:58PM -0700, Brendan Higgins wrote: > > +struct kunit { > > + void *priv; > > + > > + /* private: internal use only. */ > > + const char *name; /* Read only after initialization! */ > > + bool s

Re: [PATCH v6 01/18] kunit: test: add KUnit test runner core

2019-07-08 Thread Brendan Higgins
On Fri, Jul 5, 2019 at 1:15 PM Luis Chamberlain wrote: > > On Wed, Jul 03, 2019 at 05:35:58PM -0700, Brendan Higgins wrote: > > Add core facilities for defining unit tests; this provides a common way > > to define test cases, functions that execute code which is under test > > and determine whethe

[PATCH v2] gpu/drm_memory: fix a few warnings

2019-07-08 Thread Qian Cai
The opening comment mark "/**" is reserved for kernel-doc comments, so it will generate a warning with "make W=1". drivers/gpu/drm/drm_memory.c:2: warning: Cannot understand * \file drm_memory.c Also, silence a checkpatch warning by adding a license identfiter where it indicates the MIT license

Re: [PATCH v5 2/7] drm/panel: simple: Add ability to override typical timing

2019-07-08 Thread Sam Ravnborg
On Mon, Jul 01, 2019 at 09:39:06AM -0700, Doug Anderson wrote: > Hi, > > On Sun, Jun 30, 2019 at 1:55 PM Sam Ravnborg wrote: > > > > Hi Douglas. > > > > > > + > > > > + /* Only add timings if override was not there or failed to validate > > > > */ > > > > + if (num == 0 && panel->desc->num_t

Re: [PATCH v5 2/7] drm/panel: simple: Add ability to override typical timing

2019-07-08 Thread Sam Ravnborg
Hi Dough. On Mon, Jul 01, 2019 at 09:39:24AM -0700, Doug Anderson wrote: > Hi, > > On Sun, Jun 30, 2019 at 1:22 PM Sam Ravnborg wrote: > > > > > @@ -91,6 +92,8 @@ struct panel_simple { > > > struct i2c_adapter *ddc; > > > > > > struct gpio_desc *enable_gpio; > > > + > > > + struc

[Bug 111082] Severe stutter in CS:GO surf servers, despite ~300fps

2019-07-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111082 --- Comment #6 from nuc...@hotmail.com --- Hm, well as I said my fps are constantly very high, so it looks like a frame pacing issue. My CPU load is also super low and never above 50 % on a single core. Of course this might be an issue with the

  1   2   3   >