Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp397404pxf; Thu, 1 Apr 2021 04:11:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRU4tbU7yJwGMDSEc1QS7/V5vhbR5ih8NdvRBFQLHAtQz4Uy5P3Brm3Pp/kA3ySFvvLT0R X-Received: by 2002:a17:906:37db:: with SMTP id o27mr8754337ejc.60.1617275511528; Thu, 01 Apr 2021 04:11:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617275511; cv=none; d=google.com; s=arc-20160816; b=RyWAlxhJdbkZm13IRwr1FWZuVT0kNOv2J3zrxVhZtR4btY2bcOjPUscC++Aa/V2K6N qRjmEFlKDkvRWQH4JHhWId3R9ex7DBdcL42llPJ7dWCtIuYzEi1hOYFWREvN02blWyE3 5ICsohkvDm9hv3F7VKy2Knx7vEwPTscV0vPNbQLrnR+CWs4y3ml2k4CyzpW+kuSd9ZKm HV1ES4lJ/0+lgrYIIHPpnwYFEgvVO31njQPueGchbTnU1Ib9IcJ0HiWpuo2kDhllUm48 mtyoMFXOPfn+S+Qww8Vu7KakE6ydOxDJhfVDYb9SyXFXeTr38ON7EI09dGeBXIKPK7zk 23NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ongG4RdZXaNBrTjvsHsOk08Jn+eDGk9jOg7imRvlrY4=; b=P/sjp+gfbEhXHRdjZDhyVfITF+t5eCr6VMOKnGByLHQRXgU+NSa770ly9bIu35c9Vf iP5E0v9VSy93okFpVZg+9MhRoskBZS+5WHWsnIMlWUVRGp+Ol1sAOERUGslVgBWO4a8y ywXNohWM0H/8dwZ5OQ2omghH0VYA6kaOasNoT0Yg7DXMv+uVgpbvcZTNFw8dJAN9M/Xm 8cDrcf76/ar883omC/Dl5TmaxLlT7jFaMlGbHpJmdLtFqOS3cOldt8pZFdvpegdn9igw RQ267ZpoEK3uU9sSisPXSnFcJOuaboQP2DfV2BsnOMaVPgXLg1hHylOwExJRieqaVO03 vJCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OftIwAXv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd1si3820484ejb.660.2021.04.01.04.11.28; Thu, 01 Apr 2021 04:11:51 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OftIwAXv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233817AbhDALJC (ORCPT + 99 others); Thu, 1 Apr 2021 07:09:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:53320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234035AbhDALI2 (ORCPT ); Thu, 1 Apr 2021 07:08:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 41366610CA; Thu, 1 Apr 2021 11:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617275279; bh=ogd+y0+ZXpj/igXJ7ptSRR8VZf3rn4GEdDLItqgA/SY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OftIwAXvBBXjILGp6g/LnTvAHq00DxXPLg5xCuM5HEUpREg0qwheg/vNZUxXNN8I0 S01QMncG4IuZ4vWglC3QzCXJM/ZW3oEXCty58naVv6tzdHJw8EbzSRDeWdLAOccoy1 2UyPohCy/CjeukzhhRSbVuaDgmIo1XpPd1HIXStWxz3XAobydHGu+GbEBNfEGAQ2+3 hDydlKNk/wPHDiPYtX+izzLTI2gdZotZPlpKwcv4s456ixkIKd3niVhHlv25GbXKYa ged+8ITp8ti4G4x8JRc/08wQqZYQjb+TlcNHplD2SzhkIaUk/iF3ru/sQJ2XBrT/Hq pqvpwoCqsdyDA== Date: Thu, 1 Apr 2021 16:37:52 +0530 From: Manivannan Sadhasivam To: Cristian Ciocaltea Cc: Andreas =?iso-8859-1?Q?F=E4rber?= , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, matheus@castello.eng.br Subject: Re: [PATCH v2 0/6] Add support for Actions Semi Owl socinfo Message-ID: <20210401110752.GG14052@work> References: <20210401052438.GB14052@work> <20210401094041.GA1993499@BV030612LT> <20210401102717.GF14052@work> <252dd954-c8f1-fa2a-c37a-ede386fc9d43@suse.de> <20210401105805.GA1998829@BV030612LT> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210401105805.GA1998829@BV030612LT> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Matheus On Thu, Apr 01, 2021 at 01:58:05PM +0300, Cristian Ciocaltea wrote: > 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. > Hmm, then we can consider this as the firmware dependent property. But can we get consensus that this is common for all S500 SoCs? Maybe, Matheus can verify it on Labrador? I don't think adding a SOCINFO driver for a single board is a good idea. Thanks, Mani > 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)