From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.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 08F8A1FC7C2 for ; Wed, 8 Jan 2025 15:49:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736351348; cv=none; b=UHOXmDx1sCehqrw4h0mNgIf6mKufVxYEUjZpt0toDOhT5ZW858RaD4aHBibe4GPubNG4g2ZFN0/4oV9vQ/J+ONdY0wq/WnY67Y4RI5kGAtVyfbK3iGj9gsrSw8gfKdR/TJwFWL/IB51itW4fP4dc6X3fPqAmC0gd3imwmeiuOsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736351348; c=relaxed/simple; bh=sSN9SsnKUvhFGRU7W7zxKA1llCrUP281HeNA3cTvtB4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y50hF5eVj1mgahikZog75mWouB/eTRV6mgmWcRLWJ6WfBh+1OzNoeuYD2kAPTURuYGUYM8GDRaaaev4UZfjTH85Ch1bkOgtvrH7mIw25Qm2d2rbvmsnEsC2hcZaqathAInSUtpyrbcbfrAY0dXyavb9lHgTt1JJvmiwUpUi7Bjc= 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=ErrXIV6R; arc=none smtp.client-ip=209.85.222.171 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="ErrXIV6R" Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-7b8618be68bso1279903985a.3 for ; Wed, 08 Jan 2025 07:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1736351346; x=1736956146; 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=7Bl9NAgWdHPyMnimBgt9SxNHGqBRfOL35wQpFjiOOKs=; b=ErrXIV6R/sbM/zOERPIZoIV1M2zNEI2EATw5d4GuD28AHfwPSXQK2+jzx/fIsY+gvd 9lTdNaHE/ycXvYAZJ0l49qNwlG80vpIC+iFoknZ1J3p7Nhdi2PHKXMkqagK+I8oPjTxB ZsCfncy39NyBbvTHTDTb3af2RkgDPpmueOYuIBLjska7YN8lz4cin2vQVVHTpI7/Z5Oz 81KeJsKG4KvPQGxypiTZOU1xCbqxafrM1t3Jr0TmmgAzluTQryeZlH0aj90ediHNk4Ez Xb/xcuRhkebIydNSRzrgtb7h0hWN2pJLESvMKVv5e0LxNSzJ0XSZ9iMUyONu17rc460Y wqVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736351346; x=1736956146; 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=7Bl9NAgWdHPyMnimBgt9SxNHGqBRfOL35wQpFjiOOKs=; b=WbgXTXmmB84S1Q9NBxqupdhk5NeYX+DYtdgZRVSJd4Lew+K0smroWpbijdgXkbZlM8 dS8+K8CWrEAZ2oJD50GCAHtwOSq4XoruIB2FeQBPIBGV47nzPES6KW+86Qi1EOoilV78 W44iURarhCo8fAKDsu2Wrfx7lVvH15qHRIQakU/JJer2fDVsjIkswUpEHV/mLxSOXVIf d4vWRcE5q2Pt9FI2O0kS5iGA63tOxLz86aYbsJ3IT7naO2/c4gXvH+IlB/Z+S4JGKywS qChjPpbv9/Q16iUdOS8zwKJLK/F543tIoITjsGiiWoBuK7Wm02lQFREsztZzwqkgeHMw lgGQ== X-Forwarded-Encrypted: i=1; AJvYcCVssDCA1bC78HrqXl+GV8LZYeuCNVqqqJbl7EYSgTk7aYoyX46UO2V+1FM65BmY0093pQjh/2vO//hzwxM=@vger.kernel.org X-Gm-Message-State: AOJu0Yw/dGKumMjTvZGLVbFTEhSM1jqkHjSVvkbLp9LdW1lPNQlqHFWI 5liC/0imXqjz6yCzUWBfB9fWfPdVBEf0Ysd7WEl8ALZZnBhbYV9LghpYXOqRxmY= X-Gm-Gg: ASbGncsP22xhirMfb50N+dR3u+QgEp1s7T5o8T6VLnMD1ZzQ6wVagEaiMsTAe9OBdBJ HiHXR3QijEa8P6bSh1oA/ax5pYtmApXkoM8cieloJdvVaRCj2VrZygRqcznbw1csXUPi2q2EYsk lXKwUXRJ8+tiNdVjOYLmiYCa3+ALmtVe8mwM7INKXzUwjs2W9ANic+CJxhV18pHlBCeJD2C8yTk Xb1+cMBSpofX9aCJ5fqWCf29hK/eWi+bqZhSdMVQgv4kDMKlsarXGd5uD3lZ8ku6T+dQkn/bubm Fo6Wqq9RDovc6KUL/Q4lnF1UCEgeQhUcHsuCKLE= X-Google-Smtp-Source: AGHT+IEYLiVsJfufHVMLMQPh+XJKnZPJL0IfuMAUQ5CxOx+0YXj+k1LaimRPU/dsQWrxcqrDfsvS3w== X-Received: by 2002:a05:620a:4551:b0:7b6:7257:1359 with SMTP id af79cd13be357-7bcd972f20cmr513055585a.13.1736351345978; Wed, 08 Jan 2025 07:49:05 -0800 (PST) Received: from gourry-fedora-PF4VCD3F (pool-173-79-56-208.washdc.fios.verizon.net. [173.79.56.208]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b9ac478d35sm1682775485a.90.2025.01.08.07.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2025 07:49:05 -0800 (PST) Date: Wed, 8 Jan 2025 10:49:03 -0500 From: Gregory Price To: Robert Richter Cc: Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , Jonathan Cameron , Dave Jiang , Davidlohr Bueso , Terry Bowman , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, "Fabio M. De Francesco" Subject: Re: [PATCH v1 25/29] cxl/amd: Enable Zen5 address translation using ACPI PRMT Message-ID: References: <20250107141015.3367194-1-rrichter@amd.com> <20250107141015.3367194-26-rrichter@amd.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: On Wed, Jan 08, 2025 at 03:52:35PM +0100, Robert Richter wrote: > On 07.01.25 18:28:57, Gregory Price wrote: > > On Tue, Jan 07, 2025 at 03:10:11PM +0100, Robert Richter wrote: > > > > > > Add a function cxl_port_setup_amd() to implement AMD platform specific > > > code. Use Kbuild and Kconfig options respectivly to enable the code > > > depending on architecture and platform options. Create a new file > > > core/amd.c for this. > > > > > > > A build option here specific to AMD doesn't seem the best. At Meta, > > we try to maintain a platform agnostic kernel for our fleet (at least > > for build options), and this would necessitate us maintaining separate > > builds for AMD systems vs other vendors. > > > > Is there a reason to simply not include it by default and just report > > whether translation is required or not? (i.e. no build option) > > There is no (menu) option for CXL_AMD, it is just checking the > dependencies to AMD_NB (and indirectly arch, platform and vendor). In > that case it is always enabled. > Ah! I completely misunderstood the build option, my bad. This makes sense, sorry about that ~Gregory