From patchwork Tue Oct 5 09:32:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Kumar Singh X-Patchwork-Id: 12536041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41EA6C433F5 for ; Tue, 5 Oct 2021 09:36:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2870161425 for ; Tue, 5 Oct 2021 09:36:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232723AbhJEJiL (ORCPT ); Tue, 5 Oct 2021 05:38:11 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:64219 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233545AbhJEJiK (ORCPT ); Tue, 5 Oct 2021 05:38:10 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1633426579; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=KaSalnUjb5bYB5nzUZGviPCTJ+b536awjhauFlLkpmY=; b=NbJMR9wH1vtcB4HHqSN3xJ7vMLm4NhBVLT6So998Ou2GsSjtTgtxB4EYsDurgWdsN6fYnXcu K6hw1yQxMn+8NgcgcWBQeFITJXxuXPnpRVMFI83CZdTXkgYZ+vTsKZ+iwT9/Cdz2xHnYKx7/ 5IYTHDY6oLE86NZFgTRd8ic4J60= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI1MzIzYiIsICJsaW51eC1hcm0tbXNtQHZnZXIua2VybmVsLm9yZyIsICJiZTllNGEiXQ== Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 615c1c8147d64efb6d0602a8 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 05 Oct 2021 09:36:01 GMT Sender: deesin=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 11912C4360C; Tue, 5 Oct 2021 09:36:01 +0000 (UTC) Received: from deesin-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: deesin) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2D823C4338F; Tue, 5 Oct 2021 09:35:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 2D823C4338F 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=codeaurora.org From: Deepak Kumar Singh To: bjorn.andersson@linaro.org, clew@codeaurora.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, Deepak Kumar Singh Subject: [PATCH V3 0/2] smem partition remap and bound check changes Date: Tue, 5 Oct 2021 15:02:43 +0530 Message-Id: <1633426371-4827-1-git-send-email-deesin@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Addressed pointer conversion error in previous set and devm_iounmap code reordering. Corrected code for calculating global partition size, added code inside hardware mutex p_size = avilable + free. Deepak Kumar Singh (2): soc: qcom: smem: map only partitions used by local HOST soc: qcom: smem: validate fields of shared structures drivers/soc/qcom/smem.c | 317 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 245 insertions(+), 72 deletions(-)