From nobody Thu Feb 09 19:04:58 2023 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PCRBt39TKz3nPQ0 for ; Thu, 9 Feb 2023 19:05:10 +0000 (UTC) (envelope-from SRS0=v8rL=6F=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PCRBs2j5cz3MZW for ; Thu, 9 Feb 2023 19:05:09 +0000 (UTC) (envelope-from SRS0=v8rL=6F=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of "SRS0=v8rL=6F=quip.cz=000.fbsd@elsa.codelab.cz" has no SPF policy when checking 94.124.105.4) smtp.mailfrom="SRS0=v8rL=6F=quip.cz=000.fbsd@elsa.codelab.cz"; dmarc=none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 5B81A28482 for ; Thu, 9 Feb 2023 20:05:01 +0100 (CET) Received: from [192.168.145.50] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 005BA28411 for ; Thu, 9 Feb 2023 20:04:58 +0100 (CET) Message-ID: <4caf465e-4514-6dbb-1a65-8a27b9b1537e@quip.cz> Date: Thu, 9 Feb 2023 20:04:58 +0100 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 To: freebsd-stable@freebsd.org Content-Language: cs-Cestina, en-US From: Miroslav Lachman <000.fbsd@quip.cz> Subject: sym vs ncr driver for emulated LSI 53C895A Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-1.80 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=v8rL=6F=quip.cz=000.fbsd@elsa.codelab.cz]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[quip.cz]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=v8rL=6F=quip.cz=000.fbsd@elsa.codelab.cz]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4PCRBs2j5cz3MZW X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N I have FreeBSD 12.4 virtual machine installed inside KVM. This machine has 2 disks. One is 30GB connected as VirtIO vtbd0. There is installed system. The second is 20TB iSCSI connected to KVM and should be available inside VM as SCSI disk da0 but it is not. I see following errors in a log sym0:1: message c sent on bad reselection. sym0:1:control msgout: 80 6. (probe1:sym0:0:1:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe1:sym0:0:1:0): CAM status: Command timeout (probe1:sym0:0:1:0): Retrying command, 3 more tries remain sym0:1: message c sent on bad reselection. sym0:1:control msgout: 80 6. (probe1:sym0:0:1:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe1:sym0:0:1:0): CAM status: Command timeout (probe1:sym0:0:1:0): Retrying command, 2 more tries remain sym0:1: message c sent on bad reselection. sym0:1:control msgout: 80 6. (probe1:sym0:0:1:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe1:sym0:0:1:0): CAM status: Command timeout (probe1:sym0:0:1:0): Retrying command, 1 more tries remain sym0:1: message c sent on bad reselection. sym0:1:control msgout: 80 6. (probe1:sym0:0:1:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe1:sym0:0:1:0): CAM status: Command timeout (probe1:sym0:0:1:0): Retrying command, 0 more tries remain sym0:1: message c sent on bad reselection. sym0:1:control msgout: 80 6. (probe1:sym0:0:1:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe1:sym0:0:1:0): CAM status: Command timeout (probe1:sym0:0:1:0): Error 5, Retries exhausted Relevant part of the dmesg: virtio_pci0: port 0xc200-0xc27f mem 0xfc0b7000-0xfc0b7fff,0xfebf8000-0xfebfbfff irq 10 at device 5.0 on pci0 vtblk0: on virtio_pci0 vtblk0: 30720MB (62914560 512 byte sectors) virtio_pci1: port 0xc2c0-0xc2ff mem 0xfebfc000-0xfebfffff irq 10 at device 6.0 on pci0 vtballoon0: on virtio_pci1 sym0: <895a> port 0xc000-0xc0ff mem 0xfc0b8000-0xfc0b83ff,0xfc0b2000-0xfc0b3fff irq 11 at device 7.0 on pci0 sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking sym1: <895a> port 0xc100-0xc1ff mem 0xfc0b9000-0xfc0b93ff,0xfc0b4000-0xfc0b5fff irq 11 at device 8.0 on pci0 sym1: No NVRAM, ID 7, Fast-40, LVD, parity checking ahci0: port 0xc380-0xc39f mem 0xfc0ba000-0xfc0bafff irq 10 at device 9.0 on pci0 ahci0: AHCI v1.00 with 6 1.5Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 2 on ahci0 ahcich3: at channel 3 on ahci0 ahcich4: at channel 4 on ahci0 ahcich5: at channel 5 on ahci0 ahci1: port 0xc3a0-0xc3bf mem 0xfc0bb000-0xfc0bbfff irq 10 at device 10.0 on pci0 ahci1: AHCI v1.00 with 6 1.5Gbps ports, Port Multiplier not supported ahcich6: at channel 0 on ahci1 ahcich7: at channel 1 on ahci1 ahcich8: at channel 2 on ahci1 ahcich9: at channel 3 on ahci1 ahcich10: at channel 4 on ahci1 ahcich11: at channel 5 on ahci1 The controller is listed by pciconf # pciconf -lv | grep -A4 sym sym0@pci0:0:7:0: class=0x010000 card=0x10000000 chip=0x00121000 rev=0x00 hdr=0x00 vendor = 'Broadcom / LSI' device = '53c895a' class = mass storage subclass = SCSI sym1@pci0:0:8:0: class=0x010000 card=0x10000000 chip=0x00121000 rev=0x00 hdr=0x00 vendor = 'Broadcom / LSI' device = '53c895a' class = mass storage subclass = SCSI I tried to search what should be the right driver for LSI 53c895a but I am a bit confused. sym(4) is attached on boot, but it is also listed on hardware notes and man page for ncr(4) driver https://www.freebsd.org/releases/12.4R/hardware/ I tried to kldload ncr but can't load ncr: No such file or directory. Should ncr be built separately? (the system is running 12.4 with GENERIC kernel) And how can I configure it to use ncr instead of sym? Or are there any other way to make FreeBSD guest happy in KVM host? (I am not controlling the KVM host, I don't know the exact configuration of it) Kind regards Miroslav Lachman