Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1292070lqo; Sat, 11 May 2024 17:14:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtLS6wdS5kk44WK7cMxNP3Qmbx0/gr480+Fd5uKPm88KrlAvsVPLthqF/iELGOUOtQmXHh8awMASdzm1yvQL0whaCkefKTaD73xC5A+A== X-Google-Smtp-Source: AGHT+IFOsSmhQmp2aHJgwpxZQUw6Zu+x23aFUjx/d4/9KDVerDnwqCWJwgWiaS4odrcHu9YUEnpE X-Received: by 2002:a05:620a:4002:b0:790:ea3e:61cf with SMTP id af79cd13be357-792bbdda121mr1661428985a.15.1715472899302; Sat, 11 May 2024 17:14:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715472899; cv=pass; d=google.com; s=arc-20160816; b=zjTkEPP43mInCD4sosiGCOZse6WEVL196b4Wjwxtm53rLNw/B4GPZfTkI/+vPju40k UVQ3BGmsFC8oWqcNk1nIQdfQOqKiJM5KLfUI66KEGQn55GaUAXCyF0tY8FWbrobhUQEi uSXl16zkbgb0tPdTtTgBtj3CTvw3D+ZRCoj7aEo7uobH4jii8Rs9fPI0ozNsIqbP7RJm cB8lvugT8xNS/FI+Qv5ARAt1Ky+y/TBH2MOWvzisAscy2Ad6Pex1Gb8B5Dw4JujMyBh0 LSXNUovGbVeVzeMZTIIO5+/P78LzGAb/CLXirqN7IHzWNGxjFFi1uGBrnsWyWlWLPPO1 YeAw== 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:in-reply-to:message-id:cc:to:subject:from:date :feedback-id:dkim-signature:dkim-signature; bh=c6doAEYnIqjrrHM2MDoHuTdMl+vjtXuzWQEYI9/Q2Hw=; fh=QtozHX31fz9VlFcU8tI5Z5er0xZdiWJp4MgYttvHGX0=; b=Zb8s+SkfyHxy62jJjzzgInsiCT1SDHFfF67LKc8uJNRSskey/Nty3A8wkMwpCON+ef 53g6ZX0WdXiRX6s//SvlqCoGDSF/WuyT7iAZ0g80hwbpt1hS0VGxVkEQlSwt7hVuFcVW x5wzwpT9cg/TNZNZIeXgZfidw9Tcs3Hrl/dEECmrW6o/vXT8Dk/dhEZWLdcU6OeARjnd +Sds68udQwIiXHKGo+65qccjeAblYkLWhXhP2wwP5uhbs0h+Rlon3qH5nlMnVrmHhhrg VKg+IWY7C0R1LcHSSx49zGGYiwtDrJ/Lr6TnrcGhTIRvLvgbtZCpVaFMez+nKtUPnel+ f1og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lyndeno.ca header.s=fm2 header.b=KoVW1USz; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=k53hAaUO; arc=pass (i=1 spf=pass spfdomain=lyndeno.ca dkim=pass dkdomain=lyndeno.ca dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=lyndeno.ca); spf=pass (google.com: domain of linux-kernel+bounces-176779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lyndeno.ca Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf277868si632517085a.114.2024.05.11.17.14.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 17:14:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lyndeno.ca header.s=fm2 header.b=KoVW1USz; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=k53hAaUO; arc=pass (i=1 spf=pass spfdomain=lyndeno.ca dkim=pass dkdomain=lyndeno.ca dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=lyndeno.ca); spf=pass (google.com: domain of linux-kernel+bounces-176779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lyndeno.ca 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DEAE11C20D96 for ; Sun, 12 May 2024 00:14:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70E992119; Sun, 12 May 2024 00:14:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lyndeno.ca header.i=@lyndeno.ca header.b="KoVW1USz"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="k53hAaUO" Received: from fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (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 CB032363; Sun, 12 May 2024 00:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715472891; cv=none; b=gwbOb/lbvgtVX6KTxMM2C1jhbP1j1IlDizpKRvjlB9M/NpJv00ni7SaiX1eRqbWGdaY5LRlpBI9S50JGVOMDbzr9uJNz1T89btRxwbHCGFbEJvmIkY0WcfjggEVc+THwISQvBPGcQq6klEQ8uaF+SZD6B7F+wlIFjP4mIUzN0LA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715472891; c=relaxed/simple; bh=nzkbFRou+iaXiDduwf6Q2SfA+//b5YL/++/bmVUT+rE=; h=Date:From:Subject:To:Cc:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=FyBWso7S6no8Dc5NFgKnj3b298zqqNBVwemClZyMpbN7dhMNGKMQ8fuxyXORlcCgvZ7M0Eav3g7UgnLXfX07t924Yu8z6cxq+KsGp90jE6npcjy5Oe9zmhYflan+CSd0r92hYL4+NB+T8uOyZmcar6UkqZxrWHdC5V/IHkkVtpY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lyndeno.ca; spf=pass smtp.mailfrom=lyndeno.ca; dkim=pass (2048-bit key) header.d=lyndeno.ca header.i=@lyndeno.ca header.b=KoVW1USz; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=k53hAaUO; arc=none smtp.client-ip=103.168.172.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lyndeno.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lyndeno.ca Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id BA18811400D6; Sat, 11 May 2024 20:14:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 11 May 2024 20:14:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lyndeno.ca; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1715472887; x=1715559287; bh=c6doAEYnIq jrrHM2MDoHuTdMl+vjtXuzWQEYI9/Q2Hw=; b=KoVW1USzLff15+iz44EUfBxWNh f3PwdhdWzAgOuKeIPXXZv0KZkg+v+CIyxHpGfAahgxjGPkMKtMbWba+YUHzf69Sm fzZ7MkABkmoFKl1YJ4bA+j15oP/hNJ6+HpfCvBn9IcxrOizrVnXC9n8lib9eCSi/ o6uQP/pB7uPsSCVgBXp1LG3oQKGsjPQ7Gd02SGZSJn/DZlEov0ZvRU9uhzsf8sgt k2TgegNHF57hJd73VBdkCrXQ9zORLao0K6ZENt814MKp9SzV3OW/C6v8vqyIsVMK 7jaS32bfjbHyTzLm7e8VtLIlI7PxFDtfBqhd1ib4kUl37mvApnyLD8qRxOig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715472887; x=1715559287; bh=c6doAEYnIqjrrHM2MDoHuTdMl+vj tXuzWQEYI9/Q2Hw=; b=k53hAaUOsc7dym57eMykNLGQfuUEjbMXveyORUXO8jDZ qGwghJWxtfWoYhCx8LXClCrmsnwtRA/fnHS7l5pW438qZO1elvMQ84l9uVZXnlqF T5UPNHpku/glaLctNSvstePuqfWPArMx15xCc4CVdjOSe3zH92neJmSI/KwqelXL WCBZ/tRpIB86eXzhOtRC7eNcmbwlfKKu+XebJGQU4Jy5DSV76dAYNRE76BF19JMC 2P/urwjoieC8mT8E5kLhDqzfRS30xRkxXK/PsGPu8bbFOcYun+zxnmyBV7XpQ3xi v+y27jdUay3A3/kDzP1hDZJxuJkmcLoSwO5aOpNrYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeguddgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhuffvvefkjghfofggtgesthdtredtredtvdenucfhrhhomhepnfihnhgu ohhnucfurghntghhvgcuoehlshgrnhgthhgvsehlhihnuggvnhhordgtrgeqnecuggftrf grthhtvghrnhepjeffueekgeeijefhvddugedtkeefveevtefghfevfeeufffgvdevleei udfhtddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eplhhsrghntghhvgeslhihnhguvghnohdrtggr X-ME-Proxy: Feedback-ID: i1719461a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 May 2024 20:14:44 -0400 (EDT) Date: Sat, 11 May 2024 18:14:36 -0600 From: Lyndon Sanche Subject: Re: [PATCH v6 2/2] platform/x86: dell-laptop: Implement platform_profile To: "Limonciello, Mario" Cc: pali@kernel.org, W_Armin@gmx.de, srinivas.pandruvada@linux.intel.com, ilpo.jarvinen@linux.intel.com, lkp@intel.com, hdegoede@redhat.com, Yijun.Shen@dell.com, Matthew Garrett , Heiner Kallweit , Randy Dunlap , Jonathan Corbet , Vegard Nossum , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Dell.Client.Kernel@dell.com Message-Id: In-Reply-To: <9ba4a500-9d88-4630-bd94-99f07dd51abe@amd.com> References: <20240425172758.67831-1-lsanche@lyndeno.ca> <20240511023726.7408-4-lsanche@lyndeno.ca> <9ba4a500-9d88-4630-bd94-99f07dd51abe@amd.com> X-Mailer: geary/44.1 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; format=flowed >> >> } >>  /* dell-rbtn.c driver export functions which will not work >> correctly (and could >> diff --git a/drivers/platform/x86/dell/dell-smbios-base.c >> b/drivers/platform/x86/dell/dell-smbios-base.c >> index 6ae09d7f76fb..387fa5618f7a 100644 >> --- a/drivers/platform/x86/dell/dell-smbios-base.c >> +++ b/drivers/platform/x86/dell/dell-smbios-base.c >> @@ -71,6 +71,7 @@ static struct smbios_call call_blacklist[] = { >> /* handled by kernel: dell-laptop */ >> {0x0000, CLASS_INFO, SELECT_RFKILL}, >> {0x0000, CLASS_KBD_BACKLIGHT, SELECT_KBD_BACKLIGHT}, >> + {0x0000, CLASS_INFO, SELECT_THERMAL_MANAGEMENT}, >> }; > > So when Alex checked on v5 that this doesn't load on workstations, it > has made me realize that doing this will block the interface totally > even on workstations. > > So I think there are a few ways to go to handle this: > > 1) Rename dell-laptop to dell-client or dell-pc and let dell-laptop > load on more form factors. This would require some internal handling > in the module for which features make sense for different form > factors. > > 2) Add a new module just for the thermal handling and put all this > code into it instead. > > I don't have a strong opinion, but I do think one of them should be > done to ensure there aren't problems on workstations losing access to > thermal control. My apologies, I accidentally sent my response in HTML format. Please see plain-text below: Thinking about it more, we can leave dell-laptop as-is and create a common dell-pc module that does not check for specific form-factors, assuming that is possible. Thermal management can be the first function to go in there. We will still block the calls from userspace regardless of which modules are loaded. If dell-pc fails because thermal management is not supported, we aren't losing anything by blocking that call anyway. Thoughts?