Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3500673rwl; Sun, 2 Apr 2023 08:46:16 -0700 (PDT) X-Google-Smtp-Source: AKy350ZP8JYQdyROz8hMl/iv6DKeb3BooSzKvhyKMx+Pb5RxgefxwaJNv2zP2PeYZPAfb4ECehLw X-Received: by 2002:a17:906:1c4:b0:931:5145:c51f with SMTP id 4-20020a17090601c400b009315145c51fmr6428016ejj.4.1680450376149; Sun, 02 Apr 2023 08:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680450376; cv=none; d=google.com; s=arc-20160816; b=IpzQW5ZT4K4vgI1yBEWfb7F49DNfK2q/iA58DFhMZb/igpL3GIwOcKvbbVo7ptbVeb U4na+qN6sW6GQ69R1hzw+5kFB0JFgHRe/4MldRBgKkG/QCggx1z5WyJn3cJ9IbJWAZ3E +Xv0pTfaHudgoBG1sd+Ha5TVxxpbs1pm/QTtJb5ZoYjJCJ8X7vZsPJgdKZCGWEL4T0M9 vdsuJv6moqx1OzPfIyxzNQNIczXSBLGdeNA2bfSjzAkv+hWtwkJITb6GJ35O2KMNzxg4 kBWWnyYjB1JhDF6TAUmLItfeHlrVqi7d3jMbGbnwi6AI/sjIFOQ2oP2Q6oTiabCaPW9y HH3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vQcaoKs/WxKbULaS5V6K0JDkCQY6Irgs3SFQbr71L4Q=; b=pkdYk3aP75YnCdQCCFm/8laa9HA5MADvBS7o/9HmiO6ihJykhWt94j15tIB0zrtZEp r7b9S2ynHiHG6Nhun+SpW48B1drocm2EbyX8anZeEcqbEU8HNBDrqg1bxKN2Ddwatwu7 t16ZrMj4yKxQO9qHHsbeaALU6+krXDRAean/+zz32OlcT1lfn4mj5BV1l91RYjTgl+qM ckNV7cJnEj/4KiRVZ3Ihwf7Ay1LP8obBHrYoPB/NSX1IPjhwbwTiLiwWxyjGddHx4LP2 aMfYHV2tD1WxoZZecQE7P9kYjRTqLNGX9aQX8AT34hn5MbTfMNduEs5WkgF/j++1Hxcv fmog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=iVMRLK+q; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a170906b08600b00947728e85f1si281213ejy.924.2023.04.02.08.45.46; Sun, 02 Apr 2023 08:46:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@alien8.de header.s=dkim header.b=iVMRLK+q; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbjDBPod (ORCPT + 99 others); Sun, 2 Apr 2023 11:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbjDBPoc (ORCPT ); Sun, 2 Apr 2023 11:44:32 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DBE33592; Sun, 2 Apr 2023 08:44:31 -0700 (PDT) Received: from zn.tnic (p5de8e687.dip0.t-ipconnect.de [93.232.230.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4DE171EC0464; Sun, 2 Apr 2023 17:44:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1680450269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=vQcaoKs/WxKbULaS5V6K0JDkCQY6Irgs3SFQbr71L4Q=; b=iVMRLK+q6loLxDv3MSGsW2KkKCZ8v16oUEr8Gwh6NALthDikMK68MLvhysoI2hOq6BXseI HsN35LZHkIa0xhz8KAFNx0dEYYg/uTFtYYRSQPm8Zq6KuwiTqmpwPw9w2SLNRmCO+38ti/ /q+/6JoOhm9IChvyQ5i/BZkLtRRiVMI= Date: Sun, 2 Apr 2023 17:44:25 +0200 From: Borislav Petkov To: Jeremi Piotrowski Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Brijesh Singh , Tom Lendacky , "Kalra, Ashish" , linux-crypto@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, Ingo Molnar , Dave Hansen , x86@kernel.org Subject: Re: [PATCH v3 0/8] Support ACPI PSP on Hyper-V Message-ID: <20230402154425.GCZCmi2eiKYO2yYhNs@fat_crate.local> References: <20230320191956.1354602-1-jpiotrowski@linux.microsoft.com> <20230322154655.GDZBsi75f6LnQStxSp@fat_crate.local> <1d25221c-eaab-0f97-83aa-8b4fbe3a53ed@linux.microsoft.com> <20230322181541.GEZBtFzRAMcH9BAzUe@fat_crate.local> <20230323152342.GFZBxu/m3u6aFUDY/7@fat_crate.local> <105d019c-2249-5dfd-e032-95944ea6dc8c@linux.microsoft.com> <20230323163450.GGZBx/qpnclFnMaf7e@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-crypto@vger.kernel.org On Fri, Mar 24, 2023 at 06:10:09PM +0100, Jeremi Piotrowski wrote: > Since the AMD PSP is a privileged device, there is a desire to not have to trust the > ACPI stack, And yet you do: + err = acpi_parse_aspt(&res[0], &pdata); + if (err) + return err; You don't trust the ACPI stack, and yet you're parsing an ACPI table?!?! You have to make up your mind here. Btw, you still haven't answered my question about doing: devm_request_irq(dev, 9, ..) where 9 is the default ACPI interrupt. You can have some silly table tell you what to map or you can simply map IRQ 9 and be done with it. In this second case you can *really* not trust ACPI because you know which IRQ it is. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette