]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtsx: Call taskqueue sooner, adjust DELAY(9) calls, add an inversion heuristic
authorHenri Hennebert <hlh@restart.be>
Thu, 9 Sep 2021 17:33:51 +0000 (13:33 -0400)
committerJung-uk Kim <jkim@FreeBSD.org>
Thu, 16 Sep 2021 13:49:21 +0000 (09:49 -0400)
commit277a326b1e3f8cf23af529e075e157c7a2cc67e4
tree38a43a875a7aa43ab9d299892cb20d3caccbe8c5
parentadfb7f807c662a69afc0b775ccf070cfab04aac5
rtsx: Call taskqueue sooner, adjust DELAY(9) calls, add an inversion heuristic

- Some configurations, e.g. HP EliteBook 840 G3, come with a dummy card
in the card slot which is detected as a valid SD card.  This added long
timeout at boot time.  To alleviate the problem, the default timeout is
reduced to one second during the setup phase. [1]

- Some configurations crash at boot if rtsx(4) is defined in the kernel
config.  At boot time, without a card inserted, the driver found that
a card is present and just after that a "spontaneous" interrupt is
generated showing that no card is present.  To solve this problem,
DELAY(9) is set to one quarter of a second before checking card presence
during driver attach.

- As advised by adrian, taskqueue and DMA are set up sooner during
the driver attach.  A heuristic to try to detect configuration needing
inversion was added.

PR: 255130 [1]
Differential Revision: https://reviews.freebsd.org/D30499

(cherry picked from commit 9d3bc163825415f900d06d62efdf02caaad2d51d)
share/man/man4/rtsx.4
sys/dev/rtsx/rtsx.c