From owner-freebsd-bugs@freebsd.org Mon Apr 26 17:51:39 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 41DED5EA0B0 for ; Mon, 26 Apr 2021 17:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FTXWv1DHYz3vCR for ; Mon, 26 Apr 2021 17:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2A0325EA0AF; Mon, 26 Apr 2021 17:51:39 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 29C875EA0AE for ; Mon, 26 Apr 2021 17:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FTXWv0gtxz3vFF for ; Mon, 26 Apr 2021 17:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0AFCD3CB1 for ; Mon, 26 Apr 2021 17:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 13QHpcjI062996 for ; Mon, 26 Apr 2021 17:51:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13QHpcdn062995 for bugs@FreeBSD.org; Mon, 26 Apr 2021 17:51:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255130] Issue with rtsx driver Date: Mon, 26 Apr 2021 17:51:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: techynotes@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2021 17:51:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255130 --- Comment #41 from Sriram Narayanan --- (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.=