Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2141038rbb; Tue, 27 Feb 2024 11:54:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGOCu+Is25l7tMH7VxRaoLNvb8+QYgp8JJ4TIetecKL1v8gjTyME4rmbZ8yBpeCGfd5zT2ENIoC7wl8Hd+d9UlassfMPVFMKiqx7BsOQ== X-Google-Smtp-Source: AGHT+IESKykx1SJvdcw+sBw2RXQVfEkkPdMSrPSE92OwFRvcnJnWIQuMPlzvXBkiggX7O3qLS0gn X-Received: by 2002:ac2:4575:0:b0:513:17ef:c76 with SMTP id k21-20020ac24575000000b0051317ef0c76mr320538lfm.9.1709063661475; Tue, 27 Feb 2024 11:54:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709063661; cv=pass; d=google.com; s=arc-20160816; b=Y0XzzMDgpnrY6D6TuwzId+HrUeknbNofTg4yJbnkJBiD1UoVtbcUZ7C41+HyMPqhmJ mo+TmpQ2tqNergl0Joof+k2RTP4Pa3JGyVPF3GJ7ailKsSMnmcMr/vzX5MmFxXMa2pCY MgC2fXcckYQh8bdiGawu5MM26F4m2hAgrsRWGGGvo2i6rtj645b8I0d32JBZ7YYk5awI mR/6OTSDnr4mIuSsTMdgVGXTU2s0C7S+1nf8sN3UtoTTThqgpqLqKwKxJ4+jJXdh5Rvo LM6UDbCZI9WYQgpeXKCwn14vztRqPRxqZCGty29i4WjD+MdbRlnATi/eSPl3jE0Rlt6Z LRlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xbQUZQyEGP1CPThYzfNcLZOIe8Tdm+exmfFecXSmW74=; fh=uWu9MeyGkywR165s6yDWPgkXRNiae1Qrt207vzeAVio=; b=AcnBLfWFKS/t8Fswz1fcfYqjNWdBA+lD/oEnXNcI8lW38J0x4oN2D9lSyPAuIFUgMM ZplwdchHxTC4Q/aalFwpJZUtL/vZUrX2dEcEI/TWfM0TmWgndlYHFxuGEuReJ4EP6MlM rEFyoGhalxJo+CwR9tfmPfFrf6OXxTUXsh3pK9BlgwOhIZp8qslpEZ0hmgyzshJEXqJH WWjfjJnkOC3Own9DcQuqgGxnD00zW9dG/crIcqtaPWUhTxWL45l/TDYxtcJfwI8E/zc2 Vnng3+1dXhBLxHBaA+IwEP7LI9ItbQ1baye51FLTuCMEuHxZlz8CL/FvpIXCfXkNmtf5 J2lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YEug2JYq; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-83958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83958-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f8-20020a17090660c800b00a3f85e6d3d4si1016144ejk.1035.2024.02.27.11.54.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:54:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YEug2JYq; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-83958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83958-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1FBAB1F229D5 for ; Tue, 27 Feb 2024 19:54:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2DCC14A086; Tue, 27 Feb 2024 19:54:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YEug2JYq" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 4ACF76A010; Tue, 27 Feb 2024 19:54:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709063654; cv=none; b=Q74xLKDUYbHcffj74oOfyndGr/m6zAAfrOeAf3ZWeJGPHbNZfYSvzyERBxJ9YvlHn1eYBGB5roOTuqh6OVTlwYFxenSfqRpR8S8W4UvMX+SEtsFodSXp8gHg4VQf/W9SwQlyup91fd6DuXKxP5gOXfcEeCLxujjnq8Mabd1LjR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709063654; c=relaxed/simple; bh=IhmLuGfw0M7Nt6pVWN2a2iLmgt3/E24V7TPiIkAcoJ0=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=gJqtAmiCB6j2k5+mk+RxOiwfpQrgXXgjb1uyhNha30XOFtOS0ei4Tzse/czuRMbwgy7EC3QZmcrNweVlwuZvJi7CQgN+10Frj6xl907+nR98h9bPbm2xDF6E3rFnTBn9DcwND5013897ZOpnDeTVcpPVA13Vm+vuEaL+35pt+D0= 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=YEug2JYq; arc=none smtp.client-ip=198.175.65.13 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=1709063652; x=1740599652; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=IhmLuGfw0M7Nt6pVWN2a2iLmgt3/E24V7TPiIkAcoJ0=; b=YEug2JYqoZzoP/Jp7Fl2zXV7bSylMJ/x2QSkJRhy6HGqnNOJxoiJLB2/ PUb1tlywT6W0blS1+TyVtOSoMRA4Ta1FfP+pVxxWaN8GlcTDxODzN/GYJ rMO8NFmI4HwkYgXuAH+xvmH8yyiBKQZ0UiU69ssp1qzinecPRroART7AB syaIaVJWuUKG4yVXa+OWcy06goPRLyp1fNyV/87G0FzJYIJO+g0o2GdaC BdiI15mfu8CeSaccDDSlyZ04wEB9Uowq1DMMdINBYbHFl7hZoGOnPValT b6O3aNYwGNaGKJ2EEsBHNy9IABb7awJZrEw8h8D7qvFabTzHvFw69Q3ii Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="14582330" X-IronPort-AV: E=Sophos;i="6.06,188,1705392000"; d="scan'208";a="14582330" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 11:54:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,188,1705392000"; d="scan'208";a="11754828" Received: from dschro4x-mobl.amr.corp.intel.com (HELO [10.212.137.190]) ([10.212.137.190]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 11:54:11 -0800 Message-ID: Date: Tue, 27 Feb 2024 11:54:10 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2 3/3] platform/x86/intel/pmc/arl: Put GNA device in D3 Content-Language: en-US To: "David E. Box" , rajvi.jingar@linux.intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com References: <20240227190134.1592072-1-david.e.box@linux.intel.com> <20240227190134.1592072-3-david.e.box@linux.intel.com> From: Kuppuswamy Sathyanarayanan In-Reply-To: <20240227190134.1592072-3-david.e.box@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 2/27/24 11:01 AM, David E. Box wrote: > As is the case on Meteor Lake, the Gaussian & Neural Accelerator (GNA) > device is powered by BIOS to D0 by default. If no driver is loaded, this > will cause the Package C state to be limited to PC2, leading to > significant power consumption and decrease in batter life. Put the GNA > device in D3 by default if no driver is loaded for it. Reviewed-by: Kuppuswamy Sathyanarayanan > > Fixes: 83f168a1a437 ("platform/x86/intel/pmc: Add Arrow Lake S support to intel_pmc_core driver") > Signed-off-by: David E. Box > Reviewed-by: Ilpo Järvinen > --- > > V2 - Better explain the issue in the changelog and spell out GNA. > > drivers/platform/x86/intel/pmc/arl.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/platform/x86/intel/pmc/arl.c b/drivers/platform/x86/intel/pmc/arl.c > index 683ae828276b..34b4cd23bfe5 100644 > --- a/drivers/platform/x86/intel/pmc/arl.c > +++ b/drivers/platform/x86/intel/pmc/arl.c > @@ -673,6 +673,7 @@ static struct pmc_info arl_pmc_info_list[] = { > }; > > #define ARL_NPU_PCI_DEV 0xad1d > +#define ARL_GNA_PCI_DEV 0xae4c > /* > * Set power state of select devices that do not have drivers to D3 > * so that they do not block Package C entry. > @@ -680,6 +681,7 @@ static struct pmc_info arl_pmc_info_list[] = { > static void arl_d3_fixup(void) > { > pmc_core_set_device_d3(ARL_NPU_PCI_DEV); > + pmc_core_set_device_d3(ARL_GNA_PCI_DEV); > } > > static int arl_resume(struct pmc_dev *pmcdev) -- Sathyanarayanan Kuppuswamy Linux Kernel Developer