From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 770C030E0F3 for ; Thu, 11 Dec 2025 12:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765454433; cv=none; b=eWD0JXdlM1T+/cP1/XqgTqGGuNPWVpCWXM+HHAgtJHsEZQXlIGxaR1uDXNQgu5pvU8Ou8xQ1Hgiu0a0glSJ/HZkU6xkfPmeCJfcZt6JcyXBwwidmT9EUnsj34DSQvCeCx7vbXzDdIzGkvl4WloYy0lW+ch3uWURmYicSWrRyiuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765454433; c=relaxed/simple; bh=+ZsiVHVuvlmElCfiJh8VswoYYUYXDQoGo/7vAi2FBsE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RZC0dZBobabPYAOMRNxTAAZnqu2Pk4tBw60TYzcX83AcZywDp8c6JEQpvz3nOzhqNFU5jnLnKI79lg/5AabqRGPSchVG4IleCBJT1Llm40JeMRTNYrSwDIlmYi7MaJXQbtV7MjziJZi+e+/BOPrstEI8uEyPSRPf6X/UuVxLW14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=nm6UdxKS; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="nm6UdxKS" Message-ID: <3d1c6ffa-6c32-48f7-b8de-a2e7e0e43fbe@postmarketos.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1765454428; 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=wcANbySnm/3IxhDfwAZaRbD9tP3Ny+4TLXwMj7cHLrw=; b=nm6UdxKSYMIYHr9CaMo6avv3lmC9scnh8DGbt/oP6TX7+TAKgt3O1gUKwzfotaZLDZ+FM1 F/1A/dmWboBC+glEFH3rD2kV7ixKdDR8vZj0Y741vP1ptrMq//wpNS1UqlLTmqS5fhU6Fn Oqq7dsZn0V8lBMAVysV+lC+0O4cvnEBtEVnb6a2k+0iSSTTccp1Svm55RR2r2nkL1sUj62 dOyXwvefcaihb32y13bSI1Bk/A2QwXqOarJJezvDiPafnTYqU0ku60Hcenx84rjcOAoWvV NwtTWLMuFQILyRO7ojvD+QCPm2dfC1ciQ2Wh+nTgtB9Gi/3fJaPE4B/E0FqU1g== Date: Thu, 11 Dec 2025 15:00:24 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v2] arm64: dts: qcom: sdm630: fix gpu_speed_bin size To: Dmitry Baryshkov , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20251211-sdm630-fix-gpu-v2-1-92f0e736dba0@oss.qualcomm.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Alexey Minnekhanov In-Reply-To: <20251211-sdm630-fix-gpu-v2-1-92f0e736dba0@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 11.12.2025 04:27, Dmitry Baryshkov wrote: > Historically sdm630.dtsi has used 1 byte length for the gpu_speed_bin > cell, although it spans two bytes (offset 5, size 7 bits). It was being > accepted by the kernel because before the commit 7a06ef751077 ("nvmem: > core: fix bit offsets of more than one byte") the kernel didn't have > length check. After this commit nvmem core rejects QFPROM on sdm630 / > sdm660, making GPU and USB unusable on those platforms. > > Set the size of the gpu_speed_bin cell to 2 bytes, fixing the parsing > error. While we are at it, update the length to 8 bits as pointed out by > Alexey Minnekhanov. > > Fixes: b190fb010664 ("arm64: dts: qcom: sdm630: Add sdm630 dts file") > Signed-off-by: Dmitry Baryshkov > --- > Changes in v2: > - Update cell length to 8 bits (Alexey) > - Link to v1: https://lore.kernel.org/r/20251006-sdm630-fix-gpu-v1-1-44d69bdea59a@oss.qualcomm.com > --- > arch/arm64/boot/dts/qcom/sdm630.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi > index 8b1a45a4e56e..b383e480a394 100644 > --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi > @@ -598,8 +598,8 @@ qusb2_hstx_trim: hstx-trim@240 { > }; > > gpu_speed_bin: gpu-speed-bin@41a0 { > - reg = <0x41a2 0x1>; > - bits = <5 7>; > + reg = <0x41a2 0x2>; > + bits = <5 8>; > }; > }; > > > --- > base-commit: 008d3547aae5bc86fac3eda317489169c3fda112 > change-id: 20251004-sdm630-fix-gpu-f9786db8049a > > Best regards, Thanks for the fix! FWIW, Reviewed-by: Alexey Minnekhanov -- Regards, Alexey Minnekhanov