Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp956542rdf; Wed, 22 Nov 2023 01:17:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpb1XmE+eiMHAxyVJ6j0jP95eUVn421n1/sKQsqSFGsd0Hdmi48MkmjpIHXF0kFWyzyPTE X-Received: by 2002:a05:6808:2343:b0:3b6:dc6f:2741 with SMTP id ef3-20020a056808234300b003b6dc6f2741mr1771446oib.19.1700644638248; Wed, 22 Nov 2023 01:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700644638; cv=none; d=google.com; s=arc-20160816; b=C5U8YRUv6MZlc+7WOGDOTbq4Nnej98bMagSHhpY73zxFwRhPY0qlWX4J/ylthub9KV aWtmS46bytCCkk9olv2BXGUg+deicjUE5mqn4JOX9geygHOLYRULq+7UmFef6cbJEI3k oL7voAKafDS5ki1df8LjhcPeY8AXFuTq5JmKCD5c+I0n68GL838VRYzmr4zvt1DQbMXx cszkK2X8AQzUC86lYEk4vvcyIFLZPCx8UYc39pdUCfvurhTw5CFhUBke5xpjkCx0ZocG vQdu8FAviqdKm6+e4jD5MVZZzrOwU/UPKDeMTEAvmFTu1PqUf4+B69YKLF1jb63JBl0p 53rA== 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=Pd8P94KReE7rtC9tl5ie2LKIkhmNIUEsbYj4grCZU0M=; fh=Idp+E0YtKrGkiUUd9xUVKdThl+Z0jd4SdEBgxrtJLIM=; b=x7WO26QDQO3J8r48fHX1ieDgPXT5KaslnPpBHq3OgeibbommIQea/oLjg07UpSjf66 inygjJmZPKNUVnar0RklTiA7VANqfQzls7WkwEl9a6TYPf7C3CKPlPzxJx0y2fwBlDY6 A2Idy7mjMC7GVeDPlmzENzQw9PdFzEEC37UVuuqQKTMYcHHtbQoguSK9KDOZROJq2gr4 7lU2gMIzTju3+XELcO99kYJng+gnZw4vL90lSR4EE0g4TWQozV6qkao6l6M8tMU+nAEL G0drkxo8iFa65orjaBpRZUmojZUO+pNXAmz9bnzc+GgsRQu2G7V5IqGXyKJhUQ0kKD+r O/VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ZW/ci6WZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f13-20020a056a00238d00b00690da053918si12456204pfc.4.2023.11.22.01.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 01:17:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ZW/ci6WZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id A93538106F74; Wed, 22 Nov 2023 01:16:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229631AbjKVJQP (ORCPT + 99 others); Wed, 22 Nov 2023 04:16:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235111AbjKVJQN (ORCPT ); Wed, 22 Nov 2023 04:16:13 -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 50E9F1A2; Wed, 22 Nov 2023 01:16:09 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id CD0C024000D; Wed, 22 Nov 2023 09:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700644567; 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=Pd8P94KReE7rtC9tl5ie2LKIkhmNIUEsbYj4grCZU0M=; b=ZW/ci6WZHSFyXWwK4JmihGUwbWHjWUTjUBhA/E8IZ0w3FE/PJmx3QB7CPbJ3ECb0G+E5bQ NlM5N7gLomjSpiCVQHJPvrx3oXoUmr2L2nQXlMhTPq7SSpFhaMnC/bXdsz7WQNJT4y5axb 60mpTFTDvJMLu4t6jmwG5miPll28wiuDyCXymKKwmtt5ZwhcCcBdLC2vljYmWsoXW8+Z21 ym15nG/lJC0hd524C44lrBMk6roj2wgzMZ0fDIwSkGRqraj1+cugpt76P3yNCqRePg3AcT eY+urbL+FEQy7PClrqeSzREUKsgBZBkC9caSvAxLsukJUy5yURXKmtpZMJ/d/w== Date: Wed, 22 Nov 2023 10:16:05 +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: <20231122101605.0786440b@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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 01:16:58 -0800 (PST) Hello Jakub, 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. Thanks for the report. It seems I have to update fw_upload_err_str accordingly. Didn't know about this test_firmware.c file.=20 Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com