From nobody Wed May 25 14:17:15 2022 X-Original-To: freebsd-current@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 63A411B50969 for ; Wed, 25 May 2022 14:17:43 +0000 (UTC) (envelope-from mattik@gwsit.com.au) Received: from se4.syd.hostingplatform.net.au (se4.syd.hostingplatform.net.au [IPv6:2400:b800:4::52]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4L7Y786tcHz3qCL; Wed, 25 May 2022 14:17:40 +0000 (UTC) (envelope-from mattik@gwsit.com.au) Received: from s02ad.syd2.hostingplatform.net.au ([103.27.32.38]) by se4.syd.hostingplatform.net.au with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1ntrp7-0004vt-QE; Thu, 26 May 2022 00:17:27 +1000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gwsit.com.au; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=p6Yw4u14fkmRSGl2OxY5Q86rIN9w+aKEW4bV4aGKDs4=; b=THvebqphkW3bevCb/mF5MFOg8S LM6Hq6F7fRRLadFAFmqKpZYHXbUvca+pUUWCJ+/A95JRu2vmY2TGygA/rc3BM8V/9jOu2cLHv1lts 1ONpJ3qVHyo6PoYVypQ3gLRQRt8ZAoNI7po+alpBT3bylgRQHEAcwDnQLDTrYxPgxJDkVkkUdGr3C OdXaglw2lcT2/uCvTxiALl2tbJtjGnp0U22m7ferBLnGFg0rLuvQBvLIMn/OAiWTzgzg3YeIPikFd 8hYhXMBU/+4FTVGB7QWsFyZVuhDtvjKsqesweiIjZOBqpVAgHPJfeg29WG6jb/cC2dAZMfYwcy9Dm 2zFhDW2w==; Received: from 180-150-31-87.b4961f.syd.static.aussiebb.net ([180.150.31.87]:65459 helo=ws1.wobblyboot.net) by s02ad.syd2.hostingplatform.net.au with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ntrp5-003aaz-TX; Thu, 26 May 2022 00:17:15 +1000 Date: Thu, 26 May 2022 00:17:15 +1000 From: matti k To: Alexander Motin Cc: Matteo Riondato , freebsd-current@freebsd.org, Jim Harris Subject: Re: nvme INVALID_FIELD in dmesg.boot Message-ID: <20220526001715.4ffee96a@ws1.wobblyboot.net> In-Reply-To: References: <20220525122529.t2kwfg2q65dfiyyt@host-ubertino-mac-88e9fe7361f5.eduroam.ssid.10net.amherst.edu> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s02ad.syd2.hostingplatform.net.au X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gwsit.com.au X-Get-Message-Sender-Via: s02ad.syd2.hostingplatform.net.au: authenticated_id: mattik@gwsit.com.au X-Authenticated-Sender: s02ad.syd2.hostingplatform.net.au: mattik@gwsit.com.au X-Source: X-Source-Args: X-Source-Dir: X-Originating-IP: 103.27.32.38 X-SpamExperts-Domain: out-2.hostyourservices.net X-SpamExperts-Username: 103.27.32.38 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9WLQux0N3HQm8ltz8rnu+BPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x5gMyVinKuvnFxletoVJLScufRc/bwSLYvMEjTVgTqjsk+ GvLznYtE3mvn5foh3HMTf/WiynJlK9xi5RktnVCMXm8l1fjy9m4uoDkHz+uZxkM123dNmjj9Xk/D oSm+npUYRKuVemGM4r2gbaSgcgS2WEN3NCBtCPrZwBXPIIYGbbQauorde96+jiFOqzBKo/JyDFEC R6DQvbeKezE2O5+g7jwKR0XFJHZ7YcbuH2uF9lhHe/ad6YoSe+/PctnxdX2oTijKVH6dW2gzI9YY qwIB8U54yHbe0U2Q73dIPYtLRWL18m90UK915zhQ3nGecqA0pBShsjuG4FWhl4kkoP5Ysi+5m7mm EWZZyR13gEslHyBqflY7HU0pbqzl3Wk1+b7OTcDLqbQSaN7y+jeAyQ/FfmlybO2t27Vlfxuh17XF ygEawskmC6nd/kpvbGXYaUGFtHAspirvr09NOD8SRR7oQTglYHOqhKyk9UK+PbRzMq6eJjazk+Qv 52DA2lmFChTzGOBdlUi43AF+cJAY7kbRqq98AcBHl+gIueRT0ac4W7ZjLdEhS9gDm7pEQePtlf6i FuRgzMKn5yr0QiZanpmbIK/1NH5THMtlYvyHAYGOGvzjsGo8W6ownn+kprqMLP6xNi1VgTxfSMxe s4OGRCnw9DDDYNaW/zt60NI6QunrGSLMmGsWGQp99Dtng8VILT5aw6fJdkGVoKDC1jQ0XQReqYYB pu7LaaTIrPQqmJlr2980n95DI6eCalLXl9IiAiBysi/rrsEvQSkmXSBJ/V0W82cKxZFAhCYB6hPz A4TbjAE+R6KbYZdvwy3kNOAZWNvVkE9s01KRXGLleFW27GczWcO+1XTTYsHq/pVP4wxS4DxTqk34 eZ/5qp8PmC1pGhVKvUqPAt4+POLHYyNocd5OctgzcDoFd+96Xw4QUNtTnVx/JD4hYOlykPNnJlRn b1UOWKWmImeKyhNb2TZsoUklVUanxVObDJn7JWiYO5x7b3We68XEKbaF8O17PEdfgmgN6jzr9Gra ws9NUvjUCFbwh2lMMB1MaqU1VQTkVxFz7dmof2kM5+Q84ff0YlyxD0EkKZwWSlyieMNP++l8AoPT nZ9KpkPhTOGAcqH42ivgv863yxTRnmoPIgfyhuMiIxBbElLU6JUHz57QwdFyzl7l X-Report-Abuse-To: spam@se.syd.hostingplatform.net.au X-Rspamd-Queue-Id: 4L7Y786tcHz3qCL X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gwsit.com.au header.s=default header.b=THvebqph; dmarc=pass (policy=none) header.from=gwsit.com.au; spf=pass (mx1.freebsd.org: domain of mattik@gwsit.com.au designates 2400:b800:4::52 as permitted sender) smtp.mailfrom=mattik@gwsit.com.au X-Spamd-Result: default: False [-3.97 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gwsit.com.au:s=default]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; HAS_X_SOURCE(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+a]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[gwsit.com.au:+]; DMARC_POLICY_ALLOW(-0.50)[gwsit.com.au,none]; NEURAL_HAM_SHORT(-0.97)[-0.970]; HAS_X_GMSV(0.00)[mattik@gwsit.com.au]; MLMMJ_DEST(0.00)[freebsd-current]; HAS_X_ANTIABUSE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:45638, ipnet:2400:b800:4::/48, country:AU]; RCVD_TLS_ALL(0.00)[]; HAS_X_AS(0.00)[mattik@gwsit.com.au] X-ThisMailContainsUnwantedMimeParts: N On Wed, 25 May 2022 09:58:54 -0400 Alexander Motin wrote: > On 25.05.2022 08:25, Matteo Riondato wrote: > > My dmesg.boot contains the following entries containing > > "INVALID_FIELD" about nvme (I use nda(4) for my nvme disks, with > > hw.nvme.use_nvd=0 in loader.conf): > > > > trismegistus ~ % grep -e 'nvme[0-9]\?' /var/run/dmesg.boot > > nvme0: mem 0xb8610000-0xb8613fff irq 40 at device > > 0.0 numa-domain 0 on pci7 > > nvme1: mem 0xb8510000-0xb8513fff irq 47 at device > > 0.0 numa-domain 0 on pci8 > > nvme2: mem 0xc5e10000-0xc5e13fff irq 48 at device > > 0.0 numa-domain 0 on pci10 > > nvme3: mem 0xc5d10000-0xc5d13fff irq 55 at device > > 0.0 numa-domain 0 on pci11 > > nvme0: SET FEATURES (09) sqid:0 cid:15 nsid:0 cdw10:0000000b > > cdw11:0000031f nvme0: INVALID_FIELD (00/02) sqid:0 cid:15 cdw0:0 > > nvme1: SET FEATURES (09) sqid:0 cid:15 nsid:0 cdw10:0000000b > > cdw11:0000031f nvme1: INVALID_FIELD (00/02) sqid:0 cid:15 cdw0:0 > > nvme2: SET FEATURES (09) sqid:0 cid:15 nsid:0 cdw10:0000000b > > cdw11:0000031f nvme2: INVALID_FIELD (00/02) sqid:0 cid:15 cdw0:0 > > nvme3: SET FEATURES (09) sqid:0 cid:15 nsid:0 cdw10:0000000b > > cdw11:0000031f nvme3: INVALID_FIELD (00/02) sqid:0 cid:15 cdw0:0 > > nda0 at nvme0 bus 0 scbus16 target 0 lun 1 > > nda0: nvme version 1.2 x4 (max x4) lanes PCIe Gen3 (max Gen3) link > > nda1 at nvme1 bus 0 scbus17 target 0 lun 1 > > nda1: nvme version 1.2 x4 (max x4) lanes PCIe Gen3 (max Gen3) link > > nda2 at nvme2 bus 0 scbus18 target 0 lun 1 > > nda2: nvme version 1.2 x4 (max x4) lanes PCIe Gen3 (max Gen3) link > > nda3 at nvme3 bus 0 scbus19 target 0 lun 1 > > nda3: nvme version 1.2 x4 (max x4) lanes PCIe Gen3 (max Gen3) link > > > > The disks seem to work fine, from what I can tell. > > > > Are the "INVALID_FIELD" messages harmless, or can they be avoided > > with some tuning, or maybe with some patch? > > Those messages mean that driver tried to enable certain types of > asynchronous events, but probably the hardware does not support some > of those. If you wish to experiment we could try to mask some of the > bits in nvme_ctrlr_configure_aer() function to find out which one > exactly, but for discontinued drives 4-5 years old it might not have > too much sense. It should not be critical unless you either overheat > them, or somehow else they fail and wish to report it. > I am intrigued to how you guru's know this, is it because you know the code well enough?