Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8308781imu; Thu, 15 Nov 2018 09:31:43 -0800 (PST) X-Google-Smtp-Source: AJdET5fqrSSBSx4p/UDEmBR/eN+Rk8GSlSu7WX12C97m6m9WR93bPfmnBg0nz6uAj/aw1UmwLXUN X-Received: by 2002:a63:40c6:: with SMTP id n189mr6498764pga.355.1542303103639; Thu, 15 Nov 2018 09:31:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542303103; cv=none; d=google.com; s=arc-20160816; b=wlZ0MmIIl98X4XIUfbuyoJq6kGZhTtV9XPZIjqOLziHeKbjnqCRPKVpI1rvWiEcj37 JfnDEdpxYssG1CajbDYxA5p4cBNDlYp2nBQRbp8JiJnI0gvPaYzZPKLXuGqrS8LQ2mR/ z4QpAGYTeTC6Nk2OnFXsoH+5Pz3UOap/gkGOD2jFW6e7FpTyuiMbdPHJkEym3hib2AnS 2ruP1bm9CzACTBqerWDlaZZeyrFJRee9cBk0sGZuIo3o+hJLUgpYaHOgR2UXNPej52IR MoEyo5nSw7ffoeKl6RU8KrsQv/nCI8tQtjduBquHNhGrzxOTdsiLiSo3qcTAIFDAqumG mLTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O/0/D5z5TL5PW2MO4jEWkNKt/0WkcRgcE6Xtg8cnqws=; b=XGQoTpVQluH9dBO133m5c7U5Opv0NOBbNQGgJ6Sq/hudbNa1Pj8mYfp3Saa1qBjVoa ZfDLABdlHg84ZQJj3JGRS3KuJPsAwni87Epec7hcU5fHV2NvvxTAR691GvJ4aqrHjBzO OAybJAVYmGFnCJPW+dBVq4PhRQKU/lZW7MAZA5Y/386tkS+oovcC2F3L0FooBviElekm +i/1aD2dry/5vvM4ZTpFa6r/s20IKvtbyN4k1MB2Z9JvSoWtk+pEET16j2GIhZU9R3nT x9iB+4AhHmGPdeJ/mtrwjcdpWnO5PZJMxq79+JX8rMdYRR1PGaEn/E5fwm/32cEfuH4N YDGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JUjbQmNC; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si17476973pgi.152.2018.11.15.09.31.01; Thu, 15 Nov 2018 09:31:43 -0800 (PST) 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=@kernel.org header.s=default header.b=JUjbQmNC; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388803AbeKPDi7 (ORCPT + 99 others); Thu, 15 Nov 2018 22:38:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:41620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388263AbeKPDi7 (ORCPT ); Thu, 15 Nov 2018 22:38:59 -0500 Received: from localhost (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A09321582; Thu, 15 Nov 2018 17:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542303015; bh=616VF2c0zwHLmP5zBeZAFrZeAKzD51E0R1HGIPVl/I0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JUjbQmNCO9XV/xyCWSKJmW6ndAJp8+mV55hj9MfIZ5rqtY0GqQxLLqIpQhrr1x7tL k13RcHWK4OsIlDvRveANohhY4BQ5moNhn9ruUEv83MqHZSRZzcVF7pe4tZmJZG8IWl w5Q1wHNRnyO6fl64scXvG52e7puawLu4cPSnMKdU= Date: Thu, 15 Nov 2018 11:30:15 -0600 From: Bjorn Helgaas To: Kai Heng Feng Cc: AceLan Kao , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v2 1/2] pci: prevent sk hynix nvme from entering D3 Message-ID: <20181115173015.GB229449@google.com> References: <20181106071214.12745-1-acelan.kao@canonical.com> <20181109002157.GK41183@google.com> <20181115145809.GA207836@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115145809.GA207836@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 15, 2018 at 08:58:09AM -0600, Bjorn Helgaas wrote: > On Thu, Nov 15, 2018 at 03:16:29PM +0800, Kai Heng Feng wrote: > > On Nov 9, 2018, at 08:21, Bjorn Helgaas wrote: > > > I'm not sure we want a quirk for this at all, since as Christoph > > > points out, it doesn't fix a functional issue as the other uses of > > > quirk_no_ata_d3() do. > > > > > > From your emails with Christoph, it sounds like this quirk is a > > > workaround for a firmware defect. If we *do* end up wanting a quirk, > > > the changelog should at least mention the firmware defect and maybe > > > check whether it has been fixed. > > > > According to SK Hynix folks and new evidence on the new Intel NVMe > > we have, this is something we are going to see more often. > > Hmmm, are you suggesting that if we went this quirk route, we'd be > updating the quirk frequently to add new devices? > > I'm opposed to that as a strategy because it makes needless work. You > have to update the quirk, backport it to older kernels, re-release > distro kernels, etc. But I guess you have to do this anyway just to add the vendor/device ID to the driver, so maybe this isn't a big deal to you. If you can do a quirk like this in the driver, it would be invisible to me and I wouldn't care. I just don't want to deal with ongoing tweaks like this in the PCI core :) Bjorn