Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5836704ybv; Wed, 12 Feb 2020 01:00:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxMIjPqtaKx1pTm4b7we7tu9X7SE6jVjHTsjSaAI1p2HY58jLN2XAgV75t1kDoYxR811vvt X-Received: by 2002:a9d:7410:: with SMTP id n16mr8719595otk.23.1581497998845; Wed, 12 Feb 2020 00:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581497998; cv=none; d=google.com; s=arc-20160816; b=Y+WoA0SJjufgfeEaRsGuMJlnBt11/LKOUkChUZ2xO830eHhIxh2VPg4/nWWWZO69Gf cMJQMGb9s/gUJVxdsBIb0LiKWOBnPrhUIxK0H+5R8gFERayZ0SBDcTsIV3WfBlETe11C ZBcNd7uKypqVjR1ELaHH1bzc4eGPYS/A6SX0TNLeboeUAefyvDU+5A+p9FM2HFVv5dUt ljUcFdhoF6FiGVob2czDBWxeBxDkUOVGLmtdaoCwFsXLR8BfeH9fqOkCy7uJhXzubuiM /qSe75OmlPSKoOI8Qghu80+8ZRATrzbXClQRCUVmbZOWFvMMmpIOxOqvtYbVjk7RlrTO +tLQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QTqRW37ZLR6od2QUdreH7KhM1duNKLl7Hn5wfFcZ2P4=; b=CWGdOv1bC/ExvlzjLDwafbYCYIHByHtXUFNS6PW0LJvyMdjwQADHSOzsoqcuZERZuw Lo4LJuBcEf6fiz8LU7ogDYvpHkvV2DYcUTOXgt9VGsZAoG6nwguoXUYs6aPac7OZEC75 BfeEE3MAuG/7nDIx4mRNokQj/n2Xr9OjY83jrQlnF4TWgd/OE2ltjD5sPV2NLE2UqyU/ IGvO/wy07WzeKfXuQELZybgp39SZRsR/AYZ6PLK/oZCeqFjzJv9z7E4b/J714cNlbpOg 92mcXKEH1KXLNLaktnAiHbbjsmI/84QEk2xxJoNEIYTLtj80hGRebi0IsfiokAkUtfl1 KxXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=qfGV6Kya; 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 i78si3169319oib.1.2020.02.12.00.59.47; Wed, 12 Feb 2020 00:59:58 -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=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=qfGV6Kya; 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 S1728775AbgBLI6X (ORCPT + 99 others); Wed, 12 Feb 2020 03:58:23 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37864 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728426AbgBLI6W (ORCPT ); Wed, 12 Feb 2020 03:58:22 -0500 Received: by mail-wm1-f68.google.com with SMTP id a6so1225529wme.2 for ; Wed, 12 Feb 2020 00:58:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QTqRW37ZLR6od2QUdreH7KhM1duNKLl7Hn5wfFcZ2P4=; b=qfGV6KyaP47LsMtH+a0NetLwNali11oFrqd5qEgy/3M8UgS/lqFbSNj8k4C68Jas1X Ffwgh1W37SvTjz61P9FUjwYPIbmx8tVq7PCmL+1s3y/TN4imhaonpHZi/dOHegkpGLSQ GGo3N63wdIZ1zBPSykZbivrgHsPNwtY2LXZT0CAuD8jDZVkfmgLblulJ4nfWTryZWKFo I/LJqO/TAeTKnYFwDUZkYXWqOtSBBedSgP90d8GoGcxrZtkluQETfGTcLb4FwVu1cPa+ EWKnny8u56W70atIeMGx/NSEBGa8z9+p4DVpBHPVepJW9FhxFDezslMUYZzUH0dt6pQA bxFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=QTqRW37ZLR6od2QUdreH7KhM1duNKLl7Hn5wfFcZ2P4=; b=tJ/OTdp4wK3wGwvHzgVwvU6oCqjcMrN3aMSoooGVC0MMKHfpgK6qASoKJCyZ4MkuNE GFRYCjLyyk02M4XMBkj2d0zKhFwKPNJUix4Dd1X+s1YHK30ZPktQWKO7foh91IMkV64I +D2bMGmFd9yJhQQ80SbPxwxuCbZKyLH8xezlPS9EDDJsdD8MTqU2N95ANKGsE6y+YKYP pc3XMSQnpAZ2S2kDsQ/JJblR83AB7gOmYyYj2RuhEJRN/345GfKznllPNu47Yfofs03h 8otqVZFTsAZXlR/FVPlaVb8eo2kH4UOpPnGWCA1a3Ddp21iCjNL5qCJp0BllfmTux+Su Y+iQ== X-Gm-Message-State: APjAAAXqfZjjrFWt234/2ckIIShaNtSIYpceSwDjpzgwwxYENZEXXTwP 0X0SLlDSJ3qzkyipo0TfhODmDXd0vMFQ5Q== X-Received: by 2002:a1c:ba83:: with SMTP id k125mr11511803wmf.106.1581497899718; Wed, 12 Feb 2020 00:58:19 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id i2sm7469722wmb.28.2020.02.12.00.58.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Feb 2020 00:58:19 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, arnd@arndb.de Cc: Stefan Asserhall Subject: [PATCH 06/10] microblaze: Add sync to tlb operations Date: Wed, 12 Feb 2020 09:58:03 +0100 Message-Id: X-Mailer: git-send-email 2.25.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Asserhall Do the real sync by using mbar instruction. Signed-off-by: Stefan Asserhall Signed-off-by: Michal Simek --- arch/microblaze/kernel/misc.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/kernel/misc.S b/arch/microblaze/kernel/misc.S index 6759af688451..1228a09d8109 100644 --- a/arch/microblaze/kernel/misc.S +++ b/arch/microblaze/kernel/misc.S @@ -39,7 +39,7 @@ _tlbia_1: rsubi r11, r12, MICROBLAZE_TLB_SIZE - 1 bneid r11, _tlbia_1 /* loop for all entries */ addik r12, r12, 1 - /* sync */ + mbar 1 /* sync */ rtsd r15, 8 nop .size _tlbia, . - _tlbia @@ -58,6 +58,7 @@ _tlbie: blti r12, _tlbie_1 /* Check if found */ mts rtlbhi, r0 /* flush: ensure V is clear */ nop + mbar 1 /* sync */ _tlbie_1: rtsd r15, 8 nop -- 2.25.0