Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1863918rwn; Fri, 16 Sep 2022 01:52:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4fZ3TjSDgcyBDZPYZJkvHREQGZa7XUhoZRKxE8VWACNn0BPl+cMTqzg62M03ja0ku32vLp X-Received: by 2002:a17:902:ea11:b0:178:f0a:7472 with SMTP id s17-20020a170902ea1100b001780f0a7472mr3740579plg.46.1663318327526; Fri, 16 Sep 2022 01:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663318327; cv=none; d=google.com; s=arc-20160816; b=YbJ68G/H6PZHMWTnfEPw19CuIycaKY5BAkuZRKxlpkqriRZm9mFR8Qbok93Zkdld8t HZE+TByTF5gfB+cQPoR0A+sBNDyCSMWWbTyq56HDehZUbkOwxDgu08UkE0yo3bc2GTTE O/w1Kxtpb7rF1bfdLIdPWQDKmE3DIBW+Prc8ChY2Sbvb45CFddpa3G5sHwLSYPjyXdKH lc/SJqCP72lEydErI0FX8oiMm7Ijyym4nRymTq7RcRWis2p7sUj/LOK2VbWVatFonAWq 7JmKWBLOgliLY/KF3RSgm2Ux5tFCFOtn2Q8MmHLB9YfJ4CuiQSb/IuCuR9EzlOhKSdsF wO3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XSaiBy8DcaK/XEZGsjE8YZzmOryUgLqmtdUd7sdDJ9s=; b=s5glDEzhDcPyRF5rtotCERQra4ja0s+1EdExVx2lPNqN5uqi6nt2y6mhryFZMMUAnY Lqv1HaAlbB9w5USLfw5rSWJDLLcz07OgemMjQDJkI/yNvr4Yzu7uKgpCvPXKmKAC+FEx q59IH/Na0cITL6Eod2wzWEuDh1+LdzXwu7LkmoPDPJr5f8SMPjVyJzSvm/91G1ilVXir Gkb9HPVJaygnURvCccdHmBZ62LzduZsHggR4GD67G2wOFtV4aW9Ip31e0VRgcQC3EBUt 0wl6Gfia1KgbA4x3sWsOI/nIbYAvPDLG9I6RYvJrgBI2qebgtQjYVa4odCB8ZvFiWRCR umfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Si5Sbfrl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 34-20020a631462000000b0041a4bf40469si21897744pgu.271.2022.09.16.01.51.56; Fri, 16 Sep 2022 01:52:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Si5Sbfrl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbiIPIZB (ORCPT + 99 others); Fri, 16 Sep 2022 04:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbiIPIY4 (ORCPT ); Fri, 16 Sep 2022 04:24:56 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 235061CFFF; Fri, 16 Sep 2022 01:24:51 -0700 (PDT) Received: from [192.168.1.111] (91-158-154-79.elisa-laajakaista.fi [91.158.154.79]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5C73B47C; Fri, 16 Sep 2022 10:24:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1663316689; bh=TBheFs7a/heafyLccN5CvrNZP43Myi2No4cFtTqVNI8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Si5SbfrlJNDT1P8RiJxCpd7Lh7BG8A+FP3vh3HsoXwKagaldcQv8B+1z5brzcdkuM Ukwwsk9GJ3LHE6Fo2HDDPd36cx8jZNfu/2PAHpWQAZVIxiY6kIbAjQ0EYAnbwDix/Y iHDITC5h2KkCAo0GP3WtTyp2mAdKTn6EgIYyQcBI= Message-ID: <6c0d4973-7f7e-1893-58b2-9bbe19160045@ideasonboard.com> Date: Fri, 16 Sep 2022 11:24:46 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: drivers/gpu/drm/omapdrm/dss/dsi.c:1126:1: warning: the frame size of 1060 bytes is larger than 1024 bytes Content-Language: en-US To: Arnd Bergmann , kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Linus Walleij , linux-omap@vger.kernel.org, Tomi Valkeinen , dri-devel@lists.freedesktop.org References: <202209160259.7f3Z5krO-lkp@intel.com> <9b4152e9-34cb-4ed6-b5e3-ef045b40dff2@www.fastmail.com> From: Tomi Valkeinen In-Reply-To: <9b4152e9-34cb-4ed6-b5e3-ef045b40dff2@www.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/09/2022 21:49, Arnd Bergmann wrote: > On Thu, Sep 15, 2022, at 8:17 PM, kernel test robot wrote: >> Hi Arnd, >> tree: >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> master >> head: 3245cb65fd91cd514801bf91f5a3066d562f0ac4 >> commit: 3d427228f7370894680580fcd0381c0349624fa1 ARM: ixp4xx: enable >> multiplatform support > > This did not cause the problem, the bisection just landed on a > commit that enabled additional configuraitons. > >> drivers/gpu/drm/omapdrm/dss/dsi.c: In function 'dsi_dump_dsi_irqs': >>>> drivers/gpu/drm/omapdrm/dss/dsi.c:1126:1: warning: the frame size of 1060 bytes is larger than 1024 bytes [-Wframe-larger-than=] >> 1126 | } > > I think hte problem is that struct dsi_irq_stats is just too > large, at 776 bytes. The interrupts are disabled during a copy > from 'dsi->irq_stats' into 'stats'. A trivial workaround would > avoid the local copy and keep interrupts disabled through > the entire function so it can operate directly on the source > data, but that would introduce a longer time with irqs disabled, > which might be bad as well. > > Since this is only called from a debugfs file, and reading that > file is probably not performance critical itself, maybe > using kmalloc on the large structure would be best. I think that makes sense. I have sent a patch using kmalloc. Oddly enough, I was not able to reproduce the warning with my normal toolchain, gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf. I even reduced the frame size limit to 700, and saw warnings from other places, but not from omapdrm. Tomi