Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3912991pxv; Tue, 13 Jul 2021 06:46:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPG5TEFnu3OFWJPU+4d7L52mhwv8CmJ8cE9OPYjLxEpbjddfUR7cS6tZvhc1qj0OVKHOq9 X-Received: by 2002:a5d:9396:: with SMTP id c22mr3401110iol.204.1626184018551; Tue, 13 Jul 2021 06:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626184018; cv=none; d=google.com; s=arc-20160816; b=tHPbj/9XPbX2Tc7ioMht1fWn9UYx+VlzBQkwB6/Mt4utvRxQF0yZl9pYYAXgAgXdAF VdxQTe9xe9HDKnAlfjNb+Op+pZrD72QoBPIjowl4RZFPjkI5BqmJrcqaRKQ+g7DnCMYm axOtneg6eHiVBeNywrQaEhGfjpDDmEcvXSgXh8JvR1SGZKQXtj/Lds3NI0zdWQhamzuD 1Xq8ZYbl86UnWGchWXQIuzraOXRvib5WFi+hRMR16PTgUyc5XquArkkj8/vWK0uXOJ6s PT+z75jKHrA8XFJ+R2yBdhMVAroijjIRHom0FxEcifyAiL7tAw+lwEPb5XSZlBh+8OVc ukBA== 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 :to:subject:dkim-signature; bh=XFchaAmc9L6ZJAbgvoritLLDGb3RUOvHfIzleghA+mI=; b=vd8zDO7lceqb5g9nlcEU2tcZiTJ0KQ/YAnsk8Fn4Lk1baIAKw/9QciiKa+CK540CGl yQtbDNBl0n5/dLm3Xjd/LnE5XcfAoMwn3yssOa/nZgnG2TwYVp8dQ3V8tqGoQgKEvM0g /l+Wtxj5qMRxSvEcc0l/sCxUkcDWNLqDpEcCcaivDjPwqpiXef+k/cOabzinXtqowb5F 82vYMYVmyprn1qbo/VS+aIIRj9jndasvSuw2SnVXyRzaI0jQQDNMLQsHGwBLpp0LyVza Amo+tJ0ovlMCxX0QFiueZhXJLUAooUKqe2LHXM2SLYDtkV/WLtNzohb+dxCdFzQ1wk9L mDAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=habbnrJB; 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=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si12480131iop.92.2021.07.13.06.46.42; Tue, 13 Jul 2021 06:46:58 -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=@canonical.com header.s=20210705 header.b=habbnrJB; 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=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236680AbhGMNsO (ORCPT + 99 others); Tue, 13 Jul 2021 09:48:14 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:48448 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236222AbhGMNsN (ORCPT ); Tue, 13 Jul 2021 09:48:13 -0400 Received: from [192.168.1.18] (unknown [222.129.38.167]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 08DE1405E6; Tue, 13 Jul 2021 13:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1626183922; bh=XFchaAmc9L6ZJAbgvoritLLDGb3RUOvHfIzleghA+mI=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type; b=habbnrJBNcH29BI7CQh8bNqPF/4LUngU9TvbzFiOCYIGJuBzIWvsI16wSn29vO9/o 2PMGpzdlTGZLSp8joo0aiJkCC4tHsoe4gzSPN8fxq39b0ap1od9qrZUUTBeO+NlhvB bAFsl6roxPoTV18hoIdUyjCeu9n7bTq3mNve10yqVUfIps5vjT7XNrjLDxShl20w2r Qg6V+AN9o438AqKbrJldHbtRBTlvXWimys19reH0SEsxDpG2MsYbJ8EEKOHs9Y63OU htdhkg538ytmoern4qT72H8mtHrTgvN7g5CUFUnHIheh9w4FsihIEdt1lEk1EDrMh4 IOJdkDFyleHTw== Subject: Re: [Intel-wired-lan] [PATCH 2/2] igc: wait for the MAC copy when enabled MAC passthrough To: "Neftin, Sasha" , jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Edri, Michael" , "Ruinskiy, Dima" , "Shalev, Avi" References: <20210702045120.22855-1-aaron.ma@canonical.com> <20210702045120.22855-2-aaron.ma@canonical.com> <613e2106-940a-49ed-6621-0bb00bc7dca5@intel.com> <96106dfe-9844-1d9d-d865-619d78a0d150@canonical.com> <47117935-10d6-98e0-5894-ba104912ce25@intel.com> From: Aaron Ma Message-ID: <1a539d4d-10b4-5b9b-31e7-6aec57120356@canonical.com> Date: Tue, 13 Jul 2021 21:45:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <47117935-10d6-98e0-5894-ba104912ce25@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/8/21 12:24 PM, Neftin, Sasha wrote: > I would to like suggest checking the following direction: > 1. principal question: can we update the netdev device address after it is already set during probe? I meant perform another: > memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len) up to demand Updating MAC addr may work. Even at the end of probe, it still got the wrong MAC address, delay is still needed. Aaron > 2. We need to work with Intel's firmware engineer/group and define the message/event: MAC addressis changed and should be updated. > As I know MNG FW updates shadow registers. Since shadow registers are different from RAL/RAH registers - it could be a notification that the MAC address changed. Let's check it.