Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1388952imm; Wed, 20 Jun 2018 17:30:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLExVpSL4OOLO5pMcN90fj56Oj0+FZVN/zXTA91IsuOaJqPXwaQfZbch7bqhPxpD98ggP/J X-Received: by 2002:a63:6807:: with SMTP id d7-v6mr20026112pgc.7.1529541007611; Wed, 20 Jun 2018 17:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529541007; cv=none; d=google.com; s=arc-20160816; b=Pj8sqNj5MOZjXliB1EdjPC+pSBNlqv5a63kOOuZIOKhHbur6SY/njpvd80+0Pz8ieZ 65JP9lsCuGy4k/KXiONKKM37f+AidmsKYVmGrtMW3tIx8nYIX3cnz2wHXd3pjsy1FCzi lHL9yrniv9ejR5HkP2gm0ylfa7oio3mHBQ5G2Dt4Uudydc7Qtb+KML0yTzIoa1nep8uh p4k1CgkMxyaIFIOry4goGArd73OqBXyovePwAO08avreMbQZU/MmH40PgzwckCvIhXSo F9HyQSaoiD5AJ/DujqPpAwgVFYb8EaTryn6ZUJ0NfM/BVBwuNCOhm6AF7MVtS1XnibO6 FOfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=EPOEZvBGMT1XKi8IhzAtOwAAmqRF1RLu4dkstKs+x0k=; b=CsXEr2eF5V4mEcPr5WgxyPvXYG4eGlk/okN852y9wWwa3sdR47jONKfBlpriaVabQn Ee+nR8aNXfk05c8LzO8oBlfk4zI9SBZc2BTeFFC4XaFPERVHABlldaSLpnsXK69vP9Kg kVhxTvWJSexh7S97W0QWMp83OeCQIGCGg4gDGWh4UWw66HS3qDliOf5XEq4+YOp5IDrT 5EuMFtyE3jkeqDLy1ON41eGEp1UNmNCCWub/rkrDUKYOVlQhPXxRubMw7uwtvl/lPczF /yDaDiwUBheo44wUPwe5dXoKHo4XXF35vGjDFRJCc17OlNbl0i9PQU5B6DRXm2mNKbTQ +zpA== ARC-Authentication-Results: i=1; mx.google.com; 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 e9-v6si3227764pff.30.2018.06.20.17.29.53; Wed, 20 Jun 2018 17:30:07 -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; 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 S1754240AbeFUA22 (ORCPT + 99 others); Wed, 20 Jun 2018 20:28:28 -0400 Received: from ozlabs.org ([203.11.71.1]:39697 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938AbeFUA21 (ORCPT ); Wed, 20 Jun 2018 20:28:27 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41B2c83gkcz9s1B; Thu, 21 Jun 2018 10:28:24 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Daniel Walker , "Guilherme G. Piccoli" , benh@kernel.crashing.org Cc: Andrew Morton , xe-kernel@external.cisco.com, linux-kernel@vger.kernel.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Mauro Rodrigues , linux-pci@vger.kernel.org Subject: Re: [PATCH] arch: powerpc: pci-common: fix wrong return value check on phd_id In-Reply-To: <6d321d8a-432d-d41d-cc08-144764d644b2@cisco.com> References: <20180618165706.42679-1-danielwa@cisco.com> <6d321d8a-432d-d41d-cc08-144764d644b2@cisco.com> Date: Thu, 21 Jun 2018 10:28:22 +1000 Message-ID: <87in6dvv89.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, Sorry we broke things for you. Daniel Walker writes: > On 06/19/2018 09:26 AM, Guilherme G. Piccoli wrote: >>> [...] >>> What your doing is changing the phb_id to some transformation of "reg" for >>> all platforms except which have "ibm,opal-phbid". This is what we observe. >>> This is a radical altering of the prior phb_id selection before your patch. ... > > I didn't look into changing the behavior on our side because it didn't > look like the intent of the patch was to make a global change. I can > take a look at changing this behavior on our side , given that this was > intended by your changes. You're right the change log and the patch are a bit out of sync, that was probably my fault. > However, they're may be other platforms or drivers which depend on these > numbers getting set a certain way, so there may be other userspace > dependencies on these values. That's true, though I think yours is the first report we've had of problems. The old behaviour relied on device tree ordering in nearly all cases, so you basically get whatever order your firmware happened to flatten the device tree in. That tends to be consistent on a single system or with a single firmware version, but it's not stable in general. If your firmware changes, or you kexec then the ordering can change. So I'd definitely prefer we didn't go back to that behaviour, because it's basically "random order". If there's anything you can do on your end to cope with the new ordering that would be great. cheers