Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7633920rwb; Tue, 15 Nov 2022 15:34:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf6NYI+DzcbfhbMR8P6jjCj/ToEeuSJLmuLBvzg1Dcxf5IbxcxRQh4kn4XCalRYX72g/zI/V X-Received: by 2002:aa7:d716:0:b0:461:cdfb:3072 with SMTP id t22-20020aa7d716000000b00461cdfb3072mr17276956edq.56.1668555240957; Tue, 15 Nov 2022 15:34:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668555240; cv=pass; d=google.com; s=arc-20160816; b=ZLyKiRUFHrW3Yxaj+G3BVQgIWAI4X1mnsuNpfWQGyT+oy8gIZVqjRGQREqAGKHQ/1t yqzgH3u8o2g19+FRbEe5VlFF/xts7tanGkiJ3YJ74NRNdzWcbAIpEup2zxdP0e1xQKhw ntIrqS75hGVDHLPz5YYDi4VCCHQcv7lhAtNnzsMFeRd2eE4758d6eca+5i5A7zUsSqts DOQ5UeJ/Lve/ya/w8Iu7Mtc1yKAzJef9gTnkEi5Z1aKd1IIUMFUaOtvGgBx/bDgAIK5H c8e/8mFQG5stuVEySDoTtwG1deOfz3doi0NO3as7y5QJ7zIf8WVP7Kx0YKZv79rKwoAn 80pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=lIJCjUYikoZnaJUmD/oS23+7ZFraEHzOXYDBWrNhn6M=; b=SiRRz09bcKnsTr79KXkLcMzigRoYn9yN81tAbZ9yZHVXWmJ2KsBH/SZhxrShDRAbK3 6v7jphlXq25XCVV0XitF8DuiEjPNCB0B3ze9LFPoxZVHiNnmbdf4gFxTnbG/a7sLeP7n V+NmJAN9zesSQfW/X5bx3yCIb0QMyYlthhmBTtkDizy8r09kVkSCyeiiQYB2x6HH4dOL vAp48CMX8wqBX3/B11BFAJ9Vef/PV4q2ll4jRmhHOEVgIYCO+Blz3tsVwhy8n16qe8ie QOwZVf6oOuVnskT8q1AWKmlkzAHmDWAcT+cOmy6JruTeL4V2MGwrdNBmz7gLNHqno8tj TYQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@seco.com header.s=selector1 header.b=eXqopvpX; arc=pass (i=1 spf=pass spfdomain=seco.com dkim=pass dkdomain=seco.com dmarc=pass fromdomain=seco.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=seco.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a1709067c1600b007829d30452asi8755135ejo.583.2022.11.15.15.33.39; Tue, 15 Nov 2022 15:34:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@seco.com header.s=selector1 header.b=eXqopvpX; arc=pass (i=1 spf=pass spfdomain=seco.com dkim=pass dkdomain=seco.com dmarc=pass fromdomain=seco.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=seco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232442AbiKOWrK (ORCPT + 90 others); Tue, 15 Nov 2022 17:47:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231521AbiKOWrF (ORCPT ); Tue, 15 Nov 2022 17:47:05 -0500 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2072.outbound.protection.outlook.com [40.107.103.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A641F623; Tue, 15 Nov 2022 14:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LmgGRuOwO0Q8LLHgGpsgmnewRg++egMLw53PUV7NrWaBnqv6azzlsPqUzwj39LBOMlVVPu0GlS3iQEHmG+C3lJ8kB7krqrFUHl1LSWSojmVGDBWERTVjgrrjiOdrNEb47fin9FV7eRqVBXJtOeO8XJJNuuJWa/3PQTb5WJxn0oZDiz5N6jGwiCyOuxHlm40vfHY137xFjgY4FcBHgI4OUoki0Bqb7FM5HnBy1E9derKmXgBP4i/3z8rjH7H6kjel4peKx72lp0QredmzLDYXj7P0LSHbKUE5Px4HlMoZA/Rd9sNyGbR8tp1lNHhP4j78GbQXFtCJ8VfrarUGac6Ung== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lIJCjUYikoZnaJUmD/oS23+7ZFraEHzOXYDBWrNhn6M=; b=fXwNPaphJ4bWOGSc+hltnDo+ow/0N08g4CZeKwq1rgvCbF6iEbwgU8zwG22Gas8Gf9wrAmSOMhICflHcMXvi7zbIWcLvZ+FVR80O+9EldWSLFc4rn0b9twHVnlsIvMR5bycj1LcQGkgAbnAZmupWfsxYJ5XOKoN7sYIs5lelIKMZUDNSDHe4dzeFoJAnR12AdBuo67sQ/pjGBz4pkT9foZFJKTgHryEl3rWDZWb9LooV25+Dmhc8qxdDPz461BQH8ZzLcZMGdTqIIhLUnHbBz2wz7otAuLuCChmVGRt8XT6orfI8uojJr8fW8o0ZnuXVdOw+MOdofreHAX7Y+5lzxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lIJCjUYikoZnaJUmD/oS23+7ZFraEHzOXYDBWrNhn6M=; b=eXqopvpXkyzx7xLwTsN56IlHL0p/5BaCVrbNraupZcOVvCjM9uPV9Z/34rc0+00lq/VwuqEOpVnw1UrCMrHR7kVEUiYMg7R9ZNT7IXz7mzko7ryiNcCzpe8TC0ttAJ++7ozChH/INd7kNIjU+Zgfe6TujRTx0kGtRhBHeRgepCxrvIi9jHq+o+J/48icNQ8rlYrhg6ur5Vpw5N9XJ7LcoCN8D6DH3mnlhNrUfuQGfCx6TXndKCpnEMN3yX5xsJz5WRt1AMMajldf2BLiNoMCrUukaa6f1DYp3a9yQejMrsW+FmvXhHlbF9K29D0IpX2+yURSMZ/NQOUPRfr0FX0z2Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by AS2PR03MB9347.eurprd03.prod.outlook.com (2603:10a6:20b:579::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.13; Tue, 15 Nov 2022 22:46:59 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::e9d6:22e1:489a:c23d]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::e9d6:22e1:489a:c23d%4]) with mapi id 15.20.5813.018; Tue, 15 Nov 2022 22:46:59 +0000 Message-ID: <3771f5be-3deb-06f9-d0a0-c3139d098bf0@seco.com> Date: Tue, 15 Nov 2022 17:46:54 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH] phy: aquantia: Configure SERDES mode by default Content-Language: en-US To: Vladimir Oltean Cc: Andrew Lunn , Heiner Kallweit , Russell King , netdev@vger.kernel.org, Eric Dumazet , Tim Harvey , "David S . Miller" , linux-kernel@vger.kernel.org, Paolo Abeni , Jakub Kicinski References: <20221114210740.3332937-1-sean.anderson@seco.com> <20221114210740.3332937-1-sean.anderson@seco.com> <20221115223732.ctvzjbpeaxulnm5l@skbuf> From: Sean Anderson In-Reply-To: <20221115223732.ctvzjbpeaxulnm5l@skbuf> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MN2PR02CA0016.namprd02.prod.outlook.com (2603:10b6:208:fc::29) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR03MB4972:EE_|AS2PR03MB9347:EE_ X-MS-Office365-Filtering-Correlation-Id: df95cb65-bc6a-4ed8-b263-08dac75b4dc7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3EIYibbVWY9/yujQOev/0Ba31hyWK2CJqyVKAaRZuJk1YriaHxWWGTeEKWVPcmyDnJcwmTw1v1JWh+yrqB2Lu1ZZGsJT7zVFGqU2sXu1c40nZAaoKfMJWKnPHZrG3oUiOlHXk93c5WxEr/FItMFXJJ8GP15MPgNTQ54NsKcU3C5SSNbmE496zFSQ6buOP0AeJE8Y/2WrAjy/kVHz4JaYgRsVwcIf5Lhecyv1O94EcPYGrWNASuyAOGxdU8yUxfUB034otZ3T95h4g1Myiw4Y2vZ+97p3ROIZ/uyXhad+DPaF/wSY7wrvh2tkMcct58kS5IiAzIorVcF2UCpfSQ/6aFU4w49nu1Ox+ELa4ACQGTAJRi1FnE2KvIIky8IyZTQK/LNPcNolJObVh6b+zNijWPvnYTTKHWWkdJMb2/MjGtu9g2W3C2hWju6HM1qw1llnoIoc2HlvaCU0d9S7A5QSXLlwZpSq+gLLxG0ZCfzzYwWk37EoNtoOHX4u1M7+nSNsb33XwLYRTWqR3a9OyFT5+ICqUFlmioEhXvZ56OG0Hp6Pqw83phK1Z3vC6Nmkev13S3WuJ9JP/sKY9GUs26H6Ovoy9GlF4jT9Zs7yLtLIt/+vg0ODPjEcR0YOZS9RWRukSNmqj+eYdW+k+QoYQM+nKLB9hFdTBOTAylYq2GAydKMA0DvOR509zcbOvHREQmFzuuy8zWzr3bs7q20b+0IXwYeFz8gqamyLIJXzJGCc0caT8QtFujA8wLKRkMcyHPMOe05iG32k9yeU/4oNYuf+7eY7Gx8pwraEDdKh5wv8KsKvjr5C8CPvsSxYzL1Wv4FM X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4972.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(136003)(376002)(396003)(366004)(39850400004)(451199015)(478600001)(6666004)(6916009)(54906003)(83380400001)(31686004)(6486002)(8676002)(66476007)(4326008)(66946007)(53546011)(66556008)(41300700001)(86362001)(6512007)(38100700002)(6506007)(8936002)(2616005)(186003)(52116002)(5660300002)(316002)(36756003)(26005)(7416002)(44832011)(2906002)(31696002)(38350700002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b2dyZk5CNGZ0WWgyRk4veldidmlDWU9Jcjl6SVdab0hiSE9WdytEbXBiejZQ?= =?utf-8?B?MzdYWnZENjBZeFE4dTBVUWFURDR5L0liSXE0NVJweUtvYzVTSWJZYVM5a3N6?= =?utf-8?B?UWpobmxXRkZYQ2l1T3M3OVd0TEJ0VFFoU1dnWGRrc0lhVDlyZVgzTTAvZWIr?= =?utf-8?B?eEFIQkN3MnBUUH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D?= =?utf-8?B?QkdXcGt5WG5OcDlpWGFzY3V1RUlDN29Famtqc0hNMWRibkRSWlBxUk1uTDlr?= =?utf-8?B?ZVdlcmVIVnZNeGZic3hPN25FcUZhem1NMTNwb3g0bmFOS3pneW1qYnRJMDFZ?= =?utf-8?B?eVp4LzRUdzVJVzFaajF4Qmx1SE85Tmd6ekFGVnU5TXB2WEp6Z3JIVWNtTTQw?= =?utf-8?B?K2c9PQ==?= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: df95cb65-bc6a-4ed8-b263-08dac75b4dc7 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2022 22:46:58.9261 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OKyS/l+26KbWmXhjIsw6QasQQZmh2sYFQNZBNhbRHWAFyMngDiLUyYn5p1Xy+IN4yVYpB6LXpvJJj6XTNsHRtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB9347 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/15/22 17:37, Vladimir Oltean wrote: > On Mon, Nov 14, 2022 at 04:07:39PM -0500, Sean Anderson wrote: >> When autonegotiation completes, the phy interface will be set based on >> the global config register for that speed. If the SERDES mode is set to >> something which the MAC does not support, then the link will not come >> up. The register reference says that the SERDES mode should default to >> XFI, but for some phys lower speeds default to XFI/2 (5G XFI). To ensure >> the link comes up correctly, configure the SERDES mode. >> >> We use the same configuration for all interfaces. We don't advertise >> any speeds faster than the interface mode, so they won't be selected. >> We default to pause-based rate adaptation, but enable USXGMII rate >> adaptation for USXGMII. I'm not sure if this is correct for >> SGMII; it might need USXGMII adaptation instead. >> >> This effectively disables switching interface mode depending on the >> speed, in favor of using rate adaptation. If this is not desired, we >> would need some kind of API to configure things. >> >> Signed-off-by: Sean Anderson >> --- > > Was this patch tested and confirmed to do something sane on any platform > at all? This was mainly intended for Tim to test and see if it fixed his problem. --Sean