From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFDB8288C2F for ; Mon, 8 Jun 2026 13:06:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780924012; cv=none; b=KKUaY4oc9pEYljYJ5ExtF98lx8zeqRFpeJc6KblXceEm6Wy4DpXTpZdBgdapHYvp3/zrACY2svF8fmdMWqtD7bHlXzkGTKsxx7JEb3QVYFnagqJ6TT3vEUCpSqbNnXnTB4Dmvka8CSOoKwpcBivTGRK4yUx/rcAgirr8ys1azV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780924012; c=relaxed/simple; bh=chH11IDpgw/ukFe4MO+yw9xWfeKtf/GwnIze3xKZn/I=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eGnWZAuLkrhjehEaMNZfdzJ7LVFm22G9rN9fq0Saci73MICp/WyGcCtv8EXwkIlmSoSCyk4fEkRhL6J6Pw0XN8AI4VA0RGvUVxzVLkmpdHmbqEt2dbMWbvDkbnQ1AvOPakhgybw+aU185/odUhKbPH0gvDM+ohDcShLgIrMah74= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=T2YN/dfP; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="T2YN/dfP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1780924009; bh=chH11IDpgw/ukFe4MO+yw9xWfeKtf/GwnIze3xKZn/I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=T2YN/dfPCWiyuuBR5tx/edONViYdUQ07F8knJfs5jFO7rVz90ZrOxIFT/Pf6dBi9o XLt0Yt3gtrjbTsV8W1KWaOR78FJcheaAVZcPffrHDt4YsFOpfYqGegK6CsLoXyFMXt BlN8WclDQ+f5CYjKyfC9VCqHAwtBM5pbk/haltW5j9RzrFHXYj/o/vMbmQsvgHcD/k UZyuQjVwCKuOsZEFFpICFz6XNkYsi8TXaaRJIVc79mp19ElC2zKEG8NBV4xbqyju56 FfNHuEXVnV6r9GwmheEaGRite9kfzMIYBuy6lxyX6dDTjssghvL6asQeP7+9jqhdEG G2kiF4wS2YXTA== Received: from fedora-2.home (unknown [100.64.0.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bbrezillon) by bali.collaboradmins.com (Postfix) with ESMTPSA id B162517E023C; Mon, 8 Jun 2026 15:06:48 +0200 (CEST) Date: Mon, 8 Jun 2026 15:06:44 +0200 From: Boris Brezillon To: Karunika Choo Cc: dri-devel@lists.freedesktop.org, nd@arm.com, Steven Price , Liviu Dudau , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 01/18] drm/panthor: Ignore -EOPNOTSUPP for shader-present nvmem lookup Message-ID: <20260608150644.0e41f4d1@fedora-2.home> In-Reply-To: <20260528150546.3168527-2-karunika.choo@arm.com> References: <20260528150546.3168527-1-karunika.choo@arm.com> <20260528150546.3168527-2-karunika.choo@arm.com> Organization: Collabora X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 28 May 2026 16:05:29 +0100 Karunika Choo wrote: > When CONFIG_NVMEM is disabled, reading the optional "shader-present" > nvmem cell can return -EOPNOTSUPP. > > Treat this the same as the cell being absent so panthor can continue > probing on platforms that do not provide shader-present fuses through > nvmem. > > Signed-off-by: Karunika Choo Reviewed-by: Boris Brezillon > --- > drivers/gpu/drm/panthor/panthor_hw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panthor/panthor_hw.c b/drivers/gpu/drm/panthor/panthor_hw.c > index 7e315708ca7c..4c96573b649a 100644 > --- a/drivers/gpu/drm/panthor/panthor_hw.c > +++ b/drivers/gpu/drm/panthor/panthor_hw.c > @@ -182,7 +182,7 @@ static int overload_shader_present(struct panthor_device *ptdev) > &contents); > if (!ret) > ptdev->gpu_info.shader_present = contents; > - else if (ret == -ENOENT) > + else if (ret == -ENOENT || ret == -EOPNOTSUPP) > return 0; > else > return dev_err_probe(ptdev->base.dev, ret,