Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1834636ybz; Sat, 18 Apr 2020 09:24:44 -0700 (PDT) X-Google-Smtp-Source: APiQypLm6dVBHX0iOecXU5DELSSSaqJAPsqf6x+xK7el39P0Avr8179kg+6r1//gChuSoxVkL7pt X-Received: by 2002:a05:6402:2d5:: with SMTP id b21mr7421054edx.291.1587227084217; Sat, 18 Apr 2020 09:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587227084; cv=none; d=google.com; s=arc-20160816; b=J6ji+ciQcPGcybMsWbi4UbVoPeqpx4Zyv/Rc72G0Y1WlBrcEm67g3cg81yP3lxyHgl MK8zYdgcfQy5l20KP1G39DRP3b2HwpomB02KU55Pe7ffez6OH0mkFg8hLhdmk6BThu4g b9NePKM2GvBxyeK9RMemV7hVWFhp8HXorrFxDlo2o+PTq6M2jOaXSy12aZzhRdxn3MBV CLuLkbU1tizMX+7gm/bQfIu74cYWeY5YYTeDBO2ed/iThXpormSpg5ugQkRnjXvOITlH XlSr6bfNjOJG+3FI0j6rjJysSMDwCj8rrAW6NGt+0+oK4eiSjepAwtWNFqmtKT88FRNP Ljeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qFig7VHPW0sIQnfvY5dp+H4i25Mzdx8kRrCryG6qF8E=; b=LWRkz1NN/FsQvBA5HlzCAQWrjZ4bV5eVi4bm2X284SphXvoK2wLcwh+d/aT7NAqeeQ mVjkc7gpmu81fKezXXCj7Ftx+XRxjVTr8l4Aiial+VKrHW+UX9I0RbYZ0G2dfgdrTJQ7 g78kH3xptmasIQ7cC+RZ2B2tlAiU2DEKqkhXQR2a2xVolmLJYMFVlH62mEZ/qt5YFomI ugp+Mg+ROA0bDsSB0pKwN5cgNYBRa0GsEWXwReywTqPILe5fMwe3qEAfgTfdXy2YICE4 TP5BsGf+5AxE+YSSrnbJMt0Wa1CIt4TNYVtFSMDAZ3pIoJYOBnuliDkSCYJ+29SiOB6W sTSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si2733287edn.192.2020.04.18.09.24.21; Sat, 18 Apr 2020 09:24:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbgDRQWe (ORCPT + 99 others); Sat, 18 Apr 2020 12:22:34 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:5208 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbgDRQWd (ORCPT ); Sat, 18 Apr 2020 12:22:33 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 4C9004E14C2; Sun, 19 Apr 2020 00:22:23 +0800 (CST) From: Wang Wenhu To: gregkh@linuxfoundation.org, arnd@arndb.de, linux-kernel@vger.kernel.org, oss@buserror.net, christophe.leroy@c-s.fr, linuxppc-dev@lists.ozlabs.org Cc: kernel@vivo.com, rdunlap@infradead.org, Wang Wenhu Subject: [PATCH v6,0/4] misc: new driver sram_uapi for user level SRAM access Date: Sat, 18 Apr 2020 09:21:53 -0700 Message-Id: <20200418162157.50428-1-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZTlVLSkhCQkJCSENCTU9DT1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ogw6Fww5Ijg4PA0YOCgvLD8S SAwaCypVSlVKTkNMSUlNQk9OTEtNVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlJTk43Bg++ X-HM-Tid: 0a718e1920799376kuws4c9004e14c2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series add a new misc device driver which act as an interface to access the Cache-SRAM from user level. This is extremely helpful for some user space applications that require high performance memory accesses. It also fixes the compile errors and warning of the Freescale MPC85xx Cache-SRAM hardware driver. The former five version implemented the driver with UIO but they were commented of not fitful. This version uses a misc divice and implements the memory allocation and free operations via file operation as suggested by Scott. Wang Wenhu (4): powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr powerpc: sysdev: fix compile error for fsl_85xx_cache_sram powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram drivers: misc: new driver sram_uapi for user level SRAM access arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 3 +- arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | 1 + drivers/misc/Kconfig | 25 ++ drivers/misc/Makefile | 1 + drivers/misc/sram_uapi.c | 294 ++++++++++++++++++++++ 5 files changed, 323 insertions(+), 1 deletion(-) create mode 100644 drivers/misc/sram_uapi.c -- 2.17.1