Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5316294pxj; Wed, 26 May 2021 07:52:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgcEnIXrq7I2Wz53d+zIcVjqtq888p8R4qphCRy4cJC4SPsNk1IPKxN0fBxwQm55KlAlFO X-Received: by 2002:a6b:e00a:: with SMTP id z10mr26984375iog.109.1622040753422; Wed, 26 May 2021 07:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622040753; cv=none; d=google.com; s=arc-20160816; b=h47lOvEoeb3gsSXxhBAAd42zGmAWbvV4J9UE2+JjSEx1HuoZDbckKbJoD0p2LE4uPs nVFCSTE3t9vXXg4GbF9rV3wYeLeNCMa6PjMNbUtRydAXMJokoopeNbG+gHKmMBsNVZwj T8RqHYNnm8tgCLUzr44uE/LsWl3hkkteavfuzioxHdSLjJkwxGiBRex7JHRHSXS0f/Ca BejlNnTIhO12+mT25giutPVkZwJk/TpI9o/qjYAubq/NgpRCnHgz16K6D2GiDbwd/2PM jihzlXAf12C/HtfsOkeH0owtlrB6ffPScmJ6bwfofEB2qM8rfJJ7+WisIC6raYOlihTS q8qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=I5JWsbczlFe4YZRuEN8VclD/4cpClUGEK+Z1V+qbHsk=; b=Wf+VJkZ+2YTO7zq3tPeYW7DWmQZknXrTrAj80IBOIV+BNc8kQEJqaNZJgL4BG5f8HI xaiRNfYKnH2bDYrGgDAtTHUoFSAh2RadmzrNME+CmS+Wf2rCKrng9HFs50f7qM+kcID8 E9WKPcuwzAjny5KNgwk9KTvc24FPfce7yHfRvLY8TyMlBVBnQABHSqDTAjjJMSqMLCUQ ijo7hk7WmWr3ekytv2CnJxYF3xCFCDGSqZ2faCvC6vBp3+c6Whd30PhlkXF5WVzLZVut 5uVGtxj0SFvLgCwgJ4KNeLgVeX+4Idc17g9UsckPEZdQLx26NVrJj5XfUhDTZPS2C3Zu nryw== 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 b12si7285854jag.53.2021.05.26.07.52.19; Wed, 26 May 2021 07:52:33 -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 S235127AbhEZOws (ORCPT + 99 others); Wed, 26 May 2021 10:52:48 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:34166 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235124AbhEZOwp (ORCPT ); Wed, 26 May 2021 10:52:45 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 16DD01C0B80; Wed, 26 May 2021 16:51:13 +0200 (CEST) Date: Wed, 26 May 2021 16:51:12 +0200 From: Pavel Machek To: Mauro Carvalho Chehab Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linuxarm@huawei.com, mauro.chehab@huawei.com, gregkh@linuxfoundation.org Subject: Re: [PATCH v2 16/17] leds: leds-nuc: add support for changing the ethernet type indicator Message-ID: <20210526145112.GB2141@amd> References: <20210519141102.0161a9d9@thinkpad> <20210519162413.4feeab02@coco.lan> <20210519175503.567e6ecc@thinkpad> <20210519203014.1838de3a@coco.lan> <20210520130014.7189a315@dellmb> <20210520180028.495f94e4@coco.lan> <20210520183633.084a8c3f@thinkpad> <20210520205933.3cfc57a9@coco.lan> <20210520220703.5a86b994@thinkpad> <20210521111400.127ffa10@coco.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vGgW1X5XWziG23Ko" Content-Disposition: inline In-Reply-To: <20210521111400.127ffa10@coco.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vGgW1X5XWziG23Ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > You say that for this controller it would be bad to do in SW, because it > > would take too much time in BIOS calls. (I wonder how much...)=20 >=20 > Yeah, it would be interesting to know how much. However, measuring BIOS > latency and time spent on such calls can be tricky: one needs to use a > high-res clock that it is not used anywhere else, in order to measure > it.=20 I'm sure you can time kernel compilation while LEDs are using software netdev trigger, for example. Pavel --=20 http://www.livejournal.com/~pavelmachek --vGgW1X5XWziG23Ko Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmCuYGAACgkQMOfwapXb+vJFDACfdUCXRYSS74FydyliLdElL27I TXEAoMI9acvhBn3odljv1Kv0GKkN7Mrb =Tqsk -----END PGP SIGNATURE----- --vGgW1X5XWziG23Ko--