Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2464961pxk; Mon, 14 Sep 2020 14:15:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOSmFNWO6VW7R/+Qnkj2XHjb2hwvWysmUOo1kyJknRdYLJ3ny/P6DTqUavAIs+KsNZ7DKh X-Received: by 2002:a17:906:1c03:: with SMTP id k3mr12854257ejg.259.1600118120654; Mon, 14 Sep 2020 14:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600118120; cv=none; d=google.com; s=arc-20160816; b=WnOaPNdjDyofuTpUH9xfMQKCkGcLLXV6z4bGw7tFIqngN0yWAzwIcv90gqZXtRmq/1 FQanLPah8iVXOQZRhT/aLDCXijPp7JnxXwFcP8B+eS1eFWkrZt/XBxIqzhKWdmx2APzA ghZzg6lLpnk4yw3zfWwgUz/vFhGG6VvO05TUYoy3r/pa6wYVbQxXVVIcT9qRAUArXYJx rNUsN/V7K6ZWErHVgcCUEQVpV9TkPkrtLJsrMidsMM812prA901/yu8284yl47rfVQ59 JDbh88Y+No8d22qdWl7v69JhyB89cqWhxAM5SVERBWG4bXD9QRzkOboXn1etMInSgseR hCVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=eP5pSacehjP1wjfJ5o8gJEuMAiQZyIXNv/QS66PVllQ=; b=XmA1xcUlKokHDXIG2uD62eWWjXrI58ed7jZXB321gO2oYRT25oCN1McKGTCxLZjswL HeA27dxY1e94UU52Ux9qIt3RTbdd4+9a/8IHgRsDUcrbWmfzrACNs3/n5MRQk3HijwnK E4R1BUqMatvecKe0Z8poTYu3F3spz73OVYbEIESntDcpCTuYmil7FeoTYw31T8Gvw2aV YzQN0EcqZYpD7+lkBzKLqr7RU/4e7dT3KAFX7Zpe3MtXY2gUXhkoZ3fSpP4aq8K9+RSp dfyo9PWRsV9QLiA0G6zNfPJm/ZXZJe6RASEVm2ifYPHaBMdFEt1KxbxI6KJ+kZC8iaKR cf5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=PqFWq9PI; 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 c6si8776240edq.397.2020.09.14.14.14.58; Mon, 14 Sep 2020 14:15:20 -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=PqFWq9PI; 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 S1726057AbgINVNw (ORCPT + 99 others); Mon, 14 Sep 2020 17:13:52 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:64762 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbgINVNs (ORCPT ); Mon, 14 Sep 2020 17:13:48 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600118028; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=eP5pSacehjP1wjfJ5o8gJEuMAiQZyIXNv/QS66PVllQ=; b=PqFWq9PIfhfmwh9dQ/KVceg3qYwSlYWAzN3xFxm6VIyan5I1yu5XD/LIfqsJ/Z/WDhp6ZZFp 6dEy0avV9KWMdj60LbxnZMHJWGJL8tiLGTK0ZIcDTAXx613tryvhkXu0m6oYzWwE6avbCkMl MeeW8uo2SMZiTqVNEuCGEV1Pbls= X-Mailgun-Sending-Ip: 69.72.43.7 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-n01.prod.us-east-1.postgun.com with SMTP id 5f5fdd0b9f3347551f59ab99 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 14 Sep 2020 21:13:47 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id AD721C433CA; Mon, 14 Sep 2020 21:13:46 +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, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id 12EFFC433CA; Mon, 14 Sep 2020 21:13:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 14 Sep 2020 14:13:44 -0700 From: rishabhb@codeaurora.org To: Sibi Sankar Cc: bjorn.andersson@linaro.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, sidgup@codeaurora.org, stable@vger.kernel.org Subject: Re: [PATCH] soc: qcom: pdr: Fixup array type of get_domain_list_resp message In-Reply-To: <20200914145807.1224-1-sibis@codeaurora.org> References: <20200914145807.1224-1-sibis@codeaurora.org> Message-ID: X-Sender: rishabhb@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-09-14 07:58, Sibi Sankar wrote: > 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), Tested-by: Rishabh Bhatnagar