Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4262596pxt; Wed, 11 Aug 2021 01:38:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPlhIHKaOV0Ce5t1IR9WLCBRGm7veQfjY7cA9fuqCRIf+Dznhn4PnR0II/uQlRwdAF4EVt X-Received: by 2002:a17:906:c831:: with SMTP id dd17mr2617138ejb.143.1628671124352; Wed, 11 Aug 2021 01:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628671124; cv=none; d=google.com; s=arc-20160816; b=Nyhg5qne6gDuprcy+9BMqZxjs9B/JmS4baTCU01cXREgMKtg0XyDCjtWoW2wkxLRZp KJHjKOvvGt46K8IVomQIkZadD3WaiAlWLd2DtcNpowxZdB4sX+uj2S/o4gKTdRcKhNG6 MbP0cl/bF1uNEVzQKvOgNVca8ZcyvhZsWWZssd9IHzlM1Sxdds6IfgvjoVxvOGVnOmWv NH8AVILFgqJECx1W4TfycuTsFbMENmV7bAN0a0VKamYYklllNxcx6hWc19M39DfSEmXC DbTtTDSU7h4w3H4DDqtU+7YL1oLscxuUrJ/Hrn61zr114qJOd3OTGgPIxHWbeqWWA21g E2jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=r2N2lJNtd9ZVoClfrfgh876Vfdtyeq7ZHkyk/68V1gA=; b=tT8XHwEYNmhWRjmm58NBpnFIl5VW3mi23DuRTuCu/PQ0yNtp2HBJiZx7uD1Xv7VO4B 59G/mcGUfrwZWknEvNC32Npp/qNyCPoQ5hfUyW1vnkg02Y+MfeGvZygWLgk6wZfsenhf szloPQbBpRGpgEEwuodAZ5098TjM+/dBdPa4pbuDjO5PYsec55IknUYY6nevrfyRMhg4 7+i2mv5x+kAPx3zqSAu72SBT9QWuBEWzQJKcLgMTv2ywAv4ogDK13LA1CN6GjzlO25mw wxsG65zYqVK+Aekktx6jqpcNzAZcHVeM6w3Woat4USI/OEadUBJxD2aNRialY6r76+bc jHTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dSYtxaXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si23103564ejb.391.2021.08.11.01.38.20; Wed, 11 Aug 2021 01:38:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dSYtxaXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236091AbhHKIhZ (ORCPT + 99 others); Wed, 11 Aug 2021 04:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233112AbhHKIhY (ORCPT ); Wed, 11 Aug 2021 04:37:24 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09872C061765; Wed, 11 Aug 2021 01:37:01 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 203-20020a1c00d40000b02902e6a4e244e4so1374173wma.4; Wed, 11 Aug 2021 01:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=r2N2lJNtd9ZVoClfrfgh876Vfdtyeq7ZHkyk/68V1gA=; b=dSYtxaXDCl25xHC0RUhzvW1jjtWK0C461gFRD7NdUbEikkzJ0Fq2JFdLgvgeZTSYPt vGbHkLazdljjkjZgnlAOEJPz90n7dwcNji7tOWR2r0zV8KjMQiNCMQeZiHbhafyPm4e2 HbdN7bYSWTwGCaLzlZAjivjzq536vg0oBvWAeflq9zyo7rzP9ZliT8rW5e1rAh+jI+y0 qm1Z3ltM8zkefRQ9DwenwuOH+arhQ526i2rxdWGu5ooK7ns/Ov5Vmd/xUp06ZurBOKcK HyTVfTQvaae4haJmjC8Mt65Ha7htxJoCWH4ZIJ6dY4e0ytXFv70jJC2XLg9BqvWLvxJ/ ROBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=r2N2lJNtd9ZVoClfrfgh876Vfdtyeq7ZHkyk/68V1gA=; b=Cmytka3+Zyi/vuO+Ra4yYnd3C782al4JvHephR/AbnXnUsCGOPaDkKYdsg4h7et/9y AX+7m6a1N96ljBCQNRnJ6yugWyPk1ygWEG7+8TAkFkdlgDNV8Q3h7Y7B7lzuKsuNLDWK TpwuBSinOSXgGAIHxoAgKq2GitP/zX+hzH9b1p607+6KBcyzg5X3xqz2Qsjw9reoLvEr 03SSJHVIAs+J/WfoB9K6SoeT42371wrzk0wk8pavOuAWm/5cuXt2MHYhxIhbzVHcZyPq c8+BMnCqqPwmUbkyAA/P9NWZWmc66jpk0zud/SJfj6kafNrmRSGdONyBCMIkoz1SkaUq Fqjg== X-Gm-Message-State: AOAM530/a8cnvULKsDvnkoLL1BHXVOkO+ZWE8DZFQvYBi0PuHxwRzxFF a/Cjdk0PKKcDeEr+lLBjuiNq7hUkkSkXdw== X-Received: by 2002:a1c:ed03:: with SMTP id l3mr25447530wmh.56.1628671019135; Wed, 11 Aug 2021 01:36:59 -0700 (PDT) Received: from ?IPv6:2a01:cb05:8192:e700:90a4:fe44:d3d1:f079? (2a01cb058192e70090a4fe44d3d1f079.ipv6.abo.wanadoo.fr. [2a01:cb05:8192:e700:90a4:fe44:d3d1:f079]) by smtp.gmail.com with ESMTPSA id u6sm11308532wrp.83.2021.08.11.01.36.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Aug 2021 01:36:58 -0700 (PDT) Subject: Re: [PATCH net-next 1/2] net: pcs: xpcs: enable skip xPCS soft reset To: Wong Vee Khee , Andrew Lunn Cc: Vivien Didelot , "David S . Miller" , Jakub Kicinski , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Heiner Kallweit , Russell King , Voon Weifeng , Michael Sit Wei Hong , Vladimir Oltean , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210809102229.933748-1-vee.khee.wong@linux.intel.com> <20210809102229.933748-2-vee.khee.wong@linux.intel.com> <20210810235529.GB30818@linux.intel.com> From: Florian Fainelli Message-ID: Date: Wed, 11 Aug 2021 01:36:56 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210810235529.GB30818@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/10/2021 4:55 PM, Wong Vee Khee wrote: > Hi Andrew, > On Mon, Aug 09, 2021 at 03:35:09PM +0200, Andrew Lunn wrote: >> On Mon, Aug 09, 2021 at 06:22:28PM +0800, Wong Vee Khee wrote: >>> From: Michael Sit Wei Hong >>> >>> Unlike any other platforms, Intel AlderLake-S uses Synopsys SerDes where >>> all the SerDes PLL configurations are controlled by the xPCS at the BIOS >>> level. If the driver perform a xPCS soft reset on initialization, these >>> settings will be switched back to the power on reset values. >>> >>> This changes the xpcs_create function to take in an additional argument >>> to check if the platform request to skip xPCS soft reset during device >>> initialization. >> >> Why not just call into the BIOS and ask it to configure the SERDES? >> Isn't that what ACPI is all about, hiding the details from the OS? Or >> did the BIOS writers not add a control method to do this? >> >> Andrew > > BIOS does configured the SerDes. The problem here is that all the > configurations done by BIOS are being reset at xpcs_create(). > > We would want user of the pcs-xpcs module (stmmac, sja1105) to have > control whether or not we need to perform to the soft reset in the > xpcs_create() call. I understood Andrew's response as suggesting to introduce the ability for xpcs_create() to make a BIOS call which would configure the SerDes after xpcs_soft_reset(). That way the current xpcs_create() signature would remain the same, but you could easily hook any post-reset initialization by making an appropriate BIOS call. -- Florian