Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5714500ybe; Tue, 10 Sep 2019 07:48:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbG+2XzlANcu9FW/KQpr7TkyMCnxvw1WRm6qxSQOjkxf79hwXG073uktlZZgH0ooOvRCJb X-Received: by 2002:a05:6402:14c7:: with SMTP id f7mr19363257edx.70.1568126897716; Tue, 10 Sep 2019 07:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568126897; cv=none; d=google.com; s=arc-20160816; b=eVkPE1Gr1r8Xu/Vjhy49Lt57aQgJOdAnrjAcVDmKK8jTDKLKl4M1oYY5onyNsTdMzr 7WHPhlQnb7PIfB6TOSwj9M3VnyCDug9nU6C+BcfoCQeOvenPdOwI4hF7huCATJGyQHM0 XTSIfS76JXMyoKB2gt22WCcF9PoL7aTGOaq7v41mi8pLX2ROPDZRK+5+07EMkWHR1Xy/ VbTfiEbJx+Fq0C5QoTpJ/uQcyJA8yRVpA4qx0Vib+p5m5H1UOkZ//DmzsiyCJbHFg6nN NMjQdULvFgrIRbvhFvitV3abzjVLQBM1IMYvkfmADZQrwueQDsyjrvlMHaGe/heJByWw drYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=K5duO6IbkJ8p2e8p4z12GaGcHnnxC09bJLQvbWViWok=; b=uzYNktCNt2dr90GhU1qs2MI1mgUQUnJS9A0FnwgpjPATkM2dsE3c/jntW9xB3UQUfD MrDehPtgfXhsBk77nJ8QoQqbhuvW/4AFtqIFKgSqo+d+yxePUAivFjWPBnyvrE11YdUw jsSjAwtY1tiiIwqH4HKcXAZyfE//Hore+/6qliI2SllHrY1g2WCXUf9Haea1Yvjlri+B 4z50Y04hU3gWDXe1nSC3kqYStWwuHsvpENgK0Q3rBdO+h8uRxzeWPg4a50an5Ol6957R ep98VK++yPw7B44zPbUohAn60POtvipiSa2+44bN+31oBf77slWf+xhK9er+8yC8xGJe cglQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fu4g8oru; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a19si9022464ejj.73.2019.09.10.07.47.53; Tue, 10 Sep 2019 07:48:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fu4g8oru; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393513AbfIJOo5 (ORCPT + 99 others); Tue, 10 Sep 2019 10:44:57 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33679 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387874AbfIJOo4 (ORCPT ); Tue, 10 Sep 2019 10:44:56 -0400 Received: by mail-wr1-f67.google.com with SMTP id u16so20876245wrr.0; Tue, 10 Sep 2019 07:44:55 -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 :user-agent; bh=K5duO6IbkJ8p2e8p4z12GaGcHnnxC09bJLQvbWViWok=; b=fu4g8oruUidKGWMGKAQilbHJ3zZ7QI7stPHT9LX/emhpA0g/uhNnCIfSzvekCRxVHx Wnrh4cBhFQ05o5vH8hUWdGFnFKzPPI9fi/iv6vHcJlFrQ1nMCaJ5BpIulyKguP3lhglr 9e74K100oZ8+JWH98eeNglVWTOWnCXBZMme6/Lw6ruC2MmV+R72Ou/j9luMFFmINvC1f 0GiPVVVtqRaVbXqxLF3HVhEllIaskwiqn2821fB3L4wcOj8TsZS0O0kHENJXS4uCTrJQ YxZ3oWIPlmC3d7SH/UJsQs1IRCIUc/CdG9PM4XnY07ShLokUiUoQhY2q4EV9Sjn6/cVT TbNw== 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:user-agent; bh=K5duO6IbkJ8p2e8p4z12GaGcHnnxC09bJLQvbWViWok=; b=PISmjsUgPwc5MVWmHYBw9C7tQTavaRAU4dy6mixx8KKOFw50pPrHEumzOvVQtCEJA9 X3/icrjdE1aUEpPWcEd+VpuZ3BnTD1BRf8HMp2YYWxFMThosNW/zgV8kAC06YuyzI6+p O17jqfpRHzkUBJNihHAp6G5cPGOYjuDvGsGCJUGIGeSB23tRCA9AaaEcrw9wRjAdj9kO okdvS+vSuJBj2zGUTt+DVoMfgoE8q3WDgDoDl8MMmiVCMhXDvjqbzUyfkNPgIt9CbsvX x7iPbvhU6MMEgEEuDPg9BHMMOFA9NqwQngGs8M8puQ33gakMe6+3tgA3K5A1oYGf4eq3 hjeA== X-Gm-Message-State: APjAAAUGVGM//3oNS5sG3aD3wK/HwgB80WMjlj96GZRy3OyDxtzK9bDJ yCyL4C/FXPnUv8GsIuyHyTo= X-Received: by 2002:a5d:45c3:: with SMTP id b3mr27792792wrs.207.1568126694371; Tue, 10 Sep 2019 07:44:54 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id a192sm5705205wma.1.2019.09.10.07.44.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Sep 2019 07:44:53 -0700 (PDT) Date: Tue, 10 Sep 2019 16:44:52 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Sebastian Reichel Cc: Adam Ford , Tony Lindgren , Mark Rutland , devicetree , Paul Walmsley , Aaro Koskinen , Russell King , Linux Kernel Mailing List , Tero Kristo , Rob Herring , =?utf-8?Q?Beno=C3=AEt?= Cousson , Linux-OMAP , Adam Ford , arm-soc Subject: Re: [RFC] ARM: omap3: Enable HWMODS for HW Random Number Generator Message-ID: <20190910144452.vmhmls3xhh6hd5xw@pali> References: <20190828150037.2640-1-aford173@gmail.com> <20190905230443.GA52127@atomide.com> <20190910143732.3g3q4acvnx2pqvjx@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190910143732.3g3q4acvnx2pqvjx@earth.universe> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 10 September 2019 15:37:32 Sebastian Reichel wrote: > Hi, > > On Tue, Sep 10, 2019 at 08:56:49AM -0500, Adam Ford wrote: > > On Thu, Sep 5, 2019 at 6:04 PM Tony Lindgren wrote: > > > Oh and this needs to default to status = "disabled" for > > > HS devices like n900 as it needs to use the omap3-rom-rng. > > > > I don't know enough about the HS version of the OMAP3, but what's the > > main difference between omap3-rom-rng and this one? > > The OMAP HS chips have the bus firewall configured to block direct > access to some cryptography related devices. The kernel will crash > with a bus error, if you try to read/write the registers for > protected devices. And if you try to read it more times, SOC would be rebooted for security reasons. > The omap3-rom-rng avoids this by communicating > with the security middleware component instead of directly accessing > the RNG hardware. And that component is loaded by signed bootloader into "secure" area not accessible by "non-secure" work (like kernel) and communication is done via arm smc instruction. -- Pali Rohár pali.rohar@gmail.com