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=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 BD093C433B4 for ; Thu, 1 Apr 2021 10:58:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8992D610CE for ; Thu, 1 Apr 2021 10:58:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234071AbhDAK6R (ORCPT ); Thu, 1 Apr 2021 06:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233744AbhDAK6K (ORCPT ); Thu, 1 Apr 2021 06:58:10 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD104C0613E6; Thu, 1 Apr 2021 03:58:09 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id e14so2202915ejz.11; Thu, 01 Apr 2021 03:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=B/H4PVsHcd0yRRzaDgLhkxe1doZE87KfKxYYYpPPtY0=; b=BJqXu8Du3ysJ9hXdn+JT7Jt3nKsoYB7ltmKdCRGysQgvwwVr0JAw5CSKOtwTuC0mtW jsanmbTcVp9P3OT7OtEJOO4mLEpS+DT6/8mnhde0nGn+aya6EzhVbq4IN9itXIwIcfAh daNfrzrg/jQ9Xu0e+4/3uWSwJa8cu7Bn7gVTYKktG9om+VDuLVmWZNBmtoJmQr1eKmMw /wJRte2d6POBGKjpq37jclevckJXL9FNkERZA8jZQUkXcpT2Zl8R0p3gITeXT2ngnPNG yjJtjq09jjFD09bo/3MOZNKnxc1iN3g+oY8yUhBx4P7IpSJdacMYcajLu7lj1I4TQGzs Cm3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=B/H4PVsHcd0yRRzaDgLhkxe1doZE87KfKxYYYpPPtY0=; b=a6zntK0ylqnKKb8kMxbdjdgE0mzusncl+Fa7Ikq5crmGwujyK02p9ya2F+Su71xhEp igtZGLDDjFaf2KOutoNrZrlR0QkB9I8eA/CxpbZuJbY4gOVPItfL6cKP7e5osYNwP34D CFNOiEJcv4JzQsI27YBGdshkrQQ/kgVqnya7l2Rna0PYMfmw+JBETqiYpgGGq3HyiFOt gEDTCq826yah6EJ5QlnWjcVGextq/zySaVHjF0xw9rw//x0b0EonocCQZO/sUBrgGM0P C7HZu68TeS9eyaodDil4g4mYCfEaWwC++L3ugvngGGjmSYLeIG9Wr3wRkUHr79AxWx2j BViA== X-Gm-Message-State: AOAM530EkzUgQpsJ1ZsRnYRQTKKE7rfiTb5VU4dEdQie1rL8mvEB1zbL XoxlcIr8XBYpzOHUyKNcrAu69HSWanc= X-Google-Smtp-Source: ABdhPJwEhWMeZi8yeGpZ3tBAsX7Ch/lleGPJpoYfGuUBtBxT2Dw/LnqSKfHLNbmGJhaebb/jKSA4+g== X-Received: by 2002:a17:906:f891:: with SMTP id lg17mr8494127ejb.69.1617274688696; Thu, 01 Apr 2021 03:58:08 -0700 (PDT) Received: from BV030612LT ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id c17sm3797493edw.32.2021.04.01.03.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 03:58:08 -0700 (PDT) Date: Thu, 1 Apr 2021 13:58:05 +0300 From: Cristian Ciocaltea To: Andreas =?iso-8859-1?Q?F=E4rber?= , Manivannan Sadhasivam Cc: Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] Add support for Actions Semi Owl socinfo Message-ID: <20210401105805.GA1998829@BV030612LT> References: <20210401052438.GB14052@work> <20210401094041.GA1993499@BV030612LT> <20210401102717.GF14052@work> <252dd954-c8f1-fa2a-c37a-ede386fc9d43@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <252dd954-c8f1-fa2a-c37a-ede386fc9d43@suse.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mani, Andreas, On Thu, Apr 01, 2021 at 12:49:37PM +0200, Andreas Färber wrote: > Hi, > > On 01.04.21 12:27, Manivannan Sadhasivam wrote: > > On Thu, Apr 01, 2021 at 12:40:41PM +0300, Cristian Ciocaltea wrote: > >> On Thu, Apr 01, 2021 at 10:54:38AM +0530, Manivannan Sadhasivam wrote: > >>> On Tue, Mar 30, 2021 at 04:48:15PM +0300, Cristian Ciocaltea wrote: > >>>> This patchset adds a socinfo driver which provides information about > >>>> Actions Semi Owl SoCs to user space via sysfs: machine, family, soc_id, > >>>> serial_number. > >>>> > >>>> Please note the serial number is currently available only for the S500 > >>>> SoC variant. > >>>> > >>>> This has been tested on the S500 SoC based RoseapplePi SBC. > >>>> > >>> > >>> Is this the soc_id provided by the vendor bootloader (uboot)? If so, under > >>> what basis it provides? I don't think the SoC has the provision for > >>> soc_id based on HW parameters. > >> > >> No, the soc_id is not provided by the bootloader, or at least I couldn't > >> identify any related implementation. Instead, I provided this via the > >> driver itself, since I've encountered this approach in some other soc > >> drivers as well (e.g. imx/soc-imx.c, versatile/soc-integrator.c). > >> > > > > Sorry, I was referring to serial_number. Since your comment says so, can > > you point to the corresponding code? > > Seconded that this needs to be better understood. If this is just a > convention of some downstream U-Boot that's not implemented in mainline > (and maybe not even for Guitar or Labrador? tested on RoseapplePi only), > it might not be worth its own reserved-memory based kernel driver? The serial number is actually provided by the s500-bootloader for which Actions did not provide the source code, at least it is not available in the xapp github repo. I did not find anything related to this in downstream U-Boot. Kind regards, Cristi > Implementing a standard interface such as DMI tables or a DT property in > mainline U-Boot may be more useful then. Is it still Mani's S900 only? > > Regards, > Andreas > > -- > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5, 90409 Nürnberg, Germany > GF: Felix Imendörffer > HRB 36809 (AG Nürnberg) 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.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 73486C433B4 for ; Thu, 1 Apr 2021 10:59:45 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 01FE561056 for ; Thu, 1 Apr 2021 10:59:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01FE561056 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wNU2vvFPlLdUNi/yEhNTvU0aeDd+aOSeM7cAN2efbuo=; b=bIt40ocwhzb/j+bWjwqIRoRGP 1WB5vhCRXjhzVrvEu4wU9bIZeo9apKRBw1ps5Xa/NIpmCc28WsGERJo4GUE97wKi5+tGAgBF5KUaW f+PzsGmt2J62QWeXV2uKZt/9jBqBNcdGDRknnXoati9hc4SRxFT/O0eLZu2uTwLlwMXdPGVkxHgTj vAbhEtdSJmar/+gpUuWNkL0+CB9gAwKwDOz9oj1Pf76ZDJeqcz4lrOG4cNVP41kFXMel6AGmChGbk 2s9TmrVFKmdFRG1GRukGBXyBqxOuJJ5mFynyew+qyoOtB5XJUV5aF5tUgfDd18LOlviN2J2Z9JVq8 w08QP42JA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRv1j-009Itc-N5; Thu, 01 Apr 2021 10:58:15 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRv1d-009It9-7Y; Thu, 01 Apr 2021 10:58:12 +0000 Received: by mail-ej1-x636.google.com with SMTP id b7so2258088ejv.1; Thu, 01 Apr 2021 03:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=B/H4PVsHcd0yRRzaDgLhkxe1doZE87KfKxYYYpPPtY0=; b=BJqXu8Du3ysJ9hXdn+JT7Jt3nKsoYB7ltmKdCRGysQgvwwVr0JAw5CSKOtwTuC0mtW jsanmbTcVp9P3OT7OtEJOO4mLEpS+DT6/8mnhde0nGn+aya6EzhVbq4IN9itXIwIcfAh daNfrzrg/jQ9Xu0e+4/3uWSwJa8cu7Bn7gVTYKktG9om+VDuLVmWZNBmtoJmQr1eKmMw /wJRte2d6POBGKjpq37jclevckJXL9FNkERZA8jZQUkXcpT2Zl8R0p3gITeXT2ngnPNG yjJtjq09jjFD09bo/3MOZNKnxc1iN3g+oY8yUhBx4P7IpSJdacMYcajLu7lj1I4TQGzs Cm3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=B/H4PVsHcd0yRRzaDgLhkxe1doZE87KfKxYYYpPPtY0=; b=lYPBMV5SgtsOuERdiQLqblXWnhdWPFZ0TD2GZIV0VzkzPGQmW6iOGGLOqNvfG9CzYY B114K/6z6vyrK3f4t1usw/cbc0fq68GefqjcZicPO1eXSlcRv/Tas+OmdbBxftvydKFT XOBTDnpe9h0qoJ9os7eC++BegQRUUYsYvZ6YZyUpgEElR0lxHYVSsnnwFOo134hKhS8Z H308EZSVeq36cu/QzWcbQzY0LP30JFhQoyqlAV0ITLh7meY9LSd//OtK8IdZrz6R5xOB zjydPzPRpdT7Se0XUA6K4+xIT4/e+7LweO7Rfx0mVRhAUt/lrNP6Q08udTKSgmpN2uji gsVQ== X-Gm-Message-State: AOAM531Ve7cOtjKrqdhUz8v7HFiEM7JbywVEtWpbazym7XFKGdhloxf3 0aAi0KKDxJsStwDwPR9PheE= X-Google-Smtp-Source: ABdhPJwEhWMeZi8yeGpZ3tBAsX7Ch/lleGPJpoYfGuUBtBxT2Dw/LnqSKfHLNbmGJhaebb/jKSA4+g== X-Received: by 2002:a17:906:f891:: with SMTP id lg17mr8494127ejb.69.1617274688696; Thu, 01 Apr 2021 03:58:08 -0700 (PDT) Received: from BV030612LT ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id c17sm3797493edw.32.2021.04.01.03.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 03:58:08 -0700 (PDT) Date: Thu, 1 Apr 2021 13:58:05 +0300 From: Cristian Ciocaltea To: Andreas =?iso-8859-1?Q?F=E4rber?= , Manivannan Sadhasivam Cc: Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] Add support for Actions Semi Owl socinfo Message-ID: <20210401105805.GA1998829@BV030612LT> References: <20210401052438.GB14052@work> <20210401094041.GA1993499@BV030612LT> <20210401102717.GF14052@work> <252dd954-c8f1-fa2a-c37a-ede386fc9d43@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <252dd954-c8f1-fa2a-c37a-ede386fc9d43@suse.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210401_115811_005093_70D8C98C X-CRM114-Status: GOOD ( 27.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Mani, Andreas, On Thu, Apr 01, 2021 at 12:49:37PM +0200, Andreas F=E4rber wrote: > Hi, > = > On 01.04.21 12:27, Manivannan Sadhasivam wrote: > > On Thu, Apr 01, 2021 at 12:40:41PM +0300, Cristian Ciocaltea wrote: > >> On Thu, Apr 01, 2021 at 10:54:38AM +0530, Manivannan Sadhasivam wrote: > >>> On Tue, Mar 30, 2021 at 04:48:15PM +0300, Cristian Ciocaltea wrote: > >>>> This patchset adds a socinfo driver which provides information about > >>>> Actions Semi Owl SoCs to user space via sysfs: machine, family, soc_= id, > >>>> serial_number. > >>>> > >>>> Please note the serial number is currently available only for the S5= 00 > >>>> SoC variant. > >>>> > >>>> This has been tested on the S500 SoC based RoseapplePi SBC. > >>>> > >>> > >>> Is this the soc_id provided by the vendor bootloader (uboot)? If so, = under > >>> what basis it provides? I don't think the SoC has the provision for > >>> soc_id based on HW parameters. > >> > >> No, the soc_id is not provided by the bootloader, or at least I couldn= 't > >> identify any related implementation. Instead, I provided this via the > >> driver itself, since I've encountered this approach in some other soc > >> drivers as well (e.g. imx/soc-imx.c, versatile/soc-integrator.c). = > >> > > = > > Sorry, I was referring to serial_number. Since your comment says so, can > > you point to the corresponding code? > = > Seconded that this needs to be better understood. If this is just a > convention of some downstream U-Boot that's not implemented in mainline > (and maybe not even for Guitar or Labrador? tested on RoseapplePi only), > it might not be worth its own reserved-memory based kernel driver? The serial number is actually provided by the s500-bootloader for which Actions did not provide the source code, at least it is not available in the xapp github repo. I did not find anything related to this in downstream U-Boot. Kind regards, Cristi > Implementing a standard interface such as DMI tables or a DT property in > mainline U-Boot may be more useful then. Is it still Mani's S900 only? > = > Regards, > Andreas > = > -- = > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5, 90409 N=FCrnberg, Germany > GF: Felix Imend=F6rffer > HRB 36809 (AG N=FCrnberg) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel