From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2235A1459F7 for ; Fri, 13 Sep 2024 03:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726197743; cv=none; b=gJDZnqO2HnJsS2+x3pScgJc77Cj0KhleT7BF0cCk0xIIufTd5wsLNRjDhU2WGDHklic13MKOIBk93MflfiDgkEqgRcpZnl3ZFbyDLtU69T1ibjBtkcyICvmnnbx7vBqPqZCUG5OYdVwKm/FqlL1pzvfsz2N94UI8LIAC3Flyoa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726197743; c=relaxed/simple; bh=LBKUmZMOk3aPHxmkpJxtDXiScihcj9+OrSYx9MxN8fs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hWumgyN9/RGDfuTQ1dAxNR121cYTHFGES+hNz/FSFZ/SJJZQw4u+p0vQRHRsVgM02S+k96UKhbGGHhMjZgtMk7zJUSN9h0t4A+YZxVVkaikmJ33hNB2/5d8N9lbWtfWUxj7ot3L51IcnF1VQ9L917HwMzf0M2IoUlJFdcsE2FqM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=MnKw2qen; arc=none smtp.client-ip=209.85.210.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="MnKw2qen" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-718d704704aso1461157b3a.3 for ; Thu, 12 Sep 2024 20:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1726197740; x=1726802540; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gkPkVDRD0OwFEuQUvV+n2s6XJ6GgG4bakHl8tALnG+0=; b=MnKw2qenx7rLfuhv1JSp9EMfyq0ahoj0HOTv6LBoTFKDlc9rsWqM5K6px/1av/b8Av sD6HzsxJPyet0qCqPkhchnL8QGTVfxc8ybeubQ+vgIw77qi4aiYUHQ3osC3OCdTArgUi yWVjboDucLrjkopVg/MjDTOWdeTYIRMGywAzhm9ZzMzONJtYj/2ifpnczT3ej1N/jPnB aTyCgp+oJ/wSPiNKhbABpkih+6zZp93dtQp30ehz19skgW4/Hb68iBfuenToyWkCNb4k qa3NrAmB8u8E/5Kfb5TJLORlMsHAcXE/LfAYJzWCO3czhNxJwSKifCyb9B3HDwru64G9 fHAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726197740; x=1726802540; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gkPkVDRD0OwFEuQUvV+n2s6XJ6GgG4bakHl8tALnG+0=; b=hS3cNEMa3eGghlohIAg0ez6SeOqbB2DE9jL03VfbZpgT5ZqIIrXFS4MmJqo6OEEZhp G50hxGOs7oU+hcB5tMeN03iCZ/RpU8U3aDxbE2tGRmSTMkUn8bCDZGH9qZOhk51uNA0o rgsCtB7PBd5gdHLGMWsVS5m4ahV9JYmbY0cIZ4KPYKcQ4h7Xdsd7YEK6tCj6+UF3j8q2 T8cV4Tsb4MtZyE7yG8oRgUr9u+JvCD8us1VIsjYAOMGHWS3vCiH6QR3f72/4u5U3y6tr oVOqA5QE+Bg8svDXQVVFgP/yGTaZLaFLK8a8kNHzJwUS4lIuk8b1NCCAaJcogY7f9PDJ wDDQ== X-Forwarded-Encrypted: i=1; AJvYcCVhz5jkdx+1nez8Lr8Lyi0ylC7oUuFENItLhie86AzTnQ87z5cfvnl18hUHChEyH8JtRuV8ssWikvC4itk=@vger.kernel.org X-Gm-Message-State: AOJu0YwghABasaFAYBmylPGZ4QQK3TiFmDWMxclpc6uSjj4rh4VpBpJy d8UTUosepIwLJgOj4SEUTN/SYKZlWqB4UFUAKIg+JRkpNhXYmthIzqh7YTQssDc= X-Google-Smtp-Source: AGHT+IEXdu7/jKSiLZPseTbEtvh8wm3jfCToFcsHiweT3cn9stVw7aGwEh7jPsLs5sXKDmpHC50qCg== X-Received: by 2002:a05:6a21:9d91:b0:1c6:fbf3:a0ef with SMTP id adf61e73a8af0-1cf764c11e3mr7345712637.44.1726197740389; Thu, 12 Sep 2024 20:22:20 -0700 (PDT) Received: from ghost ([2600:1010:b329:66c7:b074:429:f745:d035]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-719090b273asm5263978b3a.166.2024.09.12.20.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 20:22:19 -0700 (PDT) Date: Thu, 12 Sep 2024 20:22:15 -0700 From: Charlie Jenkins To: Chunyan Zhang Cc: Andrew Morton , Shuah Khan , Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang Subject: Re: [PATCH 2/2] selftests/mm: skip virtual_address_range tests on riscv Message-ID: References: <20240913022635.751505-1-zhangchunyan@iscas.ac.cn> <20240913022635.751505-2-zhangchunyan@iscas.ac.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240913022635.751505-2-zhangchunyan@iscas.ac.cn> On Fri, Sep 13, 2024 at 10:26:35AM +0800, Chunyan Zhang wrote: > RISC-V doesn't currently have the behavior of restricting the virtual > address space which virtual_address_range tests check, this will > cause the tests fail. So lets disable the whole test suite for riscv64 > for now, not build it and run_vmtests.sh will skip it if it is not present. > > Signed-off-by: Chunyan Zhang Which tree does this apply onto? It is failing to apply on -rc7. Also, since this is the second version of this patch it is good practice to put v2 in the subject like [PATCH v2 2/2]. Anyways, the content of this patch looks good! Reviewed-by: Charlie Jenkins > --- > tools/testing/selftests/mm/Makefile | 2 ++ > tools/testing/selftests/mm/run_vmtests.sh | 10 ++++++---- > 2 files changed, 8 insertions(+), 4 deletions(-) > > diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile > index 84573ddfcfa2..912778347213 100644 > --- a/tools/testing/selftests/mm/Makefile > +++ b/tools/testing/selftests/mm/Makefile > @@ -112,7 +112,9 @@ endif > > ifneq (,$(filter $(ARCH),arm64 ia64 mips64 parisc64 powerpc riscv64 s390x sparc64 x86_64)) > TEST_GEN_FILES += va_high_addr_switch > +ifneq ($(ARCH),riscv64) > TEST_GEN_FILES += virtual_address_range > +endif > TEST_GEN_FILES += write_to_hugetlbfs > endif > > diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh > index 03ac4f2e1cce..7caa624a2e5a 100755 > --- a/tools/testing/selftests/mm/run_vmtests.sh > +++ b/tools/testing/selftests/mm/run_vmtests.sh > @@ -347,10 +347,12 @@ if [ $VADDR64 -ne 0 ]; then > # allows high virtual address allocation requests independent > # of platform's physical memory. > > - prev_policy=$(cat /proc/sys/vm/overcommit_memory) > - echo 1 > /proc/sys/vm/overcommit_memory > - CATEGORY="hugevm" run_test ./virtual_address_range > - echo $prev_policy > /proc/sys/vm/overcommit_memory > + if [ -x ./virtual_address_range ]; then > + prev_policy=$(cat /proc/sys/vm/overcommit_memory) > + echo 1 > /proc/sys/vm/overcommit_memory > + CATEGORY="hugevm" run_test ./virtual_address_range > + echo $prev_policy > /proc/sys/vm/overcommit_memory > + fi > > # va high address boundary switch test > ARCH_ARM64="arm64" > -- > 2.34.1 >