DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: "Uwe Kleine-König" <ukl@pengutronix.de>,
	distrokit@pengutronix.de,
	"Marc Kleine-Budde" <mkl@pengutronix.de>,
	"Lucas Stach" <l.stach@pengutronix.de>
Subject: Re: [DistroKit] [PATCH] platform-v8a: kernelconfig: cleanup
Date: Mon, 22 Jan 2024 16:57:01 +0100	[thread overview]
Message-ID: <Za6QTVmjaqHUPUa2@pengutronix.de> (raw)
In-Reply-To: <cc492a5f-c939-4e43-88fb-9492cd456bd4@pengutronix.de>

Hi,

Thanks for the Review.

On Mon, Jan 22, 2024 at 04:01:36PM +0100, Ahmad Fatoum wrote:
> On 17.01.24 14:56, Michael Olbrich wrote:
> > -CONFIG_BLK_DEV_INITRD=y
> > -CONFIG_INITRAMFS_SOURCE=""
> > -# CONFIG_RD_GZIP is not set
> > -# CONFIG_RD_BZIP2 is not set
> > -# CONFIG_RD_LZMA is not set
> > -# CONFIG_RD_XZ is not set
> > -# CONFIG_RD_LZO is not set
> > -# CONFIG_RD_LZ4 is not set
> > -CONFIG_RD_ZSTD=y
> > +# CONFIG_BLK_DEV_INITRD is not set
> 
> We want to keep CONFIG_BLK_DEV_INITRD, so DistroKit systems can easily
> boot common distros like Debian that ship with an initramfs.

I was not aware that this is a use-case for DistroKit. I'm not sure how
that is supposed to work but fine.

> > -CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
> > +# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
> >  # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
> >  # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
> >  # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
> >  # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
> > -# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
> > +CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y
> 
> Why? The default can be changed later on, but using
> performance as default allows for faster boot.

It does? By how much?

DistroKit does not change the default later so it runs with the maximum
frequency the whole time. That is not a sane default for me.

> >  CONFIG_CMA=y
> >  # CONFIG_CMA_DEBUG is not set
> > -# CONFIG_CMA_DEBUGFS is not set
> > +CONFIG_CMA_DEBUGFS=y
> 
> I never used this. What do we need this for given that we don't enable
> graphic support?

CMA is not only used by graphics drivers. It's nice to have just in case,
just like the other debug options we've enabled.

> > -CONFIG_NET_DSA=m
> > -# CONFIG_NET_DSA_TAG_NONE is not set
> > -# CONFIG_NET_DSA_TAG_AR9331 is not set
> > -# CONFIG_NET_DSA_TAG_BRCM is not set
> > -# CONFIG_NET_DSA_TAG_BRCM_LEGACY is not set
> > -# CONFIG_NET_DSA_TAG_BRCM_PREPEND is not set
> > -# CONFIG_NET_DSA_TAG_HELLCREEK is not set
> > -# CONFIG_NET_DSA_TAG_GSWIP is not set
> > -# CONFIG_NET_DSA_TAG_DSA is not set
> > -# CONFIG_NET_DSA_TAG_EDSA is not set
> > -# CONFIG_NET_DSA_TAG_MTK is not set
> > -# CONFIG_NET_DSA_TAG_KSZ is not set
> > -CONFIG_NET_DSA_TAG_OCELOT=m
> > -CONFIG_NET_DSA_TAG_OCELOT_8021Q=m
> > -# CONFIG_NET_DSA_TAG_QCA is not set
> > -# CONFIG_NET_DSA_TAG_RTL4_A is not set
> > -# CONFIG_NET_DSA_TAG_RTL8_4 is not set
> > -# CONFIG_NET_DSA_TAG_RZN1_A5PSW is not set
> > -# CONFIG_NET_DSA_TAG_LAN9303 is not set
> > -# CONFIG_NET_DSA_TAG_SJA1105 is not set
> > -# CONFIG_NET_DSA_TAG_TRAILER is not set
> > -# CONFIG_NET_DSA_TAG_XRS700X is not set
> > -CONFIG_VLAN_8021Q=m
> > -CONFIG_VLAN_8021Q_GVRP=y
> > -CONFIG_VLAN_8021Q_MVRP=y
> > -CONFIG_LLC=m
> > +# CONFIG_BRIDGE is not set
> > +# CONFIG_NET_DSA is not set
> 
> The Espressobin has an on-board Ethernet switch, but it seems it was
> not enabled before?

I'm not sure what makes sense for the Espressobin, that's why I asked Uwe
to look at that.
But I mostly disabled this stuff, because it's not actually configured
anywhere in DistroKit.

> > -CONFIG_PCIE_ROCKCHIP=y
> > -CONFIG_PCIE_ROCKCHIP_HOST=y
> > -CONFIG_PCIE_ROCKCHIP_EP=y
> > -CONFIG_PCI_XGENE=y
> > -CONFIG_PCI_XGENE_MSI=y
> > +# CONFIG_PCIE_ROCKCHIP_HOST is not set
> > +# CONFIG_PCI_XGENE is not set
> 
> In case someone is wondering too: These are rk3399-specific. rk3568 PCI remains enabled.

Right. There were several drivers enabled that were not used by any of the
boards supported by DistroKit.

> The rest looks ok.

Regards,
Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2024-01-22 15:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-17 13:56 Michael Olbrich
2024-01-19 16:24 ` Michael Olbrich
2024-01-22 15:01 ` Ahmad Fatoum
2024-01-22 15:57   ` Michael Olbrich [this message]
2024-01-25  8:48     ` Ahmad Fatoum
2024-01-25 10:38       ` Uwe Kleine-König
2024-01-25 10:43     ` Jan Lübbe
2024-01-25 10:57       ` Michael Olbrich
2024-01-22 16:08 ` Uwe Kleine-König

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=Za6QTVmjaqHUPUa2@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=mkl@pengutronix.de \
    --cc=ukl@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox