Patch "powerpc/pseries/eeh: use correct API for error log size" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    powerpc/pseries/eeh: use correct API for error log size

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     powerpc-pseries-eeh-use-correct-api-for-error-log-si.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 64c28a7b2ed9b0850ee21113b7195cbf1c9da806
Author: Nathan Lynch <nathanl@xxxxxxxxxxxxx>
Date:   Fri Nov 18 09:07:43 2022 -0600

    powerpc/pseries/eeh: use correct API for error log size
    
    [ Upstream commit 9aafbfa5f57a4b75bafd3bed0191e8429c5fa618 ]
    
    rtas-error-log-max is not the name of an RTAS function, so rtas_token()
    is not the appropriate API for retrieving its value. We already have
    rtas_get_error_log_max() which returns a sensible value if the property
    is absent for any reason, so use that instead.
    
    Fixes: 8d633291b4fc ("powerpc/eeh: pseries platform EEH error log retrieval")
    Signed-off-by: Nathan Lynch <nathanl@xxxxxxxxxxxxx>
    [mpe: Drop no-longer possible error handling as noticed by ajd]
    Signed-off-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221118150751.469393-6-nathanl@xxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/powerpc/platforms/pseries/eeh_pseries.c b/arch/powerpc/platforms/pseries/eeh_pseries.c
index 6ad8bda06345..4601ad10ca7b 100644
--- a/arch/powerpc/platforms/pseries/eeh_pseries.c
+++ b/arch/powerpc/platforms/pseries/eeh_pseries.c
@@ -847,16 +847,7 @@ static int __init eeh_pseries_init(void)
 	}
 
 	/* Initialize error log size */
-	eeh_error_buf_size = rtas_token("rtas-error-log-max");
-	if (eeh_error_buf_size == RTAS_UNKNOWN_SERVICE) {
-		pr_info("%s: unknown EEH error log size\n",
-			__func__);
-		eeh_error_buf_size = 1024;
-	} else if (eeh_error_buf_size > RTAS_ERROR_LOG_MAX) {
-		pr_info("%s: EEH error log size %d exceeds the maximal %d\n",
-			__func__, eeh_error_buf_size, RTAS_ERROR_LOG_MAX);
-		eeh_error_buf_size = RTAS_ERROR_LOG_MAX;
-	}
+	eeh_error_buf_size = rtas_get_error_log_max();
 
 	/* Set EEH probe mode */
 	eeh_add_flag(EEH_PROBE_MODE_DEVTREE | EEH_ENABLE_IO_FOR_LOG);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux