Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1955268ybl; Sat, 10 Aug 2019 13:23:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHahlYQg3eZtauHO2GkdvXEbg5Pexr5HURlaBPIpUZSvQZxNCYultZeDnflbS7o6J59DjH X-Received: by 2002:a62:584:: with SMTP id 126mr28654598pff.73.1565468591407; Sat, 10 Aug 2019 13:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565468591; cv=none; d=google.com; s=arc-20160816; b=x8o9ou0KV5oduQdWgDV0oI31HRxhNxi7NCi7I4v9akuAideCoauMpU2h60LH6/yH2O v8oO7FExYbk86vJzupkDROyZh0wHegQTwq13mDBrp7MBk7Ilei29F59VhQrWEXDApHJF Vj6u8uO4A0eLoHYB4Y920VGNjbY2An/rMZLkYGlq/wjreXuNfd5HuhJ1/dvkF6WnIZ7y U5FMW+fjoLrtSMLGhnbTivv6FeClQMnCSbhQVsAQVeMOhv9LvMEKlwadnbjq+HmidkLB cuJutMCJdHMLZfElSuqSpC1ovvbZCQ8K1R0iBbBmQfHU/6gDQv0b3SqKzLLGjQUtb3i+ /9Rg== 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=ryjR/5sVF4k8OUE8aoNbAbrqtw63+/RLHmgm/pYAmck=; b=TdCUjfwjvnPhaKmkFeSwzlbmpsxCADzTuSsSlSeKqvmYA3ygH6qkNdGBKnbt0ZOROp va95oHl6B80JZirG71uQse133L/OfPDrWZs+zlzA/ROSWp5eH8oUm4hFNYAjppJf5fLh q/avdzdK5V8lNfgamB3UUgPxY8pehLXQRW6HDp0ccTqh9BIyQcFL8UJPn/PBfm5j4ly9 nKo85Z2q2pIDHEkMidsqlDcFRKWAcnNp0NR4TYQEFPDjIE59f7solxExpP6u1ZJlkqp7 S9IT8/uIx+awSLHxGZYNvIVOhbl0v4J+09h2I6aDKgE0NCcoZVtkTH0xuE6arlIG1doS z8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=LUYUbRUE; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si52091756plz.389.2019.08.10.13.22.56; Sat, 10 Aug 2019 13:23:11 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=LUYUbRUE; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726451AbfHJUWZ (ORCPT + 99 others); Sat, 10 Aug 2019 16:22:25 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45037 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbfHJUWZ (ORCPT ); Sat, 10 Aug 2019 16:22:25 -0400 Received: by mail-ot1-f68.google.com with SMTP id b7so95428659otl.11; Sat, 10 Aug 2019 13:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ryjR/5sVF4k8OUE8aoNbAbrqtw63+/RLHmgm/pYAmck=; b=LUYUbRUEwnX9kQvFpsJC/gcyI8YpJgnRB8yu3goKuSYOmtLYJPQVrsYMqvDamn044/ mlw/PaByR3/nLrDm1oPcVg9rPp/kda+ezuqxeKxHUqCE7dE419s/pHj9No7Pc8pLV/uN T78vdBOOaohteauXwJz+ZBIbmtnTKpjswBESxbwoh1fTlyL8/5EfPNQKj53oxHdppocu qcIwandk+ggWqqUoc7wPz2MzoBbJRYWCf4ojbgiVagm+Wbt+YI9RfMNNo79LW/e6bFrz MkpSpIsMZRQBDHvV1rxn+uwfbbgPmRHFGRxvO2yz+GKXRWlnIGRfd5Ohlrr4LOjOeYH4 3vPQ== 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=ryjR/5sVF4k8OUE8aoNbAbrqtw63+/RLHmgm/pYAmck=; b=PApFP95dVH+kOEJdzYraNGHbKLv5m0fOcsA2yMU0xNGKfyUBwM93Txi/bU09HHAukO geErIwjDYeBgTQfGD8CH0HWdbuVz4wazpoJVK49eHxB1bqLp1CV8Lew8bPYkJovoWuKr dzdoOK5Uf2pvsoGwhYknPAPlDeuFMlKOIlmfHBdztJlhouekPi2UrozEIo01irpTCPAv ulpyIsHG05ndoVRbuX9IhLJGTdsxK5OgLHQnC4aeJypUTdGltLp1Q1NgbSXJBAZUySyU Y2E8uNYrGjgPWoqt0ekVmcpY1GRJvu7GCYfL85xIQKw0XmY8ij0yglmgvz93gdE6CX33 jmdA== X-Gm-Message-State: APjAAAUHaGh7L/CjGW1BHTO2KLX++HdWUwSn8Z8LOqsToDvn97ZNg+n+ oa4NboDBscdigZMehEeoMqSh2yWVscUlhRNv5KfiENHC X-Received: by 2002:a6b:3102:: with SMTP id j2mr11895173ioa.5.1565468544448; Sat, 10 Aug 2019 13:22:24 -0700 (PDT) MIME-Version: 1.0 References: <20190808202415.25166-1-stephend@silicom-usa.com> <20190810074317.GA18582@infradead.org> In-Reply-To: <20190810074317.GA18582@infradead.org> From: Dan Williams Date: Sat, 10 Aug 2019 13:22:12 -0700 Message-ID: Subject: Re: [PATCH] ata: ahci: Lookup PCS register offset based on PCI device ID To: Christoph Hellwig Cc: Stephen Douthit , Jens Axboe , "linux-ide@vger.kernel.org" , "linux-kernel@vger.kernel.org" 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 Sat, Aug 10, 2019 at 12:43 AM Christoph Hellwig wrote: > > On Thu, Aug 08, 2019 at 08:24:31PM +0000, Stephen Douthit wrote: > > Intel moved the PCS register from 0x92 to 0x94 on Denverton for some > > reason, so now we get to check the device ID before poking it on reset. > > And now you just match on the new IDs, which means we'll perpetually > catch up on any new device. Dan, can you reach out inside Intel to > figure out if there is a way to find out the PCS register location > without the PCI ID check? I'll ask. One guess for now is that num_ports >= 8 indicates the new layout since the old layout ran out of space, but that might fall over if the SOC uses the new layout, but implements fewer ports.