From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wfWsY0j6pzDqJV for ; Sat, 3 Jun 2017 03:48:32 +1000 (AEST) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v52HhaNI116129 for ; Fri, 2 Jun 2017 13:48:27 -0400 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0a-001b2d01.pphosted.com with ESMTP id 2au6tffjd4-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 02 Jun 2017 13:48:27 -0400 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 2 Jun 2017 11:48:26 -0600 Received: from b03cxnp07029.gho.boulder.ibm.com (9.17.130.16) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 2 Jun 2017 11:48:23 -0600 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v52HmNop17170730; Fri, 2 Jun 2017 10:48:23 -0700 Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 45FB6BE03A; Fri, 2 Jun 2017 11:48:23 -0600 (MDT) Received: from oc3016140333.ibm.com (unknown [9.41.179.225]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP id DB15CBE042; Fri, 2 Jun 2017 11:48:22 -0600 (MDT) From: Eddie James To: openbmc@lists.ozlabs.org Cc: joel@jms.id.au, jk@ozlabs.org, bradleyb@fuzziesquirrel.com, "Edward A. James" Subject: [PATCH linux dev-4.10 v3 0/2] drivers: fsi: Add OCC driver Date: Fri, 2 Jun 2017 12:48:19 -0500 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 17060217-8235-0000-0000-00000BA29218 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007160; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000212; SDB=6.00869157; UDB=6.00432069; IPR=6.00649126; BA=6.00005393; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015682; XFM=3.00000015; UTC=2017-06-02 17:48:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17060217-8236-0000-0000-00003C18F68F Message-Id: <1496425701-22980-1-git-send-email-eajames@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-06-02_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706020314 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2017 17:48:34 -0000 From: "Edward A. James" This patch series adds a driver to communicate with the POWER processor On-Chip Controller (OCC), from a service processor. Communication is performed via the SBEFIFO driver, which required a new in-kernel API. An application to test the OCC driver can be found at https://github.com/eddiejames/occtest Changes since v2: * Switch to use getSRAM/putSRAM over the SBE. This is significantly more efficient and also circumvents the need to set up OCB channels manually. * Include the in-kernel API (for hwmon driver). * xfr struct embedded in client * add sequence number and checksum to command Edward A. James (2): drivers: fsi: sbefifo: Add in-kernel API drivers: fsi: sbefifo: Add OCC driver drivers/fsi/Kconfig | 6 + drivers/fsi/Makefile | 1 + drivers/fsi/fsi-sbefifo.c | 161 +++++++-- drivers/fsi/occ.c | 784 ++++++++++++++++++++++++++++++++++++++++++++ include/linux/fsi-sbefifo.h | 30 ++ 5 files changed, 952 insertions(+), 30 deletions(-) create mode 100644 drivers/fsi/occ.c create mode 100644 include/linux/fsi-sbefifo.h -- 1.8.3.1