From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 42FA11C1731 for ; Tue, 27 Aug 2024 14:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724769210; cv=none; b=U5zqL2IBPVVjATU2C8n7c1HDGH5ql4umMie0mVoYemKhm0fhTJ47MKZa0irjtCZ/SNPZZn3kMZ7Txtt+rDpfzKnrUlpMYK4oh3YV4oa2AMkKcLaCA9ZjDYphUxyFFKiFv3k4jrITlkE0f9s0rNELk18hD2fmC/0qezJ++T/e5cU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724769210; c=relaxed/simple; bh=XgSSzQjTyWSgw6pwE8wq/DXxuhPA18VKKPNiNNYbWN8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NOoxbOeKR2npXVGyJz+NfuoP84RcUg+VspiifnNy5MuUVoezk3pU44ofVgQD45rJnuPm0o5PpbYP8HCGx3edWnzcf3TRN8fMYlxm7JhGU4fQMQfL3/7uP2z4wWY2nUCGM8PNPp5PiGNtzPiuLHAmdI3+sKvhYNIys+im5/XDOvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=cg5iT+RO; arc=none smtp.client-ip=209.85.222.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="cg5iT+RO" Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-7a1d42da3f7so351451285a.2 for ; Tue, 27 Aug 2024 07:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1724769207; x=1725374007; 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=+Dq5eF/XsL5U484uJ6bc88SWqR2YGU4Cny8CFhxIKzo=; b=cg5iT+ROqwZTWd3jj6nr/cj7XoQrm+FCI99f7is37mBUkXZAGokch6NmA8fkZ9LgVQ H6N65dnBhiiPYc0Sosdjfcux2EiaKC+8n5Ucwj3lVQNeFlpt2WQxT33HANMTkVbGgfyb W56OwECzJEoGrLzRij4Bm3yF6pTa/slo3L4h8UwoQJLXACT/OECpjgEz+WU48nff/GPh L5CZGA+kBMb1pwzj911oeRFWw54Vx3jq8sWdqi2+pQwIRYxN1bE5zXY3qQMKqiIk+QxV 5lXHisx+YJWzcXK/CDGkPCUxIJbB+nTBryvpAWWW9uUzrMpaNPJgvGmiEGvD+DGuQTdq 90sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724769207; x=1725374007; 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=+Dq5eF/XsL5U484uJ6bc88SWqR2YGU4Cny8CFhxIKzo=; b=Fw69u2ZrSiVk4mLzKgiyEw8eIzv0DECCuT1DCtcLj8J6NZMf0q7gyHVWOPEtDNS39k s0iW8tnx2toO5Z0CWvIoPvgUdIwG0D8fKzptzGaiAIgihq4rbO+fEFo4qqilUTExd840 GgIaTVCwjwgcQK+CznrMz4Z86Lhtg59JT1urln6FL6eHWhqemo2SBTOzf1fbRoz1I14i fDOneGgnDyI3AS1wadzr2gkB145eIeZAEtRU91mHJClcfkwuJSP5ouxdJ3a2V1/mPZRT //adSs1ruHDcaVDUG8tqEH+gZ7XBX7Y31MWvAUktHyh9+W/tKfrKU7Uj4Racv1TdTVFt dyng== X-Forwarded-Encrypted: i=1; AJvYcCX47XKrnBMCEapGCZurYoGMwE8XtWeKJpODMrYbLKSbyaZHf2uPg+vJ6k/zflwUE5BxJv4K8pe/WMFnF0M=@vger.kernel.org X-Gm-Message-State: AOJu0Yytw6AKrQv1Q1Ucnvy+7567FsT9J5Y//Nsd17GZYLsTTscbCD2I x98IRjX3f0Xwz9O/I0YvQYwQN5NrFOcSKga1hjUH8F1fr9fl5rPqAc2aerFkwY4= X-Google-Smtp-Source: AGHT+IGtIv7TpBgdDKjZNm9QnhlOd66rvRaYjffVV4m+LJZAP1dws1Vh+HS6qGaGUoaINi87yCl2EQ== X-Received: by 2002:a05:620a:1906:b0:7a3:5fa3:328 with SMTP id af79cd13be357-7a6897acc71mr1674517285a.54.1724769207016; Tue, 27 Aug 2024 07:33:27 -0700 (PDT) Received: from PC2K9PVX.TheFacebook.com (pool-173-79-56-208.washdc.fios.verizon.net. [173.79.56.208]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a67f3bb523sm555884785a.95.2024.08.27.07.33.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 07:33:26 -0700 (PDT) Date: Tue, 27 Aug 2024 10:33:12 -0400 From: Gregory Price To: "Huang, Ying" Cc: linux-mm@kvack.org, akpm@linux-foundation.org, dave.jiang@intel.com, Jonathan.Cameron@huawei.com, horenchuang@bytedance.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, dan.j.williams@intel.com, lenb@kernel.org, "Aneesh Kumar K.V" Subject: Re: [PATCH] acpi/hmat,mm/memtier: always register hmat adist calculation callback Message-ID: References: <20240726215548.10653-1-gourry@gourry.net> <87ttg91046.fsf@yhuang6-desk2.ccr.corp.intel.com> <877cd3u1go.fsf@yhuang6-desk2.ccr.corp.intel.com> <87cymupd7r.fsf@yhuang6-desk2.ccr.corp.intel.com> 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: <87cymupd7r.fsf@yhuang6-desk2.ccr.corp.intel.com> On Wed, Jul 31, 2024 at 09:22:32AM +0800, Huang, Ying wrote: > > > > This presumes driver configured devices, which is not always the case. > > > > kmem.c will set MEMTIER_DEFAULT_DAX_ADISTANCE > > > > but if BIOS/EFI has set up the node instead, you get the default of > > MEMTIER_ADISTANCE_DRAM if HMAT is not present or otherwise not sane. > > "efi_fake_mem=" kernel parameter can be used to add "EFI_MEMORY_SP" flag > to the memory range, so that kmem.c can manage it. > Worth noting: This feature was removed https://lore.kernel.org/all/20240620073205.1543145-1-ardb+git@google.com/ So I cannot even use this to manage it. ~Gregory