drivers/gpu/drm/openchrome/via_crtc.c | 52 +++++++++++++++++++++++++--------- drivers/gpu/drm/openchrome/via_drv.h | 2 - 2 files changed, 40 insertions(+), 14 deletions(-)
New commits: commit 890c760d09d7a7aa1cc78befd5e6b843c77037d3 Author: Kevin Brace <kevinbr...@gmx.com> Date: Tue Dec 19 20:07:29 2017 -0600 drm/openchrome: Version bumped to 3.0.66 Display FIFO fixes for PM800 chipset. Signed-off-by: Kevin Brace <kevinbr...@gmx.com> diff --git a/drivers/gpu/drm/openchrome/via_drv.h b/drivers/gpu/drm/openchrome/via_drv.h index 8133c97dc28a..687ff7c57af9 100644 --- a/drivers/gpu/drm/openchrome/via_drv.h +++ b/drivers/gpu/drm/openchrome/via_drv.h @@ -34,7 +34,7 @@ #define DRIVER_MAJOR 3 #define DRIVER_MINOR 0 -#define DRIVER_PATCHLEVEL 65 +#define DRIVER_PATCHLEVEL 66 #include <linux/module.h> commit 6466d13ec3a3b697bb84cdda75a7d4fe7c9ab174 Author: Kevin Brace <kevinbr...@gmx.com> Date: Tue Dec 19 20:06:05 2017 -0600 drm/openchrome: Correcting incorrect K8M800 IGA2 comments Signed-off-by: Kevin Brace <kevinbr...@gmx.com> diff --git a/drivers/gpu/drm/openchrome/via_crtc.c b/drivers/gpu/drm/openchrome/via_crtc.c index b6013c359caa..b3facc4c1aa6 100644 --- a/drivers/gpu/drm/openchrome/via_crtc.c +++ b/drivers/gpu/drm/openchrome/via_crtc.c @@ -905,19 +905,21 @@ static void via_iga2_display_fifo_regs(struct drm_device *dev, break; case PCI_DEVICE_ID_VIA_K8M800: - /* SR17[7:0] */ + /* CR95[7], CR94[7], CR68[7:4] */ iga->fifo_max_depth = 376; - /* SR16[7], SR16[5:0] */ + /* CR95[6:4], CR68[3:0] */ iga->fifo_threshold = 328; - /* SR18[7], SR18[5:0] */ + /* CR95[2:0], CR92[3:0] */ iga->fifo_high_threshold = 296; if ((fb->bits_per_pixel == 32) && (mode->hdisplay >= 1400)) { + /* CR94[6:0] */ iga->display_queue_expire_num = 64; } else { + /* CR94[6:0] */ iga->display_queue_expire_num = 128; } commit 1e550da77e1b19ad9b9ba28bbb3b447773cd77d0 Author: Kevin Brace <kevinbr...@gmx.com> Date: Tue Dec 19 19:58:22 2017 -0600 drm/openchrome: Changing PM800 IGA1 and IGA2 display FIFO parameters The display FIFO parameters came from VIA Technologies Chrome IGP open source DDX device driver. Signed-off-by: Kevin Brace <kevinbr...@gmx.com> diff --git a/drivers/gpu/drm/openchrome/via_crtc.c b/drivers/gpu/drm/openchrome/via_crtc.c index 1572dc343302..b6013c359caa 100644 --- a/drivers/gpu/drm/openchrome/via_crtc.c +++ b/drivers/gpu/drm/openchrome/via_crtc.c @@ -674,12 +674,23 @@ static void via_iga1_display_fifo_regs(struct drm_device *dev, break; case PCI_DEVICE_ID_VIA_PM800: - iga->display_queue_expire_num = 128; - iga->fifo_high_threshold = 32; - iga->fifo_threshold = 64; - iga->fifo_max_depth = 96; - break; + /* SR17[7:0] */ + iga->fifo_max_depth = 384; + /* SR16[7], SR16[5:0] */ + iga->fifo_threshold = 128; + + /* SR18[7], SR18[5:0] */ + iga->fifo_high_threshold = 64; + + if ((fb->bits_per_pixel == 32) && + (mode->hdisplay >= 1400)) { + iga->display_queue_expire_num = 64; + } else { + iga->display_queue_expire_num = 124; + } + + break; case PCI_DEVICE_ID_VIA_CN700: iga->display_queue_expire_num = 0; iga->fifo_high_threshold = 64; @@ -912,12 +923,25 @@ static void via_iga2_display_fifo_regs(struct drm_device *dev, break; case PCI_DEVICE_ID_VIA_PM800: - iga->display_queue_expire_num = 0; - iga->fifo_high_threshold = 64; - iga->fifo_threshold = 128; - iga->fifo_max_depth = 192; - break; + /* CR95[7], CR94[7], CR68[7:4] */ + iga->fifo_max_depth = 96; + + /* CR95[6:4], CR68[3:0] */ + iga->fifo_threshold = 64; + + /* CR95[2:0], CR92[3:0] */ + iga->fifo_high_threshold = 32; + if ((fb->bits_per_pixel == 32) && + (mode->hdisplay >= 1400)) { + /* CR94[6:0] */ + iga->display_queue_expire_num = 64; + } else { + /* CR94[6:0] */ + iga->display_queue_expire_num = 128; + } + + break; case PCI_DEVICE_ID_VIA_CN700: iga->display_queue_expire_num = 128; iga->fifo_high_threshold = 32; _______________________________________________ Openchrome-devel mailing list Openchrome-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/openchrome-devel