Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp288846pxx; Wed, 28 Oct 2020 05:06:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxXpprm1Im/kC0flU/RXfClCm90PKCj6ZJeer2VQzl6f79fw5/fjljX5m2NsT1LqkC8gyt X-Received: by 2002:a17:906:11d6:: with SMTP id o22mr7408878eja.171.1603886792691; Wed, 28 Oct 2020 05:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603886792; cv=none; d=google.com; s=arc-20160816; b=KqIW5P0KHfwrrGx/hy4SagFNW1mWHiC0qaSiayIZI8rsyiX/4qMsKaoakDKYdRttfP qHFtHT+tsojfYgCYsasBmIAd47FgqJAu1qGIRea8QUkZ9RQ8mpAIoreXR0TIsWqJn4T3 k2Jvww8pjOnGh5kFA+Yg84cJjLI677JStPk7EbKRQ/M+utwhf3/BV5TtFTbE+i+uQQS5 v2L8adfggbSlaMpcH3kNCBdUHGtaf/I6kc4YoSSvWP0FPR19btPfkpX7FQpPKZkoi0mC Vl/GSvLTH4qxoeCm9LLJrxA02Uzyqk1XkV8GnBtKPe6RyzlWTYyehL5NFI3G4s+wA5Xv Od7Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=G7onfeQrrTEPCbaAeWlLxj78vswlzqtwLg/2RRURnVI=; b=PhOwPPdQ/NvCkxFWoLa6GjZEYDWwjGy2F4QSjwROhaI22TSnhvepI/UD1/maYpWOun fXmIdkIyHfF7SE4Ub+E3W/rMx/WH18SSH+Ym+QM8Jv2pS4nU7TYzIPhACNnpzEIEKtPL KMj5637ZqQbdfu0yXS82NtTmagtKM5BjCCdTKakui0CGLFc3u9dRR534GU0qtjbE+Jnk O1Kx2k7TYSCXnixE9lTsDaNUo6DESJLCE/Bi5dF1EIe3ZEydhufgYZaQRRdUSHwzg0Vh JoyNJbpsABXkeIWzh+CbOkAWkGhbWs4OBJ7bFyAx4eoe6kI/RlA/kxdEY1bGF7xU/Wqb SmbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zcaWjD3A; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si2969573ejk.629.2020.10.28.05.06.09; Wed, 28 Oct 2020 05:06:32 -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; dkim=pass header.i=@kernel.org header.s=default header.b=zcaWjD3A; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1795274AbgJ0PPK (ORCPT + 99 others); Tue, 27 Oct 2020 11:15:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:46358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1794225AbgJ0PKk (ORCPT ); Tue, 27 Oct 2020 11:10:40 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D6177206F4; Tue, 27 Oct 2020 15:10:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811439; bh=oYSZus/JJ0ACWFzC7GzWMIs67BB8KVQMnupWo0wxdYk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zcaWjD3ADh1vMse4S4GqwLLQWXREUXf5j/NB9C5AK1PUPP02r8+N+sToQ8g0xnZp6 AN8Pk1QzhQxQw80KuHcJWkAX0QloWkzL6BmmvOtZ1XRtGetCcZ7EMaipudnOA4mNQe XyoDGn47mIluugybhbL5JequTEOM+DJZIMhxXE00= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rishabh Bhatnagar , Sibi Sankar , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.8 494/633] soc: qcom: pdr: Fixup array type of get_domain_list_resp message Date: Tue, 27 Oct 2020 14:53:57 +0100 Message-Id: <20201027135545.912760617@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sibi Sankar [ Upstream commit 7a366707bb6a93baeb1a9ef46c4b9c875e0132d6 ] The array type of get_domain_list_resp is incorrectly marked as NO_ARRAY. Due to which the following error was observed when using pdr helpers with the downstream proprietary pd-mapper. Fix this up by marking it as VAR_LEN_ARRAY instead. Err logs: qmi_decode_struct_elem: Fault in decoding: dl(2), db(27), tl(160), i(1), el(1) failed to decode incoming message PDR: tms/servreg get domain list txn wait failed: -14 PDR: service lookup for tms/servreg failed: -14 Tested-by: Rishabh Bhatnagar Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers") Reported-by: Rishabh Bhatnagar Signed-off-by: Sibi Sankar Link: https://lore.kernel.org/r/20200914145807.1224-1-sibis@codeaurora.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/soc/qcom/pdr_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/pdr_internal.h b/drivers/soc/qcom/pdr_internal.h index 15b5002e4127b..ab9ae8cdfa54c 100644 --- a/drivers/soc/qcom/pdr_internal.h +++ b/drivers/soc/qcom/pdr_internal.h @@ -185,7 +185,7 @@ struct qmi_elem_info servreg_get_domain_list_resp_ei[] = { .data_type = QMI_STRUCT, .elem_len = SERVREG_DOMAIN_LIST_LENGTH, .elem_size = sizeof(struct servreg_location_entry), - .array_type = NO_ARRAY, + .array_type = VAR_LEN_ARRAY, .tlv_type = 0x12, .offset = offsetof(struct servreg_get_domain_list_resp, domain_list), -- 2.25.1