Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp29003pxb; Fri, 15 Jan 2021 06:59:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHdyZyMo0JxFl8iQk8I63bAbbJ/nh9HvVxUHr9AimCVdL8E9EI9uoDHw3gNJHDiWJ9KpsP X-Received: by 2002:a17:906:971a:: with SMTP id k26mr9513556ejx.515.1610722774743; Fri, 15 Jan 2021 06:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610722774; cv=none; d=google.com; s=arc-20160816; b=G0N8g2oKV+izUw63SZbYhKyiJqPjst83So62B/5DDC88i7dxjGjgIiLQT3J7mPM5OI 5NQsDP75XmchPB8+D4BZXV56hjeQw2JWTTMiKIZpVlAIA3Mar51BAokqmgyV6t0ekbc/ v3xo0Vep697PN96Vu6EHs33QqvyU5s5MGO73e2CFXov6RM2QYcubslddF6tMTehS3/V/ vuqq2xB28hDOj85Eq1c5lS68nGly5+iHYxQYHRDujHTadsRF7QstX8cX0ipPde57Vn/Q A83wpBbjN2qkNCPG5LEKPcMgpnEZ9fywoZ5IL3bj0I8eZJyvu7MQiqX7O9T0VHc8enwk 9uhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NO0K0dXCtZelpuNUhec8CuaDzfXTrQY8G8j/RO4RKUQ=; b=tyTpfwREmdGy6gSCOpLEbDSh09uYXYdUYAYzOq9u9SRT6mRSPRO+0uvPLw0EiHTh6z gk81BOHtfjOvR11K6nnKdXnN0vQ3Fh8+2DdJE6H31G7JImR4WCm8TfhIhBdrdvWApcDA roRZhh/YquzD9TACrk07Lg7BZRvTs8vcJ35Xaw55DMFDNxVeX80dFqVQRx7nS/nW9Z7b jZA5QXzyRyTIMhstIYFSAH7KvSmoFnX3MvvI/pRMkdLIpPl2PuXJBzVFy8+1HZcGHSuw AV7dF9ORtUqjcNFa+UZ7pfJ5en2FDSMMEoP9PxM2RpEHNAayfsW5OiazhmG/V99xFOzc pu6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FmdnjoGe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq25si1705384ejb.85.2021.01.15.06.59.08; Fri, 15 Jan 2021 06:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FmdnjoGe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728906AbhAOO52 (ORCPT + 99 others); Fri, 15 Jan 2021 09:57:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726402AbhAOO52 (ORCPT ); Fri, 15 Jan 2021 09:57:28 -0500 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7546C061757; Fri, 15 Jan 2021 06:56:47 -0800 (PST) Received: by mail-oo1-xc2d.google.com with SMTP id x203so2253086ooa.9; Fri, 15 Jan 2021 06:56:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NO0K0dXCtZelpuNUhec8CuaDzfXTrQY8G8j/RO4RKUQ=; b=FmdnjoGeom+NzYjZMF8xspzWt7P4wbaYEKKf4CoWFs3Kdkd0A87H5cVKvHJ0Bte5sR RBoMKG6eibhcoufqOS9aUBHTUScKunWrFdK73ZroK4w/fgwm64bAWF680q3D5t4uH69j Pz7K5AlL8RflekVrpU5iwcyz8uhTibWljAJ9HJOHIRD1JuY8isVS9AesQAt4K+zpoonY naozFAfBXLDWh/l6aLqCxrLMZ3TuWwEe0zESi4qRkY12Plo5Kx4MkaHW9Y8lf6QWMd0E LbUtjaqLnBBtFQC+iLKe5UaVEBAVJV1o72PeVwDDCLsJr2nJzNJPGA5MScBQ+ZcmyC1/ DeYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NO0K0dXCtZelpuNUhec8CuaDzfXTrQY8G8j/RO4RKUQ=; b=n2o1N2DmJzRlC/6mfJqorOF8K/K8AeVoqVBYcFKViRE8pwGeinjrY+R9FvX7gW/Ezh zF/WnfYq/d2dUBCMtZk25PEvkvRbacI39PyopcPh3ukXjVbYI/2fk9D/q25Bmf+cOFCS 3LPxnE8akHgj8JUZqoDsBveWyo5MWYhbPX2vk3OkbQc8zsQoTAgAvHbV+dsEWt6BTK9o urWcUyWpV/uyt7bJV+IfP+NUGmt7ZgSyNmvVT/LBiWxopm0aGDlKKwGOM39f9NcVH6ZM vvjihAwF/CDxlTAwB1vchx2niwSw3cVjrRxMPNx616tBXVFCXTwNkH/HbLiXxufAWpxa t8zw== X-Gm-Message-State: AOAM531D6a9kiSpDtMjJT1SQUEu5YHQQFg2PWzfxQnl9g1Mboy51f8bn 8ZA2UJ5PayWuV4GHu/OnVdHJ7enCE+7gjD1OZVk= X-Received: by 2002:a4a:a2c5:: with SMTP id r5mr8405442ool.72.1610722606624; Fri, 15 Jan 2021 06:56:46 -0800 (PST) MIME-Version: 1.0 References: <20210115163505.4132a5b3@canb.auug.org.au> <20210115055703.GA1258199@hr-amd> In-Reply-To: From: Alex Deucher Date: Fri, 15 Jan 2021 09:56:35 -0500 Message-ID: Subject: Re: linux-next: build failure after merge of the amdgpu tree To: "Huang, Ray" Cc: Stephen Rothwell , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 3:46 AM Huang, Ray wrote: > > [AMD Public Use] > > Could you please help to check whether this patch can fix the issue? Looks good. Might want to add a comment where you set cpu_core_num that this is only used on APUs which are x86 only. Reviewed-by: Alex Deucher > > Thanks, > Ray > > -----Original Message----- > From: Huang, Ray > Sent: Friday, January 15, 2021 1:57 PM > To: Stephen Rothwell > Cc: Alex Deucher ; Linux Kernel Mailing List ; Linux Next Mailing List > Subject: Re: linux-next: build failure after merge of the amdgpu tree > > On Fri, Jan 15, 2021 at 01:35:05PM +0800, Stephen Rothwell wrote: > > Hi all, > > > > After merging the amdgpu tree, today's linux-next build (powerpc > > allyesconfig) failed like this: > > > > drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function 'vangogh_get_smu_metrics_data': > > drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:300:10: error: 'boot_cpu_data' undeclared (first use in this function); did you mean 'boot_cpuid'? > > Ah, vangogh is an x86 cpu, let me look at this issue. > > Could you share me the config file you tested? > > Thanks, > Ray > > > 300 | boot_cpu_data.x86_max_cores * sizeof(uint16_t)); > > | ^~~~~~~~~~~~~ > > | boot_cpuid > > drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function 'vangogh_read_sensor': > > drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:1320:11: error: 'boot_cpu_data' undeclared (first use in this function); did you mean 'boot_cpuid'? > > 1320 | *size = boot_cpu_data.x86_max_cores * sizeof(uint16_t); > > | ^~~~~~~~~~~~~ > > | boot_cpuid > > drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function 'vangogh_od_edit_dpm_table': > > drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:1460:19: error: 'boot_cpu_data' undeclared (first use in this function); did you mean 'boot_cpuid'? > > 1460 | if (input[0] >= boot_cpu_data.x86_max_cores) { > > | ^~~~~~~~~~~~~ > > | boot_cpuid > > > > Caused by commits > > > > 517cb957c43b ("drm/amd/pm: implement the processor clocks which read by metric") > > 0d90d0ddd10e ("drm/amd/pm: implement processor fine grain feature for vangogh (v3)") > > > > The only thing I could do easily is to disable CONFIG_DRM_AMDGPU for today. > > > > -- > > Cheers, > > Stephen Rothwell >