Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp423781ybm; Thu, 28 May 2020 06:22:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxygD0ZMArJKQGukTmRO2zHIorUydPkYzt2Ar532w4I9ci55/xBsBLqg3mC4d94BP5o/JcK X-Received: by 2002:a05:6402:6c6:: with SMTP id n6mr2949597edy.277.1590672169530; Thu, 28 May 2020 06:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590672169; cv=none; d=google.com; s=arc-20160816; b=kq5r/r1EdgMtaAjAPmrT6m9+UmTKWmB1lapkPpXCiZq6x7cRhFVIj8CyocoGZQgn3W GjIqdE5LZrhVwHDf6v+hmTrWKdPJUldc2ALF41B55l7sJ/lUedW8s5BN0IuNPEG4FLJY BvtFfRmNUqHhqVg+yo5EA1161AqKlDpvePY6E2uGbt9T2Wj9GjfvUwZmfbyiRv38k+37 tvrgFOAv52/uador5E74nHAhG+PEqmD/DJMoMbjIwU6Rs7zIlbSUPV+gLpsgQLe55G2h Pikzw4JzrmcRwiiLvWtuOAGY9U0e5rArg+K0Ck5mdJVmm2LSvQZQtj3Apq4hYutpCLiQ 0oWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=hX70ZlfKccduN1elJvzPYjzNWgWZIz8arydvDiMU+sg=; b=uessTwTnpCeaH/eE6yeF8TcmdJ+mEVlpNJW4zlsLzuthnNIbpMJv46h8mFNiorxK05 LVYH+SsgkMKqbxmFT7KZqfmYZHDBZwwmVC3n6jGFLO+oNjcX+IJ/pvEGIt3wXNY9JArx wa2HHBI9zv6QOiqyor418LfmHICQdzg4kEPyltHIwGhicwkOb+0XOcF3SIgSvCXSwiQS 087yvoXp8NqJYk7w5+PF6A3SWKHda2BUz1Cp4n3v8gIMiymq3W/2o0P+IES45JwsFm7l 03/wq5sqSf+HaEfrrpC1ReQx4raELnmsPX/tsgd7D28epmb/H9fo4pypNrvr3t15hf/x P2Cw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si3895659ejf.44.2020.05.28.06.22.25; Thu, 28 May 2020 06:22:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390287AbgE1NRk convert rfc822-to-8bit (ORCPT + 99 others); Thu, 28 May 2020 09:17:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:45422 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390140AbgE1NRh (ORCPT ); Thu, 28 May 2020 09:17:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B4519ADD3; Thu, 28 May 2020 13:17:34 +0000 (UTC) Date: Thu, 28 May 2020 15:17:33 +0200 From: Thomas Bogendoerfer To: Russell King - ARM Linux admin Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports Message-Id: <20200528151733.f1bc2fcdcb312b19b2919be9@suse.de> In-Reply-To: <20200528130738.GT1551@shell.armlinux.org.uk> References: <20200528121121.125189-1-tbogendoerfer@suse.de> <20200528130738.GT1551@shell.armlinux.org.uk> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 May 2020 14:07:38 +0100 Russell King - ARM Linux admin wrote: > On Thu, May 28, 2020 at 02:11:21PM +0200, Thomas Bogendoerfer wrote: > > Commit d14e078f23cc ("net: marvell: mvpp2: only reprogram what is necessary > > on mac_config") disabled auto negotiation bypass completely, which breaks > > platforms enabling bypass via firmware (not the best option, but it worked). > > Since 1000BaseX/2500BaseX ports neither negotiate speed nor duplex mode > > we could enable auto negotiation bypass to get back information about link > > state. > > Thanks, but your commit is missing some useful information. > > Which platforms have broken? it's an Ambedded MARS-400 > Can you describe the situation where you require this bit to be set? as I have no exact design details I'm just talking about what I can see on that platform. It looks like the switch connecting the internal nodes doesn't run autoneg on the internal links. So the link to the internal nodes will never come up. These links are running 2500BaseX so speed/duplex is clean and by enabling bypass I'll get a proper link state, too. > We should not be enabling bypass mode as a matter of course, it exists > to work around broken setups which do not send the control word. if you call it a broken setup I'm fine, but this doesn't solve the problem, which exists now. What would be your solution ? Thomas. -- SUSE Software Solutions Germany GmbH HRB 36809 (AG N?rnberg) Gesch?ftsf?hrer: Felix Imend?rffer