From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08EAAC2BA19 for ; Tue, 21 Apr 2020 09:34:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C84252087E for ; Tue, 21 Apr 2020 09:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587461670; bh=7Dka82G9l1uFtfwcq6PqZbOKLwt6bMNcseQiY/abPzY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=yvhfvnLzErF8/xI4Ti3Sfy6uZtHXNsOecy/RUF3faNheGAf+lpOYK3emxCQbmbfIa p8YNtqg2u91vbXpr4ZTzmohgzKzcJwb6zFlXFB91xl2fab6b9Bd0CYgMoptvshHTbu RXo/FU7QxKcYKXDxY3Dsc4uSDnngq+btzd7GMiOk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728497AbgDUJea (ORCPT ); Tue, 21 Apr 2020 05:34:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:54660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgDUJe3 (ORCPT ); Tue, 21 Apr 2020 05:34:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF60E206E9; Tue, 21 Apr 2020 09:34:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587461669; bh=7Dka82G9l1uFtfwcq6PqZbOKLwt6bMNcseQiY/abPzY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qsNHxSsMR1kvqvd2SRGAOvl6xVL1jmjaSqDARnRLr443/FFjTwk0nvXKlUXKt8FNP FHaYgMbgKTVZ51LD19AoHN81r9E44mxWTTieu0ho5A3Ylzn1f5InblYJwC1dqgwCFY Ayt31FqfryDbDjNNDkxRl4kMkegsp8QxXL2C7oC8= Date: Tue, 21 Apr 2020 11:34:27 +0200 From: Greg KH To: =?utf-8?B?546L5paH6JmO?= Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kernel@vivo.com, robh@kernel.org, Christophe Leroy , Scott Wood , Michael Ellerman , Randy Dunlap Subject: Re: [PATCH v2,RESEND] misc: new driver sram_uapi for user level SRAM access Message-ID: <20200421093427.GC725219@kroah.com> References: <20200420145128.GA4131449@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 05:09:47PM +0800, 王文虎 wrote: > Hi, Greg, Arnd, > > Thank you for your comments first, and then really very very very sorry > for driving Greg to sigh and I hope there would be chance to share Moutai > (rather than whisky, we drink it much, a kind of Baijiu), after the virus. > > Back to the comments, I'd like to do a bit of documentation or explanation first, > which should have been done early or else there would not be so much to explain: > 1. What I have been trying to do is to access the Freescale Cache-SRAM device form > user level; > 2. I implemented it using UIO, which was thought of non-proper; I still think that using uio is the best way to do this, and never said it was "non-proper". All we got bogged down in was the DT representation of stuff from what I remember. That should be worked through. thanks, greg k-h From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4AD4C54FC9 for ; Tue, 21 Apr 2020 09:38:06 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8972C2087E for ; Tue, 21 Apr 2020 09:38:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="qsNHxSsM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8972C2087E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 495z572WrRzDqnZ for ; Tue, 21 Apr 2020 19:38:03 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linuxfoundation.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=gregkh@linuxfoundation.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=default header.b=qsNHxSsM; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (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 495z134WqCzDqlp for ; Tue, 21 Apr 2020 19:34:31 +1000 (AEST) Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF60E206E9; Tue, 21 Apr 2020 09:34:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587461669; bh=7Dka82G9l1uFtfwcq6PqZbOKLwt6bMNcseQiY/abPzY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qsNHxSsMR1kvqvd2SRGAOvl6xVL1jmjaSqDARnRLr443/FFjTwk0nvXKlUXKt8FNP FHaYgMbgKTVZ51LD19AoHN81r9E44mxWTTieu0ho5A3Ylzn1f5InblYJwC1dqgwCFY Ayt31FqfryDbDjNNDkxRl4kMkegsp8QxXL2C7oC8= Date: Tue, 21 Apr 2020 11:34:27 +0200 From: Greg KH To: =?utf-8?B?546L5paH6JmO?= Subject: Re: [PATCH v2, RESEND] misc: new driver sram_uapi for user level SRAM access Message-ID: <20200421093427.GC725219@kroah.com> References: <20200420145128.GA4131449@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, Randy Dunlap , linux-kernel@vger.kernel.org, Scott Wood , kernel@vivo.com, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Apr 21, 2020 at 05:09:47PM +0800, 王文虎 wrote: > Hi, Greg, Arnd, > > Thank you for your comments first, and then really very very very sorry > for driving Greg to sigh and I hope there would be chance to share Moutai > (rather than whisky, we drink it much, a kind of Baijiu), after the virus. > > Back to the comments, I'd like to do a bit of documentation or explanation first, > which should have been done early or else there would not be so much to explain: > 1. What I have been trying to do is to access the Freescale Cache-SRAM device form > user level; > 2. I implemented it using UIO, which was thought of non-proper; I still think that using uio is the best way to do this, and never said it was "non-proper". All we got bogged down in was the DT representation of stuff from what I remember. That should be worked through. thanks, greg k-h