From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64A37C10F13 for ; Mon, 8 Apr 2019 21:39:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3119F21473 for ; Mon, 8 Apr 2019 21:39:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JkGnMhm6"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FCwwjEBs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3119F21473 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ccgIZvsQHMZ4zu70nTrv+y973g6UEJrIMAHRny3SSNI=; b=JkGnMhm6VNEjsv Y3LZPxw5b2dgUtu1WkmC5RPGeERPczq3lGhdVhqhTs/hzeWZCAyRM6JWBTTQ/FdTK+YimsuZrxSYy j4+95WvlRI+prU1DPUdyqHLpE8iipVO5Iwx2AQuJZ32hOWBT4o6u4BnPsbWBBKOhTfT97yMgz59Sp f1qICLAkB8FbPi8drYuCc9nBylYV1GCbbX5LxGCkh+BBmlQlmhvR9TKCVxfAFsczjE2W/7W8QE7Gc pR8YMFbXYXayH5gnO877c4/FrjV20AdqqW9gANRm007z7DGhrYchT/eamy7wAPOt2qPqwMSeWgv/B RK0C5mcBmhxkAPTrx87Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDbz0-0004BH-Sb; Mon, 08 Apr 2019 21:39:14 +0000 Received: from mail-io1-xd41.google.com ([2607:f8b0:4864:20::d41]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDbyy-00047q-2E for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2019 21:39:13 +0000 Received: by mail-io1-xd41.google.com with SMTP id u12so12377511iop.11 for ; Mon, 08 Apr 2019 14:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Kfbop1Rhh0LwC0/fiY9eje6v/iTvzNLN1C0UmH+zUl8=; b=FCwwjEBsmKid8gqcGPRG6SR31tD2DMQkJU9c200IuFCOUhSIOXKSxal7cVysY63Syc EMdKvDpwMywC+Yfy0r2idxul0NqmjRE6WJEFzdUxR5UzRKoHEw2Xyy9ZxDjPH8UbOEM+ otkSeLpcjWBgFpEW/V/0rTc3Xd2umXYjSQKPLH29HnvTZn+FjGy3y1cNjJz/GC7iIuvX bMrSeZ9Vz9kbrNmMI2Db4kM6s55kNVtrEbVzR8iItGDVCFZpbJp8TfuKzBhL++7igvJ+ lLuSYlTXdQsXCYw3J15Jk2xAkL3ozLj2RcAaNnzQD7Ac0TQPJh6CQxOLb6c7X0XH/gk/ R91A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Kfbop1Rhh0LwC0/fiY9eje6v/iTvzNLN1C0UmH+zUl8=; b=dn/eLLBKiJcb52cr4U/wOuLHRz3RAtyqydIIPphZBYn6izhj/cVLLPX3C+WkPVP0zU Xw7YOBYhDlvaMmD6eL4J6UnOahh5v1Fr/lUveS36zF/tAc3wgd8GF7aLaGBrEk3Hy5zu HnbRvBkkds1I6htk4bQ0f6T4gAOHySe15a9AVnEUNSbDb8rsrejrdFnnWUqGrOXsMSBW OFCUmpVUQkn/OTqxBeaKb9CDRJKuPv4X1kUVgsmU8s937abeDpzvqx2+MwNi6bCEm1mN RLGrbuIiJg0jocDKyjUjxBuTvN/iAM2n+LnQiDTwK1cpQansN25X4h+BpNslNjQT3xcA znZw== X-Gm-Message-State: APjAAAUWPe0wDkgAH4BOx4/skfB0++TgMABY3+75rjvSdbOA+ersFu+e aho4K0+kgCQNWH8YkPHJ24uGom7Yti3iHJc5+CdNRA== X-Google-Smtp-Source: APXvYqxJy8tMfAe98EFeJwN4HlMEXAZ/pGNGpN1EFtDyq7rO1GNg1qIeP17ul/BHPaN1yL9EfQLdxhQfP2AXqNJPH4M= X-Received: by 2002:a6b:3b07:: with SMTP id i7mr19936460ioa.230.1554759550537; Mon, 08 Apr 2019 14:39:10 -0700 (PDT) MIME-Version: 1.0 References: <20190329182418.29592-1-ard.biesheuvel@linaro.org> <86y34w668n.wl-marc.zyngier@arm.com> <86tvfj5t2g.wl-marc.zyngier@arm.com> <1a77f587-3538-441f-c6c1-8e56fb65d855@arm.com> In-Reply-To: <1a77f587-3538-441f-c6c1-8e56fb65d855@arm.com> From: Ard Biesheuvel Date: Mon, 8 Apr 2019 23:38:59 +0200 Message-ID: Subject: Re: [PATCH] efi/arm: enable CP15 DMB instructions before cleaning the cache To: Vladimir Murzin X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190408_143912_111450_DCAE9A66 X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-efi , Marc Zyngier , Russell King , Leif Lindholm , Steve McIntyre , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 8 Apr 2019 at 11:20, Vladimir Murzin wrote: > > On 4/7/19 7:19 PM, Ard Biesheuvel wrote: > > Actually, the CP15 ISB is not usable here, and using the v7 ISB breaks > > v6. Would reading back SCTLR suffice? > > > I think instr_sync macro should do the trick. > This code should run on v7 when compiled for v6, and instr_sync uses the CP15 ISB in that case, which we cannot use since that is what we are enabling in the first place. I'll go with Marc's suggestion, which should work in all cases (although it may require a .arch directive to ensure the isb is accepted) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel