Received: by 2002:a05:6520:1682:b0:147:d1a0:b502 with SMTP id ck2csp5596397lkb; Mon, 11 Oct 2021 09:38:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWfMW+FW9nIbbLarhQ3Shhu3UC4hP+997JAcrj9nbk+mf4ggRUYVV+qyPddTV02p0a2/rl X-Received: by 2002:a17:90a:4483:: with SMTP id t3mr57993pjg.44.1633970329706; Mon, 11 Oct 2021 09:38:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633970329; cv=pass; d=google.com; s=arc-20160816; b=vz1AoFZ7u5JYDkzy09EKjZ+yxQXyY6y+A7m6D+Yos0JGwttLn9WfWV3AyQ9Z94se7s A8YmosaUPLGJJHlKh/HloaipbCzBQe7P/SUsbmjJ9hRH33tW4Dtz1CKK1i6OGZ6KvoRr 3oQdSQ+7B74h37GNpyuYfICWRBIxyd6s47qT7Sg+NrC9FoxfodF2rLSxmWGoklJfoleS a/gjDN1fXM7b187/90D7fY+QeDb9PhuGHps1DAMCSbRiGcv3Mrb05ctSWjNi7A/cB8Jj HqgmpvYwuLolOeAsYjVVAOcUtpIZZ4cv8pGfFBju4/ccwBt7+KS17Lcnc9g9aiWGo47/ 6QBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=HXDEcQak1R683+v52PBEGe8iOEN4470hgnIsuGRXKag=; b=rksKexxyLqb73+sotJbcBzJrs70Dce4qyppQBYqv/rmrZ8IPZgoH6Njh+uWNaa0W7i hJtf56Oz9AgRYwJXskc0YOFm4LxcD7m41H6Ml5ZQyw+QyTOxMYID8oQIbGl33f5XcQio s01N1CCELkQEhVGs8UYNf8EIEuuSJWnzC9/o/rEn3OmsmVw+wajxXsFVrb02CGlLlFT5 ANhhFFxxpA8jgIwGl197A+ZIUqg79PswPOG8//nn+SAkSh6IL6Ev0/3QsSX3XVRJk+Uk hACxl3jiLumEZWVXn7KiIhy+IKydvSV5Uwa6RfQjQdPVyb2oMf1xdx+g4SC1ajrO+kcg WgiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=oYbgzeMZ; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si10339424pfh.359.2021.10.11.09.38.33; Mon, 11 Oct 2021 09:38:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=oYbgzeMZ; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238356AbhJKObA (ORCPT + 99 others); Mon, 11 Oct 2021 10:31:00 -0400 Received: from mail-bn8nam12on2053.outbound.protection.outlook.com ([40.107.237.53]:15968 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238456AbhJKOaz (ORCPT ); Mon, 11 Oct 2021 10:30:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OIPZ3uektzCxCf8+OfyrGl8Y6FTVYfQnQlE63/9tfAivqYhz5Jr3T02qS9ZYiB9oSMo2EpBs16ZvqyQraFLzslFhzi/l6AXH89wGRgsloyekcVvaM2j/eDmxFbEme9qCcrtY8G+57O13LtAfYtNxt0mdBkb/sdqRGKHJygW7ZFgZgHmtM181MVHDaQBSWUsmgIjz+4w6PK0jKiubJxYBeOiPzwCg5qL57tuvghROOfJfzieeljaq8qs5ge5TUcqoKXcnzamb4RlLaN28vXGn2B40ABLOHpGo9PmsCoLqYDg1Xxq+f9kLGk8HqySECGb1nbIVkuMt36AjXsNNa48ruQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HXDEcQak1R683+v52PBEGe8iOEN4470hgnIsuGRXKag=; b=eCYeGuNnD3xH67XEgsbwM8e1PUNuozk548asT0NeyzvHMdIU/4BRkO+xcWDDDNsAmH5SewvKMba7lX9E0DdzHw3xzIa2MQIIhNnjAgMMKYKya7ToozxnWGTTGHUrTBzoLWpfUQiDnIvomwvwKQ4HG6sCMqpVhE6igBM9QAjMFbvuwxV/sLMiS/60ctJ+sm3WFkyBNlQLac/haNEM+iwQdWYdt6PlEhmpvOnluFUBpgygvmCfPsYuAPlWfK4+6ODnNmqL5EIsVeDxVKSW0n6GzQQrLps0ermG9PTUFJWbt0D40YeZiYZJwF1JgMsKr1/Qtb1how0j7gzr5aPG8v7JrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HXDEcQak1R683+v52PBEGe8iOEN4470hgnIsuGRXKag=; b=oYbgzeMZnTgLsnjg9ua6Dziqu+ubClevh3NfMQtDDnSuQfQo8nxK1SQ1njRReHi4da9P//AMJJEHqyw2iW5IZM2daBkkGMh61Yp6GbkAQF0fFcKMbUx1CtnDss7/idYwy86qrDZ1eO70nE4EewtexK4ChL1QldZDIWdV0w8i/VU= Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) by DM4PR12MB5184.namprd12.prod.outlook.com (2603:10b6:5:397::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Mon, 11 Oct 2021 14:28:53 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::d560:d21:cd59:9418]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::d560:d21:cd59:9418%6]) with mapi id 15.20.4587.026; Mon, 11 Oct 2021 14:28:53 +0000 Subject: Re: `AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=y` causes AMDGPU to fail on Ryzen: amdgpu: SME is not compatible with RAVEN To: Paul Menzel Cc: Alex Deucher , Thomas Gleixner , Ingo Molnar , X86 ML , Dave Hansen , Andy Lutomirski , Peter Zijlstra , LKML , amd-gfx@lists.freedesktop.org, Borislav Petkov References: <8bbacd0e-4580-3194-19d2-a0ecad7df09c@molgen.mpg.de> <96f6dbed-b027-c65e-6888-c0e8630cc006@amd.com> <87d93314-ba3e-464f-d051-84a8de674b06@amd.com> <139ed784-d622-b0d2-3650-736b42e624f0@molgen.mpg.de> <8b21ebbd-f7ca-8af3-5398-8320c6ed6422@molgen.mpg.de> From: Tom Lendacky Message-ID: Date: Mon, 11 Oct 2021 09:28:51 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 In-Reply-To: <8b21ebbd-f7ca-8af3-5398-8320c6ed6422@molgen.mpg.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN4PR0701CA0034.namprd07.prod.outlook.com (2603:10b6:803:2d::15) To DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) MIME-Version: 1.0 Received: from [10.236.30.241] (165.204.77.1) by SN4PR0701CA0034.namprd07.prod.outlook.com (2603:10b6:803:2d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Mon, 11 Oct 2021 14:28:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e12e7ba4-2800-4f68-56db-08d98cc373b3 X-MS-TrafficTypeDiagnostic: DM4PR12MB5184: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:47; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qTFarVl3O1AKsWb5L9mdAHkgJHbR0mHLq3KS02USDMdBkNYzUkKKxFPmA4gdlqQUfDkABCyRHfRZlHxMf3PFVefk1RiIiYqeh8pqUvKRHy6oQoBvGTuEyo03XPtwVrj4OMmbPFL3mXeenWBLqYohscbcJnRIgYyMhKVV1/8zssDkpiMZ9R/byQO2hyi9Iw5Gd195DvXRGAfMoF+oMF11QgJqE0quT7g5cVTlitNwnv40RWMvdZciqAMWPMs4QmpfV/uQO0MBKaFtCj0Bo2S4ME0e9XyqCMi0FvlVcVUYsVnZzP6KNX2PYNIvOXWLIT+7RVQ0/g9a/KsnhTTZHWUCJVqdwJK4td/bSyzzwWv0OJUQoIdyoJsZT3Nv0ETfWPWHUQW5e+xRlod6Q9wEfZ9RTY68yygNL0diqa5cq6ogoPV1mnL4WyzyA5Z63/EdN20TuN/LjyhGGmw4mysgnUAeJJpQSWI5r/FPuBm1qV9NXsDTD8t9NTMZ3iK/QY17I+Ylos3+zLFyjHYY+wuz7BZ+x8H1rQaYjA2ZHzVv5bfrZUE+FA80gYwXxuJqGrYVVVMegSw6IipqSSgjLGYAXQwqFPrH2Z4MKAMYemmc0LdNM0t0G+15ySAXi7k1EjzWiVocjWEuVwKgBfyL+hpySqsnLLciFloKZzxBGsiAZvLzXyU37v80rl61qI/o43m7aXPJsD96NLUER/xR3HU6xkiX7bqm6cgAMtJTo/2sizvdpbjK+kf5R9tJTzt7BjHiMxNtK700RcJk0pCz+5cS/j9Qhw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5229.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(16576012)(66556008)(2616005)(316002)(2906002)(4326008)(956004)(53546011)(26005)(54906003)(31686004)(186003)(7416002)(66946007)(31696002)(66476007)(83380400001)(86362001)(8676002)(5660300002)(6486002)(508600001)(36756003)(6916009)(8936002)(38100700002)(81973001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R2MyYkJDeVpLSWJiV3g2ckJsWnN5WmVkSFUzakxBYU1adXI1OCtjVjVNYVd6?= =?utf-8?B?NlV0a0dDNkhwckZORWgrZHU4MFA1S0dMUWFJYlg2aWhzQkgyOHJYdEtjT0Nk?= =?utf-8?B?WmJCS0VUUkI0NS9JaDdmYlloTzRYSU5RWmdvdnc1ZHNDZEtkcmIvRTVwVEV6?= =?utf-8?B?MVFjSm1laC96RklXNXVRek4xLytRdXkzVS93ckpFWXE0QlhYM3BjQ2pKM0Vu?= =?utf-8?B?WUpwZDh5ZHFTbXBVQXdUbjlLa0Nlb0EzbGNMWlFRc092SUQzR0hwWEVZWXc1?= =?utf-8?B?Y3l3bl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= =?utf-8?B?ZXE1dFFQdmwzcUtZYUdVM01UQ21VOXZ0am9BYUVHSmp4MWRsZzFSSEpVeHJE?= =?utf-8?B?N0xaWWlwanBXMjdBeTBxeEs4ODRMMEYyQ2ZPSkpyUTd5clloNnk0aVJiOTdY?= =?utf-8?B?V0MzazVqdElDOTNQMnpVSDdnYVAwRkM4Ni9CMnRVb29YcmM4VDNvMnZnVTZV?= =?utf-8?B?RjRYMmNZT1Qxam5paWhneVZtSndjb1R3aEpMN3RyZjJya1lTT202Z09HUDh4?= =?utf-8?B?VVJzRXE0V3VIdDZTM2xiK1NpdU51K0l2enZXUy9mOWw2YTcvb0t2WS9GWldv?= =?utf-8?B?TG9vMTBVNDJtUERsSjkzaWFmemdiaDBNVE1GRkxDWHR5VmZodXJMS0RFdnlU?= =?utf-8?B?TVZmZDBaWEZxNVAyMXRvaWtHWXdsTEtoUTRDNkVmckpGMkhjczZkNmdaZTR4?= =?utf-8?B?Z1JaS1NrZlJ1TjVIbTNhSkNyUXVBMG52c0pTODU2YTZYUUljTFlaTzBQMlo5?= =?utf-8?B?MU43T3ZkYXlQQWFGMlNtekN2ZzNxU3BjUkdSNkp1TVJNV1dPM2R0VFA4VVBR?= =?utf-8?Q?znm8iivBvjBGuar74R/nI/O30PBs+fX2dsMcG0A?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e12e7ba4-2800-4f68-56db-08d98cc373b3 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2021 14:28:53.7962 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OAcfb6mjGc2HDrLM4xkkHC0cjcWoV3BS1YtRAG4tUFoZ1/TTZWtWBpnkBtP8JGALAJkmQNnXvFKigYV6gFO4hw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5184 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/11/21 9:21 AM, Paul Menzel wrote: > Dear Tom, > > > Am 11.10.21 um 15:58 schrieb Tom Lendacky: >> On 10/11/21 8:52 AM, Paul Menzel wrote: > >>> Am 11.10.21 um 15:27 schrieb Tom Lendacky: >>>> On 10/11/21 8:11 AM, Borislav Petkov wrote: >>>>> On Mon, Oct 11, 2021 at 03:05:33PM +0200, Paul Menzel wrote: >>>>>> I think, the IOMMU is enabled on the MSI B350M MORTAR, but >>>>>> otherwise, yes >>>>>> this looks fine. The help text could also be updated to mention >>>>>> problems >>>>>> with AMD Raven devices. >>>>> >>>>> This is not only about Raven GPUs but, as Alex explained, pretty much >>>>> about every device which doesn't support a 48 bit DMA mask. I'll expand >>>>> that aspect in the changelog. >>>> >>>> In general, non-GPU devices that don't support a 48-bit DMA mask work >>>> fine (assuming they have set their DMA mask appropriately). It really >>>> depends on whether SWIOTLB will be able to satisfy the memory >>>> requirements of the driver when the IOMMU is not enabled or in >>>> passthrough mode. Since GPU devices need/use a lot of memory, that >>>> becomes a problem. >>> >>> How can I check that? >> >> How can you check what? 32-bit DMA devices? GPUs? I need a bit more >> information... > > How can I check, why MEM_ENCRYPT is not working on my device despite the > IOMMU being enabled. I believe Alex already explained that. Your original message is from commit: ea68573d408f ("drm/amdgpu: Fail to load on RAVEN if SME is active") Thanks, Tom > > > Kind regards, > > Paul