From patchwork Tue Oct 24 17:09:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 116974 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6035007qgn; Tue, 24 Oct 2017 10:06:56 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RUyzFuj3Yi0wEgubcRVUDW8ZSZdOSgUAwmjxVgF65F7VJWp0y23R1Ueq2yzXNBp95VekCB X-Received: by 10.36.198.196 with SMTP id j187mr13857687itg.149.1508864816568; Tue, 24 Oct 2017 10:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508864816; cv=none; d=google.com; s=arc-20160816; b=p1MLk1pmnjJIImTKCmRrYrrxsjx0lbk3ZIeY1kYbuaXpXxOaRxztDSW9gN3VR5gBu6 DUvunTXbaeiqXudYBhXa+sfAxAdvTnIGY6fvOrbh/nIJOvUSiqsxPe5uIbnII4NOThg4 p8M0bTR0SpDO2k6o5HY15kGBzhpNMQBPa1Qq6lT5dHXl1+zyj1pPX8isQ0MJjwooBQZm njHDcpKNgM+JNzVafXuBoy+2sOoktnYTFAWLHvvi4WPOMxspTb2gyb5OGa18ZnOiyWq+ U7DDd4Nu1W0c4+uG+4eiy3Qk0NEoLEZChU0mLajWZW18paxw/3877nOTmfkLag8wHV8P bQWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=v9onyI7/UfUub1xllBuaUyjqOFKOa43vxQlZwv7z97o=; b=PpWjkPI5kc75jJzV1wmRe9HmPzgTSgj6Uz4RzO9PbUuX18oPV1eS63+tTR/gpArvYK VZIBlTtahX9SQYRI1BCQkSXf/lJ9WFgoFC4Qq71XhZGASlimlmzWmIcUPuz+BP9ZPA0a p8yJxAO/GrUzsIwAttT4RPLJwUdQ7BvsOMMi0WpMjI8dLj+ZY+13dbpQx8s9s9AT429G GIhW+gqNehVw1MwJgPxHtKc5dTDNRRcVDVkvRx9ll6faEISJOHQPUs0WfjSysFFBKu/h zSdpEit4VjYY43duzMfhDOFIkI5jWLInwxE8lW08Bb3A+Qr7PLtEKpBF0Wx2D0i03OJC kWeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GiLx8Ypc; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id 84si494884ios.16.2017.10.24.10.06.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Oct 2017 10:06:56 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GiLx8Ypc; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e72dR-0001gz-4T; Tue, 24 Oct 2017 17:05:01 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e72dP-0001gn-La for xen-devel@lists.xenproject.org; Tue, 24 Oct 2017 17:04:59 +0000 Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id 33/DB-23912-AB27FE95; Tue, 24 Oct 2017 17:04:58 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRWlGSWpSXmKPExsVyMbThiO6uove RBjeXi1h83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBl7Dn9nKTjGVXHkThtjA+NRji5GLg4hgemM Ehd/9LKBOCwC7cwSk35eYAZxJATesUg8WfOGsYuRE8jJkjj6cRsThJ0m8eDWa2YIu1ri/4nvY LaQgIbEjckzGCHGNjFJvJ7ezQ6SYBMwkJjVNRlsqohAJ6PE4jd7wCYxCyhJ7D97DWyDsICdxK IHW8BsFgFViZaZC4FqODh4geIzHppCLJOXOPfgNvMERv4FjAyrGDWKU4vKUot0jSz0kooy0zN KchMzc3QNDUz1clOLixPTU3MSk4r1kvNzNzECg6iegYFxB2PfKr9DjJIcTEqivAHp7yOF+JLy UyozEosz4otKc1KLDzHKcHAoSfBWFQLlBItS01Mr0jJzgOEMk5bg4FES4ZUoAErzFhck5hZnp kOkTjHac1y4c+kPE8eBPbeAZMfNu0Dy2czXDcxCLHn5ealS4rw3QKYKgLRllObBDYXF3yVGWS lhXkYGBgYhnoLUotzMElT5V4ziHIxKwrzeIFN4MvNK4Ha/AjqLCegsWfs3IGeVJCKkpBoYp/j /ve9p69VlFFcZJbX8yKmQDZ7ZYhW+J2Q9PYLEf5n+nZyx4tZV1y2dIl75nv3y04MnLqz75VO5 8euJqudWTvatf9vCbvF+uhc5eSpvbP/NaTv/W0c1ha3JOD176Xq+1xE8L5P0Dz9cPbV3B996N 1nLBYqBX0yqb4XKaxkavZqw8fbTHQl+SizFGYmGWsxFxYkAmox1MLoCAAA= X-Env-Sender: andre.przywara@linaro.org X-Msg-Ref: server-2.tower-206.messagelabs.com!1508864698!87850818!1 X-Originating-IP: [209.85.128.196] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61982 invoked from network); 24 Oct 2017 17:04:58 -0000 Received: from mail-wr0-f196.google.com (HELO mail-wr0-f196.google.com) (209.85.128.196) by server-2.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 24 Oct 2017 17:04:58 -0000 Received: by mail-wr0-f196.google.com with SMTP id y9so9169061wrb.2 for ; Tue, 24 Oct 2017 10:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=4Sb0blhtoP88A16zb+SaWKIx48BT2WExN1YZaiUjooY=; b=GiLx8YpcLGad+iVd/kEgNSISvd1acwE4kJx65I4AlmZu0Pq0D6AGLA7hqrBgyYZksL wuBl/lttCArd4Kwdcw/7IpygE2piAxJrlmw/37nu2sGT2Q3ByGibJaPA13zJccWBRHl6 yzy3ZCTUoKkeXwkn2dHilLTzTDkRL/Hwul9zM= 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; bh=4Sb0blhtoP88A16zb+SaWKIx48BT2WExN1YZaiUjooY=; b=nh5xPGkitL3mwsLqruwUeNcv8SerFABVBjxh1z/AcJXQZR2kxUKb0+u+ynHb98ggoW cPv0Nq/IS7DYu3As05PqHV2ExDNHS1qTJZ+//LAbL19lYJxPt3A0vk/4Xo0Lnayj9/vM L80dWohxiRxxD56efS8DQRoj8GMcZSgq6BCZJHgKNddCwrIQYO0B00RZ2WT/UONjj6zn vD1q7dQblxkEafZEJTvYP/2AwLZu7SeLnI2VOrhWSIE8iP+OX9uYxIIfToqktXefwVOo zcJo4wlAZ/xzxAPXyeNumiWVExtdJoMH1uXAnAmC180ERnfEUbVxF8T0vHdWcII6okjj pZow== X-Gm-Message-State: AMCzsaW9WMc/b235bvoxKA5PYdJaPGvsckgRBmYS0VCQeUTZrP1/06VP vuW1j4q3gNFsf8e0stNCkaBO5g== X-Received: by 10.223.197.19 with SMTP id q19mr16488937wrf.272.1508864697994; Tue, 24 Oct 2017 10:04:57 -0700 (PDT) Received: from e104803-lin.lan (mail.andrep.de. [217.160.17.100]) by smtp.gmail.com with ESMTPSA id j27sm773304wrd.42.2017.10.24.10.04.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Oct 2017 10:04:57 -0700 (PDT) From: Andre Przywara To: Julien Grall , Stefano Stabellini , Bhupinder Thakur Date: Tue, 24 Oct 2017 18:09:20 +0100 Message-Id: <20171024170922.17207-1-andre.przywara@linaro.org> X-Mailer: git-send-email 2.14.1 Cc: xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH v3 0/2] [FIX-for-4.10] Fix SBSA UART emulation X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" Hi, the SBSA UART emulation as in the staging tree right now has two problems: - The pl011 earlycon output from a guest is very slow (think: WarGames). This is due to every character being synchronously handed over to Xen. This is not very critical (just slow), but it increases boot times of guests using an SBSA UART. - The normal SBSA console in a guest can lose characters when outputting a bigger number of characters in quick succession, as demonstrated by running a simple "find /" in a guest on a virtual SBSA console. As we actually miss characters, I consider this bug more severe. This series fixes both problems, more technial details on how can be found in the respective commit messages. I would like to see both patches merged into 4.10 still, as: - They fix real bugs. - They are not too intrusive, touching only the vpl011.c file with the emulation code in xen/arch/arm. - The SBSA UART is a new feature, so there is no possible regression compared to the previous release. Cheers, Andre. Bhupinder Thakur (2): arm/xen: vpl011: Fix the slow early console SBSA UART output arm/xen: vpl011: Fix SBSA UART interrupt assertion xen/arch/arm/vpl011.c | 136 +++++++++++++++++++++++++++++++------------ xen/include/asm-arm/vpl011.h | 2 + 2 files changed, 102 insertions(+), 36 deletions(-)