From patchwork Mon Jul 10 17:50:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 701041 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp5304616wrs; Mon, 10 Jul 2023 10:51:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGeh87u177pqEvViKr1QDAe5zwekhTRRHO5MCqiUl0J+6skkDfL8ZDQQr2V9VYLIXvBnOV X-Received: by 2002:a05:6214:c8c:b0:635:ee77:8d69 with SMTP id r12-20020a0562140c8c00b00635ee778d69mr20699058qvr.22.1689011509355; Mon, 10 Jul 2023 10:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689011509; cv=none; d=google.com; s=arc-20160816; b=OWHwA04IKS8l/Hak+H3cdK5RrtAQtNDlim3W2NjSygllzIQd6A05OT9X1Lok1P4dht mxfYU8R4PI3mE9IRp736DkKUxJReUK23CBIh4LS3B03Qh4rCX91yA+Xit7Fx7s55lp4B 0wUc5Fpv1DFfG14IJZBFeM9X3HKzeBNjYZJ8cuwqthUxjecY1blaLqDtaKIfhGYEKFWv WTaU0GlzUK9M8NWRRH0O+3QIksPCZeXG7nKK17CB2/BY0J8oJGMG+iKsPyjt8j4QYMGV 3eYdAaYadigTdaLuA2AkwXp5atqXvZ+0YKSbjm2ONXKdSz9YvHVC1o/zJ3VunGBecvqF Ow4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=bjBDCpoiteMk+vtT+Bu6RMs4u3VYv7NZmre5rEgpQbA=; fh=4TWVGTMFk+XB48cTX7H3L2FEUZf3X6lSQ5h15kr1III=; b=01TbKkPoUC3w/tSNGggSVMxMq9idFfQ90AKdsHZqvALDjIid9JBN+Xf5l6uE4lrblr t8KWdG6R3NYn4OMDapsYvMG/4flE+6zhuCjs4Ls6rG9iB+vdMJ6IM3AkfaHrEA/ZjhCy LIQkay8IJttUp5Y846J9DGnptGwFbhZIosCHxbZkiwok8iNflgeikWWpkrsbIa8cj72x V2dWXSsPzfYlrYrv86MqQVnk2HhMigi8EOHYgBJh3SzVbRt9zaInJ9HelVnTXgeS1tD0 SWsnyv80H0n4yPuL3y0Pxw2a+7OZMwwqdt3vYh0i98UifC4Nu6yfPI1umOgbYojmkk1y BjSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ViobvUEX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u19-20020a05620a0c5300b00766a49563dcsi83336qki.104.2023.07.10.10.51.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jul 2023 10:51:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ViobvUEX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIv2r-0000zs-Lb; Mon, 10 Jul 2023 13:51:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIv2f-0000yB-Us for qemu-devel@nongnu.org; Mon, 10 Jul 2023 13:51:26 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIv2U-000061-H7 for qemu-devel@nongnu.org; Mon, 10 Jul 2023 13:51:21 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fbab0d0b88so44809875e9.0 for ; Mon, 10 Jul 2023 10:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689011466; x=1691603466; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bjBDCpoiteMk+vtT+Bu6RMs4u3VYv7NZmre5rEgpQbA=; b=ViobvUEX6bOMS1RO+aPZwqMQkpL/2e7jipZSa7zLtDkAzVH3ZGU6wC+MGFoa+bfRxJ 5W2GqW2uUeUI7Ak6PeYrtThqXwEYWuW0DCoZDCUp/vxLaAVRUsv0oxgfFhKN5iBfP3HV q9gDxBtxz6QBw2d1lPZUuNyRT7NijR1WB778FBhEn4n+KGLjr37KC/FvyBuAOKwiIaM5 yqC7TWtnnvJYRA+dwd3/hhy7XOEpTFkWP6FCi3WkYJNaYt2QoEO7V9pQolUtX3ll6e29 KRbtWhuv4/Zelz2mpwqJVfF5skYVjFaNKHMp0GwkcVI5IaGBve5mf5VZ3Y4CaCBNI8mS wy0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689011466; x=1691603466; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bjBDCpoiteMk+vtT+Bu6RMs4u3VYv7NZmre5rEgpQbA=; b=Vz9nbRDnQ7e+QVMak7q5yjc6CApZY+oak7+nq8ZbTni89MY5EVGRK8yE4tTSSO0iLo YUdryHVZ4lVZ676w+Ebcb0GWGmfAsuehFjHQtNm6kRaHrx1IVy9gFWvxlEb3wpsUTWXj Xy2onaZx+Sb2proO/+QQvjarQ9JGDvCQ+2p0IqeYHofHaWfLi505d6bSPHnc84Vsl6td /CMffExM/lIcZ+N6N17H5O6mSVYi3Xgs/TdRVFQnJS0K17vPns27aZ58Il77C0+VfBLX 4esM9b1nNBebgrIaLcxvd/tpNkRYx/+onREODYBzE0FHPGlLkR661nKjapBEWfiFv3t3 yaqw== X-Gm-Message-State: ABy/qLZcIrZVuGNPHYjWA03XKN4vMAUUTv+Zd9YAiuagA8zYgh/U5G1n 95+vtrI0ldPSeBznaqqP2tztJkKpiWM+0QvlLP1oDw== X-Received: by 2002:a7b:c3c1:0:b0:3f7:a20a:561d with SMTP id t1-20020a7bc3c1000000b003f7a20a561dmr12728469wmj.8.1689011466022; Mon, 10 Jul 2023 10:51:06 -0700 (PDT) Received: from m1x-phil.lan (mst45-h01-176-184-47-225.dsl.sta.abo.bbox.fr. [176.184.47.225]) by smtp.gmail.com with ESMTPSA id n2-20020a05600c294200b003fc17e8a1efsm723789wmd.45.2023.07.10.10.51.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Jul 2023 10:51:05 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Peter Maydell , Evgeny Iakovlev , =?utf-8?q?Alex_Benn=C3=A9e?= , Gavin Shan , Paolo Bonzini , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 00/11] hw/char/pl011: Implement TX (async) FIFO to avoid blocking the main loop Date: Mon, 10 Jul 2023 19:50:51 +0200 Message-Id: <20230710175102.32429-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Hi, This series add support for (async) FIFO on the transmit path of the PL011 UART. Since v1: - Restrict pl011_ops[] impl access_size, - Do not check transmitter is enabled (Peter), - Addressed Alex's review comments, - Simplified migration trying to care about backward compat, but still unsure... Philippe Mathieu-Daudé (11): hw/char/pl011: Restrict MemoryRegionOps implementation access sizes hw/char/pl011: Display register name in trace events hw/char/pl011: Remove duplicated PL011_INT_[RT]X definitions hw/char/pl011: Replace magic values by register field definitions hw/char/pl011: Split RX/TX path of pl011_reset_fifo() hw/char/pl011: Extract pl011_write_txdata() from pl011_write() hw/char/pl011: Extract pl011_read_rxdata() from pl011_read() hw/char/pl011: Warn when using disabled transmitter hw/char/pl011: Check if receiver is enabled hw/char/pl011: Rename RX FIFO methods hw/char/pl011: Implement TX FIFO include/hw/char/pl011.h | 2 + hw/char/pl011.c | 255 ++++++++++++++++++++++++++++++++-------- hw/char/trace-events | 12 +- 3 files changed, 215 insertions(+), 54 deletions(-)