Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp655423imn; Thu, 28 Jul 2022 11:43:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR4TTs998B8LUHaeTnbm7Rs7cz6DvqagzEP/eU1tNBkeZvOvLt1I8WwzmDU9GQE9FJigIiTF X-Received: by 2002:a17:90a:560c:b0:1f2:fd0d:3761 with SMTP id r12-20020a17090a560c00b001f2fd0d3761mr36576pjf.15.1659033818345; Thu, 28 Jul 2022 11:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659033818; cv=none; d=google.com; s=arc-20160816; b=PUt3TFo8yMFHqA0AXR8sDM/wRXGOoiCPE2wKug36GkWK0SMGar/84F2QFk01sbo+Ej vVVuCDpIuCFq6Ae0tqHPPHfU+LHZD0dhwd/pXU7qNldGGzID1kCERmUBO089spsUk/wS UdY8CE5FS6i16+iVAPVuPvT/0p+1QS/2hGrU0D0zNSIExm/B7y+rjGtpYsnjH+tDyj89 xCqQ1ltyPLqNfwznpaav9FjhviQqO8XDtRd3UfMkEip3EzqQyVfr60gkJP2zmcUwiLVr rKBkNoaGgjxgsazc1tXWgeUuQq3ggJxPZrsmJXswybcyW+K/yZ55vzF49Ql0HQi8GxhX aC7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/cyqjGuqo8Xez9KZB2n6ef57YiIlFUesAYzckfJsYgo=; b=kw9cm2SkrUef9Ia94y8nqEk7SL2tz4Drb4IkarjGkKzs9a270bRmIDQwsOz5UiWqO+ J5xoXJMKHWOsLXnNv0OACR0DfB5aoyS3XKiyB7x9V0HSHi0WQM8dg7mZT3s3UJQKbrbE EifVz96rIV+NGn3qy8Czr1YWt6SyZyba8UPNr75EtarSKm6537VfwlW2uSYDXSLbDJNJ wi5s2IDIqYG6zRaoRBbWRp6nqaZHu4gbSUc0baWHKCprPeWOVpE5GtjxxlFdITM+CmvY qCFTf5/A1bB33ncDkEgWm8lHOug+7lpX41ZSGCtYGdzVqOaeXSTjGAEaFuGR821t3rlc GDhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EQH5K+Oc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a170903228d00b0016bf8021664si1925281plh.203.2022.07.28.11.43.28; Thu, 28 Jul 2022 11:43:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@redhat.com header.s=mimecast20190719 header.b=EQH5K+Oc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230299AbiG1SmY (ORCPT + 65 others); Thu, 28 Jul 2022 14:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231841AbiG1SmU (ORCPT ); Thu, 28 Jul 2022 14:42:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 479E874E2B for ; Thu, 28 Jul 2022 11:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659033738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/cyqjGuqo8Xez9KZB2n6ef57YiIlFUesAYzckfJsYgo=; b=EQH5K+OcJyGbOgjw89i10+je8WHJmr7uN+JONPO/N5KLidAQOX2OheBbjFSOd/1eLIG9NI D4dBDAYzm8rnv2qQxTCQLHn2E85caqGeod/IRHA3+1T5jdKGqR/otourWqH456iMb8EzWk nupHNR9VPgakLloWAUNP04V5hKD5PXs= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-528-ZBJ6nhwtPOywIxq2bvkTWw-1; Thu, 28 Jul 2022 14:42:16 -0400 X-MC-Unique: ZBJ6nhwtPOywIxq2bvkTWw-1 Received: by mail-ed1-f70.google.com with SMTP id w15-20020a056402268f00b0043be4012ea9so1597555edd.4 for ; Thu, 28 Jul 2022 11:42:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=/cyqjGuqo8Xez9KZB2n6ef57YiIlFUesAYzckfJsYgo=; b=tGqEHhGnMA+iZbUAnYse+ww4T8deuM42vS7JRgO4zezVmUFAIku9txUadFUJXE41X/ OPOMlVD4FyteGNkB/sWGV8Lf4f86W0ua/+nxuzPgty1k46iTXOS7SFTwHQ0OIEdGCg90 5ZnsXi5QnVSA3BYKgyYMjs6K5peqeoEZyXP5+gbbj4O0YqPkiK9LzmHNAcb74pyDrL55 MTb7D/fIDwplotfXwUyLHCdig0jNp3m+Gtva094Mt4lIvo4uui3PYypb7bAHD+5o+Lyl DeIkpOUGgQjelzIma6ZlRS5JNQM8pyE17PJ6Bp0Ja5hxoTgnVr1klOAmuEqmvUTNv8Jr hRgA== X-Gm-Message-State: AJIora8CzM6ygjRVQNUixTCxvCcKdbPmhjs05Yo+Qw9C681IGPNxS0uD yLeL6BbV1gGip2OeLxOvn8W/1oAjbIdk0wWIuld3ydJKFZB4C2ehfjh6ZNMcOj3zIOdZzNCQoCb phUxN5/thmuSeS2iZBZjd1cZYbz0= X-Received: by 2002:a17:907:2848:b0:72b:5ba5:1db5 with SMTP id el8-20020a170907284800b0072b5ba51db5mr174742ejc.703.1659033733781; Thu, 28 Jul 2022 11:42:13 -0700 (PDT) X-Received: by 2002:a17:907:2848:b0:72b:5ba5:1db5 with SMTP id el8-20020a170907284800b0072b5ba51db5mr174717ejc.703.1659033733286; Thu, 28 Jul 2022 11:42:13 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id w10-20020a50fa8a000000b0043bdc47803csm1150947edr.30.2022.07.28.11.42.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jul 2022 11:42:12 -0700 (PDT) Message-ID: <71041a3b-cdb4-dd3a-d94e-c8f77179a31f@redhat.com> Date: Thu, 28 Jul 2022 20:42:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] platform/x86: pmc_atom: Add DMI quirk for Lex 3I380A/CW boards Content-Language: en-US To: "Matwey V. Kornilov" Cc: Andy Shevchenko , carlo@endlessm.com, davem@davemloft.net, hkallweit1@gmail.com, js@sig21.net, linux-clk@vger.kernel.org, linux-wireless@vger.kernel.org, mturquette@baylibre.com, netdev@vger.kernel.org, Pierre-Louis Bossart , sboyd@kernel.org, markgross@kernel.org, platform-driver-x86@vger.kernel.org, open list , paul.gortmaker@windriver.com, stable@vger.kernel.org References: <20220727153232.13359-1-matwey@sai.msu.ru> <5f0b98a5-1929-a78e-4d44-0bb2aec18b5a@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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-wireless@vger.kernel.org Hi, On 7/28/22 20:39, Matwey V. Kornilov wrote: > чт, 28 июл. 2022 г. в 21:33, Hans de Goede : >> >> Hi, >> >> On 7/27/22 17:32, Matwey V. Kornilov wrote: >>> Lex 3I380A/CW (Atom E3845) motherboards are equipped with dual Intel I211 >>> based 1Gbps copper ethernet: >>> >>> http://www.lex.com.tw/products/pdf/3I380A&3I380CW.pdf >>> >>> This patch is to fix the issue with broken "LAN2" port. Before the >>> patch, only one ethernet port is initialized: >>> >>> igb 0000:01:00.0: added PHC on eth0 >>> igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection >>> igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 4c:02:89:10:02:e4 >>> igb 0000:01:00.0: eth0: PBA No: FFFFFF-0FF >>> igb 0000:01:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s) >>> igb: probe of 0000:02:00.0 failed with error -2 >>> >>> With this patch, both ethernet ports are available: >>> >>> igb 0000:01:00.0: added PHC on eth0 >>> igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection >>> igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 4c:02:89:10:02:e4 >>> igb 0000:01:00.0: eth0: PBA No: FFFFFF-0FF >>> igb 0000:01:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s) >>> igb 0000:02:00.0: added PHC on eth1 >>> igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection >>> igb 0000:02:00.0: eth1: (PCIe:2.5Gb/s:Width x1) 4c:02:89:10:02:e5 >>> igb 0000:02:00.0: eth1: PBA No: FFFFFF-0FF >>> igb 0000:02:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s) >>> >>> The issue was observed at 3I380A board with BIOS version "A4 01/15/2016" >>> and 3I380CW board with BIOS version "A3 09/29/2014". >>> >>> Reference: https://lore.kernel.org/netdev/08c744e6-385b-8fcf-ecdf-1292b5869f94@redhat.com/ >>> Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL") >>> Cc: # v4.19+ >>> Signed-off-by: Matwey V. Kornilov >> >> >> Thank you for the patch. >> >> The last week I have received 2 different patches adding >> a total of 3 new "Lex BayTrail" entries to critclk_systems[] >> on top of the existing 2. >> >> Looking at: https://www.lex.com.tw/products/embedded-ipc-board/ >> we can see that Lex BayTrail makes many embedded boards with >> multiple ethernet boards and none of their products are battery >> powered so we don't need to worry (too much) about power consumption >> when suspended. >> >> So instead of adding 3 new entries I've written a patch to >> simply disable the turning off of the clocks on all >> systems which have "Lex BayTrail" as their DMI sys_vendor: >> >> https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=c9d959fc32a5f9312282817052d8986614f2dc08 >> >> I've added a Reported-by tag to give you credit for the work >> you have done on this. >> >> I will send this alternative fix to Linus as part of >> the other pdx86 patches for 5.21. > > Thank you. Will your fix also appear in stable/lts kernels? Yes it has the same Fixes tag as your patch did, this will cause it to automatically get cherry-picked into kernels which have the fixed commit hash. Regards, Hans >>> --- >>> drivers/platform/x86/pmc_atom.c | 18 ++++++++++++++++++ >>> 1 file changed, 18 insertions(+) >>> >>> diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c >>> index b8b1ed1406de..5dc82667907b 100644 >>> --- a/drivers/platform/x86/pmc_atom.c >>> +++ b/drivers/platform/x86/pmc_atom.c >>> @@ -388,6 +388,24 @@ static const struct dmi_system_id critclk_systems[] = { >>> DMI_MATCH(DMI_PRODUCT_NAME, "CEC10 Family"), >>> }, >>> }, >>> + { >>> + /* pmc_plt_clk* - are used for ethernet controllers */ >>> + .ident = "Lex 3I380A", >>> + .callback = dmi_callback, >>> + .matches = { >>> + DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), >>> + DMI_MATCH(DMI_PRODUCT_NAME, "3I380A"), >>> + }, >>> + }, >>> + { >>> + /* pmc_plt_clk* - are used for ethernet controllers */ >>> + .ident = "Lex 3I380CW", >>> + .callback = dmi_callback, >>> + .matches = { >>> + DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), >>> + DMI_MATCH(DMI_PRODUCT_NAME, "3I380CW"), >>> + }, >>> + }, >>> { >>> /* pmc_plt_clk0 - 3 are used for the 4 ethernet controllers */ >>> .ident = "Lex 3I380D", >> > >