From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150]) (using TLSv1.2 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rPgWp4ftbzDqGZ for ; Wed, 8 Jun 2016 17:47:34 +1000 (AEST) Received: from localhost by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 8 Jun 2016 01:47:32 -0600 From: Stewart Smith To: Ian Munsie , Michael Ellerman , mikey , linuxppc-dev@lists.ozlabs.org, Frederic Barrat , Huy Nguyen Cc: Ian Munsie Subject: Re: [PATCH, RFC] cxl: Add support for CAPP DMA mode In-Reply-To: <1465362594-10437-1-git-send-email-imunsie@au.ibm.com> References: <1464025158-23849-1-git-send-email-imunsie@au.ibm.com> <1465362594-10437-1-git-send-email-imunsie@au.ibm.com> Date: Wed, 08 Jun 2016 17:46:27 +1000 Message-ID: <87lh2gi0mk.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Ian Munsie writes: > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c > index 3a5ea82..5a42e98 100644 > --- a/arch/powerpc/platforms/powernv/pci-ioda.c > +++ b/arch/powerpc/platforms/powernv/pci-ioda.c > @@ -2793,7 +2793,9 @@ int pnv_phb_to_cxl_mode(struct pci_dev *dev, uint64_t mode) > pe_info(pe, "Switching PHB to CXL\n"); > > rc = opal_pci_set_phb_cxl_mode(phb->opal_id, mode, pe->pe_number); > - if (rc) > + if (rc == OPAL_UNSUPPORTED) > + dev_err(&dev->dev, "Required cxl mode not supported by firmware - update skiboot\n"); > + else if (rc) > dev_err(&dev->dev, "opal_pci_set_phb_cxl_mode failed: > %i\n", rc); Could mention version required, which would be skiboot 5.3.x or higher. This could be something we start doing - there's enough random bits of functionality we could tell the user exactly what they have to upgrade to to have work. -- Stewart Smith OPAL Architect, IBM.