Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45D95C5AC7C for ; Fri, 7 Aug 2026 11:53:54 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wsJ8X-0003cZ-5r; Fri, 07 Aug 2026 07:53:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wsJ8U-0003bS-U9 for qemu-devel@nongnu.org; Fri, 07 Aug 2026 07:53:14 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wsJ8T-0005zT-FQ for qemu-devel@nongnu.org; Fri, 07 Aug 2026 07:53:14 -0400 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-2cf27856f9cso41063995ad.2 for ; Fri, 07 Aug 2026 04:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786103591; x=1786708391; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=thkczxHTxiM1oI5KDbxA3/xmXENBCgHW8XGI2G/Cct0=; b=To4j3Z6YK6B8LWmI5BksI3IUtGa9KALjoNpjuFEqw9m6KikdKRynWutrfxP2a8LWmQ bkfrAK02VEJgAy6s0Zcc+ztCHvHDGCay2vC+/f0upL3BtKywVWm8tWeV5RCbhDUL4+LQ Y5EYG2SwGyJlwovuuyE/5CP5AZIbWKv3NWhHy9/kr8fCF3yRa5yDJT6V2Lndt/+rgcdx IoEczn5KtS0qPksIl67c3NubJGtGPtXbr2NH4h7UQsBwV+zlbajfjxKg9jA2KqI19+hQ 89wfDTERh/PgneD2kP7ZeKHf1kcYCpc527Jy7DZK6fGbWqIgnvJrYGSlN/XrvAspO3Zy Csow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786103591; x=1786708391; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=thkczxHTxiM1oI5KDbxA3/xmXENBCgHW8XGI2G/Cct0=; b=eCxnjhYWhpz5ui70BkkiZWzh5KMt7KSD+s2HVJ+h9uXiN0DI78UPOjMNibNIjFdTkd FlViz9L6Xo3DNjVvw+f5iZ2mtir7KDd6Iu//3i0sV9pavjDGQNhS/ixSsrPed8qr2jak rkPgBeB/oPqQqRXlWD2toQc0Q8o5x26Rb1k6eDcbPuj8iOhgbGgbhh3vZ+ZHcWskWIjh RwKhV0pTAMnNVc+64osdVErDjwXQ2MS2mK4SvI6iUjNJPJaFH42kyAwPk6R8D0z7/Fw8 y4MLXZMi6cKFYVkZs/G/i99gihvZjjUtO6eCTBA7m0bgBvibSEiCAoVIKuFx38LykPgJ wEiA== X-Forwarded-Encrypted: i=1; AHgh+RqrzWXykAKtEwtSePhBssG1+erYxvBVUGfIVy38viKzfQzuV2rDj203g+gGwrZHyofAoUNycBun4Pkt@nongnu.org X-Gm-Message-State: AOJu0YyRhqrREyEcZHzvgbooZGomIE4F2BhMBf3rSjuDEx5uIpPkVIgU 1oZTyElVHUsfauhrlqbve+W2kUFP2Wa/d/xpfMzIMssas38NKV5oHZBZ X-Gm-Gg: AR+sD11WA9DXD6//T9CWj8NpYfcya5G3E1Pz0nO3P9FaS0fSJhomZO4vHMEd+ZSjBpf 6t/xjkfibIuC8z3sZlTHwREn9/UT2BZ3DvXgvzYY6Linlc3YJxBG8dayDoFGZNQwhsvaK5JlGRa ihVUkaq6Esl+sUBJznt7fxZ2TqUhOzUQPEgua/jzh2CG0i2Do2m1PBK17PppZ/h56pQ285+qAx8 CmHlbdJGKYT0eXQoa+FIZmPg4IaaWIwxHgxpidyq+RZ9T8qIbFeaKMvlg8Dyyt31/CFG4DE3tou t+ng6bVV0LSUwIVMJ7Sdpb4tH9M0oU0oG9WahZEKJW8xGPhqy2iMNmxKOVZFyZJinmyl8L5N3Xo 4Bt1yzraBYmwhGY7EdXIeRYkmATVfvHcQYZVFcw3eYZx/5b4g/CWfyhXfyjr+OIsnna3msrvm2q VFb27+B+q6UJ9qFepfIxND753jTt1mmWIJQypy+jPv/jcCxMIJ5icxN3Z8wTEuzw== X-Received: by 2002:a17:902:e945:b0:2ca:d151:383a with SMTP id d9443c01a7336-2d0ca98f97dmr263985155ad.20.1786103591196; Fri, 07 Aug 2026 04:53:11 -0700 (PDT) Received: from [192.168.0.111] ([14.19.22.86]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2d15ecf309asm7903115ad.60.2026.08.07.04.53.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Aug 2026 04:53:10 -0700 (PDT) Message-ID: Date: Fri, 7 Aug 2026 19:53:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND v2 3/3] tests/qtest: add K230 UART test To: Daniel Henrique Barboza , qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= , Chao Liu , Palmer Dabbelt , Alistair Francis , Weiwei Li , Liu Zhiwei , qemu-riscv@nongnu.org, Fabiano Rosas , Laurent Vivier References: <20260725-feat-k230-uart-v2-v2-0-d5fe82c47c28@gmail.com> <20260725-feat-k230-uart-v2-v2-3-d5fe82c47c28@gmail.com> Content-Language: en-US From: WX Chen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=wxchen0913@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hi Daniel, Thanks for the review! On 8/6/26 04:10, Daniel Henrique Barboza wrote: > > Any reason to use g_usleep() instead of qtest_clock_step()?  There are > a couple > of g_usleep() uses in the code but you used lots of qtest_clock_step() > too. > > AFAIK g_usleep() is wall time and qtest_clock_step() is simulated > time, and > I guess you should be using qtest_clock_step() for all the pollings > you're > doing in this file. > You're right, there's no reason to mix them here. I'll fix this in v3. Regards, WX Chen