All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: devel@driverdev.osuosl.org,
	"Branden Bonaby" <brandonbonaby94@gmail.com>,
	"Florian Westphal" <fw@strlen.de>,
	"Paul Burton" <paulburton@kernel.org>,
	"Giovanni Gherdovich" <bobdc9664@seznam.cz>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	YueHaibing <yuehaibing@huawei.com>,
	linux-kernel@vger.kernel.org,
	"Matthew Wilcox (Oracle)" <willy@infradead.org>,
	"Julia Lawall" <julia.lawall@lip6.fr>,
	"Sandro Volery" <sandro@volery.com>,
	"Geert Uytterhoeven" <geert@linux-m68k.org>,
	"Valery Ivanov" <ivalery111@gmail.com>,
	"Petr Štetiar" <ynezz@true.cz>,
	"David S. Miller" <davem@davemloft.net>,
	"Dan Carpenter" <dan.carpenter@oracle.com>,
	"Wambui Karuga" <wambui.karugax@gmail.com>
Subject: Re: [PATCH 1/2] staging: octeon: delete driver
Date: Tue, 10 Dec 2019 14:48:03 -0800	[thread overview]
Message-ID: <20191210224803.GA3372@roeck-us.net> (raw)
In-Reply-To: <20191210214848.GA5834@darkstar.musicnaut.iki.fi>

On Tue, Dec 10, 2019 at 11:48:49PM +0200, Aaro Koskinen wrote:
> On Tue, Dec 10, 2019 at 12:15:15PM -0800, Guenter Roeck wrote:
> > On Tue, Dec 10, 2019 at 09:46:59PM +0200, Aaro Koskinen wrote:
> > > On Tue, Dec 10, 2019 at 01:01:20PM +0100, Greg Kroah-Hartman wrote:
> > > > I have no idea :(
> > > 
> > > It's stated in the TODO file you are deleting (visible in your
> > > patch): "This driver is functional and supports Ethernet on
> > > OCTEON+/OCTEON2/OCTEON3 chips at least up to CN7030."
> > > 
> > > This includes e.g. some D-Link routers and Uniquiti EdgeRouters. You
> > > can check from /proc/cpuinfo if you are running on this MIPS SoC.
> > 
> > It also results in "mips:allmodconfig" build failures in mainline
> > and is for that reason being marked as BROKEN. Unfortunately,
> > misguided attempts to clean it up had the opposite effect.
> 
> This was because of stubs hack added by someone - people who do not run
> or care about the hardware can now break it for others with their
> silly x86 "compile test"s.
> 

Thast was the first breakage. The second was to replace typedefs with
structures without considering that those typedefs are still used
throughout the Cavium code, creating conflicts between "mystruct_t" and
"struct mystruct" in various API calls. It may well be that this
"improvement" was tested with x86_64:allmodconfig - if it was tested
in the first place. It was most definitely not tested with
cavium_octeon_defconfig, much less with real hardware.

Pretty much none of the changes made to the driver in the recent
past have improved it. On the contrary, it is getting worse. With no
one committed to get the driver out of staging, I don't think there
is a reasonable alternative to removing it. For my part I am for sure
not looking forward having to deal with it breaking over and over
again and having to spend time tracking down the breakage.

Guenter

WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <linux@roeck-us.net>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: devel@driverdev.osuosl.org,
	"Branden Bonaby" <brandonbonaby94@gmail.com>,
	YueHaibing <yuehaibing@huawei.com>,
	"Paul Burton" <paulburton@kernel.org>,
	"Julia Lawall" <julia.lawall@lip6.fr>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Florian Westphal" <fw@strlen.de>,
	linux-kernel@vger.kernel.org,
	"Matthew Wilcox (Oracle)" <willy@infradead.org>,
	"Giovanni Gherdovich" <bobdc9664@seznam.cz>,
	"Sandro Volery" <sandro@volery.com>,
	"Geert Uytterhoeven" <geert@linux-m68k.org>,
	"Valery Ivanov" <ivalery111@gmail.com>,
	"Petr Štetiar" <ynezz@true.cz>,
	"David S. Miller" <davem@davemloft.net>,
	"Dan Carpenter" <dan.carpenter@oracle.com>,
	"Wambui Karuga" <wambui.karugax@gmail.com>
Subject: Re: [PATCH 1/2] staging: octeon: delete driver
Date: Tue, 10 Dec 2019 14:48:03 -0800	[thread overview]
Message-ID: <20191210224803.GA3372@roeck-us.net> (raw)
In-Reply-To: <20191210214848.GA5834@darkstar.musicnaut.iki.fi>

On Tue, Dec 10, 2019 at 11:48:49PM +0200, Aaro Koskinen wrote:
> On Tue, Dec 10, 2019 at 12:15:15PM -0800, Guenter Roeck wrote:
> > On Tue, Dec 10, 2019 at 09:46:59PM +0200, Aaro Koskinen wrote:
> > > On Tue, Dec 10, 2019 at 01:01:20PM +0100, Greg Kroah-Hartman wrote:
> > > > I have no idea :(
> > > 
> > > It's stated in the TODO file you are deleting (visible in your
> > > patch): "This driver is functional and supports Ethernet on
> > > OCTEON+/OCTEON2/OCTEON3 chips at least up to CN7030."
> > > 
> > > This includes e.g. some D-Link routers and Uniquiti EdgeRouters. You
> > > can check from /proc/cpuinfo if you are running on this MIPS SoC.
> > 
> > It also results in "mips:allmodconfig" build failures in mainline
> > and is for that reason being marked as BROKEN. Unfortunately,
> > misguided attempts to clean it up had the opposite effect.
> 
> This was because of stubs hack added by someone - people who do not run
> or care about the hardware can now break it for others with their
> silly x86 "compile test"s.
> 

Thast was the first breakage. The second was to replace typedefs with
structures without considering that those typedefs are still used
throughout the Cavium code, creating conflicts between "mystruct_t" and
"struct mystruct" in various API calls. It may well be that this
"improvement" was tested with x86_64:allmodconfig - if it was tested
in the first place. It was most definitely not tested with
cavium_octeon_defconfig, much less with real hardware.

Pretty much none of the changes made to the driver in the recent
past have improved it. On the contrary, it is getting worse. With no
one committed to get the driver out of staging, I don't think there
is a reasonable alternative to removing it. For my part I am for sure
not looking forward having to deal with it breaking over and over
again and having to spend time tracking down the breakage.

Guenter
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

  reply	other threads:[~2019-12-10 22:48 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-10  9:15 [PATCH 1/2] staging: octeon: delete driver Greg Kroah-Hartman
2019-12-10  9:15 ` Greg Kroah-Hartman
2019-12-10  9:15 ` [PATCH 2/2] staging: octeon-usb: delete the octeon usb host controller driver Greg Kroah-Hartman
2019-12-10  9:15   ` Greg Kroah-Hartman
2019-12-10 19:31   ` Aaro Koskinen
2019-12-10 19:31     ` Aaro Koskinen
2019-12-10 20:19     ` Greg Kroah-Hartman
2019-12-10 20:19       ` Greg Kroah-Hartman
2019-12-10 21:27       ` Aaro Koskinen
2019-12-10 21:27         ` Aaro Koskinen
2019-12-11  7:42         ` Greg Kroah-Hartman
2019-12-11  7:42           ` Greg Kroah-Hartman
2020-02-04  4:06   ` Chris Packham
2020-02-04  4:06     ` Chris Packham
2020-02-04  7:15     ` gregkh
2020-02-04  7:15       ` gregkh
2020-02-04  7:21       ` Dan Carpenter
2020-02-04  7:21         ` Dan Carpenter
2019-12-10 10:42 ` [PATCH 1/2] staging: octeon: delete driver Guenter Roeck
2019-12-10 10:42   ` Guenter Roeck
2020-02-04  4:02   ` Chris Packham
2020-02-04  4:02     ` Chris Packham
2020-02-04  7:09     ` gregkh
2020-02-04  7:09       ` gregkh
2020-02-04 20:06       ` Chris Packham
2020-02-04 20:06         ` Chris Packham
2020-02-04 20:31         ` Matthew Wilcox
2020-02-04 20:31           ` Matthew Wilcox
2020-02-04 22:53           ` gregkh
2020-02-04 22:53             ` gregkh
2020-02-05  3:34           ` Dan Carpenter
2020-02-05  3:34             ` Dan Carpenter
2020-02-05  3:44             ` Matthew Wilcox
2020-02-05  3:44               ` Matthew Wilcox
2020-02-05  3:56             ` Guenter Roeck
2020-02-05  3:56               ` Guenter Roeck
2020-02-05  9:03               ` Geert Uytterhoeven
2020-02-05  9:03                 ` Geert Uytterhoeven
2020-02-05 13:52                 ` Guenter Roeck
2020-02-05 13:52                   ` Guenter Roeck
2020-02-06  8:18                   ` Geert Uytterhoeven
2020-02-06  8:18                     ` Geert Uytterhoeven
2020-02-04 20:57         ` [SPAM] " Guenter Roeck
2019-12-10 11:40 ` Sandro Volery
2019-12-10 11:40   ` Sandro Volery
2019-12-10 12:01   ` Greg Kroah-Hartman
2019-12-10 12:01     ` Greg Kroah-Hartman
2019-12-10 12:54     ` Sandro Volery
2019-12-10 12:54       ` Sandro Volery
2019-12-10 19:46     ` Aaro Koskinen
2019-12-10 19:46       ` Aaro Koskinen
2019-12-10 20:15       ` Guenter Roeck
2019-12-10 20:15         ` Guenter Roeck
2019-12-10 21:48         ` Aaro Koskinen
2019-12-10 21:48           ` Aaro Koskinen
2019-12-10 22:48           ` Guenter Roeck [this message]
2019-12-10 22:48             ` Guenter Roeck
2019-12-11  7:22           ` Dan Carpenter
2019-12-11  7:22             ` Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191210224803.GA3372@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=aaro.koskinen@iki.fi \
    --cc=bobdc9664@seznam.cz \
    --cc=brandonbonaby94@gmail.com \
    --cc=dan.carpenter@oracle.com \
    --cc=davem@davemloft.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=fw@strlen.de \
    --cc=geert@linux-m68k.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=ivalery111@gmail.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulburton@kernel.org \
    --cc=sandro@volery.com \
    --cc=wambui.karugax@gmail.com \
    --cc=willy@infradead.org \
    --cc=ynezz@true.cz \
    --cc=yuehaibing@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.