All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Clark <robdclark@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] dm: video: Fix cache flushes
Date: Wed, 13 Sep 2017 18:12:20 -0400	[thread overview]
Message-ID: <20170913221227.21091-2-robdclark@gmail.com> (raw)
In-Reply-To: <20170913221227.21091-1-robdclark@gmail.com>

Content can come to screen via putc() and we cannot always rely on
updates ending with a puts().  This is the case with efi_console output
to vidconsole.  Fixes corruption with Shell.efi.

Signed-off-by: Rob Clark <robdclark@gmail.com>
---
 drivers/video/vidconsole-uclass.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c
index b5afd72227..e081d5a0ee 100644
--- a/drivers/video/vidconsole-uclass.c
+++ b/drivers/video/vidconsole-uclass.c
@@ -163,6 +163,7 @@ static void vidconsole_putc(struct stdio_dev *sdev, const char ch)
 	struct udevice *dev = sdev->priv;
 
 	vidconsole_put_char(dev, ch);
+	video_sync(dev->parent);
 }
 
 static void vidconsole_puts(struct stdio_dev *sdev, const char *s)
@@ -260,6 +261,8 @@ static int do_video_puts(cmd_tbl_t *cmdtp, int flag, int argc,
 	for (s = argv[1]; *s; s++)
 		vidconsole_put_char(dev, *s);
 
+	video_sync(dev->parent);
+
 	return 0;
 }
 
-- 
2.13.5

  reply	other threads:[~2017-09-13 22:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-13 22:12 [U-Boot] [PATCH 0/3] dm: video: enhancements for Shell.efi Rob Clark
2017-09-13 22:12 ` Rob Clark [this message]
2017-09-13 22:12 ` [U-Boot] [PATCH 2/3] dm: video: Add basic ANSI escape sequence support Rob Clark
2017-09-17 17:55   ` Simon Glass
2017-09-17 19:26     ` Rob Clark
2017-09-17 19:30       ` Simon Glass
2017-09-17 19:39         ` Rob Clark
2017-09-20 13:49           ` Simon Glass
2017-09-13 22:12 ` [U-Boot] [PATCH 3/3] dm: video: Add color " Rob Clark
2017-09-28 12:17 ` [U-Boot] [PATCH 0/3] dm: video: enhancements for Shell.efi Simon Glass
2017-09-28 14:40   ` Rob Clark
2017-09-29 19:45 ` Anatolij Gustschin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170913221227.21091-2-robdclark@gmail.com \
    --to=robdclark@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.