From nobody Tue Apr 23 23:01:15 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1574706987; cv=none; d=zohomail.com; s=zohoarc; b=lAzubhoWJd400u3of5OcMs3/STXA4M2eE7x6Jd4XgXCtGQiB0UD8fF7F9fuFvHPfHdGjXZMvdyZjhLeK1wkfoqT6yvoy+utPJkt7/YDES6VLbyZzMRcMJxDHfx0one7H5rhjTkJ2UFFXpwgy3g/KMraZy9VptmAM/jNLhV/Z9CY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574706987; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=hWDAUaU6ltKS0+NdQZTH+qzOUhwkT6bDLTLxa9sQZmg=; b=XgYXgY0abShSTGoFxsIBTnkGcmpkEzNb/2F/jkim50uPMjD84DpslLMtlF1EgWZGvBvpD6tgd1FlNSNq+u4p4PQ4QDRpPcdUgxJh8qsGBDqx7FlFYMWTqSiZ2dvQ/5PZFhTsj9yLJGdMzbL2mUBvhi1Mj5szw+jFGh6xLG7cUXc= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1574706987664469.3927637059677; Mon, 25 Nov 2019 10:36:27 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iZJCt-0000Ec-A5; Mon, 25 Nov 2019 18:35:31 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iZJCr-0000EX-C7 for xen-devel@lists.xenproject.org; Mon, 25 Nov 2019 18:35:29 +0000 Received: from webmail.dornerworks.com (unknown [12.207.209.150]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 597e77bc-0fb2-11ea-a394-12813bfff9fa; Mon, 25 Nov 2019 18:35:27 +0000 (UTC) X-Inumbo-ID: 597e77bc-0fb2-11ea-a394-12813bfff9fa From: Jeff Kubascik To: Date: Mon, 25 Nov 2019 13:35:20 -0500 Message-ID: <20191125183520.126404-1-jeff.kubascik@dornerworks.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [172.27.13.171] X-ClientProxiedBy: Mcbain.dw.local (172.27.1.45) To Mcbain.dw.local (172.27.1.45) X-spam-status: No, score=-2.9 required=3.5 tests=ALL_TRUSTED, BAYES_00, MAILSHELL_SCORE_0_4 X-Spam-Flag: NO Subject: [Xen-devel] [PATCH] xen/arm: initialize vpl011 flag register X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stewart Hildebrand , Volodymyr Babchuk , Stefano Stabellini , Julien Grall Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The tx/rx fifo flags were not set when the vpl011 is initialized. This is a problem for certain guests that are operating in polled mode, as a guest will generally check the rx fifo empty flag to determine if there is data before doing a read. The result is a continuous spam of the message "vpl011: Unexpected IN ring buffer empty" before the first valid character is received. This initializes the flag status register to the default specified in the PL011 technical reference manual. Signed-off-by: Jeff Kubascik Acked-by: Julien Gral --- xen/arch/arm/vpl011.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/arm/vpl011.c b/xen/arch/arm/vpl011.c index 7bc5eeb207..31b7d56d7d 100644 --- a/xen/arch/arm/vpl011.c +++ b/xen/arch/arm/vpl011.c @@ -626,6 +626,8 @@ int domain_vpl011_init(struct domain *d, struct vpl011_= init_info *info) if ( vpl011->backend.dom.ring_buf ) return -EINVAL; =20 + vpl011->uartfr =3D TXFE | RXFE; + /* * info is NULL when the backend is in Xen. * info is !=3D NULL when the backend is in a domain. --=20 2.17.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel