Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3189335ybi; Thu, 18 Jul 2019 22:46:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2yUHBrq/lC4pb5iE7Xgr9ZZfE9AHF2mTGbWqa3HIy3WBH3NPxs7IDnTnpOsYueXCb+WUr X-Received: by 2002:a17:902:8547:: with SMTP id d7mr55751720plo.171.1563515179982; Thu, 18 Jul 2019 22:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563515179; cv=none; d=google.com; s=arc-20160816; b=h5SN8zZ3IiODrTwSzfFw0pX0J/Hb0k/n4Jpf0Zh474yLiQjCz2NFILYtjSCmmR/QL0 +YmUGStRCuo5wX4YNa4nt6ZJOEkS9T73kZil4nCjhjzUaJAYGFSqfznabfl5ADP6mKKT yHu/BRMH4P2H6wJwyUzTsrFtGjOuWLL5TLiWn2c8pdxv8S0HIO1n/Im5HzhMxVEN7txd wYwmdbFJdXSGJoyai7lblXgvvWpsSuuxzYC/dKJeYFdvktsxdiRsqyefboMD87foNcyu jESog752Fa6JJI/xdcVzkV2xuzJaoDh0z6etyhzaEfgCj4hlTrogiMu4mSdUcuwuHxlH H7SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yk2+4Vq4KFG4mMs/65lsgjXt1lwrBOm3DDIfsr8Tq+4=; b=VyFMCSvyZo6Kxa4JR/P9euO+d1arUSNInkQs0VcAEwh+nlFBkcXrtzXvCphcuA/tz2 P3m4PrRa6dr7hCb2+g5sA28gSpF13qtyekefaOjLWo1V37T/Qu3KoqBm28zuzC3/G4pN pXN+GngrcIdAz2SzRXtzNIMdsW0gObyvpNr8YCYsWWDadN2IaIF6QP4tUG/53MnBCKje Oa1095tclUBwz9qMIDEIF4lly6wQN6w19tDhQ+hommTl9sto6dOL166lCqcLlJRWwc3e hM+YvfdcNG8FN+HyJCal/2hDNgGlIy0bQXwdAqlasHDHUPkXCZgt16TnWhC2WQ8bEMVR ezVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tB61YPUU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si1163436pja.67.2019.07.18.22.46.04; Thu, 18 Jul 2019 22:46:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tB61YPUU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbfGSFpd (ORCPT + 99 others); Fri, 19 Jul 2019 01:45:33 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:42177 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbfGSFpc (ORCPT ); Fri, 19 Jul 2019 01:45:32 -0400 Received: by mail-yb1-f194.google.com with SMTP id f195so12269343ybg.9 for ; Thu, 18 Jul 2019 22:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yk2+4Vq4KFG4mMs/65lsgjXt1lwrBOm3DDIfsr8Tq+4=; b=tB61YPUUXcLoU2JKUJmP9kqM/evG6BLIRj5/WW6E4NGFfWnUCDDpcaOy4OcgYkBn4d DK76LahHfJhT4gE/zTX8IvVpltuZtj0c+rWQUU6RzJL7TjpS9i0m1g9tpZHsVnt9pWbp 0ZNyKnP6zn3V1yM1uU3U3WvH1Lr1r8+F9mqkkXP6sBe1Jz37gomlX2wpt/H30YKn2ck5 MNAG8jyw8tmWimrPDBeqgBHZwUzfD5EKUZT1PrSfAvVMipzm6Gu5pAJfDmwyBY6lB1XA L+v49P/zSEUU9Jfvg0jWGWwTwxtnYevcvmjt1pbkb9hv0Maht83WeNvLRm4E/yS6Nn6c jlug== 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=yk2+4Vq4KFG4mMs/65lsgjXt1lwrBOm3DDIfsr8Tq+4=; b=cYeTIw4KVfzGhS731Ui1W/I0NUjkYH5T977hEobkt6IRAYFWyt4AuFN1tK7dxpzuwu zYYUjRuGUsi+FSLNucjMtNuOGIU+v93FosMxDvrvcKDWWb+JHorHSWAo3Ejz0QbYWa2y THikIxfmwCpNefCKdLVJ3WA6XuCLVMGO1AmJuxGFSDM6VChf6WcIKrj4E/CrbsUYyivB 78I5nnxJlCG5a3KlwQJqumLHZaoOz54aKQfjVLLqfeUnBp7YFPAwXGsMrB1s3rTWkYsX pw0TjUnVwdEJ8I21u7zIR5iUMWg3bGVGBeo+NPwSE7KFMc9gnusHHLDmOckFf2y2snHg hjng== X-Gm-Message-State: APjAAAUBEiyUpBMel+XJZOab5ALXzInQaL+okqne9m3X3QS/waAJfa3s 8+EE74OuQrurWxQZZkfjlcj1hRlbkcHoZA0K1Rg= X-Received: by 2002:a25:b9c8:: with SMTP id y8mr7219655ybj.484.1563515131921; Thu, 18 Jul 2019 22:45:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Balbir Singh Date: Fri, 19 Jul 2019 15:45:20 +1000 Message-ID: Subject: Re: [PATCH v3] nvme-pci: Support shared tags across queues for Apple 2018 controllers To: Benjamin Herrenschmidt Cc: linux-nvme@lists.infradead.org, Damien Le Moal , "linux-kernel@vger.kernel.org" , Paul Pawlowski , Jens Axboe , Minwoo Im , Keith Busch , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 19, 2019 at 3:31 PM Benjamin Herrenschmidt wrote: > > From 8dcba2ef5b1466b023b88b4eca463b30de78d9eb Mon Sep 17 00:00:00 2001 > From: Benjamin Herrenschmidt > Date: Fri, 19 Jul 2019 15:03:06 +1000 > Subject: > > Another issue with the Apple T2 based 2018 controllers seem to be > that they blow up (and shut the machine down) if there's a tag > collision between the IO queue and the Admin queue. > > My suspicion is that they use our tags for their internal tracking > and don't mix them with the queue id. They also seem to not like > when tags go beyond the IO queue depth, ie 128 tags. > > This adds a quirk that marks tags 0..31 of the IO queue reserved > > Signed-off-by: Benjamin Herrenschmidt > --- Reviewed-by: Balbir Singh