summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-24ufs: Convert quirks to BIT() macroMarek Vasut
Use BIT() macro for quirks, no functional change. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Bhupesh Sharma <[email protected]>
2023-08-23Merge tag 'doc-2023-10-rc4' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request for doc-2023-10-rc4 Documentation: * Fix documentation for TI boards * Describe running on VirtualBox * List build dependencies for building documenation * Add references to U-Boot talks Other: * Fix error handling in the setexpr command (printf_str)
2023-08-23Merge branch '2023-08-22-assorted-code-cleanups' into nextTom Rini
- Assorted cleanups and fixes for a few tests, how we handle disks/partitions and bounce buffers.
2023-08-23mtd: nand: raw: atmel: Remove duplicate lineAlexander Dahl
Signed-off-by: Alexander Dahl <[email protected]> Reviewed-by: Michael Trimarchi <[email protected]>
2023-08-23doc: Highlight the most relevant u-boot talksPaul Barker
The list of u-boot talks on elinux.org is quite long, so let's highlight the talks which are likely most relevant for newcomers. Signed-off-by: Paul Barker <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-23doc: Explicitly list build dependencies for docsPaul Barker
Highlight the packages which need to be installed in order to build the docs. Signed-off-by: Paul Barker <[email protected]>
2023-08-23Documentation extended with specific information for VirtualBoxThomas Mittelstaedt
The configuration for EFI is enhanced to start U-Boot at VirtualBox (x86_64) with all features like booting with help of boot scripts and extended linux. This documentation describes how to use U-Boot at VirtualBox to boot Linux systems with a some simple example. Signed-off-by: Thomas Mittelstaedt <[email protected]>
2023-08-23doc: board: ti: k3: Fix up OpenOCD references and debug infoJonathan Humphreys
Fix minor path and config macro name updates to sync with latest OpenOCD and U-Boot configurations. Fixes: effe50854a69 ("doc: board: ti: k3: Add a guide to debugging with OpenOCD") Signed-off-by: Jonathan Humphreys <[email protected]> Signed-off-by: Nishanth Menon <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
2023-08-23doc: board: ti: k3: Elaborate on various firmwareNishanth Menon
Add elaboration text for the various firmware involved for system management. Signed-off-by: Nishanth Menon <[email protected]>
2023-08-23doc: board: ti: j721e: Fix build step numberingNishanth Menon
Fix up build step numbering. Fixes: c727b81d6530 ("doc: board: ti: k3: Reuse build instructions") Signed-off-by: Nishanth Menon <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
2023-08-23doc: board: ti: j7200: Fix build step numberingNishanth Menon
Fix up build step numbering. Fixes: c727b81d6530 ("doc: board: ti: k3: Reuse build instructions") Signed-off-by: Nishanth Menon <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
2023-08-23doc: board: ti: am65x: Fix build step numberingNishanth Menon
Fix up build step numbering. Fixes: c727b81d6530 ("doc: board: ti: k3: Reuse build instructions") Signed-off-by: Nishanth Menon <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
2023-08-23doc: board: ti: am62x: Fix build step numberingNishanth Menon
Fix up build step numbering. Fixes: c727b81d6530 ("doc: board: ti: k3: Reuse build instructions") Signed-off-by: Nishanth Menon <[email protected]> Revieed-by: Heinrich Schuchardt <[email protected]>
2023-08-23doc: board: ti: j721e: provide image alt textNishanth Menon
Provide alternative text for image. Fixes: 3b83dff183b5 ("doc: board: ti: j721e: Convert the image format to svg") Reported-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Nishanth Menon <[email protected]>
2023-08-23doc: board: ti: j7200: provide image alt textNishanth Menon
Provide alternative text for image. Fixes: f4ade09a1e76 ("doc: board: ti: j7200: Convert the image format to svg") Reported-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Nishanth Menon <[email protected]>
2023-08-23doc: board: ti: am65x: provide image alt textHeinrich Schuchardt
Provide alternative text for image. Fixes: fd358121bdb8 ("doc: board: ti: am65x: Update with boot flow diagram") Signed-off-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Nishanth Menon <[email protected]>
2023-08-23doc: board: ti: am62x: provide image alt textsHeinrich Schuchardt
Provide alternative texts for images. Fixes: 34f76921d801 ("doc: board: ti: am62x: Convert the image format to svg") Signed-off-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Nishanth Menon <[email protected]>
2023-08-23doc: board: ti: k3: Fixup alt text for openocd sequenceNishanth Menon
Fix up OpenOCD setup sequence Fixes: effe50854a69 ("doc: board: ti: k3: Add a guide to debugging with OpenOCD") Reported-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Nishanth Menon <[email protected]>
2023-08-23doc: board: ti: k3: image alt textsHeinrich Schuchardt
Provide alternative texts for images. Fixes: 6e8fa0611f19 ("board: ti: k3: Convert boot flow ascii flow to svg") Signed-off-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Nishanth Menon <[email protected]>
2023-08-23cmd: setexpr: fix printf_str()Heinrich Schuchardt
If vsnprintf() returns a negative number, (i >= remaining) will possibly be true: 'i' is of type signed int and 'remaining' is of the unsigned type size_t. The C language will convert i to an unsigned type before the comparison. This can result in the wrong error type being indicated. Checking for negative i should be done first. Fixes: f4f8d8bb1abc ("cmd: setexpr: add format string handling") Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-22Merge tag 'dm-pull-22aug23' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-dm RISC-V fix for CPU init
2023-08-22net: Fix the displayed value of bytes transferredSiddharth Vadapalli
In the case of NETLOOP_SUCCESS, the decimal value of the u32 variable "net_boot_file_size" is printed using "%d", resulting in negative values being reported for large file sizes. Fix this by using "%u" to print the decimal value corresponding to the bytes transferred. Fixes: 1411157d8578 ("net: cosmetic: Fixup var names related to boot file") Signed-off-by: Siddharth Vadapalli <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2023-08-22scsi: Add buffer_aligned check pass-throughMarek Vasut
Some devices have limited DMA capabilities and require that the buffers passed to them fit specific properties. Add new optional callback which can be used at driver level to indicate whether a buffer alignment is suitable for the device DMA or not. This is a pass-through callback from block uclass to drivers. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22blk: Add bounce buffer support to read/write operationsMarek Vasut
Some devices have limited DMA capabilities and require that the buffers passed to them fit specific properties. Add new optional callback which can be used at driver level to indicate whether a buffer alignment is suitable for the device DMA or not, and trigger use of generic bounce buffer implementation to help use of unsuitable buffers at the expense of performance degradation. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22disk: dos: Infer MBR partition sector size from underlying drive sector sizeMarek Vasut
Block devices with 4k sectors imply the MBR sectors are also 4k instead of regular 512B. Avoid hard-coding the 512B sector size and isntead read the current block device sector size from it, and if the sector size is larger than 512B, use the block device sector size. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-22common: bouncebuf: Add missing cast to dma_addr_tMarek Vasut
Fix the following warning produced on qemu-x86_64_defconfig: " common/bouncebuf.c: In function ‘bounce_buffer_stop’: common/bouncebuf.c:82:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 82 | dma_unmap_single((dma_addr_t)state->bounce_buffer, | ^ " The warning is valid, the pointer has to be up-cast first. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Andrew Davis <[email protected]>
2023-08-22disk: Make blk_get_ops() internal to blk uclassMarek Vasut
Move the macro into blk-uclass.c , since it is only used there. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-22disk: Move part_create_block_devices() to blk uclassMarek Vasut
Move part_create_block_devices() to blk uclass and unexpose the function. This can now be internal to the block uclass. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22disk: Switch part_blk_*() functions to disk_blk_*()Marek Vasut
The behavior of the part_blk_*() functions is now identical to disk_blk_*() functions, switch the former to the later. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22disk: Extend disk_blk_part_validate() with range checkingMarek Vasut
Check whether access is out of bounds of the partition and return an error. This way there is no danger of esp. write or erase outside of the confines of partition. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22disk: Handle partition to block device offset conversionMarek Vasut
Convert the read/write/erase offset from one within a partition to one within a block device, to correctly access the data on the block device for both write and erase operations. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22disk: Simplify disk_blk_{write, erase}() using blk_{write, erase}()Marek Vasut
These two functions are basically identical, just call the blk_*() functions from disk_blk_*() functions. The only difference is that the disk_blk_*() functions have to use parent block device as the udevice implementing block device operations. Add documentation on what those functions really do. The documentation is not wrong even though it likely does look that way. The write/erase functions really do not take into account the partition offset. This will be fixed in the next patch. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22disk: Simplify disk_blk_read() using blk_read()Marek Vasut
The disk_blk_read() can be simplified using blk_read(), the only things which needs to be handled are the read offset based on the partition properties, and the block device ops which are coming from the parent udevice, not the partition udevice. The later is currently not implemented correctly as far as I can tell, since the current code extracts block device descriptor from the parent udevice which is OK, but extracts block device operations from the partition udevice, which does not seem OK. Switching to the blk_read() fixes that too. The dev_get_blk() usage is simplified using UCLASS_PARTITION check. Add non-confusing documentation what this really does. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22disk: Drop always true conditional checkMarek Vasut
if (device_get_uclass_id(dev) == UCLASS_PARTITION) is always true, because this disk_blk_read() function calls dev_get_blk() above and checks its return value for non-NULL. The dev_get_blk() performs the same device_get_uclass_id(dev) check and returns NULL if not UCLASS_PARTITION. Drop the duplicate check. Signed-off-by: Marek Vasut <[email protected]>
2023-08-22test: acpi: Handle both 32bit and 64bit ACPI tablesMarek Vasut
Handle both 32bit and 64bit systems, i.e. sandbox and sandbox64 the same way drivers/cpu/cpu_sandbox.c sets those ACPI tables up. This fixes "$ ./u-boot -Tc 'ut dm dm_test_acpi_write_tables'" test failure on sandbox64. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-22test: Fix the help for the ut commandMarek Vasut
Drop the 'ut' prefix, this is superfluous and not present in any of the other ut tests. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-22riscv: cpu: make riscv_cpu_probe to EVT_DM_POST_INIT_R callbackChanho Park
Since the Patch 55171aedda88, VisionFive2 booting has been broken [1]. VisionFive2 board requires to enable CONFIG_TIMER_EARLY but booting went to panic from initr_dm_devices due to lack of a timer device. - Error logs initcall sequence 00000000fffd8d38 failed at call 00000000402185e4 (err=-19) Thus, we need to move riscv_cpu_probe function in order to register the timer earlier than initr_dm_devices. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Cc: Simon Glass <[email protected]> Cc: Bin Meng <[email protected]> Signed-off-by: Chanho Park <[email protected]> Tested-by: Milan P. Stanić <[email protected]> Tested-by: Roland Ruckerbauer <[email protected]> Tested-by: Roland Ruckerbauer <[email protected]>
2023-08-22dm: event: add EVT_DM_POST_INIT_R event typeChanho Park
This patch introduces EVT_DM_POST_INIT_R event type for handling hooks after relocation. Fixes: 55171aedda88 ("dm: Emit the arch_cpu_init_dm() even only before relocation") Suggested-by: Simon Glass <[email protected]> Cc: Bin Meng <[email protected]> Signed-off-by: Chanho Park <[email protected]> Tested-by: Milan P. Stanić <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Roland Ruckerbauer <[email protected]> Tested-by: Roland Ruckerbauer <[email protected]> Fixed missing event name in event.c: Signed-off-by: Simon Glass <[email protected]>
2023-08-21Merge tag 'v2023.10-rc3' into nextTom Rini
Prepare v2023.10-rc3 Signed-off-by: Tom Rini <[email protected]>
2023-08-21Prepare v2023.10-rc3v2023.10-rc3Tom Rini
Signed-off-by: Tom Rini <[email protected]>
2023-08-21Merge tag 'dm-pull-20aug23' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-dm sandbox64 fixes
2023-08-20test: cpu: Handle both 32bit and 64bit CPUsMarek Vasut
Handle both 32bit and 64bit systems, i.e. sandbox and sandbox64 the same way drivers/cpu/cpu_sandbox.c does, that is in case CONFIG_PHYS_64BIT is enabled, assume 64bit address width, else assume 32bit address width. This fixes ut_dm_dm_test_cpu test failure on sandbox64. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-20configs: sandbox64: Enable PCI register multi-entry supportMarek Vasut
Align the sandbox64 defconfig with sandbox defconfig. Enable missing PCI register multi-entry support. This fixes ut_dm_dm_test_pci_bus_to_phys test . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-20configs: sandbox64: Enable clock CCF driverMarek Vasut
Align the sandbox64 defconfig with sandbox defconfig. Enable missing CCF and Sandbox CCF drivers. This fixes ut_dm_dm_test_clk_ccf test . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-20configs: sandbox64: Enable video 12x22 font supportMarek Vasut
Align the sandbox64 defconfig with sandbox defconfig. Enable missing 12x22 font support. This fixes ut_dm_dm_test_video_text_12x22 test . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-20configs: sandbox64: Enable video 16bpp and 24bpp supportMarek Vasut
Align the sandbox64 defconfig with sandbox defconfig. Enable missing 16bpp and 24bpp video support. This fixes ut_dm_dm_test_video_bmp16 and ut_dm_dm_test_video_bmp24 tests . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-20configs: sandbox64: Enable PINCTRL_SINGLE driverMarek Vasut
Align the sandbox64 defconfig with sandbox defconfig. Enable missing PINCTRL single driver. This fixes ut_dm_dm_test_pinctrl_single test . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-20test: dm: pinmux: Handle %pa in pinctrl-single mux outputMarek Vasut
The pinctrl-single driver uses %pa to print register value in its single_get_pin_muxing() output. Handle this properly in the test based on CONFIG_PHYS_64BIT . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-20configs: sandbox64: Enable BUTTON_ADC driverMarek Vasut
Align the sandbox64 defconfig with sandbox defconfig. Enable missing BUTTON ADC driver. This fixes ut_dm_dm_test_button_keys_adc test . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-08-20configs: sandbox64: Enable MC34708 driverMarek Vasut
Align the sandbox64 defconfig with sandbox defconfig. Enable missing MC34708 PMIC driver. This fixes ut_dm_dm_test_power_pmic_mc34708_get test . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>