<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/ras, branch v6.6.132</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.6.132</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.6.132'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2023-05-16T19:12:23+00:00</updated>
<entry>
<title>ras/debugfs: Fix error checking for debugfs_create_dir()</title>
<updated>2023-05-16T19:12:23+00:00</updated>
<author>
<name>Osama Muhammad</name>
<email>osmtendev@gmail.com</email>
</author>
<published>2023-05-16T18:29:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2a1d18a5dc5056825b8e9527d188130da6256efc'/>
<id>urn:sha1:2a1d18a5dc5056825b8e9527d188130da6256efc</id>
<content type='text'>
Check the return value of debugfs_create_dir() properly.

  [ bp: Rewrite commit message. ]

Signed-off-by: Osama Muhammad &lt;osmtendev@gmail.com&gt;
Signed-off-by: Borislav Petkov (AMD) &lt;bp@alien8.de&gt;
Link: https://lore.kernel.org/r/20230516182927.9171-1-osmtendev@gmail.com
</content>
</entry>
<entry>
<title>RAS: Fix return value from show_trace()</title>
<updated>2022-10-31T17:55:18+00:00</updated>
<author>
<name>Tony Luck</name>
<email>tony.luck@intel.com</email>
</author>
<published>2022-10-18T16:59:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=50865c14f34edbd03f8113147fac069b39f4e390'/>
<id>urn:sha1:50865c14f34edbd03f8113147fac069b39f4e390</id>
<content type='text'>
Documentation/filesystems/seq_file.rst describes the possible return
values from a "show()" function used by single_open().

show_trace() returns the value of "trace_count". This could be
interpreted as "SEQ_SKIP", or just confuse the calling function.

Change to just return "0" to avoid confusing anyone reading this code
and possibly using as a template. Reading "daemon_active" was never
an intended use case.

Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Link: https://lore.kernel.org/r/20221018165900.109029-1-tony.luck@intel.com
</content>
</entry>
<entry>
<title>RAS/CEC: Reduce offline page threshold for Intel systems</title>
<updated>2022-08-22T17:30:02+00:00</updated>
<author>
<name>Tony Luck</name>
<email>tony.luck@intel.com</email>
</author>
<published>2022-08-02T16:18:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d25c6948a6aad787d9fd64de6b5362c3f23cc8d0'/>
<id>urn:sha1:d25c6948a6aad787d9fd64de6b5362c3f23cc8d0</id>
<content type='text'>
A large scale study of memory errors on Intel systems in data centers
showed that aggressively taking pages with corrected errors offline is
the best strategy of using corrected errors as a predictor of future
uncorrected errors.

Set the threshold to "2" on Intel systems. AMD guidance is that this is
not necessary for their systems.

Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Yazen Ghannam &lt;yazen.ghannam@amd.com&gt;
Link: https://lore.kernel.org/r/20220607212015.175591-1-tony.luck@intel.com
Link: https://lore.kernel.org/r/YulOZ/Eso0bwUcC4@agluck-desk3.sc.intel.com
</content>
</entry>
<entry>
<title>RAS/CEC: Remove a repeated 'an' in a comment</title>
<updated>2021-12-11T10:55:27+00:00</updated>
<author>
<name>Jason Wang</name>
<email>wangborong@cdjrlc.com</email>
</author>
<published>2021-12-11T09:19:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b011a57e41ccbd402ecdcb53514ba76b898ec22e'/>
<id>urn:sha1:b011a57e41ccbd402ecdcb53514ba76b898ec22e</id>
<content type='text'>
The double `an' in the comment in line 41 is repeated. Remove one of
them.

Signed-off-by: Jason Wang &lt;wangborong@cdjrlc.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Link: https://lore.kernel.org/r/20211211091914.268823-1-wangborong@cdjrlc.com
</content>
</entry>
<entry>
<title>RAS/CEC: Correct ce_add_elem()'s returned values</title>
<updated>2021-04-07T09:52:26+00:00</updated>
<author>
<name>William Roche</name>
<email>william.roche@oracle.com</email>
</author>
<published>2021-04-06T15:28:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3a62583c2853b0ab37a57dde79decea210b5fb89'/>
<id>urn:sha1:3a62583c2853b0ab37a57dde79decea210b5fb89</id>
<content type='text'>
ce_add_elem() uses different return values to signal a result from
adding an element to the collector. Commit in Fixes: broke the case
where the element being added is not found in the array. Correct that.

 [ bp: Rewrite commit message, add kernel-doc comments. ]

Fixes: de0e0624d86f ("RAS/CEC: Check count_threshold unconditionally")
Signed-off-by: William Roche &lt;william.roche@oracle.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Link: https://lkml.kernel.org/r/1617722939-29670-1-git-send-email-william.roche@oracle.com
</content>
</entry>
<entry>
<title>RAS/CEC: Convert to DEFINE_SHOW_ATTRIBUTE()</title>
<updated>2020-09-25T17:05:31+00:00</updated>
<author>
<name>Qinglang Miao</name>
<email>miaoqinglang@huawei.com</email>
</author>
<published>2020-09-19T01:22:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4bd442e9a8388e8ec4ba7cf23a4774989d93b78e'/>
<id>urn:sha1:4bd442e9a8388e8ec4ba7cf23a4774989d93b78e</id>
<content type='text'>
Use the DEFINE_SHOW_ATTRIBUTE() macro and simplify the code.

Signed-off-by: Qinglang Miao &lt;miaoqinglang@huawei.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Link: https://lkml.kernel.org/r/20200919012252.171437-1-miaoqinglang@huawei.com
</content>
</entry>
<entry>
<title>RAS/CEC: Fix cec_init() prototype</title>
<updated>2020-08-20T08:33:33+00:00</updated>
<author>
<name>Luca Stefani</name>
<email>luca.stefani.ge1@gmail.com</email>
</author>
<published>2020-08-05T09:57:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=85e6084e0b436cabe9c909e679937998ffbf9c9d'/>
<id>urn:sha1:85e6084e0b436cabe9c909e679937998ffbf9c9d</id>
<content type='text'>
late_initcall() expects a function that returns an integer. Update the
function signature to match.

 [ bp: Massage commit message into proper sentences. ]

Fixes: 9554bfe403bd ("x86/mce: Convert the CEC to use the MCE notifier")
Signed-off-by: Luca Stefani &lt;luca.stefani.ge1@gmail.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Sami Tolvanen &lt;samitolvanen@google.com&gt;
Tested-by: Sami Tolvanen &lt;samitolvanen@google.com&gt;
Link: https://lkml.kernel.org/r/20200805095708.83939-1-luca.stefani.ge1@gmail.com
</content>
</entry>
<entry>
<title>x86/mce: Fix all mce notifiers to update the mce-&gt;kflags bitmask</title>
<updated>2020-04-14T13:59:26+00:00</updated>
<author>
<name>Tony Luck</name>
<email>tony.luck@intel.com</email>
</author>
<published>2020-02-14T22:27:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=23ba710a0864108910c7531dc4c73ef65eca5568'/>
<id>urn:sha1:23ba710a0864108910c7531dc4c73ef65eca5568</id>
<content type='text'>
If the handler took any action to log or deal with the error, set a bit
in mce-&gt;kflags so that the default handler on the end of the machine
check chain can see what has been done.

Get rid of NOTIFY_STOP returns. Make the EDAC and dev-mcelog handlers
skip over errors already processed by CEC.

Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Tested-by: Tony Luck &lt;tony.luck@intel.com&gt;
Link: https://lkml.kernel.org/r/20200214222720.13168-5-tony.luck@intel.com
</content>
</entry>
<entry>
<title>x86/mce: Convert the CEC to use the MCE notifier</title>
<updated>2020-04-14T13:58:08+00:00</updated>
<author>
<name>Tony Luck</name>
<email>tony.luck@intel.com</email>
</author>
<published>2020-02-14T22:27:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9554bfe403bdfc084823df8695a01f28c680af61'/>
<id>urn:sha1:9554bfe403bdfc084823df8695a01f28c680af61</id>
<content type='text'>
The CEC code has its claws in a couple of routines in mce/core.c.
Convert it to just register itself on the normal MCE notifier chain.

 [ bp: Make cec_add_elem() and cec_init() static. ]

Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Tested-by: Tony Luck &lt;tony.luck@intel.com&gt;
Link: https://lkml.kernel.org/r/20200214222720.13168-3-tony.luck@intel.com
</content>
</entry>
<entry>
<title>RAS: Build debugfs.o only when enabled in Kconfig</title>
<updated>2019-08-08T15:44:02+00:00</updated>
<author>
<name>Valdis Kletnieks</name>
<email>valdis.kletnieks@vt.edu</email>
</author>
<published>2019-08-08T14:32:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b6ff24f7b5101101ff897dfdde3f37924e676bc2'/>
<id>urn:sha1:b6ff24f7b5101101ff897dfdde3f37924e676bc2</id>
<content type='text'>
In addition, the 0day bot reported this build error:

  &gt;&gt; drivers/ras/debugfs.c:10:5: error: redefinition of 'ras_userspace_consumers'
      int ras_userspace_consumers(void)
          ^~~~~~~~~~~~~~~~~~~~~~~
     In file included from drivers/ras/debugfs.c:3:0:
     include/linux/ras.h:14:19: note: previous definition of 'ras_userspace_consumers' was here
      static inline int ras_userspace_consumers(void) { return 0; }
                      ^~~~~~~~~~~~~~~~~~~~~~~

for a riscv-specific .config where CONFIG_DEBUG_FS is not set. Fix all
that by making debugfs.o depend on that define.

 [ bp: Rewrite commit message. ]

Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Valdis Kletnieks &lt;valdis.kletnieks@vt.edu&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Cc: Tony Luck &lt;tony.luck@intel.com&gt;
Cc: linux-edac@vger.kernel.org
Cc: x86@kernel.org
Link: http://lkml.kernel.org/r/7053.1565218556@turing-police
</content>
</entry>
</feed>
