Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp587257rdb; Thu, 1 Feb 2024 19:06:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5iplaJ+Orrbf936+oUHOaXyzZyUdKdoBz4JN02bHaP3jlxSzriwTqki8B8VPiz+r+lEy8 X-Received: by 2002:a05:620a:ce9:b0:783:8a70:f64 with SMTP id c9-20020a05620a0ce900b007838a700f64mr1101520qkj.65.1706843186742; Thu, 01 Feb 2024 19:06:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706843186; cv=pass; d=google.com; s=arc-20160816; b=WlvRf1zJvdpMssJieFTf2n9fBemMeorNNycGJN3dmsvuCNRhzLmn2PbCJqZiOQgoMA kYDjpO3WvXpTV37M5c6MhrTKJtc7qC9i7oomeZtfMZiRT4xfcaqXBHYN87ob6sW1cZ3H uJKivZNadOHkBK2gMEph76ZmkKN7iJd9ITxJSlX5SJRDr+I4tUt4ZeulxSOGjuws8FU9 POW4hLqWqSksEYPXouXrXLBGHGbFQsGQ1FW0eG595rAieoYAuxAyIoXkOqjqddzMBpgA Q3Z3KyBzFEVh4ukUIqMahnzSKGQKtOy9FvlqmEdpKQtx60hvEUOSsJtv5ZMboBIIaggY pOJg== 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:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=s1yWjQCqCwa9NMp7XrnTTJPNWDW+RwuwhqDSXVB8QWw=; fh=yxBFrAda/axA51ZGgStpXSvpG5/vR0crU9X4MpSPG/E=; b=LgEXXoIOSQeut5qOmirC2hEGQS+D/H74EZ30CabQqndOM2aPLnmJL3r4sUDo+UwMxL Jmf5Lsn3+5GRaUTH6qVKCA7TpRSfP2kX09eHKUB7vheAxeJQLqAJhGv7doO9H783w6My B9NF1hIWsImcqBk32boCbVzZdp/ge8xVEGs7KES+e691nuUMqC+VO61NSVXY2ALRe7EX aH5UfkiRL8LYnOjAq/LmkhCAnFV5anXVn8XlzOp6T4lYEkbjPDneeQy87gCPmpkVaIHh kUO9Cr/KTSsx+CWEyHMO8/t2XOOW6+IdmqjcRRem5vu4SY4v4khaTEs6LJyzS6GJ6lw0 ulFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iJpo4bFC; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-49133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCXVKbu3V2Q1+9bvL9mKZQvJPuzp5ZnSUax1zkvrmP165yOsBxdyoJVu/Etg2QgHJTpxmMxBhVO9IluUxa9UNh8/We7N8dMDzDKJcrivdw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vq10-20020a05620a558a00b007853d7f01bbsi1048942qkn.199.2024.02.01.19.06.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 19:06:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iJpo4bFC; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-49133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49133-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7F26E1C25A87 for ; Fri, 2 Feb 2024 03:06:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D760D27F; Fri, 2 Feb 2024 03:06:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iJpo4bFC" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (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 13946DDCE; Fri, 2 Feb 2024 03:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.134.136.31 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706843172; cv=none; b=TLS3wNunLICxT3MkCQS6OoNoj1vy3aihsJp9LLZbXrhwn9+as6yiVqivrpGqsR/8+uMvaHPoPfaLaoCPsP6zMtc+RkkUxQLeWvIhxP8pj2UDq/r86Rdvl9Bugye6Hh+pY8P/f9vk4/qzuEv5bUFXwmcr9BIB5nOuZpe0q3utFWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706843172; c=relaxed/simple; bh=tGLiGtD2ffb0omsWaMaWz1meXi7Me/QbXHDdjQQbe+c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rMWcJ/rZqe3A0EWIG509HTosLTbiG+QDth6od3zQO8upOTk2A6renaxvks4WF+YOKdmZhgREjMZWlD6gDLdT0FVO2JY51LZBrqRpsijDHmS5fSKl/WwuL330HvpxICG7ghFABgm73H43Spn7FKnIugx088WCjdjxi5gK+tLDacM= 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=iJpo4bFC; arc=none smtp.client-ip=134.134.136.31 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=1706843171; x=1738379171; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=tGLiGtD2ffb0omsWaMaWz1meXi7Me/QbXHDdjQQbe+c=; b=iJpo4bFChC9X7kZ6k8wND0L+OrzpKOpDgb1FBvCr+MpJwJ3AjBAiFeUf /aoGNXy24ESQPoJQvWjrTbvAOJKqemsOp4IXdhiWH1uRkNUVTHozPRPOq CmHBkfs0g5EHyy39wn52hRjm8ElLT7Nn4jx637IYVkIPNt3+SAODdkK2m pdijyzWATzyM9lsRybBMFlsSvQC0PN4PeJALTdNOF9K7IvUtsEoZTF3g5 3q356Z/SmaDoF6PjVdCCGh+xUV6MA38wuq8841lqrCSyFJjQ+9uQZ5ZLD +ub2KiBcnj4b/wWmA5BTyfTAgiAkjKmp35Ew6RWIfDq2391u8eL0lrwbp g==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="468283919" X-IronPort-AV: E=Sophos;i="6.05,237,1701158400"; d="scan'208";a="468283919" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 19:06:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="859304194" X-IronPort-AV: E=Sophos;i="6.05,237,1701158400"; d="scan'208";a="859304194" Received: from choongyo-mobl.gar.corp.intel.com (HELO [10.247.22.55]) ([10.247.22.55]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 19:06:01 -0800 Message-ID: Date: Fri, 2 Feb 2024 11:06:01 +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 net-next v4 08/11] stmmac: intel: configure SerDes according to the interface mode Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: Rajneesh Bhardwaj , David E Box , Hans de Goede , Mark Gross , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Richard Cochran , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Andrew Lunn , Heiner Kallweit , Philipp Zabel , Andrew Halaney , Simon Horman , Serge Semin , Netdev , LKML , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org, bpf@vger.kernel.org, Voon Wei Feng , Michael Sit Wei Hong , Lai Peter Jun Ann , Abdul Rahim Faizal References: <20240129130253.1400707-1-yong.liang.choong@linux.intel.com> <20240129130253.1400707-9-yong.liang.choong@linux.intel.com> <99d78f25-dd2a-4a52-4c2a-b0e29505a776@linux.intel.com> From: Choong Yong Liang In-Reply-To: <99d78f25-dd2a-4a52-4c2a-b0e29505a776@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 31/1/2024 6:58 pm, Ilpo Järvinen wrote: > On Mon, 29 Jan 2024, Choong Yong Liang wrote: > >> From: "Tan, Tee Min" >> >> Intel platform will configure the SerDes through PMC api based on the >> provided interface mode. >> >> This patch adds several new functions below:- >> - intel_tsn_interface_is_available(): This new function reads FIA lane >> ownership registers and common lane registers through IPC commands >> to know which lane the mGbE port is assigned to. >> - intel_config_serdes(): To configure the SerDes based on the assigned >> lane and latest interface mode, it sends IPC command to the PMC through >> PMC driver/API. The PMC acts as a proxy for R/W on behalf of the driver. >> - intel_set_reg_access(): Set the register access to the available TSN >> interface. >> >> Signed-off-by: Tan, Tee Min >> Signed-off-by: Choong Yong Liang >> --- >> drivers/net/ethernet/stmicro/stmmac/Kconfig | 1 + >> .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 113 +++++++++++++++++- >> .../net/ethernet/stmicro/stmmac/dwmac-intel.h | 75 ++++++++++++ >> 3 files changed, 188 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig >> index 85dcda51df05..be423fb2b46c 100644 >> --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig >> +++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig >> @@ -273,6 +273,7 @@ config DWMAC_INTEL >> default X86 >> depends on X86 && STMMAC_ETH && PCI >> depends on COMMON_CLK >> + select INTEL_PMC_IPC > > INTEL_PMC_IPC has depends on ACPI but selecting INTEL_PMC_IPC won't > enforce it AFAIK. > Hi Ilpo, Thank you for pointing this out. I will check on my side too. Will fix it in the new patch series.