Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4115397rwl; Sun, 2 Apr 2023 23:24:03 -0700 (PDT) X-Google-Smtp-Source: AKy350b/0FdgHppKkwVp5Sk5TomhUclkKH4clmyopi97mPY4ThG/L6u/cWcR/LkJuYcloskuUKD9 X-Received: by 2002:a05:6a20:8e07:b0:db:91fd:92b0 with SMTP id y7-20020a056a208e0700b000db91fd92b0mr17791197pzj.1.1680503042988; Sun, 02 Apr 2023 23:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680503042; cv=none; d=google.com; s=arc-20160816; b=tTmc8lAmcpEt6PyT6Hcv0Emx+ROkC8vif7B4FABx+Tl4sMyMto1I0XSwoNyToKLQvq 06jYaKhpzg3LaMYRiMvfkMqyNibip+VUQIqe9XqT0rBWtzesViAYAs6jjIcraq+cKNDy RXG2uD3rkc9SVDdduTKctjd3pbkAVxKhaLdDffKiLuWvzFMSORQYMtfhuN1Dr5GFHS0G 6b57ecAHJGY8Wa0hlZVox/nof3KrxLb7/nKyjmw1A6FW4Y3U9/pzuudutZidoZmIZNx2 4Ql5IEwMz5561OB2W4RaURtk6k6/4YoMTBJGx0lLNKhVDqiFL6/3VA21vp50yAuRtv5c +cSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=i42bYRlR2kxtr0gbsfE9X6XNMmr22amRVlMTmSUpKYo=; b=uaXVTUq+RYw8X3R4uD6raNK4nMLFtvoYqeXZlaLQhsBUIaUrpsv6NgR5c8QvLX5A0X LlgarkNIGXmJf/QnuBLxtdzeHni2/VWs5uNaapQTkEl/lsa3PypuXVcjc5ky/OWrh2im I7QtYnIMFlMfJ1LjpWx+35GprQTwHbYaya9SYhosyDGLqjPYZh5neILzGEJYq+5VmZmM cmctrGmRGmGJFz+Uh1hNerc9Ums4V1mbR7Onn0RX2lzFyWiuUblNtn4ZW2Ems8Jjq7A2 5cD/fNE0s0CNCqkyY4Lh/BVL3IE4C9RgcADh0LiObA/hMi71Q7p5/scLQWKmLcmDyXMg 60AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cEqd0YLa; dkim=neutral (no key) header.i=@linutronix.de header.b=RuAt71zB; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g193-20020a636bca000000b005004b2acf6dsi7595205pgc.810.2023.04.02.23.23.50; Sun, 02 Apr 2023 23:24:02 -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=@linutronix.de header.s=2020 header.b=cEqd0YLa; dkim=neutral (no key) header.i=@linutronix.de header.b=RuAt71zB; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbjDCGU4 (ORCPT + 99 others); Mon, 3 Apr 2023 02:20:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbjDCGU4 (ORCPT ); Mon, 3 Apr 2023 02:20:56 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 977847695; Sun, 2 Apr 2023 23:20:47 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1680502845; 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: in-reply-to:in-reply-to:references:references; bh=i42bYRlR2kxtr0gbsfE9X6XNMmr22amRVlMTmSUpKYo=; b=cEqd0YLaWwP/vnr5lIBv03l5pHM2JWrtJsop+GgvwoYVTyymV3kNlAmsZte5gu/34iaKte 6rXfOtMZj7Jos7sskbeViOFEujeDJWbnh3M0YsFhvDT4jMVwV9YJnElFzK3oDcAsW8D4gx OlF/XPzYVXsKzPXeO8e7WJQIq+Rq+2vJVMzDKuikO8bkRsGxsu/7lMi8j/I1uD3KKOh6hs 90c8jb+p6V1NDuBd7TrwXmg03WSz48u/PkgXTUHnyKuzS3m0EQP5lRYfzhqieDC2nraQdU etsJ6LUr4yQUdvF714lABNduwiffcUlOxlBokxI/Ofti/mwiO6/xIwnucemhRg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1680502845; 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: in-reply-to:in-reply-to:references:references; bh=i42bYRlR2kxtr0gbsfE9X6XNMmr22amRVlMTmSUpKYo=; b=RuAt71zBd1H4cTsCQ/ZvDpU8FcnCA3H19MrqzS7AYadaBjM0NZzjhazlHRTK7xQOYbg+XT gShlLA/Ge7ObjpDg== To: Borislav Petkov , Jeremi Piotrowski Cc: 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 In-Reply-To: <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> <20230402154425.GCZCmi2eiKYO2yYhNs@fat_crate.local> Date: Mon, 03 Apr 2023 08:20:44 +0200 Message-ID: <877cutsczn.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Sun, Apr 02 2023 at 17:44, Borislav Petkov wrote: > 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. The real problem here is that the information provided about the overall design and requirements is close to zero. All we heard so far is hand waving about not trusting PCI and ACPI. Jeremi, can you please describe exactly what the design and constraints are in understandable and coherent sentences? Thanks, tglx