Received: by 10.223.164.202 with SMTP id h10csp98771wrb; Tue, 14 Nov 2017 11:47:51 -0800 (PST) X-Google-Smtp-Source: AGs4zMaHSnzP1f9mOSK0ztEzu+OSgNRojI+d7+pF0sx5Gqmdtpyp1iwdy6QPkoV4tq+KLtKdCo5v X-Received: by 10.84.234.198 with SMTP id i6mr13598825plt.260.1510688871067; Tue, 14 Nov 2017 11:47:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510688871; cv=none; d=google.com; s=arc-20160816; b=cKaXe+dsZ+2eQnAP3RIGZnguAH2lcv2AMjzUAvRq//OPj4QzBATcoohwVPiOBplYZO k3+kiUhtKfW49OAZd8rkGWvVdBgRffBefx+selfiH8UZ+H2ZuFGfB99kGwQ5PA3fcssG wgq+9C6KOXNmm7yOcbiBP1C3qL/sz5kEcJZRDbz6HcXDYcuKgniPcuu8osRtcKxCmz2g 11upoPnmM+PkFLooYjX6d89Wubk+ZV2mwwN73P6RMbUj7o8HfQs/LgoWXzUELZ814bAZ RctUH4/aPnTmrwh7GOXjgWm3YL7EE+JV/VxrwphTi6/BQI8zg1K/TXdgEM+BWFq7PP2M XjiQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=3+PS+/eoo08FvlHRC391/HaYjKXQgEACRo9vixVZ4fE=; b=Yhh8PJWvyVJG3SuQFa2JFVQWZ2f4OzZMMavLK1Uq2MT4KUel2wiktSrRh0mjJBvR+Q ftyFHuwazkR085DFEo/mVwzmPOYSPEOX1UMKya1jSFOdkki3y2JrYsN+v/ijOsxHPE9f dJnc2uVto6W0gjjsbPt0DoliwsifltdWmxqgaKSYtl39MdEVVkFaLhT8PWW6eIz/tk1c yZ0A39uka1Qs2YCReoSK2cOyk+9HBjMUmaOeQak7hcHgMnCUchclfyxxdcYBqjveU/3j 8MMDSdRd9NInkIOCmw+sviI2drPrIDvPPIr2gaXsqtmtgwUcAFuf7LbPj9gVCjCcA6UN Kugw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g185si9129317pgc.672.2017.11.14.11.47.39; Tue, 14 Nov 2017 11:47:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755230AbdKNToo (ORCPT + 88 others); Tue, 14 Nov 2017 14:44:44 -0500 Received: from muru.com ([72.249.23.125]:48588 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbdKNToi (ORCPT ); Tue, 14 Nov 2017 14:44:38 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 065A18064; Tue, 14 Nov 2017 19:46:24 +0000 (UTC) Date: Tue, 14 Nov 2017 11:44:32 -0800 From: Tony Lindgren To: Tero Kristo Cc: Joonsoo Kim , Pavel Machek , pali.rohar@gmail.com, sre@kernel.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, "Aneesh Kumar K.V" , Vlastimil Babka , Andrew Morton , Stephen Rothwell , Russell King Subject: Re: n900 in next-20170901 Message-ID: <20171114194432.GB28152@atomide.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5c885f60-bc8c-5f8e-dc81-57eacc57abc8@ti.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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 :) Regards, Tony From 1584071969292091565@xxx Tue Nov 14 19:45:52 +0000 2017 X-GM-THRID: 1577552291468010502 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread