Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2782450rwa; Mon, 22 Aug 2022 13:47:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR4a//1H7VJFv+pPylWEcnuuldBsbGEEFyFzFjQ+EirloTQKfv1Y/2vsvXoZuyBEwfadHV+t X-Received: by 2002:a17:907:96a3:b0:73d:6859:70df with SMTP id hd35-20020a17090796a300b0073d685970dfmr7667684ejc.320.1661201271608; Mon, 22 Aug 2022 13:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661201271; cv=none; d=google.com; s=arc-20160816; b=sJ4q91uIfJuEJ6Pm6otPug4QlduOWpHGbaj5vee/NUAw0OvtFa1U+g6aelEsSjbqwo cifgPa8jW5T7wS4O5Yatwb9Xeah6tWLHitp6eINvDOWi9+cEShoqjcTpwYQxmCVXslfq iFOfLNNZCc11Lu15na5LVOyG0gkBsj9Hqo02+zlg94OukQeEH7zZZsqf0z5+MwjVhG0R /uff1B7t5zPBlvo9ICFjsLVPXpIPp8b9eZpQLeIHQ/gw+zXUbGhwIrJbA3ig6R6rA89S Ri4ILc3RW6drB7wnnwMRTHzdox5btaLAXy9HGChBqtcvhSCkQgSCnraSUKa0urAhooC4 fBOg== 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=ZaJfAdTDzzVqi46OHp0wYo6HV2CXvOZGl9/mJ0oL5pA=; b=tT9szMaL6kkBqa4oEbf67Nz2jkp6igaaOtaT9grf8PGRysv18WfaMmokQvpF/cNRnT GAebXqTAps2TTFDyfWDxqeY12yQf4Ju1+YCDkSuol+vV3lVd5rWWKheOTu4wrdmahjQ1 vNRery6+tb76KoX1hvttr5JF2LMEU9t6UMB0qwvZTMPf0zXMfKBdYOlVRvLimrjSUggQ F/9bJ5K4CjJu0feDdsQL2M3LRpuwun0jJJ9fXWuqDPAKymCz/xoWsIjFyj2Y6eo0yDkz x2YGz8xpZk94zwyhgDRQAFHbb7L99pmvy6GE56MbcPl5fOnt9pd5w6TJZy/t7Oz8xoMe 8Kpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="Dk3l/7qV"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t26-20020a50d71a000000b0043f2402c310si378541edi.121.2022.08.22.13.47.25; Mon, 22 Aug 2022 13:47:51 -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 header.i=@gmx.net header.s=badeba3b8450 header.b="Dk3l/7qV"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231774AbiHVUHz (ORCPT + 99 others); Mon, 22 Aug 2022 16:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiHVUHw (ORCPT ); Mon, 22 Aug 2022 16:07:52 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9668A4CA2F; Mon, 22 Aug 2022 13:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661198859; bh=dXpn5pHIlG3QJlIra6cx9HEfiXeMoNnRQ6WKhIoZGP8=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Dk3l/7qVbk5gZ1+qR/XYUUvjOt5dTjw5qok/vC0c2hj7rdB9FHK3WFuZcZ/BAMEZv X6kHsRC3MQxinclZto+I0kGeBzyh9vKPvqPDwJY0HZIZpoWtssYC4eZlSbgWMShvgg rrxeWFBR39Hik/7bBJ9MTA20Y26Myiid5s9lZhA4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.190.222]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mjj87-1p9Qcz3YLb-00lBVT; Mon, 22 Aug 2022 22:07:38 +0200 Message-ID: <7ac99deb-33a1-ca62-510c-e319c759934d@gmx.de> Date: Mon, 22 Aug 2022 22:07:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] video: fbdev: radeon: Clean up some inconsistent indenting Content-Language: en-US To: Jiapeng Chong , benh@kernel.crashing.org Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220819110659.110384-1-jiapeng.chong@linux.alibaba.com> From: Helge Deller In-Reply-To: <20220819110659.110384-1-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:8LWOlxNoMfqPWSTSrv2LuGaTgY/RnlafGOGKIzO9xUNi6shY5P4 kjwUAg3gSzLawWn44VZZwUlmBF+FtAJf8QjljDjA4wgYhHrf+6myYHVq4AzkR5QXUU/jrXJ f5PX+v+GNte1QqB2RtWuOwY5NcQ27K3iNW5tuQzPwyvlVYQhfj+hNG2iG0T9uMMF1qucQGZ ir9cui8yyAu5l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gC09kVlWUeLESTBB7CdCqb aJ0jcgQy8H22z9XD4rNW1M2nFoihykoarlttDa93SnkDVx2n6QXGQ+71bws+S0flZVz35y2dW 4e1UXtx2cdmb87wC4emFwygJLLFBpoz7sZbfGS451Hk+ErbB6b+IhdMyA== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 8/19/22 13:06, Jiapeng Chong wrote: > No functional modification involved. > > drivers/video/fbdev/aty/radeon_base.c:2107 radeon_identify_vram() warn: = inconsistent indenting. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D1932 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong applied. Thanks! Helge > --- > drivers/video/fbdev/aty/radeon_base.c | 46 +++++++++++++-------------- > 1 file changed, 23 insertions(+), 23 deletions(-) > > diff --git a/drivers/video/fbdev/aty/radeon_base.c b/drivers/video/fbdev= /aty/radeon_base.c > index 0a8199985d52..1e6ac7ef3e73 100644 > --- a/drivers/video/fbdev/aty/radeon_base.c > +++ b/drivers/video/fbdev/aty/radeon_base.c > @@ -2095,34 +2095,34 @@ static void radeon_identify_vram(struct radeonfb= _info *rinfo) > u32 tmp; > > /* framebuffer size */ > - if ((rinfo->family =3D=3D CHIP_FAMILY_RS100) || > + if ((rinfo->family =3D=3D CHIP_FAMILY_RS100) || > (rinfo->family =3D=3D CHIP_FAMILY_RS200) || > (rinfo->family =3D=3D CHIP_FAMILY_RS300) || > (rinfo->family =3D=3D CHIP_FAMILY_RC410) || > (rinfo->family =3D=3D CHIP_FAMILY_RS400) || > (rinfo->family =3D=3D CHIP_FAMILY_RS480) ) { > - u32 tom =3D INREG(NB_TOM); > - tmp =3D ((((tom >> 16) - (tom & 0xffff) + 1) << 6) * 1024); > - > - radeon_fifo_wait(6); > - OUTREG(MC_FB_LOCATION, tom); > - OUTREG(DISPLAY_BASE_ADDR, (tom & 0xffff) << 16); > - OUTREG(CRTC2_DISPLAY_BASE_ADDR, (tom & 0xffff) << 16); > - OUTREG(OV0_BASE_ADDR, (tom & 0xffff) << 16); > - > - /* This is supposed to fix the crtc2 noise problem. */ > - OUTREG(GRPH2_BUFFER_CNTL, INREG(GRPH2_BUFFER_CNTL) & ~0x7f000= 0); > - > - if ((rinfo->family =3D=3D CHIP_FAMILY_RS100) || > - (rinfo->family =3D=3D CHIP_FAMILY_RS200)) { > - /* This is to workaround the asic bug for RMX, some versio= ns > - of BIOS doesn't have this register initialized correctl= y. > - */ > - OUTREGP(CRTC_MORE_CNTL, CRTC_H_CUTOFF_ACTIVE_EN, > - ~CRTC_H_CUTOFF_ACTIVE_EN); > - } > - } else { > - tmp =3D INREG(CNFG_MEMSIZE); > + u32 tom =3D INREG(NB_TOM); > + > + tmp =3D ((((tom >> 16) - (tom & 0xffff) + 1) << 6) * 1024); > + radeon_fifo_wait(6); > + OUTREG(MC_FB_LOCATION, tom); > + OUTREG(DISPLAY_BASE_ADDR, (tom & 0xffff) << 16); > + OUTREG(CRTC2_DISPLAY_BASE_ADDR, (tom & 0xffff) << 16); > + OUTREG(OV0_BASE_ADDR, (tom & 0xffff) << 16); > + > + /* This is supposed to fix the crtc2 noise problem. */ > + OUTREG(GRPH2_BUFFER_CNTL, INREG(GRPH2_BUFFER_CNTL) & ~0x7f0000); > + > + if ((rinfo->family =3D=3D CHIP_FAMILY_RS100) || > + (rinfo->family =3D=3D CHIP_FAMILY_RS200)) { > + /* This is to workaround the asic bug for RMX, some versions > + * of BIOS doesn't have this register initialized correctly. > + */ > + OUTREGP(CRTC_MORE_CNTL, CRTC_H_CUTOFF_ACTIVE_EN, > + ~CRTC_H_CUTOFF_ACTIVE_EN); > + } > + } else { > + tmp =3D INREG(CNFG_MEMSIZE); > } > > /* mem size is bits [28:0], mask off the rest */