From patchwork Tue Jun 26 00:58:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 139894 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4615703lji; Mon, 25 Jun 2018 17:59:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIs90llxxpPYxGhBNuSsdJkC1RoMYX5RVlgrKfAn37dxJxh/g87tL0SCq7JheER4JSIyDjO X-Received: by 2002:a62:1fd6:: with SMTP id l83-v6mr15269314pfj.182.1529974744774; Mon, 25 Jun 2018 17:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529974744; cv=none; d=google.com; s=arc-20160816; b=pntAYS3Nx1i6ctSeyfUmJvYDS8ct0lAi5NLMoBJROP0vqCnEahoax63+vyVQVJcNcy zARRNJN5IGPVJwGZBh5302irmLJm8uOYPNE20DWqUAa63EDrTKYelyA5Ncu6sFxwlNX2 jg9v+WNtnevU5tX2N0RwqcJwWa18l9IWBCRi0KrL4lNFGS+M7mIpMVqVi8IXUEnQiZ/g fg6L5XwwrKGSZq5ucGapPg8cL7UOAiV+cvGfgB2gu1XYNgL+lEMcQNCG7dQydS+Wzs20 5rgJI2yBn6xpgRUoVHJw8Lowmmpjerjdt0KFjENFAjZgZAsE5AkvEgMn02HkfvrAk0Z1 5saQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=5+M4/BZShIEJGQqwOMo/7FwMKystK1rcCWAMW7yB5Rw=; b=vcOlzizfBzo0LPSPYbAAXvRMfoRvry67XyJNMXqMKNAnTDLRocTnuVWbaOOoVg5fEy r+erO5/A+jINdgq5g4ftddt2Gf9HIWxc/x3DetjcIOIwn+Nhv+VazQ3MSMjllyopzs89 vgS1BAJViRmLEFRrwgFTVowoow08+Y3xMO/TEJ4P2X6jvP/v7uNc160eW/CaC48yWbP0 8lgoSlP1qmtXoluzFfooOQDwpFHpTxh7VdjN8ga0Sa6qXkRBBRxzyfQrB4Lt7ImD1x12 i/8tT+wmT+3IhSZXgU9eN5Y+JfPOZ998vys/bINEa1ajQCud/5yajAb/4Fdpz8WM1hF9 cn2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=X+4dKmp6; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8-v6si370643pfg.42.2018.06.25.17.59.04; Mon, 25 Jun 2018 17:59:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=X+4dKmp6; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933294AbeFZA7C (ORCPT + 13 others); Mon, 25 Jun 2018 20:59:02 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:36357 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755570AbeFZA7C (ORCPT ); Mon, 25 Jun 2018 20:59:02 -0400 Received: by mail-io0-f196.google.com with SMTP id k3-v6so14326126iog.3 for ; Mon, 25 Jun 2018 17:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=UePNDokaGtOS+yLA9yrR6ySTLlieH376aSPlzGm2o80=; b=X+4dKmp6jb5Btpsr9zhfFXFlAqh/a2iz2P9+afEbc0324Aifk/6rpO8zzaCCT823D9 o3wTwsNQJyG57nGN8bWDp5LtsqWdIPLCjK0LlWKXfVld1qA/CyFnAa/S5MHKPT2+SW2d OEy9IP0qtxMMTHNwRd6k+9GkJQjr7slEN4gQY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UePNDokaGtOS+yLA9yrR6ySTLlieH376aSPlzGm2o80=; b=F3U51lVEjn+GTEhz1MUk6NXIzeShB4bJO8yiHgpPC2HsD8x0H5yIINpxSAJWiJvw8U +ptMPCuRh9mV29dDy7WFWJB8rHaUGHJt5IrgM0F9jGJAcWQ7U0AGB4qYrlw4qswkIec0 yF6lF8N0YoLcDGIcKOqHZ5y2r4WLkafZOz9OBGl7Pnmcs/d1d+D+1Uzdau6eUy3Ibttt f5nDg70WNGTzJpq+2DlR9LJ6rMtBfW4b4YFOUX2bxQn48I/M3pJTxrgwPJxUBEtMpR4t mUyJVkKup0PJX5bFMneV3jEfUWLoS55rFIpd/QtvYbmQ/0lEhCCfnCSFDCrkG2O005HI +ChQ== X-Gm-Message-State: APt69E3mPkueLGdXZn3zCVKEu7io75Np3AQer2RquG2mcUDjQy9aEKbt i9JTCggrGUh6PvHm39dID0cIew== X-Received: by 2002:a6b:9303:: with SMTP id v3-v6mr11956413iod.255.1529974741509; Mon, 25 Jun 2018 17:59:01 -0700 (PDT) Received: from localhost.localdomain (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.gmail.com with ESMTPSA id f193-v6sm372556itf.9.2018.06.25.17.59.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 17:59:00 -0700 (PDT) From: Alex Elder To: andy.gross@linaro.org Cc: clew@codeaurora.org, aneela@codeaurora.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH resend 00/12] soc: qcom: smem: some refactoring Date: Mon, 25 Jun 2018 19:58:44 -0500 Message-Id: <20180626005856.14174-1-elder@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org (This is just a rebase of https://lkml.org/lkml/2018/5/1/670) This series contains a few general cleanups in the Qualcomm SMEM code, reorganizing some things so memory partitions are treated more consistently, and to avoid some duplication. A few patches change existing behavior, as highlighted below. Each of these changes has been tested and verified to function with available hardware. -Alex Alex Elder (12): soc: qcom: smem: rename variable in qcom_smem_get_global() soc: qcom: smem: initialize region struct only when successful soc: qcom: smem: always ignore partitions with 0 offset or size soc: qcom: smem: small refactor in qcom_smem_enumerate_partitions() soc: qcom: smem: verify both host ids in partition header soc: qcom: smem: require order of host ids to match soc: qcom: smem: introduce qcom_smem_partition_header() soc: qcom: smem: verify partition header size soc: qcom: smem: verify partition offset_free_uncached soc: qcom: smem: small change in global entry loop soc: qcom: smem: verify partition host ids match soc: qcom: smem: a few last cleanups drivers/soc/qcom/smem.c | 173 +++++++++++++++++++--------------------- 1 file changed, 82 insertions(+), 91 deletions(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html