Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 2021 17:51:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 255130] Issue with rtsx driver
Message-ID:  <bug-255130-227-UlsNWJkQ5G@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255130-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255130-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255130

--- Comment #41 from Sriram Narayanan <techynotes@gmail.com> ---
(In reply to Henri Hennebert from comment #40)

Hi

As requested I have rebuilt the Kernel with rtsx.c version 2.0f.
Following are the results:

Refer Comment(#35) for Test Cases
The Boot process is close to NORMAL
Case 1: It shows the timeout error but as you have modified, just for 1 sec=
 and
boots normally.
Case 2: When plastic cover is removed; in the terminal it is displayed as c=
ard
removed.
Case 3: When the SD Card Adaptor with Micro Sd Card is inserted; it is
displayed card inserted/found/mountable.
Case 4: I ran your "dd" I/O tests results below. When the SD Card Adaptor is
removed; it is displayed as card removed/absent.
Case 5: When plastic cover is reinserted; it is displaed as Card Present and
the 1 sec timeout starts.

Here are the test results from the "dd" I/O:

Note: Tests were run as root user from SSH connected from Macbook to HP 840=
 G3
Laptop.

dd if=3D/dev/random of=3D/tmp/random0 bs=3D32768 count=3D262144
262144+0 records in
262144+0 records out
8589934592 bytes transferred in 28.754103 secs (298737701 bytes/sec)

dd if=3D/tmp/random0 of=3D/dev/mmcsd0 bs=3D32768
262144+0 records in
262144+0 records out
8589934592 bytes transferred in 962.844957 secs (8921410 bytes/sec)

dd if=3D/dev/mmcsd0 of=3D/tmp/random1 bs=3D8192
3772992+0 records in
3772992+0 records out
30908350464 bytes transferred in 2576.025591 secs (11998464 bytes/sec)

md5 /tmp/random0 /tmp/random1
MD5 (/tmp/random0) =3D 05fd7861fd15e6bc2fffea5ebe7e2675
MD5 (/tmp/random1) =3D ab827ad77c67ce1f04b02f9ee9534be8

Are above the expected results? The MD5 looks different though, I am not su=
re,
your are the best judge to throw light on these. Let me know if you need any
further support from my end.

I still feel there could be a way to learn if the inserted item to the SD c=
ard
slot is a real SD Adaptor or Card as against a dummy plastic. Maybe some va=
lue
would be set in some flag or something, Just a wild guess (I am not a
systems/low level programmer). If this is possible, then the timeouts could=
 be
totally avoided on all devs pertaining to these. More clean this way.=20

THANK YOU for this 2.0f change.

BTW, can you tell me how to update src (Source) to the latest stable from
Git/SVN. I opted to install the Source during installation. As when you upd=
ate
the stable I like to have the latest source. Now, I am switching to GENERIC
kernel. I wish to stay with GENERIC as I have not reached the stage of want=
ing
a CUSTOM kernel. Though, I would like to eliminate all that is not required=
 for
HP 840 G3 from the kernel. But, first need to find and make a list of items=
 not
required, do you know or can you point me to links on how to achieve this?

Thank you again!

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255130-227-UlsNWJkQ5G>