Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1231708ybg; Tue, 2 Jun 2020 04:53:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycbKMC+Gxe1nEuUULqSOTh9UQGfdqzCfLEeQ81H3PMCKj/ZguQtxHK4AV0WCfe8UdcRyYR X-Received: by 2002:a17:906:4554:: with SMTP id s20mr17460075ejq.241.1591098791297; Tue, 02 Jun 2020 04:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591098791; cv=none; d=google.com; s=arc-20160816; b=RzLgwVKyZqITs9uuXGcNcs8JVqAIGr/XUwE3HA5zZ5h/ZQEV1TkPSu3aUfWiBDqGxT 7IG/JJ8KeKj5TVVE1Ln8mC6KW/AgGFEG6Nwgq5etQOUm5Gz0SoTaJCKAtQPmDR0d/csi Y8vwd561z8xPYNb4AtGUx8mY72LH8MYFhZdJM54SX8iI+qAWnO3dMY8HJ7jB171J+N/p grAFDPjmSslCfORGwCXp4VnO7VVGj23noaOnfRkyuHG++eU+U3SatxYjyuWf0q2Cgza8 N266fnaCnrCABmn9ziqrssV8tVC8Uyomex+UMegvF8DHUk3nAbQ27zYeYzxwL/BIoDj7 pfkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:cc:to:subject:from:dkim-signature :dkim-filter; bh=I0Dn5BxzJ+CXY2oWZbgxWOBH4kPjXztDF8cgyoiRsiw=; b=M1E34yIVbXqbX+b2OjqWEon7oRqE1OlOi/5TPpIhYZiiH7n5mbSKyAfoli84B2uI8V NDy573OCw94JkEQeXQe5VsvoJlD+XM5RaXPoj3ZR/YgTDdv+PYctiyecrzlT4cf0x0hH i6H4VgW+Z6Vak+qtqvpDUE+uXWSZyBqQqQtjBCP2W6bnKMRIUVgYhKXnsBxyzCJjgkyL 4QJsYQ9mX9vF+BVXiaQ5mTJSbZXpz7/YAdCwpOXPyamGMirobGSOX5g/s6RRLCy1hEYw HLBg4YW1VUfCz6ZGdjGmO88wLdfyDYKmUTMkm23cQmqIs2m8jjSE8GP4A71at+e6XO3O t7yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=OhqalJ2N; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u21si1409975edq.299.2020.06.02.04.52.48; Tue, 02 Jun 2020 04:53:11 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b=OhqalJ2N; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726647AbgFBLu4 (ORCPT + 99 others); Tue, 2 Jun 2020 07:50:56 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:37884 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgFBLux (ORCPT ); Tue, 2 Jun 2020 07:50:53 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200602115051euoutp020b126c6c63a5b18287c9ad87ccdee418~Ut8sv-p0t0250302503euoutp02I for ; Tue, 2 Jun 2020 11:50:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200602115051euoutp020b126c6c63a5b18287c9ad87ccdee418~Ut8sv-p0t0250302503euoutp02I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1591098651; bh=I0Dn5BxzJ+CXY2oWZbgxWOBH4kPjXztDF8cgyoiRsiw=; h=From:Subject:To:Cc:Date:In-Reply-To:References:From; b=OhqalJ2NrcZNvb6+2JQcZrmCdk210myfkPYG9ZRknXvMXqxZFdidGKXjxiqFJeaqJ SkfnwNvHRJzLjwl0OROCdjRM/FqxgaZ71fzfTAYRG1qZMBgmBvUKsj7BsLA8fFgIQi GDtPz3WTTM469UM2qAEi7cbslu5atDeBDB9AO37M= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200602115051eucas1p2427ab69d905703d29b3cabf4b7b29267~Ut8skURLL3250832508eucas1p2_; Tue, 2 Jun 2020 11:50:51 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C4.09.61286.B1D36DE5; Tue, 2 Jun 2020 12:50:51 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200602115051eucas1p235883fa1de4738974b6066f24c9351de~Ut8sSXGSp2118021180eucas1p24; Tue, 2 Jun 2020 11:50:51 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200602115051eusmtrp290e10a7da754d2a574a23a8f6bf576ef~Ut8sRyQX92574825748eusmtrp2w; Tue, 2 Jun 2020 11:50:51 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-66-5ed63d1b92b1 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F4.14.07950.B1D36DE5; Tue, 2 Jun 2020 12:50:51 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200602115050eusmtip267e0418b6b1a0734543180ef1c0a774e~Ut8r3Wjm20841708417eusmtip2o; Tue, 2 Jun 2020 11:50:50 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH v2 1/2] video: fbdev: amifb: add FIXME about dead APUS support To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, linux-m68k , Al Viro , Geert Uytterhoeven Message-ID: <767d36ff-22ec-8136-7ebc-1d9d0d3ac98d@samsung.com> Date: Tue, 2 Jun 2020 13:50:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCKsWRmVeSWpSXmKPExsWy7djP87rSttfiDJpWS1hc+fqezeLZrb1M Fif6PrBaXN41h81i+ZO1zBbn/x5ndWDzOHS4g9HjfvdxJo+Trd9YPD5vkvPY9OQtUwBrFJdN SmpOZllqkb5dAlfGowNTmAsWc1dM3fCbpYFxAWcXIweHhICJxKaJ9l2MnBxCAisYJX41WXQx cgHZXxglLs07yQjhfGaU2PjpITtIFUjDgwcv2CESyxkleuYuZYFof8sosXsXmM0mYCUxsX0V I4gtLBAg8ef4S7C4iICDxJQbE8AGMQssYJTYcsgZxOYVsJP42LiJGcRmEVCR2L77EBOILSoQ IfHpwWFWiBpBiZMzn4DN4RTwlNjRe5kJYo64xK0n86FseYntb+cwgxwnIbCOXeL2jJVMEFe7 SJx7u5oFwhaWeHV8C9Q3MhL/d4I0gzUwSvzteAHVvZ1RYvnkf2wQVdYSd879YgMFGLOApsT6 XfoQYUeJMxdeMkHCkU/ixltBiCP4JCZtm84MEeaV6GgTgqhWk9iwbAMbzNqunSuZJzAqzULy 2iwk78xC8s4shL0LGFlWMYqnlhb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bIzHBP+lI+hnp Z0u39Up4ntqz4MCRq0JFQUHhSjmH5/5/lvrhC6v/ccXjxjrZzSndFxVbq68uXHYotan448nV 5zxfMVSH77nv3uQh/iMvNXtjbpeoRuHLgxYmN3Kv/vAVkYlafajr1qcW4y+B6ouyGpVYijMS DbWYi4oTAXm2VwPLAgAA X-CMS-MailID: 20200602115051eucas1p235883fa1de4738974b6066f24c9351de X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200504232908eucas1p296927bc7c736ad924cefaea9a546459d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200504232908eucas1p296927bc7c736ad924cefaea9a546459d References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/14/20 10:21 PM, Geert Uytterhoeven wrote: > These #ifdefs are relics from APUS (Amiga Power-Up System), which > added a PPC board. APUS support was killed off a long time ago, > when arch/ppc/ was still king, but these #ifdefs were missed, because > they didn't test for CONFIG_APUS. Add FIXME about using the C code variants (APUS ones) in the future. Reported-by: Al Viro Reported-by: Geert Uytterhoeven Signed-off-by: Bartlomiej Zolnierkiewicz --- v2: - added FIXME comment instead of removing the C code variants drivers/video/fbdev/amifb.c | 6 ++++++ 1 file changed, 6 insertions(+) Index: b/drivers/video/fbdev/amifb.c =================================================================== --- a/drivers/video/fbdev/amifb.c +++ b/drivers/video/fbdev/amifb.c @@ -575,6 +575,12 @@ static u_short maxfmode, chipset; #define downx(x, v) ((v) & -(x)) #define modx(x, v) ((v) & ((x) - 1)) +/* + * FIXME: Use C variants of the code marked with #ifdef __mc68000__ + * in the driver. It shouldn't negatively affect the performance and + * is required for APUS support (once it is re-added to the kernel). + * Needs to be tested on the hardware though.. + */ /* if x1 is not a constant, this macro won't make real sense :-) */ #ifdef __mc68000__ #define DIVUL(x1, x2) ({int res; asm("divul %1,%2,%3": "=d" (res): \