Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3096164rwd; Mon, 29 May 2023 05:48:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pfRSsxExGESqOUvutwJR5SMQPsqtSADYRsmjo3KhVqd0pFsiWfHmpwzoTee7aGkJ197vD X-Received: by 2002:a17:90a:9907:b0:253:30f9:1849 with SMTP id b7-20020a17090a990700b0025330f91849mr10857943pjp.12.1685364486928; Mon, 29 May 2023 05:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685364486; cv=none; d=google.com; s=arc-20160816; b=Sph1UqlgcgXtxBeCIGlOrKQFrBTjUxCzWmDl8uXPrO9a1T7QgesfI1kO7Vb0jiBos5 E6rfenjkrbO76Lm4zSjCDMUQUY34w/OLqLVWh/QCKDhp+SNadWPNPGnbTIlDZh8ZKren PZOLwscuC0ed/khSEp0NsHE7lPueIDm4eGp9/q3Xx9voqldyYh319c13Obe5/S9IaW3o DDbh4pk0m9KgxXA6vZxl7fP+ga/3t5xowEntcsF3lphMDDgDldqgDPBlPKnuQ2N82RJr NkIlUKGMMWrnqFjJud2T7wei1TEZMmtHRnXplD9L4WnoguokOivsP5004SWU9pIC6lSi oJjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=jRvVaXccJ9k9+DOA/cecpD8vhVyXqr5pik+fBNiDLao=; b=HETIw1Kukwz1wFYiJX1iln2dnbH8qp0nTrQVO+Zvql9t9+8tWbsl+lPSCrPaWXxBIG agr+FiVaOQra3vhgAXTlfyDldx2LwsYntIZYCsQ3NYmGQyotuILPaRsd58qrqZ2Id5Lg jIdNwHD5drohev2pfD/nYcFUaN67OEnc6Muh+yK+VsD6We8k7EWu+yhQqUa15vMghvbl 82msFZfBJMFCsvvWDUga+SHV74tajI3Rz5qLIl45+QV/huQ+DIpDRBwYTQ/jkfPp3B66 ur/oPrKrT54HCtFTpqE2/7nDdLeTCRd3angX3Zx/FJFU4/8FWmyHZag8LvrGH9tRWe/B 7cDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m4huvw5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx3-20020a17090b4b0300b0025682a65734si1632441pjb.9.2023.05.29.05.47.55; Mon, 29 May 2023 05:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m4huvw5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231673AbjE2MXZ (ORCPT + 99 others); Mon, 29 May 2023 08:23:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjE2MXY (ORCPT ); Mon, 29 May 2023 08:23:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78CB1B1; Mon, 29 May 2023 05:23:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1674461478; Mon, 29 May 2023 12:23:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4431BC4339B; Mon, 29 May 2023 12:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685363002; bh=DIom684KiSxk01dPxTEKYPYlKZpznxqWChGWbgchUas=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=m4huvw5FG87KkGp5G3c8mVaPbM/gEiXG+/qixHAbgpeFl0VLnEkTvQBqodFGEHH8z Kub46+L6NPl7bhqzEl563kbd8CCrHPTsh+waN3A7pHqapeFNaA9nlQETtbkiuGh+Dn kmy+h8vfXfQbArn0f63TOuetidEW/dy87CBXcO/P3rFKA6Tw2nurzspDUAjGuO1hEl liuE0b3YCe3k56krJ9D7G9TCdrR8fGKQJZhMGJ5MAo9L2mXtklS63FWtdj9xPcwKuX yWpXNYr2bYemW3TwKZW3Ru13mT79WvyUHLDX5CZvUqZuobq9YK65hY9RvxI/4Zn0lp Zj0iup5lWOMJA== Date: Mon, 29 May 2023 07:23:20 -0500 From: Bjorn Helgaas To: =?utf-8?B?5qWK5a6X57+w?= Cc: LKML , Bob Moragues , Abner Yen , Doug Anderson , Matthias Kaehlcke , Stephen Boyd , Harvey , Gavin Lee , Bjorn Helgaas , linux-pci@vger.kernel.org Subject: Re: [PATCH v1] drivers: pci: quirks: Add suspend fixup for SSD on sc7280 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 29, 2023 at 02:24:53PM +0800, 楊宗翰 wrote: > Hi Bjorn, > > Thanks for your kind directions. Your response was a multi-part message, which doesn't work on the Linux mailing lists. See http://vger.kernel.org/majordomo-info.html > - Subject line in style of the file (use "git log --oneline > drivers/pci/quirks.c"). > Done, and I resend in topic "[PATCH v1] PCI: Add suspend fixup for SSD > on sc7280", please review it. This would actually have been "v2", since you sent v1 previously. > - Description of incorrect behavior. What does the user see? If > there's a bug report, include a link to it. > > This issue seems to be discovered in ChromeOS only. SSD will randomly > > crashed at 100~250+ suspend/resume cycle. Phison and Qualcomm > > found that its due to NVMe entering D3cold instead of L1ss. > https://partnerissuetracker.corp.google.com/issues/275663637 This kind of information needs to be in the commit log, not just in the email thread. It's best if there is a published errata document from Qualcomm that describes the issue and how software should work around it. Obviously a URL to that document would be in the commit log. > - Multi-line code comments in style of the file (look at existing > comments in the file). > Done. Not quite done. Needs to be like this: /* * Text ... */ Not like this: /* Text ... */ > - Details of "the correct ASPM state". ASPM may be enabled or > disabled by the user, so you can't assume any particular ASPM > configuration. > According to Qualcomm. This issue has been found last year and they have > attempt to submit some patches to fix the pci suspend behavior. > (ref:https://patchwork.kernel.org/project/linux-arm-msm/list/? > series=665060&state=%2A&archive=both). > But somehow these patches were rejected because of its complexity. And > we've got advise from Google that it will be more efficient that we > implement > a quirks to fix this issue. Some of this history or at least a pointer to it should be in the commit log. > - Details on the Qualcomm sc7280 connection. This quirk would > affect Phison SSDs on *all* platforms, not just sc7280. I don't > want to slow down suspend on all platforms just for a sc7280 > issue. > The DECLARE_PCI_FIXUP_SUSPEND function has already specify the PCI device > ID. And this SSD will only be used at our Chromebook device only. It's hard to guarantee that this will only be used in Chromebook, so this is a little weak. But if it's the best we have, it needs to be mentioned in the code comment. Bjorn