From owner-svn-src-all@freebsd.org Thu Jun 7 14:03:01 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2901EFEC463; Thu, 7 Jun 2018 14:03:01 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt0-x244.google.com (mail-qt0-x244.google.com [IPv6:2607:f8b0:400d:c0d::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C2AE16AD51; Thu, 7 Jun 2018 14:02:34 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt0-x244.google.com with SMTP id h5-v6so9901714qtm.13; Thu, 07 Jun 2018 07:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fPBuPxAmkWpsNxbjmCBTqBIjKKlL1+0g3DA+rBHzgcw=; b=Fs/O9+P2RKZWlWlME9mGo1G3RyOKWLASXIrlr5og8UthuUOmy1RTog0AqxNHVREutO 9+1mTFEhjJ9Gt+UGShWSPdF8AMo7OjIG8Z/LoTaesQrihqH5s9kvC1bVI9IOq1UZFRQb QpB5UC8z7IZSMvURrgJhs4yPTOwtjpEI402iysZx2MH8wjJw4kE+SyHDuPwkv+qW1GNF 8nDLnBIoMzBz0IXq22ZIxaippYiWW1OmEY8sg63EWwGB1+YfjRkctoqAwmBgNnEGsE2n 3dOAm/EeLlGVESyEQ0VT4dtqLjQ1d14E1Xxp7kWRSmJIcIgVKphq5fJVTwDj74/V2R7T HliA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=fPBuPxAmkWpsNxbjmCBTqBIjKKlL1+0g3DA+rBHzgcw=; b=thf2I0zq4l36i4+dwNQb+ee3cOQ9glCzH9AVZBtho5BxtLP11skEK1WARpuyqR0R6E 5+5z+FLeH5h6VsQkrDqHB3Iux3lMm7of4MfyLX7bYWLk5SVWoSHhgCW/ICqMgcq4Hhyi iHIr4dyIrEqU7PEaQMx0taJLlCeAezgmFugqkkN8gpyym7wxM+rdR75GHdzfqYoUdrdm g6c2ADL6eXbvnSNy62C3wUrYKCqCHf8Dr8uY71Oc1Nbclbvo1wqyhO0VZ3DxLGEpoMeQ t8CNMlceSKUmhhy8wJ28PjHfFqAb5cjFRWjNQYQM4v0L1bw6liGxRTWgH3qC0ZBjavaJ BcUg== X-Gm-Message-State: APt69E05XA1UkbVvFx6/A9gejeSZSwP1QjVPR3PGfyG4Z0d/Z0Qj8gxw ql5Fq50lg5ckhANIRFghKfHVWQ== X-Google-Smtp-Source: ADUXVKKvuQ8RbjLkQDbbuIeQYR+dG4WlKFuQz4caaSVdhravyBYwfBjayFGm9hfm2/evJQ/nuEDmNw== X-Received: by 2002:ac8:2e52:: with SMTP id s18-v6mr1716208qta.319.1528380154077; Thu, 07 Jun 2018 07:02:34 -0700 (PDT) Received: from pesky ([137.122.64.159]) by smtp.gmail.com with ESMTPSA id q77-v6sm23363089qki.73.2018.06.07.07.02.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 07:02:33 -0700 (PDT) Sender: Mark Johnston Date: Thu, 7 Jun 2018 10:02:15 -0400 From: Mark Johnston To: John Baldwin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r334616 - head/sys/dev/acpica Message-ID: <20180607140215.GB96819@pesky> References: <201806041456.w54Eu3hB062082@repo.freebsd.org> <9b13b9db-f040-809d-0c24-67dc408380ec@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9b13b9db-f040-809d-0c24-67dc408380ec@FreeBSD.org> User-Agent: Mutt/1.10.0 (2018-05-17) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2018 14:03:01 -0000 On Thu, Jun 07, 2018 at 09:54:01AM -0400, John Baldwin wrote: > On 6/4/18 10:56 AM, Mark Johnston wrote: > > Author: markj > > Date: Mon Jun 4 14:56:02 2018 > > New Revision: 334616 > > URL: https://svnweb.freebsd.org/changeset/base/334616 > > > > Log: > > Fix the NUMA build for non-x86 platforms. > > > > acpi_map_pxm_to_vm_domainid() is currently implemented only on x86. > > > > MFC after: 1 week > > It seems that non-x86 platforms that support NUMA should implement > this function instead. The SRAT table is not x86-specific and ACPI > platforms implementing NUMA will need to provide an SRAT parser to > describe the memory layout to VM and to map _PXM values to the > VM domain values assigned by that mapping. Indeed, this was a small step towards lifting some of the code in x86/acpica/srat.c into the generic driver for use on arm64. In my case I'm looking a ThunderX, which exposes NUMA locality info in both the ofw device tree and the SRAT table. I'm looking at ofw first, and in the meantime I just needed a buildable options NUMA kernel.