Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752543AbdLUPb1 (ORCPT ); Thu, 21 Dec 2017 10:31:27 -0500 Received: from mail-bn3nam01on0085.outbound.protection.outlook.com ([104.47.33.85]:8277 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751446AbdLUPbY (ORCPT ); Thu, 21 Dec 2017 10:31:24 -0500 Authentication-Results: spf=pass (sender IP is 129.130.18.151) smtp.mailfrom=ksu.edu; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=ksu.edu; X-Google-Smtp-Source: ACJfBouV3u95ICDvgVCRyBv86mc1aUqvsoTIFI7rtcjbiauWQGNbksC7pnfLMpedJQKeH6L/RpGhngqegLH5W/+GVWc= MIME-Version: 1.0 In-Reply-To: <20171221152630.2vf57x5o2yi5sv3n@flea.lan> References: <20171219210523.10428-1-kevans91@ksu.edu> <20171221145512.llxvzkcrjpquhczi@flea.lan> <20171221152630.2vf57x5o2yi5sv3n@flea.lan> From: Kyle Evans Date: Thu, 21 Dec 2017 09:30:56 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] ARM: dts: sunxi: Add sid for a83t To: Maxime Ripard CC: Srinivas Kandagatla , Rob Herring , Mark Rutland , Chen-Yu Tsai , Russell King , , , , Content-Type: text/plain; charset="UTF-8" X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:129.130.18.151;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(39380400002)(396003)(346002)(39860400002)(2980300002)(438002)(76104003)(24454002)(199004)(189003)(6306002)(23676004)(106466001)(59450400001)(33896004)(2950100002)(93516011)(498394004)(53546011)(50466002)(90966002)(229853002)(86362001)(966005)(16586007)(786003)(9686003)(76176011)(316002)(5660300001)(478600001)(54906003)(42186006)(9896002)(75432002)(59536001)(2906002)(8936002)(107886003)(305945005)(61726006)(106002)(356003)(98316002)(246002)(6246003)(5820100001)(6862004)(88552002)(8676002)(4326008)(95326003)(93886005)(61266001)(47776003)(55446002)(450100002)(55456009)(18886065003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR05MB2988;H:ome-vm-smtp1.campus.ksu.edu;FPR:;SPF:Pass;PTR:ip-18-151.net.ksu.edu;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT043;1:GhFBJGXDk9dYg3/hWK9yiy/Wnz6ZmY8p8wMzhxyJcyft1li2F0nyyvKQymhlXyeO8vVpbmEICj7sUIOzv8OE3GeJxxbh/VcRLia965QEg257fjJ7L0R6B+QpcrXonZWX X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8137017c-97aa-4850-98a6-08d54887e39d X-Microsoft-Antispam: UriScan:(198831570735186);BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(8989060)(201703031133081)(201702281549075)(8990040)(5600026)(4604075)(4608076)(2017052603307)(7153060);SRVR:DM5PR05MB2988; X-Microsoft-Exchange-Diagnostics: 1;DM5PR05MB2988;3:E69M42oB4F5e/9XXuhTn1oy67FinNstFK0CxtRt6E3quuecmXvkUbGfjVw4Y6eTQugQD42dApzTXpylKYIbd7++aMjoaZLDqmhqlh/JV4QzUzW1BNIUaJYEMUohenNU7ozI4zPv6ZQpVDi4T+5WUNU06BwWudIo40TCbTedwcENfnGZNCmqWttWIXldH9bNGedpWkgz+X52/EaJOWqQLOFCvnJ8WaBXtskGJFif5cXitWSb+q7AxXW57n+NXWi8tZFOkDA4X6e7hy6H7ELNC+b4R29iqBNoLZDu820a8wUc62uxsZUR1x1yhRG0k+APpZefRSabhxR6ahiRTrPD9LHHjX/HZADlRuYp0f39gZAKcryWy28BjICPTwNYJyul5tP/CcXAm3co7aEoSYykSfg==;25:s/FiwsL4XyIEhUhFnIhzx0NGf4AV3UJ74t7Rbeh114SwijJHPjhwsWszCWA169+/mY8/J9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K X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(112903893386949)(198831570735186)(58145275503218); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231023)(93006095)(93004095)(6041268)(20161123558120)(20161123564045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR05MB2988;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM5PR05MB2988; X-Microsoft-Exchange-Diagnostics: 1;DM5PR05MB2988;4:c0OjlKrNeAMUlK6pq2c4cCbWGIn9nr1BVsLUFyzwGxGXbbQj8V9wikMG87lXoCAkapK9Dv4XSWi43B9flGwiuF/It6Cce96O/sF1lyDLGcO8FhYOws4mqEM0eQ0TKhNaBX23NSLXVPPWwDVxeJIK+CrJpvKwuxwztBBHBnzj6qfumgGU+kgJo/c/vQ7sR5FmJll/ZSGigQVWq4U2U9EoiO7FuiuWB1j+UqHEhJkb39MlnURUymOE8zocgYNZkakIBwryvIhQ1sjB5GKZLEKXVSQ5t8Fx2udtpSmqyQ8KcbMZimY4KOtGpFtJiJJj9rQsYIr7ENfOqGMqKTWmeWIAHtt1vcm/C59ka1snhFeTKjs3Xajy8v9nhMIf5CyvgxKhExp1om7OJYlgxOd30bk5RR3COtsu9EIjX+ge8XOuphE= X-Forefront-PRVS: 0528942FD8 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjA1TUIyOTg4OzIzOmZ6VnN2eVN4UEpJMklkNDJBN21RZzBmblUx?= =?utf-8?B?ZkNXNTY1dXhrRHpxOTlpd1ROQzR4bkkzbXhUcm43SUJpR2RDcnlyVk5VRkVG?= =?utf-8?B?VmdxTDlUZFg3bTl0dXhyaVhoQjhkbDVNNis1T2lrY3VTWCs4OXNzRlBKZitZ?= =?utf-8?B?My9maE5HYXhsUlZSSSt6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/7UfPFOGgjJPozHu08A= X-OriginatorOrg: ksu.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2017 15:31:20.9498 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8137017c-97aa-4850-98a6-08d54887e39d X-MS-Exchange-CrossTenant-Id: d9a2fa71-d67d-4cb6-b541-06ccaa8013fb X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d9a2fa71-d67d-4cb6-b541-06ccaa8013fb;Ip=[129.130.18.151];Helo=[ome-vm-smtp1.campus.ksu.edu] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR05MB2988 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1992 Lines: 51 On Thu, Dec 21, 2017 at 9:26 AM, Maxime Ripard wrote: > Hi, > > On Thu, Dec 21, 2017 at 09:19:24AM -0600, Kyle Evans wrote: >> On Thu, Dec 21, 2017 at 8:55 AM, Maxime Ripard >> wrote: >> > Hi Kyle, >> > >> > On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91@ksu.edu wrote: >> >> Allwinner a83t has a 1 KB sid block with efuse for security rootkey and >> >> thermal calibration data, add node to describe it. >> >> >> >> a83t-sid is not currently supported by nvmem/sunxi-sid, but it is >> >> supported in an external driver for FreeBSD. >> >> >> >> Signed-off-by: Kyle Evans >> > >> > The patch looks fine in itself, but we've had a number of issues with >> > the register layout (and access patterns) in the past, so I'd rather >> > have something that works in Linux too if possible. >> >> I have a patch that I think should make it work fine on Linux [1], but >> I'm afraid I have little to no capability to test it myself and so I >> did not add it as well. >> >> I do know that the rootkey is offset 0x200 into the given space [2], >> as is the case with the H3, and that the readout quirk is not needed. >> I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the >> H3, but I do know that thermal data can be found at 0x34 and 0x38 in >> this space. > > Then maybe we should leave it aside until someone takes some time on > the A83t. The good news is that the binding itself looks fine, so as > far as FreeBSD goes, there shouldn't be anything preventing you from > using it I guess. Yeah, we've had this exact binding in our own copy of DTS up until a recent point when we flipped the switch to pulling DT from Mainline Linux and trying to upstream changes instead of having a bunch of local modifications in our tree. > Chen-Yu, what do you think? > > Thanks! > Maxime > > -- > Maxime Ripard, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com