Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3013994imm; Sun, 1 Jul 2018 10:18:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLwual//EhJpWrA9OPeUimJVw4YaGlT9MFgQOtoT9im2nr34X7uZZQiSktLeqzHqy0NwBih X-Received: by 2002:a63:7f4e:: with SMTP id p14-v6mr18909365pgn.27.1530465521858; Sun, 01 Jul 2018 10:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530465521; cv=none; d=google.com; s=arc-20160816; b=CmXI7C1IYeNPOvIxvAYdj8ecLYSEmjD/8J5pQjTiXBFfmg18DrV1IxfuUchPJdqRYW FATau6bUxfqD24KcY5AoLFMr5ZEhNQfh57M+4QMuiZFI6bPu2erkr8f0QL/NUgJb4LnT 60nH92S/h8UxMy8je5dV+12CyeQc+k/dEfBh7JuTSOyRRZWUOJ0MJfOtM06DnQcWj9u2 PNJ27Bvk+PR+5Mkpi3FCMNSSRGU6wFHBraQGB0iZNeJl5A+n6xqNgwHk3ADZ9MX6FySa D5yx7B3ZyVpfB2l8ZOUKLHlMIfBpDOSBs4BbdpMorWxYBDX7LjEsBGkkiNfNoz6MSt3P vNPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mwhFTI7z8lC6pWsSHB1WhxhijQlStOCYuzpTJnMR2IY=; b=dAyaM2AHwGfz0NRMXWTYrQuaed5xGbWn65EM7ks+czzFlvdQfWi573XCoBGyIitGZe m3Yke9oCtVqlegIvl1VRC3f2xoPNTzCRn+g3j7LgiWB/6pkjYytEp7RWP7i6yJQmVd7H VOLYrc+DBYrrrxPJgjgMFdF1hafBUR4CnsAmDkpXYYHoPyWZGuFiPPdPiwA/3isc9SCY AmfwJHoDNiFo46wgW1DTKoJEo99KiG51FECDzRVl9ZkuQ5+2wbPGvj3aWkc6kFm0IGeW VW/iMVw6fjAGVEpxh5k6EGwa9Rj9gLdXoLjYYqFh3vfJsL/midUalL2AHZwO0EU/lDZt u4+g== 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 i62-v6si13657848pfc.255.2018.07.01.10.18.27; Sun, 01 Jul 2018 10:18:41 -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 S1031719AbeGAQjW (ORCPT + 99 others); Sun, 1 Jul 2018 12:39:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36878 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031202AbeGAQjO (ORCPT ); Sun, 1 Jul 2018 12:39:14 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 14945AA6; Sun, 1 Jul 2018 16:39:13 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vaibhav Jain , Andrew Donnellan , Alastair DSilva , Christophe Lombard , Michael Ellerman Subject: [PATCH 4.17 059/220] cxl: Configure PSL to not use APC virtual machines Date: Sun, 1 Jul 2018 18:21:23 +0200 Message-Id: <20180701160910.838449918@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vaibhav Jain commit 9a6d2022bacd8fca0be6297459a02dfd28dad6ba upstream. APC virtual machines arent used on POWER-9 chips and are already disabled in on-chip CAPP. They also need to be disabled on the PSL via 'PSL Data Send Control Register' by setting bit(47). This forces the PSL to send commands to CAPP with queue.id == 0. Fixes: 5632874311db ("cxl: Add support for POWER9 DD2") Cc: stable@vger.kernel.org # v4.15+ Signed-off-by: Vaibhav Jain Acked-by: Andrew Donnellan Reviewed-by: Alastair D'Silva Reviewed-by: Christophe Lombard Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- drivers/misc/cxl/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -514,9 +514,9 @@ static int init_implementation_adapter_r cxl_p1_write(adapter, CXL_PSL9_FIR_CNTL, psl_fircntl); /* Setup the PSL to transmit packets on the PCIe before the - * CAPP is enabled + * CAPP is enabled. Make sure that CAPP virtual machines are disabled */ - cxl_p1_write(adapter, CXL_PSL9_DSNDCTL, 0x0001001000002A10ULL); + cxl_p1_write(adapter, CXL_PSL9_DSNDCTL, 0x0001001000012A10ULL); /* * A response to an ASB_Notify request is returned by the