Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2232950pxk; Mon, 14 Sep 2020 08:02:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7pNe55tS8JWgSnsexRKvzIbU1wsfM/zsmHviZVTfiV8Ej891CsYXZixKaomaXZZ5mo/Vm X-Received: by 2002:a17:906:a207:: with SMTP id r7mr15414612ejy.32.1600095774909; Mon, 14 Sep 2020 08:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600095774; cv=none; d=google.com; s=arc-20160816; b=f2Hl3yxG+S0+tUI9M6dx8Ibcf1ZCvEPCq+5wr/vIDPetR9HtggoNZ9cmJVmGLEaQZc Sq26U6Ym276NfaToOXYpMP+yTZF/qo+RMRQRnIWd+is/wrjXgDOfHcpBfOw0/NzjC21u jixYQ0xkYVBppyVboL5PFnYe1KH7r6pKgLIdaxA50Ou2rTJd0Qb2nkSzZOxWa+2gbjyy m9zpyQtoAdo+wRmjUstBpzZ/lOtbua4X5p/7nCcxQgiSOOaijYWUbamX5KkFkDcqb3dA E567x2pRbDEnfyDLVAukxBcRvDhMyOQUavWNLOGhdaAXLslSfurRvePPBIwj5qi+bVQA VpOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature; bh=6B1eHivMPY/Y7JjheulizygZ7FR99YPUY1zmWLJj70I=; b=Mrl52gganoSRH5sN7DdL71pGdH/vqiR7y6GC8tZKzi8V3WXzl+stgwxvxF1CaeMTRU ZrpM01rGbDNe4Q75YvbOfL40yPqQquNVQW15cvCrnipkWqwg59666NbhGJrPkf1RC9aZ XHZd/NfvscrS2ukiEKH6ksUv/t/UX56H58id3us3p0EDHo6Zco9CYbxSecoow8tn1dXL KZcJbQ+YOJcQAsNEB0ybmaDSEq5khLfIQHGmrJGKZdrmxU4ngD+ERRwBFrzvRVliUkG4 5AUwIO5yuU/xhXTXLP+9IwTArDrRLIFDPjsmD94Bw6s1/L+5NW+d3T4O3ngX0Y4NSuXo HyZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=GPvzuW2T; 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 e11si7693803edj.448.2020.09.14.08.02.31; Mon, 14 Sep 2020 08:02:54 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=GPvzuW2T; 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 S1726744AbgINO7P (ORCPT + 99 others); Mon, 14 Sep 2020 10:59:15 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:61669 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbgINO64 (ORCPT ); Mon, 14 Sep 2020 10:58:56 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600095536; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=6B1eHivMPY/Y7JjheulizygZ7FR99YPUY1zmWLJj70I=; b=GPvzuW2TyVFP2D786flJfk7eK3vRVVprYQajdiF/7AWmSTzeuBXodwdEhSf+rYNro1QxiQtq rHpcKE8VYXA96NMbkKfTF8h+e8SY8f+2Qt8bKSfxB1nfT7WOK2QMAeCRblkPiWDZyOWBZsPJ VCk1j7QGFJdx82d3n3uCBsNRgIQ= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5f5f850c4ba82a82fd76569d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 14 Sep 2020 14:58:20 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id AA676C433C8; Mon, 14 Sep 2020 14:58:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from blr-ubuntu-253.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id A8699C433F0; Mon, 14 Sep 2020 14:58:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A8699C433F0 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org, rishabhb@codeaurora.org Cc: agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, sidgup@codeaurora.org, stable@vger.kernel.org, Sibi Sankar Subject: [PATCH] soc: qcom: pdr: Fixup array type of get_domain_list_resp message Date: Mon, 14 Sep 2020 20:28:07 +0530 Message-Id: <20200914145807.1224-1-sibis@codeaurora.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers") Reported-by: Rishabh Bhatnagar Signed-off-by: Sibi Sankar --- 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), -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project