Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH 00/12] soc: qcom: smem: some refactoring
@ 2018-05-02  1:10 Alex Elder
  2018-05-02  1:10 ` [PATCH 01/12] soc: qcom: smem: rename variable in qcom_smem_get_global() Alex Elder
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Alex Elder @ 2018-05-02  1:10 UTC (permalink / raw)
  To: andy.gross
  Cc: clew, aneela, david.brown, linux-arm-msm, linux-soc, linux-kernel

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
	These two are simple cleanups.

  soc: qcom: smem: always ignore partitions with 0 offset or size
  	This patch makes partitions with a zero offset always be
	ignored.  Previously this condition was flagged as an error
	in one place and ignored in another.

  soc: qcom: smem: small refactor in qcom_smem_enumerate_partitions()
  	This just simplifies a little logic in one spot.

  soc: qcom: smem: verify both host ids in partition header
  	This patch makes it so *both* IDs, not just one or the
	other, must use the special value SMEM_GLOBAL_HOST to
	signify the special global partition.

  soc: qcom: smem: require order of host ids to match
	A memory partition is described by an entry in a partition
	table, which identifies two hosts permitted to access the
	partition.  A partition also embeds a header, which also
	identifies the hosts.  Previously the host ids could be
	in any order; now the two host ids are required to be
	listed in the same order in the partition table and header.

  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
  	These patches together introduce a single function
	to locate a partition header in memory, and to validate its
	contents.  The common function is used in two place and
	removes some duplication.  The patches build up the function
	in steps to facilitate review.

  soc: qcom: smem: a few last cleanups
  	This patch gathers a small set of trivial cleanups.

 drivers/soc/qcom/smem.c | 173 +++++++++++++++++++++++-------------------------
 1 file changed, 82 insertions(+), 91 deletions(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-05-02  1:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-02  1:10 [PATCH 00/12] soc: qcom: smem: some refactoring Alex Elder
2018-05-02  1:10 ` [PATCH 01/12] soc: qcom: smem: rename variable in qcom_smem_get_global() Alex Elder
2018-05-02  1:10 ` [PATCH 02/12] soc: qcom: smem: initialize region struct only when successful Alex Elder
2018-05-02  1:10 ` [PATCH 03/12] soc: qcom: smem: always ignore partitions with 0 offset or size Alex Elder
2018-05-02  1:10 ` [PATCH 04/12] soc: qcom: smem: small refactor in qcom_smem_enumerate_partitions() Alex Elder
2018-05-02  1:10 ` [PATCH 05/12] soc: qcom: smem: verify both host ids in partition header Alex Elder
2018-05-02  1:10 ` [PATCH 06/12] soc: qcom: smem: require order of host ids to match Alex Elder
2018-05-02  1:10 ` [PATCH 07/12] soc: qcom: smem: introduce qcom_smem_partition_header() Alex Elder
2018-05-02  1:10 ` [PATCH 08/12] soc: qcom: smem: verify partition header size Alex Elder
2018-05-02  1:10 ` [PATCH 09/12] soc: qcom: smem: verify partition offset_free_uncached Alex Elder
2018-05-02  1:10 ` [PATCH 10/12] soc: qcom: smem: small change in global entry loop Alex Elder
2018-05-02  1:10 ` [PATCH 11/12] soc: qcom: smem: verify partition host ids match Alex Elder
2018-05-02  1:10 ` [PATCH 12/12] soc: qcom: smem: a few last cleanups Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox