Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp338925rwb; Fri, 2 Sep 2022 15:17:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR5LKdPGTCmyARhNeUr4k0WpMi2GZhglnolTwyOw8Z7fFplrvPWiADL6okfLDSWJdbH26bBO X-Received: by 2002:a17:90b:4acd:b0:1f4:cf0c:7a68 with SMTP id mh13-20020a17090b4acd00b001f4cf0c7a68mr6953878pjb.178.1662157033295; Fri, 02 Sep 2022 15:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662157033; cv=none; d=google.com; s=arc-20160816; b=yXAUm1zUAmt4iND/hsSjKzWkeK6Z4WUSflfdbaqT9oXssT+Cnl8hACe8JXRZtSZ/70 9/GPquwtrlhQZUECQfcOBgfEP0BwO/6Mw3Q5UKl4XNVr8zF/SsxUJ3fh618xQBjp6sXy H2ReD4pjaRZzCTSGD3mISG8BrNsum8wwLFNGOmREvpa7w67iAB9j4/N5jrVWzgZ8Ejr2 HiCF9PLUdIWNTZIZUe6JpKaimJonE1yOiLQgoCQOl4yyVQmyEUNXoJVPUGG3kcx/Oikk uiL3vBmPFgB2V7qMQNkZefs7IIzj1dji/UD8MD5D7drhBoChXiGAhdUu3pYOr1uugiid ZPDA== 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 :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=Du4EboxIuNrkWsTrUXb2UIbbsv61yWb6aY5D8GRpJMg=; b=CCGBj6gfjpImIQu2PSuDHJwsrVNV+OUUbydpPszg+k+Z1zweoFDQrzkg8TXmmClDQh JJhHLz3TfKyKOir/6GwpT5H6E63vx9/T3JWRdw8cPUX9aEm85hjmAHH8QiUvGFThzpgj S1uYQw8V9vIK5Z0uYN5hfdYJhXCfnjmpYc3pVYwk/6IydITaptdpYfQA0HprOCjOvz3I 3MlSF5gsr15RECSdy29hLW6rpLiABMzOcdwY4W2C7eHw67+RUdau2TpINc7O4MeKtqWv qOVk5pDW7NP7+1T3pjzw9lbJxLaQUYQgyWdYbz0DzV7q5Bedh+R5+iqHtt8mo5Daguaf 1yyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=nVzMrBhm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a62790a000000b005365765145fsi3333035pfc.70.2022.09.02.15.17.01; Fri, 02 Sep 2022 15:17:13 -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=@infradead.org header.s=bombadil.20210309 header.b=nVzMrBhm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230130AbiIBWKX (ORCPT + 99 others); Fri, 2 Sep 2022 18:10:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbiIBWKV (ORCPT ); Fri, 2 Sep 2022 18:10:21 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B29F86B148 for ; Fri, 2 Sep 2022 15:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=Du4EboxIuNrkWsTrUXb2UIbbsv61yWb6aY5D8GRpJMg=; b=nVzMrBhmKPTZnNqwUf4hxZJKrl xF2R1cmFH5cNL12dwATCtJD7hzhMQUj6+xKB+BWTpih+0aA1jKyeOFlNmfH764xBQC8BriyZY6MZ7 EJ490yE+YQDpchwWhIjeethhg5Y7jkgAoo+MPxcHJxp11OBNnEvlMEAsC0bNpyBlPvXZ7lTLHMbtR vJ1yMnLBzLEs1uOLANW7x44EsGhZPMl4+C7mPnZhw4/t65dQq49suUwaL6fP0geSoyq0aFPxxXzca 12ZWaKk6PmoAnpDhmabUYJAZ1rppNWXwWwA+pOMc8b6jJBal386qd2iRDhkkAxNAAzhf/HZ99maCP KCZWrkJQ==; Received: from [2601:1c0:6280:3f0::a6b3] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oUErh-00Bt8k-Ij; Fri, 02 Sep 2022 22:10:17 +0000 Message-ID: <8a8822a1-327d-84b9-549a-f11009a15b4f@infradead.org> Date: Fri, 2 Sep 2022 15:10:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: amd iommu configuration To: Steven J Abner , linux-kernel@vger.kernel.org References: Content-Language: en-US From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, 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 9/1/22 11:36, Steven J Abner wrote: > Hi > Building a kernel tailored for AMD 2400g on ASRock B450 using 5.18.12 as base. > I stumbled across an odd situation and which lacked Kconfig info and lead to oddity. > /drivers/iommu/amd/Kconfig states 'config AMD_IOMMU_V2' is 'tristate' but unlike many > other tristate configures doesn't mention that module name is 'iommu_v2.ko' and loading should be done by adding to modules-load.d. > > The oddity is that by loading as module is as follows (differences): > > builtin iommu_v2 version dmesg: > amdgpu: HMM registered 2048MB device memory > amdgpu: Topology: Add APU node [0x0:0x0] > amdgpu: Topology: Add APU node [0x15dd:0x1002] > AMD-Vi: AMD IOMMUv2 loaded and initialized > kfd kfd: amdgpu: added device 1002:15dd > kfd kfd: amdgpu: Allocated 3969056 bytes on gart > memmap_init_zone_device initialised 524288 pages in 0ms > > module not loaded due to missing iommu.conf dmesg: > amdgpu: CRAT table disabled by module option > amdgpu: Topology: Add CPU node > amdgpu: Virtual CRAT table created for CPU > kfd kfd: amdgpu: GC IP 090100 not supported in kfd > > module load through iommu.conf dmesg: > amdgpu: CRAT table disabled by module option > amdgpu: Topology: Add CPU node > amdgpu: Virtual CRAT table created for CPU > AMD-Vi: AMD IOMMUv2 loaded and initialized > kfd kfd: amdgpu: GC IP 090100 not supported in kfd > > Note, only difference on witk/without iommu.conf is: > AMD-Vi: AMD IOMMUv2 loaded and initialized > > So does this mean missing features by not having builtin? > If not, should Kconfig have hint about module and loading? > > Steve > > I wish to be personally CC'ed the answers/comments posted to the list > in response to my posting, please:) Not a list member. Hi, Please try these email addresses: AMD IOMMU (AMD-VI) M: Joerg Roedel R: Suravee Suthikulpanit L: iommu@lists.linux.dev Thanks. -- ~Randy