From nobody Thu Apr 3 16:33:01 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1569521250; cv=none; d=zoho.com; s=zohoarc; b=kj8IKEn8r+uQgG1ZiMo5vGm11UeAJDFfBJDKzlHLqIKza5ZUnrSifC8qRWpqv+juVQP1BU1P0OjxwaUdfktNR29Oj7lthAruHOGuNW0B9/5zXZeyfu3mmI9QqshF2EoKuQ/hTTeRc3w2PvTk1OvAxleSK3TCBqKHW8LO8kz8QIs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569521250; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=izDpyq59rblh6afPzQ7olE7lYmJirhrXObmCCQIkPKI=; b=luhD2e5Ww3aO/t6N/gSL5xVptNeJ0hZWplUv3WSNbL69JJZg7YwyWaT5bsoOfhByuXmVBjexMEpF77r7mkFntdxZjyQM1Yf62oqz0DnNJERYg5Xj/DsilT0Wk8pismPY2buGKLabfhITLHxcZLQYMMhnE6xG5f5ecd72zKO1wDg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: <qemu-devel-bounces+importer=patchew.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1569521250147771.354711005202; Thu, 26 Sep 2019 11:07:30 -0700 (PDT) Received: from localhost ([::1]:42022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+importer=patchew.org@nongnu.org>) id 1iDYAo-0007Fa-1D for importer@patchew.org; Thu, 26 Sep 2019 14:07:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59165) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1iDXgZ-0004r1-3l for qemu-devel@nongnu.org; Thu, 26 Sep 2019 13:36:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1iDXgX-00039Y-Nq for qemu-devel@nongnu.org; Thu, 26 Sep 2019 13:36:10 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38909) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1iDXgX-000391-Fg; Thu, 26 Sep 2019 13:36:09 -0400 Received: by mail-wr1-f67.google.com with SMTP id w12so3031473wro.5; Thu, 26 Sep 2019 10:36:09 -0700 (PDT) Received: from x1w.redhat.com (240.red-88-21-68.staticip.rima-tde.net. [88.21.68.240]) by smtp.gmail.com with ESMTPSA id b186sm9918980wmd.16.2019.09.26.10.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2019 10:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=izDpyq59rblh6afPzQ7olE7lYmJirhrXObmCCQIkPKI=; b=n5FXHbVkOx7bQwPOi/0BCGY9XMInZ0xX7NJNdLVdyDZTzD2UmLS1pcYzWHlG5+f13I sqb9ZdCBomy1Q1z8c4vuniwkKM+KTr19w6ZiaZtppKLxbdhRx71Yr57DnZS4reS5syxt 7a64NKssGnWi5mRFi4ZqmGnLx5CRkHBf+WrO0kkbz1OmWZr5dHVywmIC2pteDyZrnfen nguR6XphsrLsUU5nfF4tIBG141cESkcWpVTLA4KPozd+RWPIM/sbdnnuA05KWb9ziAOW gHv0/sOo9D1akNDowj4TdeKU8DFbk/z3M/Q/xFQOjLTAuF+MVIpFQmihguxkSdy0Ob6j xSTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=izDpyq59rblh6afPzQ7olE7lYmJirhrXObmCCQIkPKI=; b=UE0FdeqoPG4AgfE5GPFtsRfRYjBDdB64EvGX6MUgYLh1tXAzg/7i7DAuwB31EqusfY bxJ4HoEhEvQQ9RaC/7ZpIoxDh1lfKEnsPQ/AS01ANHAKURbq5xc0RNN0zptsEWohdet7 n7S+MXQty0p1Wtr1M3Gv8fh21XrdRe21uEFSs/xRlu/HS+yvDgMadGGz2U2bfcIPIama ESgJ7YIsl+fkjTBjJZN0xn8HCg9/fjVFYwpHX7F85VDG7ZRyp1OO80AKi8dvfBbXUA9I /CQo6g0rOfO29Qsms1g8x2M4fdudHf5M7eKR96mUsl4U+eRb4TzR1fN3em6Wtd1n5mfo hjOw== X-Gm-Message-State: APjAAAUbetIXcXv1dNwVrnL09j/SGyHhDOS2DQ6Q0zXDwU9qU8bLMXJG bzMMf36u1fiRrxcZRun641KGiwccE4U= X-Google-Smtp-Source: APXvYqxFLjHuLuQjIqejqyCRvTixIuUpLMqjiCHSl8awLjPnLvYm6KiZHtzGjR1esXJmBAYw1wFEcA== X-Received: by 2002:adf:f081:: with SMTP id n1mr4240702wro.273.1569519308279; Thu, 26 Sep 2019 10:35:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= <f4bug@amsat.org> To: qemu-devel@nongnu.org Subject: [PATCH 17/19] tests/boot_linux_console: Test the raspi2 UART1 (16550 based) Date: Thu, 26 Sep 2019 19:34:25 +0200 Message-Id: <20190926173428.10713-18-f4bug@amsat.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190926173428.10713-1-f4bug@amsat.org> References: <20190926173428.10713-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.221.67 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Peter Maydell <peter.maydell@linaro.org>, =?UTF-8?q?Zolt=C3=A1n=20Baldaszti?= <bztemail@gmail.com>, Laurent Bonnans <laurent.bonnans@here.com>, Esteban Bosse <estebanbosse@gmail.com>, Alistair Francis <alistair@alistair23.me>, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= <f4bug@amsat.org>, Andrew Baumann <Andrew.Baumann@microsoft.com>, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>, qemu-arm@nongnu.org, Clement Deschamps <clement.deschamps@antfield.fr>, Cleber Rosa <crosa@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Cheng Xiang <ext-cheng.xiang@here.com>, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= <philmd@redhat.com>, Pekka Enberg <penberg@iki.fi>, Guenter Roeck <linux@roeck-us.net>, Eduardo Habkost <ehabkost@redhat.com> Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+importer=patchew.org@nongnu.org> X-ZohoMail-DKIM: fail (Header signature does not verify) The current do_test_arm_raspi2() case tests the PL011 UART0. Our model also supports the AUX UART (16550 based). We can very simply test the UART1 with Linux, modifying the kernel command line. Add few lines to expand our previous test and cover the AUX UART. Signed-off-by: Philippe Mathieu-Daud=C3=A9 <f4bug@amsat.org> Reviewed-by: Alex Benn=C3=A9e <alex.bennee@linaro.org> Reviewed-by: Cleber Rosa <crosa@redhat.com> Tested-by: Cleber Rosa <crosa@redhat.com> --- tests/acceptance/boot_linux_console.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index 7eaf6cb60e..33e8f6c635 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -326,6 +326,7 @@ class BootLinuxConsole(Test): """ serial_kernel_cmdline =3D { 0: 'earlycon=3Dpl011,0x3f201000 console=3DttyAMA0', + 1: 'earlycon=3Duart8250,mmio32,0x3f215040 console=3DttyS1,1152= 00' } deb_url =3D ('http://archive.raspberrypi.org/debian/' 'pool/main/r/raspberrypi-firmware/' @@ -336,7 +337,7 @@ class BootLinuxConsole(Test): dtb_path =3D self.extract_from_deb(deb_path, '/boot/bcm2709-rpi-2-= b.dtb') =20 self.vm.set_machine('raspi2') - self.vm.set_console() + self.vm.set_console(console_id=3Duart_id) kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + serial_kernel_cmdline[uart_id]) self.vm.add_args('-kernel', kernel_path, @@ -354,6 +355,14 @@ class BootLinuxConsole(Test): """ self.do_test_arm_raspi2(0) =20 + def test_arm_raspi2_uart1(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:raspi2 + :avocado: tags=3Ddevice:bcm2835_aux + """ + self.do_test_arm_raspi2(1) + def test_s390x_s390_ccw_virtio(self): """ :avocado: tags=3Darch:s390x --=20 2.20.1