Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp542354qtb; Wed, 19 Oct 2022 08:28:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tET6Cyh62l239n45vHu0P6mzYM6K7TnZiYlrxDu1vrwM/lE7nD29ZEKHfLSIGwHHXX/7o X-Received: by 2002:a63:3155:0:b0:45a:553a:3479 with SMTP id x82-20020a633155000000b0045a553a3479mr7641237pgx.408.1666193336682; Wed, 19 Oct 2022 08:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666193336; cv=none; d=google.com; s=arc-20160816; b=wcILZx9UaSiH9QbwI+0kdmBmeca4RXF5JlNTASedcNHxaTKfP6XCirVHLPy+474usS C5It3kKFRW8TSuRiff2WMpoBqJSyND3siHau42WhXTY9O03J+57vVOLZ2/mtKQnXyDv0 vC+wUKTZmIoaOQ3c/ySDG8VjLaJb9UIb9M4BSoYorR3+K/qMefRjIDCRm3Fkh1uxmMyf Jhm8BIz9lY1CmqH2hd7mTixkmJRTVj+pdb8DWEsk1kN1qRzOJ4o8MN6wMsN4L3G0IduO wNHsIYhNP+/TJDB0QbHFTrBxg+9/3LyaYa8fQmpCecpjwMyVNwRGIbqFIgL6WGJZOps8 81bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LcNFyIeP7WqoM2P+/8jgOdtt0MmqDTM+bTyO3Vnb0wk=; b=086Tzc6tY5vdxzBU9fiPhQa3xRjRpRHOOSGQlH3tK89M8UzJLujN1NZKq6+8TFDpun 0GONXRBVMfFk4d8WrMW7wesSrHEGtHgKsJSLWW/TexZqeFu1/lLZ+IbTHwGPRUO3tP6j n+x1hwPzjMG8mR4NLb2c6R9FDjhBhmrqThnQRqFAhGo9U6vJqRqY1EUChC2tqZjbuuQx UsS9GD2G5h6SQCEoghQmJUWVPG4Ca2xm4OQwtNQshiy255Nv+sOccHj+segumfv47SAC hydLkCkkia0OcoEr50P6KpCpJ8abRWlhgWcO5TrmLLtzBz6UPCHDMAWUmqZBw9FY2D1v XWAQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g23-20020a635217000000b0042b85da3a53si18721204pgb.473.2022.10.19.08.28.43; Wed, 19 Oct 2022 08:28:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbiJSOgu (ORCPT + 99 others); Wed, 19 Oct 2022 10:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231567AbiJSOg1 (ORCPT ); Wed, 19 Oct 2022 10:36:27 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E35D34AD42 for ; Wed, 19 Oct 2022 07:20:48 -0700 (PDT) Received: from p508fdae2.dip0.t-ipconnect.de ([80.143.218.226] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ol9XL-00069g-MB; Wed, 19 Oct 2022 15:55:11 +0200 From: Heiko Stuebner To: Palmer Dabbelt , Paul Walmsley , Anup Patel Cc: Atish Patra , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Jones , kernel test robot , Anup Patel , Conor Dooley Subject: Re: [PATCH v4 1/4] RISC-V: Fix compilation without RISCV_ISA_ZICBOM Date: Wed, 19 Oct 2022 15:55:10 +0200 Message-ID: <2257562.ElGaqSPkdT@phil> In-Reply-To: <20221019131128.237026-2-apatel@ventanamicro.com> References: <20221019131128.237026-1-apatel@ventanamicro.com> <20221019131128.237026-2-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR 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 Am Mittwoch, 19. Oktober 2022, 15:11:25 CEST schrieb Anup Patel: > From: Andrew Jones > > riscv_cbom_block_size and riscv_init_cbom_blocksize() should always > be available and riscv_init_cbom_blocksize() should always be > invoked, even when compiling without RISCV_ISA_ZICBOM enabled. This > is because disabling RISCV_ISA_ZICBOM means "don't use zicbom > instructions in the kernel" not "pretend there isn't zicbom, even > when there is". When zicbom is available, whether the kernel enables > its use with RISCV_ISA_ZICBOM or not, KVM will offer it to guests. > Ensure we can build KVM and that the block size is initialized even > when compiling without RISCV_ISA_ZICBOM. > > Fixes: 8f7e001e0325 ("RISC-V: Clean up the Zicbom block size probing") > Reported-by: kernel test robot > Signed-off-by: Andrew Jones > Signed-off-by: Anup Patel > Reviewed-by: Conor Dooley Reviewed-by: Heiko Stuebner [on qemu+zicbom and t-head d1] Tested-by: Heiko Stuebner