From patchwork Sun Sep 10 13:22:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 812142 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZK3zZgRd"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xqsKj0F2Qz9s7g for ; Sun, 10 Sep 2017 23:27:04 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 9FA3FC21EDB; Sun, 10 Sep 2017 13:26:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4A1D3C21F3A; Sun, 10 Sep 2017 13:24:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B8973C21E40; Sun, 10 Sep 2017 13:23:23 +0000 (UTC) Received: from mail-qk0-f193.google.com (mail-qk0-f193.google.com [209.85.220.193]) by lists.denx.de (Postfix) with ESMTPS id 27CE9C21F21 for ; Sun, 10 Sep 2017 13:23:14 +0000 (UTC) Received: by mail-qk0-f193.google.com with SMTP id c69so4063059qke.5 for ; Sun, 10 Sep 2017 06:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r/bhCAJ8JDz2goG1KgDPPLDzuaAvPHuu7Eu9hHjwt5s=; b=ZK3zZgRdSWApwWwmtBcSllIWDRu52MlF2zb2qgNeASIwRliuAP9jH8d26kMqQSZuf5 tM5HphvJKaKNGpk/zoZ6CkFadgnbOIOSOROewa4KrH4orLYu76kA1mcHKItXzvSfX8JJ hHiBwIuv7I3lr8DvsjQBgJkAMKyVYjELtzeXdFnkq8YynqWm/5EFjzyvD6FAWiI3XCL3 MxTWXg00OgQ4V2l1IMyw8nOCui0qYEpTYgXInk5WFBIvh5VoXazG2l1TKZOroHP+RfSu ROL6Ld87pVKIOoLM/6jxt6UbTSsIa6i/5XbkJsH+KnCISitJVjAtirL1IGNe1ZkDkyUQ lo7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r/bhCAJ8JDz2goG1KgDPPLDzuaAvPHuu7Eu9hHjwt5s=; b=Fi4GvjLgsrkcGHopnUtmuYTj8InYaDCP5efoZt6tytBstSRsy5cM6s2scqbnAxovti 1/EY2z8oBBiWY4SiP1djA+IsESVRpj+6q6XJ7slYt0swaLjRfLdqeuYaunrsRhHFkmDG s1634jrFSidkvflyQNeCFd2yUw7VWTSKMNpHZw0Efu7tjWL1qVYNSmWBk72+9nhPAXSj uVxqAncXpVZ7RNevEBUnf3lhgM30TZnbbb7H4CtpCDfKGwsAW+oHi/9hZ3MScj/v3a08 sX+FS2V4bWZwOlQsCPQ2zP9uo/TZyzorUQDDY8ttOvxGpo3Df+EOOGnG3UXg4INBGdH/ DuXw== X-Gm-Message-State: AHPjjUhjm63HnwhM/dZWQDoz9MGStb0Hvyyv/OClPUPR4IBXwuAERgwf uPQzCVlfjhaClr+jTBI= X-Google-Smtp-Source: AOwi7QDUPHtuSn9YDvudAvlM2jV0P1h7tRmPat/mAFFyBvcsWTtS//48x+MWJ9fMRLFIs7z//eLIvw== X-Received: by 10.55.18.137 with SMTP id 9mr11763126qks.208.1505049792505; Sun, 10 Sep 2017 06:23:12 -0700 (PDT) Received: from localhost ([2601:184:4780:aac0:25f8:dd96:a084:785a]) by smtp.gmail.com with ESMTPSA id t65sm4364713qke.12.2017.09.10.06.23.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 10 Sep 2017 06:23:11 -0700 (PDT) From: Rob Clark To: U-Boot Mailing List Date: Sun, 10 Sep 2017 09:22:30 -0400 Message-Id: <20170910132236.14318-10-robdclark@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170910132236.14318-1-robdclark@gmail.com> References: <20170910132236.14318-1-robdclark@gmail.com> Cc: Heinrich Schuchardt , Leif Lindholm Subject: [U-Boot] [PATCH v1 09/12] dm: video: Fix cache flushes X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 Acked-by: Heinrich Schuchardt --- 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; }