Received: by 10.213.65.68 with SMTP id h4csp4257840imn; Tue, 10 Apr 2018 11:49:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/TVVu6bglV4w7VAVBtWdfzDHWF9a3S9qb5UDQnXuWDyr2Y+ugC+yd+5tIdS7m9isZ7037I X-Received: by 10.99.146.83 with SMTP id s19mr1140766pgn.104.1523386161723; Tue, 10 Apr 2018 11:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523386161; cv=none; d=google.com; s=arc-20160816; b=hioprDo5Hhq4Q1KZQAKzQxChG9DHfqhDf2Ze1wI2RswTVg0ZkwtAdXfMtF/I4hdAHw bmN3+Yt2TPuUroMIFwxzz22YmqHzZNtQOnMqRp5jBTQx7Lmm1vcfw0flkuIl0c4rZU54 HEhGiR0iANs1oe6vceYHwo0/4hAa+J52ElNvaBZm4OTiBO7YPlTL2KXShA55aA3Nfsla flVp8UiauS+svehyWmWwpJPr4foH0p+x2shgfSMy3MVcFxb4MclevCFDPBWdXuItxF8+ rHVxtFAoFvraxvTSvoNHxt+Y0p/hGlpw5v7Cx/PpF5fQ/2bUAEfyAkjP94ppeSq7xdob v2/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=jeIFLSPxvZp5TzpfgQUMel3g04Bxh/vXBiknJUnxh2A=; b=ANyVDRPOvZejJCZ6X5T5cH9JFyIP7TOGcat8IYHS/Vt4OqJTyWW2gq0B3ojbIJavx5 t7mBIZ430Ai7R9FXZHjxleDof9O+TxI9yB4VsKJuAKssZNTh6C/V6l1mJFut2wSu8ExO iiGnd4by2+mfjnTBLrsXSZsqB4Yqx6V7CyQYX7AE2vbmbCdxjhxmqDPnhB7v9eCKQvaw HNdihkWoh/4DT61Csov/N2/9bEuVMcwWkd+qEyqFoZAgWhWWkMK/GOvvHUkJJeYDG0C0 8Jt8Xy+JLpesqUZ4BigOT29sZeYyp42FHT5ctG9LRXUvHGywEEdyv+OLEw4F3U8udvfn RtjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=igpNIkCR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9-v6si3201535plr.64.2018.04.10.11.48.44; Tue, 10 Apr 2018 11:49:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=igpNIkCR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752739AbeDJSnF (ORCPT + 99 others); Tue, 10 Apr 2018 14:43:05 -0400 Received: from mail-by2nam01on0069.outbound.protection.outlook.com ([104.47.34.69]:39424 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751770AbeDJSnD (ORCPT ); Tue, 10 Apr 2018 14:43:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jeIFLSPxvZp5TzpfgQUMel3g04Bxh/vXBiknJUnxh2A=; b=igpNIkCRsuVjy87S/2nD2oFMkzCeC1z3WwKXCAaUp9CFgspl3mL7/Oc0l+kkPiMSk4MXcaaQc3heqfXkXeT4vYjFBH2sMWfvHHFfzkFjhFVC6fm++MFTCipnD6NRbfxvObX9OavZI7Yku9+yoIufqLXyeixEQYEQszc7li7lDsE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Felix.Kuehling@amd.com; Received: from [172.27.225.16] (165.204.55.251) by BN6PR12MB1697.namprd12.prod.outlook.com (2603:10b6:404:105::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.675.10; Tue, 10 Apr 2018 18:42:58 +0000 Subject: Re: [PATCH] drm/amdkfd: Remove vla To: =?UTF-8?Q?Christian_K=c3=b6nig?= , Laura Abbott , Oded Gabbay , Alex Deucher , "David (ChunMing) Zhou" Cc: Kees Cook , kernel-hardening@lists.openwall.com, David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org References: <20180409210620.3647-1-labbott@redhat.com> <71ff5078-713c-ff8b-8c8d-6d24a7d84c02@amd.com> From: Felix Kuehling Organization: AMD Inc. Message-ID: Date: Tue, 10 Apr 2018 14:42:24 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <71ff5078-713c-ff8b-8c8d-6d24a7d84c02@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-CA X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: YQXPR0101CA0059.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:14::36) To BN6PR12MB1697.namprd12.prod.outlook.com (2603:10b6:404:105::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BN6PR12MB1697; X-Micro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VB3e210eol0d+IGtpzSuoK6ptsmqb7reCkHTdAsaWeo26FWR51WH1X3AHKGLRs23l95adclHxcgeEwC9W8uiUsy0ErludjwYlin1SQUKyAOE8nEXTFZIrv6CYYfENfVo9egLtwAiOMxQVbCI2KnpGoR9ssYLmtODHpMI4QUoQrrrs6LjIB1VS26pfEixcwmgQB51y+RjIJ5Lpx+OtMYNdBBTOAmYlNfub7MLwycbsC2ObIXErS8JDqjRviyK0PvWjIAl7hOidiLt54WZsMWsS/K3p492zWGkkZZ+wLjAcR0NTEb6DUfEBSFN38+AReGK51ypPktfi6hMq1HalrUTEp4iLF970kC94MPZX/n0Q9KfVGdm75GvTLrs;4:1XI3DfDJT5gbfPVTwzZXpspa4q7PU46U77OBQ0P7zEJ9dHvOTm7nJffOw8e25KzmzjkB3ktQIICayIgehK2Fx3E5gEeKTFyXk66cLZ0Kx9U3g0tMQuLlveY3RiKTwAx1KNYq86E2GqzmHEjIiTrPTK/Miim6Al21fL6gTsQ5NCOlYF5rV2rvuB8RF+izxr+OX3VO/bLGLvfYIROEhTT2OAbuf9WmdtwSPJwlflbil6bGj0XI2sl7Lc3Vw1a+2vlyqC7h/8GQ0bbWRt+p6QeeNWT1su1++y3JJltWVqRQ8olyAGuJkeBHeItdWFxF2Hn2sfvqCOurLCpWf2YtP5z5duEny63gtlikxXamkziFHIQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(15185016700835)(217544274631240); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:BN6PR12MB1697;BCL:0;PCL:0;RULEID:;SRVR:BN6PR12MB1697; X-Forefront-PRVS: 0638FD5066 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(376002)(39380400002)(39860400002)(396003)(366004)(346002)(189003)(199004)(377424004)(6306002)(16576012)(58126008)(66066001)(229853002)(65956001)(65806001)(478600001)(2906002)(4326008)(25786009)(72206003)(54906003)(316002)(110136005)(68736007)(476003)(446003)(86362001)(956004)(50466002)(386003)(53546011)(31696002)(8676002)(81156014)(81166006)(486006)(6636002)(8936002)(6666003)(2616005)(64126003)(47776003)(11346002)(186003)(2486003)(52116002)(53936002)(59450400001)(26005)(16526019)(23676004)(105586002)(52146003)(966005)(7736002)(6246003)(36916002)(76176011)(31686004)(6116002)(3846002)(2870700001)(5660300001)(305945005)(36756003)(39060400002)(97736004)(65826007)(106356001)(77096007)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1697;H:[172.27.225.16];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxNjk3OzIzOnFiaEl0OXM2WTg5WUFHcUpLcHc3a2xodk1F?= =?utf-8?B?K3UzWUs4SGdRNVp6NDIrMHo5bTBMZlNYdktIUGI1UTdoVDUwODcvclB5NUM4?= =?utf-8?B?RlU5N29XNTBraW5RdWdqSjlzNVFtdUczR3J2QSs1ajVWRHBtVlZQRU94TXh0?= =?utf-8?B?TFFGaGJjRThtRnJhWGZzeVRpbHhDQkYrN2RZQ2dCbHVNOU9qb3l5NEdEd0pW?= =?utf-8?B?NHgrSTBYcmRiYVFwRmlCSGVmTTVEbFUzQ0NIUVJLWEF6dnBHWGNvMnBwb0Qv?= =?utf-8?B?UGo2em44NG5ZM3lydDdMM2lETWxiL0RORVRmWkp3Vmh1NW5SbGRjSlhKbHpr?= =?utf-8?B?N1htMkthVmFnblY3TUNBVlU3ejYrbW5UakhOajZLdDlnYWVRempRTEk5QjAy?= =?utf-8?B?OW9BMVI1dVJyVy9GSFVBT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=?= X-Microsoft-Antispam-Message-Info: +PCBDD2/Hx+wunj6UZDIbEnYMXjWyJ07sV9qIQGlQNxE4IhD7Rd6CSSCkgKYSM29igSugdDwz/dDooEwgYQfnx8RcQKrKglkipOQQNoN13YLph6Ssl2nMVzC9Gf2b8q9+IXDuTv0SIN23yR8NgTWwz5x1pGLC91MLn1Vqnq48oypnGByAXpB/bUpzxynJZzk X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1697;6:f343pXv4x8Ik7jKvMTdTlp+86OtxoMVgdIzFG4r/tE7WEoeE/waowDKGtrZTSA7qqXskjSmJ4ICnnDuThz/Hy1ZAgI3N1D2Ho+0Qk5RsMUQnfviId8aKCcKAJaR3qX7/TS714RtE/jmxaqol3OhBx46fDtkXscOqSV5yxFQYVcU2OOctZekAgk6tA/X4NsUIugfN2S2/pYK5VUnCXy6DwOzFjg2pzoUy5Z5fVKVaXw40AvAXmqNKe6itlKPZ5Trh5JN1ZXOzFIPihEWFCBYQQNU8ANgSeqYjmiQMP8Ed9vSIxFC5UTsokI4PhIOUC2cwWAzXUqXRVVwVZtyHVTlV5K0J1JL4EiVv1hXIX0T9cOsPZcTgXEVpzyHXfSXVaob3DpyerCrf7Ivn0SZbidd8amTzXLRumkfzP4k74h2VmjGDHMvyMEkATDGvK8JU0d2XR8ybSXRR9EVh4XOKzTuaZg==;5:3s1wg8fTjCUNKCIuNgAmGANdGfaDuvDH6JxLvlX4Fq3RgAZUCMOTEPJ5SawCTu/s2+w44R8uw5NYzNfQe2M0pOa2iPWk7m8LDZpZkzsSvDGAhly4HFhgirFUIapycQb+cuLxgkJwONgvgNCKWe0q0jkTGHpKPYWFSbIfN8UIeo4=;24:nmG8NMTFDM5lnt9+09zCCjfh+U8hG40h1e3sQ5/V8dVZj8tf404rEGkQsxTKqWksN2oI1BbRpNAQE6Bnx8EDrdGe9I31/2Nanqt4haL8RsQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1697;7:JKDGQflh//7AM21igFYBGemyNe5suNl3QDOrrtBRdzw9hg/Ow3x//oSFi5Y4xejKGgJGfCvJ64fRqREYGjd7TG221BjW6ryOdWghZdUkf3VNJAZ6zbf4/kpZujtV8zDiA91avUTv3Dtjf1bquPvziOaN51I8XBDtSiChU/79aozS5/3UFZdR0qlpzJkZgsv+bcIbzA45ufwafYizasTflJKCyhtnIDkDaAlh4yW16JGv/dNVx0MY1/eTEKH/LSDi;20:sNufJZhZutU5In6NUXM8I6+TTGMjFWOwo8VocKeTIg9tbKXsRZyGENQ4TcS78jFR8G/u8fpCAvMorHtc1XtjJhIwfgnXwQNy2RlRmdsS4nP+De9dvM42bqZfcWTKeQey3KtQJib9UieJ/j+3SdBhzl/razhzDU8NYXkQ1wMljMiQQ8245hB/jzzJXysCIr7L9mLS2Oz+JQj0vROxiHe2EYt4MA9lmGuBr53aLHAJq7zjThYXcUWFg7YOPKf6sia1 X-MS-Office365-Filtering-Correlation-Id: 6761b032-f73b-4dad-80cb-08d59f12e27f X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2018 18:42:58.8417 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6761b032-f73b-4dad-80cb-08d59f12e27f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1697 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Christian for catching that. I'm working on a patch series to upstream Vega10 support, about 95% done. It will add this ASIC info for Vega10: static const struct kfd_device_info vega10_device_info = { .asic_family = CHIP_VEGA10, .max_pasid_bits = 16, .max_no_of_hqd = 24, .doorbell_size = 8, .ih_ring_entry_size = 8 * sizeof(uint32_t), /* !!! IH ring entry size is bigger on Vega10 !!! */ .event_interrupt_class = &event_interrupt_class_v9, .num_of_watch_points = 4, .mqd_size_aligned = MQD_SIZE_ALIGNED, .supports_cwsr = true, .needs_iommu_device = false, .needs_pci_atomics = false, }; If you change it to uint32_t ih_ring_entry[8] and update the check, it should be reasonably future proof. Regards,   Felix On 2018-04-10 02:38 AM, Christian König wrote: > Am 09.04.2018 um 23:06 schrieb Laura Abbott: >> There's an ongoing effort to remove VLAs[1] from the kernel to >> eventually >> turn on -Wvla. The single VLA usage in the amdkfd driver is actually >> constant across all current platforms. > > Actually that isn't correct. > > Could be that we haven't upstreamed KFD support for them, but Vega10 > have a different interrupt ring entry size and so would cause the > error message here. > >> Switch to a constant size array >> instead. > > I would say to just make make the array bigger. > > Regards, > Christian. > >> >> [1] https://lkml.org/lkml/2018/3/7/621 >> >> Signed-off-by: Laura Abbott >> --- >>   drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c | 8 +++++--- >>   1 file changed, 5 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c >> b/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c >> index 035c351f47c5..c9863858f343 100644 >> --- a/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c >> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c >> @@ -139,10 +139,12 @@ static void interrupt_wq(struct work_struct *work) >>   { >>       struct kfd_dev *dev = container_of(work, struct kfd_dev, >>                           interrupt_work); >> +    uint32_t ih_ring_entry[4]; >>   -    uint32_t ih_ring_entry[DIV_ROUND_UP( >> -                dev->device_info->ih_ring_entry_size, >> -                sizeof(uint32_t))]; >> +    if (dev->device_info->ih_ring_entry_size > (4 * >> sizeof(uint32_t))) { >> +        dev_err(kfd_chardev(), "Ring entry too small\n"); >> +        return; >> +    } >>         while (dequeue_ih_ring_entry(dev, ih_ring_entry)) >>           dev->device_info->event_interrupt_class->interrupt_wq(dev, > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx