Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1225510rwb; Fri, 23 Sep 2022 09:41:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4e22wzhYMle6EHUCsAPH/9Qx2JBqdVGTn2Z3FHYEFiF89NqhzRL0+x4letX2dz2Ps9/BeP X-Received: by 2002:a17:907:3f9f:b0:782:a14a:fdf9 with SMTP id hr31-20020a1709073f9f00b00782a14afdf9mr3278437ejc.49.1663951262242; Fri, 23 Sep 2022 09:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663951262; cv=none; d=google.com; s=arc-20160816; b=nsnUZr+O4nAz/4EycRQfM9YqD2tGSiHuTKi1bqxoFH0VXImnCi3J5iI5Nuk+5YZVVX 0PJ2wWJ0wtfAjNLhpfynm/waEXlVKgAqidCPMYQUh6fNQTXImvIPk5DBByoZSvYh6wj5 xt1QlqQOsiqTOw3rxQqBt7LTnZ7UUpBaYBaRYO3mraGm5R6U6iXqcjPKp2AxUclFM/7L jMxAQD0+FFxOrDaehMojYZtLIK/hxakzcJNzrDJ6aahvjcf//5XVsQ48jtQrbLS7DC29 VA+tckEWm+yiR6bqzhPdNvaOjvPebvSXa5CGmE1Ro6Po94FshkdxpmYAhVll1j5BMMER vz4w== 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=/f25GBB1zWD1jyTjH2zd7owsfk647Q32TDHnzD33NxA=; b=0cTqGSeGy5nzTIXTOV3WakxW6fpbkUBaX+Ou54gKCXgZEUZLEyEXj/UaK2scj5eZwt HnqzHLnzKbQG16S0r0/yHYM9mWrrm6bvX6A/k48Nv1ulrzt/MKjhmJO/alVGDj1jrJ7m vKiK0CIa2l/vL4AyEvJLwcz/OvOLHlYOYtKmhQD9wmz4JFRPhk2976zY76VGxSqwj0yR HcNl0bOF47KIBIfaFUK0Ezi64cu6g5LUs6ztiA0QubpQSLJVi9GdfiKVHqBHGl5qMETY JqZEJnySvGF3RbIBYTFT+3eOwKJG/EDPVtmMkDSkEgrXei5XaQjfq1hr7Jh5I/jG3vjc LqiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=oZYsrJcI; 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; 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 y16-20020a50e610000000b0044f025c1370si7144388edm.530.2022.09.23.09.40.35; Fri, 23 Sep 2022 09:41:02 -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=@alien8.de header.s=dkim header.b=oZYsrJcI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232568AbiIWPoS (ORCPT + 99 others); Fri, 23 Sep 2022 11:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231846AbiIWPnc (ORCPT ); Fri, 23 Sep 2022 11:43:32 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 091C013E7CC; Fri, 23 Sep 2022 08:43:27 -0700 (PDT) Received: from zn.tnic (p200300ea9733e795329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e795:329c:23ff:fea6:a903]) (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 8FA021EC0628; Fri, 23 Sep 2022 17:43:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1663947802; 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=/f25GBB1zWD1jyTjH2zd7owsfk647Q32TDHnzD33NxA=; b=oZYsrJcIvKm9jgHKZDPp/7ACfM7QyDXNJRWZRh8GBGTBGCq7iYGNZVHfrZToyFTxo+ztv8 hdD9mP3BzeB2gw9JofroVumUaUSrfwgGsabJEQ0iOctGH/BvGsm2LPMwCVToonY+x+IFxO gxOz0qUyVYULW8a6T+2ZkxR2MCVvn8c= Date: Fri, 23 Sep 2022 17:43:22 +0200 From: Borislav Petkov To: Justin He Cc: Len Brown , James Morse , Tony Luck , Mauro Carvalho Chehab , Robert Richter , Robert Moore , Qiuxu Zhuo , Yazen Ghannam , Jan Luebbe , Khuong Dinh , Kani Toshi , Ard Biesheuvel , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-edac@vger.kernel.org" , "devel@acpica.org" , "Rafael J . Wysocki" , Shuai Xue , Jarkko Sakkinen , "linux-efi@vger.kernel.org" , nd Subject: Re: [PATCH v6 5/8] EDAC/ghes: Make ghes_edac a proper module to remove the dependency on ghes Message-ID: References: <20220912144005.212624-1-justin.he@arm.com> <20220912144005.212624-6-justin.he@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Thu, Sep 22, 2022 at 08:26:16AM +0000, Justin He wrote: > If there is no ghes_present flag. > What if ghes.disable is passed to kernel boot parameter and then ghes_edac is > loaded by modprobe? > Thus, ghes_edac can be loaded even if ghes is disabled. (ghes_dev list is null) Yes, and what happens if ghes_dev is NULL? The other drivers would do in their init function: struct list_head *ghes_devs; ghes_devs = ghes_get_devices(); if (ghes_devs) return -ENODEV; /* Continue init */ and then load in that case because user has disabled GHES and thus no ghes_edac either. So the platform-specific one loads. Right? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette