Received: by 10.223.164.202 with SMTP id h10csp203560wrb; Tue, 14 Nov 2017 13:43:30 -0800 (PST) X-Google-Smtp-Source: AGs4zMYbzEYAfW6imTCXcqeTMKBW6MR0zTlwLhniffggPyKiObNLER6EPCdvegO/nYIMQmeyJy2r X-Received: by 10.101.74.129 with SMTP id b1mr13580701pgu.341.1510695810834; Tue, 14 Nov 2017 13:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510695810; cv=none; d=google.com; s=arc-20160816; b=yu+eFYvmR8jvOPUehbSX+YEaGQOMsvo+0moa3tWga4+WsAiHT6VsG/6NObe6mul2WS MyexqePO3pF/IKwNgdgAoDVqk5HXcpRZ6zwidohQoML3OBc8N9J/P3IGIdGq/cBrWmhP DeUZVqKCwNnKx4MzNYsApfLGVgM7uKl5cw1nEOOTvDVVlf3R9zUpSNKdsHho4s+ZpdXn 73mb2XcQQs2LYrNAjNagw97ofhdlliUmn7cJG+X04Fa8zeXEqbFEf4iCW8X/2ZClGPu/ QiKVCvqL7vX4CEcdoijy7EZge9pBK9RXWqkibYEfti9kySBygBhy/EcOEq3Gro6jieTU qq/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=gXQ8fMMNX6FjGPVkwwSSyxcdmUrQQoaKVQivsOBz1t4=; b=zL5MMpTnWVNFXFl0NSpRRDOXLYR+sVaVlvMoWOaF+qWHk/e0mLkVFtqagT7DsCyENM 34xQRFoKmvsGfLPEvNcPOu7DyhlYALHTdOk6Dj/+Gm9s2RLwEzd2u5VL+5NgIUDnP5ft jCFHeVxueYfZgxkq4la/ww/EfwW1+BOG5x9aUyqWzUB8a6RfRhtlzVDt5u89S4ZYPit+ ixn2hX/kUsuf7g7CveeeBfbrDFxjVJEE26sXDK9OOOFYBFhpKOwp6isfArU8fNR0wv0L DQi1uUDx+XPQv5hEl0Ks6w6Wz8TyCPimKeLuZR272djqs9HIhN2KN/0U90GjdCoQ8oeJ jpOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=H9xk8Q9R; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si4452755pli.504.2017.11.14.13.43.15; Tue, 14 Nov 2017 13:43:30 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=H9xk8Q9R; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755194AbdKNUCu (ORCPT + 88 others); Tue, 14 Nov 2017 15:02:50 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:61061 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754052AbdKNUCm (ORCPT ); Tue, 14 Nov 2017 15:02:42 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id vAEK1hH0010806; Tue, 14 Nov 2017 14:01:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1510689703; bh=KQOdOg27S0Xx4Zms2hbbr6wed4gmyqWSFwtlBP4sJVg=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=H9xk8Q9RgwgU7E8+WXUefe12TkX4WXeed7nBk2QM0cQElgJuIf6Vokmnv2jzwrY/O zbUBE8my+QqCfI0g1njkKOnYYJCGC3twHBO3/s5sU6PoSg4gJda8hv/x6Xkpka3IGY 21oy6hZcyfcs+2qGjGRn5o2usoXTfInE61F/YzrA= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vAEK1hiM019099; Tue, 14 Nov 2017 14:01:43 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Tue, 14 Nov 2017 14:01:42 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Tue, 14 Nov 2017 14:01:42 -0600 Received: from [127.0.0.1] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vAEK1bM5010212; Tue, 14 Nov 2017 14:01:37 -0600 Subject: Re: n900 in next-20170901 To: Tony Lindgren CC: Joonsoo Kim , Pavel Machek , , , kernel list , linux-arm-kernel , , , , , , , , "Aneesh Kumar K.V" , Vlastimil Babka , Andrew Morton , Stephen Rothwell , Russell King References: <20171109003639.GB23982@js1304-P5Q-DELUXE> <20171109035031.GA24383@js1304-P5Q-DELUXE> <20171109150854.GC28152@atomide.com> <20171110001315.GA29669@js1304-P5Q-DELUXE> <20171110032610.GJ28152@atomide.com> <20171110063727.GA32073@js1304-P5Q-DELUXE> <20171110153620.GO28152@atomide.com> <20171114063724.GA16969@js1304-P5Q-DELUXE> <20171114173719.GA28152@atomide.com> <5c885f60-bc8c-5f8e-dc81-57eacc57abc8@ti.com> <20171114194432.GB28152@atomide.com> From: Tero Kristo Message-ID: Date: Tue, 14 Nov 2017 22:01:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171114194432.GB28152@atomide.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/11/17 21:44, Tony Lindgren wrote: > * Tero Kristo [171114 19:34]: >> I guess you could just use rx51_secure_dispatcher and ditch the >> save_secure_ram_context call completely (and most of the other related >> code)? That one would handle the cache also in a clean manner. >> >> Something like: >> >> rx51_secure_dispatcher(25, 0, FLAG_START_CRITICAL, 4, >> __pa(omap3_secure_ram_storage), 0, 1, 1); > > That's different, as rx51_secure_dispatcher does the following: > > - Use arguments + 1 instead of 4, we currently use just 4 > - Disables local_irq and fiq, we are not doing that now > - Flushes and invalidates cache range, we are not doing that > - Calls omap_smc3 that only does mov r6, #0xff, and does not > do mov r2, #4 > - Missing nops after it's done > > This just based on a quick look I did earlier. So just > because of the extra work it does we don't want to do it > even if it worked :) Hmm ok, I was just thinking that all the extra flushes, irq disables etc. might be good to have in place, as a safeguard when entering secure mode. You might get glitches in certain conditions otherwise. The things it is missing might just be clutter. Anyway, that said, the changes you did look sane, but I might have cleaned it up a bit further. :) -Tero -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki From 1584072093938467026@xxx Tue Nov 14 19:47:51 +0000 2017 X-GM-THRID: 1577552291468010502 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread