Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp561799lqb; Fri, 24 May 2024 06:54:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxDJhbkZ26Y10Ukt3EUB2sURC6xSayDZK42WQfuu/vLEmLPRf5Bs9qgsm5Mx57eRkHnU7h/gIc0GBeSoBhRXv0SfrL7TkNsp9JsSX0yA== X-Google-Smtp-Source: AGHT+IFCzzwdDLK0RT88TeOIYBvsn+Yqm0G+5yPRfFcmOALi3ui6c5vZihrzmaH7+5i71Ee/8ZxW X-Received: by 2002:a05:6a20:9684:b0:1a9:5b3f:f139 with SMTP id adf61e73a8af0-1b212d33064mr2473729637.25.1716558845420; Fri, 24 May 2024 06:54:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716558845; cv=pass; d=google.com; s=arc-20160816; b=qW8MYCWJRbFvlwokacH6WrTCEC8eBf82hEZBcWFmKsZLQYqaInmalS9BPpTJEhIFib 9V/8cER7y+DHDKCTyH1jZVYNWG/tHUGo7/jRTotDt7Ysu4ZbRXtrj8vOfzd2WOPPnuZa gIDp0M5lwT10nLM0dfRVY0vYy6hm3UhgpB6EWjwojJgViVb/3/WFKQaDkXft+SqhMmsL NpcpzIjq4ceySienC8zYazoYxFSLqmSlBsiwHCcD/GZYnZw/wE3x+i6Kqyq9JJIhKuOU gcRjdXrSySVSYWTDOk0IvTIRnQNKUpj3O9zyGaDWxrYs+LkZ1wgN2Pac7ZMGcCr8GnnA bNLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=b0/TSFREZaBctG5vlYD0Hmuh0/DxJ4bPlmcsHcY/PdU=; fh=5V/nIZpo7O/+XzbGCWj8pRUtG5yhg1p/wIBmnCiO9hI=; b=FdtwQ8nPiYT00qC7Jb6yM5eemIIOcHTy3GwlRGxZmrBczkACIdMaQ9Fm4FQXVFzSH3 K7Lyv6pZlMtK/2Bur06ByO6wvYpaWLdmOtLXiL8suZGWekzcW4QQMAOBsv2W+5Y7wWZd ubmCOmF4LWeuJKSOOxlnHJaenw2zUhlyYWYKc2ngwk0d97JCk+aYJCoVa/791pw6smBT c2gLUhqrrYceyY6RLUHhhi64JI9u89UUoOISpn5y6PmnarUUsuX+0G1i8pbz5mT6hS/M qfYUaS85diXxubJMaKVzNwUtyATH7+IPRl0OJ6VaRiHCQuHkYJ9OuPT/wvrm7dpSFa6X 0HqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WCNjZdbv; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188753-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fcfde94bsi1455748b3a.167.2024.05.24.06.54.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 06:54:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WCNjZdbv; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188753-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1743DB2154D for ; Fri, 24 May 2024 13:54:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71FAC12C486; Fri, 24 May 2024 13:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WCNjZdbv" Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C6B712C47C; Fri, 24 May 2024 13:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716558801; cv=none; b=m/nomKgi52ts1mYL1s7ScOsg8tnYJ5uSepeUYxAfvZVojhxtxH9QgdFzeJNeFO7zk30BpJQgKR6P2k+3Hm4NFszXd/22hzVhmMBOxNbQnOk9gDVe/mC3m6erYhqr3Pdxzwn808brmO9Cd8p244fQVoCGE/AK+8RT+KDuwaPmTlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716558801; c=relaxed/simple; bh=mV+N6Vuao2DF+3LDDtNXzl30dnyKutNjJGhqc6i6P+I=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=fOnciumaCGEk2ta+/waDbTfbNpn3Eggg+u57TsfHWyDFnr2dtEnuIG5RDV62EJYxDyzWOnfeYBm2aXc2jm7jc9MvvhoQxFaCCJgonrc3Oy8yq1V9Uf/f/pDZORvPE4Xe5BNtUbwziKPp7W5CEf+NjIzX4qBIz6gwC7cCoa91Omc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WCNjZdbv; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6f8eba8dcfcso803880b3a.3; Fri, 24 May 2024 06:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716558799; x=1717163599; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=b0/TSFREZaBctG5vlYD0Hmuh0/DxJ4bPlmcsHcY/PdU=; b=WCNjZdbv69OaT8A2HoNLPgwbcApDDW1D09UA5W9YJQzzMn1n/SBYKR+5bZQwNb0+23 ICiVtOpVbTPZYwIaHWkctl+ZKH36x7O0bzMaLJgS4dHHClQjxTIVjbi5fI5b+Z0pJOlP aKCsXeQ/jnP9SFc4LSRf9Xu6ZXcuCaL7bAe4kISMOkAkG1OuN2njOT2eDZVBMKQbYdu7 1rMOi3OIQNIS2+VpFmfgCp4rgeu2A8JeJQPiB7wGC8JL0p8iHgB/5VZDZxXVC7QpkR5+ qOnpv8g6Kj+bpFk56kW2BJcf9bMQZGLUMqmb/eVzVkEAvHpZFADuAyh5oA0/AnsL+c8E Ib8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716558799; x=1717163599; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=b0/TSFREZaBctG5vlYD0Hmuh0/DxJ4bPlmcsHcY/PdU=; b=wY/Fslk+IgXUWovrWy26udycEq2B1W0ctdOB175GJUrB7i/o5XC4qbrTHfYmprGyar MtAXQFQCkZsm5jLKbAhojqIel8F8kk0MetMyKx/aYG4Ojw2eNsATKI4+FNS82ldsVnj6 bsuOnvjUxWtraxbjeQfZofHRCEkTQDnnm79krQ6+cI2OCPbxabU8rC8QDn7iJiQkvTi3 bDoWeCFIGAYRE0KZDbVrDJEfiH1hLHIJfrxDQbmuPVcqWsg/yAqFq4kbnvpBIwX788w+ 6VAjHuT8aB135e6gv6T6x64DXtIiCIphctJjxoGINxCkO5Rh3utGTksomLyYZ2ju6rTQ EXzQ== X-Forwarded-Encrypted: i=1; AJvYcCWunFPUfH48KPX1U3HE43a+0OG04Ii1Bof3S/7z7+S5/gCXOEORpjPobOlaHRLhDPjm7NYHP7AGtHq8QXsORot5M/5Q+ZnAawbLGMUwIUhgLiXJ/o4z1ZatHEe43O2yoyqYpqkEesglRw== X-Gm-Message-State: AOJu0Ywyt8ae1QH2WYU8QhBVlVsW4KE3T/zu9uV0BlOgj4PozXAjOx4o gvf7K2IFB2uLq4tVFrvlxisR6/SHW7tmWAoO0bFAj0TWk+RN1kJg X-Received: by 2002:a05:6a21:99a4:b0:1a9:c4ca:dc74 with SMTP id adf61e73a8af0-1b212ce1f54mr3260189637.5.1716558799320; Fri, 24 May 2024 06:53:19 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fc057e52sm1127383b3a.57.2024.05.24.06.53.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 May 2024 06:53:18 -0700 (PDT) Sender: Guenter Roeck Message-ID: <91f8b384-9a6a-4435-9f9a-7a65a7c62bf2@roeck-us.net> Date: Fri, 24 May 2024 06:53:16 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 13/15] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT From: Guenter Roeck To: Alex Deucher Cc: Samuel Holland , Andrew Morton , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, Christoph Hellwig , loongarch@lists.linux.dev, amd-gfx@lists.freedesktop.org, Alex Deucher References: <20240329072441.591471-1-samuel.holland@sifive.com> <20240329072441.591471-14-samuel.holland@sifive.com> <1e088782-418d-41e2-843f-b3d6cd3ab4f7@roeck-us.net> Content-Language: en-US Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0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EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <1e088782-418d-41e2-843f-b3d6cd3ab4f7@roeck-us.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/24/24 06:43, Guenter Roeck wrote: > On 5/24/24 06:18, Alex Deucher wrote: >> On Fri, May 24, 2024 at 9:17 AM Alex Deucher wrote: >>> >>> On Fri, May 24, 2024 at 5:16 AM Guenter Roeck wrote: >>>> >>>> Hi, >>>> >>>> On Fri, Mar 29, 2024 at 12:18:28AM -0700, Samuel Holland wrote: >>>>> Now that all previously-supported architectures select >>>>> ARCH_HAS_KERNEL_FPU_SUPPORT, this code can depend on that symbol instead >>>>> of the existing list of architectures. It can also take advantage of the >>>>> common kernel-mode FPU API and method of adjusting CFLAGS. >>>>> >>>>> Acked-by: Alex Deucher >>>>> Reviewed-by: Christoph Hellwig >>>>> Signed-off-by: Samuel Holland >>>> >>>> With this patch in the mainline kernel, I get the following build error >>>> when trying to build powerpc:ppc32_allmodconfig. >>>> >>>> powerpc64-linux-ld: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.o uses hard float, drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.o uses soft float >>>> powerpc64-linux-ld: failed to merge target specific data of file drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.o >>>> >>>> [ repeated many times ] >>>> >>>> The problem is no longer seen after reverting this patch. >>> >>> Should be fixed with this patch: >>> https://gitlab.freedesktop.org/agd5f/linux/-/commit/5f56be33f33dd1d50b9433f842c879a20dc00f5b >>> Will pull it into my -fixes branch. >>> >> >> Nevermind, this is something else. >> > > Yes, CONFIG_DRM_AMD_DC_FP is enabled in that configuration. > Also, the above patch does not apply upstream; the endif is already in the correct place in the upstream kernel (though the commit introducing it adds a blank line at the end of the file) Guenter