Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp993779rdf; Wed, 22 Nov 2023 02:43:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEd9E6LyExvoqxyP4xCAKzx1ydsfBvWy6kFSwwIP/U59ssRBfXBi+0Pt73wVxsFha7pv5KQ X-Received: by 2002:a05:6a00:2a08:b0:6cb:d24c:4a9f with SMTP id ce8-20020a056a002a0800b006cbd24c4a9fmr714516pfb.29.1700649826654; Wed, 22 Nov 2023 02:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700649826; cv=none; d=google.com; s=arc-20160816; b=rIkaUBZtCGN9RytzlOIkeG5hisimhoax9xh7RN781ucLUYq8pFUQ2yzKz8UMTxVxZk piDMExIZ00pVmfRTIe6kF//iAt37Eek5byepP4UFVvEdT1wiDWarsjzZxw4YX1CT3/bc 418GCGvzV9gUuaS9/wSHAkrJYqcSwZYVVXMYiqD6UmDvRxB5knEj0LxiLPAkrYTvDNxh z7eakcyYS5DfkV+Cg4Ym5F7yj2wiNC6cSvgh6QmPJdCJMToJHPMeDjAFpt7xZjYMQ00H 52o6bl+lVDTq+Jx5uUBmixtOmYfLiIekvp6SPKksEZr9qJjx0zkHjw0JWaX+/CMPsJyi 6J0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Z9Jn9Nk5noUF/PTqzIkwWeHeU6ZEHpUcIb3m2TcPZOY=; fh=Idp+E0YtKrGkiUUd9xUVKdThl+Z0jd4SdEBgxrtJLIM=; b=elM88m/1D+wnqP1ia4W31JmQhRCynL1Wyt6NZc8AjQunT3SReu21N4z8uZZpI5CcUF gVymQRMY/WJsFI/jAj2D4n5HF3rAmxBq8qYuK2NLo2YBO9Yxjdq4m98OjbDE9J6RAzs0 9zkS2w+kT4q4x85ZZGyQ3IXCgzMeLbUufxBSzCc23qsqRgz8Tmu3URygLHGi03wHviJx /twDmLUvBVB33nbRJMd3m3PDu7sNi+IDKBWbIMG1BbcyeyA8VWRV9bBTYXeCdr1JiQ/K 9eBbsv9rR4OuCDEsARhYacxWKCv02GCWviXoDrXx1TDmQkoYH4AxB0EGGDRO4JjpJvfi jQXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EydcjXjc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id j193-20020a638bca000000b005c1b2b4fb73si12284557pge.256.2023.11.22.02.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:43:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EydcjXjc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C2DB980D5860; Wed, 22 Nov 2023 02:43:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235041AbjKVKnh (ORCPT + 99 others); Wed, 22 Nov 2023 05:43:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbjKVKnf (ORCPT ); Wed, 22 Nov 2023 05:43:35 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF01B2; Wed, 22 Nov 2023 02:43:28 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 64FFE24000F; Wed, 22 Nov 2023 10:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700649807; 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=Z9Jn9Nk5noUF/PTqzIkwWeHeU6ZEHpUcIb3m2TcPZOY=; b=EydcjXjcBBpcQ84DAUKbZQcDsxl7Iw6Fx3ioGQJa53bJEp0joEiWNErKbb9KREJQbbXLpR bMNl7QLlBPrIHsruXo9Ki9q3FvPByp0MWY0uAxH0OL4g4MXF2bDYgq0drIFgC5KCDwStSi GGZhYfBsyjR5xuTVo+2YLfCExtdfAMJjQWpcN4qc4T3qZxa58ihcBvBm9lgyoMJ2kBEwEe auOpVI3j68CO7EI5+IEa23h/h0iEv0iAH4IOemZoY6N9hgEkVVfPKVafxEFTZK68/wCY9X VS9gRz7OWE3Q3PiBjJQ7g9Rq4xbS8ceGSlPaCY1Mchx7WmF47osyhQMMP0uejA== Date: Wed, 22 Nov 2023 11:43:25 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Jakub Kicinski Cc: Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thomas Petazzoni , linux-kernel@vger.kernel.org, Conor Dooley , Andrew Lunn , netdev@vger.kernel.org Subject: Re: [PATCH net-next v2] firmware_loader: Expand Firmware upload error codes with firmware invalid error Message-ID: <20231122114325.5bacca5a@kmaincent-XPS-13-7390> In-Reply-To: <20231121173022.3cb2fcad@kernel.org> References: <20231121-feature_firmware_error_code-v2-1-f879a7734a4e@bootlin.com> <20231121173022.3cb2fcad@kernel.org> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 02:43:44 -0800 (PST) On Tue, 21 Nov 2023 17:30:22 -0800 Jakub Kicinski wrote: > On Tue, 21 Nov 2023 11:50:35 +0100 Kory Maincent wrote: > > No error code are available to signal an invalid firmware content. > > Drivers that can check the firmware content validity can not return this > > specific failure to the user-space > >=20 > > Expand the firmware error code with an additional code: > > - "firmware invalid" code which can be used when the provided firmware > > is invalid =20 >=20 > Any idea what this is? >=20 > lib/test_firmware.o: warning: objtool: test_fw_upload_prepare() falls thr= ough > to next function __cfi_test_fw_upload_cancel() >=20 > My build shows this on an incremental clang 17 build. For my curiosity, how do you get this error? Enabling test_firmware and building with W=3D1 does not show the error. =20 Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com