From owner-freebsd-current@freebsd.org Mon Dec 10 00:21:45 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79B29130B1DE for ; Mon, 10 Dec 2018 00:21:45 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CCA278527C for ; Mon, 10 Dec 2018 00:21:44 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: by mail-pl1-f174.google.com with SMTP id e5so4372512plb.5 for ; Sun, 09 Dec 2018 16:21:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KkiUOLyWOMZ5TofQqQc22q+TgVRI5rfX5X2uyD2hggY=; b=EGcR3Dk3SlL0MuX9RNpnWL1itmUOz6qqK3VUY6cjjOrOdD+Un2AgKoRWpcagXqOybX el+xBKafDxa9gp44C34wtKN/f9ovqtDMtRDQ/LciePNaFCaVp+uGEg+ScZiI4ROXeaJK Arpbtn0cedHV7+v4pXgCz5EHSw+RSh79WGwJ7sW+1HwdABoOjhyH/FrRN/WbCLW/3L3H v3asFP1xV0JymcBIbM14BA+x3K4WLZXlflXBXC8WZ9sWMwslpcXYhHB3LHMV6xZMsUOC xd4ZzzhbR0xoGoMT8vMsd127qhl8w0DAMM5B9PvhPb5b4oZosqIafIuFbnJ7elB3M/CZ TVPg== X-Gm-Message-State: AA+aEWYDf/3u6Ud5FSIdN4z1UoXO2uG1lNcught78WdBxeHO8BPlUEvn rpq8YZgULfW+f7gDjF8zJ5a7QpSr X-Google-Smtp-Source: AFSGD/XZu0HKSosFUgZgWDTc0idLGCoX7AHUQ1Rp/fnBnJMjvlKhEzTn7llZttN/Q5YeXBikknyrfA== X-Received: by 2002:a17:902:b78b:: with SMTP id e11mr10170380pls.90.1544399487298; Sun, 09 Dec 2018 15:51:27 -0800 (PST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com. [209.85.214.173]) by smtp.gmail.com with ESMTPSA id q199sm15601049pfc.97.2018.12.09.15.51.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Dec 2018 15:51:27 -0800 (PST) Received: by mail-pl1-f173.google.com with SMTP id b5so4344737plr.4 for ; Sun, 09 Dec 2018 15:51:27 -0800 (PST) X-Received: by 2002:a17:902:9a9:: with SMTP id 38mr9933373pln.204.1544399486749; Sun, 09 Dec 2018 15:51:26 -0800 (PST) MIME-Version: 1.0 References: <015e28d3-3c6f-b5f3-b41a-5f6d367dddbb@yuripv.net> <9db60b9c-fea0-c5d6-5f8f-eae051c3f92d@yuripv.net> In-Reply-To: <9db60b9c-fea0-c5d6-5f8f-eae051c3f92d@yuripv.net> From: Chuck Tuffli Date: Sun, 9 Dec 2018 15:50:52 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: nda(4) does not work (reliably) in VMware Workstation To: yuripv@yuripv.net Cc: freebsd-current@freebsd.org X-Rspamd-Queue-Id: CCA278527C X-Spamd-Result: default: False [-3.92 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[174.214.85.209.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[174.214.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.94)[-0.936,0]; RCVD_TLS_LAST(0.00)[]; FORGED_SENDER(0.30)[chuck@freebsd.org,ctuffli@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[chuck@freebsd.org,ctuffli@gmail.com]; IP_SCORE(-0.98)[ipnet: 209.85.128.0/17(-3.52), asn: 15169(-1.30), country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2018 00:21:45 -0000 On Sun, Dec 9, 2018 at 3:43 PM Yuri Pankov wrote: > Chuck Tuffli wrote: > > On Sat, Dec 8, 2018 at 12:28 PM Yuri Pankov > > wrote: > > > > Hi, > > > > Running -HEAD in VMware Workstation 15.0.2 VM. Trying to use nda(4) > > instead of nvd(4) shows the following list of errors, and eventually > > panics: > > > > https://people.freebsd.org/~yuripv/nda1.png > > https://people.freebsd.org/~yuripv/nda2.png > > > > nvd(4) works without issues in this VM. nda(4) works as well in > VMware > > ESXi VMs. Is this a problem with WS NVMe emulation? > > > > > > Since I don't have access to ESXi, the attached is a speculative fix. If > > it works, I'll clean this up a bit and get it committed. If not, please > > post the output from: > > nvmecontrol identtify nvme0 > > Thank you, it seems to help (was seeing the issue previously immediately > after boot). BTW, the ESXi VM works fine with nda, it's only the > Workstation that had the problem. Comparing `nvmecontrol identify` > output from both, the only difference is (first is WS, second is ESXi): > > -Dataset Management Command: Not Supported > +Dataset Management Command: Supported > OK, that makes sense given the error message and the patch working. I'll get this cleaned up and committed. Thanks for the report! --chuck