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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E8C70C5478C for ; Fri, 23 Feb 2024 16:21:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WWTZuWQYuePiQVXqNNCVwi1U8rnpr9mhf4pMIPK6SrY=; b=TgOwyotvHnYlfC 7AmiHCc9K3m03S3DwYYqQMfjpJKvNtXyEnTp1SDJyi/a5arSVmPsb2ixsrXLp1p4qAe7pEFbMIOnX NhdmGGZ4Gis8IN7eOLTulQR3D7Minch/RefuGxKTtaSavDAAFS+ERu/9Ub/YKrg8fbpkfOnyn0Nzg qZoA2kbKBpjDFRC5E/kEvs38YchVBfWdvsBRmHnqb9xpE5nI49se48yRBwl7pYCYynGAjzfBg8cpI fWl7HELLhe92mkK0tlh1acWp+5dfPUBCstcjgHIvHOaRnKBZvofv58GJzeRBzvHxG0a1QaJi8EsKY NC01Pz19tEC1M/DdNF9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdYI5-0000000ACwb-01OR; Fri, 23 Feb 2024 16:20:49 +0000 Received: from m16.mail.126.com ([220.197.31.8]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdYHu-0000000ACsG-0uvf for linux-arm-kernel@lists.infradead.org; Fri, 23 Feb 2024 16:20:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=L8PXC ozSmgxbC1C2giikVCZGfkKTi2J80S0eCgayR/Q=; b=EThzj3iTuaiUOtJB7kd/o i9Qjfrapoy8rf5eFvnVaCWQE6J4y9L3wRh8iFhlgawV6uXTBYkCoX+ihn4LiY1NG KcVzhxlrWW0M8EB/8IFzvNsjJZ/ohFv22+9KweLj37GyAapmXmHCn1D2Vm9SPwbR K72ZSwkEbkwNEHBa9abQwk= Received: from nilq-virtual-machine.localdomain (unknown [60.24.208.202]) by gzga-smtp-mta-g1-0 (Coremail) with SMTP id _____wC3_ce6xdhlK7OlAw--.4841S2; Sat, 24 Feb 2024 00:20:12 +0800 (CST) From: "ni.liqiang" To: will@kernel.org, danielmentz@google.com Cc: iommu@lists.linux.dev, jin.qi@zte.com.cn, joro@8bytes.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ni.liqiang@zte.com.cn, niliqiang.io@gmail.com, robin.murphy@arm.com Subject: Re: [PATCH] drivers/iommu: Ensure that the queue base address is successfully written during SMMU initialization. Date: Sat, 24 Feb 2024 00:20:10 +0800 Message-Id: <20240223162010.6884-1-ni_liqiang@126.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240221160849.GB7362@willie-the-truck> References: <20240221160849.GB7362@willie-the-truck> MIME-Version: 1.0 X-CM-TRANSID: _____wC3_ce6xdhlK7OlAw--.4841S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKw1UWryruw18XryDGw1xZrb_yoWfWwcE9F W7Gan7Jw4UXF4vkanI9Fs0vrs5A3y8ZFy8Ww4fKrsrKryfXFy0gry8Xry3t3W5Jay3XrZF 9a9rZ3WIy3ya9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbJ3vUUUUUU== X-Originating-IP: [60.24.208.202] X-CM-SenderInfo: xqlbzxxtld0wa6rslhhfrp/1tbirxqJ5WVLZEeq5gADsb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240223_082038_798603_06597584 X-CRM114-Status: GOOD ( 10.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > (Disclaimer: I don't know what a CCG port is) CCG(CXL Gateway) is a part of the CMN700 Coherent Mesh Network. It plays a crucial role in facilitating cross-die access in a multi-chip system. > Hmmm. The part that doesn't make sense to me here is that migrating between > CPUs implies context-switching, and we have a DSB on that path in > __switch_to(). So why would adding barriers to the driver help? Maybe it > just changes the timing? This is very likely. Through our experiments, adding a delay before CMDQEN does not reproduce the failure of writing to the CMDQ base register. > I'm not sure what you're proposing, but I don't think Linux should be > changed to accomodate this. I am very grateful for the responses from both of you experts. We will continue to check the current hardware configuration of the system and attempt to fix this issue. Once again, I express my thanks. Thank you. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel