Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1l2sxu-0000t4-4n for mharc-grub-devel@gnu.org; Fri, 22 Jan 2021 04:42:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2sxq-0000qW-Gd for grub-devel@gnu.org; Fri, 22 Jan 2021 04:42:46 -0500 Received: from mout.gmx.net ([212.227.17.22]:34643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2sxl-00039X-Mh for grub-devel@gnu.org; Fri, 22 Jan 2021 04:42:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1611308548; bh=2PBUQtRS7a3rbuXjqJPSpb7691WEzsfyCt1dO8q3dgU=; h=X-UI-Sender-Class:Subject:To:References:Reply-To:From:Date: In-Reply-To; b=k3D8VKPMx7Eakk/rzpSV63qs3/iThRVzvmqHf0H72phZmw3jiDMi+tnpRza4yHdli M/u8gj91Si8P/GE0tLCVBnPlQOy9FuESBY7xXBrFSv8W8tkmmQVVEL3UsyjOBQql/z otpeq8+2jUdWKgmeeEwcNevq1TC7OVpex9K+mGsI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [172.30.9.9] ([131.228.32.169]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MKsnF-1lJiUT0Z37-00LDKy; Fri, 22 Jan 2021 10:42:28 +0100 Subject: Re: [RFC] efi spi flash support - where to place To: The development of GNU GRUB , Paul Menzel References: <2d4eb2cf-bdef-930e-f87a-689c16127390@gmx.de> <280c9985-2be9-df27-c58c-e1d32fe82f0e@molgen.mpg.de> Reply-To: The development of GNU GRUB From: Michael Lawnick Message-ID: <041f9948-dfeb-459a-deb6-f0fcc27d4811@gmx.de> Date: Fri, 22 Jan 2021 10:42:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <280c9985-2be9-df27-c58c-e1d32fe82f0e@molgen.mpg.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:muKQZMsMHHf1qyr0xAAqO3IqUpf5vF4stoTDjNmMXD1cTDsSSCV QqHgGpNcm7op6GgXTCpS6QuyCJrmBaEKPBWVrcamp9ZahJ5q79lxyTrB7kddWAs365+XdoP guQvWwo6ORRc0YLCKT1vC9I+8Hm+KEzjM9/81RXGzxAToXp/gUYTmSTYqcGDIhiOywUG4yj ouSJXCWRJJ24HQulbOYzw== X-UI-Out-Filterresults: notjunk:1;V03:K0:E82ctEEtYVA=:4+NsojVMyhOX0t1c+0hEw2 R+4hqcz1WkjP+IMhwhe/6zRh+5hAn6rWBd3U3fXXXI5N3UK2ioyX+uJbeSciZ8hqqyo58NwgO 5OsNGhbD7rUsWIA156zwgs249wm1VWoDDHydN60F0i2rSX6CbjsqnAVXKWpcJXOdTY9LImHia s7NU6yPo60d3k2qSukL8SF+G301rJcWQkKgcGYd3R40v8ZAZU9I8uc1iwU5uICk9x2mUcNEsq 0+4Ds7VsWSxJxZoaMZXs4OMlhLj37aPelyxey4oxHvsTBho9IhWVeFkdc4AlWAVHYsSkqwVfS V7osNefq5raXj3sEyxeGhoa7o3S5Is4u31MPOMnw38R+vYkvlQHDfi6GNRqAsZpfYOSr4FrpH i/6Hnwlz10rOGVQ4PGH8MIOcazBTyMBc7dVqjiIQw6pF4E3BDKtAzdkeAcAF6Usbnf85fvlaI fZvqYId77UEMPJ3mpgEi4iLusXVldbiD5j8lZ139Vw65hNa/Dd6okEbHSPNXr/AqPnD5V0KST qNkzZVyCGEXhEA2Ubx2HrrvGkOHEd478CFmsOE0jVO8fxXTBlZqaEGhbOf2ZxvBanPo1E7EJt MUEirp+R4r/uq937YGmoqxVA9flGb+BBOKgAfrZNZZJY++YybLTij1t3ZkuQeZzo4ZqAK+vXC W3iKwzKn7Nws2HzQXhL2Rvz5wqOnczJH+vVcdJqUnbHMDarvzXMZrTbhgGZeNFw0IdtNJubCG hM6STOBPS8QgYRtdTIgxJOpHPZVR72837I03JqP4n3+rMuUOC/36QwZabjhjN9JjqpzO6pVLD TFn0Vv/6Y8IavOB4qWUFtN2teJu20rcrqAina/KHDFGGYswp/fLFWJz+zmB9R7oAzdrpaXNhj qfw5WEODe9am/OAfhDiQ== Received-SPF: pass client-ip=212.227.17.22; envelope-from=ml.lawnick@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2021 09:42:47 -0000 Am 22.01.2021 um 07:51 schrieb Paul Menzel: > Am 19.01.21 um 11:38 schrieb Michael Lawnick: >> Q: where to place the efi driver, where to place the command line handl= er. >> >> Currently I'd say >> - create grub-core/flash/efispinor.c for the driver > > I guess, that would be fine, but I found, > `grub-core/bus/spi/rk3288_spi.c`, so I suggest to place it there. I'll check for a move before sending the patch set. Version to patch against is 6213184b26689fa2e3db297b54cf4eb1713bcad1 , right? >> - create grub-core/commands/efi/efispinor.c for the command line tool. > > Can you please elaborate on the usage? Couldn=E2=80=99t it be some gener= ic tool, > and it doesn=E2=80=99t matter, what interface in the background? efispinor.c contains commands 'spinor init|read|write|erase'. i.e. commands to work with flash through efi. Adding a SPI bus driver like rk3288_spi.c into this implies an additional SPI flash layer which then bases on the SPI bus controller. This is something I wouldn't be able to test due to missing H/W and adds a huge amount of work (which I guess my company isn't interested in to pay ;-) ) If there were already a flash command layer there wouldn't be any issue to integrate into that. But I didn't see it. May be in flow of discussion we can rearrange my code in such way that it easily integrates to a possibly upcoming flash command frame work. > I am looking forward to this patch. I have no idea, if it will get into > the next release. But as it=E2=80=99s a new driver and command not affec= ting > existing stuff, an exception could be made. I'm not (yet) in sync with grub timeline, when is next release planned (last commit date)? =2D- KR Michael