Received: by 10.192.165.156 with SMTP id m28csp875570imm; Wed, 11 Apr 2018 08:35:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/65T/mRjaV/EIIPczIafJXQubnB15ed4ytIAULB3XjSzZj8UBp4lC+3JrC+VtXzn+H13Og X-Received: by 10.99.114.2 with SMTP id n2mr3892628pgc.274.1523460918108; Wed, 11 Apr 2018 08:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523460918; cv=none; d=google.com; s=arc-20160816; b=rlQhnXnXazNqJ382T20Rzls5dIRUjWspg1LibZui+uUVOFHRxSeCYL8XT52XHOHu4Y P4PFfeguQOxZFIhN1ZzQCQ+x+GCktkq7iUxRK0GhcLOXdSUFpLrTC5h7G8ezfbrBrIfh QSDurICgFHvvlJJ+hIQNheMMHxCjvecyvpJbNEoQY7q90kMxocGI8rzfsCnNN+dB/TTB ziHg095wbKLCh7eyUV9wcdBO16hBOAkik6aHQkm3eXOedw1nXt+BM6YKXg28NiT6SmoS dqfUcANTvbO4d7fyAtF45k6/x8ibeNj9nb7LxODojQTPw+pXwOm4OCI5TJnw4kcroUbo WXnw== 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=ZqWLmX7KJOWYFIw/L7so1ViL01KEktdU012fPLLF2yc=; b=EsHrSnlrOXllQLleO5+fRTzY5DxpK6Lfd76wXfGxXCdgXHTCvBL0ai3vTf2fbgBdZb i+oGH0fPxhE9vNKEofxWzbka8a4iZZxXxbgFZnSqvREed3H/k6hXgIOHqfbOmLlWtrVT /k5ridy8zfHRjDkQ3ZNT2uniU+uFI8onFQ0PpQJCjfN+sO4NogiXdqIjA+TVzBs37Qe3 M2blo+T0RlERuFZBYZfJ0aegyIwiPY6BModKl32Blop8xXFk98ioriKyXktPzh6BpEcD FdyAB0wofmQv1+nmo8d/4/YiyFw3I9lAY0KLvd4XY7NOtuqsYcu2Rub7XZMZKRvkyyH7 WhAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=vUqWU+T+; 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 l28si1054575pfk.38.2018.04.11.08.34.40; Wed, 11 Apr 2018 08:35:18 -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=vUqWU+T+; 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 S1752981AbeDKPbR (ORCPT + 99 others); Wed, 11 Apr 2018 11:31:17 -0400 Received: from mail-co1nam03on0083.outbound.protection.outlook.com ([104.47.40.83]:44880 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751491AbeDKPbP (ORCPT ); Wed, 11 Apr 2018 11:31:15 -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=ZqWLmX7KJOWYFIw/L7so1ViL01KEktdU012fPLLF2yc=; b=vUqWU+T+BEo6Griq1qu5aUQcZAxMV+ynqdg7LnxYtylAMelkg+WHDkXgliaoDI19NrmAZngtpO1mauusNkJZo7kTYgdRliX7peofnK0r7J3Fz85P1LBwDCNvXEy+KfLyM7Ds8+rtVgL4Fvpz/cUYs1XjqbsWpfDruI5Ld2w5J2g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Felix.Kuehling@amd.com; Received: from [172.27.225.16] (165.204.55.251) by BN6PR12MB1700.namprd12.prod.outlook.com (2603:10b6:404:106::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.675.10; Wed, 11 Apr 2018 15:31:12 +0000 Subject: Re: [PATCHv2] drm/amdkfd: Remove vla To: Laura Abbott , Oded Gabbay , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "David (ChunMing) Zhou" Cc: David Airlie , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Kees Cook References: <20180411010243.17771-1-labbott@redhat.com> From: Felix Kuehling Organization: AMD Inc. Message-ID: Date: Wed, 11 Apr 2018 11:31:07 -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: <20180411010243.17771-1-labbott@redhat.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: YTOPR0101CA0013.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:15::26) To BN6PR12MB1700.namprd12.prod.outlook.com (2603:10b6:404:106::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020);SRVR:BN6PR12MB1700; X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1700;3:3IVgYoqjnxTw8dqAJWNWB2d/sWWU++584mT5ew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vvfxGRCewJrgicOR7XTwKHCxyRqe4Z41murQgBKdsH3mav8GfnmU6l/immfphnJ5guVQci0cL/XdHl29WRvSu9oFvkoLqjemWkqVk7RynCV/wcvFN7t14Jd8+/j6/cGpS/kEj+jtMqzu8CT28wQzDdOxJ4iD9xy/HfSd860nPAhVzGsqWpKH0/TAwS6lUxjD9wv1bI5vHYNLGFYFjt0pxg1MzwUlmKzj8pGqvAiPrtk/uvsca1Outv34BbZa+GpvjHQ3amDfgytuTN4uruKvzX0P91PqJzFG93bc9iRWvqUO2EP;4:BI+Ht8fAL5LKaIV3yVxEsuDRLbgscgSjJ7Zm79Wk9zdkFEJr2wnYHtdLeSNVwceAsPEPGm/RGmpoDHPhmI5bdy3xd94wAlRlnmNNnymUTKFXSqtjXPoPBs8B+S6A9C03AUmrjhhDRCS59PennqZCd8cbBjTx/lD9tThJ2xaM9axmQ3REupxXwH0TwSIcuWQ6GBfhsrIIlkvTbHK4TL51uvU5hmQvIaIbC/ab2Dn0nqVxtOfXORmqZ/yPpQN9cMSecjiDbFys9/9Dz7tm8SDCRjojDvL5BAuuqvdlM01zFUUJ2PqT9QbcAJvQWOhHe93W6uWD9FuJcgna5rmxTK2e2w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(15185016700835)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:BN6PR12MB1700;BCL:0;PCL:0;RULEID:;SRVR:BN6PR12MB1700; X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(396003)(39380400002)(366004)(376002)(39860400002)(199004)(189003)(377424004)(105586002)(66066001)(65956001)(39060400002)(6306002)(106356001)(53936002)(229853002)(4326008)(25786009)(52116002)(23676004)(2486003)(11346002)(2616005)(76176011)(52146003)(68736007)(47776003)(956004)(53546011)(26005)(97736004)(31686004)(6246003)(446003)(59450400001)(486006)(476003)(386003)(86362001)(65806001)(31696002)(36916002)(16576012)(36756003)(7736002)(81166006)(8936002)(54906003)(50466002)(81156014)(8676002)(305945005)(186003)(5660300001)(72206003)(58126008)(110136005)(65826007)(16526019)(77096007)(316002)(478600001)(966005)(64126003)(2906002)(2870700001)(6116002)(6486002)(6666003)(3846002)(6636002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1700;H:[172.27.225.16];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxNzAwOzIzOnNremtSRU5lNFNlU21zbE8xbGFuYzhPRXVs?= =?utf-8?B?bjlDaGhmejV0czNybFZGQ0dEQ1hpN2ZEeVB4bXIxTFlIRjhYMUl4Z2FhTnVv?= =?utf-8?B?V1cxVnhGeVpxeWVFTU9FbWJJeHp2VXpOcysyTHNIVHcrL2RUS2Q2Q281TDZp?= =?utf-8?B?bTdDbXdJTEYrNGlidGVXMHJGdnIwRTFzNUhWbmRwd3hzd1FLbnk4ZE5ISW5m?= =?utf-8?B?QXg2YXhyMXF5Y1ZzY2RpZ1M2SGtLZjBoU3BuVDR3QlNaTnBmTXFWNFhhWGUw?= =?utf-8?B?NlBTT1NkOGRLZHEzVUhQRGhjYmExdTF2ekllcUpSZkdkTWtSUG4rNWorZUpJ?= =?utf-8?B?TDBIU2VYa0wzaDZGbE0wYUQxeHd5S2c3akJzTWsxa1dWbTVadWNEZ2hqRUM1?= =?utf-8?B?bVNWNkM5dFF0WE1DYUcvaTZ5VUgvZzkrNXlNTDRnM1JMcVB3M2ZiVWt0Vmky?= =?utf-8?B?TjY5Ym5HVTQ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KKJFBltkg5GDBm0z/yh8Hmsvf4VmfbPFh8FpxKnigyUwDHFMo54R77Sg+Q465EHGqSxpGPgZ2uQi8s+p4DSKfxfC3WQhRpaqysHU+wKtL0OP9+MANHI X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1700;6:HSi1DZDXq+aJ71yToY7G+fP9yk+xPHESbIQejapA3/lb+fnUHNiEtUSM4TnbIf69gujnWHKrPo3R87hawjHZ0RRSyhksR5FSUnYANC8JtQKRDIiTCBymuJoRg/A2FER2N22QQsIb9dcJbCxylUbUoXvBMVpnigvgYPHCnmsBrz50qIXUCvYd5501P1DuLXamKkrd7lY216yNGbn7vN+GRyPGcIEPTxok8hrX/Bi/wZakserzUSrDehQZM0vL+fDr69pGqlwe3Qe+N/QAFyl8Rh9PzLyoy3WaIqXsphmTtABOKvfi2rBNNhAeGe7Ixwbq11/koOFs87Rinm1W66LxZMlJbWJ+ZBq5VGJYiLbazS5bP6C+foePDBsRJmloX+Bv9FrXevM3jvQ8E7R2ApMdvSzhoKp8pq9EPh54+vXXBFBTGokYrprWWXZyGbFLXBipCsQFjsDkwKG+TLb24T0XSQ==;5:MfOBzYCIRC/xqkVpygf+Tg/qZAGqlYQWDD97V1yGiOicbyNaJZWzF6ibD7zNrxuvS1p3S31+tyYZph+PEXv+M1Hd1SLxmwvLmgM6/VvrUn3LboeGD6b+BY7znEsZP62/gmLCnF+EVLQAPseZ7SNWxQD/auIcDQf2zKi5MCWdHmw=;24:QiPpzEVhmxpHpezyR/mxsHZqJQxfdyuEITxZ1OdrPsnskx8hgjoqWulr7ix2+G220790kpl/Mnw1kbpjaC1rxJJZFKqTQavCG1OmwSuRtHc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1700;7:MZrlf4pB5+Drk029vC5V23Iu6Kg3HuuAMOANT1553CxtKfRwxr9WIgn4N+n2O9AxibM6DsrwHGuWuKEGe2Yje3AxCVWwRdu2Ymq1B9Sa3FXSQrL7KaTR5KZVzBGnQpRzYk44g3T9IGWgcWFM0zziRRuBJUSuwMptzMtWJPij0lNmmAFYiPz2LN7kN34mxL8G2zmxgOEMjBnLSzX6VfnNSUGp0N2G2W+AmFPuysRirNF9CX8qPbJDgn1Z9Un0KU9t;20:a8ilHJegorPaA4LhJl2trOyY4MWZzWAa1HxRB1LyPbDE9EUvBonkCgEO8GuTYwQWrGQ1aPHtrZ5ABrXMsIlyIuGa9DhJuhP5QBKkb1DHXNgUBh+e5awffkC3DguRJBgbXXWAYh3ZXNklQ+gHA0reSTZNQnTeiETAOXNrpsFCC4CaxeQqzc1b+y8VZWCf/xABCWOi4XxZWHpVDZb43aoPxN3Q0vk+wvq4J4+XZQWa7eQTKuiPFnbi0yDGvZVxGkn2 X-MS-Office365-Filtering-Correlation-Id: 6136a045-3f04-4db5-ded3-08d59fc1424a X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 15:31:12.3125 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6136a045-3f04-4db5-ded3-08d59fc1424a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-04-10 09:02 PM, Laura Abbott wrote: > There's an ongoing effort to remove VLAs[1] from the kernel to eventually > turn on -Wvla. Switch to a constant value that covers all hardware. > > [1] https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Laura Abbott > --- > v2: Switch to a larger size to account for other hardware > --- > 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..c3a5a80e31ae 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[8]; > > - 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 > (8 * sizeof(uint32_t))) { > + dev_err(kfd_chardev(), "Ring entry too small\n"); When the ring entry size really is too small, this will potentially flood the kernel log. Maybe a WARN_ONCE would be more helpful. With that fixed, this patch is Reviewed-by: Felix Kuehling Regards,   Felix > + return; > + } > > while (dequeue_ih_ring_entry(dev, ih_ring_entry)) > dev->device_info->event_interrupt_class->interrupt_wq(dev,