Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4966318rdh; Wed, 29 Nov 2023 16:42:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAIA/HggosK+6G0/qnx73X5yrvb+oG5vhVRkcaztECrYuGKqHOKzOT1e1/rUuCcSLy7jIi X-Received: by 2002:a05:6a00:1590:b0:6cc:b448:3652 with SMTP id u16-20020a056a00159000b006ccb4483652mr16054111pfk.19.1701304961693; Wed, 29 Nov 2023 16:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701304961; cv=none; d=google.com; s=arc-20160816; b=wGV5/FC+2IuLFa8c5PfLuKyRBFU6+aD2/u86qLPbs7cgqEICdhX/+IU8nL1F9/rmVm j34qdHpFpHRxsZGck7Koh3qjgxMJbONKMEpqt2Tgx9rE+CHP59C5qVoXZBZqQ2JbKlX4 vStQmavMaFHXBCqHvid0HOJ4w2oXP/sg5cRZmEps58WrxmxLp2JZx8xIud4kB6STxoeE uPG9Zylxr8QlGKqnWVzKQgRCRZr8WGoZoAOnBTzLi0sT8vuGNp1M3VwXkDsKydJs31O0 u4TyVCRlnWaCc1YfCssJainbdvQHcrEQcUe0iS69Y6PYNeTnZ8cg/AeqnSRP+VD2xAZL A68w== 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=y8uuibxb58iRCA/J2p2bU1MN3u5V+r1DOb4ls1AYbjw=; fh=dhYqdE0Gk6/10LVWWR96/f+ctSsMOycSCfKUpC/guxc=; b=CoS0CVRuJwbcXdwXotcOK5a3BgQJZWhr66eSrsVIYP3OVhWQzqjCgo4+UrOXXkYfog e33bNbiDvE6T6JBtzAk/NUomzuYAdNXs81iQfaPrE5BoKk8u6+526TlhTeSy9LqJNrpc 5nvAuoOAbG5OFdbiNnXD162Kox+eOZ8x38ZShJWSazSJotOQ5ND9JhOcXtMBhKzKbulU B1l+wQ1MMyvRtBRgteyDr9+CPwVByKj5Xj6nv0y+msVdFKKAYovWoan5olNcyQ8ECCGv 0Cou8rT3V2ZLzy3KNR8tkTHNI/URI1vWBtdvvT7CdMY4dyj1HaP6pnkoZIXqtP1iiYMN VWHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Alcgnt/B"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id c13-20020a056a000acd00b006cb7f9ddbd5si15637615pfl.321.2023.11.29.16.42.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 16:42:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Alcgnt/B"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 17DAE802B14E; Wed, 29 Nov 2023 16:42:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234861AbjK3AmW (ORCPT + 99 others); Wed, 29 Nov 2023 19:42:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232995AbjK3AmV (ORCPT ); Wed, 29 Nov 2023 19:42:21 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 391FD1B3 for ; Wed, 29 Nov 2023 16:42:27 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE9A2C433C8; Thu, 30 Nov 2023 00:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701304946; bh=8nzlEGlTs23WnuWO60c1e2cluA21UQcXiLq8MdrlUq4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Alcgnt/BtUoUp4InDQMZgs/IX+8gQPxIZcPXGUc0udT5b6Tq/haKiZm04X93M1BzD Cg2H1jkgvc5R6esOS+bKTc/iFFT9zDGZs+aQqPHL5H6aNrRhLBIV6v3ckvPghTNTiw ZKEes9qGssNEGFZXCGEqr1E0pfLLZ0qlTxIvKO1wxGHBL/kg0agO2xr80k+T196MZY IasBxgkod+kYtMMOaFuZg7Mv2JV5d2Ji2lJMMPNjpFO7MITDIg8DovvYNYpkFwdNcl NDOJAyyQw273ZvY0UoQUICBsc6cWBZQ6iz0LH4Kcv7JjIf502bEGHIiPPd18e74MH2 ErMz8UgWXsP/A== Date: Wed, 29 Nov 2023 17:42:24 -0700 From: Nathan Chancellor To: Conor Dooley Cc: Samuel Holland , Palmer Dabbelt , Harry Wentland , Leo Li , Rodrigo Siqueira , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , Christian =?iso-8859-1?Q?K=F6nig?= , Alex Deucher , Pan Xinhui , Daniel Vetter , amd-gfx@lists.freedesktop.org, llvm@lists.linux.dev, arnd@arndb.de Subject: Re: [PATCH 3/3] drm/amd/display: Support DRM_AMD_DC_FP on RISC-V Message-ID: <20231130004224.GE2513828@dev-arch.thelio-3990X> References: <20231122030621.3759313-1-samuel.holland@sifive.com> <20231122030621.3759313-4-samuel.holland@sifive.com> <20231123-headdress-mold-0dd7a74477f7@wendy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123-headdress-mold-0dd7a74477f7@wendy> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 29 Nov 2023 16:42:38 -0800 (PST) On Thu, Nov 23, 2023 at 02:23:01PM +0000, Conor Dooley wrote: > On Tue, Nov 21, 2023 at 07:05:15PM -0800, Samuel Holland wrote: > > RISC-V uses kernel_fpu_begin()/kernel_fpu_end() like several other > > architectures. Enabling hardware FP requires overriding the ISA string > > for the relevant compilation units. > > Ah yes, bringing the joy of frame-larger-than warnings to RISC-V: > ../drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c:58:13: warning: stack frame size (2416) exceeds limit (2048) in 'DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation' [-Wframe-larger-than] :( > Nathan, have you given up on these being sorted out? Does your configuration have KASAN (I don't think RISC-V supports KCSAN)? It is possible that dml/dcn32 needs something similar to commit 6740ec97bcdb ("drm/amd/display: Increase frame warning limit with KASAN or KCSAN in dml2")? I am not really interested in playing whack-a-mole with these warnings like I have done in the past for the reasons I outlined here: https://lore.kernel.org/20231019205117.GA839902@dev-arch.thelio-3990X/ > Also, what on earth is that function name, it exceeds 80 characters > before even considering anything else? Actually, I don't think I want > to know. Welcome to "gcc-parsable HW gospel, coming straight from HW engineers" :) Cheers, Nathan