Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp36608lqt; Thu, 18 Apr 2024 07:53:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcu2a6FnSorhY3G2alzROeSPLM+Vka04Ei7sgtc44X3dO+S2EbaRWFpQZ3pg0E34BnRBaLNsNyIUpiVy5yMuUn71nITtwJJ9jVLq/AAA== X-Google-Smtp-Source: AGHT+IFkRAsM2VFg/zRioOND2PWWyinvE1hpAI1F9/+ET1xp4HHoZxJcZI1pmMw4dze0KrAyuUD+ X-Received: by 2002:a05:6a21:3405:b0:1aa:927d:75f1 with SMTP id yn5-20020a056a21340500b001aa927d75f1mr3077852pzb.10.1713451980239; Thu, 18 Apr 2024 07:53:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713451980; cv=pass; d=google.com; s=arc-20160816; b=GSItmWbWPTlLv4afGn+ZlxdgJVdplYB5JR0AveTX1/oXhpV2PJyO6xj8LpbsZskljC XT7fSQdJzjI+MMUbMhOf0ugXtkREgHNEyuX8Sjiga33nWzqIxz3RJQdhD3lQU+ToG6mh 5HGA4oiEO4/2T3SgGwrDuJbxrGWVEMzhcGMN4fdtLhS/Kw1Y+k7jA/TO0nFwNrT8Su5W zv4e0msoCm2Ojq65qAcJp3znV9Kbou+97gv4BVR5DZVdQNYiDM9Dgovrt4P49hoOes8k 6PHsqjWX7Uwx+L7s+Fw+lnPVhKAmPkKKs8/BE1yqIDiv2nfV/CAve3pRb/cCClaXVeqJ 68OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=ryLfT1PYiC2/gkD7IKihz2drKp/kC4mrS6g8LmMPN4s=; fh=l+oSU8QBaJ+3fCOW4jCt7lj59owDnJ3Ry3oRcL3rvF4=; b=0qJYkKM3Bw4wDNmmOjjtJ/yxWLBomjnvqnMQHiQ0Yo4ltXlSzPgR85CZ1+ltIGbGay O0cbZYjoDXa8Rc+H4ejMs/rKC46R6lv2+3x5nG6kVbpiNqpo887lG3//LL4obB7l180E VgfxpdylzvIUrRx356GWGkLMMXAmf0RS9Fy+OrDbGiyY2HHPrPbnX6CrOF5vXrZV8yV+ oLeCEnYnIFpSYZq9xz5I6OejqMOEABfoa2axGLk0NBfgYriHOB1vbIXXZiKUIdnc2JUL FLcc7dNEX8N/UdMZQmzNIU4Q5z73SVuiFSrWDYccSqo7EzjkTWHg8FyO5u5qp/cRrzt9 /aPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EfKz6XKj; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-150204-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ln21-20020a056a003cd500b006eae0421101si1661152pfb.33.2024.04.18.07.52.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 07:53:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150204-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EfKz6XKj; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-150204-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1EE192824EE for ; Thu, 18 Apr 2024 13:52:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50A14161306; Thu, 18 Apr 2024 13:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EfKz6XKj" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6764FEAD2; Thu, 18 Apr 2024 13:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713448317; cv=none; b=eGDOolQl9N3fOoPFAmDgUeczqziUgX9m7QWJKFYMAllUShczcPShPe6RnvQBTcdh0Dc5fRog5jZggfRyd0omNMjIEYZGfTZuFiwPnJ6M9sLW9dcV3BTQuuza8VoAHQrIrFhMYow4NDI5ghgfqnQSiFyCl61sVX0fBoLRCQXjvXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713448317; c=relaxed/simple; bh=/AePQYYlE4rgjN8mQKUL+TS+cAZpdj5pA/ak+RGccg0=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=f74mTJ0v4oEfLYNe8MEzINp0yb6+xgf8B56aANiRs6meup5LdOLv9UQv37+QG0w/y/B5cpHj8G3sPgpI8JwVcCZv8r2jsC//QykwpTymTsS6/LRP8aer3+C7vhzE1/uJYSgyDJdZKgPLsSuQtAqfJtnvkzxIlKwjBUpjznt0EcI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=EfKz6XKj; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713448316; x=1744984316; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=/AePQYYlE4rgjN8mQKUL+TS+cAZpdj5pA/ak+RGccg0=; b=EfKz6XKj//AsIqmokuvJy/0wjWZ1af32eMvDaLHCuQt71a7ClLJKjWTV VPIURnNIoB5gJ2l2j44Kvm7szf/vA7Na6+YO4/MK0mjmA4SMyYUifdVcs BsqAFTt5i76lqIJZ3WpYHm4w4x/l0buldwBC616nxUO0D/EqCvFSUdVrh nKuCICCzUgz2fKQITEYgUdY8UcUoJbdCeEa+Oi+67TVHRBrytvLbC2s2N WtgCLW542F0nh0VMZptO70hm+AZ5yE7f8TrPtVGaRlzDIKV9dmQmrA2yv 7yyTbsExPeLaCrt7Fitfnsgoca/jCC5p0oznoCUh5dgtMQQZBJ02G+WQY A==; X-CSE-ConnectionGUID: r6vBJUM1QJmfqwhuRiMyOw== X-CSE-MsgGUID: mRYn5ptDSF6uaJO/rk6aKQ== X-IronPort-AV: E=McAfee;i="6600,9927,11047"; a="12782296" X-IronPort-AV: E=Sophos;i="6.07,212,1708416000"; d="scan'208";a="12782296" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2024 06:51:55 -0700 X-CSE-ConnectionGUID: ixemoxb4TrCbHevpB1fLhw== X-CSE-MsgGUID: JzYUla7xQQyT19Tsnj/nWQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,212,1708416000"; d="scan'208";a="60415341" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.36]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2024 06:51:53 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Thu, 18 Apr 2024 16:51:48 +0300 (EEST) To: Mario Limonciello cc: Hans de Goede , Naveen Krishna Chatradhi , Carlos Bilbao , "open list:AMD HSMP DRIVER" , open list , Mario Limonciello Subject: Re: [PATCH v2] platform/x86/amd: Don't allow HSMP to be loaded on non-server hardware In-Reply-To: <1071ea83-7919-469a-ac5b-3209fe9e018c@gmail.com> Message-ID: <85728284-d771-bf06-9ed3-333633ebf8b0@linux.intel.com> References: <20240416182057.8230-1-superm1@gmail.com> <1071ea83-7919-469a-ac5b-3209fe9e018c@gmail.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 On Thu, 18 Apr 2024, Mario Limonciello wrote: > On 4/18/24 04:04, Hans de Goede wrote: > > On 4/16/24 8:20 PM, Mario Limonciello wrote: > > > From: Mario Limonciello > > > > > > If the HSMP driver is compiled into the kernel or a module manually loaded > > > on client hardware it can cause problems with the functionality of the PMC > > > module since it probes a mailbox with a different definition on servers. > > > > > > Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2414 > > > Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3285 > > > Signed-off-by: Mario Limonciello > > > --- > > > v1->v2: > > > * use pm preferred profile instead > > > > Thanks, patch looks good to me: > > > > Reviewed-by: Hans de Goede > > > > Mario, should this go in as a fix for the 6.9 cylce, or is > > this for-next material ? (I'm not sure what to do myself) > The main risk with this patch is if there are servers that previously loaded > amd-hsmp no longer working because of a BIOS bug to exporting the incorrect > profile. I think this is quite unlikely but not non-zero. > > To at least give some time for anything like that to be raised I feel this > should go to for-next. I was also thinking it would be better to route this through for-next. > Ideally I do want to see it go to stable kernels after we're all sufficiently > happy though. Random bug reports to me like the ones I added to the commit > message get raised mostly by people who compile their own (stable) kernels and > enable all the AMD stuff because they have AMD hardware. > > So how about we target for-next, but also add a stable tag for when it gets > merged in the 6.10 cycle? That's possible but if you want to retain true control over it, don't add stable tag at all now. You can send it on your own volition into stable address later once the change is in Linus' tree and your "happy" condition is met (Option 3 in Documentation/process/stable-kernel-rules.rst). Otherwise, stable will autoselect it the moment it lands into Linus' tree and you don't have much control over the timeline from that point on (I've seen stable folks to grumble when somebody asked to delay including a patch marked for stable, their reasoning was that their autotools keep reselecting the patch over and over again). -- i.