HomeFreeBSD

Limit when we call DELAY from KCSAN on amd64

Description

Limit when we call DELAY from KCSAN on amd64

In some cases the DELAY implementation on amd64 can recurse on a spin
mutex in the i8254 early delay code. Detect when this is going to
happen and don't call delay in this case. It is safe to not delay here
with the only issue being KCSAN may not detect data races.

Reviewed by: kib
Tested by: arichardson
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D28895

Details

Provenance
andrewAuthored on Feb 5 2021, 11:41 AM
Reviewer
kib
Differential Revision
D28895: Limit when we call DELAY from KCSAN on amd64
Parents
rG59f6ddb2bc9c: Use pmap_qenter in the N1SDP PCIe driver
Branches
Unknown
Tags
Unknown