From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 269A84560F; Fri, 12 Jul 2024 11:03:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01828402B3; Fri, 12 Jul 2024 11:03:43 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id A021F402AE for ; Fri, 12 Jul 2024 11:03:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720775020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3FDEfMMeKK1ZbOkPbfWtC7Jrc0GIOj/+GwhobA6PrQk=; b=Ry/1tpCddFhhnFceDgS1ZHH10pQgPqaOObZ2vQU/I+/KXXhFYKwJG0RRFW83w3+i6Fpn1A vVZ6F4M1Hwdukmnl6WRGS2L7cuRLVUjenLB+IcrkNmgIqxO+kGX5CTRD+jmBUCwU0rnXX6 5Zb/pjB7dUg2m2cy8a4rZE9+97zZ0jo= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-296-Llkp7hFmOuaXVVpzfLDbfg-1; Fri, 12 Jul 2024 05:03:38 -0400 X-MC-Unique: Llkp7hFmOuaXVVpzfLDbfg-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2eea217cb21so12837241fa.1 for ; Fri, 12 Jul 2024 02:03:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720775017; x=1721379817; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3FDEfMMeKK1ZbOkPbfWtC7Jrc0GIOj/+GwhobA6PrQk=; b=homHrWixJlWNIRR0m1tOXqyZfmT2EhxLXRZdccS293y814zuDI+tV8IzyI5IgNyOHk pYE/IHy7SPMy3OendnZFTe+q3rrMbxUm6JVSYi+B9Gks+JchL2I8l1MfeFIB7HQManF7 HvpVBxS2OVejodqNUMjUxqDgt7xcLrWOmcSoFnzlbaSq2HWVFxE3N2kS4qN88914nJYI fMidSrxastSt+glxEQLqbVAQGKx74SQ+3N3xQbIQdpEebDK9BEpc3XUxHW4YWyDtM4yO P7Taij7bOTjn2+6H2uLo38eF2kRF0YNSdAaWxzPkoO3MfhZcKAY/+JKL3x6LjUymBtEA osdQ== X-Forwarded-Encrypted: i=1; AJvYcCVmLFnnGUE1FDyv0qLHidHf9THemZzokxLs9I6SkmDn9R7z2LrfJaKSLWwQHG53LRbzYk6ogvJ5QYc+kZ4= X-Gm-Message-State: AOJu0YwqX30czQhuHTWdBspZgJw4HkGifjMtK3ghRLW8aDgqHhJI8dGh OYpIuUWl/AIzU1KBRsntWOegmlw8WnUcxu1a6eF89Ud4tJCNiL8xuFvFz/4R45BYMd+i2cjPGGN 10sfcuBqINq6j1L8ZzZAyM7fspdaaNXCBFwv+D10zOFKS3NDrKR0EvuCoVAQUMERvKt8qpbYYXQ 0J5n5+w+aa81ac5dU= X-Received: by 2002:a2e:7205:0:b0:2ee:d55c:2832 with SMTP id 38308e7fff4ca-2eed57d8d6fmr3253141fa.27.1720775017014; Fri, 12 Jul 2024 02:03:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8bAnxy5nemmBkBM20zsSLKpbbRloQgoObHDSzVyT6LUgY/3GTG6SCenKIUos4VlMwReLv/gbA/3tVWissKe8= X-Received: by 2002:a2e:7205:0:b0:2ee:d55c:2832 with SMTP id 38308e7fff4ca-2eed57d8d6fmr3253011fa.27.1720775016657; Fri, 12 Jul 2024 02:03:36 -0700 (PDT) MIME-Version: 1.0 References: <20240710232122.3581128-1-drc@linux.ibm.com> <20240710233817.3638231-1-drc@linux.ibm.com> In-Reply-To: <20240710233817.3638231-1-drc@linux.ibm.com> From: David Marchand Date: Fri, 12 Jul 2024 11:03:24 +0200 Message-ID: Subject: Re: [PATCH v7] eal: verify mmu type for DPDK support (ppc64le) To: David Christensen Cc: thomas@monjalon.net, Ruifeng Wang , Tyler Retzlaff , Bruce Richardson , Min Zhou , Stanislaw Kardach , Dmitry Kozlyuk , Pallavi Kadam , Konstantin Ananyev , dev@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, Jul 11, 2024 at 1:38=E2=80=AFAM David Christensen wrote: > > IBM POWER systems support more than one type of memory management unit > (MMU). The Power ISA 3.0 specification, which applies to P9 and later > CPUs, defined a new Radix MMU which, among other things, allows an > anonymous memory page mapping to be converted into a hugepage mapping > at a specific address. This is a required feature in DPDK so we need > to test the MMU type when POWER systems are used and provide a more > useful error message for the user when running on an unsupported > system such as P8/P9 on PowerVM. > > All architectures other than ppc64le unconditionally report that the > MMU is supported. When running with ppc64le on Linux, the MMU is > tested and the actual result is returned, while running with ppc64le > on FreeBSD unconditionally reports that the MMU is supported to avoid > unnecessary breakage until an actual test can be implemented for that > environment (i.e. keeps existing behavior without the patch). > > Bugzilla ID: 1221 > > Suggested-by: Thomas Monjalon > Signed-off-by: David Christensen > Reviewed-by: David Marchand Applied, thanks. --=20 David Marchand