Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2476946rwo; Thu, 3 Aug 2023 09:55:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlHUQSrH7VMyVW8kIYh8tQapmQQa/xxPABYViWeTRT2zk7f2osZ8+CU3cE6rrwOEZVN3B+OU X-Received: by 2002:a05:6a00:9a6:b0:687:404f:4d5a with SMTP id u38-20020a056a0009a600b00687404f4d5amr14589120pfg.13.1691081714474; Thu, 03 Aug 2023 09:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691081714; cv=none; d=google.com; s=arc-20160816; b=WrvZGbTw6KrLyVnAtHSr9RaRVwsV7zC2VOWd8RBNzA4cDPQnaxy/WnMgP7mA3oTjUg gQfVJDXtfXaZqED9/mcLeaYT/afdHsDttCiYIp8i22tcnO14YgmtQYga1vBx3jZx1Ub5 j/jYrjyDeBjxIqgBb9VixLzD9lcZzBDnMiIhS0ZEuXVHjJv79whDx0FKnlS6troLo3hK 2snLqTpIHFHUV6EZPXJY1RWx6N47mJ6HaIJ+2uMRFjJKH6pP426Ra6bCFEDKZzydZBiI CxjSS3VN42H8b4iCcJ10axSS6ryLT5Vxnh6IPgjZrrah/jhQ5ZSDxECtbPYJuh05lm49 4diQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bajgnuKTGlG0RtP4bwkiUS04QrRESVaCChAJs0W23Eo=; fh=wlQjptzKaSueQLbiFm7/8RHrPKvGzuu5OPhZBe71ozc=; b=RV9K/3Ippm/F99uQUEay2xZdE39dA+5SOUoJ5EQ5E3wqH743k1BvxFZHJZGa7r1BnC SXhjajecXJXWbgIBAYfUSL8aKnxKcY9KY097iuFtvXUpbAgHK/2n3/0ZGakENYU/3Fx9 wq1LP9HSY/fP8+nsEOgcSZCEwZLFlRNUzP+rT6xgMqX1VEU7sQ2uIoTm2tx0RhQjy6QU 5HXoWX4DMkBsbEvxgf36OtUUfo+QIxTp88/ffdE5/7o6xFcrLXrp2a0iEDzHcMZ2iHx+ NaqPJddNMXobAGuK7kQbOuExHIPaLwMgVz+kJZOLJCZK8pCMzj1GuwKz/KlzgCCENiBY TnLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=y8JmzLyU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dw10-20020a056a00368a00b006872d5bfa2fsi154219pfb.20.2023.08.03.09.55.01; Thu, 03 Aug 2023 09:55:14 -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=@lunn.ch header.s=20171124 header.b=y8JmzLyU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237245AbjHCPuE (ORCPT + 99 others); Thu, 3 Aug 2023 11:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237243AbjHCPuC (ORCPT ); Thu, 3 Aug 2023 11:50:02 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 408922109; Thu, 3 Aug 2023 08:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=bajgnuKTGlG0RtP4bwkiUS04QrRESVaCChAJs0W23Eo=; b=y8JmzLyUCI5yi3iS8gD55qA0O5 +zQPDSo4EhRJ+CnOBCpcogYWwXnw/l64T1Rzx71B4mDm4pqr4UujbztoVnNX7mFnhm4s5kypAsH8P 9ncC4FpwjtlCb26X9870ENwSicYe4a1O3QOuAY9rkiUGnCvI0kWdGvm3SXim8Kd0v5dQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qRaa9-00305O-OZ; Thu, 03 Aug 2023 17:49:45 +0200 Date: Thu, 3 Aug 2023 17:49:45 +0200 From: Andrew Lunn To: Jiri Pirko Cc: justinlai0215 , kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net/ethernet/realtek: Add Realtek automotive PCIe driver Message-ID: <87194ec9-476a-471b-a5b5-d70e8a2cbcd5@lunn.ch> References: <20230803082513.6523-1-justinlai0215@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 Thu, Aug 03, 2023 at 10:57:29AM +0200, Jiri Pirko wrote: > Thu, Aug 03, 2023 at 10:25:13AM CEST, justinlai0215@realtek.com wrote: > >This patch is to add the ethernet device driver for the PCIe interface of Realtek Automotive Ethernet Switch, > >applicable to RTL9054, RTL9068, RTL9072, RTL9075, RTL9068, RTL9071. > > > >Signed-off-by: justinlai0215 > > [...] > > > >+ > >+static long rtase_swc_ioctl(struct file *p_file, unsigned int cmd, unsigned long arg) > > There are *MANY* thing wrong in this patch spotted just during 5 minutes > skimming over the code, but this definitelly tops all of them. > I didn't see so obvious kernel bypass attempt for a long time. Ugh, you > can't be serious :/ > > I suggest to you take couple of rounds of consulting the patch with > some skilled upstream developer internaly before you make another > submission in order not not to waste time of reviewers. I have to agree with Jiri here. This 'vendor crap' driver has no chance of being merged as is. You need to reach out to some experienced mainline driver developers to help you rewrite it to mainline quality. Andrew --- pw-bot: cr