Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1928812imw; Tue, 5 Jul 2022 18:55:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sSvG1J0ljzoExjaMZYd4EbSXALr0zz6ixZ7T2cKGqk7QGCQKPdHQceAPcltWp0EWBX6e77 X-Received: by 2002:aa7:cd17:0:b0:435:bd7e:2efb with SMTP id b23-20020aa7cd17000000b00435bd7e2efbmr52228147edw.180.1657072522090; Tue, 05 Jul 2022 18:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657072522; cv=none; d=google.com; s=arc-20160816; b=jAecfbERAkH5xBCjYdFNwGP5MphgdXuptUCP3SCJ0HYMTsFGGxAKOjeP3CRGb0DUWU vOAQmJZFlOmn09LnZW6B+EznAmo6DECEjd+5SCOC6PHN0Y/8jpiiM8HpmKgMXuLlV+P5 xkkAgZavPRRWChg4G5NIH35s2XDO2TgbmqRM+uPv2IveTzYixcuJpx/98i8XmrlBSEwx fAZeZOXc6RrM1ZFUvAKD/10WKwnFNLo3/Ld2Rb4sdsZB1HaaDRV+ydf2N+YnR6+8HIru usGm86SZnBg9j+QECL+hPWBcmnaDOXg25VWf4AH6bOq3D5TyFkJRhNnpmF99rmmeMECI g0Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=5iSTvORRcRkeLKWt6g8blHMvzLSMghB3wIHELpFfmjE=; b=yZ/KtzCsZ+qprRMB/bb8VOAn/u2NowJJfA4t4kjd5+/ITfIkOLqVd3GAgL0e/uhPho 6oBBvyQrneZSHW/4T+4wd0xcMmLst3AmspA4DK0x0j8Gnd7Sea3SV4u+dvc8axHZnbfD 3RISzLqxXaSFOG7qKIffiUqD6r++1t58ju4AdlbnYis8Kwk8fEKziZVMHIIFQL+ijgpQ FeeUPaVqSktk3k4Iei4ZeU5mKW5RUiqQuJi2Ig9imdvKHgmJY9OOPb0vRwXdCxr47/L4 qxXBgvc1dWOU4PjKAZ+FzKRzOSC7zlHgQbAssnZVGvOivBQehydevt/CCc1/8LCDpbUb PIKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DqdcywRB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t35-20020a056402242300b00437e003f020si18675110eda.335.2022.07.05.18.54.57; Tue, 05 Jul 2022 18:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DqdcywRB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbiGFBxr (ORCPT + 99 others); Tue, 5 Jul 2022 21:53:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiGFBxr (ORCPT ); Tue, 5 Jul 2022 21:53:47 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 603D1F5A7; Tue, 5 Jul 2022 18:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657072426; x=1688608426; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=cllxWuAAFHFoBQ2YHklsc1bQWN4Ue9DGBlCsCLtMYVY=; b=DqdcywRBAMvxMouIMH4yS/vJ25gUizGRlA5XXGarFK3DH4GuOsrQxZHp hNsyKv3yfoWDrKnsj0FuaTHQ/2vfaXtAZ1ibldoPtdOxc90Qi32nBIQWh qJiOlpBXYwgXHk8Iy1yYCblScjSQjlI70GS+vhWLMYcsWGZiU9hb/PC/8 LiKgHK1H1ODtk0xpx29bO4jR60MCFSRPV6a+hOpod/dx58wa4MSxLFy8Z WRItjMv/vjhjwKNLzQAfKNGh7layD4dO6IRHeLJXpKhxbkzC1sHDPMxwT wGzjAWtEXnZhHXjsFa6lorc7iDr9UZmu17cBujz7aqKKjhHMtxjXiAZO9 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="347598260" X-IronPort-AV: E=Sophos;i="5.92,248,1650956400"; d="scan'208";a="347598260" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 18:53:45 -0700 X-IronPort-AV: E=Sophos;i="5.92,248,1650956400"; d="scan'208";a="650433945" Received: from zhuoliu-mobl1.ccr.corp.intel.com (HELO [10.249.174.206]) ([10.249.174.206]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 18:53:42 -0700 Message-ID: <1fab4c8a-7bc5-9a50-d48a-0dc590cac7a6@linux.intel.com> Date: Wed, 6 Jul 2022 09:53:40 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: baolu.lu@linux.intel.com, will@kernel.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, suravee.suthikulpanit@amd.com, vasant.hegde@amd.com, mjrosato@linux.ibm.com, gerald.schaefer@linux.ibm.com, schnelle@linux.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 03/15] iommu: Always register bus notifiers Content-Language: en-US To: Robin Murphy , joro@8bytes.org References: <8c380309f264cd0dfc73ba2ec060adc9515af2f2.1657034828.git.robin.murphy@arm.com> From: Baolu Lu In-Reply-To: <8c380309f264cd0dfc73ba2ec060adc9515af2f2.1657034828.git.robin.murphy@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/7/6 01:08, Robin Murphy wrote: > /* > * Use a function instead of an array here because the domain-type is a > * bit-field, so an array would waste memory. > @@ -152,6 +172,10 @@ static int __init iommu_subsys_init(void) > (iommu_cmd_line & IOMMU_CMD_LINE_STRICT) ? > "(set via kernel command line)" : ""); > > + /* If the system is so broken that this fails, it will WARN anyway */ Can you please elaborate a bit on this? iommu_bus_init() still return errors. > + for (int i = 0; i < ARRAY_SIZE(iommu_buses); i++) > + iommu_bus_init(iommu_buses[i]); > + > return 0; Best regards, baolu