From patchwork Tue Jun 15 15:23:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1492293 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4BtM4JlDz9sWF; Wed, 16 Jun 2021 01:23:54 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ltAup-0001Sv-0N; Tue, 15 Jun 2021 15:23:47 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ltAun-0001Si-Hz for kernel-team@lists.ubuntu.com; Tue, 15 Jun 2021 15:23:45 +0000 Received: from mail-ej1-f71.google.com ([209.85.218.71]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1ltAun-0000kd-9b for kernel-team@lists.ubuntu.com; Tue, 15 Jun 2021 15:23:45 +0000 Received: by mail-ej1-f71.google.com with SMTP id br12-20020a170906d14cb02904311c0f32adso4712163ejb.9 for ; Tue, 15 Jun 2021 08:23:45 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=dnYBvHiPFMPJicZMDXqIAxDQP7KUycQHBot2zLGSRpg=; b=CIAx4j9i486xKE8lH5StaICkavmw5xkHwLepdFbb6Hn3iGfoMoJ7Vo89GEGEtwHxte aUolohfPI5V3yHkvXDU/JLD3UH+yNQhr7kxnDwiBsWmo8gKQCgKD9M1SqquA4/RntpLb 5Mva/ZER3/iOJNzouPdHBqSUYLg/uaFI96QQSmPML81+dTV8RnmEXj/HQ7ZtzHtgO/mc m9MlzKXzmEaJ86932mTO7JNdIqYf76v/d29fn0Y8yTyTS3DyG0OwDNiGdoPapUrYdsHW Bncb+CbMcHe8jA/3jNU71+F0I6SaWC5yv9bbZOkWw4YkI88b7QOlD9NUSBjJgF8FrHSJ LoVw== X-Gm-Message-State: AOAM531Flhhm6M1MU15ELIUCJVFr+nzV6bRJ9Dir65Pw2LVk+L8WqMCi Ikxj4Xz8IQ1ZPkkByK7t3JuyFwvVBcrqIPGxp7w2CW7MfritAqK0gE5Vww/SsDG/XsappW6vHrx KeYQEH7N0zteeRRfL8s5dcUB0YhnzA6qijmGNogDDww== X-Received: by 2002:a17:906:6ad3:: with SMTP id q19mr54961ejs.11.1623770624634; Tue, 15 Jun 2021 08:23:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzha7SuhwQdX9jrpDWw2LjlCi7Gprn7PI4ml0tViIjPgqLN5UX88D+SoROMFampTYv9yhs6Uw== X-Received: by 2002:a17:906:6ad3:: with SMTP id q19mr54950ejs.11.1623770624502; Tue, 15 Jun 2021 08:23:44 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-177-222.adslplus.ch. [188.155.177.222]) by smtp.gmail.com with ESMTPSA id q9sm11709924edw.51.2021.06.15.08.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 08:23:43 -0700 (PDT) From: Krzysztof Kozlowski To: kernel-team@lists.ubuntu.com Subject: [ACT][PATCH 1/2] UBUNTU: SAUCE: ubuntu_kernel_selftests: properly disable memory-hotplug Date: Tue, 15 Jun 2021 17:23:38 +0200 Message-Id: <20210615152339.41252-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" For arm64 the mem-on-off-test.sh from memory-hotplug was disabled by removing the executable bit. However this started failing recently: # selftests: memory-hotplug: mem-on-off-test.sh # Warning: file mem-on-off-test.sh is not executable, correct this. not ok 1 selftests: memory-hotplug: mem-on-off-test.sh Disable the test just like in other cases - by removing it from Makefile. BugLink: https://bugs.launchpad.net/bugs/1891003 Signed-off-by: Krzysztof Kozlowski Acked-by: Po-Hsu Lin --- ubuntu_kernel_selftests/ubuntu_kernel_selftests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py index 0f4c46d24573..6f889fbb639f 100644 --- a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py +++ b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py @@ -191,8 +191,9 @@ class ubuntu_kernel_selftests(test.test): if self.arch.startswith('arm') or self.arch == 'aarch64': print("Disabling memory hotplug test on ARM platform") fn = 'linux/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh' + mk = 'linux/tools/testing/selftests/memory-hotplug/Makefile' if os.path.exists(fn): - cmd = 'chmod -x ' + fn + cmd = 'sed -i "s/ mem-on-off-test.sh//" ' + mk utils.system(cmd) # net/txtimestamp.sh is very fragile, disable it From patchwork Tue Jun 15 15:23:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1492292 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4BtM4Cp7z9sWD; Wed, 16 Jun 2021 01:23:54 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ltAuq-0001T9-6Z; Tue, 15 Jun 2021 15:23:48 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ltAun-0001So-Tl for kernel-team@lists.ubuntu.com; Tue, 15 Jun 2021 15:23:45 +0000 Received: from mail-ej1-f70.google.com ([209.85.218.70]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1ltAun-0000kp-Lk for kernel-team@lists.ubuntu.com; Tue, 15 Jun 2021 15:23:45 +0000 Received: by mail-ej1-f70.google.com with SMTP id u4-20020a1709061244b02904648b302151so2314799eja.17 for ; Tue, 15 Jun 2021 08:23:45 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0hDXcD22eOSxc+ccNvgYndae85ZlUxW/e/OC9tcKzBA=; b=e58b6bVTTxGadbiLa22zb/q/HswfZDz1m/J6eSBrfXj+8YuhFSrHWySidpQuaLGprM qLzPCRTfQGrCLS28GQ5OD5zVRSIa/75S11h9i8mqiBdLmOfvXqYDASRabxlOfHFkOlsh IeJMXaOXaHDQzvwtlE2iERDd4dz0pWjyJAQsDz1QPIr/uj8LmcOSujrlegANHyRGPi8N aKLTU5jVuqgjMQ9Yo3kRX5g/t1gOKCuRT7nfpmWP9o0sf3mKmNB4uVdIZzVtVE+wF13Q PMtvcWw9yOkviInGeS+rWua/eki28og+rYnN+xrJ4K/EHRXCGNcJjdN87tdRRbtdP87x 7ECg== X-Gm-Message-State: AOAM533uRgZE4O0yqcX64qA9lKFBMShV7jQP1dAfrIh/lIqWU3jpf+/i OErLnEZKo6j0DI0/mvdX2R/nhCXkTzoMHKzcjpYGqPEPWUQGQWZ3pr+9aHhE48ufNBsa81MlQ6P jhSVia7+Q3F1mUFLqr/A7M+4WyMbS+bB10FJp6qHGQg== X-Received: by 2002:a17:906:fcb4:: with SMTP id qw20mr72151ejb.344.1623770625161; Tue, 15 Jun 2021 08:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnP3KfDM51KbiMnG6QyVqC3IvB8w11gQRF0WoSsC1gJrhJEcReYa2P6xRAEURIQDylpJFD1g== X-Received: by 2002:a17:906:fcb4:: with SMTP id qw20mr72133ejb.344.1623770624984; Tue, 15 Jun 2021 08:23:44 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-177-222.adslplus.ch. [188.155.177.222]) by smtp.gmail.com with ESMTPSA id q9sm11709924edw.51.2021.06.15.08.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 08:23:44 -0700 (PDT) From: Krzysztof Kozlowski To: kernel-team@lists.ubuntu.com Subject: [ACT][PATCH 2/2] UBUNTU: SAUCE: ubuntu_kernel_selftests: disable memory-hotplug on Azure and AWS Date: Tue, 15 Jun 2021 17:23:39 +0200 Message-Id: <20210615152339.41252-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210615152339.41252-1-krzysztof.kozlowski@canonical.com> References: <20210615152339.41252-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Azure and AWS cloud instances since to have unmovable pages spread all around this there are several memory-hotplug/mem-on-off-test.sh failures each cycle: online->offline memory0 ./mem-on-off-test.sh: line 78: echo: write error: Invalid argument offline_memory_expect_success 0: unexpected fail online->offline memory1 ./mem-on-off-test.sh: line 78: echo: write error: Device or resource busy offline_memory_expect_success 1: unexpected fail In dmesg: flags: 0xfffffc0010200(slab|head) raw: 000fffffc0010200 dead000000000100 dead000000000122 ffff99956151ec40 raw: 0000000000000000 00000000001d001d 00000001ffffffff 0000000000000000 page dumped because: unmovable page This fails on multiple instances so disable the test on Azure and AWS clouds. BugLink: https://bugs.launchpad.net/bugs/1897764 Signed-off-by: Krzysztof Kozlowski Acked-by: Po-Hsu Lin --- ubuntu_kernel_selftests/ubuntu_kernel_selftests.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py index 6f889fbb639f..d05700ca0e9d 100644 --- a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py +++ b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py @@ -182,14 +182,16 @@ class ubuntu_kernel_selftests(test.test): utils.system(cmd) # - # memory hotplug test will fail on arm platforms from 5.6+ + # memory hotplug test will fail on arm and several cloud platforms from 5.6+ # as it was enabled in 5.6 but needs memory that does not # have boot time pages in the regions to be offlined and - # current test hardware cannot guarantee that constraint - # so disable it for arm platforms for now + # current test hardware cannot guarantee that constraint. + # Except ARM, also all cloud platforms on amd64 seems to have unmovable + # pages which makes memory hotplug failing. # - if self.arch.startswith('arm') or self.arch == 'aarch64': - print("Disabling memory hotplug test on ARM platform") + if self.arch.startswith('arm') or self.arch == 'aarch64' or \ + self.flavour in ['aws', 'azure', 'azure-fips']: + print("Disabling memory hotplug test") fn = 'linux/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh' mk = 'linux/tools/testing/selftests/memory-hotplug/Makefile' if os.path.exists(fn):