Gentoo Archives: gentoo-user

From: Dr Rainer Woitok <rainer.woitok@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Is there a way to misconfigure USB ports in the kernel?
Date: Wed, 25 Nov 2020 17:37:25
Message-Id: 24510.38475.914653.374734@tux.speedport.ip
1 Greetings,
2
3 since my old 64 GB Verbatim USB sticks became too small, I bought two
4 new 128 GB Philips sticks. Because I need to read and write them on
5 both, a stand-alone Windows laptop (not connected to the internet) runn-
6 ing Windows Vista and Cygwin and my Gentoo laptop, I encrypted them with
7 old TrueCrypt on the Windows box, using them under Gentoo in TrueCrypt
8 compatibility mode.
9
10 This worked well with the Verbatim USB sticks (which probably are USB
11 2.0), but while reading the new USB 3.0 Philips USB sticks is signific-
12 antly faster than reading the old Verbatim USB sticks, writing to them
13 is slow as hell under Gentoo. And writing to the Philips USB sticks on
14 the old Vista laptop with USB 2.0 ports clearly outperforms writing to
15 them using the Gentoo laptop's USB 3.0 ports.
16
17 This could be a problem with TrueCrypt/VeraCrypt or with somehow miscon-
18 figured USB ports. To check for the latter I provide below all kernel
19 configuration variables I regard USB related in the hope that some know-
20 ledgable people might find a glitch in there:
21
22 $ grep -E 'Linux/|DEV_SD|SCSI|USB' /usr/src/linux/.config
23 # Linux/x86 5.4.72-gentoo Kernel Configuration
24 CONFIG_BLK_SCSI_REQUEST=y
25 CONFIG_BT_HCIBTUSB=y
26 # CONFIG_BT_HCIBTUSB_AUTOSUSPEND is not set
27 CONFIG_BT_HCIBTUSB_BCM=y
28 # CONFIG_BT_HCIBTUSB_MTK is not set
29 CONFIG_BT_HCIBTUSB_RTL=y
30 # CONFIG_BT_HCIBFUSB is not set
31 # CONFIG_MISC_RTSX_USB is not set
32 # SCSI device support
33 CONFIG_SCSI_MOD=y
34 CONFIG_SCSI=y
35 CONFIG_SCSI_DMA=y
36 CONFIG_SCSI_PROC_FS=y
37 # SCSI support type (disk, tape, CD-ROM)
38 CONFIG_BLK_DEV_SD=y
39 CONFIG_SCSI_CONSTANTS=y
40 # CONFIG_SCSI_LOGGING is not set
41 # CONFIG_SCSI_SCAN_ASYNC is not set
42 # SCSI Transports
43 CONFIG_SCSI_SPI_ATTRS=y
44 # CONFIG_SCSI_FC_ATTRS is not set
45 # CONFIG_SCSI_ISCSI_ATTRS is not set
46 # CONFIG_SCSI_SAS_ATTRS is not set
47 # CONFIG_SCSI_SAS_LIBSAS is not set
48 # CONFIG_SCSI_SRP_ATTRS is not set
49 # end of SCSI Transports
50 # CONFIG_SCSI_LOWLEVEL is not set
51 # CONFIG_SCSI_DH is not set
52 # end of SCSI device support
53 CONFIG_USB_NET_DRIVERS=y
54 # CONFIG_USB_CATC is not set
55 # CONFIG_USB_KAWETH is not set
56 # CONFIG_USB_PEGASUS is not set
57 # CONFIG_USB_RTL8150 is not set
58 # CONFIG_USB_RTL8152 is not set
59 # CONFIG_USB_LAN78XX is not set
60 CONFIG_USB_USBNET=y
61 CONFIG_USB_NET_AX8817X=y
62 CONFIG_USB_NET_AX88179_178A=y
63 CONFIG_USB_NET_CDCETHER=y
64 CONFIG_USB_NET_CDC_EEM=y
65 CONFIG_USB_NET_CDC_NCM=y
66 # CONFIG_USB_NET_HUAWEI_CDC_NCM is not set
67 # CONFIG_USB_NET_CDC_MBIM is not set
68 # CONFIG_USB_NET_DM9601 is not set
69 # CONFIG_USB_NET_SR9700 is not set
70 # CONFIG_USB_NET_SR9800 is not set
71 # CONFIG_USB_NET_SMSC75XX is not set
72 # CONFIG_USB_NET_SMSC95XX is not set
73 # CONFIG_USB_NET_GL620A is not set
74 CONFIG_USB_NET_NET1080=y
75 # CONFIG_USB_NET_PLUSB is not set
76 # CONFIG_USB_NET_MCS7830 is not set
77 CONFIG_USB_NET_RNDIS_HOST=y
78 CONFIG_USB_NET_CDC_SUBSET_ENABLE=y
79 CONFIG_USB_NET_CDC_SUBSET=y
80 # CONFIG_USB_ALI_M5632 is not set
81 # CONFIG_USB_AN2720 is not set
82 CONFIG_USB_BELKIN=y
83 CONFIG_USB_ARMLINUX=y
84 # CONFIG_USB_EPSON2888 is not set
85 # CONFIG_USB_KC2190 is not set
86 CONFIG_USB_NET_ZAURUS=y
87 # CONFIG_USB_NET_CX82310_ETH is not set
88 # CONFIG_USB_NET_KALMIA is not set
89 # CONFIG_USB_NET_QMI_WWAN is not set
90 # CONFIG_USB_HSO is not set
91 # CONFIG_USB_NET_INT51X1 is not set
92 # CONFIG_USB_IPHETH is not set
93 # CONFIG_USB_SIERRA_NET is not set
94 # CONFIG_USB_VL600 is not set
95 # CONFIG_USB_NET_CH9200 is not set
96 # CONFIG_USB_NET_AQC111 is not set
97 # CONFIG_USB_NET_RNDIS_WLAN is not set
98 # CONFIG_MOUSE_SYNAPTICS_USB is not set
99 # CONFIG_TABLET_USB_ACECAD is not set
100 # CONFIG_TABLET_USB_AIPTEK is not set
101 # CONFIG_TABLET_USB_GTCO is not set
102 # CONFIG_TABLET_USB_HANWANG is not set
103 # CONFIG_TABLET_USB_KBTAB is not set
104 # CONFIG_TABLET_USB_PEGASUS is not set
105 # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set
106 # CONFIG_I2C_TINY_USB is not set
107 # USB-based Watchdog Cards
108 # CONFIG_USBPCWATCHDOG is not set
109 CONFIG_SND_USB=y
110 CONFIG_SND_USB_AUDIO=y
111 # CONFIG_SND_USB_UA101 is not set
112 # CONFIG_SND_USB_USX2Y is not set
113 # CONFIG_SND_USB_CAIAQ is not set
114 # CONFIG_SND_USB_US122L is not set
115 # CONFIG_SND_USB_6FIRE is not set
116 # CONFIG_SND_USB_HIFACE is not set
117 # CONFIG_SND_USB_POD is not set
118 # CONFIG_SND_USB_PODHD is not set
119 # CONFIG_SND_USB_TONEPORT is not set
120 # CONFIG_SND_USB_VARIAX is not set
121 # USB HID support
122 CONFIG_USB_HID=y
123 CONFIG_USB_HIDDEV=y
124 # end of USB HID support
125 CONFIG_USB_OHCI_LITTLE_ENDIAN=y
126 CONFIG_USB_SUPPORT=y
127 CONFIG_USB_COMMON=y
128 # CONFIG_USB_LED_TRIG is not set
129 # CONFIG_USB_ULPI_BUS is not set
130 CONFIG_USB_ARCH_HAS_HCD=y
131 CONFIG_USB=y
132 CONFIG_USB_PCI=y
133 CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
134 # Miscellaneous USB options
135 CONFIG_USB_DEFAULT_PERSIST=y
136 # CONFIG_USB_DYNAMIC_MINORS is not set
137 # CONFIG_USB_OTG is not set
138 # CONFIG_USB_OTG_WHITELIST is not set
139 # CONFIG_USB_OTG_BLACKLIST_HUB is not set
140 # CONFIG_USB_LEDS_TRIGGER_USBPORT is not set
141 CONFIG_USB_AUTOSUSPEND_DELAY=2
142 CONFIG_USB_MON=y
143 # USB Host Controller Drivers
144 # CONFIG_USB_C67X00_HCD is not set
145 CONFIG_USB_XHCI_HCD=y
146 # CONFIG_USB_XHCI_DBGCAP is not set
147 CONFIG_USB_XHCI_PCI=y
148 # CONFIG_USB_XHCI_PLATFORM is not set
149 CONFIG_USB_EHCI_HCD=y
150 # CONFIG_USB_EHCI_ROOT_HUB_TT is not set
151 CONFIG_USB_EHCI_TT_NEWSCHED=y
152 CONFIG_USB_EHCI_PCI=y
153 # CONFIG_USB_EHCI_FSL is not set
154 # CONFIG_USB_EHCI_HCD_PLATFORM is not set
155 # CONFIG_USB_OXU210HP_HCD is not set
156 # CONFIG_USB_ISP116X_HCD is not set
157 # CONFIG_USB_FOTG210_HCD is not set
158 CONFIG_USB_OHCI_HCD=y
159 CONFIG_USB_OHCI_HCD_PCI=y
160 # CONFIG_USB_OHCI_HCD_PLATFORM is not set
161 CONFIG_USB_UHCI_HCD=y
162 # CONFIG_USB_SL811_HCD is not set
163 # CONFIG_USB_R8A66597_HCD is not set
164 # CONFIG_USB_HCD_TEST_MODE is not set
165 # USB Device Class drivers
166 CONFIG_USB_ACM=y
167 # CONFIG_USB_PRINTER is not set
168 CONFIG_USB_WDM=y
169 # CONFIG_USB_TMC is not set
170 # NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
171 # also be needed; see USB_STORAGE Help for more info
172 CONFIG_USB_STORAGE=y
173 # CONFIG_USB_STORAGE_DEBUG is not set
174 # CONFIG_USB_STORAGE_REALTEK is not set
175 # CONFIG_USB_STORAGE_DATAFAB is not set
176 # CONFIG_USB_STORAGE_FREECOM is not set
177 # CONFIG_USB_STORAGE_ISD200 is not set
178 # CONFIG_USB_STORAGE_USBAT is not set
179 # CONFIG_USB_STORAGE_SDDR09 is not set
180 # CONFIG_USB_STORAGE_SDDR55 is not set
181 # CONFIG_USB_STORAGE_JUMPSHOT is not set
182 # CONFIG_USB_STORAGE_ALAUDA is not set
183 # CONFIG_USB_STORAGE_ONETOUCH is not set
184 # CONFIG_USB_STORAGE_KARMA is not set
185 # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set
186 # CONFIG_USB_STORAGE_ENE_UB6250 is not set
187 # CONFIG_USB_UAS is not set
188 # USB Imaging devices
189 # CONFIG_USB_MDC800 is not set
190 # CONFIG_USB_MICROTEK is not set
191 # CONFIG_USBIP_CORE is not set
192 # CONFIG_USB_CDNS3 is not set
193 # CONFIG_USB_MUSB_HDRC is not set
194 # CONFIG_USB_DWC3 is not set
195 # CONFIG_USB_DWC2 is not set
196 # CONFIG_USB_CHIPIDEA is not set
197 # CONFIG_USB_ISP1760 is not set
198 # USB port drivers
199 CONFIG_USB_SERIAL=y
200 # CONFIG_USB_SERIAL_CONSOLE is not set
201 # CONFIG_USB_SERIAL_GENERIC is not set
202 # CONFIG_USB_SERIAL_SIMPLE is not set
203 # CONFIG_USB_SERIAL_AIRCABLE is not set
204 # CONFIG_USB_SERIAL_ARK3116 is not set
205 # CONFIG_USB_SERIAL_BELKIN is not set
206 # CONFIG_USB_SERIAL_CH341 is not set
207 # CONFIG_USB_SERIAL_WHITEHEAT is not set
208 # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
209 # CONFIG_USB_SERIAL_CP210X is not set
210 # CONFIG_USB_SERIAL_CYPRESS_M8 is not set
211 # CONFIG_USB_SERIAL_EMPEG is not set
212 # CONFIG_USB_SERIAL_FTDI_SIO is not set
213 # CONFIG_USB_SERIAL_VISOR is not set
214 # CONFIG_USB_SERIAL_IPAQ is not set
215 # CONFIG_USB_SERIAL_IR is not set
216 # CONFIG_USB_SERIAL_EDGEPORT is not set
217 # CONFIG_USB_SERIAL_EDGEPORT_TI is not set
218 # CONFIG_USB_SERIAL_F81232 is not set
219 # CONFIG_USB_SERIAL_F8153X is not set
220 # CONFIG_USB_SERIAL_GARMIN is not set
221 # CONFIG_USB_SERIAL_IPW is not set
222 # CONFIG_USB_SERIAL_IUU is not set
223 # CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
224 # CONFIG_USB_SERIAL_KEYSPAN is not set
225 # CONFIG_USB_SERIAL_KLSI is not set
226 # CONFIG_USB_SERIAL_KOBIL_SCT is not set
227 # CONFIG_USB_SERIAL_MCT_U232 is not set
228 # CONFIG_USB_SERIAL_METRO is not set
229 # CONFIG_USB_SERIAL_MOS7720 is not set
230 # CONFIG_USB_SERIAL_MOS7840 is not set
231 # CONFIG_USB_SERIAL_MXUPORT is not set
232 # CONFIG_USB_SERIAL_NAVMAN is not set
233 CONFIG_USB_SERIAL_PL2303=y
234 # CONFIG_USB_SERIAL_OTI6858 is not set
235 # CONFIG_USB_SERIAL_QCAUX is not set
236 # CONFIG_USB_SERIAL_QUALCOMM is not set
237 # CONFIG_USB_SERIAL_SPCP8X5 is not set
238 # CONFIG_USB_SERIAL_SAFE is not set
239 # CONFIG_USB_SERIAL_SIERRAWIRELESS is not set
240 # CONFIG_USB_SERIAL_SYMBOL is not set
241 # CONFIG_USB_SERIAL_TI is not set
242 # CONFIG_USB_SERIAL_CYBERJACK is not set
243 # CONFIG_USB_SERIAL_XIRCOM is not set
244 # CONFIG_USB_SERIAL_OPTION is not set
245 # CONFIG_USB_SERIAL_OMNINET is not set
246 # CONFIG_USB_SERIAL_OPTICON is not set
247 # CONFIG_USB_SERIAL_XSENS_MT is not set
248 # CONFIG_USB_SERIAL_WISHBONE is not set
249 # CONFIG_USB_SERIAL_SSU100 is not set
250 # CONFIG_USB_SERIAL_QT2 is not set
251 # CONFIG_USB_SERIAL_UPD78F0730 is not set
252 # CONFIG_USB_SERIAL_DEBUG is not set
253 # USB Miscellaneous drivers
254 # CONFIG_USB_EMI62 is not set
255 # CONFIG_USB_EMI26 is not set
256 # CONFIG_USB_ADUTUX is not set
257 # CONFIG_USB_SEVSEG is not set
258 # CONFIG_USB_LEGOTOWER is not set
259 # CONFIG_USB_LCD is not set
260 # CONFIG_USB_CYPRESS_CY7C63 is not set
261 # CONFIG_USB_CYTHERM is not set
262 # CONFIG_USB_IDMOUSE is not set
263 # CONFIG_USB_FTDI_ELAN is not set
264 # CONFIG_USB_APPLEDISPLAY is not set
265 # CONFIG_USB_SISUSBVGA is not set
266 # CONFIG_USB_LD is not set
267 # CONFIG_USB_TRANCEVIBRATOR is not set
268 # CONFIG_USB_IOWARRIOR is not set
269 # CONFIG_USB_TEST is not set
270 # CONFIG_USB_EHSET_TEST_FIXTURE is not set
271 # CONFIG_USB_ISIGHTFW is not set
272 # CONFIG_USB_YUREX is not set
273 # CONFIG_USB_EZUSB_FX2 is not set
274 # CONFIG_USB_HUB_USB251XB is not set
275 # CONFIG_USB_HSIC_USB3503 is not set
276 # CONFIG_USB_HSIC_USB4604 is not set
277 # CONFIG_USB_LINK_LAYER_TEST is not set
278 # CONFIG_USB_CHAOSKEY is not set
279 # USB Physical Layer drivers
280 # CONFIG_NOP_USB_XCEIV is not set
281 # CONFIG_USB_ISP1301 is not set
282 # end of USB Physical Layer drivers
283 CONFIG_USB_GADGET=y
284 # CONFIG_USB_GADGET_DEBUG is not set
285 # CONFIG_USB_GADGET_DEBUG_FILES is not set
286 # CONFIG_USB_GADGET_DEBUG_FS is not set
287 CONFIG_USB_GADGET_VBUS_DRAW=2
288 CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
289 # USB Peripheral Controller
290 # CONFIG_USB_FOTG210_UDC is not set
291 # CONFIG_USB_GR_UDC is not set
292 # CONFIG_USB_R8A66597 is not set
293 # CONFIG_USB_PXA27X is not set
294 # CONFIG_USB_MV_UDC is not set
295 # CONFIG_USB_MV_U3D is not set
296 # CONFIG_USB_M66592 is not set
297 # CONFIG_USB_BDC_UDC is not set
298 # CONFIG_USB_AMD5536UDC is not set
299 # CONFIG_USB_NET2272 is not set
300 # CONFIG_USB_NET2280 is not set
301 # CONFIG_USB_GOKU is not set
302 # CONFIG_USB_EG20T is not set
303 # CONFIG_USB_DUMMY_HCD is not set
304 # end of USB Peripheral Controller
305 CONFIG_USB_LIBCOMPOSITE=y
306 CONFIG_USB_U_ETHER=y
307 CONFIG_USB_F_ECM=y
308 CONFIG_USB_F_SUBSET=y
309 CONFIG_USB_F_RNDIS=y
310 # CONFIG_USB_CONFIGFS is not set
311 # CONFIG_USB_ZERO is not set
312 # CONFIG_USB_AUDIO is not set
313 CONFIG_USB_ETH=y
314 CONFIG_USB_ETH_RNDIS=y
315 # CONFIG_USB_ETH_EEM is not set
316 # CONFIG_USB_G_NCM is not set
317 # CONFIG_USB_GADGETFS is not set
318 # CONFIG_USB_FUNCTIONFS is not set
319 # CONFIG_USB_MASS_STORAGE is not set
320 # CONFIG_USB_G_SERIAL is not set
321 # CONFIG_USB_MIDI_GADGET is not set
322 # CONFIG_USB_G_PRINTER is not set
323 # CONFIG_USB_CDC_COMPOSITE is not set
324 # CONFIG_USB_G_ACM_MS is not set
325 # CONFIG_USB_G_MULTI is not set
326 # CONFIG_USB_G_HID is not set
327 # CONFIG_USB_G_DBGP is not set
328 # CONFIG_USB_ROLE_SWITCH is not set
329 # LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM)
330 # CONFIG_BCM_KONA_USB2_PHY is not set
331 # CONFIG_PHY_PXA_28NM_USB2 is not set
332 CONFIG_EARLY_PRINTK_USB=y
333 # CONFIG_EARLY_PRINTK_USB_XDBC is not set
334 $
335
336 Any help appreciated :-)
337
338 Sincerely,
339 Rainer

Replies

Subject Author
Re: [gentoo-user] Is there a way to misconfigure USB ports in the kernel? Michael <confabulate@××××××××.com>