Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7279272rwl; Thu, 23 Mar 2023 01:54:15 -0700 (PDT) X-Google-Smtp-Source: AK7set/HtrK6nUAr+vV9lGCZMNYEsD18zmk/ySSZq+Am9mMZDuZ2Oh63wh5UcvdJ5TnIU9bTKkXa X-Received: by 2002:a17:906:10d0:b0:931:4285:ea16 with SMTP id v16-20020a17090610d000b009314285ea16mr9071078ejv.7.1679561654827; Thu, 23 Mar 2023 01:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679561654; cv=none; d=google.com; s=arc-20160816; b=x/1VphVI+fKT+e9yhzTwswyWA9DKQ8WxBydt7lxryenHKqIjk62e6hRIRhe6MJlfPr 8ggHCAvsujEhVHT/BwRyGpWY1DPy4at7HPWEZlB51bgr7gFQWU2oWPnEg8YAqdk5L/1Z +CCkMGOjIkxxnkMwaRdVB/QYWDhLEhnCT5Na7I0Z3WppeGXtpMlUAfXKNfcQuGTRLClL WATye/Oo9HbZfqscXfJF4HS3kWP4yV9clPHd8j4mvs5rtQt30ujzjxecRDFankcWz3gs zRILbzx366wERIhI9cnq422/fvwwcxg/TZKyKmcKKTeQS3FuNT1gGK0+p3e3TtlUNl3x 64yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cq8kqEBTK6JWlpK/XjqmzyLo4rJMaFSNJKrG/q3CgGU=; b=AiuxZR75zd9WA+ryJxx3E5M8tAitjaH/AFCaMYbleXq1JIzyFJochGxVmceqvg4R6s xaMH0W17WxhFm6HHLDnUaU9AWTVDTQ48v0rRwsmJxXtIhJkHX+8Eh0JOKau5jGXqYrtA Ov67GNK6SuX1iChyloY4RydUcgB3zIefUf6PEqqNA05t01PwKxMx3zD3/NjnSr1pnWyR NNgOFqpQplDy/n8w2kBaai57g+SpxsoYeE4A7oT1j8ghEA0IE/1IuWIIvJ3xOJ/+Bdef lY1WrgNyAjlCbEipyDi67q9XsOhAsVUsGbgpR0asdezv9EwePDteUNfXigXTyRTXRuK6 aO5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aynJ15a/"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a170906191200b008df5a5088bcsi4828911eje.123.2023.03.23.01.53.51; Thu, 23 Mar 2023 01:54:14 -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=@kernel.org header.s=k20201202 header.b="aynJ15a/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbjCWIoQ (ORCPT + 99 others); Thu, 23 Mar 2023 04:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjCWIoP (ORCPT ); Thu, 23 Mar 2023 04:44:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFFE4BD; Thu, 23 Mar 2023 01:44:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9F056B82010; Thu, 23 Mar 2023 08:44:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44FEEC4339E; Thu, 23 Mar 2023 08:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679561051; bh=vdt+VTF6s151E+GhH+YVcJOM7fD0i+oL71q1c78abEU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aynJ15a/tvPj2HDrhf92SPwKAZ2Rwa7ljQ7jhyfWQ+9i/n6T/VTMWqIi7fiziKufT s8s+1nGwzkz5CvvbuMPpm/pJVpmHp95MzcPQ+zAZjfwnGLvJdCwu8egQ6Kr63G+TzT 6rISGV6Act5ehGocXJSV196XJQ1Zcj2lgLuZyiQx97J71sCgsgV0glR5jCGRKnkIKl syKg7vy9S+wWCQISoTHiq5HZwUMfqXjMerqo0HJ3hsztpnQOKS7+zFtx2V9dr78YIk 2seaOagjsVyrXODtvZqBKMjeVzfDy4BGwcbBEHJyvAVn4AdnQWhOdSwQzjf5bGP2Rc 4YpsH1n+U0VGQ== Received: by mail-lj1-f181.google.com with SMTP id h9so21624512ljq.2; Thu, 23 Mar 2023 01:44:11 -0700 (PDT) X-Gm-Message-State: AO0yUKWyoFmBw42RCeAtQNRXM2DHhrn0CKFEKxjOxfzuSzGODINcfM4W zmFoOdK8PWYqfe8NjWxowJDnUpSWF4er4pqr9G0= X-Received: by 2002:a2e:a1c6:0:b0:29a:7cf0:3535 with SMTP id c6-20020a2ea1c6000000b0029a7cf03535mr1582198ljm.4.1679561049245; Thu, 23 Mar 2023 01:44:09 -0700 (PDT) MIME-Version: 1.0 References: <20230310223027.315954-1-krzysztof.kozlowski@linaro.org> <20230310223027.315954-2-krzysztof.kozlowski@linaro.org> In-Reply-To: From: Ard Biesheuvel Date: Thu, 23 Mar 2023 09:43:58 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] crypto - img-hash: Drop of_match_ptr for ID table To: Herbert Xu Cc: Krzysztof Kozlowski , "David S. Miller" , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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, 17 Mar 2023 at 10:16, Herbert Xu wrote: > > On Fri, Mar 17, 2023 at 10:01:44AM +0100, Krzysztof Kozlowski wrote: > > > > That's not true. There is no waste because having it on x86 allows to > > match via ACPI PRP0001. It's on purpose there. > > Alright how about this, I don't have any OF devices on my machine > yet this structure is still taking up the extra memory for every > single device driver. This is wrong. > > > There are OF-drivers used on ACPI and x86/arm64. > > Well then they should be selecting OF and everyone will be happy. > No. PRP0001 support in ACPI does not depend on OF, so drivers that may be bound to such devices should not either. If you are concerned about the memory used by such tables, you can always propose making PRP0001 support configurable in the ACPI core, but making individual devices depend on OF for PRP0001 matching seems wrong to me.