[Openchrome-devel] drm-openchrome: Branch 'drm-next-3.19' - 4 commits - drivers/gpu/drm

2018-04-30 Thread Kevin Brace
 drivers/gpu/drm/openchrome/via_crtc.c |   28 -
 drivers/gpu/drm/openchrome/via_drv.h  |4 
 drivers/gpu/drm/openchrome/via_ttm.c  |  681 ++
 3 files changed, 377 insertions(+), 336 deletions(-)

New commits:
commit 62d029c6db50b09a15a479b4c472621acb73b8a7
Author: Kevin Brace 
Date:   Mon Apr 30 20:53:31 2018 -0700

drm/openchrome: Version bumped to 3.0.81

VX855 / VX875 chipset (Chrome9 HCM) hardware cursor fix and
miscellaneous clean ups.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_drv.h 
b/drivers/gpu/drm/openchrome/via_drv.h
index 73071fcc22c9..4709b5b683a4 100644
--- a/drivers/gpu/drm/openchrome/via_drv.h
+++ b/drivers/gpu/drm/openchrome/via_drv.h
@@ -30,11 +30,11 @@
 #define DRIVER_AUTHOR   "OpenChrome Project"
 #define DRIVER_NAME "openchrome"
 #define DRIVER_DESC "OpenChrome DRM for VIA Technologies Chrome IGP"
-#define DRIVER_DATE "20180329"
+#define DRIVER_DATE "20180430"
 
 #define DRIVER_MAJOR   3
 #define DRIVER_MINOR   0
-#define DRIVER_PATCHLEVEL  80
+#define DRIVER_PATCHLEVEL  81
 
 #include 
 
commit b10340a9845f8f537bd94685a34ebb31706c70bc
Author: Kevin Brace 
Date:   Mon Apr 30 20:20:51 2018 -0700

drm/openchrome: Remove entered / exited messages for hardware cursor

The entered / exited messages for hardware cursor cause too much
kern.log message pollution.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_crtc.c 
b/drivers/gpu/drm/openchrome/via_crtc.c
index c5a3ddee6e0f..6434a6c91b3c 100644
--- a/drivers/gpu/drm/openchrome/via_crtc.c
+++ b/drivers/gpu/drm/openchrome/via_crtc.c
@@ -156,8 +156,6 @@ static void via_hide_cursor(struct drm_crtc *crtc)
struct via_device *dev_priv = crtc->dev->dev_private;
uint32_t temp;
 
-   DRM_DEBUG_KMS("Entered %s.\n", __func__);
-
switch (dev->pdev->device) {
case PCI_DEVICE_ID_VIA_PM800:
case PCI_DEVICE_ID_VIA_VT3157:
@@ -180,8 +178,6 @@ static void via_hide_cursor(struct drm_crtc *crtc)
VIA_WRITE(HI_CONTROL, temp & 0xFFFA);
break;
}
-
-   DRM_DEBUG_KMS("Exiting %s.\n", __func__);
 }
 
 static void via_show_cursor(struct drm_crtc *crtc)
@@ -190,8 +186,6 @@ static void via_show_cursor(struct drm_crtc *crtc)
struct via_crtc *iga = container_of(crtc, struct via_crtc, base);
struct via_device *dev_priv = crtc->dev->dev_private;
 
-   DRM_DEBUG_KMS("Entered %s.\n", __func__);
-
switch (dev->pdev->device) {
case PCI_DEVICE_ID_VIA_PM800:
case PCI_DEVICE_ID_VIA_VT3157:
@@ -248,8 +242,6 @@ static void via_show_cursor(struct drm_crtc *crtc)
 
break;
}
-
-   DRM_DEBUG_KMS("Exiting %s.\n", __func__);
 }
 
 static void via_cursor_address(struct drm_crtc *crtc)
@@ -258,10 +250,8 @@ static void via_cursor_address(struct drm_crtc *crtc)
struct via_crtc *iga = container_of(crtc, struct via_crtc, base);
struct via_device *dev_priv = crtc->dev->dev_private;
 
-   DRM_DEBUG_KMS("Entered %s.\n", __func__);
-
if (!iga->cursor_kmap.bo) {
-   goto exit;
+   return;
}
 
switch (dev->pdev->device) {
@@ -283,9 +273,6 @@ static void via_cursor_address(struct drm_crtc *crtc)
VIA_WRITE(HI_FBOFFSET, iga->cursor_kmap.bo->offset);
break;
}
-
-exit:
-   DRM_DEBUG_KMS("Exiting %s.\n", __func__);
 }
 
 static int via_crtc_cursor_set(struct drm_crtc *crtc,
@@ -300,8 +287,6 @@ static int via_crtc_cursor_set(struct drm_crtc *crtc,
struct drm_gem_object *obj = NULL;
struct ttm_bo_kmap_obj user_kmap;
 
-   DRM_DEBUG_KMS("Entered %s.\n", __func__);
-
if (!iga->cursor_kmap.bo)
return -ENXIO;
 
@@ -350,7 +335,6 @@ static int via_crtc_cursor_set(struct drm_crtc *crtc,
via_cursor_address(crtc);
via_show_cursor(crtc);
 
-   DRM_DEBUG_KMS("Exiting %s.\n", __func__);
return ret;
 }
 
commit 9dddceab145375a19d0c3b92bbb6c6e8e3e29124
Author: Kevin Brace 
Date:   Mon Apr 30 20:11:11 2018 -0700

drm/openchrome: Fix for VX855 / VX875 chipset hardware cursor display

Due to confusing VX855 / VX875 chipset PCI device ID labels for
graphics, hardware cursor was not being displayed only on VX855 /
VX875 chipset. The code was tested on Wyse Cx0 thin client.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_crtc.c 
b/drivers/gpu/drm/openchrome/via_crtc.c
index ea559b04468a..c5a3ddee6e0f 100644
--- a/drivers/gpu/drm/openchrome/via_crtc.c
+++ b/drivers/gpu/drm/openchrome/via_crtc.c
@@ -164,7 +164,7 @@ static void via_hide_cursor(struct drm_crtc *crtc)
case PCI_DEVICE_ID_VIA_VT3343:
case 

[Openchrome-devel] drm-openchrome: Branch 'drm-next-3.19' - 4 commits - drivers/gpu/drm

2018-01-28 Thread Kevin Brace
 drivers/gpu/drm/openchrome/via_crtc.c |   20 ++--
 drivers/gpu/drm/openchrome/via_disp_reg.h |4 ++--
 drivers/gpu/drm/openchrome/via_drv.h  |4 ++--
 3 files changed, 14 insertions(+), 14 deletions(-)

New commits:
commit 54ca9d799e1785c0a4996172f00c38ef5b4f0146
Author: Kevin Brace 
Date:   Sun Jan 28 12:33:38 2018 -0800

drm/openchrome: Version bumped to 3.0.71

An important CLE266 chipset display regression fix got implemented. The
correct functionality was validated on VIA EPIA-M mainboard. Standby
resume (ACPI S3 State resume) is also working for EPIA-M now.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_drv.h 
b/drivers/gpu/drm/openchrome/via_drv.h
index cdb7c9ec8464..dd226148462d 100644
--- a/drivers/gpu/drm/openchrome/via_drv.h
+++ b/drivers/gpu/drm/openchrome/via_drv.h
@@ -30,11 +30,11 @@
 #define DRIVER_AUTHOR   "OpenChrome Project"
 #define DRIVER_NAME "openchrome"
 #define DRIVER_DESC "OpenChrome DRM for VIA Technologies Chrome IGP"
-#define DRIVER_DATE "20171222"
+#define DRIVER_DATE "20180128"
 
 #define DRIVER_MAJOR   3
 #define DRIVER_MINOR   0
-#define DRIVER_PATCHLEVEL  70
+#define DRIVER_PATCHLEVEL  71
 
 #include 
 
commit 05a65791b356a3eddfb9dc045eaaf7d34eac5997
Author: Kevin Brace 
Date:   Sat Jan 27 23:55:33 2018 -0800

drm/openchrome: Cosmetic changes to display FIFO depth formula

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_disp_reg.h 
b/drivers/gpu/drm/openchrome/via_disp_reg.h
index a3b2cf8ddcbe..e2bd895bb495 100644
--- a/drivers/gpu/drm/openchrome/via_disp_reg.h
+++ b/drivers/gpu/drm/openchrome/via_disp_reg.h
@@ -28,8 +28,8 @@
 //
 /* Definition IGA Design Method of FIFO Registers  */
 //
-#define IGA1_FIFO_DEPTH_SELECT_FORMULA(x)  ((x / 2) - 1)
-#define IGA2_FIFO_DEPTH_SELECT_FORMULA(x)  ((x / 2) / 4) - 1
+#define IGA1_FIFO_DEPTH_SELECT_FORMULA(x)  ((x >> 1) - 1)
+#define IGA2_FIFO_DEPTH_SELECT_FORMULA(x)  ((x >> 3) - 1)
 
 /* Define Display OFFSET */
 /* VT3314 chipset */
commit f37a2279a244114ce9a15dbf82f52c251b63adfa
Author: Kevin Brace 
Date:   Sat Jan 27 23:50:04 2018 -0800

drm/openchrome: KM400 IGA1 display FIFO parameter comment fix

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_crtc.c 
b/drivers/gpu/drm/openchrome/via_crtc.c
index 20c4dca5f34f..6367c0d0f908 100644
--- a/drivers/gpu/drm/openchrome/via_crtc.c
+++ b/drivers/gpu/drm/openchrome/via_crtc.c
@@ -624,22 +624,22 @@ static void via_iga1_display_fifo_regs(struct drm_device 
*dev,
case PCI_DEVICE_ID_VIA_KM400:
if ((mode->hdisplay >= 1600) &&
(dev_priv->vram_type <= VIA_MEM_DDR_200)) {
-   /* SR17[7:0] */
+   /* SR17[6:0] */
fifo_max_depth = 58;
 
-   /* SR16[7], SR16[5:0] */
+   /* SR16[5:0] */
fifo_threshold = 24;
 
-   /* SR18[7], SR18[5:0] */
+   /* SR18[5:0] */
fifo_high_threshold = 92;
} else {
-   /* SR17[7:0] */
+   /* SR17[6:0] */
fifo_max_depth = 128;
 
-   /* SR16[7], SR16[5:0] */
+   /* SR16[5:0] */
fifo_threshold = 112;
 
-   /* SR18[7], SR18[5:0] */
+   /* SR18[5:0] */
fifo_high_threshold = 92;
}
 
commit ba307601f98b0c59c9380325a6c0a7d8a5173251
Author: Kevin Brace 
Date:   Sat Jan 27 23:43:22 2018 -0800

drm/openchrome: Fix for CLE266 IGA1 display regression

The new CLE266 chipset IGA1 display FIFO parameters were severely
disrupting IGA1 display. This commit fixes this bug. Also, with this
fix, mode setting of IGA1 with analog (VGA) output after standby
resumeis now fully working. This fix was validated on VIA EPIA-M
mainboard.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_crtc.c 
b/drivers/gpu/drm/openchrome/via_crtc.c
index b5b667c9732a..20c4dca5f34f 100644
--- a/drivers/gpu/drm/openchrome/via_crtc.c
+++ b/drivers/gpu/drm/openchrome/via_crtc.c
@@ -505,7 +505,7 @@ static void via_iga1_display_fifo_regs(struct drm_device 
*dev,
if (dev_priv->revision == CLE266_REVISION_AX) {
if (mode->hdisplay > 1024) {
/* SR17[6:0] */
-   fifo_max_depth = 

[Openchrome-devel] drm-openchrome: Branch 'drm-next-3.19' - 4 commits - drivers/gpu/drm

2017-12-16 Thread Kevin Brace
 drivers/gpu/drm/openchrome/via_crtc.c |  147 ++
 drivers/gpu/drm/openchrome/via_disp_reg.h |   18 ++-
 drivers/gpu/drm/openchrome/via_drv.h  |4 
 3 files changed, 125 insertions(+), 44 deletions(-)

New commits:
commit 0540c602039b68f9ec53e920d25be4496b996c23
Author: Kevin Brace 
Date:   Sat Dec 16 00:33:18 2017 -0800

drm/openchrome: Version bumped to 3.0.60

Added code to properly set IGA2 display FIFO for KM400 chpset.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_drv.h 
b/drivers/gpu/drm/openchrome/via_drv.h
index 71a67b58afd0..8f7d014903a7 100644
--- a/drivers/gpu/drm/openchrome/via_drv.h
+++ b/drivers/gpu/drm/openchrome/via_drv.h
@@ -30,11 +30,11 @@
 #define DRIVER_AUTHOR   "OpenChrome Project"
 #define DRIVER_NAME "openchrome"
 #define DRIVER_DESC "OpenChrome DRM for VIA Technologies Chrome IGP"
-#define DRIVER_DATE "20171207"
+#define DRIVER_DATE "20171216"
 
 #define DRIVER_MAJOR   3
 #define DRIVER_MINOR   0
-#define DRIVER_PATCHLEVEL  59
+#define DRIVER_PATCHLEVEL  60
 
 #include 
 
commit d606b00fa80af7aef5dbb8c4021e448f50d7df68
Author: Kevin Brace 
Date:   Sat Dec 16 00:06:53 2017 -0800

drm/openchrome: Set KM400 chipset IGA2 display FIFO when mode setting

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_crtc.c 
b/drivers/gpu/drm/openchrome/via_crtc.c
index 7c8e015c0f00..bd0e1cbefe85 100644
--- a/drivers/gpu/drm/openchrome/via_crtc.c
+++ b/drivers/gpu/drm/openchrome/via_crtc.c
@@ -677,6 +677,56 @@ static void via_iga2_display_fifo_regs(struct drm_device 
*dev,
 DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
 switch (dev->pdev->device) {
+case PCI_DEVICE_ID_VIA_KM400:
+if (mode->hdisplay >= 1600) {
+/* CR68[7:4] */
+iga->fifo_max_depth = 120;
+
+/* CR68[3:0] */
+iga->fifo_threshold = 44;
+
+/* Enable IGA2 extended display FIFO. */
+svga_wcrt_mask(VGABASE, 0x6a, BIT(5), BIT(5));
+} else if (((mode->hdisplay > 1024) &&
+(fb->bits_per_pixel == 32) &&
+(dev_priv->vram_type <= VIA_MEM_DDR_333))
+|| ((mode->hdisplay == 1024) &&
+(fb->bits_per_pixel == 32) &&
+(dev_priv->vram_type <= VIA_MEM_DDR_200))) {
+/* CR68[7:4] */
+iga->fifo_max_depth = 104;
+
+/* CR68[3:0] */
+iga->fifo_threshold = 28;
+
+/* Enable IGA2 extended display FIFO. */
+svga_wcrt_mask(VGABASE, 0x6a, BIT(5), BIT(5));
+} else if (((mode->hdisplay > 1280) &&
+(fb->bits_per_pixel == 16) &&
+(dev_priv->vram_type <= VIA_MEM_DDR_333))
+|| ((mode->hdisplay == 1280) &&
+(fb->bits_per_pixel == 16) &&
+(dev_priv->vram_type <= VIA_MEM_DDR_200))) {
+/* CR68[7:4] */
+iga->fifo_max_depth = 88;
+
+/* CR68[3:0] */
+iga->fifo_threshold = 44;
+
+/* Enable IGA2 extended display FIFO. */
+svga_wcrt_mask(VGABASE, 0x6a, BIT(5), BIT(5));
+} else {
+/* CR68[7:4] */
+iga->fifo_max_depth = 56;
+
+/* CR68[3:0] */
+iga->fifo_threshold = 28;
+
+/* Disable IGA2 extended display FIFO. */
+svga_wcrt_mask(VGABASE, 0x6a, 0x00, BIT(5));
+}
+
+break;
 case PCI_DEVICE_ID_VIA_K8M800:
 iga->display_queue_expire_num = 0;
 iga->fifo_high_threshold = 296;
@@ -1824,9 +1874,8 @@ via_iga2_crtc_mode_set(struct drm_crtc *crtc,
 via_iga2_interlace_mode(VGABASE,
 adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE);
 
-/* Load FIFO */
-if ((dev->pdev->device != PCI_DEVICE_ID_VIA_CLE266)
-&& (dev->pdev->device != PCI_DEVICE_ID_VIA_KM400)) {
+/* Load display FIFO parameters. */
+if (dev->pdev->device != PCI_DEVICE_ID_VIA_CLE266) {
 via_iga2_display_fifo_regs(dev, dev_priv, iga,
 adjusted_mode, crtc->primary->fb);
 } else if (adjusted_mode->hdisplay == 1024
commit 1f5653ca98d448919004b4a2f25b467f35305cc4
Author: Kevin Brace 
Date:   Sat Dec 16 00:05:42 2017 -0800

drm/openchrome: Add fb parameter to via_iga*_display_fifo_regs

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_crtc.c 
b/drivers/gpu/drm/openchrome/via_crtc.c
index c9b960bae034..7c8e015c0f00 100644
--- a/drivers/gpu/drm/openchrome/via_crtc.c
+++ b/drivers/gpu/drm/openchrome/via_crtc.c
@@ -522,7 +522,8 @@ via_load_vpit_regs(struct via_device *dev_priv)
 static void via_iga1_display_fifo_regs(struct 

[Openchrome-devel] drm-openchrome: Branch 'drm-next-3.19' - 4 commits - drivers/gpu/drm

2017-12-07 Thread Kevin Brace
 drivers/gpu/drm/openchrome/crtc_hw.h  |   12 +
 drivers/gpu/drm/openchrome/via_crtc.c |  271 +++---
 drivers/gpu/drm/openchrome/via_drv.h  |4 
 3 files changed, 262 insertions(+), 25 deletions(-)

New commits:
commit 4fc0b304e8408659285bebd38a3161b115e0
Author: Kevin Brace 
Date:   Thu Dec 7 13:31:24 2017 -0800

drm/openchrome: Version bumped to 3.0.59

Fix for HP Pavilion a800n display getting distorted after standby
resume bug.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_drv.h 
b/drivers/gpu/drm/openchrome/via_drv.h
index ef1e3dcf63c3..71a67b58afd0 100644
--- a/drivers/gpu/drm/openchrome/via_drv.h
+++ b/drivers/gpu/drm/openchrome/via_drv.h
@@ -30,11 +30,11 @@
 #define DRIVER_AUTHOR   "OpenChrome Project"
 #define DRIVER_NAME "openchrome"
 #define DRIVER_DESC "OpenChrome DRM for VIA Technologies Chrome IGP"
-#define DRIVER_DATE "20171122"
+#define DRIVER_DATE "20171207"
 
 #define DRIVER_MAJOR   3
 #define DRIVER_MINOR   0
-#define DRIVER_PATCHLEVEL  58
+#define DRIVER_PATCHLEVEL  59
 
 #include 
 
commit 5da4a5ca855a9920e04246be656b8d9fb61a1176
Author: Kevin Brace 
Date:   Thu Dec 7 12:18:15 2017 -0800

drm/openchrome: Fix for KM400 family IGA1 display FIFO not being set

Not setting IGA1 display FIFO when mode setting led to HP Pavilion
a800n's display getting distorted after standby resume.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_crtc.c 
b/drivers/gpu/drm/openchrome/via_crtc.c
index 6d479de06f27..a241288ecb61 100644
--- a/drivers/gpu/drm/openchrome/via_crtc.c
+++ b/drivers/gpu/drm/openchrome/via_crtc.c
@@ -529,6 +529,47 @@ static void via_iga1_display_fifo_regs(struct drm_device 
*dev,
 DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
 switch (dev->pdev->device) {
+case PCI_DEVICE_ID_VIA_KM400:
+if ((mode->hdisplay >= 1600) &&
+(dev_priv->vram_type <= VIA_MEM_DDR_200)) {
+/* SR17[7:0] */
+iga->fifo_max_depth = 58;
+
+/* SR16[7], SR16[5:0] */
+iga->fifo_threshold = 24;
+
+/* SR18[7], SR18[5:0] */
+iga->fifo_high_threshold = 92;
+} else {
+/* SR17[7:0] */
+iga->fifo_max_depth = 128;
+
+/* SR16[7], SR16[5:0] */
+iga->fifo_threshold = 112;
+
+/* SR18[7], SR18[5:0] */
+iga->fifo_high_threshold = 92;
+}
+
+if (dev_priv->vram_type <= VIA_MEM_DDR_200) {
+if (mode->hdisplay >= 1600) {
+/* SR22[4:0] */
+iga->display_queue_expire_num = 16;
+} else {
+/* SR22[4:0] */
+iga->display_queue_expire_num = 8;
+}
+} else {
+if (mode->hdisplay >= 1600) {
+/* SR22[4:0] */
+iga->display_queue_expire_num = 40;
+} else {
+/* SR22[4:0] */
+iga->display_queue_expire_num = 36;
+}
+}
+
+break;
 case PCI_DEVICE_ID_VIA_K8M800:
 iga->display_queue_expire_num = 128;
 iga->fifo_high_threshold = 296;
@@ -1454,8 +1495,7 @@ via_iga1_crtc_mode_set(struct drm_crtc *crtc,
 via_iga1_set_hsync_shift(VGABASE, 0x05);
 
 /* Load FIFO */
-if ((dev->pdev->device != PCI_DEVICE_ID_VIA_CLE266)
-&& (dev->pdev->device != PCI_DEVICE_ID_VIA_KM400)) {
+if (dev->pdev->device != PCI_DEVICE_ID_VIA_CLE266) {
 via_iga1_display_fifo_regs(dev, dev_priv, iga, adjusted_mode);
 } else if (adjusted_mode->hdisplay == 1024
 && adjusted_mode->vdisplay == 768) {
commit 5e78329aa4ee77510f5565767ed3d93833c3cd1d
Author: Kevin Brace 
Date:   Wed Dec 6 23:32:42 2017 -0800

drm/openchrome: Add via_iga*_display_fifo_regs

Discontinue via_load_fifo_regs function in the process.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_crtc.c 
b/drivers/gpu/drm/openchrome/via_crtc.c
index bf42d6229cd1..6d479de06f27 100644
--- a/drivers/gpu/drm/openchrome/via_crtc.c
+++ b/drivers/gpu/drm/openchrome/via_crtc.c
@@ -519,33 +519,213 @@ via_load_vpit_regs(struct via_device *dev_priv)
 vga_w(VGABASE, VGA_ATT_W, BIT(5));
 }
 
-static void
-via_load_fifo_regs(struct via_crtc *iga, struct drm_display_mode *mode)
+static void via_iga1_display_fifo_regs(struct drm_device *dev,
+struct via_device *dev_priv,
+struct via_crtc *iga,
+struct drm_display_mode *mode)
 {
-u32 queue_expire_num = iga->display_queue_expire_num, reg_value;
-struct via_device *dev_priv = iga->base.dev->dev_private;
-int hor_active = 

[Openchrome-devel] drm-openchrome: Branch 'drm-next-3.19' - 4 commits - drivers/gpu/drm

2017-11-03 Thread Kevin Brace
 drivers/gpu/drm/openchrome/via_analog.c |2 ++
 drivers/gpu/drm/openchrome/via_drv.c|4 ++--
 drivers/gpu/drm/openchrome/via_drv.h|4 ++--
 drivers/gpu/drm/openchrome/via_fp.c |   22 --
 drivers/gpu/drm/openchrome/via_tmds.c   |   10 +-
 5 files changed, 23 insertions(+), 19 deletions(-)

New commits:
commit b86403791b2578ffc524cbe96d263dbc0b076d30
Author: Kevin Brace 
Date:   Thu Nov 2 23:48:16 2017 -0700

drm/openchrome: Version bumped to 3.0.54

This version fixes the I2C display detection regression introduced
by Version 3.0.52.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_drv.h 
b/drivers/gpu/drm/openchrome/via_drv.h
index 4c08bba0267c..00d35f37f51f 100644
--- a/drivers/gpu/drm/openchrome/via_drv.h
+++ b/drivers/gpu/drm/openchrome/via_drv.h
@@ -30,11 +30,11 @@
 #define DRIVER_AUTHOR   "OpenChrome Project"
 #define DRIVER_NAME "openchrome"
 #define DRIVER_DESC "OpenChrome DRM for VIA Technologies Chrome IGP"
-#define DRIVER_DATE "20171030"
+#define DRIVER_DATE "20171102"
 
 #define DRIVER_MAJOR   3
 #define DRIVER_MINOR   0
-#define DRIVER_PATCHLEVEL  53
+#define DRIVER_PATCHLEVEL  54
 
 #include 
 
commit 3aded78ab95f7cbcd2a01deb48070a4b62e6a3f0
Author: Kevin Brace 
Date:   Thu Nov 2 23:47:24 2017 -0700

drm/openchrome: Fix debug messages

Carriage return was missing.

Signed-off-by: Kevin Brace 

diff --git a/drivers/gpu/drm/openchrome/via_drv.c 
b/drivers/gpu/drm/openchrome/via_drv.c
index 5fc26da8d179..92109b805380 100644
--- a/drivers/gpu/drm/openchrome/via_drv.c
+++ b/drivers/gpu/drm/openchrome/via_drv.c
@@ -543,7 +543,7 @@ static int via_pm_ops_suspend(struct device *dev)
struct drm_device *drm_dev = pci_get_drvdata(pdev);
struct via_device *dev_priv = drm_dev->dev_private;
 
-   DRM_DEBUG_KMS("Entered %s.", __func__);
+   DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
console_lock();
if (dev_priv->via_fbdev->helper.fbdev) {
@@ -575,7 +575,7 @@ static int via_pm_ops_resume(struct device *dev)
void __iomem *regs = ioport_map(0x3c0, 100);
u8 val;
 
-   DRM_DEBUG_KMS("Entered %s.", __func__);
+   DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
console_lock();
 
diff --git a/drivers/gpu/drm/openchrome/via_fp.c 
b/drivers/gpu/drm/openchrome/via_fp.c
index e88e779895d8..e64e4eba3bc8 100644
--- a/drivers/gpu/drm/openchrome/via_fp.c
+++ b/drivers/gpu/drm/openchrome/via_fp.c
@@ -686,7 +686,7 @@ static void via_fp_dpms(struct drm_encoder *encoder, int 
mode)
/* PCI Device ID */
u16 chipset = dev->pdev->device;
 
-   DRM_DEBUG_KMS("Entered %s.", __func__);
+   DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
switch (mode) {
case DRM_MODE_DPMS_ON:
@@ -703,7 +703,7 @@ static void via_fp_dpms(struct drm_encoder *encoder, int 
mode)
break;
}
 
-   DRM_DEBUG_KMS("Exiting %s.", __func__);
+   DRM_DEBUG_KMS("Exiting %s.\n", __func__);
 }
 
 static bool
@@ -781,7 +781,7 @@ static void via_fp_prepare(struct drm_encoder *encoder)
/* PCI Device ID */
u16 chipset = dev->pdev->device;
 
-   DRM_DEBUG_KMS("Entered %s.", __func__);
+   DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
via_fp_power(dev_priv, chipset, enc->di_port, false);
via_fp_io_pad_setting(dev_priv, enc->di_port, false);
@@ -799,7 +799,7 @@ static void via_fp_commit(struct drm_encoder *encoder)
/* PCI Device ID */
u16 chipset = dev->pdev->device;
 
-   DRM_DEBUG_KMS("Entered %s.", __func__);
+   DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
via_fp_power(dev_priv, chipset, enc->di_port, true);
via_fp_io_pad_setting(dev_priv, enc->di_port, true);
@@ -897,7 +897,7 @@ static void via_fp_disable(struct drm_encoder *encoder)
/* PCI Device ID */
u16 chipset = dev->pdev->device;
 
-   DRM_DEBUG_KMS("Entered %s.", __func__);
+   DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
via_fp_power(dev_priv, chipset, enc->di_port, false);
via_fp_io_pad_setting(dev_priv, enc->di_port, false);
diff --git a/drivers/gpu/drm/openchrome/via_tmds.c 
b/drivers/gpu/drm/openchrome/via_tmds.c
index 9834307d158a..7b936fda7c9f 100644
--- a/drivers/gpu/drm/openchrome/via_tmds.c
+++ b/drivers/gpu/drm/openchrome/via_tmds.c
@@ -236,7 +236,7 @@ static void via_tmds_prepare(struct drm_encoder *encoder)
struct via_encoder, base);
struct via_device *dev_priv = encoder->dev->dev_private;
 
-   DRM_DEBUG_KMS("Entered %s.", __func__);
+   DRM_DEBUG_KMS("Entered %s.\n", __func__);
 
via_tmds_power(dev_priv, false);
via_tmds_io_pad_setting(dev_priv, enc->di_port, false);
@@ -250,7 +250,7 @@ static void via_tmds_commit(struct