Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp235474rwd; Tue, 30 May 2023 19:33:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66KUSp7/KHtwG4p/Z1dEM6Gwwei4b2jRHr9YS7wRpwlkwmJSd0uPMHoF5rnMeTs8SeWnwB X-Received: by 2002:a05:6a00:2e1a:b0:64a:9090:5147 with SMTP id fc26-20020a056a002e1a00b0064a90905147mr5239317pfb.10.1685500406288; Tue, 30 May 2023 19:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685500406; cv=none; d=google.com; s=arc-20160816; b=MCMUou0QyM9ZqqMuBNEhsaKywSaWkSOeAvsW8HnPwZHqVoWj48CvarmRDMK8qy6zRr m4Kt6dzz8ti/T5Y0UKkaOAxNB6YhISBBtskMm1pAnr3E/wdK2DyjSCRuG+F/i+oZZz32 mAVm4bdju3mx/W6bkjyctGKVGfglk0WrccMNMaWjOEzTW/qHWJ/m70NZ5VXTayAtuW8v lrxru5vvVRyIi2gfLsSj46BWSgcmmGcrrTSZj7qux273RABTK1yJdf5TJo2IuDagn+A/ 7LKnQdxdKg48Q7nT8L+8YkdPrJi8ZHH4ICb/oohmz/Ch3gqG0tlfbXXRJkhnEfI5pvL+ DSXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=AHO4M8sGie0OSLO/d8Ur4iCaRbtViVC/sruAnPnDQl8=; b=ctkOTaQGB9XZW0LGQvxDIA+h+Yy1QDWJ2yEjeNmwIcH+FKHlrDywvPUyANJdtoG8BO Nft2g0n9Xway6rmehjiLyF009Yc/6RKz9ocuERLePssPQnZWKBBVoIuX5QvBAT4k2opH uUg3YXXSVGKBPTgNN1j61cLsAkgwBCh5YwaElERPJGmkzXFf0eZKWskGUBknyqC8KkQ4 jkrbfIsbuMyVjc4t0IwZNvfhjudUGyl37SxeW86A+Q7Y8ZqD/rhviRjkBWK+F+bVwQJu uO0k3594D6I9h7QZsEnOFvkpAPFrfzOJ0plBeqCExvl8ZjeNGpFHzq/2PiBhRTy5NBAy TkOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=WFqPI8lz; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a63780c000000b004c259db61fdsi121435pgc.561.2023.05.30.19.33.14; Tue, 30 May 2023 19:33:26 -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=@infradead.org header.s=bombadil.20210309 header.b=WFqPI8lz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234001AbjEaCSt (ORCPT + 99 others); Tue, 30 May 2023 22:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbjEaCSo (ORCPT ); Tue, 30 May 2023 22:18:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5B5B10E; Tue, 30 May 2023 19:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=AHO4M8sGie0OSLO/d8Ur4iCaRbtViVC/sruAnPnDQl8=; b=WFqPI8lzgzeJCE5VBFZricroLX VFVwpGjv7oZfxVGuYabP5XSgYrcC99JBwmMBYwEpRi+4MJEEbTG56BDO9yUIfE/qrADTFZeCslMRu dmHDK8HvHqzd6jptf2Qgnmu/t6fjtnCbxR3U+mS1QqAeiyWIkDumPeLkHT1DpFGU9UqLiJhFrFY4J WBRjWzRJhXxIw+K+QX4dy+m0GYlzLwHfTPwOTjWnjlHDMoCBLYaoFCrndkR3NhfSew0gAc8HGkSrO f9NTyXgLW8vAcPNrycVkq0TGk003xokLYfWfkWkFgyk36xuCMPBFI+OHX4qVbSPIaqIajw98yJJW2 3ILdNcZw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q4BPr-00FmRc-04; Wed, 31 May 2023 02:18:23 +0000 Date: Tue, 30 May 2023 19:18:22 -0700 From: Luis Chamberlain To: Ira Weiny Cc: Davidlohr Bueso , LiuLele , dave.jiang@intel.com, Jonathan.Cameron@huawei.com, alison.schofield@intel.com, bhelgaas@google.com, bwidawsk@kernel.org, dan.j.williams@intel.com, helgaas@kernel.org, linux-acpi@vger.kernel.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, rostedt@goodmis.org, vishal.l.verma@intel.com Subject: Re: CXL memory device not created correctly Message-ID: References: <646793cc665bf_1231462943c@iweiny-mobl.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <646793cc665bf_1231462943c@iweiny-mobl.notmuch> Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Fri, May 19, 2023 at 08:20:44AM -0700, Ira Weiny wrote: > Davidlohr Bueso wrote: > > On Fri, 19 May 2023, LiuLele wrote: > > > > >In my testing CXL device /sys/bus/cxl/devices/mem0 not created, and the get error messages : > > > > > >``` > > >cxl_pci 0000:0d:00.0: Failed to get interrupt for event Info log > > >``` > > > > > >My test environment is a qemu CXL emulator with qemu v8.0.0, Linux kernel v6.3.0. > > >While with kernel 5.9.13, /sys/bus/cxl/devices/mem0 can be created. > > > > Yes, this can be annoying and would argue the probe should not error out. > > I had to double check. Events are mandatory on devices. On checking > again interrupt support is mandatory as well. So that is why I errored > out here. The failure essentially creates a user visible regression whereas booting an older kernel fixes it. It is not a friendly error message when testing kernels / upgrading / test environments. The only thing I can think of is if a new kconfig symbol is introduced so to make such cases a bit more clearer for now as things get settled. Otherwise for testing this creates a few cycles of just noise. And I'd imagine even a few developer hours. Luis