Re: [PATCH 1/1] fpga: dfl: Avoid reads to AFU CSRs during enumeration
From: Russ Weight <hidden>
Date: 2021-09-17 18:24:54
Also in:
linux-fpga
On 9/16/21 3:50 PM, Moritz Fischer wrote:
On Thu, Sep 16, 2021 at 03:34:39PM -0700, Russ Weight wrote:quoted
On 9/16/21 3:24 PM, Moritz Fischer wrote:quoted
On Thu, Sep 16, 2021 at 02:07:33PM -0700, Russ Weight wrote:quoted
CSR address space for Accelerator Functional Units (AFU) is not available during the early Device Feature List (DFL) enumeration. Early access to this space results in invalid data and port errors. This change adds a condition to prevent an early read from the AFU CSR space. Signed-off-by: Russ Weight <redacted> Fixes: 23bcda750558 ("fpga: dfl: expose feature revision from struct dfl_device")Did you mean: Fixes: 1604986c3e6b ("fpga: dfl: expose feature revision from struct dfl_device")Oops - I must have been looking at the wrong branch. Yes - you have the correct commit IDquoted
And for future please don't line break those, or we'll get yelled at :)Got it. Thanks! - Russquoted
I can locally fix it up, no need to resubmit - MoritzApplied w/changes to fixes,
Can a signed-off tag still be added? Signed-off-by: Roger Christensen <redacted> There was also a suggestion the the variable v could be declared within the scope of the "if" statement instead of being declared at function scope. I haven't seen that done much (at all?) in kernel code. - Russ
- Moritz