<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/soc/qcom/smem.c, branch linux-5.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-06-05T15:36:37Z</updated>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284</title>
<updated>2019-06-05T15:36:37Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2019-05-29T14:17:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97fb5e8d9b57f10f294303c9a5d1bd033eded6bf'/>
<id>urn:sha1:97fb5e8d9b57f10f294303c9a5d1bd033eded6bf</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license version 2 and
  only version 2 as published by the free software foundation this
  program is distributed in the hope that it will be useful but
  without any warranty without even the implied warranty of
  merchantability or fitness for a particular purpose see the gnu
  general public license for more details

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 294 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Reviewed-by: Alexios Zavras &lt;alexios.zavras@intel.com&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190529141900.825281744@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: a few last cleanups</title>
<updated>2018-09-13T21:57:11Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=13a920ae7898ffa075391ba36b63251f686d38a3'/>
<id>urn:sha1:13a920ae7898ffa075391ba36b63251f686d38a3</id>
<content type='text'>
This patch contains several small cleanups:
  - In qcom_smem_enumerate_partitions(), change the "local_host"
    argument to have 16 bit unsigned type
  - Also in qcom_smem_enumerate_partitions(), change the type of
    the "host0" and "host1" local variables to be u16
  - Fix error messages reporting host ids to use the right format
    specifier
  - Shorten the error messages as well, to fit on one line
  - Add a compile-time check to ensure the local host value passed
    to qcom_smem_enumerate_partitions() is in range

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: verify partition host ids match</title>
<updated>2018-09-13T21:57:10Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d01934455e3f5efc0019befe1b78ebe60dd7b0c'/>
<id>urn:sha1:7d01934455e3f5efc0019befe1b78ebe60dd7b0c</id>
<content type='text'>
Add verification in qcom_smem_partition_header() that the host ids
found in a partition's header structure match those in its partition
table entry.

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: small change in global entry loop</title>
<updated>2018-09-13T21:57:08Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=33fdbc4e5caf7ef6e7114adeab7a4a4578307ff3'/>
<id>urn:sha1:33fdbc4e5caf7ef6e7114adeab7a4a4578307ff3</id>
<content type='text'>
Change the logic in the loop that finds that global host entry in
the partition table not require the host0 and host1 local variables.
The next patch will remove them.

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: verify partition offset_free_uncached</title>
<updated>2018-09-13T21:57:06Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=380dc4af50a61eaa8b749fac2e7e40ebf92079aa'/>
<id>urn:sha1:380dc4af50a61eaa8b749fac2e7e40ebf92079aa</id>
<content type='text'>
Add verification in qcom_smem_partition_header() that the
offset_free_uncached field in a partition's header structure does
not exceed the partition's size.

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: verify partition header size</title>
<updated>2018-09-13T21:57:04Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=190b216c1535ca5af8db5c81e86d2192c4204b51'/>
<id>urn:sha1:190b216c1535ca5af8db5c81e86d2192c4204b51</id>
<content type='text'>
Add verification in qcom_smem_partition_header() that the size in a
partition's header structure matches the size in its partition table
entry.

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: introduce qcom_smem_partition_header()</title>
<updated>2018-09-13T21:57:01Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ada79289735fea37e755bbefc4403c989e66f4b1'/>
<id>urn:sha1:ada79289735fea37e755bbefc4403c989e66f4b1</id>
<content type='text'>
Create a new function qcom_smem_partition_header() to encapsulate
validating locating a partition header and validating information
found within it.  This will be built up over a few commits to make
it more obvious how the common function is replacing duplicated code
elsewhere.  Initially it just verifies the header has the right
magic number.

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: require order of host ids to match</title>
<updated>2018-09-13T21:56:59Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=abc006b7a6eaf598c3987e5ae87deb7cd8221145'/>
<id>urn:sha1:abc006b7a6eaf598c3987e5ae87deb7cd8221145</id>
<content type='text'>
In qcom_smem_enumerate_partitions(), we find all partitions that
have a given local host id in either its host0 or its host1 field
in the partition table entry.  We then verify that the header
structure at the start of each partition also contains the same two
host ids as is found in the table of contents.

There is no requirement that the order of the two host ids be the
same in the table of contents and in the partition header.

This patch changes that, requiring host0 to in the partition table
entry to equal host0 in the partition header structure (and similar
for the host1 values).

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: verify both host ids in partition header</title>
<updated>2018-09-13T21:56:58Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06ada44a807fc5c1745d2001faba3e0b4e2e060a'/>
<id>urn:sha1:06ada44a807fc5c1745d2001faba3e0b4e2e060a</id>
<content type='text'>
The global partition is indicated by having both host values in its
table of contents entry equal SMEM_GLOBAL_HOST=0xfffe.

In qcom_smem_set_global_partition(), we check whether the header
structure at the beginning of the partition contains that host
value, but the check only verifies *one* of them.  Change the check
so the partition header must have SMEM_GLOBAL_HOST for *both* its
host fields.

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
<entry>
<title>soc: qcom: smem: small refactor in qcom_smem_enumerate_partitions()</title>
<updated>2018-09-13T21:56:56Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2018-06-26T00:58:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eb68cf09092233716b31fad42cf2a4dad3959e3c'/>
<id>urn:sha1:eb68cf09092233716b31fad42cf2a4dad3959e3c</id>
<content type='text'>
Combine the code that checks whether a partition table entry is
associated with the local host with the assignment of the remote
host id value.

Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
Signed-off-by: Andy Gross &lt;andy.gross@linaro.org&gt;
</content>
</entry>
</feed>
