From owner-freebsd-stable@freebsd.org Sun Sep 8 09:01:54 2019 Return-Path: Delivered-To: freebsd-stable@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 841F1ECFC8 for ; Sun, 8 Sep 2019 09:01:54 +0000 (UTC) (envelope-from john@spikefishsolutions.com) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46R4zj0M7gz4fL1 for ; Sun, 8 Sep 2019 09:01:52 +0000 (UTC) (envelope-from john@spikefishsolutions.com) Received: by mail-lf1-x132.google.com with SMTP id y4so8170550lfe.11 for ; Sun, 08 Sep 2019 02:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spikefishsolutions.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=MZFnaTClqtGZ1iRzfMcCPRshQRY8qsXD+ufpGRvxGGc=; b=AX0fi4it5TxLGlHBQDDZE9Z9noEextJwOQ4gHrllqgXykvUshc6N6YcpA1pd60q3HL EJCHsitC7hKx11tW2eeocVkZBhxVLG2NtqAsE/+j2PvPMoPqY4t967gzm0fdyvDr17B6 G6AZoBFFFvrq7cIjAUG3u4ndSF851zmh5/ybU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MZFnaTClqtGZ1iRzfMcCPRshQRY8qsXD+ufpGRvxGGc=; b=aloseeDexQ9fILBlPrmUEiTLYI+H/H1suqWy405JKjH9pmZKJYQXW/IpMxLwUizuzY 8gyM2qEXTWhSvnt8ilSSsuXtTOioE35zIyi0xwE1Yo3qq2rHha/kniXBe8igWkvVh7B9 QNfseb3dml21igp8nEVfWdtN//BXDtigBu0mb7Zsjdq5LFiSVQeutbNXIu2z3SZx8THr 0sOMePbormN16bT6o/j9tATZYzktncMeEP/EzdjEB8xqnwGT7KJCaz5zE+soqOy6+vkA 7uJZM7K01de/aXluQZAaXyo/4rJpdF1ZGhMmdSBcxl7KuxC18sUVklh58lRGKG7FBRfw 0TNA== X-Gm-Message-State: APjAAAUKQwPwir4kk7h1nJVhYOTe2MdTK4pQlKvHw4K/DocrJZzTOSVS VHsYYx6B7dmvyGV6w4f3zH9wsXc6T7la5lUiHGjgC1C+iSU= X-Google-Smtp-Source: APXvYqwEfEoWziz4ZKqMCorSt+9O6nw7sDGevAdgm17RrJmYUr8J446tZXVjzgTQeteagYRX875hv7c/PTaXFdRo4rw= X-Received: by 2002:ac2:46f8:: with SMTP id q24mr12466396lfo.51.1567933310075; Sun, 08 Sep 2019 02:01:50 -0700 (PDT) MIME-Version: 1.0 From: John Fleming Date: Sun, 8 Sep 2019 05:01:39 -0400 Message-ID: Subject: MRSAS - Connected Sata port question To: freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 46R4zj0M7gz4fL1 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=spikefishsolutions.com header.s=google header.b=AX0fi4it; dmarc=none; spf=pass (mx1.freebsd.org: domain of john@spikefishsolutions.com designates 2a00:1450:4864:20::132 as permitted sender) smtp.mailfrom=john@spikefishsolutions.com X-Spamd-Result: default: False [-6.47 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[spikefishsolutions.com:s=google]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[spikefishsolutions.com]; DKIM_TRACE(0.00)[spikefishsolutions.com:+]; NEURAL_HAM_SHORT(-1.00)[-0.997,0]; RCVD_IN_DNSWL_NONE(0.00)[2.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.97)[ip: (-9.56), ipnet: 2a00:1450::/32(-2.97), asn: 15169(-2.27), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2019 09:01:54 -0000 https://github.com/freebsd/freebsd/blob/master/sys/dev/mrsas/mrsas_cam.c#L359 ccb->cpi.base_transfer_speed = 150000; What is that used for? I poked around /usr/src/sys and found multiple WTF comments. The reason I ask is i have Samsung EVO 860s plugged into a Dell R720 (via LSI 9361 which is where mrsas comes from (also have mfi disabled)) and seeing da0 speed of 150.000MB/sec in dmesg output is a bit strange. I hacked the source and moved it to 600 and sure enough it now reports 600MB/sec on boot up. I haven't benchmarked old vs new yet because the system in question can't be rebooted for a while.