Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1505368ybl; Fri, 30 Aug 2019 19:56:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQj3QmHCHaUMdXakXbOzN1AW06REAxxjHyEexMOrYrHrxCgNqVRjZ7zNes51ggYLNXZUOq X-Received: by 2002:a65:448a:: with SMTP id l10mr15187429pgq.327.1567220197322; Fri, 30 Aug 2019 19:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567220197; cv=none; d=google.com; s=arc-20160816; b=znXSS6+Lim5nB+JW7ub6CiLgQ+nWpzSo5TxRWTSgPgpdw9KAAcne8yP2W1tCpwTVFC E0TEBw2jINaZgnMzUxSoIZQ6+RX0KApoxwHRO+m9kHjl9lVMkYar+R1pYI36IXYXABvh HGJB2k5LBAp7vBv4ceXBF6RbV95y+7FugareJQYbIsN1JOpPBm4vUTR9hDQF8FSTiS48 7njiLJLHKmSW6qc+kre9o+E4NhLO8AVi0ljxIiHDJ7ygTgf/faCC+8Id40YyZZxpi2lR V0kzAcbSgrhhqUcuwD/lx/1PFXYsGhADeuVWxKVLnZGF66vcJmqsAITUGDQJ/ZaB903y jNtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=wAWfdwIa59FDP4d1Sh8DtaH6oUROjcWqQZupPqcqAko=; b=qNtNY4k6QVOk4rtbpZvqiteKR9Wzxo75CDUp/3KeSykDL8O5mxPqkU+hzf0WSMq9qF yqzo9NgUtgjpWFsb/AabIaky7XlPWcAyCe6BeVoP3eSCxbvpdzxIUpMUwOTEtXUMburo L9VXiEPQqOEu1Jwn1CGQaOJbro9TYCy8nY0GJvHnGWneDaqiaAzvqIBqIwEtEnn9vaU4 L9GKxSpKm9YcbdcJb50iPQ29KF9WY1qbKj/PBsPUsAJ/EBiT1yGf3GoyWEEnwBa+9N5q hTU7e1eD7pGDHa0nq4Tt+i8vCsaOl7WR91o5GbvgZodWqnkEXvfl8JRbGB53YM3sbI/M LMsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=1Iu4PZ+x; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y71si5684089pgd.271.2019.08.30.19.56.21; Fri, 30 Aug 2019 19:56:37 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=1Iu4PZ+x; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728419AbfHaCyJ (ORCPT + 99 others); Fri, 30 Aug 2019 22:54:09 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39009 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbfHaCyJ (ORCPT ); Fri, 30 Aug 2019 22:54:09 -0400 Received: by mail-pl1-f195.google.com with SMTP id az1so3200683plb.6 for ; Fri, 30 Aug 2019 19:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wAWfdwIa59FDP4d1Sh8DtaH6oUROjcWqQZupPqcqAko=; b=1Iu4PZ+xk9yt3s0D5xhvqKUGEHHu9DM1d65KGBVMvEiz9DhyqIyBMcTYJtRcIEm1g3 lQjhAWj6DbYiG6V+4uoThTxI0JHqKMokBIP6+9QpYRq226/0uo+Ja/pP5LpSqSTPDYWX QVEYAPZeCSYenj4l2o52rgSwaxNXGdhF/THZz2hqMJg4hx2oY8NPsoPEFmnK/VJ8ijgX m/R8ut11iMO4feH3teYhqmlrFob46xKCNI/aD/dg8B2a9xtQK1rFMYIKVQLNJiEnkDjE W1O1K93AvNkjGKO3tJkNz3lcf8lj0IBgxFwxh2yv+4NuZ+UFouITThRT4Vfz75qL/kLG 9Gmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wAWfdwIa59FDP4d1Sh8DtaH6oUROjcWqQZupPqcqAko=; b=N8r+4gBrI0g++LdrW/KNe17ifWu5/ray5ktIZF8ltVFNDPP5SVEoS8F9RK+sGD4RdB mPRUxewOmYN4c2/KxY47o0UshEhttBKMnN32SwLEvMNI47v+QyoxwYnEh+fqeJg7pEHp VKl16062jy/NaO2p0KfpNzttdwfdeskbQYLnzjx0+KI0NmL3hmmfvYXCv08doMnFPYhy TXWwfJ9Nukh7GOM7h7rc4xO7tmmIuemp1SoUkHv05qsQkL1G84O6X23oX4o14MJNbg/n O2v1OrFvUNu0ECvCZLjecpGOiOnrj0DrwDcmBBIceTF3Nhq9NmxTTV/iIndzD1u8JN6e 9Vvw== X-Gm-Message-State: APjAAAUJt247rJLbkCaKVmBux0vr1wTLaIcyyzZbzaZCm2BODvij92Bx 8zCivSlRIFM7w1Iy3KGrnqYEX+VoJbwtfQ== X-Received: by 2002:a17:902:85:: with SMTP id a5mr19762477pla.213.1567220047902; Fri, 30 Aug 2019 19:54:07 -0700 (PDT) Received: from [192.168.1.188] (66.29.164.166.static.utbb.net. [66.29.164.166]) by smtp.gmail.com with ESMTPSA id e2sm8130595pff.49.2019.08.30.19.54.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Aug 2019 19:54:06 -0700 (PDT) Subject: Re: [PATCH v3] libata/ahci: Drop PCS quirk for Denverton and beyond To: Dan Williams Cc: Stephen Douthit , Christoph Hellwig , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <156712139395.1614755.3489977733530873708.stgit@dwillia2-desk3.amr.corp.intel.com> From: Jens Axboe Message-ID: <73e48d44-631a-71f9-4437-292c5b480891@kernel.dk> Date: Fri, 30 Aug 2019 20:54:04 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <156712139395.1614755.3489977733530873708.stgit@dwillia2-desk3.amr.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/29/19 5:30 PM, Dan Williams wrote: > The Linux ahci driver has historically implemented a configuration fixup > for platforms / platform-firmware that fails to enable the ports prior > to OS hand-off at boot. The fixup was originally implemented way back > before ahci moved from drivers/scsi/ to drivers/ata/, and was updated in > 2007 via commit 49f290903935 "ahci: update PCS programming". The quirk > sets a port-enable bitmap in the PCS register at offset 0x92. > > This quirk could be applied generically up until the arrival of the > Denverton (DNV) platform. The DNV AHCI controller architecture supports > more than 6 ports and along with that the PCS register location and > format were updated to allow for more possible ports in the bitmap. DNV > AHCI expands the register to 32-bits and moves it to offset 0x94. > > As it stands there are no known problem reports with existing Linux > trying to set bits at offset 0x92 which indicates that the quirk is not > applicable. Likely it is not applicable on a wider range of platforms, > but it is difficult to discern which platforms if any still depend on > the quirk. > > Rather than try to fix the PCS quirk to consider the DNV register layout > instead require explicit opt-in. The assumption is that the OS driver > need not touch this register, and platforms can be added with a new > boad_ahci_pcs7 board-id when / if problematic platforms are found in the > future. The logic in ahci_intel_pcs_quirk() looks for all Intel AHCI > instances with "legacy" board-ids and otherwise skips the quirk if the > board was matched by class-code. Applied, thanks Dan. -- Jens Axboe