Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5379184imm; Tue, 19 Jun 2018 09:28:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJHd9nO4SOEPpEXji+eEjwZYegGxZQAhBDMCG5I6iQcFvJHPxN3Cd42Sgn0RyEBaEEKAqqP X-Received: by 2002:a62:4653:: with SMTP id t80-v6mr18542079pfa.58.1529425685592; Tue, 19 Jun 2018 09:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529425685; cv=none; d=google.com; s=arc-20160816; b=rPUNd9wV6p861Yq3ILigustruoWjtGsGdl8Sy++7oEKHGr7w4GOEHOhvqm1cojYHls OvX4lCVKZgIEdtADt8MVhqkQkdCX6vb17uilzcqxqfFrAVaaVKEsbeDA9IE4+o4Mbtxo LtZt7n8M413stVLWPzcwlQ7YCepRZM5sxalpMLJdtoLqP3z90bDnKfpjsOAGTDMKZS7I x21M5h8Rv6xhtFIeH5+bfFkS+7RZxtzS/TcwRfDoACNrMg9EXNzIaSHNDDVlNSZIToDG W8LFbEYPjkfTzjo+96MZR/5Iv/5SBYEBMtUjQIJ6IuBNf5uuZCJejR6VCirXx0eJvoqi 89lA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=msU6brCp7EO9A40jdb+amT8U0bdsUZ4XNYEn+4YdzYE=; b=xt2RgtQTG635SMbno4nmXC+dA1ydW2JKGJ7g3cOCqPsrV0eis9dSZ3Hsy/NDMQbC/v VIXZGd6KdxJND1j9cwPMPAHxmoPh5fVhOz3HRPLRHRoYKMH9OfRwGCc5tHeAku3XDy57 8YIlDW7GCYOFA2T6+78UAAdLT3LZcsK5/9l/ZSxsDv9TOm1k5MzVFYDtBrIXR+FjtT37 QqFb3+6OmEGc8l5E1pp9hB8UuYWQAfiYsxgXDqAVTdUHK3tSZ3HaRMVpYlcgEQwq1FjD c/tU1YIXRCNGwgtUmbowZJ6xszI83J/c+kpfvvy9lTknbVNdvmwGmlxlOorj4/2J+BfK gKCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gpiccoli-net.20150623.gappssmtp.com header.s=20150623 header.b="rM6/4SJC"; 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 f10-v6si45608plr.265.2018.06.19.09.27.51; Tue, 19 Jun 2018 09:28:05 -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=@gpiccoli-net.20150623.gappssmtp.com header.s=20150623 header.b="rM6/4SJC"; 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 S966880AbeFSQ1M (ORCPT + 99 others); Tue, 19 Jun 2018 12:27:12 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:35368 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966480AbeFSQ1K (ORCPT ); Tue, 19 Jun 2018 12:27:10 -0400 Received: by mail-io0-f196.google.com with SMTP id u4-v6so773396iof.2 for ; Tue, 19 Jun 2018 09:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpiccoli-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=msU6brCp7EO9A40jdb+amT8U0bdsUZ4XNYEn+4YdzYE=; b=rM6/4SJC+A92oqDE/bQQedUz/AhROF0pgWTVRzrhqdWaiX5Tl9B5H/sfbyqQy/JLbt d21HyKHQBFSsXZEl/yv8btkknwUDaEmXG9DOEzCB84R0tbbcOoFwymrzhxq+6fwNY/Ml PRxxgUl2o4IKhqiE6mGXgkiGWXss4Rbyq3UgAz6+iBSWV7mzk69FvbP9JRhjufzvVi9+ KZ+1c36uNW08+j/imJn9/KOJpmszoxBqchA89Q471ugNYca6C8yDwRTfe1IHuU1ROCHo Jp1dp6VoDCuFdA9JcS84e2IBcKFxPR9RQSJJ1FNyAT3xvrH+t5x3wxKzhiokDpp3RL0G /Pwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=msU6brCp7EO9A40jdb+amT8U0bdsUZ4XNYEn+4YdzYE=; b=sBCaC/ekATvHGXv9lSiQe/HBzg3hFfboyrL3GFHZ9cbgip94Pz34IJyvxRNqoXDH+D ExLofHx6JO76s5hncfgIECNUJ2zILypv9VjNz4udKuD55/f+VwRevUwEn9Jta/J0k2ly IkWGVBhyW7gt+E1AXeoKj+yeDh8IHqaSAsJk64YvhL2xRf6Z7RjK/wo12cFYY25yoCdp HTxteKMGmcoBkal2TA92NV9L8myKBf8GCN+qr5OJhQgSRZgGNHPYdF9kcoruR+NtMwNr xsXOJG+3DLyhpi21O16kXNyLGhz+1y16aB24Dy2nzUCqnVlwDSRUx+pYjTB+A2qHp4KP kcag== X-Gm-Message-State: APt69E1I+ph9TTdyXJT9ublkiw7Eoex4zUh2PixOHluoqpsImCmN/4oL wydk9WJW+B96hsODGP0drEk5MhVEXkhjDtlQBOI0Mw== X-Received: by 2002:a6b:6806:: with SMTP id d6-v6mr13798592ioc.293.1529425630340; Tue, 19 Jun 2018 09:27:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:9909:0:0:0:0:0 with HTTP; Tue, 19 Jun 2018 09:26:29 -0700 (PDT) X-Originating-IP: [189.0.91.59] In-Reply-To: References: <20180618165706.42679-1-danielwa@cisco.com> From: "Guilherme G. Piccoli" Date: Tue, 19 Jun 2018 13:26:29 -0300 Message-ID: Subject: Re: [PATCH] arch: powerpc: pci-common: fix wrong return value check on phd_id To: Daniel Walker , mpe@ellerman.id.au, 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 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 > [...] > 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. > > The question is, was that your intent ? We are expecting these numbers > aren't getting altered in this way, this is why we have the patch. Your > patch description appears to suggest you want this type of selection for > "... pSeries and PowerNV cases)." , so I am assuming you did this by > mistake. Also I don't see a reason to make this change for all platforms. It was the intent - whenever we have device-tree information, the idea is to use it to have more consistent numbering across reboots and PCI hotplugs. The reason to change that originally is hotplugging a PCI device added the device with a different PHB/Domain value, and network predictable naming messed-up interfaces' names, leading to a machine without networking. > [...] > > We have already done this, that is how we determined your patch was changing > the domain values. There isn't much to tell w.r.t this issue on our side, we > are expecting the domain numbers are set a specific way and they aren't > getting set that way. The drivers which are looking for PCI devices are not > in kernel space, and the PCI domain values are getting taken from userspace. > Oh okay, I imagined it was some crazy userspace-based PCI domain scheme that led you to report the issue - confirmed heheh So, you expect the old behavior right? Incremental PHB numbering. I think we could have a kernel config option to allow that, this way you could rebuild your kernel with that option and keep the old behavior. This idea needs to be validated by the maintainers, or perhaps they could propose another way to keep the old behavior to interested parties. [Looping linux-pci too - original thread at: https://lists.ozlabs.org/pipermail/linuxppc-dev/2018-June/174760.html]