Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp951894rdb; Sun, 18 Feb 2024 21:45:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsxr4Bb367o/1ncmE9mU/zA6I6O+Jr+jhjRqWFgTRiDaZHfIqJiG2QQZzxqYGL40ji5Vx2tq5ng3hLXn9wQtZBCBqQtjS4jjOWB8pnMw== X-Google-Smtp-Source: AGHT+IHxPeYIN0ajMWQoR3bdLRbgDGnWP33MlE6c/nS+/SD1KVHDYw27JkMW8D1vzYU76ATfPRqN X-Received: by 2002:a17:902:e809:b0:1db:de93:464e with SMTP id u9-20020a170902e80900b001dbde93464emr5652662plg.10.1708321533091; Sun, 18 Feb 2024 21:45:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708321533; cv=pass; d=google.com; s=arc-20160816; b=wRrWBVh8Eqh9AthZG6MGB2MKyn7KBZje1yNxN9ZBw0e8X0xUXBJtA85FBk5Mki/oBi qSpOw0hHG2s90bSNHLXbD8xbRUkbhQQa72yPiT3tgyALKRwvs+A+9FPa2ryfLRLwYAym +WPEs7gO+6QtIIbSz58fGsptfLXh8r7cUoujTpmpD7tUT6eHyg/3k9D86sfqkJS5DzQU qOGgtbMDjJL5zXwT191VCAO4cugLBKZIoG/zfiNx59Onp5jWiwcu2yFbQiA8mZnCksyS mbbrAc71ZVytwoCD8SRqTTUemIPiK2HUeHai8szojotajGFUjveW+FX6+Bng2MjxCJRm HEdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=OJ/7gh6BxJ5xH1hakE6NVsUnvxSnxDqUZPLl7n5aWsM=; fh=UTOQxF4mSbMtTpTn4ER25j87DzGEhdvBkjM4ywyF6AI=; b=SIru2xAV2XpEn53i0ipB8qFc3PpUc02ExWzeZHE4wjl0dOlh06MTDbjBjxTk98rGLF ctkJtUQWVwpp/J9A2j1/gQ2YCy1uXTt/XZolpDSHHEFQwkiXApCTPX9e7Js34tv+xoqe a+h9H3pBc3+nMAkUrEdY5jWjoxYqLOygSBS2mCcikNyG2kLHCY6uPPrVCbpZ0meUBMiw WiMCdTKCjWPdoTWxrBSW9qaB8L2FBVX/pnXgx99iGmvt02v6Xp5i7MyIKLXhfX+y2vzN WwD1l0klcvt21DluV1gJbbiWrUG0nK2cCeLOInDVkXj9fFYx8OvkXyAUbtAAYz2iFqlM Pt7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=2urc97Dx; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-70742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z16-20020a170902d55000b001dbe6738c6fsi1886637plf.386.2024.02.18.21.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 21:45:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=2urc97Dx; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-70742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2B2DEB20953 for ; Mon, 19 Feb 2024 05:45:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A24A1F95D; Mon, 19 Feb 2024 05:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="2urc97Dx" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15B441E514 for ; Mon, 19 Feb 2024 05:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708321501; cv=none; b=nSQPwYUdkIiAXSZ+vMYiwl0NXQ2mPzqDYk7DTObchn2bVJm2YeOdp3FpLB3+SzuvvdU1Bt38ynQXW6/sdpNurBQJ214AK6OH7wxTDWxTnuRcoVw8Lk7+ApgImLRxSOmSxb5Dknm+meloW0AElnxisCXovzP/q60IpvXSOF2oT2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708321501; c=relaxed/simple; bh=OJ/7gh6BxJ5xH1hakE6NVsUnvxSnxDqUZPLl7n5aWsM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=j/+aLjaAbKhlzeDu2VqaCtKI3Aal0np37jAzaAv/c5Hg7bgNTqcv3lr4DD3sT72LbTd2rtNSFW4qE9E//LislG8kByGMUQERAjv8Wyr3bpkvKlY0jM0zGHQORh6kxB/fDEtx0pjX9igx3QZb0QnmE78QWlz7sCgWnb8D9KErdhQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=2urc97Dx; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4126149228bso29445e9.0 for ; Sun, 18 Feb 2024 21:44:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708321498; x=1708926298; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OJ/7gh6BxJ5xH1hakE6NVsUnvxSnxDqUZPLl7n5aWsM=; b=2urc97DxRKyv/cM1ZheAF3u4DLzu5LhQHVW7nY9o06yQ90eajo1PpqaI2m7Fyj46GC LZmOm5K0sqndbjBM83wIZih5wFbxUlZk2cvGx8xR+1EBLoxSpcVd+4xNwDrPUvBcnAOy LMZWkmqEhWF0Eqgn5mrXj9mSqMFe7uHN5xBijjLnDvkRH88SgYMUnhSHSroFwJlAIWp9 qwZdlysFI9KiJUqy/OI/5GaMRf0YsVfwQVczv0aVvR6b8ok5wPACVcQLKbsJtoGUnnYS TgD+Fwd2mAP0wqWEG6WIIqj5TwD6egX422hCyNjjY3GlQxGm32Qj9PRn1QbpAbRxKlqm Kyqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708321498; x=1708926298; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OJ/7gh6BxJ5xH1hakE6NVsUnvxSnxDqUZPLl7n5aWsM=; b=LyFXsrs5fjeW/GUJK/jqK+c0LDvXc29ogbRwDRqpqJbfG7wKHmDoZO5Dqyr8xKNGLK Apu3iiwF4erLAGnuJGP0Vc0MYhtMN37v5BoV2Rzm7BlJTSGUzEiCb3lqOM/07QshUDqX tGo2oWvEqVRdqnmLRqTjEqh/ewtmFkoiuoCN8pbXLw0AjYMXxG/fN+kMjauvyjTUze6x u7WBTLIPMxdmrreTIiZAOtqjQYv2sC1VOdZ3SfqNor5NPA0fYSRX57yPRBJtAcAOd7Pn hahCE26X2Hw5pQaSf2HxTX1GEi07pBtd83ef3R33imqUR6s5IxW0b6NFgrgASon3jsAR SnxQ== X-Forwarded-Encrypted: i=1; AJvYcCWIRq+XlGX2PZOzPtPPQ8hwglltFdSgZLV/ndBgxCR5T5b6XdVe2uIwBhz1cjXl9pNjL0T2/PLNrTDa8fthrdaQ2YVwlFBJsT+5a1Cn X-Gm-Message-State: AOJu0YwwJIivs+2sp+i+2OrTzubsQQ1HaQsI2IFnad1oH6I/ubfSbNO6 s/fcIukzEZPuBHPSOZq3GuMt4mkoJjbrIdu2WtHfqobxk3BzGUbeCT8HAuWjUwDFDdlzISguFOF y1qDFgki97zGd5j6ujHUQgl6rzYLVbjkFt7LQ X-Received: by 2002:a05:600c:6029:b0:412:60b0:25c8 with SMTP id az41-20020a05600c602900b0041260b025c8mr157816wmb.0.1708321498239; Sun, 18 Feb 2024 21:44:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240218050224.33426-1-niliqiang.io@gmail.com> In-Reply-To: <20240218050224.33426-1-niliqiang.io@gmail.com> From: Daniel Mentz Date: Sun, 18 Feb 2024 21:44:47 -0800 Message-ID: Subject: Re: [PATCH] drivers/iommu: Ensure that the queue base address is successfully written during SMMU initialization. To: "ni.liqiang" Cc: Will Deacon , Robin Murphy , Joerg Roedel , "jin . qi" , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Feb 17, 2024 at 9:02=E2=80=AFPM ni.liqiang = wrote: > If there are no memory barriers, how can we ensure this order? The SMMU registers are accessed using Device-nGnRE attributes. It is my understanding that, for Device-nGnRE, the Arm architecture requires that writes to the same peripheral arrive at the endpoint in program order.