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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 F3215C433ED for ; Thu, 8 Apr 2021 01:33:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 72317601FC for ; Thu, 8 Apr 2021 01:33:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72317601FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc: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=9Ij9hWw7wXJNMZcF1p0/eUAlx+m3xpVqknrwk5MbzFA=; b=ltgFAvq20p4HzzPHatEO8yNVA 8fCTjAlimRfUpsIo6tG/NMFlI8fMvCGduQrzLP6WCBXlNqIrTI9b6BrV2G31UNIkYkTmMOQfNBcdJ EWSKeJ2SfHAet1Sf/pN+fG9xf92bKlKHv7oGYUOzQilSeG88c2jrJTzoLULVJKlMzVa2CpmAusXYG c9qXM9AlvueWQhpa8nOftY22Wo7l1NNH/Q7869yqyeiyqMCGDxbVda3LAl3q09VMKmq2jeUifprBm w7QxDx/YGqtMV/EcxWirIeD/RdvnTNhoSL2iE7g0nFQV467YTJ8QG90sQ2fS71j/HAwgqQnl+yX2A AZbotPYKA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUJWE-006Ujd-5f; Thu, 08 Apr 2021 01:31:38 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUJW7-006Uj8-NH for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 01:31:33 +0000 Received: by mail-lj1-x230.google.com with SMTP id f16so298360ljm.1 for ; Wed, 07 Apr 2021 18:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=edRgAxIKjOmclkm2qDTGHCI2nkLMmqDjcGM1o7218gw=; b=DrHE0um2/rQ+Ty+vJ+/CJYft00/+kP89MW6pro80rYco4fuf5quva2QW7OnYzJGWlO GZzO3eYjFF9KT7U5IvxbgWKx+iDMOG5oD2aGs64Q0eUuAeA/86XoXvAqNTz0uoFjzv2j xpwftMD79kKgrJhoUrmSzk8Uk+SzFQc1WenyviKKT/tu4S4PxObW7Qua9fmU3gehfQ1g QF8q3YwCag4njr7mD7gR5e3khs7UNRbS+QzejFB419WIb+NmOIjCOs1yYkURsv6MBxDA X9KQTXnUJECjMtYkewb37rdvXY/JSSBUEYZnPhM8HYtFPT+BVOa9qIJ7OskSwbqhJWYX tRlg== 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=edRgAxIKjOmclkm2qDTGHCI2nkLMmqDjcGM1o7218gw=; b=hfJuAzFG/eAdjOnGvzQ39iVOLcwcAET7OT0/Abynb4/w6os+vY74ZZq4V9ddHWT8fe SLWmLU6MUTvL01E6XHlH+v/S5QIc/ctR2pWUUMGzVIoaVWcPF9ganhpEHuYpt0qLTe2I kBaN00zTAkwqn24SSvF7CFgHUz63fJk0+cSVm7QvM9MuIy8hJgtvUFW4WdFZv8AGfjwX cpV4sYT9pxOgfMpSuAMX4VsKGuduqRIRdMO+yFraJ4ZTERklvCMIAWVXZT3I+L/+BMhd GHncQVO5y2W/0IY+PPH54iBK3xi1Ee+oymdSeH2ExY0qZl+P7/vE2fTAsbLb1FM6Xupm BXHA== X-Gm-Message-State: AOAM531YjrlSEich4gypyDedYgEmy3oV7iMITNylEFnv48g4r9xdP/Hw EbzzzPZt+PDukH6EE/AoiRlj9nZNt5NxmHLrA7c9ZuzTwqttHg== X-Google-Smtp-Source: ABdhPJwxD1yHMgPtNCZjxr0cFtFDSV0fh0l4E7aXhe6A+c42PqfhFEEhkcrS1PiogXxlafcEYKoqDvFLfBkie+nRT9Y= X-Received: by 2002:a2e:8706:: with SMTP id m6mr3888154lji.434.1617845489360; Wed, 07 Apr 2021 18:31:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: richard clark Date: Thu, 8 Apr 2021 09:31:19 +0800 Message-ID: Subject: Re: Question: multiple SMMUv3 devices probe To: linux-arm-kernel@lists.infradead.org Cc: will@kernel.org, jean-philippe@linaro.org, mark.rutland@arm.com, yuzenghui@huawei.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_023132_031440_86F1CBE3 X-CRM114-Status: GOOD ( 12.47 ) 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 > Hi guys, > There're 3 SMMUv3 devices in my arm64 box. I am confused by the below > probe process: > > arm_smmu_device_probe(...) --> arm_smmu_set_bus_ops(&arm_smmu_ops): > if (platform_bus_type.iommu_ops != ops) { > err = bus_set_iommu(&platform_bus_type, ops); > if (err) > } > > so for the 1st smmu device on the platform_bus, the > arm_smmu_device_probe(...) will set the platform_bus_type.iommu_bus = > arm_smmu_ops, so for the arm_smmu_device_probe(...) when probing the > 2nd smmu device, the bus_set_iommu() will have no chance be called > since the platform_bus_type.iommu_bus == arm_smmu_ops is true, my > question is how the followed bus_set_iommu(...) being called? > > Thanks, > RC For this question, any comments about that? Will, the owner of the device driver, do you have some any? How about others too? Thanks, RC _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel