Re: [PATCH] fbdev: Have CONFIG_FB_NOTIFY be tristate

2024-05-08 Thread Sam Ravnborg
Hi Arnd, > > I think if you want to do a new version, that is likely to run > into new problems, given that this part of fbdev is particularly > fragile and partly wrong. On the other hand, it would be nice to > have a patch to limit the use of the notifiers to the smallest > set of kernel

Re: [PATCH v2 4/8] drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()

2024-04-27 Thread Sam Ravnborg
Hi Douglas. On Fri, Apr 26, 2024 at 04:58:37PM -0700, Douglas Anderson wrote: > The current mipi_dsi_*_write_seq() macros are non-intutitive because > they contain a hidden "return" statement that will return out of the > _caller_ of the macro. Let's mark them as deprecated and instead >

Re: [PATCH v2 1/8] drm/mipi-dsi: Fix theoretical int overflow in mipi_dsi_dcs_write_seq()

2024-04-27 Thread Sam Ravnborg
On Sat, Apr 27, 2024 at 04:44:33AM +0300, Dmitry Baryshkov wrote: > On Sat, 27 Apr 2024 at 02:59, Douglas Anderson wrote: > > > > The mipi_dsi_dcs_write_seq() macro makes a call to > > mipi_dsi_dcs_write_buffer() which returns a type ssize_t. The macro > > then stores it in an int and checks to

Re: [PATCH v2 00/28] sparc32: sunset sun4m and sun4d

2024-04-26 Thread Sam Ravnborg
Hi Andreas. On Fri, Apr 26, 2024 at 06:31:12PM +0200, Andreas Larsson wrote: > On 2024-04-23 20:02, Sam Ravnborg wrote: > > Please let me know if you expect me to rebase this on for-next. > > I have not yet tried if there are merge conflicts but can take a look in > > a

Re: [PATCH v2 00/28] sparc32: sunset sun4m and sun4d

2024-04-23 Thread Sam Ravnborg
Hi Andreas, On Sat, Mar 09, 2024 at 07:15:21PM +0100, Sam Ravnborg via B4 Relay wrote: > This is the second attempt to sunset sun4m and sun4d. > See [1] for the inital attempt. > > The sun4m and sun4d parts of the kernel have seen no real interest > for several years now. Last ti

Re: [PATCH 16/21] drm/atmel-hlcdc: Allow build with COMPILE_TEST=y

2024-04-09 Thread Sam Ravnborg
On Mon, Apr 08, 2024 at 08:04:21PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Allow atmel-hlcdc to be built with COMPILE_TEST=y for greater > coverage. Builds fine on x86/x86_64 at least. > > Cc: Sam Ravnborg > Cc: Boris Brezillon > Signed-off-by: Vill

Re: [PATCH v2 2/3] arch: Remove struct fb_info from video helpers

2024-03-28 Thread Sam Ravnborg
olnar > Cc: Borislav Petkov > Cc: Dave Hansen > Cc: x...@kernel.org > Cc: "H. Peter Anvin" Reviewed-by: Sam Ravnborg

Re: [PATCH v2 1/3] arch: Select fbdev helpers with CONFIG_VIDEO

2024-03-28 Thread Sam Ravnborg
by: Thomas Zimmermann > Cc: "James E.J. Bottomley" > Cc: Helge Deller > Cc: "David S. Miller" > Cc: Andreas Larsson > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: Dave Hansen > Cc: x...@kernel.org > Cc: "H. Peter Anvin" Reviewed-by: Sam Ravnborg

Re: [PATCH v2 3/3] arch: Rename fbdev header and source files

2024-03-28 Thread Sam Ravnborg
Sato > Cc: Rich Felker > Cc: John Paul Adrian Glaubitz > Cc: "David S. Miller" > Cc: Andreas Larsson > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: Dave Hansen > Cc: x...@kernel.org > Cc: "H. Peter Anvin" If the patch is

Re: Build regressions/improvements in v6.9-rc1

2024-03-26 Thread Sam Ravnborg
Hi all. > + error: arch/sparc/kernel/process_32.o: relocation truncated to fit: > R_SPARC_WDISP22 against `.text': => (.fixup+0xc), (.fixup+0x4) > + error: arch/sparc/kernel/signal_32.o: relocation truncated to fit: > R_SPARC_WDISP22 against `.text': => (.fixup+0x18), (.fixup+0x8), >

Re: [PATCH] fbdev: Select I/O-memory framebuffer ops for SBus

2024-03-23 Thread Sam Ravnborg
339-676e-5bb0f4fae...@draconx.ca/ > Signed-off-by: Thomas Zimmermann > Fixes: 8813e86f6d82 ("fbdev: Remove default file-I/O implementations") > Cc: Thomas Zimmermann > Cc: Javier Martinez Canillas > Cc: Daniel Vetter > Cc: Helge Deller > Cc: Sam Ravnborg > Cc: Arn

Re: [PATCH 3/6] backlight/omap1-bl: Replace FB_BLANK_ states with simple on/off

2024-03-14 Thread Sam Ravnborg
On Thu, Mar 14, 2024 at 09:16:15AM +0100, Thomas Zimmermann wrote: > Hi > > Am 13.03.24 um 19:00 schrieb Sam Ravnborg: > > Hi Thomas, > > > > On Wed, Mar 13, 2024 at 04:45:02PM +0100, Thomas Zimmermann wrote: > > > The backlight is on for fb_blank eq FB_BLANK

Re: [PATCH 2/6] backlight/omap1-bl: Remove unused struct omap_backlight_config.set_power

2024-03-13 Thread Sam Ravnborg
On Wed, Mar 13, 2024 at 04:45:01PM +0100, Thomas Zimmermann wrote: > The callback set_power in struct omap_backlight_config is not > implemented anywhere. Remove it from the structure and driver. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Sam Ravnborg > --- > drive

Re: [PATCH 1/6] auxdisplay/ht16k33: Replace use of fb_blank with backlight helper

2024-03-13 Thread Sam Ravnborg
Cc: Robin van der Gracht > Cc: Miguel Ojeda Reviewed-by: Sam Ravnborg > --- > drivers/auxdisplay/ht16k33.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c > index a90430b7d07ba..83db829b

Re: [PATCH 3/6] backlight/omap1-bl: Replace FB_BLANK_ states with simple on/off

2024-03-13 Thread Sam Ravnborg
Hi Thomas, On Wed, Mar 13, 2024 at 04:45:02PM +0100, Thomas Zimmermann wrote: > The backlight is on for fb_blank eq FB_BLANK_UNBLANK, or off for > any other value in fb_blank. But the field fb_blank in struct > backlight_properties is deprecated and should not be used any > longer. > > Replace

Re: [PATCH 1/6] auxdisplay/ht16k33: Replace use of fb_blank with backlight helper

2024-03-13 Thread Sam Ravnborg
Hi Miguel. On Wed, Mar 13, 2024 at 05:08:08PM +0100, Miguel Ojeda wrote: > Hi Thomas, > > Thanks for this! > > Cc'ing Andy and Geert -- the new maintainer and reviewer. > > Also, a couple quick notes below since I am here... > > On Wed, Mar 13, 2024 at 4:49 PM Thomas Zimmermann wrote: > > >

Re: [PATCH v2 28/28] fbdev/p9100: Drop now unused driver p9100

2024-03-11 Thread Sam Ravnborg
Hi Arnd. On Mon, Mar 11, 2024 at 03:05:25PM +0100, Arnd Bergmann wrote: > On Sat, Mar 9, 2024, at 19:15, Sam Ravnborg via B4 Relay wrote: > > From: Sam Ravnborg > > > > The p9100 driver is only relevant for the Sparcbook 3 machine, > > and with sun4m support remov

[PATCH v3 14/28] sparc32: Drop unused mmu models

2024-03-11 Thread Sam Ravnborg
, but this should be OK if my analysis is correct. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- Posted v3 here to avoid resending the whole series. In v3 the asm-generic shmparam.h are introduced and a few unused variables (reported by kernel

Re: [PATCH v2 14/28] sparc32: Drop unused mmu models

2024-03-10 Thread Sam Ravnborg
.com/intel-lab-lkp/linux/commits/Sam-Ravnborg-via-B4-Relay/sparc32-Update-defconfig-to-LEON-SMP/20240310-021717 > base: 84b76d05828a1909e20d0f66553b876b801f98c8 > patch link: > https://lore.kernel.org/r/20240309-sunset-v2-14-f09912574d2c%40ravnborg.org > patch subject: [PATCH v2 14

Re: [PATCH v3 2/2] backlight: Add new lm3509 backlight driver

2024-03-10 Thread Sam Ravnborg
Hi Patrick, a few comments in the following. Sam On Sat, Mar 09, 2024 at 02:24:56PM +0100, Patrick Gansterer wrote: > This is a general driver for LM3509 backlight chip of TI. > LM3509 is High Efficiency Boost for White LEDs and/or OLED Displays with > Dual Current Sinks. This driver

[PATCH v2 14/28] sparc32: Drop unused mmu models

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop mmu models not used by LEON, including their header files. This includes removal of unused includes in various files to fix the build. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson ---

[PATCH v2 10/28] sparc32: Drop sun4d/sun4m smp support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop the sun4m and sun4d smp support code. The sparc32 kernel will not boot unless this is a LEON system, so drop checks for other systems as they will not trigger. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann C

[PATCH v2 09/28] sparc32: Drop sun4m/sun4d specific irq handling

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Some of the sun4m irq infrastructure is used by LEON too, so keep that and drop the rest. The patch include a few extra fixes fix the build after the removal of the irq support. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Be

[PATCH v2 27/28] sbus: char: Drop now unused uctrl driver

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The uctrl driver is only relevant for the Sparcbook 3 machine, and with sun4m support removed this driver is no logner relevant. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- drivers/sbus/ch

[PATCH v2 21/28] sparc32: Drop unused prom ranges support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop support for prom ranges - not used anymore. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/oplib_32.h | 11 arch/sparc/prom/Makefile | 1 - arch/

[PATCH v2 19/28] sparc32: Drop support for 7 register windows

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Some older SPARC CPUs had support for only 7 register windows. To support this run-time patching was used. LEON demand 8 register windows for use with Linux so there is no need to support the 7 window configuration. The complexity of the assembler code is reduced when

[PATCH v2 24/28] sparc32: Drop unused trampoline code

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop the sun4m and sun4d code from trampoline_32 Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/kernel/kernel.h| 3 +- arch/sparc/kernel/trampoline_

[PATCH v2 16/28] sparc32: Drop use of sparc_config

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg sparc_config were used to handle the differences between the machines. With only LEON supported sparc_config is no longer required. Refactor the time code a litte as some parts are obsolete and other parts are only used when SMP is not enabled. Signed-off-by: Sam Ravnborg

[PATCH v2 20/28] sparc32: Drop additional sun4d bits

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop sun4d specific support. Not used by LEON. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/io-unit.h | 59 arch/sparc/include/asm/obio.

[PATCH v2 08/28] sparc32: Drop patching of interrupt vector

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop the sun4m specific handling and the patching that takes place in sun4d and LEON. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/kernel/entry.S

[PATCH v2 23/28] sparc32: Drop sun4m irq support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop all code used to support sun4m irqs. Update entry.S to call the leon_nmi function. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/kernel/Makefile | 1 - arch/sparc/kern

[PATCH v2 12/28] sparc32: Drop mbus support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Only used by older SPARC HW, not used by LEON. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/elf_32.h | 2 - arch/sparc/include/asm/mbu

[PATCH v2 22/28] sparc32: Drop unused sbus iommu support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg LEON do not have sbus iommu support - drop it. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/iommu.h| 2 - arch/sparc/include/asm/iommu_32.h | 122 ---

[PATCH v2 25/28] sparc32: Drop config SPARC_LEON

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The only supported sparc32 CPU is LEON, so there is no need for a config option to select it. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Acked-by: Greg Kroah-Hartman #For the USB stuff Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson ---

[PATCH v2 17/28] sparc32: Drop run-time cpuid patching

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The CPU is always leon, so the run-time cpuid patching is no longer required. Signed-off-by: Sam Ravnborg Reported-by: Andreas Larsson Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/winmacro.h | 12 arch/sp

[PATCH v2 00/28] sparc32: sunset sun4m and sun4d

2024-03-09 Thread Sam Ravnborg via B4 Relay
. Changes in v2: - Rebased on top of Andreas' for-next branch - Collected ack's - Added patch to remove cpuid patching (Andreas) - Run-time testing using qemu (Andreas, Mark Cave-Ayland) Sam [1]: https://lore.kernel.org/all/20201218184347.2180772-1-...@ravnborg.org/ --- Sam Ravnborg

[PATCH v2 07/28] sparc32: Drop run-time patching of ipi trap

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg There is no longer any need for the run-time patching of the ipi trap with the removal of sun4m and sun4d. Remove the patching and drop the ipi implementation for the two machines. The patch includes removal of patching from pcic as this was needed to fix the build. pcic

[PATCH v2 04/28] sparc32: Drop sun4m specific led driver

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The led driver is only relevant for the sun4m machines. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig | 9 --- arch/sparc/kernel/Makefile | 1 - arch/sparc/ke

[PATCH v2 18/28] sparc32: Drop run-time patching of ASI instructions

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg With only LEON supported there is no need to run-time patch the instructions to match ASI. Move a few functions back to C with inline asm, now that run-time patching is not needed. Deleted a few functions that turns out not to be used rather than re-implement them in C

[PATCH v2 26/28] sparc32: Drop sbus support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg LEON do not have an sbus - so drop support for that for sparc32. Fix a few Kconfig expressions to use CONFIG_SBUS rather than SPARC as only SPARC64 has an sbus now. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann C

[PATCH v2 28/28] fbdev/p9100: Drop now unused driver p9100

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The p9100 driver is only relevant for the Sparcbook 3 machine, and with sun4m support removed this driver is no longer relevant. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Acked-by: Thomas Zimmermann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andre

[PATCH v2 06/28] sparc32: Drop auxio support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg auxio is not supported by LEON - so drop it. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/auxio_32.h | 73 +--- arch/sparc/kernel/Makefile

[PATCH v2 11/28] sparc32: Drop pcic support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg pcic is only used by MicroSPARC-IIep and not relevant for LEON. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig| 5 - arch/sparc/include/asm/pcic.h | 130 ---

[PATCH v2 01/28] sparc32: Update defconfig to LEON SMP

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg This is a copy of the leon_smp defconfig found in gaisler-buildroot-2023.02-1.0. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/configs/sparc32_defco

[PATCH v2 15/28] sparc32: Drop check for sparc_model

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg sparc32 is always LEON, so no need to check for the model. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/cpu_type.h | 18 - arch/sparc/include/asm/io_32

[PATCH v2 13/28] sparc32: Drop unused function __get_{phys,iospace}

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Not used and references stuff that will be dropped later. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/pgtable_32.h | 24 arch/sparc/i

[PATCH v2 05/28] sparc32: Drop sun specific power management drivers

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop the two sun specific apc and pmc drivers. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig | 7 -- arch/sparc/kernel/Makefile | 1 - arch/sparc/kernel/apc.

[PATCH v2 03/28] sparc32: Drop floppy support

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg LEON do not have floppy support so we can drop it Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig | 2 +- arch/sparc/include/asm/floppy.h| 2 -

[PATCH v2 02/28] sparc32: Drop sun4m/sun4d support from head_32.S

2024-03-09 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Remove the most obvious parts of sun4* support from head_32.S. Use a single print if a sun4* machine is detected thus restricting boots to LEON machines. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andre

Re: [PATCH v8 0/7] Add support for XLCDC to sam9x7 SoC family.

2024-02-22 Thread Sam Ravnborg
pecific driver ops > drm: atmel-hlcdc: add DPI mode support for XLCDC > drm: atmel-hlcdc: add vertical and horizontal scaling support for > XLCDC > drm: atmel-hlcdc: add support for DSI output formats > drm: atmel-hlcdc: add LCD controller layer definition for sam9x75 Hi Man

Re: [PATCH 17/27] sparc32: Drop run-time patching of ASI instructions

2024-02-17 Thread Sam Ravnborg
Hi Andreas, > > diff --git a/arch/sparc/include/asm/winmacro.h > > b/arch/sparc/include/asm/winmacro.h > > index b6e911f5d93c..c496b04cdfaf 100644 > > --- a/arch/sparc/include/asm/winmacro.h > > +++ b/arch/sparc/include/asm/winmacro.h > > @@ -108,18 +108,11 @@ > > 661: rd %tbr,

Re: [PATCH 00/27] sparc32: sunset sun4m and sun4d

2024-02-04 Thread Sam Ravnborg
Hi Andreas. Congratulation being the new sparc co-maintainer! On Tue, Dec 19, 2023 at 11:03:05PM +0100, Sam Ravnborg via B4 Relay wrote: > This is the second attempt to sunset sun4m and sun4d. > See [1] for the inital attempt. I have now verified that the kernel can boot wit

Re: [PATCH v3 0/3] Convert Microchip's HLCDC Text based DT bindings to JSON schema

2024-01-22 Thread Sam Ravnborg
Hi Dharma, On Mon, Jan 22, 2024 at 03:52:17AM +, dharm...@microchip.com wrote: > On 20/01/24 6:53 pm, Sam Ravnborg wrote: > > [You don't often get email from s...@ravnborg.org. Learn why this is > > important at https://aka.ms/LearnAboutSenderIdentification ] > > &

Re: [PATCH v3 0/3] Convert Microchip's HLCDC Text based DT bindings to JSON schema

2024-01-22 Thread Sam Ravnborg
Hi Dharma On Mon, Jan 22, 2024 at 03:52:17AM +, dharm...@microchip.com wrote: > On 20/01/24 6:53 pm, Sam Ravnborg wrote: > > [You don't often get email from s...@ravnborg.org. Learn why this is > > important at https://aka.ms/LearnAboutSenderIdentification ] > > &

Re: [PATCH v3 0/3] Convert Microchip's HLCDC Text based DT bindings to JSON schema

2024-01-20 Thread Sam Ravnborg
Hi Dharma & Rob. > > To make the DT binding backward compatible you likely need to add a few > > compatible that otherwise would have been left out - but that should do > > the trick. > > > > The current atmel hlcdc driver that is split in three is IMO an > > over-engineering, and the driver

Re: [PATCH v3 0/3] Convert Microchip's HLCDC Text based DT bindings to JSON schema

2024-01-19 Thread Sam Ravnborg
Hi Dharma, On Fri, Jan 19, 2024 at 08:41:04AM +, dharm...@microchip.com wrote: > Hi Sam, > On 19/01/24 1:00 am, Sam Ravnborg wrote: > > [You don't often get email from s...@ravnborg.org. Learn why this is > > important at https://aka.ms/LearnAboutSenderIdentification ]

Re: [PATCH v3 0/3] Convert Microchip's HLCDC Text based DT bindings to JSON schema

2024-01-18 Thread Sam Ravnborg
Hi Dharma et al. On Thu, Jan 18, 2024 at 02:56:09PM +0530, Dharma Balasubiramani wrote: > Converted the text bindings to YAML and validated them individually using > following commands > > $ make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/ > $ make dtbs_check

Re: [PATCH 27/27] fbdev/p9100: Drop now unused driver p9100

2024-01-02 Thread Sam Ravnborg
Hi Thomas, On Tue, Jan 02, 2024 at 09:26:27AM +0100, Thomas Zimmermann wrote: > Hi Sam > > Am 19.12.23 um 23:03 schrieb Sam Ravnborg via B4 Relay: > > From: Sam Ravnborg > > > > The p9100 driver is only relevant for the Sparcbook 3 machine, > > and with

Re: [PATCH 00/27] sparc32: sunset sun4m and sun4d

2023-12-20 Thread Sam Ravnborg
Hi Mark, On Wed, Dec 20, 2023 at 11:30:27AM +, Mark Cave-Ayland wrote: > On 20/12/2023 10:47, Arnd Bergmann wrote: > > > On Wed, Dec 20, 2023, at 09:54, John Paul Adrian Glaubitz wrote: > > > On Wed, 2023-12-20 at 08:36 +, Arnd Bergmann wrote: > > > > All of these were found through

Re: [PATCH 01/27] sparc32: Update defconfig to LEON SMP

2023-12-19 Thread Sam Ravnborg
Hi Arnd, On Tue, Dec 19, 2023 at 10:23:05PM +, Arnd Bergmann wrote: > On Tue, Dec 19, 2023, at 22:03, Sam Ravnborg via B4 Relay wrote: > > From: Sam Ravnborg > > > > This is a copy of the leon_smp defconfig found in > > gaisler-buildroot-2023.02-1.0. > >

[PATCH 07/27] sparc32: Drop run-time patching of ipi trap

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg There is no longer any need for the run-time patching of the ipi trap with the removal of sun4m and sun4d. Remove the patching and drop the ipi implementation for the two machines. The patch includes removal of patching from pcic as this was needed to fix the build. pcic

[PATCH 12/27] sparc32: Drop mbus support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Only used by older SPARC HW, not used by LEON. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/elf_32.h | 2 - arch/sparc/include/asm/mbus.h | 97 -

[PATCH 20/27] sparc32: Drop unused prom ranges support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop support for prom ranges - not used anymore. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/oplib_32.h | 11 arch/sparc/prom/Makefile | 1 - arch/sparc/prom/init_32.c

[PATCH 14/27] sparc32: Drop unused mmu models

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop mmu models not used by LEON, including their header files. This includes removal of unused includes in various files to fix the build. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/

[PATCH 13/27] sparc32: Drop unused function __get_{phys,iospace}

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Not used and references stuff that will be dropped later. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/pgtable_32.h | 24 arch/sparc/include/asm/pgtsrmm

[PATCH 06/27] sparc32: Drop auxio support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg auxio is not supported by LEON - so drop it. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/auxio_32.h | 73 +--- arch/sparc/kernel/Makefile| 2 +- arch/sparc/kernel/

[PATCH 24/27] sparc32: Drop config SPARC_LEON

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The only support sparc32 CPU is LEON, so there is no need for a config option to select it. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig | 27 +--

[PATCH 22/27] sparc32: Drop sun4m irq support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop all code uses to support sun4m irqs. Update entry.S to call the leon_nmi function. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/kernel/Makefile | 1 - arch/sparc/kernel/entry.S | 29 +

[PATCH 04/27] sparc32: Drop sun4m specific led driver

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The led driver is only relevant for the sun4m machines. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig | 9 --- arch/sparc/kernel/Makefile | 1 - arch/sparc/kernel/led.

[PATCH 03/27] sparc32: Drop floppy support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg LEON do not have floppy support so we can drop it Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig | 2 +- arch/sparc/include/asm/floppy.h| 2 - arch/sparc/include/asm/floppy_

[PATCH 01/27] sparc32: Update defconfig to LEON SMP

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg This is a copy of the leon_smp defconfig found in gaisler-buildroot-2023.02-1.0. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/configs/sparc32_defconfig | 171 +++ 1 file c

[PATCH 11/27] sparc32: Drop pcic support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg pcic is only used by MicroSPARC-IIep and not relevant for LEON. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig| 5 - arch/sparc/include/asm/pcic.h | 130 --- arch/sparc/kerne

[PATCH 09/27] sparc32: Drop sun4m/sun4d specific irq handling

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Some of the sun4m irq infrastructure is used by LEON too, so keep that and drop the rest. The patch include a few extra fixes fix the build after the removal of the irq support. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andre

[PATCH 10/27] sparc32: Drop sun4d/sun4m smp support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop the sun4m and sun4d smp support code. The sparc32 kernel will not boot unless this is a LEON system, so drop checks for other systems as they will not trigger. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson ---

[PATCH 23/27] sparc32: Drop unused trampoline code

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop the sun4m and sun4d code from trampoline_32 Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/kernel/kernel.h| 3 +- arch/sparc/kernel/trampoline_32.S | 127 +--

[PATCH 27/27] fbdev/p9100: Drop now unused driver p9100

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The p9100 driver is only relevant for the Sparcbook 3 machine, and with sun4m support removed this driver is no longer relevant. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson Cc: Helge Deller --- drivers/video/fbd

[PATCH 17/27] sparc32: Drop run-time patching of ASI instructions

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg With only LEON supported there is no need to run-time patch the instructions to match ASI. Move a few functions back to C with inline asm, now that run-time patching is not needed. Deleted a few functions that turns out not to be used rather than re-implement them in C

[PATCH 00/27] sparc32: sunset sun4m and sun4d

2023-12-19 Thread Sam Ravnborg via B4 Relay
. - Drop some of the homegrown memory allocators and use memblocks [1]: https://lore.kernel.org/all/20201218184347.2180772-1-...@ravnborg.org/ Sam --- Sam Ravnborg (27): sparc32: Update defconfig to LEON SMP sparc32: Drop sun4m/sun4d support from head_32.S sparc32: Drop floppy

[PATCH 21/27] sparc32: Drop unused iommu support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg LEON do not have any iommu support - drop it. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/iommu.h| 2 - arch/sparc/include/asm/iommu_32.h | 122 --- arch/sparc/kerne

[PATCH 15/27] sparc32: Drop check for sparc_model

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg sparc32 is always LEON, so no need to check for the model. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/cpu_type.h | 18 - arch/sparc/include/asm/io_32.h| 4 +- arch/sparc/i

[PATCH 18/27] sparc32: Drop support for 7 register windows

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Some older SPARC CPUs had support for only 7 register windows. To support this run-time patching was used. LEON demand 8 register windows for use with Linux so there is no need to support the 7 window configuration. The complexity of the assembler code is reduced when

[PATCH 05/27] sparc32: Drop sun specific power management drivers

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop the two sun specific apc and pmc drivers. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/Kconfig | 7 -- arch/sparc/kernel/Makefile | 1 - arch/sparc/kernel/apc.

[PATCH 25/27] sparc32: Drop sbus support

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg LEON do not have an sbus - so drop support for that for sparc32. Fix a few Kconfig expressions to use CONFIG_SBUS rather than SPARC as only SPARC64 has an sbus now. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson ---

[PATCH 26/27] sbus: char: Drop now unused uctrl driver

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg The uctrl driver is only relevant for the Sparcbook 3 machine, and with sun4m support removed this driver is no logner relevant. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- drivers/sbus/char/Kconfig | 8 - dr

[PATCH 19/27] sparc32: Drop additional sun4d bits

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop sun4d specific support. Not used by LEON. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/io-unit.h | 59 arch/sparc/include/asm/obio.h| 226 ---

[PATCH 16/27] sparc32: Drop use of sparc_config

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg sparc_config were used to handle the differences between the machines. With only LEON supported sparc_config is no longer required. Refactor the time code a litte as some parts are obsolete and other parts are only used when SMP is not enabled. Signed-off-by: Sam Ravnborg

[PATCH 08/27] sparc32: Drop patching of interrupt vector

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Drop the sun4m specific handling and the patching that takes place in sun4d and LEON. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/kernel/entry.S | 98 -

[PATCH 02/27] sparc32: Drop sun4m/sun4d support from head_32.S

2023-12-19 Thread Sam Ravnborg via B4 Relay
From: Sam Ravnborg Remove the most obvious parts of sun4* support from head_32.S. Use a single print if a sun4* machine is detected thus restricting boots to LEON machines. Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/kern

Re: [PATCH 09/22] [v2] arch: fix asm-offsets.c building with -Wmissing-prototypes

2023-11-08 Thread Sam Ravnborg
ooks good. I sometimes looks at sparc patches so I looked at this one. Reviewed-by: Sam Ravnborg

Re: [PATCH] drm/bridge: tc358767: Support input format negotiation hook

2023-11-07 Thread Sam Ravnborg
Hi Aradhya, On Tue, Nov 07, 2023 at 01:17:03AM +0530, Aradhya Bhatia wrote: > Hi Sam, > > Thank you for the suggestion! > > On 06-Nov-23 18:08, Sam Ravnborg wrote: > > Hi Aradhya, > > > > On Tue, Oct 31, 2023 at 12:58:46AM +0530, Aradhya Bhatia wrote: > &

Re: [PATCH] drm/bridge: tc358767: Support input format negotiation hook

2023-11-06 Thread Sam Ravnborg
Hi Aradhya, On Tue, Oct 31, 2023 at 12:58:46AM +0530, Aradhya Bhatia wrote: > With new connector model, tc358767 will not create the connector, when > DRM_BRIDGE_ATTACH_NO_CONNECTOR is set and display-controller driver will > rely on format negotiation to setup the encoder format. > > Add the

Re: [PATCH 11/11] drm/bridge: tc358768: Add DRM_BRIDGE_ATTACH_NO_CONNECTOR support

2023-08-14 Thread Sam Ravnborg
Hi Tomi, > From c13c691bd8826b978325575be9a87f577b83b86b Mon Sep 17 00:00:00 2001 > From: Tomi Valkeinen > Date: Mon, 14 Aug 2023 13:02:23 +0300 > Subject: [PATCH] drm/bridge: tc358768: fix 'Add DRM_BRIDGE_ATTACH_NO_CONNECTOR > support' > > Signed-off-by: Tomi Valkeinen > --- >

Re: [PATCH] drm: atmel-hlcdc: Support inverting the pixel clock polarity

2023-08-10 Thread Sam Ravnborg
> I queued it to drm-misc-next this morning. Thanks Boris! Sam

Re: [PATCH 00/11] fbdev/sbus: Initializers for struct fb_ops

2023-08-07 Thread Sam Ravnborg
and ffb uses their own imageblit and friends, but this is nicely handled in the patches. I also like how you managed to handle the compat case. All are: Reviewed-by: Sam Ravnborg Sam

Re: [PATCH] drm: atmel-hlcdc: Support inverting the pixel clock polarity

2023-08-07 Thread Sam Ravnborg
ck can be: > > > * standard: data is launched on the rising edge > > > * inverted: data is launched on the falling edge > > > > > > Some panels may need the inverted option to be used so let's support > > > this DRM flag. > > > > > > Signe

Re: [PATCH] fbdev/ps3fb: Build without kernel device

2023-07-31 Thread Sam Ravnborg
; > Reported-by: Randy Dunlap > Closes: > https://lore.kernel.org/lkml/ccc63065-2976-88ef-1211-731330bf2...@infradead.org/ > Signed-off-by: Thomas Zimmermann > Fixes: 701d2054fa31 ("fbdev: Make support for userspace interfaces > configurable") > Cc: Michae

Re: [PATCH 00/47] fbdev: Use I/O helpers

2023-07-30 Thread Sam Ravnborg
On Fri, Jul 28, 2023 at 08:35:41PM +0200, Sam Ravnborg wrote: > Hi Thomas, > > On Fri, Jul 28, 2023 at 06:39:43PM +0200, Thomas Zimmermann wrote: > > Most fbdev drivers operate on I/O memory. And most of those use the > > default implementations for file I/O and console

Re: [PATCH 0/4] fbdev: Rename helpers for struct fb_ops

2023-07-30 Thread Sam Ravnborg
sorted out now where the impact is "only" in drm. All 4 patches are: Reviewed-by: Sam Ravnborg

Re: [PATCH 00/47] fbdev: Use I/O helpers

2023-07-28 Thread Sam Ravnborg
Hi Helge, On Fri, Jul 28, 2023 at 08:46:59PM +0200, Helge Deller wrote: > On 7/28/23 18:39, Thomas Zimmermann wrote: > > Most fbdev drivers operate on I/O memory. > > Just nitpicking here: > What is I/O memory? > Isn't it either memory, or I/O ? > I mean, I would never think of the cfb* draw

Re: [PATCH 00/47] fbdev: Use I/O helpers

2023-07-28 Thread Sam Ravnborg
Hi Thomas, On Fri, Jul 28, 2023 at 06:39:43PM +0200, Thomas Zimmermann wrote: > Most fbdev drivers operate on I/O memory. And most of those use the > default implementations for file I/O and console drawing. Convert all > these low-hanging fruits to the fb_ops initializer macro and Kconfig >

  1   2   3   4   5   6   7   8   9   10   >