From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 10FBE357A2C for ; Tue, 27 Jan 2026 13:29:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769520556; cv=none; b=UfwH76xGQEG1Q5VklnXtI5pFdnMlil3/ooHb/SNdOQDI+bANzeokmpK/+AOeR2p7nadkA44mm9rBe0LsLaaw7pS0BmJeyhYtCgl17p1SYs8D62NkTcw9/CjZwb9/QEVdxVehrxOoUwPKXJVfx7he5U1CYDGku/YX3rzUsm/2IsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769520556; c=relaxed/simple; bh=QGIJZ8FaZRMVdxqfBGe5GcHGD9EL/ZFCUvpscTH1TzU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Tez0XBiRqI6FSTL/mIVatmDUp3qT4DrRh3A7HNVhS7K40ANsldEHlOGjGygSPlr0bDoxzqc80Byt12DtACd0FxxC3vi6p/edHjEPTJMzc9nZ+8G+ns9xf/kTmrFj7PmKb4AV/65UGcr0G5tFCKbUsigUA9mtUcz56NpCXYREc7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Imolsp0C; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=NegDG6PT; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Imolsp0C"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="NegDG6PT" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60RBwvpe520922 for ; Tue, 27 Jan 2026 13:29:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 4OcOcQASf3eCmjJT1kaXQ5vCkOujdJRRo/eHqa3XUUA=; b=Imolsp0Ce4eECuRR zZxrtdoMVDUmWm2Qx5GgaBtpZH8XMlgX74pqCPxOO5dufD8csps6lYfvek+cQPJe O2Vedsw/w0D7rG6a7ovQG0IXvpxoyxOw/UW5ZLkywahFq+OZk4CdD2sOOx6Yz3Jk Ao8qcGbeN9hCWts7eSXwpriBRYM29JHDpOvn11/xsNIid3H1tXVkhyS8DRBbeoUh Jx7UhwjmAKeOIPUrRVN3zdRW3X2pA1pgyXCd38pM3qOhnS3nzcaF8gkwQ+7OCnuu YO9M9DEgpsq+tM52ebFLdJsl3F5NV420b7d/XbuFUikyjP2fPARp0NsbC5RfG9UJ 5LBKjQ== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bxdv0b42t-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Jan 2026 13:29:13 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-8c710279d57so5427085a.3 for ; Tue, 27 Jan 2026 05:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1769520553; x=1770125353; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4OcOcQASf3eCmjJT1kaXQ5vCkOujdJRRo/eHqa3XUUA=; b=NegDG6PTKV8bn3ikXB9MStTli4YsYLCeeBkU63p3kW2PNeIAEDwWZOeGZU1qzSGi9u 44nzPnwJxnNc7I/7RcVlEuQz9DwvoHkUxHY9bE2kVtltk3z4tz8OzJTKn5JhDDvDY2/v EKkRC4k/V5yc/SVMZieoo2qtyAX1d/cV6qePJwbuVBxCS3mt0v6joxRr7mTsynOdCkrp jUC9uHHGYTgZgqEVOnb6YaGsN4uEJxkKK7tKKfRCgVIjAKt8kgPkXKCa8hdSedgYtTBQ 9tb2YPCRiM0262zdjhntSFGTii5bqpMUCswnZhhHWUh3nV6Jb/OGoXFNdCn4fKRMd5y4 muBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769520553; x=1770125353; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4OcOcQASf3eCmjJT1kaXQ5vCkOujdJRRo/eHqa3XUUA=; b=Rzmum1Lb79FdS0jYB/TgSmLipt1yEah15BipriFKjIxUfiBWSeXTVWGP1e45HKqg8X IEENK8mmpPOFxOPM62BGuOqQm+4SoQXuklzipOIuHzJEFt5p6kZ+czeOxktOp9mjePp4 dEbv+4q3KYS6IG2Wuu5FCLUn1H4NQFx88bCrTmUEPRC8NL6R8kRE268+XXIXnVsH31NF lSg05Xt9QGpKnD+sKE2q1o/aMlypbNJW/nwHs7yEhL8pKdx9hojo5yjVCOEUfrmeZmox MMStpvep5ErV4aeIPx6X4U+2fy+d8PJFq9jBvHanO4HmNThfQoQbjvA6Jx4DkD1AzBy7 NvkQ== X-Forwarded-Encrypted: i=1; AJvYcCVg9wqyJANuWEddOiYcH3DA43Y4GFPeREHQu483x7SjQWHGAFNAacFYtV7iq4cLrwAxnyTNL84iV7jtXuE=@vger.kernel.org X-Gm-Message-State: AOJu0YxXt6nZ1x/epUFl0PApDCokc2sBj4I97GHTPV1OtT2Dv77jAMON 2OGhXMnt3r3B7wUtXs9dgIgRqpKECUceuSZ6pkQVl8BeBaDMLvBiDyujUNCvagANcLiofwgfGVd 9Zflb/Kmc6NnP5DbByF1Fi6Jary6AF7ud1IF3UWhfgbfwJlcXc2PTM/AnzZ0l17vl25o= X-Gm-Gg: AZuq6aI7VYmmD9+b3n7FBdvZykou7ARI0da1U01yygaSXhRcqhzzI8BetOu/LC6F8Sz 2NiDNdqC3JlBkadKyo2iDnVADOvCWtB0vvoGIJcsjtYf4qgY/jre7jedyGw/u14/RpMb3KyuCGS TDQPj2tB2HPilLrt3Tk/T9IFatfMhLvooltxOm3YogWEGpspwgRoOWuW2hzl3kPCIpdowp5VoY4 XA/8hKZFshhW9R1QQMMuZbeZr199Y/AqqRvRVrJrVRaQkwMXjjzBd3panyfcMU3OGQyuU5ZRqDE 9uuDB5wlisbU/0xReEFP2D4l5urkSGGRWX0MKYDzPeB1rXCBV6W3OVXnT4UKkyzvRPRkxEroKzB Nq8pqkiDj+2uCn73yt0MJpvLGl0eSvfTeEY0mngK9NIEpuWC2NioWYPjN9dIXxKapW3M= X-Received: by 2002:a05:620a:3199:b0:8b9:fa81:5282 with SMTP id af79cd13be357-8c70b91afdemr130278185a.3.1769520553049; Tue, 27 Jan 2026 05:29:13 -0800 (PST) X-Received: by 2002:a05:620a:3199:b0:8b9:fa81:5282 with SMTP id af79cd13be357-8c70b91afdemr130275785a.3.1769520552485; Tue, 27 Jan 2026 05:29:12 -0800 (PST) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8d89026200sm280740866b.14.2026.01.27.05.29.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jan 2026 05:29:11 -0800 (PST) Message-ID: <268fb237-36b2-4968-a099-bbddcad3c7dc@oss.qualcomm.com> Date: Tue, 27 Jan 2026 14:29:09 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/3] soc: qcom: extend interface for big endian support To: Alexander Wilhelm , David Heidelberg Cc: Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20251119104008.3505152-1-alexander.wilhelm@westermo.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: VkpoBp0Hf1OfyG3GpVmYZy7DbFkx0CWT X-Authority-Analysis: v=2.4 cv=SvedKfO0 c=1 sm=1 tr=0 ts=6978bda9 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=n9fB6OXArN-EqZleIsEA:9 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-ORIG-GUID: VkpoBp0Hf1OfyG3GpVmYZy7DbFkx0CWT X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTI3MDEwOSBTYWx0ZWRfX8VtHA5PHpSml y0/+W1VqUAfe+iKDIQJBMucH/0Jv0kkf79YIwaXTRzkP01Y8ScF5ObvX1Ndo9Vrzd9EMqrHTeG8 NFzf05FtSf1YwmIDN55lv1OaPzV63wJ94Q32rNIcSgqfzYiC9V3Yp/ReQrUAQXWgzQsKywvAy/H VMdmIyBGFeVs/xnbaCpb4zag2LUC+c06/W4aoV1sXco2ic5Ej/EP46O9ljVzavjJ0UF3jj664cf diOU1Vu2Zg+a31kpVViwPzOra/N3BfbjwS/aNc3tlwDZUTIqHsQZqynQftVL0gvnX99ktRgQ9Ks //1ju4qtlQ3wCf96R2vNxYS7WX0cSuOK/67IK0r04frPDT8vDOxbal+TobGAvJM2PKE2zsXiTHS z7QPl1ys21Ed4971zGkS3UHsnCl90JN6EWKNzMQm/F4EElG2jRca6y+XWy/1D4YRRkGNu0rIgOV 1jVBKZwgKNnFjZGJiSw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-01-27_02,2026-01-27_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 clxscore=1015 suspectscore=0 impostorscore=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601270109 On 1/21/26 10:07 AM, Alexander Wilhelm wrote: > On Wed, Jan 21, 2026 at 09:22:07AM +0100, David Heidelberg wrote: >> On 19/11/2025 11:40, Alexander Wilhelm wrote: >>> Currently, the QMI interface only works on little endian systems due to how >>> it encodes and decodes data. Most QMI related data structures are defined >>> in CPU native order and do not use endian specific types. >>> >>> Add support for endian conversion of basic element types in the QMI >>> encoding and decoding logic. Fix the handling of QMI_DATA_LEN fields to >>> ensure correct interpretation on big endian systems. These changes are >>> required to allow QMI to operate correctly across architectures with >>> different endianness. >>> --- >> >> Hello, >> >> I recently (next-20260119) started receiving errors on Pixel 3: >> >> [ 21.158943] ipa 1e40000.ipa: received modem running event >> [ 21.164616] qmi_encode: Invalid data length >> [ 21.168930] qcom_q6v5_pas remoteproc-adsp: failed to send subsystem event >> [ 21.175844] qmi_encode: Invalid data length >> [ 21.180494] qcom_q6v5_pas remoteproc-cdsp: failed to send subsystem event >> [ 21.187467] qmi_encode: Invalid data length >> [ 21.191772] qcom-q6v5-mss 4080000.remoteproc: failed to send subsystem >> event >> [ 21.199088] qmi_encode: Invalid data length >> [ 21.203360] qcom-q6v5-mss 4080000.remoteproc: failed to send subsystem >> event >> [ 21.210636] remoteproc remoteproc0: remote processor 4080000.remoteproc >> is now up >> >> Since it's not well tested, I believe there could be problem with >> configuration, but after reverting this series, no errors pop up. >> >> I would believe maybe these errors was previously hidden, but just to be >> sure asking here. > > Hi David, > > This is exactly the problem I was afraid of. When the endianness fixes for > `ath12k` were rejected, I implemented them in the QMI subsystem instead. I only > tested this with `ath11k` and `ath12k` drivers, both on little-endian and > big-endian platforms. However, other devices, such as your modem, also rely on > QMI, but were not tested. > > The difference now is that, instead of using memcpy, basic elements like `u8`, > `u16`, `u32`, and `u64` are handled explicitly in separate switch-cases. This > raises the question of what exactly the modem and its corresponding driver are > doing at this point. Could you please tell me which repository you are working > on? I could not find `next-20260119` in either the `ath` or the `stable` > repositories. next-foo comes from linux-next.git git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Konrad