Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1024734pxb; Wed, 1 Sep 2021 15:36:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlz6MHEp+DaCaQVq2IDXW7MSIyz7nbhrz5Lx8E70VNw77Sn67s/m3zkj22rXLRaHryYyow X-Received: by 2002:a92:2e0d:: with SMTP id v13mr32028ile.111.1630535815144; Wed, 01 Sep 2021 15:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630535815; cv=none; d=google.com; s=arc-20160816; b=sQtuH7PSrPO8gnBigFz9k6K6+4T9eKYDvBW6RacE4AGXWMk1xCcop525vlfXLDBOA6 PnZhJdooP/S/jGdMLdm0Wh0MLkA6h++WCmALbiafvsaUZm/mI5gqiR3ndRjxGEKjBNeD ndq7sBH9eTbg5spGw2mnSEiQloX+TTpCZUiLP6/8ujs8hUb0nZhhs0ThpmxC6bPPypZ8 iXlDmJoJ9oVVzwCqrpvT2L4afHW1yutyzWc2s6ar4ZOv6Zh6oGOSHcgIPki4nF8uxx75 9AFNlpodngC8RdVS8jbsb66rQtCK1zbsUje3KCG91+XPTinvSaPEDYDtW4kJzN7u1Ozj qlkw== 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=0UCg1FU2ZaT9dBuAP1nDI8kHsqVbaB4N+DAD1OnLbaw=; b=X+hFrXBpS0CIeCUSpPB7yGNhkfr6wDXsv6D7nVeoQJC6itG5xOB0O5+IQk7+LqH+Z1 xvYmHoMoN37yPpx5MM9GriponNcdD3MK46in01m97UMbYB9Eiw/x/wghkz1RCWXTdCVG pJGTEA+6qgwRuLfszV/V8IbdY31bxkvsKgPZos8Aeeq7apm9sRMi/1EAQlySRtb0hUQv cTC6tU45N0XLq3//AbbF/iEGsUn2B6zHf9Wyn/HAXKmsvUVX7RRc6BYKUX/4T7JWUB0Q XBeUCA50KXTy/l9XqanTEFamVZV+ZFTVmTQzMqpWkn4FJfDUfPPCkhxDnTWbLLrk7q6r uJxQ== 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 u15si851639iot.89.2021.09.01.15.36.43; Wed, 01 Sep 2021 15:36:55 -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 S1344534AbhIATng (ORCPT + 99 others); Wed, 1 Sep 2021 15:43:36 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:41884 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344117AbhIATnf (ORCPT ); Wed, 1 Sep 2021 15:43:35 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id DE8531C0B7F; Wed, 1 Sep 2021 21:42:36 +0200 (CEST) Date: Wed, 1 Sep 2021 21:42:36 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jacob Keller , Tony Brelinski , Tony Nguyen , Jakub Kicinski , Sasha Levin Subject: Re: [PATCH 5.10 026/103] ice: do not abort devlink info if board identifier cant be found Message-ID: <20210901194236.GA8962@duo.ucw.cz> References: <20210901122300.503008474@linuxfoundation.org> <20210901122301.400339475@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: <20210901122301.400339475@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Jacob Keller >=20 > [ Upstream commit a8f89fa27773a8c96fd09fb4e2f4892d794f21f6 ] >=20 > The devlink dev info command reports version information about the > device and firmware running on the board. This includes the "board.id" > field which is supposed to represent an identifier of the board design. > The ice driver uses the Product Board Assembly identifier for this. >=20 > In some cases, the PBA is not present in the NVM. If this happens, > devlink dev info will fail with an error. Instead, modify the > ice_info_pba function to just exit without filling in the context > buffer. This will cause the board.id field to be skipped. Log a dev_dbg > message in case someone wants to confirm why board.id is not showing up > for them. Will it cause field to be skipped? I believe buffer will not be initialized which will result in some confusion... Best regards, Pavel > +++ b/drivers/net/ethernet/intel/ice/ice_devlink.c > @@ -23,7 +23,9 @@ static int ice_info_pba(struct ice_pf *pf, char *buf, s= ize_t len) > =20 > status =3D ice_read_pba_string(hw, (u8 *)buf, len); > if (status) > - return -EIO; > + /* We failed to locate the PBA, so just skip this entry */ > + dev_dbg(ice_pf_to_dev(pf), "Failed to read Product Board Assembly stri= ng, status %s\n", > + ice_stat_str(status)); > =20 > return 0; > } --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYS/XrAAKCRAw5/Bqldv6 8iKsAJ4rSW8qJZhHwStBU5di4R9xTrJCkACeOK1vtzuDDfZj6mgROfvT3pzz02A= =zWv5 -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--