Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752758AbdLUPT5 (ORCPT ); Thu, 21 Dec 2017 10:19:57 -0500 Received: from mail-sn1nam02on0063.outbound.protection.outlook.com ([104.47.36.63]:40771 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751259AbdLUPTy (ORCPT ); Thu, 21 Dec 2017 10:19:54 -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: ACJfBovfaR6lDfq7vK+8Erfx2ce45oNAxDjdEtQRZn1X2KZIVc0kmR68tTS7RiebuHejB3Xx6zQvv0x59kamX2csl48= MIME-Version: 1.0 In-Reply-To: <20171221145512.llxvzkcrjpquhczi@flea.lan> References: <20171219210523.10428-1-kevans91@ksu.edu> <20171221145512.llxvzkcrjpquhczi@flea.lan> From: Kyle Evans Date: Thu, 21 Dec 2017 09:19:24 -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)(39380400002)(376002)(346002)(39860400002)(396003)(2980300002)(438002)(24454002)(189003)(199004)(450100002)(95326003)(966005)(75432002)(61726006)(5820100001)(478600001)(59450400001)(50466002)(93516011)(106466001)(229853002)(246002)(88552002)(33896004)(23676004)(498394004)(76176011)(2906002)(9686003)(6306002)(8676002)(55446002)(2950100002)(8936002)(9896002)(356003)(90966002)(4326008)(6246003)(47776003)(61266001)(305945005)(42186006)(59536001)(6862004)(98316002)(786003)(316002)(86362001)(106002)(53546011)(54906003)(16586007)(5660300001)(107886003)(55456009);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR05MB1963;H:ome-vm-smtp1.campus.ksu.edu;FPR:;SPF:Pass;PTR:ip-18-151.net.ksu.edu;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT017;1:u7rRPkgYzNA5eTXvhrk0n70qsCUtCnNg1nZ8c03x8lDEPTv5hqsempBGvFSit3T03FanUsac0WoUR5ztgVsZKQwkSF/Nk5YttrgFzv8JpFGS8TkJEpRqgQiT/tkmLu1q X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f94dad3e-0d16-46f1-2652-08d54886480d X-Microsoft-Antispam: UriScan:(198831570735186);BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(8989060)(201703031133081)(201702281549075)(8990040)(5600026)(4604075)(4608076)(2017052603307)(7153060);SRVR:CY1PR05MB1963; X-Microsoft-Exchange-Diagnostics: 1;CY1PR05MB1963;3:MepvIVetwc+6hMqc0xWidbopZD4QSq26TmaTWbHumqUJat5WWrcc7aDs61yyztEP3+akdgkLBEDc5vciCmlwZ9miKVld+JbdSup9kuTzSThH1v/p0L+GniM2ZL3uUvN8uVUAzwoi42Q79jFcuNzqqy3ZEsDhAUZ3kGFGB0+Rj94hNB3LysBrWjIhRQ1AE/+bNmu0A24jxARXg7X0xJApF38WWnzLp2ZU5E8qL0hgiUwKsnpzEE0dcQw/f+jm/P3uM3f5nNOu7C4HS22r35s7DKID7je0GTY4M6S6BTtYrgFqrKR3gRRnFAnBrKpEBO74ZEWS3V5/TW/6v0t1EyZn3MqdSXKjT1yXJHb/EQAktIrYUO4owi2EIe6Pj/5PqDPHkoIKSY+3o2vruYhbJA6lQw==;25:jjrNkAC1qcGm8c8tp4fhRLPrGAl79pGY+YnY+KEMT7tuDX9JVjYZB8d8waPWJ4rYtdhBNVbl/Tkle+Q04EXP0B/KLJd1smXKcZ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PRVS: X-Exchange-Antispam-Report-Test: UriScan:(56005881305849)(192374486261705)(112903893386949)(198831570735186)(58145275503218); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(10201501046)(93006095)(93004095)(3002001)(6041268)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:CY1PR05MB1963;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR05MB1963; X-Microsoft-Exchange-Diagnostics: 1;CY1PR05MB1963;4:QMXfrKUimzmKP14ys3kyHT8vfuz5c7jcxtNL5IU13q3UwZU/Siw+ENXgYqUmaMnNYmkJGH4BRC2SZtb/P4xKClVqpSgiYy2/jp+96qOPlvprRI0rPrDdbj92xvdBEAT+KWVRaOlwG2F6/eVVHGmhjVnHmjuIFHe/xd3LisRsiMnr7qXTht6DNxJqPaNIyl/cpf0efxsT3lLczK+bGkCn3THMi/4afDupso3vmf7d8swVfwa6Lhmg43JxzyaktkirMw2uS21uqjwuOtbMVPX/vWa2bZZrIZzeDUcdQZHqsN2V/Q2nyJwTd5SQSSt+i2nZdUQmivp2hpRc1puWGukNfuuQo1bUSJUxBbGC4+Gis4XHrTkqhN+qGxSifqKyQEo5+TEcFGvuYMVwiIsPxYvH8trgrIYihFlXuKbvF13bp+wTpx4Tbpu6QnMYTYBxoWP/ X-Forefront-PRVS: 0528942FD8 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjA1TUIxOTYzOzIzOnB1SENRUGhOQ1M0ekM1SHRYU0tzUG1iYmRt?= =?utf-8?B?Ym41UVZ2eTIvQ0p2dzlqeE1JYU1PV1F6TG1EY25TdTBUdTBLdUI2WDFKaXBj?= =?utf-8?B?Y3ZacUZTeUVyOUwvbGlrcTdWbzBJNDFJcGtVUFA5aEhkeHhBa1ZlbkpDSmRq?= =?utf-8?B?Q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MYP3VDV3n6A4uc/YScEPsZGnufnIDjZzOccUi2zzYme05xz4e/ocb25ho1Fy5WpD0mei53+B1NQvtHdY5b8kXLYsD1ipcAQZGbnoOoivWWYmAmU+pE8XsJ+roBnYT8CP0wGxkJofL24/mO2lZkMqZowuhP1l7zNGprUVxz0CWasEfju9c3uXAAvgpxMg=;5:IPHZZTK+s5Y/ovjY0z6cBakoPyqrtu6zN8tHVvBI6aXBm+x4DjUdTqkF8tWEb02dYSv4C8zrrxk+nUCbXAD7wQgLW1ArJVnpKnXQFCvORY4vvzJTzGNt0N0j0H3Wjho22xjPqds2QydD9UqM9r1s9/2X7dWqdWYSaQ3dKwRPE7c=;24:ulc+Xlu5lMnggM37Kr5smrrGtbjWqPeLbGxxfSTTn1nYIT0puT+nLpRucpKr+pmVsC32FPVBDuFnVs9Rwbq4pCrshSfQCw0xN847yoNMwC8=;7:xotD/GR/X9pC42w0u5aS9G8vr5pK5aNwDz1ma/sy8cZZ3d6Vqq722HEl7aO4Gu/i7IQPvu9TKQpfHnU+VQ91rzKPK9i4ZGUUltJ5MH91N86dw/m0JUIamQt2goRgQwDoUB1/gW+rrzRknjKObcGXc6qku4Q5c55C+jfSgaTxdTeXgOjpFljBi9w3TzvvrIi4YCfhu1vqLkUxvrW8fxE7dr/D6jjOkaCGVFLRH5E0iNFcuMJWQBKIzBZvRAwgnQQk SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR05MB1963;20:wEDXjYgF+m1H27L96ZQMImkw5/6RI129dXtWYTVih7xPDdVWki3y8ows1qeJ2/Ao1W/N1GZKnp541YSzWJHsIF8VbdNH0NphSULoNNBfSg3tihfAC5+OsDgFTBwSabKYBZ4/cSdNepRdMVqJKL7ZCUBlPi8vyyvJH8qSJ3MifMw= X-OriginatorOrg: ksu.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2017 15:19:50.5525 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f94dad3e-0d16-46f1-2652-08d54886480d 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: CY1PR05MB1963 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1273 Lines: 31 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. Hello! 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. [1] https://people.freebsd.org/~kevans/sunxi-sid.diff [2] https://svnweb.freebsd.org/base/head/sys/arm/allwinner/aw_sid.c?view=markup#l56