The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Re: [PATCH 0/2] firmware: stratix10-svc: Fix probe failure with old ATF
       [not found] <20260416072207.27074-1-muhammad.amirul.asyraf.mohamad.jamian@altera.com>
@ 2026-05-05 12:14 ` Dinh Nguyen
  2026-05-08  9:32   ` MOHAMAD JAMIAN, MUHAMMAD AMIRUL ASYRAF
  0 siblings, 1 reply; 2+ messages in thread
From: Dinh Nguyen @ 2026-05-05 12:14 UTC (permalink / raw)
  To: Muhammad Amirul Asyraf Mohamad Jamian
  Cc: Mahesh Rao, Matthew Gerlach, Anders Hedlund, linux-kernel, stable



On 4/16/26 02:22, Muhammad Amirul Asyraf Mohamad Jamian wrote:
> Since commit bcb9f4f07061 ("firmware: stratix10-svc: Add support for
> async communication"), the SVC driver fails to probe entirely when
> running with ATF versions older than 3.0 (e.g. ATF 2.5) that do not
> support SIP SVC v3 asynchronous operations.
> 
> stratix10_svc_async_init() returns -EINVAL for old ATF, and the probe
> function treats any non-zero return as fatal, causing:
> 
>    stratix10-svc firmware:svc: probe with driver stratix10-svc failed \
>      with error -22
> 
> This prevents all dependent client drivers (hwmon, RSU, FCS) from
> probing even though they can operate correctly via the synchronous V1
> SMC path.
> 
> This series fixes the issue in two steps:
>    1. Return -EOPNOTSUPP (instead of -EINVAL) when ATF async is
>       unsupported, so callers can distinguish "not supported" from
>       "bad argument / programming error".
>    2. Treat -EOPNOTSUPP as non-fatal in probe, allowing the SVC driver
>       to load in sync-only mode so all client drivers can probe normally.
> 
> Both patches fix bcb9f4f07061 and are tagged for stable.
> 
>
I think it makes more sense to squash these 2 patches together. Patch 1 
adds the -EOPNOTSUPP, but does not make use of it. Patch 2 actually 
makes use of the -EOPNOTSUPP. So I was a bit confused on how the change 
is getting used.

Dinh

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

* Re: [PATCH 0/2] firmware: stratix10-svc: Fix probe failure with old ATF
  2026-05-05 12:14 ` [PATCH 0/2] firmware: stratix10-svc: Fix probe failure with old ATF Dinh Nguyen
@ 2026-05-08  9:32   ` MOHAMAD JAMIAN, MUHAMMAD AMIRUL ASYRAF
  0 siblings, 0 replies; 2+ messages in thread
From: MOHAMAD JAMIAN, MUHAMMAD AMIRUL ASYRAF @ 2026-05-08  9:32 UTC (permalink / raw)
  To: Dinh Nguyen
  Cc: Rao, Mahesh, Matthew Gerlach, Anders Hedlund,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org

On 5/5/2026 8:14 pm, Dinh Nguyen wrote:
> 
> 
> On 4/16/26 02:22, Muhammad Amirul Asyraf Mohamad Jamian wrote:
>> Since commit bcb9f4f07061 ("firmware: stratix10-svc: Add support for
>> async communication"), the SVC driver fails to probe entirely when
>> running with ATF versions older than 3.0 (e.g. ATF 2.5) that do not
>> support SIP SVC v3 asynchronous operations.
>>
>> stratix10_svc_async_init() returns -EINVAL for old ATF, and the probe
>> function treats any non-zero return as fatal, causing:
>>
>>    stratix10-svc firmware:svc: probe with driver stratix10-svc failed \
>>      with error -22
>>
>> This prevents all dependent client drivers (hwmon, RSU, FCS) from
>> probing even though they can operate correctly via the synchronous V1
>> SMC path.
>>
>> This series fixes the issue in two steps:
>>    1. Return -EOPNOTSUPP (instead of -EINVAL) when ATF async is
>>       unsupported, so callers can distinguish "not supported" from
>>       "bad argument / programming error".
>>    2. Treat -EOPNOTSUPP as non-fatal in probe, allowing the SVC driver
>>       to load in sync-only mode so all client drivers can probe normally.
>>
>> Both patches fix bcb9f4f07061 and are tagged for stable.
>>
>>
> I think it makes more sense to squash these 2 patches together. Patch 1 
> adds the -EOPNOTSUPP, but does not make use of it. Patch 2 actually 
> makes use of the -EOPNOTSUPP. So I was a bit confused on how the change 
> is getting used.
> 
> Dinh
Addressed in v2

https://lore.kernel.org/all/20260508092936.18380-1-muhammad.amirul.asyraf.mohamad.jamian@altera.com/

Thanks,
Amirul

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

end of thread, other threads:[~2026-05-08  9:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260416072207.27074-1-muhammad.amirul.asyraf.mohamad.jamian@altera.com>
2026-05-05 12:14 ` [PATCH 0/2] firmware: stratix10-svc: Fix probe failure with old ATF Dinh Nguyen
2026-05-08  9:32   ` MOHAMAD JAMIAN, MUHAMMAD AMIRUL ASYRAF

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